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
a394f817416332d0f96fa410e989f5a39c128012
642
/* * Created on Oct 25, 2004 * */ package de.renew.gui.logging; import org.apache.log4j.Appender; import org.apache.log4j.Logger; /** * @author Sven Offermann * */ public class TreeNodeAppenderWrapper { private Logger logger; private Appender appender; public TreeNodeAppenderWrapper(Logger logger,...
18.342857
70
0.649533
aa0b228944024371d88529697ae7346c241040df
23,569
package com.example.demo.controller; import com.example.demo.bean.*; import com.example.demo.entity.*; import com.example.demo.rule.*; import com.example.demo.service.*; import com.example.demo.util.DateUtil; import com.example.demo.util.FileUtil; import org.apache.ibatis.binding.BindingException; import org.springfra...
47.043912
230
0.62998
768e364beafcc2c33802fa479500de8e198f2f4a
424
//package com.pal.rest; // //import org.springframework.web.bind.annotation.GetMapping; //import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RestController; // //@RestController //@RequestMapping("/test") //public class Travel { // // @GetMapping("/hello") /...
23.555556
64
0.712264
f9f291d5ce56b36e081e3a3c7733e575e9f264b1
18,210
package net.opendatadev.odensample; import android.content.res.Resources; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import org.liquidplayer.javascript.JSContext; import org.liquidplayer.javascript.JSException; import org.liquidplayer.javascript.JSValue; import java.io.Fi...
32.929476
102
0.438331
a6d8dc217ac6ac3ae83a59bd1adddaa02aef5ddf
37,311
package com.hotel.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class WxConsumerExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table wx_consumer * * @mbggenerated */ protected String ord...
31.274937
102
0.577658
9ca4649085de9503b749803f9ca3caaaaa922425
10,030
package com.checkmarx.flow.cucumber.integration.cli.ast; import com.atlassian.jira.rest.client.api.domain.Issue; import com.checkmarx.flow.CxFlowApplication; import com.checkmarx.flow.CxFlowRunner; import com.checkmarx.flow.config.FlowProperties; import com.checkmarx.flow.config.JiraProperties; import com.checkmarx.fl...
41.618257
454
0.700598
d1b1dd67abf6513bc05b8a178649f4ff2c74c72a
2,720
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ package vnmr.util; import javax.swing.*; import javax.swing.event.*; import...
33.170732
85
0.632353
5b998ee1570ffa7e4038267dce48040fcbcc5049
1,378
package controller.helper; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import service.CacheService; import service.UpdateBLService; /** * @author Qiang * @date 6/9/16 */ @Controller publi...
28.122449
67
0.618287
2c6fc453169cb4b631813264b134b513ba9be947
2,825
package co.edu.usbbog.bdd.rest; import java.util.List; import org.json.JSONArray; import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework...
29.123711
98
0.738761
bd88f8e7efec7dfd4aeb356784bb75ccc711f498
3,230
/* * Copyright 2015 - 2017 Xyanid * * 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 w...
33.298969
138
0.716718
23e2481d28cd8b71959683b9e7a5f9c0e4abde62
183
import java.math.BigDecimal; interface Power { static long digit(long exp) { return new BigDecimal(".301029995663981195").multiply(new BigDecimal(exp)).longValue() + 1; } }
26.142857
95
0.715847
8ed3cacdec5138389b74e5437d1b8ec3c67392f6
375
package homework.homework1.homework6; public class MilesToKilometersConverter { public static final double KM_IN_A_MILE = 1.609; public static void main(String[] args) { System.out.print("Miles\t\tKilometers"); for (int mile = 1; mile <= 10; mile++) { System.out.printf("\n%1d\t\t\t...
28.846154
78
0.624
bd798126735476ff2c554ce23cced0437364662a
363
package br.com.wnascimento.entreguei.util; import android.util.Patterns; public class ValidateUtil { public static boolean isValidateEmail(String email) { return Patterns.EMAIL_ADDRESS.matcher(email).matches(); } public static boolean validateMinLength(String string, int maxLength) { re...
21.352941
75
0.721763
9967681e717b845654e14718be6946cf356add24
3,413
package xyz.codemeans.mybatis.generator.config; import com.google.common.base.CaseFormat; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import java.io.File; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import lombok.Data; import lombok.expe...
27.97541
95
0.714914
415c8a411888ad8b5212d25f5bc8b7c122f73aa5
1,318
// Copyright 2000-2019 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.jetbrains.python.codeInsight.stdlib; import com.intellij.openapi.util.SystemInfo; import com.intellij.psi.PsiElement; import com.intellij.psi.util.QualifiedName; impo...
39.939394
140
0.793627
02121a24b0b7697143df9bc6d877f212c1399e7a
1,382
package frc.acquisitions; /** * Class allowing the storage of speed values for motors. Used when setting motor speeds in the Acquisitions subsystem. */ public class AcquisitionsOutput { /** * Output for the motor. Value between -1 and 1. */ private double motor; /** * True if the command...
25.127273
119
0.620839
0f122c593639822f7054c057f40660c78d7bcf3d
2,562
package com.iguerra94.weathernow.utils; import android.annotation.TargetApi; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Build; import com.iguerra94.weathernow.utils.sharedPrefs.SharedPrefsKeys; import com.iguerra94.weathernow.utils...
34.621622
120
0.735363
189200d94892ec49ee1fcabe8cb061ee93dfbae1
984
package org.reactivecouchbase.json.exceptions; import java.util.List; import java.util.stream.Collectors; public class JsWrappedException extends JsException { private final List<Exception> exceptions; public JsWrappedException(List<Exception> exceptions) { this.exceptions = exceptions; } @O...
26.594595
106
0.694106
e46c7df469bfe29dd6ebc4517921c3d1a5a5de1d
3,466
package com.kgc.pojo; import java.util.Date; public class UserInfo { private Integer uid; private Integer accid; private String nickname; private Integer age; private String sex; private String address; private String email; private String phone; privat...
21.263804
67
0.502308
23033853c6e78925cd5c7c610d160a040320f21e
3,793
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; public class CSVParser { /** * Parse CSV file to an ArrayList of City objects. * * @param csvFile Absolute path to the csv file. * @return An ArrayLis...
34.171171
122
0.514369
e6fc2ad88f8a27a82968fda461357285206a7978
21,365
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.components.page_info; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context;...
44.60334
100
0.680084
f810edcd3d1d94bc5e6e02d7e7ba8f868fe21e32
16,138
package io.swagger.client.api; import io.swagger.client.ApiException; import io.swagger.client.ApiClient; import io.swagger.client.Configuration; import io.swagger.client.Pair; import javax.ws.rs.core.GenericType; import java.math.BigDecimal; import io.swagger.client.model.Client; import org.threeten.bp.LocalDate; i...
37.705607
307
0.721651
316c1f1aae968a0ed6cacb0770c08d2b72e8b2a8
142
package tanzu.workshop.paymentcalculator.service; public interface HitCounterService { long incrementCounter(); void resetCount(); }
20.285714
49
0.774648
181bbac0f30133a6a69c2320a9dafffdbdc4c5bf
4,298
package com.android.iam.cursofirebase.Activity; import android.Manifest; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.But...
34.66129
305
0.660074
877c8ecafa030c12ce18e2c62a6a8a2fb8b1e44b
8,154
package com.verdantartifice.thaumicwonders.common.items.tools; import javax.annotation.Nullable; import com.verdantartifice.thaumicwonders.ThaumicWonders; import com.verdantartifice.thaumicwonders.common.items.ItemsTW; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.EntityLivingBase; ...
46.329545
239
0.617366
bb12989f5d6e597cb2ccf3f4d02b6e5ca72be0bc
3,390
/* * 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 * distrib...
32.285714
148
0.667257
1a9034a9b50283c9a453a05413ef5c7b56d817de
478
package file; import java.io.File; import java.util.Scanner; public class CaminhoFile { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter a file path: "); String strPath = sc.nextLine(); File path = new File(strPath); System.out.println("getNam...
18.384615
55
0.654812
4dfd74ac42a8952a731c0934f93c88ce073e72dd
6,399
package com.project.sam.guguchat; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.wid...
31.214634
130
0.633536
37dbb24365e28edeef76b5d27968eccd3904e4a1
1,558
/** * Copyright 2014 fastnsilver.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
31.16
91
0.774711
4bc349a58ead9045c9041a9e557bf75dffc02542
350
package org.hamgen.testdata; import javax.xml.bind.annotation.XmlType; /** * DO NOT CHANGE THIS CLASS! it will brake MatcherBuildTest */ @XmlType public final class MatcherBuilderTestDataSomething { public MatcherBuilderTestDataSomethingElse getSomethingElse() { return new MatcherBuilderTestDa...
25
68
0.745714
be7138d29f94cdca57bfbbb2572b28feb9310269
1,717
package Lists; import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class CardsGame { public static void main(String[] args){ Scanner input = new Scanner(System.in); List<Integer> player1 = Arrays.stream(input.nextLine().split(" ")).m...
33.019231
134
0.514851
ee3f21ee84fc96cc5b4fb38db6749dc2290cca9f
35
public class LogicalTreeNode { }
8.75
30
0.742857
846ca2a10ea810fc3611e22fac7ee2720662b125
926
package co.yixiang.modules.shop.web.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * <p> * 病种 查询结果对象 * </p> * * @author visazhou * @date 2020-06-03 */ @Data @ApiModel(value="YxStoreDiseaseQ...
19.702128
64
0.75486
a38febdccb220d2b4ef4f2c218324bdc0f11bf2a
341
package com.clsaa.maat.constant.state; /** * <p> * 被动方业务完成后调用maat平台确认消息已被成功消费(消息状态转变为已完成) * 不可转变为任何其他状态 * </p> * * @author 任贵杰 812022339@qq.com * @summary 已完成状态 * @since 2018-09-01 */ public class FinishedState extends AbstractState { @Override boolean doValidateState(MessageState stateTo) { r...
17.947368
51
0.683284
1e1cfa54543fed091b5b0a9c58730832f23b3c76
16,348
/* * Copyright 1999-2002,2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
33.63786
132
0.573403
80ced716dea59c19fb56b8379778222ea741d183
836
package ExamPrep4.colonists.medics; public class Surgeon extends Medic { private static final int CLASS_BONUS = 2; public Surgeon(String id, String familyId, int talent, int age, String sign) { super(id, familyId, talent, age, sign); } @Override public int getPotential() { int ageB...
23.885714
85
0.535885
b5297907e1cb8fb9c77e14c388c7a1f1aa82e2ba
2,708
/** * @author qybit * @create 2020-12-03 16:14 */ public class MagicDictionary1 { static class Trie { static class TrieNode { boolean isEnd; TrieNode[] next = new TrieNode[26]; } TrieNode root; public Trie() { root = new TrieNode(); }...
26.54902
87
0.430576
0ca41388e827763bfc727d8f40c54e68fb497ec7
2,554
/** * Copyright "TBD", Metron Aviation & CSSI. All rights reserved. * * This computer Software was developed with the sponsorship of the U.S. Government * under Contract No. DTFAWA-10-D-00033, which has a copyright license in accordance with AMS 3.5-13.(c)(1). */ package gov.faa.ang.swac.datalayer.storage.db; ...
28.696629
140
0.701253
ef3efa90a997b02280b2311bf40d6805b8533352
323
package io.itcast.cfc.dto.out; import lombok.Getter; import lombok.Setter; import lombok.ToString; @ToString @Getter @Setter public class AdministratorListOutDTO { private Integer administratorId; private String username; private String realName; private Byte status; private Long createTimestamp;...
17.944444
38
0.767802
d83babcf6452caabd65f379b2c1dd6ec8e37907c
20,394
/* * 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 ...
27.975309
99
0.613514
7e05d2c05f5526f9d2caad08388eef06c54380c5
4,158
package rainbow.db.ant; import java.io.IOException; import java.io.PrintWriter; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import picocli.CommandLine; import picocli.CommandLine.C...
32.232558
105
0.683261
b1c1b5c711c2abf49768a8a5290a9d38568a4be4
1,176
package ImageSmoother; /** * Given a 2D integer matrix M representing the gray scale of an image, you need to design a * smoother to make the gray scale of each cell becomes the average gray scale (rounding down) of * all the 8 surrounding cells and itself. If a cell has less than 8 surrounding cells, then use as ...
32.666667
99
0.44983
50ac513b3db22307f7738061d8ce5bc7ba88bca0
1,464
package com.artaeum.uaa.controller.utils; import org.junit.Test; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.http.HttpHeaders; import java.util.ArrayList; import java.util.List; import sta...
40.666667
90
0.676913
4b50c88a854549bcd9b1c946109b68eda7d77a8d
758
package com.mycompany.horadosistema; import java.awt.Dimension; import java.awt.Toolkit; import java.util.Date; import java.util.Locale; public class HoraDoSistema { public static void main(String[] args) { Date relogio = new Date(); Locale idioma = Locale.getDefault(); Toolkit...
28.074074
81
0.58971
52ebe07882f44b463d0621cdd35a3f8d0b2f4336
17,993
/* * Copyright (C) 2008-2013 The Android Open Source Project, * Sean J. Barbeau * * 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 * ...
36.870902
160
0.64375
b45f0f8db5b9cc5fb2d73f53c7d2bda82770c25f
3,436
/** * Copyright 2011 Peter Murray-Rust et. al. * * 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 * * Unles...
32.11215
85
0.716822
970eeae4b1e9604cd515eb5db2a9592427045bbb
8,843
package ru.stqa.pft.addressbook.appmanager.appmanager; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.support.ui.Sleeper; import org.testng.Assert; import ru.stqa.pft.addressbook.appmanager.model.ContactData; import ru.stqa...
37.790598
107
0.624223
884f9bfb1bc7ca64625fcd190dfae184b33eff3c
766
package xyz.erupt.zeta_api.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.ComponentScan; import org.springframework.stereotype.Component; import java.util.List; /** * @author liyuepeng * @date 2019-10-31. */ @Da...
21.277778
88
0.758486
0a1e26371f8db5ea573a8f355e794e48f24ae5f1
10,783
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.extractor; import org.elasticsearch.action...
42.286275
130
0.633961
889151a5772997fb260ec62c327c8211e3567288
1,886
/* */ package jp.cssj.homare.xml.a; /* */ /* */ import jp.cssj.homare.xml.d; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ publ...
27.735294
131
0.460764
7007eb4b9a2126302bc0294d4f179b970c1de8a0
3,984
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.ap...
25.538462
84
0.642068
60c973b3039b7cf4314ffe0df8166817d10cc15f
1,187
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.core.transform.transforms.pivot; import org....
30.435897
90
0.764111
e09070b71fc3a85e165e3b10cb860ee58322847f
50
package cs451; public class HashMap<T1, T2> { }
8.333333
30
0.68
fce36cf80938ce0c31a993e528bd7e6d80986783
1,095
package de.notecho.spotify.bot.modules.commands; import de.notecho.spotify.bot.instance.BotInstance; import de.notecho.spotify.bot.modules.Command; import de.notecho.spotify.database.user.entities.module.Module; import de.notecho.spotify.database.user.entities.module.ModuleEntry; import de.notecho.spotify.module.Modul...
37.758621
141
0.723288
64626828df7839d776dea07707d5516a0ec61358
18,755
package org.alj.lightstick.lightsticksender; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.media.AudioManager; import android.media.ToneGenerator; import...
32.845884
120
0.575153
ac4eee85673f7e342bf9458b634526dd690ecc18
1,408
/** * Copyright © 2021 Ingram Micro Inc. All rights reserved. * The software in this package is published under the terms of the Apache-2.0 * license, a copy of which has been included with this distribution in the * LICENSE file. */ package com.cloudblue.connect.internal.config; import com.cloudblue.connect.inte...
45.419355
82
0.821733
fb0a3e0bb01d892ea3b2426759c5f9fb9acf245a
8,659
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|// Copyright (C) 2017 The Android Open Source Project end_comment begin_comment comment|// end_comment begin_comment comment|// Licensed under the Apache License, Version 2.0 (the "License"); end_comment begin_comment comment|// you m...
14.079675
185
0.806098
deea5b808a76102d112e960d2ad66d03ed1a51d1
1,252
package br.com.eduspaceandroid.cursoandroid.eduspace.Adapter; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import br.com.eduspaceandroid.cursoandroid.eduspace.fragment.ManhaFragment; import br.com.eduspaceandroid.curso...
27.217391
75
0.654153
6c98f007f4235f85ff307e9991b22d08aa01de22
2,477
package de.gw.auto.reports; import net.sf.dynamicreports.jasper.builder.JasperReportBuilder; import net.sf.dynamicreports.report.builder.DynamicReports; import net.sf.dynamicreports.report.builder.column.Columns; import net.sf.dynamicreports.report.builder.component.Components; import net.sf.dynamicreports.report.cons...
32.168831
70
0.750505
09501b1800aaa452914eea8511890fb9c68e564e
7,385
/* ** GENEREATED FILE - DO NOT MODIFY ** */ package com.wilutions.mslib.outlook; import com.wilutions.com.*; /** * RuleActions. * */ @CoClass(guid="{000610CE-0000-0000-C000-000000000046}") public class RuleActions extends Dispatch implements _RuleActions { static boolean __typelib__loaded = __TypeLib.l...
47.645161
100
0.714557
543ef94c69d7a47f963dc03a0ffd85bd22f3d5fe
2,671
/* * 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.469697
164
0.781355
59c08d5feba344b9cf8370177b5e624e4dc98d02
2,795
package io.ganguo.app.gcache; import io.ganguo.app.gcache.disk.DiskBasedCache; import io.ganguo.app.gcache.disk.DiskWithMemoryCache; import io.ganguo.app.gcache.interfaces.GCache; import io.ganguo.app.gcache.interfaces.Transcoder; import io.ganguo.app.gcache.memory.MemoryCache; import io.ganguo.app.gcache.transcoder.S...
25.642202
66
0.742755
61f89e447b9511a0fd33fb054206e46e31bb9d00
1,495
/* * Copyright 2020 MISHMASH I O OOD * * 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...
31.808511
75
0.676923
a798f07f1ae0c3a83d1f51896601448d6fe90612
1,419
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
44.34375
144
0.817477
89747df1f7d0350bc0087f8bcd7ced8452ec72fb
858
package com.shengfq.jvm; import java.util.Vector; public class HeapAlloc { public static void main(String[] args) { printDumpOOM(); } public static void printMemory(){ printRuntime(); byte[] b=new byte[1*1024*1024]; System.out.println("分配了1M空间给数组"); printRuntime(); b = new byte[4*1024*1024]; ...
22.578947
65
0.670163
36b60697dfc5f72f7a67d0abc4d2b5e862286130
5,338
package com.ideandadream.rainydaygames; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.android.volley.AuthFailureError; import...
35.825503
132
0.604159
3e3ec3959fd74d617885d3c4810bd9264dd604b7
3,272
/* * ----------------------------------------------------------------------------- * VIPER SOFTWARE SERVICES * ----------------------------------------------------------------------------- * * MIT License * * Copyright (c) #{classname}.html #{util.YYYY()} Viper Software Services * * Perm...
37.609195
111
0.558985
dee702889299c2fbd0521a0312c372587b537633
2,333
/* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
36.453125
111
0.690956
3fed77102c60decda99a2638d0f4675ad1d13843
2,277
package com.cluster.employeeproject.entity; // Generated Feb 28, 2013 3:50:08 PM by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationT...
25.58427
96
0.77119
b79a5ae5f0dc511a2cd0ff966d70a87968468413
3,733
/** * Copyright 2007-2015, Kaazing Corporation. 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 * * Unles...
36.960396
118
0.641575
bb85fae1a77615514631eef8369051e257d4b3dc
1,972
package org.ffpy.easyexcel; import com.sun.istack.internal.Nullable; import java.beans.PropertyDescriptor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * 属性辅助类 */ class PropertyHelper { private PropertyDescriptor propertyDescriptor; /** * 创建一个PropertyHelper对象 * ...
20.329897
73
0.699797
e369a08a00ace83782f5a1057004c8c3f8df6712
150
package club.yuit.oauth.boot.support.properities; /** * @author yuit * @date 2019/11/26 15:33 **/ public enum CodeStoreType { session,redis }
15
49
0.686667
4b947239d51f2e7265b0e9d0226ddb8a336e1222
1,786
package com.miicaa.base.share.contact; import java.util.ArrayList; import android.content.Context; import android.content.Intent; import android.view.View; import com.miicaa.base.share.ShareMain; import com.miicaa.home.ui.contactGet.ContactViewShow; import com.miicaa.home.ui.contactList.ContactUtil; import com.miica...
23.194805
77
0.714446
16a0e3325081c2f028218869d20bcb009d90ed57
1,339
class Program1 { static int fn(int n) { if (n == 0) { return 1; } else if (n == 1) { return 3; } else if (n == 2) { return 2; } else if (n % 2 == 1) { return fn(n - 1) - 2 * fn(n - 2); } else { return fn(n - 2) + 3 * fn(n - 3); } } static int fn_akum(int f0...
20.921875
80
0.363704
8fed1da052f25d044a0022f88f87258ac27fa587
9,509
package com.keqiang.table; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; import android.os.Build; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import androidx.annotation.Nullable; im...
24.571059
108
0.611
f0fdc866d3bf300326a2f3dea0db7d5209815644
5,712
package client; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.AsynchronousSocketChannel; import java.nio.channels.CompletionHandler; import java.security.KeyStore; import java.security.PrivateKey; import java.security.SecureRandom; import java.util.concurrent.BlockingQueue; i...
32.089888
105
0.720588
f2c921ec37fcf0cd8a80cd4298bae50b7544df08
6,619
package es.gob.jmulticard.jse.provider.ceres; import java.security.Provider; import java.security.ProviderException; import es.gob.jmulticard.apdu.connection.ApduConnection; import es.gob.jmulticard.card.fnmt.ceres.Ceres; /** Proveedor criptogr&aacute;fico JCA para tarjeta FNMT-RCM.CERES. * Crea dos servic...
55.158333
145
0.677595
c1b54e093d851c6063964bb9e0995a51a0f9e5c8
1,730
package com.myland.framework.common.utils; import com.myland.framework.common.utils.validator.Assert; import net.sf.cglib.beans.BeanCopier; import org.apache.commons.lang3.ClassUtils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * 缓存BeanCopier工具 * * @autho...
30.350877
83
0.707514
f5a982df3cffeba4b8678f9f628fae155c6cc570
2,123
package hu.elte.LifeBookProject.controllers; import hu.elte.LifeBookProject.controllers.EatingHabitController; import hu.elte.LifeBookProject.repositories.EatingHabitRepository; import hu.elte.LifeBookProject.entities.EatingHabit; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith...
32.661538
89
0.715026
35b72f298faac4edab26c446824b69b5251b564a
1,943
/** * Generated by OpenJPA MetaModel Generator Tool. **/ package com.x.component.core.entity; import com.x.base.core.entity.SliceJpaObject_; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.Date; import javax.persistence.metamodel.ListAttribute; import javax.persistence...
49.820513
102
0.817293
1e322a248e3d77a7f7e99a5a5e9460a0b608f546
466
package org.nzbhydra.indexers; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Collection; public interface IndexerRepository extends JpaRepository<IndexerEntity, Integer> { IndexerEntity findByName(String name); Collection<IndexerEntity> findByNameNotIn(Collectio...
25.888889
83
0.759657
a5e02d64a7d1f7f4afe9cfbcca7dfe18b70ae293
337
package javamoneyexamples.jsf.money.exchange; import javax.enterprise.inject.Produces; import javax.money.convert.ExchangeRateProvider; import javax.money.convert.MonetaryConversions; public class ExchangeRateProducer { @Produces public ExchangeRateProvider get() { return MonetaryConversions.getExchangeRateProvi...
24.071429
60
0.827893
7783a21dd87c8f96c38dd2937d9360aaa2847132
293
package cn.zull.netty.mock.common.global; import cn.zull.netty.mock.common.constants.IMessage; /** * @author zurun * @date 2018/5/12 12:10:21 */ public class CipherException extends IflytekRuntimeException { public CipherException(IMessage errCode) { super(errCode); } }
19.533333
62
0.716724
b4e71023c86b7ef2af6914054a06dabccdf782e8
1,299
package com.xfhy.architecturedemo.room.bean; import android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Embedded; import android.arch.persistence.room.Entity; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.PrimaryKey; /** * Created by xfhy on 201...
24.980769
55
0.582756
90396c2001f431a239526316ed4d7c47443392e9
1,520
package io.metadew.iesi.metadata.configuration.type; import io.metadew.iesi.metadata.definition.script.type.ScriptType; import io.metadew.iesi.metadata.definition.script.type.ScriptTypeParameter; public class ScriptTypeParameterConfiguration { private ScriptTypeParameter scriptTypeParameter; // Constructors...
38
110
0.754605
8a25ef485f4342bd627899f60b39fcf7932af615
2,262
package codeGeneration.xml; import com.intellij.openapi.editor.Document; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import specification.definitions.Definition; i...
30.16
93
0.691424
b0db94a0c9c2b33994525a7e876390dbb6d9c52e
272
package com.github.jgzl.common.core.exception; /** * 基础异常码接口 * * @author lihaifeng * @since 2020-09-27 */ public interface BaseExceptionCode { /** * 异常编码 * * @return code */ int getCode(); /** * 异常消息 * * @return 异常信息 */ String getMessage(); }
10.461538
46
0.588235
164ed728e5ffe5a69eb21679f650ea8222d4e440
2,010
/** * Copyright (C) 2006-2018 Talend Inc. - www.talend.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
34.655172
129
0.748756
1f0b4b044022fa4930524c356e6ec8538f536f00
635
package nl.ekholabs.escode.graphics; import nl.ekholabs.escode.core.EsCodeGenerator; import java.awt.Graphics; import java.util.List; import javax.swing.JComponent; public class GeneratedCanvas extends JComponent { private static final long serialVersionUID = 8660447244732117207L; private final List<EsCodeCol...
23.518519
68
0.774803
1c01a2fd1f446b45af709c36e2d604898048db36
157
package io.wisoft.java_seminar.chap07.sec07.exam04_vehicle; public class Vehicle { public void run() { System.out.println("차량이 달립니다."); } }
19.625
59
0.675159
3fc860c855cf5fabe72d5b617289f097e0e03102
5,217
package u.aly; import java.util.Collections; import java.util.EnumMap; import java.util.Map; public class az extends cj<az, az.a> { public static final Map<az.a, cl> a; private static final bR d = new bR("PropertyValue"); private static final bK e = new bK("string_value", 11, 1); private static final bK f = n...
21.828452
149
0.594786
2571bde29e3e5ca79a4d7d3c1dd7ed6586f681dc
12,468
package io.github.maximmaxims.thesimpsonsdatabasemobile; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import androidx.preference.PreferenceManager; import com...
44.212766
172
0.564485
5ce5f8820223f1fb5531427c6cf724c0e12fe37c
4,580
/** * */ package org.vsg.crawler.service.impl; import java.io.File; import java.io.IOException; import javax.inject.Inject; import javax.inject.Named; import org.iq80.leveldb.CompressionType; import org.iq80.leveldb.DB; import org.iq80.leveldb.DBException; import org.iq80.leveldb.Options; import or...
22.23301
100
0.631659
36e2466d851314a758975238cdf80ecf2c8c9235
10,253
/* * MIT License * * Copyright (c) 2018 Isaac Ellingson (Falkreon) and contributors * * 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 ...
43.444915
206
0.767775
73cf79c6f60d275548a27a68b59550b8f02fec83
1,115
package com.github.rozumek29.plantseekerpanel.data.service; import com.github.rozumek29.plantseekerpanel.data.entity.PottedPlant; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.vaadin.crudui.crud.CrudListen...
24.23913
70
0.727354
644222abdec2f1863404692fa319569d2b8f6589
6,125
/* * Copyright 2017-present Facebook, 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...
36.458333
100
0.728
9c7281ca4cf37ee303823a6c829c18fa63650960
3,455
package io.rukkit.plugin; import io.rukkit.*; import io.rukkit.util.*; import java.io.*; import java.util.*; import org.yaml.snakeyaml.*; public abstract class RukkitPlugin implements Plugin { String pluginName; String pluginVersion; String mainClass; boolean isEnabled; private Logger log; public RukkitPlugin(...
26.174242
114
0.685962
9950dcf2d607baaed1e95b22eef33e56e48250dc
133
package it.qbteam.persistence.areautils; public interface CoordinateFactory { Coordinate buildCoordinate(double y, double x); }
22.166667
51
0.796992
0c4f55bfcc0f68cf487c6abae063d12d81690c8c
21,489
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. See terms of license at gnu.org. */ package org.atalk.impl.neomedia.jmfext.media.protocol.video4linux2; import java.io.*; import javax.media.*; import javax.media.control.*; import javax.media.format.*; impo...
31.788462
97
0.700079
11fff13702db26c057a8d24c11ed2eea42f1fd16
1,539
import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.util.stream.Stream; import java.lang.Thread; public class GnawResources { //Read file content into the string with - Files.lines(Path path, Charset cs) private static Strin...
30.176471
93
0.598441