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
4bfd9642db5338f7ff7aca5d468eae00020e0ba9
11,408
/** * 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...
32.687679
95
0.663394
664ec573378f0dff15d135b7a9237c3589c227bd
290
package wiki.laona.factory.method; /** * @author laona * @description 接口 * @date 2021-12-08 20:26 **/ public interface IRuleConfigParser { /** * 转化 * * @param configText 配置文本 * @return {@link RuleConfig} 配置规则 */ RuleConfig parse(String configText); }
16.111111
40
0.610345
e2f759c03597cec7bbc9b3443435024450d8524c
2,126
package org.greenplum.pxf.automation.components.pxf; import org.greenplum.pxf.automation.components.common.ShellSystemObject; import org.greenplum.pxf.automation.domain.PxfProtocolVersion; import org.greenplum.pxf.automation.utils.json.JsonUtils; import org.greenplum.pxf.automation.utils.jsystem.report.ReportUtils; /...
24.72093
104
0.645814
6732eac0d09ea8b6014c592beddc58eee84cc43d
532
import java.awt.Button; import java.awt.Frame; public class FlowLayout { public static void main(String[] args) { Frame frame = new Frame("Flow Layout"); frame.setVisible(true); frame.setSize(600, 600); frame.setLayout(null); frame.add(new Button("Button 1")); fra...
25.333333
47
0.592105
e7ac63aff5fe9f162dbb7af814b3895207785058
958
package com.portfolio.steff.koinexportfolio.Models; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; import java.io.Serializable; /** * Created by steff on 28-Dec-17. */ @Entity public class Portfolio implements Serializable { @PrimaryKey(autoGenerate = true) p...
22.27907
83
0.602296
e77c8c9a6c3a680584bd72fffa064e7d4e037910
155
package com.ociweb.gl.api; /** * Marker interface for facades that implement listeners * @author Ray Lo * */ public interface ListenerTransducer { }
14.090909
56
0.722581
2c0aca525d77897309bb984fe28c43fcc16a2f6c
1,147
package com.example.kedudemo; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.AppCompatSeekBar; import androidx.appcompat.widget.AppCompatSpinner; import androidx.core.widget.ContentLoadingProgressBar; import android.os.Bundle; import android.widget.SeekBar; public class MainActivit...
30.184211
92
0.692241
e2a63e347b854d7421628d7c5709e6d58277d219
5,475
package barqsoft.footballscores; import android.annotation.TargetApi; import android.content.Intent; import android.database.Cursor; import android.os.Binder; import android.os.Build; import android.text.TextUtils; import android.widget.AdapterView; import android.widget.RemoteViews; import android.widget.RemoteViewsS...
40.858209
168
0.571142
af65514e09b87b985827a3ab8fcd7d0ac610795a
2,451
package com.stylefeng.guns.modular.system.model; import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.annotations.TableName; import j...
20.596639
58
0.579355
5584ab69ab0308e2e225260d5b7bfffbb77407b1
1,498
package com.dynatrace.loadrunner.config; import java.util.Map; import org.apache.commons.lang3.StringUtils; public class UserConfig { private final Mode mode; private final Technology technology; private final String path; private final String[] body; private final String[] header; private final String lsn; ...
22.029412
112
0.717623
af433ba961679727133fc715ea1b44f8f47c3814
279
package br.sprintdev.model.service; import br.sprintdev.model.entity.Event; import java.util.List; public interface EventService { void create(Event box); void update(Event box); void delete(Long id); Event findById(Long id); List<Event> findAll(); }
14.684211
39
0.698925
f01cb52dd1fa702f9030cbe4a5e4bfc3eee85cc4
7,877
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
34.247826
103
0.746096
d4a45d70a2109c7505c54429d0ced8fdfdf61e54
93
package annotation; @FunctionalInterface public interface AD { public void adAttack(); }
15.5
27
0.763441
5031d06b70540fa35f8520a46edbf360f24ac1d5
1,319
/* * Copyright 2017 Sage Bionetworks * * 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...
26.38
78
0.585292
0434ef299032ca896de2b7a9294d7d9ee1c62b18
1,120
package org.ovirt.engine.core.common.queries; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attribut...
32
102
0.765179
d040f43f6fe269bb5b70405b8ec4c1f18638bfdc
1,694
package com.jivesoftware.os.miru.plugin.context; import com.jivesoftware.os.filer.io.StripingLocksProvider; import com.jivesoftware.os.miru.api.activity.schema.MiruSchema; import com.jivesoftware.os.miru.api.base.MiruStreamId; import com.jivesoftware.os.miru.api.wal.MiruSipCursor; import com.jivesoftware.os.miru.plugi...
31.962264
86
0.795159
a57124580341a6c925382946f13a6b7349794fa6
1,178
package com.cordys.uiunit.eastwind; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import com.cordys.uiunit.eastwind.runtime.AclForWebServices; import com.cordys.uiunit.eastwind.runtime.AssignOrgTeamToUser; import com.cordys.uiunit.eastwind.runtim...
32.722222
69
0.825976
7e601c1c0d35a175b830bf992647bb95ccc0ae49
926
import java.util.HashSet; import java.util.Set; /* Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This is case sensitive, for example "Aa" is not considered a palindrome here. Input: "abccccdd" Output: 7 Explanation: ...
23.74359
145
0.578834
e7d11384ee9db73f6d37771d3a5bac0a9c1aae4c
1,325
package io.perfmark; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; import org.openjdk.jmh.annotations.Param; import org.openjdk.jmh.annotat...
24.090909
50
0.737358
afdf9fa18e55423244d2bf5541d2766b9e948900
2,800
package io.avaje.inject.spi; import io.avaje.inject.BeanEntry; import jakarta.inject.Provider; import java.util.Objects; /** * Holds either the bean itself or a provider of the bean. */ class DContextEntryBean { /** * Create taking into account if it is a Provider or the bean itself. * * @param bean Th...
22.764228
95
0.648929
a1eb92f58b7a4c8b6216a12d67996d60c8cd3645
1,787
/*_############################################################################ _## _## SNMP4J 2 - UdpAddress.java _## _## Copyright (C) 2003-2016 Frank Fock and Jochen Katz (SNMP4J.org) _## _## Licensed under the Apache License, Version 2.0 (the "License"); _## you may not use this file except...
27.492308
79
0.620593
5d3265e8b76b39ef7651bb625591ac6b2716d918
1,807
/* * Copyright 2013-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...
32.267857
105
0.785833
554cecabb96645bd5859470a756becec95447341
5,037
/* * Copyright © 2015 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
30.713415
78
0.687115
9755947beaaa00c37cc749f0804770fcbe31cf87
3,825
package org.aries.service; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; //import nam.model.Service; import org.aries.Assert; import org.aries.runtime.BeanContext; impo...
27.717391
105
0.736993
0bdfd6baee999bee0134c350feb4aefae131916a
2,999
package E03SetsAndMapsAdvanced; import java.util.Collections; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class E11LegendaryFarming { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Map<String, Integer> materials...
42.239437
101
0.473158
4f2b877363a1bfca8284373e54708c7a8c9b005d
1,022
package mage.cards.s; import mage.abilities.effects.common.CreateTokenEffect; import mage.abilities.keyword.SpliceOntoArcaneAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import mage.game.permanent.token.SpiritToken; import java.util...
25.55
83
0.706458
da584e1eb39f1efc2e10e53baecc035d1985de27
13,125
/* * Copyright 2010-2010 LinkedIn, 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 ...
27.807203
105
0.6176
18f90f94bb1505a7d30dcd30a3d9cd96bc5941e0
2,484
package br.ufg.inf.oop.internshipcandidatefinder.models.entities; import java.util.Arrays; import java.util.List; import java.util.concurrent.atomic.AtomicReference; import java.util.stream.Stream; public enum UnidadeFederativa { ACRE("AC", "Acre"), ALAGOAS("AL", "Alagoas"), AMAPA("AP", "Amapa"), AMAZONAS("AM", "...
34.985915
99
0.635266
886033a1613eb83ac15ff173e12ea8cda2dfe041
1,666
package jtwirc.common.command.commands.faq; import jtwirc.common.command.CommandBase; import jtwirc.types.twitchMessage.TwitchMessage; import jtwirc.types.users.TwitchUser; import jtwirc.utils.JSONParser; import jtwirc.utils.MessageSending; import org.json.JSONException; import org.json.JSONObject; public class Comma...
29.22807
157
0.5
f98eca00b99ee929ebf8096f82552fb9eae282c2
871
package com.data.types; import java.util.ArrayList; public class DataRow { private ArrayList<DataColumn> columns; public DataRow() { this.columns = new ArrayList<DataColumn>(); } public DataRow(ArrayList<DataColumn> columns) { this.columns = columns; } public boolean contains(String name) { for (DataCo...
21.243902
67
0.661309
cf3e61f16d2f3391409f9dd29f5c8a6bf78a27f4
612
package me.zhengjie.modules.study.repository; import me.zhengjie.modules.study.domain.UserSysVal; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import java.util.List; public...
36
117
0.808824
c808e474d239a32598bfaa67b825a436608c9120
1,892
package io.stargate.sdk.rest; import java.util.Optional; import io.stargate.sdk.doc.ApiDocumentClient; import io.stargate.sdk.doc.NamespaceClient; /** * Operate on Tables in Cassandra. * * @author Cedrick LUNVEN (@clunven) */ public class TableClient { /** Astra Client. */ private final ApiRestClien...
27.42029
120
0.664376
42ed3ae9db6290d1f9d8729530a81dd878dc51ca
1,730
package com.cqust.pojo; public class TAddress { private Integer id; private String province; private String detailaddr; private String zipcode; private String receiptname; private String receipphone; private Integer userid; private Integer defauladdress; public Integer getId...
20.843373
75
0.627746
6d5eb9436037978848f18591dc90bc02da510a9a
4,577
/* * 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 ...
30.718121
81
0.682543
36bcfb22453a60dca1b593787ba7bec6e1c929f6
1,387
/* Copyright (c) 2008 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...
25.218182
79
0.703677
fecd47466899a4c4a2e027a70d2bde43fdd2904d
9,503
package edu.fiuba.algo3.modelo.TestsJugador; import edu.fiuba.algo3.modelo.Kahoot; import edu.fiuba.algo3.modelo.correcciones.CorrectorClasico; import edu.fiuba.algo3.modelo.correcciones.CorrectorPenalidad; import edu.fiuba.algo3.modelo.correcciones.Respuesta; import edu.fiuba.algo3.modelo.excepciones.NoTieneMultiplic...
40.266949
161
0.710933
35751692d055190ab0e93f664ad8834ba519eb40
2,855
package com.jeebud.module.upms.controller; import com.jeebud.core.log.OpTypeEnum; import com.jeebud.core.log.Operation; import com.jeebud.core.web.RestEntity; import com.jeebud.module.upms.model.entity.Param; import com.jeebud.module.upms.model.param.ParamPageQuery; import com.jeebud.module.upms.service.ParamService; ...
26.435185
74
0.669352
effa315e252488c98e63c5e30e985b4c4d0d1756
4,440
/* * Copyright (C) 2018 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...
36.393443
109
0.713288
649f8612d86bf41264dffed3b237d72653c80c0d
8,629
/* * Copyright (c) 2009-2020 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this...
37.354978
198
0.646541
86cc41cf3232255716faf8b3e0fa648bd21859a1
748
package domain.dinner.food.ingredients; import javax.persistence.Column; import javax.persistence.Entity; import java.util.List; @Entity public class Solido extends Ingrediente { @Column(name="path") private String path; public Solido(){ } @Override public String getColorString() { ...
17.395349
90
0.629679
3f8039f111217bc223f8cbefa0314ebd8f5fd209
3,513
package com.xrtb.tools; import java.io.BufferedReader; import java.io.FileReader; import java.util.HashSet; import java.util.Map; import com.aerospike.client.AerospikeClient; import com.aerospike.redisson.AerospikeHandler; import com.aerospike.redisson.RedissonClient; public class AeroListSet { public static void ...
20.424419
112
0.571591
c33c3ffd0827769468d5dd2016dc7a8315bc6a6e
3,178
package com.zubr.bot; /** * A counter for keeping track of the number of events that have occurred within a specified time interval, in order to avoid exceeding a rate limit. * <p> * {@code FloodTracker} is not thread-safe. If concurrently accessed from multiple threads, external synchronization is required. ...
35.707865
150
0.683763
afb32856c97a5ba4361b4f6fa8899119cb2581d3
1,135
/* * Transcode from a Map format to another Collection derived format * Created because it is not possible to iterate through a Map */ package utility; import datamodel.Tissue; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import datamodel.CompartmentSBML; import javax.swing.tree.De...
29.868421
87
0.67489
2bd4893b8b7b51c8057967a893937f32c565fb2f
1,185
package fr.free.nrw.commons.campaigns; import com.google.gson.annotations.SerializedName; /** * A data class to hold a campaign */ public class Campaign { @SerializedName("title") private String title; @SerializedName("description") private String description; @SerializedName("startDate") private Strin...
21.160714
62
0.643882
4f74fffaacaf76b497c5d84d138e6ebb69280525
1,003
package com.ducetech.api.web; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * 用于管理 WebContext 对象的生命周期 */ public class WebContextFilter implements Filter { @Override public void init(FilterConfig filterCon...
27.108108
152
0.694915
62df39d4949269c38c9d1084407ebd0d1ccb23c1
3,739
package com.mmr2410.firstscoutingapp; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothServerSocket; import android.bluetooth.BluetoothSocket; import android.util.Log; import java.io.BufferedReader; import java.io.IOException; import java.io.InputS...
32.798246
83
0.565392
5efb3986781da50331b503137b06e2d4225e4252
145
package com.hugeinc.db; import java.sql.SQLException; public interface BarDataInsertService { void createDatabase() throws SQLException; }
14.5
44
0.793103
a432151b4bf9e0fe7653ae2ff8e2e253b6267edf
272
package com.edudev.dscatalog.api.exceptions; public final class NotFoundHttpException extends RuntimeException{ public NotFoundHttpException() { this("Entity not found"); } public NotFoundHttpException(final String msg) { super(msg); } }
22.666667
66
0.705882
cbc2cba30a5387894506c74a83bbac74d9da0389
2,937
/** Copyright 2008-2010 University of Rochester 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.16
127
0.728635
63020278349b40ebbac4be96d4adfb109357ded3
1,911
/* * This file is part of ToolBox * https://github.com/perbone/toolbox/ * * Copyright 2013-2018 Paulo Perbone * * 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...
22.482353
75
0.586604
d6f2535db0081dbb50c6f6fbafcb8c43da82cfa9
2,749
package com.covens.common.core.gen; import java.util.Random; import com.covens.common.block.ModBlocks; import com.covens.common.core.statics.ModConfig; import net.minecraft.block.Block; import net.minecraft.block.BlockHorizontal; import net.minecraft.block.state.IBlockState; import net.minecraft.util.EnumFacing; imp...
38.180556
161
0.758821
b0904b5baabb52191b6bac712e90b384ce2b8281
1,842
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa...
28.338462
85
0.680239
2c17a658dcef6db688de3dae7334df03dceff6c1
7,225
/* * 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 st.jigasoft.dbutil.util; import java.awt.Color; import java.awt.ComponentOrientation; import java.awt.Cursor; import...
44.325153
97
0.742145
9b3cb68fb14fc3bcbdd57227511348955e102e73
4,342
/* * * * Copyright 2010-2016 OrientDB LTD (http://orientdb.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...
34.460317
159
0.706817
a2ce0f52f57e92f6e6b3a9f948f7802b5beb1239
1,099
package net.jarlehansen.proto2javame.business.sourcebuilder.publicmethods; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import net.jarlehansen.proto2javame.testutils.TestConstants; import net.jarlehansen.proto2javame.testutils.TestObjectFa...
28.179487
104
0.808917
058a9d67ee6940ceeaed932358426b3f9b0be1a4
939
package com.shadow.blog.service.impl; import com.shadow.blog.entity.TagDO; import com.shadow.blog.mapper.TagMapper; import com.shadow.blog.service.TagService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @author L.R * @da...
20.866667
62
0.72737
b1deb9495857d090c11aa9ad10b87f16c3e87316
7,064
/* * 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 ...
29.932203
121
0.618913
7ab70ace9569fba5211564ff44d270054f731eee
1,890
package com.rapid7.armor.interval; import java.time.Clock; import java.time.Instant; import java.time.LocalDate; import java.time.ZoneId; import java.time.ZoneOffset; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class IntervalStrategyTest { @Test publi...
34.363636
96
0.737037
8cf6a84ada278cacdd1c0ea922ed536db40ccd04
1,341
package data_structure; import java.util.LinkedList; import java.util.Queue; public class Q346MovingAverageFromDataStream { //TAG: Google //TAG: data structure //TAG: sliding window //Difficulty: Easy /** * 346. Moving Average from Data Stream * Given a stream of integers and a window ...
22.728814
120
0.519761
ebc33de16c2fe3531ab8c10fd30d5e73cc76f40f
3,537
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. */ package com.sap.retail.commercesuite.saparticleb2caddon.populator; import java.util.ArrayList; import java.util.List; import com.sap.retail.commercesuite.saparticleb2caddon.articlecomponent.data.ArticleComponentData; import com.sap....
38.868132
119
0.791066
3cb9ebddc733b214d2353e8f7216b930be2f7e70
5,057
/* * Copyright (c) 2014 AsyncHttpClient Project. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.or...
35.865248
114
0.724738
854c2eb864cd46803f1948b83cdbaecadf8f76ff
1,983
package com.entity; /* * 考勤实体类 */ public class AttendanceBean { //考勤id private int id; //学生编号 private String code; //学生姓名 private String name; //年级名 private String gradeName; //班级名 private String className; //科目名 private String subjectName; //考勤类型 private Stri...
16.663866
52
0.560767
144e6dd823f7739244d8d546bd6639970515a9f2
1,379
package cn.wz.algorithm.stdlib; /************************************************************************* * Compilation: javac HexDump.java * Execution: java HexDump < file * Dependencies: BinaryStdIn.java * Data file: http://introcs.cs.princeton.edu/stdlib/abra.txt * * Reads in a binary file and ...
29.340426
75
0.496012
d741da4cea7efe25e6fb5399efc5097d60d74399
1,541
package mh.smartcard.util; import mh.smartcard.UnexpectedException; import mh.smartcard.data.Hex; public final class ByteBuffer { //private static final Logger logger = LoggerFactory.getLogger(ByteBuffer.class); private final byte[] value; private int pos; public ByteBuffer(byte[] value) { this.value ...
23.348485
93
0.631408
dd6f62e7307187f661f6fd3a4c687f5b1cac9004
4,594
/** * 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...
39.603448
112
0.710057
0d303a772f90635f40aad89be4d0c2be7e6f9d19
1,193
/* * Copyright DataStax, 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 wri...
32.243243
75
0.742666
c84ae29d37108d5024adee72303179caeb7dfa7e
3,005
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.master.marketdatasnapshot.impl; import java.util.concurrent.ConcurrentHashMap; import com.opengamma.core.change.ChangeEvent; import com.opengamma.core.change....
42.323944
184
0.764393
9caea54a034ac923092f5b829cd103751a2c0c70
331
package fabler.fablededitor.utilities; import fabler.fablededitor.models.ComponentTag; public class ComponentMetadataHelper { public static ComponentTag getNewComponentTag(int index) { ComponentTag componentTag = new ComponentTag(); componentTag.setComponentIndex(index); return componentTa...
27.583333
62
0.758308
841598ef944ccf76f6253cbd96a8bffeb4893320
3,317
package io.github.gaomjun.blecommunication.BLECommunication.Message; import io.github.gaomjun.utils.TypeConversion.HEXString; /** * Created by qq on 30/11/2016. */ public class SendMessage extends Message { private byte[] message = new byte[20]; private byte[] header = new byte[]{(byte)0xab, (byte)0xcd}; ...
31.590476
115
0.593307
2218d1623d42572457b46fc215d29e71585d71d6
8,991
/* * 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 ...
37.777311
87
0.57869
2de9f97499f34cf1eeb15824ea2861810d3a34e6
5,290
/** */ package de.dc.fx.ui.renderer.model; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * <!-- begin-user-doc --> * A representation of the literals of the enumeration '<em><b>FX Tab Close Policy</b></em>', * and uti...
23.201754
112
0.573724
122ac8ae803b51fac57afb7cd39426d75c027c07
118
package com.rxjava2.android.samples.ui.Room; public class Const { public static final String home = "Movies/"; }
19.666667
48
0.728814
51ab59f4234015c1702003e9c4f07a07d7adb018
461
package EstruturaDeDados.Atividade06Exemplo; public class Fila_exemplo { public static void main(String[] args) { Fila<Integer> fila = new Fila<>(); //1 System.out.println(fila.estaVazia()); //true System.out.println(fila.tamanho()); //0 //2 fila.enfileira(1); fila.enfileira(2); fila.enfileira...
20.043478
46
0.67462
42b1567c06777a79b2e542b4a58477925dcf563a
1,549
package com.study.algafood.api.v1.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.hateoas.RepresentationModel; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.Reque...
36.023256
92
0.823112
147a902697fbe14dbba8aac5f00ebeff010790db
242
package com.chobocho.command; import com.chobocho.solitaire.Solitare; class ConfigFunction implements ComandFunction { @Override public boolean run(Solitare game, int from, int to, int count) { return game.config(); } }
22
68
0.719008
a860df90817261098456252c6cd5856229d5c5a1
990
package com.smhu.overall; import java.util.List; public class Overall { private SystemAmount year; private List<SystemAmount> term; private List<SystemAmount> month; public Overall() { } public Overall(SystemAmount year, List<SystemAmount> term, List<SystemAmount> month) { this.year...
19.8
90
0.590909
57f73c7a4522ceecda219f62538701796dae281a
4,585
/****************************************************************************** * TUser.java - created by Sakai App Builder -AZ * * Copyright (c) 2006 Sakai Project/Sakai Foundation * Licensed under the Educational Community License version 1.0 * * A copy of the Educational Community License has been included i...
23.392857
139
0.593893
deae795d6477ac96133a19b35f5fd4ffead8f2cd
10,341
// Date: 15.09.2016 15:57:08 // Template version 1.1 // Java generated by Techne package pokefenn.totemic.client.rendering.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.Entity; import...
39.469466
154
0.611933
f182ed912f24b0a26bcace391a7fc222798f1ec9
1,299
package com.indeed.util.core; import org.junit.Test; import java.util.Arrays; import static org.junit.Assert.fail; import static org.junit.Assert.assertFalse; public class NetUtilsTest { @Test public void testGetRawAddress() { assertArrayEquals(make(1,1,1,1), NetUtils.getRawAddress("1.1.1.1")); ...
33.307692
110
0.662048
cb4a053772cab7e4938700da26bf92ec792439ba
1,774
import java.util.Arrays; import java.util.Scanner; //най-бързо 0.64 public class Lab_Task_5_MaximumSumOf2x2Submatrix_02 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] dimensions = Arrays.stream(scan.nextLine().split(", ")).mapToInt(Integer::parseInt).toArray...
34.115385
112
0.475197
3c928d7c6fbd185610a11ed3ad85583d9678655b
3,410
/* * $Id: LockAction.java,v 1.3 2004/05/06 11:09:59 edankert Exp $ * * Copyright (C) 2002, Cladonia Ltd. All rights reserved. * * This software is the proprietary information of Cladonia Ltd. * Use is subject to license terms. */ package com.cladonia.xngreditor.actions; import java.awt.event.ActionE...
29.652174
109
0.678299
df8be12b0d031ba7c2f2729951b4252c1b217104
2,296
/* * Copyright (c) 2008-2016 Haulmont. * * 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...
37.639344
91
0.611063
bd0be3b453f97b89178a3b7eaf556dafbaf00e89
245
package findajob.hrms.dataAccess.abstracts; import org.springframework.data.jpa.repository.JpaRepository; import findajob.hrms.entities.concretes.JobPosition; public interface JobPositionDao extends JpaRepository<JobPosition, Integer> { }
22.272727
77
0.836735
34bfc5f6c790771f29f7a93ed63756a20758abe6
1,049
package com.google.android.exoplayer2.source.dash; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.source.chunk.ChunkSource; import com.google.android.exoplayer2.source.dash.PlayerEmsgHandler; import com.google.android.exoplayer2.source.dash.manifest.DashManifest; import com.google.an...
47.681818
308
0.835081
953de0e4bbef8d20c2237479e995519323dc8697
599
package org.citydb.core.plugin.metadata; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; @XmlType(name = "PluginVendorType", propOrder = {}) public class PluginVendor { @XmlAttribute private String url; @XmlValue priva...
19.966667
51
0.657763
d6417e65502ba6feaa6c3b044460eee19ebccfbf
2,925
package sample.lyl.xyz; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import androi...
35.240964
116
0.708034
beea1de99424a6b6e77a0b7320df39bff1fe298e
257
package com.serenitydojo.todomvc.actions; import net.serenitybdd.core.steps.UIInteractionSteps; public class Navigate extends UIInteractionSteps { public void toTheTodoMVCnHomePage() { openUrl("http://todomvc.com/examples/react/#/"); } }
23.363636
56
0.747082
3588cf63324a17b6ab545170d8afa7067f7ff355
2,282
/* * Copyright 2012 Netflix, 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 ...
21.327103
109
0.608677
ab069b607982a60b2434567daed2e19978c9bff0
1,417
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
26.735849
84
0.661962
4dd5b06d7ad73e39648ed253725a0f64067d9f29
697
package ru.szhernovoy.security.carstore.service; import ru.szhernovoy.security.carstore.domain.*; import java.util.List; /** * Created by Admin on 05.02.2017. */ public interface CarService { List<Body> getAllBody(); Body getBodyById(int id); List<Engine> getAllEngine(); Engine getEngineById(int...
19.361111
48
0.6901
06bb5eaa89c7f0e11dffcdc0e01a4daa2c4108a4
548
package org.libermundi.frostgrave.domain.jpa.base; import lombok.Getter; import lombok.Setter; import org.libermundi.frostgrave.domain.jpa.listeners.CreatedOrUpdatedByListener; import javax.persistence.EntityListeners; import javax.persistence.MappedSuperclass; @Getter @Setter @MappedSuperclass @EntityListeners(Cre...
28.842105
134
0.846715
4e8daf04748731c3ed50fe226389228cef311fb7
2,104
/************************************************************** * * 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 y...
30.057143
78
0.635932
f3d466a736529143456427c539decd87374c68b4
2,118
package view; import model.Board; import model.Player; import javax.swing.*; import java.awt.*; /** * This is the GUI view for main game panel */ public class Game_View extends JFrame { public Board_View board_view; public Menu_View menu_view; public Score_View score_view; public JPanel ...
33.619048
93
0.647781
45f757d70f9f6f5ad000bb259303586cdcb94404
1,054
package no.javazone.cake.redux.comments; public class TalkRating extends Feedback { public final Rating rating; @Override public FeedbackType feedbackType() { return FeedbackType.TALK_RATING; } @Override public String getInfo() { return rating.asText(); } public stati...
21.958333
62
0.591082
61fd41c8ded12d6134cede5ede38d146e750351b
371
interface Showable{ void show(); interface Message{ void msg(); } } class TestNestedInterface implements Showable.Message{ public void msg(){ System.out.println("Hello nested interface"); } public static void main(String args[]){ Showable.Message message=new TestNestedInterface(...
19.526316
73
0.654987
515416eb970e182aafae604878a01c1c6785b3e3
1,336
package com.account.service.configuration; import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.RequestHandlerSelectors; import s...
31.069767
71
0.752994
39fab4f0c023e80f8ebd9723b89973d18462a177
674
package com.github.cyc.wanandroid.http; /** * HTTP码 */ public final class HttpCode { private HttpCode() { } /** * 成功 */ public static final int SUCCESS = 0; /** * 未知错误 */ public static final int ERROR_UNKNOWN = 1000; /** * HTTP错误 */ public static fin...
14.041667
56
0.532641
f51182f6149251091497232df51f93ea5d213438
3,600
/** * The MIT License * * Copyright (C) 2015 Asterios Raptis * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, c...
22.08589
95
0.698056
ee72fafd134b78b13182b20b942e56b3fe365098
1,321
package com.intellij.coverage.listeners; public abstract class CoverageListener { private static final Class[] EMPTY_CLASS_ARRAY = new Class[0]; private Object myProjectData; protected static String sanitize(String className, String methodName) { return className + "," + sanitize(methodName, className.lengt...
28.106383
131
0.621499
f53be4f5d4c26868c10340d409809fc6af948dcd
567
package jp.sugarcoffee.processrunner.forge; import jp.sugarcoffee.processrunner.ProcessRunnerExpectPlatform; import net.minecraftforge.fml.loading.FMLPaths; import java.nio.file.Path; @SuppressWarnings("unused") public class ProcessRunnerExpectPlatformImpl { /** * This is our actual method to {@link Process...
27
93
0.740741