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
ea06bf27a5f9b2f59d60ff8016af73bf00fc7801
1,152
package ru.job4j.set; import ru.job4j.list.SimpleList; import java.util.*; /** * Class SimpleSet класс реализует множество на массиве * * @author Konstantin Inozemcev (9715791@gmail.com) * @version $Id$ * @since 0.1 */ public class SimpleSet<T> { /** * Ссылка на контейнер */ private SimpleLi...
18.580645
57
0.568576
77c0abd8f29449c5988155fbbc9cc09844ee85ee
244
package ru.domclick.cockpit.plugin.log.mapper.util; import lombok.AllArgsConstructor; import lombok.Data; import org.elasticsearch.search.SearchHit; @Data @AllArgsConstructor public final class SearchHitWrapper { private SearchHit hit; }
20.333333
51
0.815574
b3465bb238cabab29432803be101484ba0f4bed5
2,909
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * jkl */ package com.microsoft.azure.management.apimanagement.v2018_06_01_preview.implemen...
38.276316
135
0.726366
8105ceeac2c625ac23ec66a89c527cd63cc85398
6,280
/******************************************************************************* * 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 *********************************...
31.878173
125
0.712102
fc35a3f26083362f704ba4de9596c0f0957077f5
3,799
package weixin.guanjia.base.controller; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.st...
34.225225
107
0.635957
4e9afa96081a94fbfe4c90082c6ba615fe4b60bb
1,695
package com.appsculture.jp.flashcardapp.activities; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.appsculture.jp.flashcardapp.R; import com.appsculture.jp.flashcardapp.fragments.ListViewFragm...
28.25
95
0.746313
d7c6a16e26f73913128f13f6c5dfb768efa5c95f
3,800
package seedu.address.logic.commands; //import static org.junit.Assert.assertEquals; import static seedu.address.logic.commands.Command.MESSAGE_LOGIN; import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; //import static seedu.address.logic.commands.ViewLoanListCommand.MESSAGE_EMPTY; //impor...
44.705882
113
0.753684
f527716ec2986c209f2a120724e118e69513ce38
1,268
package jordan.bettercraft.init.mobs.entitys; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.ai.EntityAIAttackMelee; import net.minecraft.util.EnumHand; public class EntityAIMummyAttack extends BetterEntityAIAttackMelee { private final EntityMummy mummy; private int raiseArmTi...
21.133333
90
0.577287
b38af319f3af420d29263c6fc5f22c6cb548a27b
1,186
package com.sequenceiq.cloudbreak.service.secret.model; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.sequenceiq.cloudbreak.service.secret.doc.SecretResponseModelDescription; import io.swagger.annotations.ApiM...
25.782609
83
0.751265
b9b60e4e8d4830df00a0e80b16e33e4fe584ffac
469
package com.lernoscio.rover.environment; /** * Location is an interface for 3-dimensional areas that have * a name, an understanding of boundaries and can be directional. * In a Location you can turn and move. */ public interface Location { public String toString(); public String getName(); ...
26.055556
83
0.727079
c407a794475f663c872fe251622945dba2d1dbd7
4,479
// Data SQLCommand is a light JDBC wrapper. // Copyright (C) 2012-2015 Adrián Romero Corchado. // // This file is part of Data SQLCommand // // 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 cop...
34.72093
191
0.628489
bf7d99b9705ee82556f4d51bd2a1122912945694
3,618
package com.arctos6135.robotpathfinder.core; import java.util.Objects; /** * Represents a point that the robot must pass through in a path or trajectory. * <p> * A waypoint consists of an X value, Y value, and heading (direction the robot * is travelling in). Used to construct paths and trajectories. Waypoints ar...
27.409091
114
0.587617
9cd14a1e37e8c94f4ebbbec8855060c09980f310
1,606
package misrraimsp.tinymarket.util.config; import misrraimsp.tinymarket.util.converter.StringToCategoryConverter; import misrraimsp.tinymarket.util.converter.StringToPriceIntervalConverter; import misrraimsp.tinymarket.util.converter.StringToStatusPedidoConverter; import org.springframework.context.MessageSource; impo...
40.15
106
0.804483
74d569010c800bf3ea771a482b42c006bbe538b5
1,589
package com.it.api.model; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import javax.persistence.*; import java.util.Set; @Entity @Data @Table(name = "Room") public class Room { @Id @Column(name = "room_number", nullable = fal...
25.222222
125
0.676526
53e190811423d565354aafa1acf6b067e3a21b5a
1,106
package io.github.factoryfx.javafx.editor.attribute.visualisation; import io.github.factoryfx.factory.attribute.primitive.ShortAttribute; import io.github.factoryfx.javafx.editor.attribute.ValidationDecoration; import io.github.factoryfx.javafx.editor.attribute.ValueAttributeVisualisation; import io.github.factoryfx.j...
42.538462
114
0.808318
1442eb0edc05772a20000906ab0171796f77a62a
1,941
/* * Copyright © 2021 <a href="mailto:zhang.h.n@foxmail.com">Zhang.H.N</a>. * * Licensed under the Apache License, Version 2.0 (thie "License"); * You may not use this file except in compliance with the license. * You may obtain a copy of the License at * * http://wwww.apache.org/licenses/LICENSE-2.0 * *...
36.622642
99
0.665636
05dd30076e0a9d946ba8ca6c6a06d98df172d174
465
package com.otherhshe.niceread.utils; import android.support.design.widget.Snackbar; import android.view.View; /** * Author: Othershe * Time: 2016/8/16 17:01 */ public class SnackBarUtil { public static void show(View rootView, int textId) { Snackbar.make(rootView, textId, Snackbar.LENGTH_SHORT).show(...
23.25
70
0.701075
44b43e4c1bbc0fa208203e87cf4b2fa5b924da30
466
package com.gupao.decorator.menuaccess; /** * @ProjectName: DesignPattern * @ClassName: BaseMenu * @Description: TODO(一句话描述该类的功能) * @Author: tangqi * @Date: 2020/5/12 10:35 上午 * @Version v1.0 */ public class BaseMenu extends Menu{ @Override public Boolean getVisiable() { return true; } ...
16.068966
39
0.613734
2b3d09d3f9b647ac1485472db2af2c3a3bd01194
5,068
/** * */ package org.jpwned.core; import com.google.gson.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import java.time.LocalDate; import java.time.LocalDateTime;...
35.690141
135
0.73678
aa31ea0cfbd1981ce5b5c6662efef655bf552ebf
2,899
/* * 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 ...
42.014493
99
0.74198
1ea924f233986d705ee972fbaa6f21aadf3734db
252
import java.util.Scanner; public class CalculateExpression { public static void main(String[] args) { double val = ((30 + 21) * 0.5 * (35 - 12 - 0.5)); double result = Math.pow(val, 2); System.out.println(result); } }
22.909091
57
0.583333
fc183d233e42e5a48cef630be8e2a02e8b75be7a
415
package functional.com.trailblazers.freewheelers.helpers; import org.openqa.selenium.By; public class OrderTable { public static By selectFor(String item) { return By.xpath("//tbody/tr/td[2][text() = '" + item + "']/parent::*/td[4]/select"); } public static By saveButtonFor(String item) { ...
27.666667
92
0.624096
010c9b74ddff3d23709bdeb9d56662131acab528
5,600
/* * Copyright 2008-2019 Async-IO.org * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
36.129032
155
0.661607
c062393d8dcf71c5e3d531502b817cc0b00f64e8
3,635
package com.techelevator.dao; import static org.junit.Assert.assertEquals; import javax.sql.DataSource; import org.junit.Before; import org.junit.Test; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.support.rowset.SqlRowSet; import com.techelevator.model.Review; public class Rev...
41.781609
115
0.763961
42e72529bfe6ff2ae47f3674f3b75680b6e28fa9
1,180
package com.jeecg.qywx.api.message.vo; public class News { private String touser;//成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向关注该企业应用的全部成员发送 private String toparty;//部门ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参 private String totag;// 标签ID列表,多个接收者用‘|’分隔。当touser为@all时忽略本参数 private String msgtype;//消...
24.081633
94
0.688136
0bc92a7cfeb8e09d2ce7b5bae044ea1873a06a46
1,722
package net.ijiangtao.tech.demo.i18n.interceptor; import lombok.extern.slf4j.Slf4j; import net.ijiangtao.tech.demo.i18n.util.LanguageUtil; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.LocaleResolver; import org.springframework.web.servlet.ModelAndView; import org.sp...
35.142857
119
0.735192
ae88ea270ef98e328fe85c06cb9dd9560ee951e0
8,970
/** * 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...
24.847645
140
0.710591
09b126ea4c158d5cced3d8858c18d162c9772bfd
1,166
/* * Copyright 2014,2015 agwlvssainokuni * * 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...
29.15
76
0.697256
c7c84eed4152c6564f042e0869a1204ae64015c2
325
package CodingBat; public class tripleUp { public static void main(String[] args) { } public static boolean tripleUp(int[] nums) { for (int i = 1; i < nums.length - 1; i++) { if (nums[i - 1] + 1 == nums[i] && nums[i] + 1 == nums[i + 1]) return true; } return false; ...
21.666667
86
0.513846
4789d1be00cb748915858c9dfea3d404cc26c41d
1,583
/* * Copyright 2003 - 2016 The eFaps Team * * 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 ...
27.77193
75
0.731522
9979b3083cc4b3d1888c0f537a55b515f0794bb1
1,209
package xyz.moonrabbit.gradlepleaseconsole.parser; import org.json.JSONArray; import org.json.JSONObject; public class GradlePleaseSearchParser extends AbstractParser { private final static String PREFIX = "searchCallback("; private final static String SUFFIX = ")"; @Override protected String getUrl...
32.675676
111
0.64847
50913e67693205da51fc4e7c25a773e0e891a1f1
650
package GUI; import Utils.XCommand; import javax.swing.JButton; import javax.swing.JPanel; public class WidthPanel extends JPanel { public WidthPanel(XCommand cmd) { setLayout(null); JButton btnSmall = new JButton("Small"); JButton btnMedium = new JButton("Medium"); JButton btnLarge = new JButton("Large"...
20.3125
47
0.723077
ea0977702b6d4ec5c60a113f5a30c4e2e9d91458
1,113
package ru.stqa.pft.addressbook.tests; import org.testng.Assert; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactData; import java.util.List; /** * Created by user on 3/24/2017. */ public class ContactDeletionTests extends TestBase { @B...
27.146341
125
0.67655
ac5f3a7b90c60045dc8821df08cea45afc5e61fe
3,257
/** * Copyright © 2015 Mercateo AG (http://www.mercateo.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...
38.77381
136
0.741787
1549015aa0e06f9eb7870f0a1ebbdc3b5384ab59
186
// PR#130 public aspect NoReturnTypeInDesignator { static after(): this(Point) && call(!static *(..)) { System.out.println( "after" ); } } class Point {}
14.307692
57
0.548387
79a7b56930091705f8c8193cfb320a7068694c8f
2,419
package com.LYH.algorithm; import java.util.Map; public class mazeDemo { public static void main(String[] args) { // 创建二维数组 int[][] map=new int[8][7]; // 初始化 for (int i = 0; i < 8; i++) { map[i][0]=1; map[i][6]=1; if (i<7){ ...
29.864198
110
0.440265
9d54fa6f6a192fc25be47f2582fe411f5bad6a26
567
package com.wust.iot.service; import com.wust.iot.model.ProjectIndustry; import org.springframework.stereotype.Service; import java.util.List; @Service public interface ProjectIndustryService { /** * 查找一条项目行业 * @param id * @return */ ProjectIndustry findOneProjectIndustry(Integer id); ...
18.290323
66
0.666667
c7b616cd63a16c9a3a267abc81bb48e9273ecd5c
573
package com.searchservice.app.domain.port.api; import org.springframework.http.ResponseEntity; import com.searchservice.app.domain.dto.throttler.ThrottlerResponse; public interface InputDocumentServicePort { ThrottlerResponse addDocuments(boolean isNRT,String collectionName, String payload); ResponseEntity<Throt...
35.8125
108
0.856894
0964ab2e3d7a1bee68d52c06d999ebd01f38ff97
1,102
package zone.fothu.pets.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.transaction.annotation.Transactional; import zone.fothu.pets.model.Image; public...
34.4375
90
0.724138
c7d3f7c8a45e5b07072b14d33a8826d2ec535081
1,018
package kin.backupandrestore.utils; import android.content.Context; import android.content.pm.ApplicationInfo; import android.view.View; import androidx.constraintlayout.widget.Group; public class ViewUtils { public static void registerToGroupOnClickListener(Group group, View root, View.OnClickListener listene...
31.8125
110
0.700393
87cf2b53573c53a047850b460b808e6768d324d5
1,480
package com.jtbdevelopment.games.security.spring.redirects; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.A...
37
100
0.763514
82e6579ef9c153a78c53ff0e1235aed4edcaa5f9
1,391
package com.mengyunzhi.synthetical.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java.math.BigDecimal; /** * 定价规则 */ @Entity public class Price { @Id @GeneratedValue(strategy = GenerationType.AU...
21.075758
78
0.630482
bd2c93c815f0ef74ac8dde27c71bce260243f4b5
1,197
package org.batfish.vendor.check_point_management; import static com.google.common.base.MoreObjects.toStringHelper; import java.util.Map; import javax.annotation.Nonnull; import org.batfish.vendor.VendorSupplementalInformation; /** Configuration encompassing settings for all CheckPoint management servers in a snapsh...
27.204545
95
0.751044
e46311e25c9d517bd52ead2a9c80bbebb15ed153
8,221
package com.jeesuite.common.util; import java.io.IOException; import java.io.PrintWriter; import java.util.Arrays; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpS...
30.790262
112
0.679358
e5fa37e701a83f4102ba277baa6dd3b5e8fecd39
914
package approdictio.dict; /** * <p> * is the exception thrown if a file read does contain format errors. * </p> */ public class FileFormatException extends Exception { private final int lineNo; private final String msg; private String filename = "stream without name"; public FileFormatException(String msg,...
25.388889
69
0.66302
5e2dd9dc0bf8c6f785aa9622c8503e6ad6923c5e
109
package net.redbear.module.communicate; /** * Created by Dong on 16/1/28. */ public class DuoVersion { }
12.111111
39
0.688073
3e0a227525dc60fb39d82502bca5295b641b671a
4,816
package nl.m4jit.tradetoday.presentation.transactions; import java.text.SimpleDateFormat; import java.util.Date; import javax.swing.JOptionPane; import javax.swing.JTextField; import nl.m4jit.framework.ValidationException; import nl.m4jit.framework.presentation.swing.abstractdialogs.RecordDialog; import nl.m4jit.trade...
31.272727
135
0.627907
3248f26c0a2380b5d9fe816e37babbd3e0684f39
3,378
package fr.univnantes.termsuite.eval.bilangaligner; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.stream.Stream; import org.assertj.core.util.Lists; import fr.univnantes.termsuite.eval.TermS...
28.627119
103
0.712848
64be949334f583aa5bca96063f9b9effd6e20be3
3,755
/* * JBoss, Home of Professional Open Source * Copyright 2009, Red Hat Middleware LLC, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
37.929293
79
0.720373
0f52a1349ec684cbea681acc5d348abf2c1061b6
2,054
package fr.xebia.streams.java.transform; import org.bytedeco.javacpp.opencv_core; import org.bytedeco.javacv.Frame; import org.bytedeco.javacv.OpenCVFrameConverter; import java.util.function.Supplier; public class MediaConversion { public static opencv_core.Mat toMat(Frame frame){ OpenCVFrameConverter....
38.037037
109
0.747322
229fc29826d8ed479325f0cccd4e967b00ab11c7
1,748
package com.xyoye.dandanplay.bean; import android.support.annotation.NonNull; import java.io.Serializable; /** * Created by xyoye on 2018/11/19. */ public class LanDeviceBean implements Comparable<LanDeviceBean>,Serializable{ private String ip; private String deviceName; private String domain; pri...
20.325581
77
0.631579
aba624e79eca23b1bf35bc532a32d1514ee2a28b
5,957
/* * Copyright (C) 2017 Synacts GmbH, Switzerland (info@synacts.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...
47.656
363
0.692463
804d3972f651c0a208f6ed668909f361ea8ce8dd
1,021
package sune.ssp.util; public class TypeUtils { public static Class<?>[] recognizeClasses(Object... arguments) { int length = arguments.length; Class<?>[] classes = new Class<?>[length]; for(int i = 0; i < length; ++i) { Object argument; if((argument = arguments[i]) == null) { classes[i] = Obje...
31.90625
65
0.616063
42caecb207ccfaaa2b43d0e7892012ae6b05b2ed
846
package org.vertexium.inmemory; import org.vertexium.util.ConvertingIterable; import java.util.Map; public class InMemoryEdgeTable extends InMemoryTable<InMemoryEdge> { public InMemoryEdgeTable(Map<String, InMemoryTableElement<InMemoryEdge>> rows) { super(rows); } public InMemoryEdgeTable() { ...
29.172414
116
0.704492
1ca05e750ee510e12f018f4e4adc670d0e7feb29
2,329
package com.sequenceiq.cloudbreak.service.hostgroup; import static com.sequenceiq.cloudbreak.exception.NotFoundException.notFound; import java.util.Optional; import java.util.Set; import javax.inject.Inject; import org.springframework.stereotype.Service; import com.sequenceiq.cloudbreak.common.type.HostMetadataSta...
35.830769
109
0.784457
31e03abd402d2f2f35c82c3ac1daefa97c4024fc
2,523
/* * 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...
25.23
99
0.753072
b4f32ad57a12b6a85a7b50a9dae15dc5749aa1b8
975
package net.liaocy.smartcar; import android.app.Application; import net.liaocy.smartcar.biz.BizSensor; import net.liaocy.smartcar.biz.BizSpeaker; public class AppContext extends Application { private static AppContext instance; private BizSpeaker bizSpeaker; private BizSensor bizSensor; public Bi...
22.159091
47
0.65641
ecc765ec9cd0c7f263eb2fe2b55262cb6f68daf7
3,856
/* * 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.803922
104
0.739627
53a2b064e82edb9ddf5c6e546c85b25cb3d508e1
397
import java.lang.reflect.Modifier; import static org.junit.Assert.*; import org.junit.Test; /** * The test class CheckersTests. * * @author (your name) * @version (a version number or a date) */ public class CheckersTests { CheckerBoard buildInitial() { return new CheckerBoard(); } @Test(t...
17.26087
52
0.654912
cbc146b4ffd3e31077e488bb4de025fe6c71415f
3,842
import org.junit.*; import static org.junit.Assert.*; public class YatzyTest { public Yatzy yatzy; @Test public void chance_scores_sum_of_all_dice() { int expected = 15; int actual = Yatzy.initGamePlayer(1,2,3,4,5).chance(); assertEquals(expected, actual); assertEquals(16...
32.559322
76
0.625976
280d7bcce4c5b88e86b99569b885c97d943e738f
403
package uk.ac.nottingham.chen_chen.fractalviewer; /** * Mode class, similar to enumerate indicating the finger motion direction * @Author: Chen Chen * First Android project created on April 2016 for Web Based Computing (H63JAV), University of Nottingham */ public class Mode { public static final int NOTHING =...
28.785714
105
0.736973
e8054a1d8a9ffdf663bc39366a8631ba1f448d1c
1,016
package com.coderZsq.dao; import com.alibaba.druid.pool.DruidDataSourceFactory; import com.coderZsq.bean.Customer; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.JdbcTemplate; import javax.sql.DataSource; import java.util.List; import java.util.Properties; // druid /...
29.028571
104
0.673228
899179bcd393054890270540d52f7110356aabf3
1,724
/* * Scala compiler interface * * Copyright Lightbend, Inc. and Mark Harrah * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.sci.compile; ...
33.153846
99
0.735499
20a458a7cf8ee288175ed4f14b2c88d5e27d50e4
1,268
/* * Copyright 2016 Red Hat, Inc. * <p> * Red Hat 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless requ...
30.190476
118
0.730284
fcc9fc32a191c62b6d2c8909e89e968bd4cf27c8
22,084
/** * * 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"); ...
37.304054
100
0.705126
ffb1bd54ff8c0f487100c63013e8c6e0e9022491
3,824
package org.elixir_lang.annotator; import com.intellij.lang.annotation.AnnotationHolder; import com.intellij.lang.annotation.Annotator; import com.intellij.openapi.editor.colors.EditorColorsManager; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.editor.markup.TextAttributes; i...
41.11828
112
0.647228
d880976718d5e1d6aebf8dcb592be369df6734ce
4,284
package LuckyDip; import java.util.ArrayList; import java.util.List; import me.lewys.com.Hub; import me.lewys.particles.ParticleEffect; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.Listener;...
28.370861
183
0.702381
7cc8620ebd66bb09e91a04711926bd4e7eb7b0cc
7,219
/* * XML Type: DeletedMetadataCollection * Namespace: http://schemas.microsoft.com/xrm/2011/Metadata/Query * Java type: com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataCollection * * Automatically generated - do not modify. */ package com.microsoft.schemas.xrm._2011.metadata.query.impl; /**...
51.564286
283
0.740546
44bcda3a5619d40e00e59fdd4b2db1e633f128c4
3,232
package deformablemesh.geometry; /** * * An ordered collection of 3 nodes that will be used for calculating geometric properties. * The winding of the triangle should be such that CCW points outwards from the volume * contained within. * * User: msmith * Date: 7/2/13 * Time: 7:56 AM * To change this template...
25.25
94
0.524134
86015384345d520debcae24663768f9593658e27
674
package com.bank.bpm.partners.workers.onboarding.order; import br.com.six2six.fixturefactory.Fixture; import br.com.six2six.fixturefactory.Rule; import br.com.six2six.fixturefactory.loader.TemplateLoader; import java.util.stream.IntStream; public class ProductRequestTemplate implements TemplateLoader { public stat...
29.304348
111
0.746291
7de4aea30df55dd2202e31946813c8b27f63bea4
824
package netty_examples; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; import io.netty.handler.codec.TooLongFrameException; import java.util.List; public class FrameChunkDecoder extends ByteToMessageDecoder { private final int m...
27.466667
107
0.718447
8a6e973402cb119f8d5e960d5b6b3fcc9e299e52
2,228
package jpuppeteer.cdp.client.entity.css; /** * Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes. * experimental */ public class FontFace { /** * The font-family. */ public fi...
28.564103
263
0.671454
4055d4fb0c244cbeaea80c5a968600b2519312eb
7,102
package org.wcdevs.blog.cdk; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import software.amazon.awscdk.RemovalPolicy; import soft...
43.304878
100
0.694875
8a690af52de52a89af2e02828f91ece01e5d6631
1,016
package com.huanmedia.videochat.mvp.model.video; import android.content.Context; import com.huanmedia.videochat.mvp.base.BaseMVPModel; import com.huanmedia.videochat.mvp.base.DataCallBack; import com.huanmedia.videochat.mvp.entity.request.ShortVideoPraiseRequest; import com.huanmedia.videochat.repository.base.HttpRes...
37.62963
106
0.732283
ad27df5cc774900d582b55e212738d319f98931d
463
package com.jeffbrower.http; public class ErrorResponseException extends RuntimeException { private static final long serialVersionUID = 1L; public final Status status; public ErrorResponseException(final Status status, final String message) { super(message); this.status = status; } public ErrorRe...
25.722222
99
0.75378
f3f93c0e97338d5816fca2ef59bfa47c70d930e2
2,726
/* * 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...
34.075
92
0.70066
79df879179e6906f0c26cb2f9a334b8d515d72b1
2,512
package org.dstadler.commons.collections; import java.util.Iterator; import java.util.List; import java.util.function.Consumer; import java.util.function.Function; /** * An {@link java.util.List} which wraps another list and provides a read-only view * of a specific property of the type of object contained in the o...
31.797468
107
0.669984
8d71e770285bfa39d5fefc89fab1bb4ed323a318
7,052
package utilities; import java.io.InputStream; import java.io.StringBufferInputStream; import java.nio.file.Files; import java.nio.file.NoSuchFileException; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.HashMap; import java....
31.765766
157
0.740216
3c37eea94c7ba70e703457874da2dbc42d979417
5,676
package com.revcontent.rcnativeandroidsdk.banner; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView; import android.webkit.WebVi...
33.192982
124
0.611698
8c54513c4703924dd7f635e7e45ad88575910e35
2,774
package info.seleniumcucumber.utils.dataproviders; import java.io.FileInputStream; import java.io.FileOutputStream; import info.seleniumcucumber.utils.BaseTest; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apach...
22.737705
109
0.725306
c66372b66b76b3692054ec3a840c4fbaeadf9c1e
3,566
package org.ihtsdo.otf.rest.client.terminologyserver.pojo; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.ihtsdo.otf.utils.SnomedIdentifierUtils; @JsonPropertyOrder({"id", "effectiveTime", "released", "releasedEffectiveTime", "active...
23.006452
159
0.750421
c69993481693d41ee44663d196c2d8d31b190dd9
8,767
/* * 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 moeaframework.moead; import com.mathworks.toolbox.javabuilder.MWException; import emo.Individual; import emo.Optimiza...
44.055276
137
0.613551
721ab479f892dcd7b775aecba8ed71c0d1d8632c
1,330
package water.util; import java.util.HashSet; import java.util.Set; import water.api.DocGen.FieldDoc; import water.api.ParamImportance; /** A helper class proving queries over Iced objects parameters. */ public class ParamUtils { /** * Names of the model parameters which will always be shown in a short descrip...
31.666667
87
0.713534
a5b718fa6f2e946b2e4dc6d71cdc05393e332815
1,904
package tck; import org.extra.mutiny.MethodWithCompletable; import org.extra.mutiny.MethodWithMaybeString; import org.extra.mutiny.MethodWithSingleString; import io.vertx.test.core.VertxTestBase; import org.junit.Test; import java.util.concurrent.CompletionStage; public class AsyncResultAdapterTest extends VertxTest...
32.827586
104
0.654937
437c68c3ab62105fe79b7d16ba88b752bfe21fc1
14,989
/* MasterMaze: An RPG Copyright (C) 2011-2012 Eric Ahnell Any questions should be directed to the author via email at: products@puttysoftware.com */ package com.puttysoftware.mastermaze.battle.map; import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.KeyEvent; import java.awt.event.KeyList...
38.433333
87
0.507706
45f6b4b5f420d49f4b17d95f2a5a084bb54b90f3
9,204
package TestScript.B2C; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.concurrent.TimeUnit; import org.openqa.selenium.chrome.ChromeDriver; import or...
33.469091
174
0.717188
d7860e8b6c5fa9dc5a13d9d9478eab53b4dd2a42
166
package com.ae.gestion.facture.virement.web.request; import lombok.Data; @Data public class VirmentRequest { private Long idFacture; private Double prix; }
16.6
52
0.759036
206b52bfaa9d0df74c8064934eafe9ab5afa20d6
10,086
package jp.co.tis.s2n.javaConverter.convert; import java.io.File; import java.io.IOException; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.xml.parsers.ParserConfigurationException; import javax.xml.xpath.XPathExpressionException; import org.apache.commons.lang3...
37.080882
105
0.634245
252725658ab5096ded59aedde8fa90c68728824a
5,486
/** * Copyright 2008-2017 Qualogy Solutions B.V. * * 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...
20.938931
75
0.648742
b9da75fb5b5f175c4243a9b393d7f6b6f29f85b7
340
package com.brianway.learning.spring.aop.aspectj.anno; public class ForumService { @NeedTest(value = true) public void deleteForum(int forumId) { System.out.println("删除论坛模块:" + forumId); } @NeedTest(value = false) public void deleteTopic(int topicId) { System.out.println("删除论坛主题:" ...
24.285714
54
0.658824
d5457c903cf1bfa620b04cddaac6220322cd2529
231
package com.haulmont.sample.petclinic.service; public interface VisitTestDataCreationService { String NAME = "petclinic_VisitTestDataCreationService"; void createVisits(); boolean necessaryToCreateVisitTestData(); }
23.1
59
0.796537
a70c960f9620c9a6a3377a62bc5f91dc31ffa86d
1,739
package org.anddev.andengine.util; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import org.anddev.andengine.util.constants.Constants; public class SimplePreferences implements Constants { private static SharedPreferences.Edito...
32.203704
97
0.732605
d72cfb3f7c5619fc29f016f1e61ccd4192d049ec
4,220
package de.kontextwork.poc.spring.blaze.fullapp.rolemembership; import com.blazebit.persistence.view.EntityViewManager; import com.blazebit.persistence.view.EntityViewSetting; import de.kontextwork.poc.spring.blaze.core.PageableEntityViewRepository; import de.kontextwork.poc.spring.blaze.core.RegularEntityViewReposito...
43.505155
131
0.811611
ac02e5b2b18a51757c8c60a625cc0f937a10c849
9,361
package com.antest1.gotobrowser.Browser; import android.media.MediaPlayer; import android.os.Handler; import com.antest1.gotobrowser.Helpers.KcUtils; import com.antest1.gotobrowser.Helpers.MediaPlayerPool; import com.antest1.gotobrowser.Subtitle.KcSubtitleUtils; import com.crashlytics.android.Crashlytics; import com....
34.799257
112
0.552826
23a16a6959309fabf287af08382447d53a3713be
1,617
package com.ggg.et3.domain; import java.util.ArrayList; import java.util.List; import com.ggg.et3.jpa.entity.Category; import com.ggg.et3.jpa.entity.CategoryTag; import com.ggg.et3.jpa.service.CategoryService; import com.ggg.et3.jpa.service.CategoryTagService; /** * This class holds a list of CategoryTags which hol...
21.851351
90
0.681509
ef2eb68d77718f63f552eeff560f079d8e1a1a43
2,647
/* * JMAB - Java Macroeconomic Agent Based Modeling Toolkit * Copyright (C) 2013 Alessandro Caiani and Antoine Godin * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version ...
28.462366
127
0.717794
78f5d40d4c2da5b4d24630300912c420b527f41d
370
package com.kintone.client.model.record; import lombok.Value; /** A value object for a Text field. */ @Value public class SingleLineTextFieldValue implements FieldValue { /** The value of the Text field. */ private final String value; /** {@inheritDoc} */ @Override public FieldType getType() { ...
20.555556
61
0.681081
7d5763dbaf315577bcc1d2636c6dbfce666e71c2
2,440
package ru.apetrov; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; import ru.apetrov.models.*; public class HorseTest{ @Test public void whenMoveHorseUpLeft1(){ ChessBoard board = new ChessBoard(); Horse horse = new Horse(new Position(4, 4)); board.addFigure(h...
27.111111
48
0.711475
bbdade000af825e6d03ab0941c583a0737aa2296
452
package io.redspark.ireadme.init; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; @Configuration @PropertySource(value = "classpath:config/${spring.profiles.active}.properties", ignoreResou...
41.090909
111
0.836283
f0b4e8cd170ac0a677964b517d8dc151e3a6ba5d
1,508
package com.ragemachine.moon.api.mixin.mixins; import com.ragemachine.moon.MoonHack; import com.ragemachine.moon.impl.client.modules.render.EnchantColor; import net.minecraft.client.renderer.RenderItem; import net.minecraft.client.renderer.block.model.IBakedModel; import net.minecraft.item.ItemStack; import net.mine...
35.069767
206
0.700265