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
f408bfb239e7c88310581b7249c0667d9ed6b52f
6,787
package com.cloudplugs.util; /*<license> Copyright 2014 CloudPlugs Inc. 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 ...
33.269608
183
0.695447
9dd8d1437e556b8e49f7227cb57123f6796c0695
6,207
/* * Copyright 2017-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
39.535032
94
0.709038
8fd138fd0914aff685319117a25e1c7232db6919
2,676
/* * Copyright 2000-2008 JetBrains s.r.o. * * 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...
37.690141
151
0.80568
a7c1ba32b24cd640aaa52c20b6fa6c8ce8335af9
1,006
package zone.cogni.asquare.security.saml.extension.entity; import org.opensaml.saml2.metadata.LocalizedString; /** * SAML Organisation Entity * * @author Patrick Lezy * @see org.opensaml.saml2.metadata.Organization */ public class CHOrganization { private LocalizedString name; private LocalizedString displa...
20.12
97
0.722664
0824bb0a97f41717b3113b185c99d76fc87388db
1,594
package org.atalk.android.util.javax.sound.sampled; import java.io.IOException; import java.net.URL; public class AudioSystem { /** * An integer that stands for an unknown numeric value. * This value is appropriate only for signed quantities that do not * normally take negative values. E...
35.422222
112
0.651819
ea8aff13316881546d77b43cc5dab9a47b845550
338
package com.thread.volatil; /** * Created by wangyong on 2016/8/18. */ public class Runner { public static void main(String[] args) { Service service = new Service(); new Thread(new ThreadA(service)).start(); new Thread(new ThreadB(service)).start(); System.out.println("已经发起了停止...
19.882353
49
0.612426
65ccd236c4eae8e2c092c213fc14ec449e7c9fef
6,180
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...
15.036496
813
0.798544
05255b942ae8f6928d5caa4be8939c9d8fd6fcdb
355
package com.shanjingtech.secumchat.db; import androidx.room.ColumnInfo; /** * Created by flamearrow on 4/1/18. */ public class GroupId { @ColumnInfo(name = "group_id") private String groupId; public void setGroupId(String groupId) { this.groupId = groupId; } public String getGroupId()...
16.904762
44
0.653521
87b29422babe9c528560ee343186a772c4c7bfd4
63
package coordinates; public interface CoordinateTransform { }
12.6
38
0.825397
96b77247fe68169f22256f2da3e0c6a89f45509c
1,748
package logbook.api; import java.util.LinkedHashSet; import java.util.Map; import java.util.stream.Collectors; import javax.json.JsonObject; import logbook.bean.Ndock; import logbook.bean.NdockCollection; import logbook.bean.Ship; import logbook.bean.ShipCollection; import logbook.proxy.RequestMetaData; ...
28.655738
85
0.604691
bc86d73f7794ef7d95ffa4e6bea6d7c98febb59a
3,638
package wzp.com.texturemusic.util; import android.content.Context; import android.content.SharedPreferences; import com.alibaba.fastjson.JSONObject; import wzp.com.texturemusic.MyApplication; import wzp.com.texturemusic.bean.MusicBean; import wzp.com.texturemusic.core.config.AppConstant; /** * Created by Go_oG * ...
36.747475
96
0.692139
a7b04a6debacdd69ec910de25fcf74c112dd5410
18,511
/** * The MIT License (MIT) * * MSUSEL Quamoco Implementation * Copyright (c) 2015-2017 Montana State University, Gianforte School of Computing, * Software Engineering Laboratory * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
29.476115
83
0.727892
92974147a9672861160b2c4d039799daa97c56f1
3,456
/* * Copyright 2020 StreamSets 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...
36.765957
126
0.734954
1fb1dee54d488fb890230131569e526bb6a9f393
1,451
package org.resec.algorithms; import edu.princeton.cs.algs4.In; public class Outcast { private final WordNet wordNet; // constructor takes a WordNet object public Outcast(WordNet wordnet) { if (wordnet == null) { throw new NullPointerException("Input wordnet is null"); } ...
27.903846
72
0.534804
b0f7f91afb0b8b0f9d8b0e4fbbf82f627b2c2e46
13,114
package org.recap.camel.submitcollection; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.model.*; import com.amazonaws.util.IOUtils; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.Predicate; import org.apache.camel.ProducerTemplate; import o...
51.427451
237
0.657847
5521fcf4984eede70621287fc9119845246df9c6
353
package br.com.carlosFreitas.recursividade035; public class TesteCalculadora { public static void main(String[] args) { // TODO Auto-generated method stub int calcNaoRecursivo = Calculadora.fatorialNaoRecursivo(5); int calc = Calculadora.fatorial(5); System.out.println(calcNaoRecursivo); ...
23.533333
61
0.72238
f130175dc5d0504d26cb67074a14c8b566c84c3a
31,177
package edu.ucla.cs.jshrinklib; import edu.ucla.cs.jshrinklib.classcollapser.ClassCollapser; import edu.ucla.cs.jshrinklib.classcollapser.ClassCollapserAnalysis; import edu.ucla.cs.jshrinklib.classcollapser.ClassCollapserData; import edu.ucla.cs.jshrinklib.fieldwiper.FieldWiper; import edu.ucla.cs.jshrinklib.methodinl...
36.678824
123
0.741444
f7663a9b8e8e961562b33bf4f7190df536ce491d
654
package com.jaeger.statusbarutil; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.jaeger.library.StatusBarUtil; import com.jaeger.statusbardemo.R; /** * Created by Jaeger on 16/2/14. * * Email: chjie.jaeger@gmail.com * GitHub: https://github.com...
24.222222
84
0.729358
915bd4b8950bd485fb3f4c4aeee1f8cb65d0693f
311
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.neptuo.os.client.data.databus; import java.util.List; /** * * @author Mara */ public interface DataListener<T> { public void changed(DataEventType type, Object source, List<T> objects); }
17.277778
76
0.700965
40cb8481c9864ddb7ffeb58ecb9d0fbbc38ba5da
827
package com.ceiba.repartidor.adaptador.dao; import com.ceiba.infraestructura.jdbc.MapperResult; import com.ceiba.repartidor.modelo.dto.DtoRepartidor; import org.springframework.jdbc.core.RowMapper; import java.sql.ResultSet; import java.sql.SQLException; public class MapeoRepartidor implements RowMapper<DtoRepartido...
33.08
86
0.752116
73f773088a772736873eeaf85d016598ebae464d
3,674
package com.osiris.component.bootstrap.alert.render; import java.io.IOException; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import javax.faces.render.FacesRenderer; import org.primefaces.renderkit.CoreRenderer; import com.osiris.comp...
33.099099
117
0.6957
312ae4700a7d61ee4953dc26c6f5e4b91616aa6a
592
package Game; import java.util.*; public class GameApp { public static void main(String[] args) { // TODO Auto-generated method stub Hand player1 = new Hand(3); Scanner s = new Scanner(System.in); while (!player1.gameOver()) { System.out.println("Here is your hand: " + player1.getCar...
22.769231
67
0.619932
923b2a503293bd5ca58a3a3a13718f297934eed3
3,920
/* * Copyright (c) 2020 Dzikoysk * * 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...
29.923664
117
0.620663
edbb22384658cf2da171a05977bb8be5719f86fb
462
package io.ebean.config; /** * Used to provide some automatic configuration early in the creation of a Database. */ public interface AutoConfigure { /** * Perform configuration for the DatabaseConfig prior to properties load. */ void preConfigure(DatabaseConfig config); /** * Provide some configurat...
24.315789
115
0.746753
03ab29c2c544369e2045a01f026c6104c8d2b584
602
package com.google.kpierudzki.driverassistant.obd.service.commandmodels.pressure; import com.google.kpierudzki.driverassistant.obd.datamodel.ObdParamType; import com.google.kpierudzki.driverassistant.obd.service.commandmodels.ObdCommandModel; /** * Created by Kamil on 15.09.2017. */ public class BarometricPressureC...
30.1
126
0.772425
7c43a910b2f4f444413fd6d127658df8c55fd3db
361
package com.luo.leetcode.单调栈; /** * 拼接最大数 * https://leetcode-cn.com/problems/create-maximum-number/ * * @author luoxiangnan * @date 2020-11-15 */ public class MaxNumber { /** * TODO 待补充 */ public int[] maxNumber(int[] nums1, int[] nums2, int k) { int[] nums = new int[nums1.length + num...
18.05
61
0.590028
adf07b4fad7ca73e939d2951f0d52e0a3eb7eda0
452
package com.OE.Beans; public class Subject { Integer subject_id; String subject_name; public Subject() { // TODO Auto-generated constructor stub } public Integer getSubject_id() { return subject_id; } public void setSubject_id(Integer subject_id) { this.subject_id = subject_id; } public String getSubjec...
19.652174
51
0.745575
6179caa98e300d414de60ae949a0acc1a206563b
158
/** * Created by Alex Backer on 12/2/2016. */ public class Starter { public static void main(String args[]) { Game g = new Game(); } }
14.363636
42
0.556962
eae52d61dfc120172ee820ea02cfff0eadd62b5d
2,504
/* * Copyright 2017 Abed Tony BenBrahim <tony.benrahim@10xdev.com> * and Gwt-JElement project contributors. * * 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.o...
44.714286
149
0.722444
f725b7c0645e4dce7b090bf6b1252980dd682bf9
1,135
/* * 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 com.gruposet.ecommerce.models; /** * * @author thiago */ public class ItemPedido { private int id; private int prod...
18.916667
79
0.617621
949212f4a124cfca1bb4a981e632527d3fe7cf50
1,565
package Characters; //Jplay imports import jplay.Animation; import jplay.Sprite; //Variables imports import static Main.Main.someMethods; import static Main.Main.window; /** * * @author Rodrigo Fernando da Silva */ public class Characters extends Thread { //Java variables public boolean itOver; ...
23.358209
98
0.632588
141a9dd1b2ed9459e2b0f498909f30040ddbcbb0
19,443
package com.bullhead.equalizer; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Color; import android.graphics.Paint; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import android.media.audiofx.BassBoost; import android.media.audiofx....
36.754253
122
0.609577
8d48090acffc9111fc1ac1d6237b5e900e8d4f7b
2,718
package edu.ttu; import org.apache.commons.lang3.StringUtils; import org.apache.commons.math3.ml.clustering.Cluster; import org.apache.commons.math3.ml.clustering.Clusterable; import org.apache.commons.math3.ml.clustering.DBSCANClusterer; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Pa...
28.914894
107
0.609272
23a7460b90995cec407e138c1858e760ce1397ad
23,719
package xreliquary.items; import com.google.common.collect.ImmutableMap; import lib.enderwizards.sandstone.init.ContentInit; import lib.enderwizards.sandstone.items.ItemToggleable; import lib.enderwizards.sandstone.util.ContentHelper; import lib.enderwizards.sandstone.util.InventoryHelper; import lib.enderwizards.sand...
46.145914
344
0.608584
080f3a46e308246966e6523d32f7b53a78f6dc9c
3,292
package com.theflopguyproductions.ticktrack.dialogs; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.Display; import android.view.View; import an...
35.021277
133
0.735115
8e36ca86616fd19e0369ab553dfdc4dc25e615cf
8,714
package com.haibin.calendarviewproject.range; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.haibin.calend...
40.910798
101
0.617397
7653ef8f5d009420b9ddc93b2337a2870c73a014
823
/** * @Author: ouyangyameng * @Date: 2021/4/20 1:43 下午 * @Version 1.0 */ public class FindtheDuplicateNumber278 { public static void main(String[] args) { FindtheDuplicateNumber278 o = new FindtheDuplicateNumber278(); o.findDuplicate(new int[]{}); } public int findDuplicate(int[] nums) ...
24.939394
70
0.486027
eebae4ac6b8e8885fb158297555371d8746f8374
2,821
package test.com.sagui.model.pages.employee.tabular; import java.util.ArrayList; import java.util.List; import test.com.sagui.model.pages.crud.employee.Employee; import test.com.sagui.model.pages.employee.model.EmployeeDataModel; import com.sagui.dataset.commons.dataset.IBookmark; import com.sagui.dataset.c...
35.708861
131
0.680964
68fbad775fdde62b021e633e9dafbc0109352c15
600
package com.thinkgem.jeesite.modules.ips.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; import org.springframework.transaction.annotat...
28.571429
64
0.773333
c27e6c2d1aa9ab84f17487e57ba1f3105639a528
6,260
package net.whg.we.net.server; import java.io.IOException; import java.net.SocketException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory...
25.241935
108
0.541853
881488c620b71268b821aaa4a76b652ab26db70d
3,349
package com.pengyifan.brat; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import com.google.common.collect.Range; import com.google.common.collect.RangeSet; import com.google.common.collect.TreeRangeSet; import com.g...
27.008065
74
0.702896
93770cef086a422793b846e504a7423032b316f5
487
package com.chat.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration pu...
28.647059
75
0.788501
75947d027f92370726b21292a40776a7200fcc6e
801
package statisticsCalculator; import dbmanagement.Database; import domain.Comment; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * Created by Jorge on 28/03/2017. */ @Service public class CommentsProcessor{ @Autowired private Database dat;...
20.538462
73
0.697878
74a2c4708a594ee79808ffe3a8f0cafd4ccef0f7
315
package chav1961.merc.api.interfaces.front; /** * <p>This enumeration describes resource types available for the world.</p> * @see Mercury landing project * @author Alexander Chernomyrdin aka chav1961 * @since 0.0.1 */ @MerLan public enum ResourceClass { None, Liquid, Solid, Electricity }
19.6875
77
0.701587
3e94c4a2213693033bee6b1b2ef99d2e4398dda0
51
package com.github.houbb.sandglass.test.springboot;
51
51
0.862745
0a076272c8026ca057b13ca7153719ef086d09fb
1,415
/* * Copyright 2021 Patrik Karlström. * * 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...
26.203704
75
0.706714
c6405849e1e812f1f1d3929b305b22f7ad7c6180
33,385
package net.kurobako.gesturefx; import java.util.Objects; import java.util.Optional; import java.util.function.DoubleConsumer; import javafx.animation.Interpolator; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; import javafx.application.Platform; import javafx.b...
33.96236
130
0.725805
f75d905167b2b4152e8980a011ef2da04763e441
2,433
package uk.gov.hmcts.reform.civil.assertion; import org.assertj.core.api.AbstractAssert; import java.time.DayOfWeek; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; public class DayAssert extends AbstractAssert<DayAssert, LocalDate> { public DayAssert(LocalDate ...
27.033333
94
0.650226
4433e53127e106d6a9abc9d4bf303bcf59f5c548
290
package dev.patika.schoolmanagementsystem.dataaccess; import dev.patika.schoolmanagementsystem.entities.PermanentInstructor; import org.springframework.stereotype.Repository; @Repository public interface PermanentInstructorRepository extends InstructorRepository<PermanentInstructor> { }
32.222222
98
0.882759
e36d81a47303bf976b1724faf81ba128ec4dc1c4
8,893
/* * Copyright 2014-2021 Real Logic Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
38.497835
118
0.573035
ccd2c907d40aabb25484ccac3c31a8d8c47bca87
605
package com.yoloho.enhanced.common.util.aes; import org.junit.Assert; import org.junit.Test; import com.yoloho.enhanced.common.util.aes.AESUtil; public class AESUtilTest { @Test public void encryptTest() { Assert.assertEquals("f06a6dc21b8be9d31cab476251eb375630c731455cbe771f9b5de7877cd755d96ac66d0529...
40.333333
189
0.804959
b67ca9955ebc199a860990c490ce13327ce58e72
1,475
package com.magneton.api2.scanner; import java.nio.file.Path; import java.util.regex.Pattern; import lombok.Getter; /** * 文件扫描器 * * 文件扫描器会为二阶段扫描 * * 首先扫描{@link #subordinatePaths}文件 * * 然后再扫描{@link #primaryPaths}文件 * * @author zhangmingshuang * @since 2019/9/28 */ @Getter public class FileScannerBuilder { ...
20.205479
82
0.639322
e824ca8df1e94bc409c3b64cd22abfe05d738a9c
2,329
/** * Copyright 2017-2021 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 requ...
33.753623
91
0.72821
a2f7b55ce5047ea75affbda92359fc99aeb8de8d
1,764
package gearth.ui.info; import gearth.Main; import javafx.event.ActionEvent; import javafx.scene.control.Hyperlink; import gearth.ui.SubForm; import javafx.scene.control.Label; import javafx.scene.control.Tooltip; import javafx.scene.image.Image; import javafx.scene.image.ImageView; /** * Created by Jonas on 06/04/1...
32.666667
87
0.693311
d9b3c77800d80e717ebd4ff9c6dfbc09ab544148
13,078
/** * 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 m...
39.273273
94
0.660269
671931ed153aa74b87bc19b96f92ca028fd141ff
5,685
package saga.netflix.conductor.travelservice.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import saga.netflix.conductor.travelservice.error.BookingNotFound; import saga.netflix.conducto...
38.673469
107
0.720141
2aacb20df9a142def7d612b08c07d535649ee2a8
1,056
package me.yohanfernando.samples.pdf.init; import junit.framework.TestCase; import org.junit.*; import org.junit.rules.TestName; /** * Created by yohanfernando on 04/10/2014. * * Contain tests for StartupController which will be the first point of control (at least during the setup phase) */ public class StartupC...
25.756098
113
0.679924
b0d5b54ddbe194ef7e5c87b7d7a54956b91eaac5
2,759
package com.github.mustachejava.util; import com.github.mustachejava.DefaultMustacheFactory; import com.github.mustachejava.DefaultMustacheVisitor; import com.github.mustachejava.Mustache; import com.github.mustachejava.TemplateContext; import com.github.mustachejava.codes.IterableCode; import com.github.mustachejava....
25.785047
83
0.654223
61311233765546a6a0026668d4a77cceab65bde7
759
package net.seiko_comb.combS8214808.joiss2016.multiclass; import static net.seiko_comb.combS8214808.joiss2016.Vector.$; import org.junit.Test; @SuppressWarnings("unused") public class DataTest { @Test public void test() { DataFactory dataSet = new DataFactory(3, 3); Data data = new Data(dataSet, $...
26.172414
62
0.675889
324fac6e720520ecf18a1a4b8578a875662962f2
1,126
package net.script.utils; import com.jfoenix.animation.alert.JFXAlertAnimation; import com.jfoenix.controls.JFXAlert; import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXDialogLayout; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.stage.Modality; import javafx.stage.Stage...
36.322581
80
0.735346
ee13c6b4d3e9d77e12ee539d5d01f26726ee6330
7,033
// Copyright 2018 Google 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 agreed to in ...
39.072222
100
0.717048
5813fa7cb0539cfb5ce6c065fe259b2d2bcebfa6
8,200
package com.luckynick.android.test; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.media.MediaPlayer; import android.os.Build; import com.luckynick.shared.PureFunctionalInterface; import com.luckynick.shared.enums.SoundProductionUnit; import java....
38.139535
106
0.610976
0a28ed89e4f75d5e49f91623cf47c7a6d62faec4
2,772
package seedu.guilttrip.ui.reminder; import java.util.Comparator; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.FlowPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import seedu.guilttrip.model.entry.Income; import seedu.guilttrip.model.entry.Period; i...
31.862069
112
0.663059
de59a3214c10490f8b0f3bb3b820b4d198146733
615
package com.swingfrog.summer.client; import java.util.ArrayList; import java.util.List; public class ClientGroup { private int next = -1; private List<Client> clientList; public ClientGroup() { clientList = new ArrayList<>(); } public void addClient(Client client) { clientList.add(client); } public ...
17.083333
39
0.658537
bbc7b4b7fdee43e019f06fa8671318dcf0d54315
102,542
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.vanilla.network; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.a...
52.504864
120
0.745538
bf7e8dc0dd0e5875fe96c9723ed0fb4731a6cded
1,287
// Note: only +, - operations // Parameters: // Variables: 5 // Baselines: 50 // If-Branches: 1 public void reduce(Text prefix, Iterator<IntWritable> iter, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { int a000 = 0; int a001 = 0; int a002 = 0; int a003 = 0; int a...
17.391892
91
0.589744
372ce26ead773d3f7debd9e45ebcea27f1ef52f5
4,529
package com.github.sunnybat.paxchecker.setup; import com.github.sunnybat.commoncode.email.account.EmailAccount; import com.github.sunnybat.commoncode.email.account.GmailAccount; import com.github.sunnybat.commoncode.email.account.SmtpAccount; import com.github.sunnybat.commoncode.oauth.OauthStatusUpdater; import com.g...
23.225641
142
0.695959
2b9ac073be656a8263fec27d57dd63f6db58e8ce
138
package fr.ubordeaux.ddd.examples.domain; public class TokenWithConstructorAccess { public static EntityB one = new EntityB(null); }
23
50
0.782609
3b7991622997536100aeb559fb5e604a75851465
3,612
// 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...
32.836364
98
0.704319
bfe74e9f33b7b7622dc13ecca4e41b626f649c22
1,311
// Copyright 2015-2021 Swim Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
39.727273
101
0.742944
a3334951af5d4397efd5650d39c8fed81430a5c3
47,610
/* * Copyright 2015-2020 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...
42.132743
156
0.627137
887958b5a7fbb4ee6c4eb47a48fb7b79cc9d8739
1,622
package com.bnd.math.domain.dynamics; import java.util.Date; import com.bnd.core.domain.um.User; import com.bnd.math.domain.rand.RandomDistribution; public class MultiRunAnalysisSpec<T> { private Long id; private Long version = new Long(1); private Date timeCreated = new Date(); private User createdBy; privat...
19.542169
90
0.751541
35cf2bff056ea3b0974c76ac8c6c6d22359beabd
3,383
package ctrmap.stdlib.fs.accessors.arc; import ctrmap.stdlib.fs.FSFile; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.HashMap; import java.util.Map; import java.util....
27.504065
115
0.698197
8bad6221ab00c97ecca45607f19ff2a6ceb7a221
11,082
package com.github.dactiv.basic.authentication.controller; import com.github.dactiv.basic.authentication.config.ApplicationConfig; import com.github.dactiv.basic.authentication.domain.entity.SystemUserEntity; import com.github.dactiv.basic.authentication.domain.entity.UserAvatarHistoryEntity; import com.github.dactiv....
37.063545
149
0.684985
faeb0f0196626a9aa9b87d3fafe3b1c36426ca93
4,055
package edu.pdx.cs410J.greencod; import edu.pdx.cs410J.AppointmentBookParser; import edu.pdx.cs410J.ParserException; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.Date; /** * This class represents a <code>TextParser</code> */ public class TextParser implements A...
38.619048
114
0.524784
6dc6f998944751a97e4dc54478371c5255357a89
920
package com.sugar.sugarlibrary.image; import android.content.Context; import android.util.AttributeSet; import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView; import com.sugar.sugarlibrary.image.listener.OnProgressListener; /** * Created by android_ls on 2017/5/17. */ public class LargePhotoView ex...
23.589744
69
0.707609
92286f5dc141cdb63bd81d53eb13dd44e2176836
3,948
package evaluation.trains; import java.util.HashMap; import java.util.Map; public class Trains { static Map<String, Integer> distance = new HashMap<>(); static int totalNumberOfTrips, shortestRoute, numberDifferentRoutes; // Define de distance values /*static { distance.put("AB", 5); distance.put("BC", 4)...
26.145695
110
0.687943
78348c96c72c0acb490f27b89526dbf2d7d21881
2,376
package com.akx2.skifreeze; import com.akx2.x2.IGameObject; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector2; public class PowderManager { public final int MAX_POWDER = 100; public final float SPAWN_RATE = 0.05f; public final int PLUME_COU...
25.276596
109
0.555556
018fab569b989960944157d215d7bda5a78a8eba
841
package a3.network.api.messages; import java.util.UUID; import ray.networking.IGameConnection.ProtocolType; public interface Message { public UUID getUUID(); public void setUUID(UUID uuid); public MessageType getMessageType(); public void setMessageType(MessageType messageType); public String getFromIP(); ...
21.564103
53
0.774078
46defe0cb685debc53d7c834d3fe30f63a4b120f
862
package com.xuzimian.java.learning.components.beanutils.hutool; import cn.hutool.core.bean.BeanUtil; import com.xuzimian.java.learning.components.beanutils.base.BaseBeanUtlis; import com.xuzimian.java.learning.components.beanutils.base.BeanModelSource; import com.xuzimian.java.learning.components.beanutils.base.Bea...
33.153846
113
0.7471
0d38c2c76db9d077556b885ff237d7e294cfbe29
7,660
package neqsim.processSimulation.processEquipment.util; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import neqsim.processSimulation.processEquipment.ProcessEquipmentBaseClass; import neqsim.processSimulation.processEquipment.ProcessEquipmentInterface; import neqsim.processSimula...
33.160173
99
0.651697
5cb1f28d4c087edf4b1fbe24b1c7f7faaee84bfe
6,305
package lumien.randomthings.tileentity; import java.util.List; import com.google.common.base.Predicate; import lumien.randomthings.block.ModBlocks; import lumien.randomthings.lib.IEntityFilterItem; import lumien.randomthings.util.InventoryUtil; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLi...
21.228956
230
0.719905
51c210304f46739cab114f620f31359f5c700814
918
package com.roy.algorithm.inflearn.retry2.dynamic; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; // 최대 부분 증가수열(LIS) // // N개의 자연수로 이루어진 수열이 주어졌을 때, 그 중에서 가장 길게 증가하는(작은 수에서 큰 수로) 원소들의 집합을 찾는 프로그램을 작성하라. // 예를 들어, 원소가 2, 7, 5, 8, 6, 4, 7, 12, 3 이면 가장 길게 증가하도록 원소들을 차례대로 뽑아내면 // 2, 5, 6, 7,...
26.228571
82
0.626362
fc69a6c28a9a67c4f9aaea2f52ece700a7e77492
504
class NumArray { int[] dp; public NumArray(int[] nums) { int len = nums.length; dp = new int[len + 1]; dp[0] = 0; for(int i = 1; i <= len; i++) { dp[i] = dp[i - 1] + nums[i - 1]; } } public int sumRange(int i, int j) { return dp[j + 1] - ...
21
64
0.492063
1c7641dd4f50ed8d23545229dff253a27af599bb
1,120
package udemy39; import java.util.Scanner; public class Udemy39 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String dia; System.out.println("Digite o numero para equivaler ao dia da semana"); int x; ...
21.960784
78
0.349107
af8eb058e5a005f779dda92450e3e1ec6859eb1b
239
package com.zb.shardingjdbc.service; import com.zb.shardingjdbc.domain.User; /** * <p> * 服务类 * </p> * * @author zhangbo * @since 2020-02-08 */ public interface IUserService { User get(Long id); void save(User user); }
11.95
39
0.631799
b39d5efd08725d8e4fcab0c0505ab1d03cc6c3e0
346
package com.hanzhan.tech.workbench.candidate.service; import com.hanzhan.tech.workbench.candidate.entity.HzCandidate; import com.baomidou.mybatisplus.extension.service.IService; /** * @Description: 候选人表 * @Author: jeecg-boot * @Date: 2021-09-18 * @Version: V1.0 */ public interface IHzCandidateService extends I...
23.066667
68
0.765896
3e5d65cb5674e5e1409b86ceaccf2f7ef7806f35
3,792
package controllers; import com.avaje.ebean.Ebean; import helpers.GoogleRecaptcha; import models.Email; import models.ErrorLog; import org.apache.commons.mail.EmailException; import org.apache.commons.mail.SimpleEmail; import play.Logger; import play.Play; import play.data.DynamicForm; import play.data.Form; import p...
38.693878
166
0.609968
d036333001f0afb3a587f7660659aeb7d7d48e58
211
package com.bob.sina_weibo.util; public interface Constant { public static final String APPKEY= "19870586"; public static final String REDIRECTURL= "https://api.weibo.com/oauth2/default.html"; }
26.375
85
0.729858
0975ef26ac619876fc2f35e66074300d406c458d
7,089
package com.example.teamtracker.repositories; import android.content.Context; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import com.example.teamtracker.network.APIClient; import com.example.teamtracker.network.request.LoginRequestModel; import com.example.teamtracker.network.reque...
50.276596
140
0.599661
04ed7a03236e1e815bd573a19997992c4162fb89
2,015
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.applicationinsights.generated; import com.azure.core.util.Context; import com.azure.resourcemanager.applicationinsights.models.A...
35.350877
162
0.593548
65b20b5f2edf58024dbf4574d772861ad978228e
2,580
package com.example.multiple_spinner; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.TextView; import butterknife.B...
31.851852
113
0.607364
295fa8225f5bb3d25842b0dc3aa77af7ff9f0cc7
4,239
package org.gw4e.eclipse.conversion; /*- * #%L * gw4e * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2017 gw4e-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 Software without restr...
34.463415
145
0.711017
5aae21b239d2d92a09f9f1c179150fdaadbccb65
4,673
/** * */ package com.photo.pgm.core.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.Tempor...
24.212435
93
0.715386
cbb01ea3627d1b9139e543010849295e854e41a1
1,980
package org.pty4j.web.websocket; import lombok.extern.slf4j.Slf4j; import org.pty4j.web.websocket.mock.MockHandler; import org.pty4j.web.websocket.terminal.TerminalHandler; import org.pty4j.web.websocket.xterm.XtermHandler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.conte...
39.6
114
0.737879
66ff37e5af2d93ddb806151e3bb93a1c4c87d9b0
11,565
package pl.edu.agh.iosr.surveylance.service.impl; import pl.edu.agh.iosr.surveylance.dao.AnswerDAO; import pl.edu.agh.iosr.surveylance.dao.ComponentDAO; import pl.edu.agh.iosr.surveylance.dao.QuestionDAO; import pl.edu.agh.iosr.surveylance.entities.Component; import pl.edu.agh.iosr.surveylance.entities.Question;...
25.7
86
0.685171
65f10de32eea4d94918c86b5d01809a0253d2fe6
852
package com.MyCode.array.ArrayRotation; public class FindElementAfterRotation { public static void main(String[] args) { int[] arr = { 1, 2, 3, 4, 5 }; // No. of rotations int rotations = 2; // Ranges according to 0-based indexing int[][] ranges = { { 0, 2 }, { 0, 3 } }; ...
23.666667
90
0.49061
31f07414f3d9d0990b7303653a2d81d58a5587e4
13,398
package com.wukong.servlet.user; import com.mysql.cj.util.StringUtils; import com.wukong.pojo.Role; import com.wukong.pojo.User; import com.wukong.service.role.RoleService; import com.wukong.service.role.RoleServiceImpl; import com.wukong.service.user.UserService; import com.wukong.service.user.UserServiceImpl...
34.530928
96
0.703015
06385952d56af8667fabef3cb3633e58ff484601
1,368
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.CREBranchChannelOperatingSessionRequestInputModelEBranchChannelOperatingSessionIns...
40.235294
199
0.886696
6d1ca66d1910d6b05f6b7f200c79125c97ad9416
25,693
package com.dungeoncrawler.view; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFon...
40.082683
183
0.458841