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
6f1ad4c426c6bad81517902fec9229bc13049a5f
840
package pl.codecity.main.request; public class PasswordUpdateRequest { private long userId; private String password; private String language; public long getUserId() { return userId; } public void setUserId(long userId) { this.userId = userId; } public PasswordUpdateRequest withUserId(long userId) { ...
17.5
61
0.735714
ac770149b5e6e7c7b0428a73acfb1d87ec3e1bb9
171
@NonNullApi @NonNullFields package gaarason.convention.starter.webflux.request; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullFields;
34.2
52
0.865497
efb3a3b1330dcc96c3e192ab9d4d68f04bfe1a02
990
package de.tu_darmstadt.sport.fvf.adapter; import de.tu_darmstadt.sport.fvf.FVF; import de.tu_darmstadt.sport.fvf.adapter.arduino.ArduinoCycleAdapter; import de.tu_darmstadt.sport.fvf.adapter.arduino.ArduinoLedAdapter; import de.tu_darmstadt.sport.fvf.adapter.stub.StubCycleAdapter; import de.tu_darmstadt.sport.fvf.ada...
35.357143
69
0.812121
daa487480b6a328c83ee4b2637be8065c7ed0b01
184
package mlp.activationfunction; import java.io.Serializable; public interface ActivationFunction extends Serializable { double activate(double z); double derive(double z); }
20.444444
58
0.782609
6d0fcc895699cde99b5feebd6941322f77a6b2bc
262
package math.geometry.exceptions; public class GeometryException extends Exception { private String mensagem; public GeometryException(String mensagem) { super(mensagem); this.mensagem = mensagem; } public String getMessage() { return mensagem; } }
18.714286
50
0.763359
dcf57770ec00269badbd63993362ebc940a2968a
77,168
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.v4.app; import android.content.*; import android.content.res.Configuration; import android.os.*; import android.support.v4.util.Si...
40.851244
175
0.58348
e1b0a3de20ce168d9b5ccdeb5061a4285db083d0
8,118
package com.sendgrid.typechecker; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.JsonNodeType; import java.util.List; import java.util.Objects; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; import java.util.stre...
37.410138
95
0.632422
2919243ffd33fa441f13fe6961f231a29ce0459d
1,498
// Space: O(n) // Time: O(n) /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val; } * TreeNode(int val, TreeNode left, TreeNode right) { * this.val = val; * ...
27.236364
62
0.489319
e79aba546017062905d298bfb98b33fb16327fdb
1,720
package ru.stqa.javacourse.addressbook.tests; import org.testng.Assert; import org.testng.annotations.Test; import ru.stqa.javacourse.addressbook.model.ContactData; import ru.stqa.javacourse.addressbook.model.GroupData; import java.util.Comparator; import java.util.HashSet; import java.util.List; public class Contac...
40.952381
199
0.712209
c95670000de1a693caa4a238f261afdbdc6f50e9
9,867
// Copyright 2017 Google 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 in...
45.893023
98
0.759603
ffa6e49c06ba1c4fae8c537f6d624c642235f4ea
436
package io.smartlogic.smartchat.hypermedia; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; public class HalErrors { @JsonProperty("_embedded") protected Embedded embedded; public Map<String, List<String>> getErrors() { return embedded.errors; ...
20.761905
53
0.692661
bb0f66938beb4a725a59117af24a832f49674f88
618
package com.microsoft.bingads.v13.api.test.entities.ads.responsive.write; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({BulkResponsiveAdWriteFromRowValuesBusinessNameTest.class, BulkResponsiveAdWriteFromRowValuesT...
36.352941
73
0.857605
6a6b683aa07c9206ec2efa57039c1338da2ba798
750
package com.lookfirst.wepay.api.req; import lombok.Data; import lombok.EqualsAndHashCode; import com.lookfirst.wepay.api.AppUri; /** * https://stage.wepay.com/developer/reference/app * * This call allows you to lookup the details of your API application. * * @author Jon Scott Stevens * @author Jeff Schnitzer ...
25
104
0.734667
acb28e5ffe747cca21adeb370774e04aec63c447
249
package com.timbuchalka; /** * Created by dev on 17/10/2015. */ public abstract class Player { private String name; public Player(String name) { this.name = name; } public String getName() { return name; } }
14.647059
32
0.594378
480568a6b17c30669ccfa60696675592672ed5b4
9,003
package de.bund.bva.isyfact.benutzerverwaltung.core.benutzerverwaltung.passwordpolicy.impl; import java.util.ArrayList; import java.util.List; import de.bund.bva.isyfact.benutzerverwaltung.common.exception.BenutzerverwaltungBusinessException; import de.bund.bva.isyfact.benutzerverwaltung.common.exception.Benutzerverw...
43.076555
112
0.764523
6ea34d46b6a8e5c4f6913bee03c2ed69616d5c68
1,681
public class ExceptionDemo { public static void main(String[] args) { System.out.println("Start the process"); try { int number = Integer.parseInt(args[0]); // args[0] is command line input from user // Integer.parseInt() is used to typecast string into integer ...
42.025
119
0.579417
9f950cc2593536ee52d4361774543bc25aeeee5f
1,766
package li.fyun.commons.security.controller; import li.fyun.commons.security.entity.Permission; import li.fyun.commons.security.entity.Role; import li.fyun.commons.core.controller.RestResourceController; import li.fyun.commons.security.repository.RoleRepository; import li.fyun.commons.security.service.SecurityService;...
33.320755
80
0.710646
80a98f2c38b999a1ec04eb75309b9398ff68f4e7
1,377
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
32.785714
88
0.75236
f352c5388010df8c9387c65c28037b283b845cf8
2,372
package top.usking.plugin.smart.monkey.codeline; import top.usking.plugin.smart.monkey.codeline.print.Printer; import top.usking.plugin.smart.monkey.codeline.process.Context; import top.usking.plugin.smart.monkey.codeline.process.ProcessorFactory; import top.usking.plugin.smart.monkey.codeline.resource.Resource; impor...
32.054054
111
0.617622
ecc6bf0e9846550db24d52511ba9c88f400384e0
785
package gov.uspto.patent.model; /** * * * WIPO 3.14 * * * * A reference to a document considered relevant to the examination of a patent application. * Citations may be made by the inventor, applicant, but most tend to be made by the examiner. * Examiner citations are generally more limiting in scope. ...
20.657895
94
0.73121
39c2865b0a84143b1e7bbf299efe9337f7a01fc5
3,809
package com.sipstacks.redneck; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Hashtable; import java.util.Random; import java.util.Vector; import java.lang.StringBuffer; public class Markov { // Hashmap public static Hashtable<String, Vector<String>> m...
24.895425
103
0.635862
97df14473879436a34683333bb45791b6a4fccb6
400
package org.amidukr.software.vnf.server.repository.entities; import java.util.concurrent.ConcurrentHashMap; /** * Created by Dmytro Brazhnyk on 6/10/2017. */ public class StoreOwnerEntries { private final ConcurrentHashMap<StoreEntry, Object> storeEntries = new ConcurrentHashMap<>(); public ConcurrentHashM...
26.666667
97
0.755
0b6237c9c9bc440f2c8eb52f19bde0961669656c
375
package soya.framework.commons.cli.commands; import soya.framework.commons.cli.Command; import java.util.Base64; @Command(name = "base64-decode", uri = "resource://base64-decode") public class Base64DecodeCommand extends ResourceCommand { @Override public String call() throws Exception { return new S...
26.785714
66
0.736
c13672a6ba971d43210d2b17c6146483617c6c3d
4,101
package org.cirdles.topsoil.app.control.plot; import javafx.fxml.FXML; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.ToolBar; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.VBox; import org.cirdles.topsoil.app.control.plot.panel.PlotPropertiesPanel; import...
28.479167
117
0.620337
d2f82151bf0d30b691d48865a5e634765bccf73f
799
package com.billy.android.loadingstatusview.wrapfragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentTransaction; import com.billy.android.loadingstatusview.R; /** * demo: wrap fragment * @author billy....
30.730769
89
0.763454
2b9e5d8ecc51147ce138b966ee88f9bccb179b54
5,893
/* This file is part of the Greenfoot program. Copyright (C) 2005-2009,2010,2012,2014,2015,2018 Poul Henriksen and Michael Kolling 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 ver...
31.682796
140
0.639063
c832a5c49d62090c652b598e37de81cfb8690be0
6,352
package com.browseengine.bobo.facets.data; import it.unimi.dsi.fastutil.longs.LongArrayList; import java.util.Iterator; import java.util.List; public class TermFixedLengthLongArrayList extends TermValueList<long[]> { protected long[] _elements = null; protected int width; private final long[] sanity; privat...
22.931408
111
0.562815
2655c357b976b57b906cdea55962dea54916b224
1,572
package eu.bcvsolutions.idm.core.bulk.action.impl.eav; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Description; import org.springframework.stereotype.Component; import com.google.common.collect.Lists; import eu.bcvsolutions.idm....
29.111111
122
0.80598
4c52bed1fa1fe8d68f5220e7090ff31205beea6e
2,798
/*-----------------------------------------------------------------------------' Copyright 2016 - InCadence Strategic Solutions Inc., All Rights Reserved Notwithstanding any contractor copyright notice, the Government has Unlimited Rights in this work as defined by DFARS 252.227-7013 and 252.227-7014. Use of this...
43.046154
109
0.689421
c3db7d736a0a09d19ce6f5f32f56b202d6b85fdf
2,768
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package tatc.architecture.variable; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.moeaframework.core.PRNG; import org.moeaframew...
34.17284
167
0.636199
dc1c9569f33fabd901bb4fa280619c93a16ce786
18,502
/* * This file is generated by jOOQ. */ package com.yueya.system.dao.tables.records; import com.yueya.system.dao.tables.SysMenu; import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; import org.jooq.Record18; import org.jooq.Row18; import org.jooq.impl.UpdatableRecordImpl; /** * This class...
19.133402
316
0.512647
36b68c34940e2a6c651c13c09a9e05b90fb8c194
2,750
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
40.441176
171
0.769818
d5b7c7654e4c031c33f27bc8a6d4759f8319d6dd
1,455
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for TaxType3Code. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="TaxTy...
25.982143
200
0.661168
2c04dd851c446076a9a11590b26ec440ec955a06
2,280
package pl.edu.agh.gratex.parser.elements.edge; import pl.edu.agh.gratex.model.GraphElement; import pl.edu.agh.gratex.model.edge.Edge; import pl.edu.agh.gratex.model.graph.Graph; import pl.edu.agh.gratex.model.vertex.Vertex; import pl.edu.agh.gratex.parser.elements.ParseElement; import java.util.regex.Matcher; import...
33.043478
114
0.659211
75d59368fe12ae314482e00a90d79e39fe7c21b8
297
package com.lim.bms.sys.role.service; import com.baomidou.mybatisplus.extension.service.IService; import com.lim.bms.sys.role.entity.SysUserRole; /** * <p> * 用户角色关系表 服务类 * </p> * * @author lim * @since 2020-03-06 */ public interface ISysUserRoleService extends IService<SysUserRole> { }
17.470588
68
0.723906
469817edaf97b4741005108b718170dd52dfb430
7,599
package xmlLibs; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import org.jdom2.Document; import org.jdom2.Element; import basicLibs.FileWriter; import objects.MusicPiece; /** * Diese Klasse stellt eine XML zu HTML Transformation bereit. * * @author robinkopitz * */ ...
47.792453
236
0.584945
d73e14a0de28b8b0ccdcd90a41b166f0043143b0
634
package party.lemons.delivery.store; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; public class Store { private String name; private ItemStack stack = new ItemStack(Items.EMERALD); public Store(String name) { this.name = name; } public String getName() { return name; } @Overri...
14.744186
67
0.708202
b3a0903e1398e2eab5eeac1c4c123144dcb943a7
5,221
package anisopedctm; import java.util.Hashtable; import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math3.analysis.solvers.BisectionSolver; /** * Class representing Weidmann Fundamental diagram * * @author Flurin Haenseler, Gael Lederrey * */ /* * Fundamental diagram as p...
21.754167
98
0.694886
cdedd19c2c735d614784aed30eab4dbcbe4a5a62
1,025
package am.jsl.personalfinances.web.controller; import am.jsl.personalfinances.domain.user.User; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.web.bind.annotation.ControllerAdvice; import org.spr...
34.166667
89
0.739512
769566b08ede745c54e26dbcdb8a34082d36d1bf
1,873
/* * Copyright 2017 VMware, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
32.293103
97
0.721303
bb0243a81c53be8f35a0afda12de616a05a8a6fb
4,074
package com.samsungsds.analyst.code.checkstyle; import com.puppycrawl.tools.checkstyle.Main; import com.samsungsds.analyst.code.main.MeasuredResult; import com.samsungsds.analyst.code.util.FindFileUtils; import com.samsungsds.analyst.code.util.IOAndFileUtils; import com.samsungsds.analyst.code.util.SystemExitDisabler;...
35.426087
119
0.669367
76a91dd32aa463c9fc5e60662a585886f8d451d5
24,010
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
47.170923
148
0.726905
41196a28a099ecb2b68d8afaac92f4820402fac1
6,912
/* * Copyright 2012-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
42.146341
114
0.804398
13000b751e7ee2cf92525399b5bc8cb7b1d2bfbb
1,474
package chapter12.wrapperClasses; public class Autoboxing { static void executeTheMethod(Integer variable) { System.out.println("executeTheMethod() received: " + variable); } static int executeTheMethod2() { return 27; } static Integer executeTheMethod3() { return 81; // а...
38.789474
104
0.675712
239e809cc94536945e617595ad77b74104d8aa14
73,671
package com.qiniu.entry; import com.aliyun.oss.ClientConfiguration; import com.aliyun.oss.common.comm.Protocol; import com.baidubce.services.bos.BosClientConfiguration; import com.google.gson.JsonObject; import com.obs.services.ObsConfiguration; import com.qcloud.cos.ClientConfig; import com.qcloud.cos.http.HttpProtoc...
60.287234
137
0.665961
eeb9daae5e845b33774813d52d866be65b2272d7
470
package org.hswebframework.web.workflow.flowable.entity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel("工作流模型创建请求") public class ModelCreateRequest { @ApiModelProperty(value = "模型标识",example = "test_model") private String key; ...
23.5
60
0.746809
dd3ffda4e30c73a09c7dbb41c96d62d9dad1d523
206
package jogogalo.core; public class PecaJogador1 extends Peca { public PecaJogador1() { } public String obtemSimbolo() { return "x"; } public String devolveJogador() { return "Jogador 1"; } }
12.875
40
0.68932
229aa63ab233d88ca8d18c722b71ed33d3422a85
1,453
package com.faforever.api.data.domain; import com.yahoo.elide.annotation.Include; import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import ...
22.353846
70
0.746731
cfb973fa745ee3b0ab8e26e7dba67702d3fc18f4
274
package com.rpg.framework.test; public class CloudClient { public static void main(String args[]) { Client client = new Client(args[0], "admin"); // Client client = new Client(); if(client.initialize()) { client.start("128.199.255.44", 8463); } } }
22.833333
48
0.635036
8072656e929b1490c5752ed8e7fb5cb97c0f0fa2
3,162
package it.chicio.minesweeper; import it.chicio.minesweeper.field.formatter.FieldFormatterWithNewlines; import it.chicio.minesweeper.field.formatter.FieldsFormatterWithHeader; import it.chicio.minesweeper.field.parser.*; import it.chicio.minesweeper.field.resolver.FieldResolverByIteratingThroughEachValue; import it.ch...
53.59322
115
0.687856
2c525c8511c8f1931e37ad43dc61c6cbc36fa0cd
480
package leetCode; import java.util.ArrayList; import java.util.List; public class LeetCode1557 { public List<Integer> findSmallestSetOfVertices(int n, List<List<Integer>> edges) { int[] indegree = new int[n]; for (List<Integer> edge : edges) { indegree[edge.get(1)]++; } List<Integer> result =...
21.818182
84
0.602083
683ac001186bc568916a53316da23a0ad0ca1f82
356
package com.sk.appupdate.net; import java.io.File; /** * Created by smark on 2020/6/8. * 邮箱:smarkwzp@163.com * 网络请求待实现接口 */ public interface INetManager { void get(String updateUrl, INetCallBack callBack, Object tag); void downloadApk(String apkUrl, File apkFile, INetDownloadCallBack callBack, Object ta...
19.777778
93
0.724719
a73565226c2da05ee9f9738dbe132cf6f172d6cf
6,157
package org.ovirt.engine.core.bll; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; import org.ovirt.engine.core.common.action.VdcActionParametersBase; import org.ovirt.engine.core.common.action.VdcActionType; import org.ovirt.engine.core.common.action.VdcReturnValueBase;...
41.884354
133
0.55644
0a8028668f3e647dc612d87c99ee429fa773408c
4,317
/* * Copyright (c) Heru Himawan Tejo Laksono. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
31.057554
86
0.673153
774a814e0f51e7d736d538954cea1cf257ffbb27
340
package com.mooveit.fakeit.models; import android.databinding.BaseObservable; import android.databinding.ObservableField; public class PokemonData extends BaseObservable { public final ObservableField<String> pokemonName = new ObservableField<>(); public final ObservableField<String> pokemonLocation = new Ob...
34
83
0.808824
6c7a9f81ab068bae77c3f1626f9611b55b1d8d19
1,434
package de.codecentric.reedelk.platform.services.scriptengine.evaluator.function; import de.codecentric.reedelk.runtime.api.commons.ScriptUtils; import de.codecentric.reedelk.runtime.api.script.dynamicvalue.DynamicValue; import java.util.List; import static java.util.Arrays.asList; public class FunctionDefinitionBu...
38.756757
101
0.733612
2260bf5013a846b2200f9792dabd5518d729d51f
1,443
package com.example.lyl.wandroid.presenter; import android.util.Log; import android.widget.Toast; import com.example.lyl.wandroid.modle.NetTool; import com.example.lyl.wandroid.modle.bean.HomeArticalBean; import com.example.lyl.wandroid.view.iview.IHomeFragment; import com.example.lyl.wandroid.view.ui.MainActivity; ...
32.066667
90
0.616078
cfbbaa45b1810d86b34bd66b1cd5cd62eac8dfa2
3,635
/* * 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 ...
38.263158
93
0.713343
6a11ebd9ccaeca6a64ced045662d53e60cce0169
3,186
/* * ********************************************************************************************************************* * * TheseFoolishThings: Miscellaneous utilities * http://tidalwave.it/projects/thesefoolishthings * * Copyright (C) 2009 - 2021 by Tidalwave s.a.s. (http://tidalwave.it) * * ***************...
35.4
120
0.500314
c94789c6b14af071ef31b5d7e9c8ca48e2855ed4
1,238
package de.nevini.core.resolvers; import de.nevini.core.command.CommandEvent; import de.nevini.util.command.CommandOptionDescriptor; import lombok.NonNull; import org.apache.commons.lang3.StringUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; public abstract class FlagResolver { private fi...
29.47619
94
0.624394
cdedc50d8bb5302a648e3b03754b533abb497f8a
2,348
package com.example.apptest.repository; import com.example.apptest.model.Course; import java.util.List; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class CourseRepository { public void createCourse(Course course, final RequestResult result) { Call<Course> call = ...
34.028986
98
0.575383
0d3650692049b83d2b60cfe1623ccda19ad619a0
407
package com.github.shuaidd.support; /** * 描述 企业微信上下文工具类 * * @author ddshuai * date 2022-01-12 09:57 **/ public class WeChatContextHolder { private static WeChatManager WE_CHAT_MANAGER; public static void setWeChatManager(WeChatManager weChatManager){ WE_CHAT_MANAGER = weChatManager; } p...
19.380952
69
0.712531
93819940f0690f74b9f220d30ad9fb5e29b4aa7b
642
package ru.compprog.function; import static java.lang.Math.abs; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class EasyFx { /** * function F(x) */ public static void main(String[] args) { int y; try (BufferedReader reader = new BufferedReader(...
20.709677
88
0.579439
f4ec7e5830adda46b8e7caff1ce003a6a6fe3402
188
package location.data.array; /** * Created by Sharukh Hasan on 9/30/16. */ @FunctionalInterface public interface ArrayConsumerAndCounter<T> { void apply(T[] values, int counter); }
18.8
45
0.723404
6cd9594be2da3f902007aa5859c6bb221e3b7ef5
359
/* * Copyright (c) 2008-2011 by Jan Stender, * Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ package org.xtreemfs.mrc.database; public interface DBAccessResultListener<T> { public void finished(T result, Object context); public void fail...
21.117647
64
0.688022
c65cbf24ca964184ff8061daffc35533b770b416
1,742
package ru.job4j.crudservlet; import org.json.JSONObject; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.TreeSet; /** * Servlet for processing requ...
37.06383
80
0.711251
623c149ea20e1ca743f859ce9c2b3b4289ffe68f
691
package net.sourceforge.ondex.filter.allpairs; /** * @author Jochen Weile, B.Sc. * */ public interface ArgumentNames { static final String WEIGHTATTRIBUTENAME_ARG = "AttributeWeight"; static final String WEIGHTATTRIBUTENAME_ARG_DESC = "The name of the Attribute type to be used as edge weights"; st...
34.55
143
0.759768
769088d123c6a29bf643b59bef96464c9d35fccf
573
package cn.ksb.minitxt.common.constants; /*** * 字符常量类 */ public class Constants { // 字符常量 启动、登录、注册、获取分类、获取小说 public static final String COMMAN_START = "start"; public static final String COMMAN_LOGIN = "login"; public static final String COMMAN_REGISTER = "register"; public static final String COMMAN_GETCLASSES...
33.705882
61
0.766143
ad89a58b97347a521c7b7c727deac9a44839d66a
1,215
package laz.tirphycraft.event.playertick; import laz.tirphycraft.registry.init.TirphycraftBiomes; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects; import net.minecraft.world.dimension...
37.96875
99
0.773663
5ef986aef0126fc3ce3f73ec1be42edccb7a6bae
2,759
/******************************************************************************* * ============LICENSE_START======================================================= * org.onap.dmaap * ================================================================================ * Copyright © 2017 AT&T Intellectual Property. A...
32.845238
84
0.603842
490568d1df25132fa1151cc1739d5400f4930ba6
12,321
/* * Copyright 2014-2020 Rudy De Busscher (https://www.atbash.be) * * 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 requir...
46.49434
160
0.748559
5e03f99e327f093a03e6689248efb88476448a20
37,110
/* * Copyright (C) 2012- Frode Carlsen * * 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 ag...
44.927361
143
0.642819
f51936a269975dade52330d23dbdac643e9f7691
1,704
/* * Copyright 2012 KTH * * 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, ...
27.483871
89
0.70716
76527c1da93d6d78822e4eb48743f87b0f40584c
4,960
import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; class Chromosome{ String key; double f; double p; public Chromosome(String key,double f,double p){ this.key=key; this.f=f; ...
16
90
0.482056
b4672b9d2deadb2ce69d31234756ae3a2362ca3f
122
package me.caneva20.Core.Generics.Actions.A3; public interface Action<T1, T2, T3> { void run(T1 t1, T2 t2, T3 t3); }
20.333333
45
0.688525
4a18a63fdcfe9e45c7b387042ea1e316ce70642c
245
package org.blueskiron.goldilocks.api.messages; import java.util.Set; public interface MembershipMessage { /** * @return */ public String getStateMachineId(); /** * @return */ public Set<String> getAcknowledgements(); }
13.611111
47
0.673469
86938d6ee813b64af7b70ebf4d9e15e60da5ef35
1,223
package org.ovirt.engine.core.common.scheduling; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.validation.constraints.NotNull; import org.ovirt.engine.core.compat.Guid; public class PerHostMe...
23.980392
80
0.645953
14e891ce982beddf686451312e633c38353eb0d4
664
package ro.ase.csie.cts.g1094.dp.flyweight; public class TestFlyweight { public static void main(String[] args) { HotelGallery hotelGallery1 = new HotelGallery(); HotelGallery hotelGallery2 = new HotelGallery(); hotelGallery1.gallery.add(new GalleryImage("beach")); hotelGallery1.gallery.add(new GalleryIma...
26.56
58
0.762048
b19ff15b8f85a57439dccaba412d6820f8332f1a
3,677
package cn.jpush.android.data; import android.content.Context; import cn.jpush.android.api.m; import cn.jpush.android.helpers.d; import cn.jpush.android.service.ServiceInterface; import cn.jpush.android.util.a; import cn.jpush.android.util.z; import org.json.JSONObject; public final class r extends i { private st...
26.078014
114
0.535491
d520eeb3a59ca7650cd3de270fba70849f4acab8
9,851
/** * */ package codemining.lm.tsg.idioms.tui; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.Iterator; import java.util.List; import jav...
39.404
124
0.655263
0c67a1bf85cc206d5b2f79e862dbcad86c6fc58c
1,026
package com.monster.learn; import java.util.Stack; public class GetIntersectionNode160 { // 15.57% public ListNode getIntersectionNode(ListNode headA, ListNode headB) { if (headA == null || headB == null) { return null; } Stack<ListNode> stackA = addToStack(headA); ...
27
73
0.501949
95089c892b5c43fa816bca1a0697121f66a575cd
5,671
package me.leefeng.promptdialog; import android.app.AlertDialog; import android.app.ProgressDialog; import android.graphics.Color; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Toast; import com.bumptech.glide.Glid...
38.842466
118
0.598131
6de90cdfbdaffe3911ff0c79f7a11594713d6852
2,337
package com.restfully.shop.features; import jakarta.annotation.Priority; import jakarta.ws.rs.NotAuthorizedException; import jakarta.ws.rs.Priorities; import jakarta.ws.rs.container.ContainerRequestContext; import jakarta.ws.rs.container.ContainerRequestFilter; import jakarta.ws.rs.core.HttpHeaders; import jak...
28.851852
88
0.629439
faa53a9cd00fa65de0b8ca9cfc5f63d6059d8f45
1,606
/* * Copyright 2012 Objectos, Fábrica de Software LTDA. * * 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 applicab...
29.740741
80
0.727895
2d626d840ba92ea8f90173a63809f757c84d2cf5
3,253
package array; import java.util.ArrayList; public class RotateMatrix { public void rotateMatrix(ArrayList<ArrayList<Integer>> mat) { int n = mat.size(); int m = mat.get(0).size(); if (m != n) { return; } if(n == 2) { for (int j = 0, i=0; j < n - ...
29.572727
84
0.367968
30f553c97f33669a8408e373ba28d9028e08ff6a
3,984
package projects.vier_gewinnt.logic.server.protocol; import projects.vier_gewinnt.logic.server.protocol.exceptions.ArgumentException; import projects.vier_gewinnt.logic.server.protocol.exceptions.CommandException; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.util.WeakHashMap;...
28.457143
138
0.572038
4ecf731368354197ee4f95e04f950bf73098ea2e
15,451
package mcjty.sculpt.blocks; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.mine...
43.038997
135
0.652061
22b7bcfaab8eff7d72381fc149fd7fd63657bfad
5,370
package i5.las2peer.services; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.HashMap; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; ...
30.862069
116
0.73743
25649287674951122ff5de7907c633aa9997f0fe
1,958
package algs4.four; import java.util.NoSuchElementException; import edu.princeton.cs.algs4.StdIn; import edu.princeton.cs.algs4.StdOut; import edu.princeton.cs.algs4.In; import edu.princeton.cs.algs4.Stack; import edu.princeton.cs.algs4.Queue; public class DepthFirstOrder { private boolean[] marked; private Q...
25.102564
80
0.550562
077d69c3935198b667904d84f21ec7caac3d217c
15,802
/* * Copyright (c) 2002-2018, Mairie de Paris * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the...
41.584211
192
0.698013
7d8e73572a7e5dc700ca85c818d172096ec3e3dc
4,492
package org.apache.commons.csv.parser; import org.apache.commons.csv.format.CSVFormat; import org.apache.commons.csv.format.CSVFormatBuilder; import org.apache.commons.csv.format.CSVFormatPredefinedFormats; import org.apache.commons.csv.record.CSVRecord; import org.apache.commons.csv.util.Utils; import org.junit.jupit...
41.981308
122
0.506901
ed09546bd1ff3e1911928ace77ebfbfa241dbaea
1,626
package com.example.flix.models; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; import org.parceler.Parcel; @Parcel public class Movie { String title; String posterPath; String backdropPa...
23.228571
92
0.648831
e8f2b923ffcc580fcd19cd7068a95ef9cc7b02aa
2,025
/* * Copyright 2004-2005 Ignat Aleksandrov, Kamil Shamgunov * * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); * 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 req...
33.75
118
0.755062
e443e948211065015adb8c5fa74f0fab032b7a67
812
import java.util.Scanner; public class c987 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] fonts = new int[n]; int[] costs = new int[n]; for (int i=0; i<n; i++) fonts[i] = in.nextInt(); for (int i=0; i<n; i++) costs[i] = in.nextInt(); ...
20.3
47
0.536946
2f3b692f5e2d1102e93a3e0df6cd5e956ec11aa0
903
package linc.com.alarmclockforprogrammers.domain.interactor.implementation; import io.reactivex.Observable; import io.reactivex.Single; import linc.com.alarmclockforprogrammers.domain.device.Timer; import linc.com.alarmclockforprogrammers.domain.interactor.InteractorTimer; public class InteractorTimerImpl implements ...
22.02439
75
0.682171
c7567d48c939556b65031c3930382289e7bc046c
1,748
package net.epictimes.reddit.features.image_detail; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import com.github.chrisbanes.photoview.Pho...
32.981132
83
0.727689
ec3848a93a0f12cd60b0d15326251f0a6b116352
4,209
package jetbrains.mps.ide.refactoring.plugin; /*Generated by MPS */ import jetbrains.mps.workbench.action.BaseAction; import javax.swing.Icon; import org.jetbrains.annotations.NotNull; import com.intellij.openapi.actionSystem.AnActionEvent; import java.util.Map; import jetbrains.mps.nodeEditor.EditorComponent; import...
42.94898
299
0.733191
2dd3b5931c0c9df05ef713dcdb1ebef0cdb782c6
5,547
package AtmApp.Service; import AtmApp.Model.Accounts.*; import AtmApp.Model.Atm.Atm; import AtmApp.Model.Transaction.Transaction; import AtmApp.Model.Transaction.UndoTransaction; import AtmApp.Model.Transaction.TransactionPlus; import AtmApp.Repositories.AccountRepository; import AtmApp.Repositories.AtmRepos...
36.735099
126
0.692086
dacc3e2eab2d193556f15f8f7e00b950c79e71b2
627
package com.chbms.queuemgmt.data.entity; import lombok.Data; import lombok.ToString; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "PATIENT") @Data @ToString public class Patient { @Id @Column(name = "PATI...
16.945946
40
0.692185
fede46c7c008f2e377804f06b7875676bff8bd13
884
/* * Copyright (c) 2020 Andree Hagelstein, Maik Schulze, Deutsche Telekom AG. All Rights Reserved. * * Filename: IBookService.java */ package com.push.app.springboot.service; import java.util.List; import com.push.app.springboot.model.Book; // TODO: Auto-generated Javadoc /** * The Interface IBookService. ...
15.241379
97
0.631222