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
fb4b097854b8005e774f1532a78a261c4c8aa62d
870
package com.infinityraider.maneuvergear.utility; import baubles.api.BaublesApi; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; public class BaublesWrapper { private static final BaublesWrapper INSTANCE = new BaublesWrapper(); p...
28.064516
72
0.711494
841a4af3651da0be76b3f92b74949d48d59c20a3
473
package org.techtown.function; public class Function04 { public static void main(String[] args) { int count = 0; count = sum(1, 11); System.out.println(count); count = sum(1, 101); System.out.println(count); count = sum(1, 1001); System.out.println(count); } static int s...
15.766667
41
0.547569
44bb9d2675c38f9b2d473a1051a693d1086a674a
292
package io.machinecode.chainlink.spi.jsl.inherit; /** * @author <a href="mailto:brent.n.douglas@gmail.com">Brent Douglas</a> * @since 1.0 */ public interface MergeableList<T extends MergeableList<T>> extends Mergeable<T> { boolean getMerge(); T setMerge(final boolean merge); }
22.461538
81
0.712329
dc4a2013e07c51bb206b70c6cf9a741eea4600a8
2,768
package preds.predcl; import java.lang.*; import java.io.*; public class NeuralThird { double wts[]={7.03445,-0.0530477,-0.0602862,0.637679,0.0145851,0.74464,-0.0516415,-0.325435,-0.0335528,1.74902,-0.0551718,0.347583,-0.0331599,0.531472,-0.0605764,0.704366,-0.0182789,-0.0366056,-0.0662537,-0.462603,-0.0337762,-0...
53.230769
591
0.66763
651f06195bdbac814e17aeb96cc13c46479fc09f
498
package service.dataservice; import objects.ResultMessage; import po.GoodsStockReturnPO; public interface GoodsStockReturnDataService { /** *增加库存退货商品 * @param po * @return */ public ResultMessage add(GoodsStockReturnPO po); /** *删除库存退货商品 * @param po * @return */ ...
16.6
55
0.630522
8e083b70cd59341590d0fc8c05b0dd93de8b9983
4,502
/* * Copyright 2016 Greg Whitaker * * 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 ...
33.849624
119
0.68725
1c1f65bbdb85db1f2fcad0e97fdd9f58a0de02d2
3,706
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.actions; import com.intellij.ide.caches.CachesInvalidator; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.An...
37.816327
148
0.681058
6f5df95f606b54883c3b3a0b3729f418e025a9e9
24,926
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (...
44.99278
173
0.688638
757af41ee19c4b3d2bef1c93ea526e2e6e146cc7
5,929
/** * Copyright (c) 2013, DHBW Cooperative State University Mannheim * 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 copyrigh...
35.291667
87
0.707202
5de3e73d0928f927e9e697d7dc7a5077efcb7018
1,662
// Copyright 2009 Google Inc. All Rights Reserved. package com.google.android.apps.mytracks.io.gdata.maps; /** * Metadata about a maps feature. */ class MapsFeatureMetadata { private static final String BLUE_DOT_URL = "http://maps.google.com/mapfiles/ms/micons/blue-dot.png"; private static final int DEFA...
18.674157
63
0.673285
eaa6ece6dbd8cadc2f1c626c065d816da0e46576
4,850
package com.jzoom.rnble; import android.annotation.TargetApi; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCallback; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattDescriptor; import android.bluetoot...
27.873563
115
0.63299
2178ed37478136c1e6f931ebb23373eb02cb3f49
10,824
package info.varden.hauk.service; import android.Manifest; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import and...
45.1
151
0.653086
99d468711e0b306d15509fcf5021fc98c78d8e19
500
package au.gov.ga.geodesy.domain.model; import java.util.List; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import au.gov.ga.geodesy.support.spring.AggregateRepository; public interface CorsSiteRepository extends AggregateRepository<CorsSite> { @...
27.777778
77
0.782
67641d130e0a230b3507408f00754ff5b0c984cc
8,466
/* * Copyright 2021 Whilein * * 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...
28.505051
111
0.500709
32c2fcb624d8e3f97fb7c0f5a04dc93a210e6603
841
package com.cp372.server.filters; import com.cp372.server.ShapeEntry; import com.cp372.server.exceptions.BadRequestException; /** * Provides a generic interface for filters that must be implemented against * different shapes. * * @author Vaughan Hilts * */ public interface ShapeFilter { /** * Filters a set...
27.129032
77
0.709869
409c9fe71073c9eebfdf266948bb12ae8a6992cc
261
package com.intact.rx.exception; public class RateLimitViolatedException extends RuntimeException { public RateLimitViolatedException(String message) { super(message); } private static final long serialVersionUID = 1986698870775655015L; }
26.1
70
0.773946
6da87ab41e28d833705c76377b8b7a8e36d9fad1
14,519
/** * Copyright (c) 2021 Sam Baskinger */ package com.github.basking2.sdsai; import java.util.*; public class RTree<D extends Comparable<D>, T> { /** * Returned if a segment is inside another segment and so will be placed lower in the tree. * * This is used by {@link #isInside(Comparable[], Comp...
32.336303
136
0.512983
e93a890666d087550c7f84e5dd1539f809374e90
32
public class Scene { }
3.555556
18
0.5
8873df6b3d9b37c9f9b2d8cb0cb3dadf9226eb65
16,088
/* * Copyright (C) 2007 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 ...
31.669291
97
0.679761
27c36aafe92ad5e22753090958ebd38eeeb3c2d9
758
package com.davidremington.pomodoro; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.text.Font; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage) t...
29.153846
101
0.704485
da9a6e8a2709b9b5b6d1cb349a781ad897e3b008
408
package Patterns; import java.util.Scanner; // "/t"=tab public class Pattern2 { public static void main(String[] args) { Scanner scn = new Scanner(System.in); // write ur code here int num=scn.nextInt(); for(int i=num;i>0;i--){ for(int j=0;j<i;j++){ Syst...
20.4
45
0.497549
02d56922cfb06b79834c2459a0ecf1f16c79812a
2,161
package ui; import java.awt.Color; import java.util.HashMap; /** * UIConfig */ public class UIConfig { public static final int whiteTheme = 0; public static final int darkTheme = 1; public static HashMap<Integer, HashMap<String, Color>> themeColors; private static int theme; public static void init(int ini...
27.35443
92
0.697362
c27596f9ea228fd6fdbc25c8464f369a836ca353
9,242
package eu.eutampieri.catacombs.ui; import eu.eutampieri.catacombs.model.*; import eu.eutampieri.catacombs.model.gen.*; import eu.eutampieri.catacombs.model.map.TileMap; import eu.eutampieri.catacombs.ui.gamefx.AssetManagerProxy; import eu.eutampieri.catacombs.ui.input.KeyManager; import org.apache.commons.lang3.tuple...
40.713656
149
0.60528
0a79a448b4f392e0af874eab5ac099827bc12783
1,528
package ru.job4j; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.lang.Math; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; public class CalculatorTest { @Test public void whenAdd1Until3() { Calculator...
32.510638
105
0.632199
d2c1d42d9b492812019db7418569c7b87e9c90b3
348
package com.qr.dao; import com.qr.entity.Administrator; import org.apache.ibatis.annotations.*; @Mapper public interface AdminDao { @Select("select * from administrator") @Results({ @Result(property = "id", column = "id"), @Result(property = "hash",column = "hash") }) public A...
20.470588
54
0.635057
0fd8b14994dba3254bcb1360c53c14b0a8471016
485
/* * * Copyright (c) 2018-2025, BigPan All rights reserved. * */ package com.cloud.dips.common.security.social; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; /** * @author BigPan * @date 2018/8/1...
19.4
75
0.752577
497a3e5b3f8c888bc310b9b7a9c1c8f2188ca19d
4,830
package com.github.thierryabalea.ticket_sales.domain; import com.github.thierryabalea.ticket_sales.api.SectionSeating; import com.github.thierryabalea.ticket_sales.api.command.CreateConcert; import com.github.thierryabalea.ticket_sales.api.command.TicketPurchase; import com.github.thierryabalea.ticket_sales.api.event....
38.64
130
0.689648
9106e35459d788c13e61841528ca945109560b87
9,277
/** * Created by noras on 9/3/2017. */ import android.os.AsyncTask; import android.os.SystemClock; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Executor; import java.u...
30.218241
132
0.588121
9673842229f6ae33dfe24bb41526fc27d164f0c6
1,582
/* * 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 davy; import java.io.IOException; /** * Examples of loops * * @author mars */ public class LoopRequirements { privat...
28.763636
120
0.585335
17ccf088494f268e5171afb22bf960aca4d44470
399
package cn.suvue.discipline.practice.designpattern.mediator.modelmethod; /** * 同事 A * * @author suvue * @date 2020/1/18 */ public class ColleagueA extends AbstractColleague { public ColleagueA(int number) { super(number); } @Override public void setNumber(int number, AbstractMediator med...
19
72
0.666667
4c88ce387291ead339f30f3c19bd213482b99cfa
1,548
package com.kenrui.packetbroker.resend; import com.kenrui.packetbroker.structures.PacketToResend; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springfram...
32.25
146
0.75
6d2ab970902ec89b272ee68f9900234c914a9da5
2,272
/*- * ---license-start * Corona-Warn-App * --- * Copyright (C) 2020 SAP SE and all other contributors * --- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache....
27.373494
109
0.724472
82f99f1bff63f98fd2c2f58bc9c829c3cc7b7e76
8,677
/* * Copyright (C) 2016 - Niklas Baudy, Ruben Gees, Mario Đanić and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
36.004149
143
0.700818
d944a9d429250c1cedd9797e2f868133c828f5f2
1,689
package gps.NMEA.gps_position; import gps.NMEA.sentences.NMEASentenceTypes; public class GPSPositionHistoryBuilder { private GPSPosition currentPosition; private GPSPosition lastPosition; private GPSPosition secondLastPosition; private GPSPosition thirdLastPosition; private NMEASentenceTypes type;...
31.277778
88
0.669035
316551c4cb4c6d0a6c39acf11594c57801970a46
627
package com.sunmi.v2.printer; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * 线程管理类 * * @author lenovo * */ public class ThreadPoolManager { private ExecutorService service; private ThreadPoolManager() { int num = Runtime.getRuntime().availableProces...
20.225806
75
0.716108
b77211e5981bc2d91e364ad19f05005c5d7d2e97
7,820
package fr.mvanbesien.projecteuler.from001to020; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; public class Problem013 implements Callable<String> { public static void main(String[] args) throws Exception { long nanotime = System.nanoTime(); System.out.println("Answer ...
57.080292
96
0.844246
0b5ab561ee18b20b9ebb116966694f352bd6ced6
14,762
/*Copyright ©2015 TommyLemon(https://github.com/TommyLemon) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
29.822222
115
0.63948
85e61ba4122a025395b1e00e454a7f7594c59047
456
package com.zero.design.actions.Memento.black; /** * 负责人角色:负责人角色负责保存备忘录对象,但是从不修改(甚至不查看)备忘录对象的内容。 * Created by ljq97 on 2017/8/13. */ public class Caretaker { private IMemento memento; /** * 备忘录取值方法 * @return */ public IMemento retrieveMemento() { return this.memento; } /...
17.538462
47
0.600877
112e84e5ed4a948607ec9e3d9022bc887d96ac63
2,435
/* * Tower SDK API * cloudtower operation API and SDK * * The version of the OpenAPI document: 1.7.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.smartx.tower.model; import ...
22.971698
117
0.726489
a69647ab9ac8724ed6ef59eb24517138ce843393
652
package com.lj.gps.base; public class Pagination { private int pageStart; private int currentPage; private int pageSize; public Pagination() { } public int getPageStart() { return this.pageStart; } public void setPageStart(int pageStart) { this.pageStart = pageStart; ...
18.628571
49
0.625767
2d02ea89299bcd1ec1c7fb6d3a12dbd57c3de22c
3,390
/* * Apache v2 license: https://github.com/andreipruteanu/thekit/blob/master/LICENSE */ package movieinfo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import...
36.451613
102
0.574631
69faef6e6f3f0a2051c8d17464a9c147791902cf
376
package com.pmareke; import com.pmareke.facades.ComputerFacade; import com.pmareke.models.Computer; public class App { public static void main(String[] args) { ComputerFacade computer = new ComputerFacade(new Computer()); computer.turnOn(); // Ouch! Beep beep! Loading.. Ready to be used! c...
31.333333
74
0.68883
a91997f2e9a4e7b581b550678045050d9eca1962
1,667
package com.styx.monitor.config; import lombok.extern.slf4j.Slf4j; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.state.ConnectionStateListener; import org.apache.curator.retry.RetryForever; import org.springframewo...
37.886364
137
0.715057
c8be9fb27fc6a465951c9b577a7867f593ee35c3
785
package com.github.lokic.javaplus.validation; import com.github.lokic.javaplus.Either; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class SpecificationAdapterTest { @Test public void isSatisfiedBy() { Validation<IllegalArgument...
31.4
79
0.68535
1fd637ec61f0949ff6ba96e82fdd891f2e992c96
1,341
/* * Copyright 2008 Howard Hughes Medical Institute. * All rights reserved. * Use is subject to Janelia Farm Research Center Software Copyright 1.0 * license terms (http://license.janelia.org/license/jfrc_copyright_1_0.html). */ package org.janelia.it.ims.tmog.task; /** * This class encapsulates task progres...
25.788462
78
0.661447
9c31f6125726ed3963ba5280e1817d7d7d6707fe
4,349
/** * Copyright 2015 StreamSets Inc. * * Licensed under 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 Lice...
42.637255
116
0.750747
ff2a37c3ce778acaf5759bffc8c70ac4020fdee0
7,805
/* * This file is part of BOINC. * http://boinc.berkeley.edu * Copyright (C) 2012 University of California * * BOINC is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, * either version 3 of the Lic...
43.603352
83
0.736707
3137acc2c4a4ea900206dfb90410e16b873b25dc
711
package com.vinh.doctor_x; /** * Created by Vinh on 18-May-18. */ public class Comment { String ten; String text; public int getRating() { return rating; } public void setRating(int rating) { this.rating = rating; } int rating; public Comment() { } public...
14.8125
57
0.542897
b65b1d617ad15292abef1fb7ba13dc2bdcd457fb
4,623
package com.imengyu.datacenter.config; import com.imengyu.datacenter.exception.ConstraintViolationExceptionResponseEntity; import com.imengyu.datacenter.exception.ErrorResponseEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity...
55.698795
175
0.773091
61a66b530a683955677afb403e300d2520b75932
111
package vy.phoebe.regression; public class RModelMetadata { public String type; public String author; }
12.333333
29
0.756757
f0b7dc764661f2a7ed2d3b0982058d0d2571c0f1
4,218
package com.truthbean.debbie.proxy; import com.truthbean.Logger; import com.truthbean.debbie.bean.DebbieReflectionBeanFactory; import com.truthbean.debbie.core.ApplicationContext; import com.truthbean.debbie.reflection.ReflectionHelper; import com.truthbean.LoggerFactory; import java.lang.annotation.Annotation; impor...
39.420561
122
0.676861
9e17535b28ef465df9db2e5ec7c1f9107a97e048
1,984
package com.tlcpub.net.core.dao; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.tlcpub.net.ctl.dto.Code; import com.tlcpub.net.ctl.dto.Schedule; import com.tlcpub.net.usr.dto.User; import com.tlcpub.net.web.front.dto.FileUpload; public abstract class ...
21.565217
65
0.688508
983656d4e45f373238644bcfd6a1cfe38a007486
1,140
package com.joybean.yogg.datasource; import com.joybean.yogg.config.IDataSource; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * File data source that supplies website urls * * @author joybean */ @Component @ConfigurationProperties...
23.265306
75
0.67193
1334d105b92fa5daa96732ccaffc6af602c75130
5,685
package mapwriter.gui; import java.util.List; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiTextField; import org.lwjgl.input.Keyboard; public class ScrollableTextBox extends ScrollableField { public int textFieldX; public int textFieldY; public int textFieldWidth;...
22.207031
176
0.638874
36f6d61cdc9cfe80d6142b6d5f465053ba1fbd99
743
package com.dilshan.exceptionhandelling.exception; import com.dilshan.exceptionhandelling.model.Response; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.Exception...
33.772727
78
0.781965
00983df85a559125615250144f3d88f7615f73df
2,616
package org.openmrs.module.initializer.api.idgen; import org.apache.commons.lang3.StringUtils; import org.openmrs.annotation.OpenmrsProfile; import org.openmrs.module.idgen.IdentifierPool; import org.openmrs.module.idgen.IdentifierSource; import org.openmrs.module.idgen.RemoteIdentifierSource; import org.openmrs.modul...
31.142857
119
0.789373
70327e184eaa7cd3f6d7a999df8db59d8317534a
4,204
// Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved. package jodd.petite; import junit.framework.TestCase; import jodd.petite.data.DefaultBizImpl; import jodd.petite.data.Biz; import jodd.petite.data.DefaultBiz; import jodd.petite.tst.Foo; import jodd.petite.tst.Boo; import jodd.petite.tst.Zoo; pub...
29.398601
91
0.704805
981d84a90ab811666c962a121aed8b11de9d9a53
5,138
package dk.aau.netsec.hostage.logging; import java.io.File; import java.io.FileOutputStream; import java.util.ArrayList; import android.app.IntentService; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.os.Environment; import android.os....
32.726115
119
0.738225
2339f4e661da25d7d8434e753e074abf37541d73
6,367
/* ParagraphView.java -- Renders a paragraph in HTML Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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 ...
30.319048
79
0.707083
34f4cc668301e8f03716e9c03f38c5f85b8407eb
448
package casebook.service; import casebook.domain.models.services.UserServiceModel; import java.util.List; public interface UserService { public boolean registerUser(UserServiceModel userServiceModel); public UserServiceModel loginUser(UserServiceModel userServiceModel); public List<UserServiceModel> g...
23.578947
73
0.805804
2d0e2fde510bda5ccc34ea26e60b696667c3d801
751
package com.wolframtheta; import java.util.List; /** * @(#)Personaje.java * * * @author * @version 1.00 2009/2/28 */ public class Personaje { String nombre; int turno; List<String> sorpresa; int pifia = 0; int abierta = 0; public Personaje(final String n, final int t) { nombre = new Strin...
12.728814
48
0.584554
37d06ab5c0586ba51806d7d159ab1f063a33edf8
627
package com.javarush.task.task21.task2103; /** * Все гениальное - просто! * Упростить. Переменные не переименовывать, комментарии не оставлять. * * * Требования: * 1. Метод calculate должен быть статическим. * 2. Метод calculate должен возвращать значение типа boolean. * 3. Метод calculate должен принимать чет...
26.125
89
0.724083
a5ad4f36617c841b390bc530eb437cf11979d1fb
7,506
package mike.view; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.util.ArrayList; import java.util.HashMap; import javax.swing.*; import javax.swing.border.Border; import javax.swing.border.CompoundBorder; import javax.swing.border.EmptyBorder; import mike.controller.GUIC...
28.431818
109
0.701439
e82f3c99e00b2a09b05f6cad970d1cdcbaa8038d
3,008
package com.dukescript.api.events; /*- * #%L * events - a library from the "DukeScript" project. * %% * Copyright (C) 2016 - 2018 Dukehoff GmbH * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
29.490196
86
0.660572
f6e258a96bfee90899ca60984ca4c313ebf11565
360
package g1901_2000.s1967_number_of_strings_that_appear_as_substrings_in_word; // #Easy #String #2022_05_21_Time_3_ms_(10.82%)_Space_42.7_MB_(41.34%) import java.util.Arrays; public class Solution { public int numOfStrings(String[] patterns, String word) { return (int) Arrays.stream(patterns).filter(p -> ...
30
88
0.736111
c5f762ef63c25b03e48dd6104e97d0bb045b93a1
3,358
package com.zhuinden.movierandomizerclient.data; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.birbit.android.jobqueue.Job; import com.birbit.android.jobqueue.Params; import com.birbit.android.jobqueue.RetryConstraint; import java.util.List; import com.zhuinden.mo...
39.046512
127
0.640262
5e6f6e9f56d69936f177f0ee4ca8a07a0280e799
5,389
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (...
41.137405
133
0.729449
4ff17210daf8a19af1907faebc4e51f37e2ec868
1,070
/* * Copyright © 2020 Lunatech Labs B.V. and/or licensed to Lunatech Labs B.V. under * one or more contributor license agreements. Lunatech licenses this file to you * under the Apache License, Version 2.0; you may not use this file except in * compliance with the License. You may obtain a copy of the License at *...
28.918919
82
0.74486
9600b11a5f69249f7b9ab03b0750ec077d91fb32
16,350
/* * This class was automatically generated with * <a href="http://castor.exolab.org">Castor 0.9.2</a>, using an * XML Schema. * $Id: TaskDescriptor.java,v 1.1 2005/04/22 09:53:24 amin Exp $ */ package org.globus.cog.abstraction.xml; //---------------------------------/ //- Imported classes and packages -/ /...
34.566596
117
0.533517
8cffbb677f79e3c61cb53e675d7336fe1ffad024
7,724
// RobotBuilder Version: 2.0 // // This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // Java from RobotBuilder. Do not put any code or make any change in // the blocks...
35.109091
131
0.718151
cd26f4fe71e6d7dbcfe07ddd2fa968e30f2906d2
26,191
/* * Copyright (C) 1999-2011 University of Connecticut Health Center * * Licensed under the MIT License (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.opensource.org/licenses/mit-license.php */ package cbi...
36.630769
217
0.701653
9db91c1f7ecaffccf75fde07a61c5933d6e5bed1
2,303
package com.mossle.cms.web.sys; import java.util.List; import javax.annotation.Resource; import com.mossle.api.auth.CurrentUserHolder; import com.mossle.client.open.OpenAppDTO; import com.mossle.client.open.OpenClient; import com.mossle.client.open.SysDTO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; ...
29.909091
80
0.67564
160caf6f127df7a8ffc9d29908e05deb28d633ae
963
package com.infotamia.cosmetics.services.language; import com.infotamia.cosmetics.daos.language.LanguageEntityDao; import com.infotamia.exception.BaseErrorCode; import com.infotamia.exception.ItemNotFoundException; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.validation.const...
30.09375
126
0.739356
89e787f41111910e7d25d0e04fa31fb375036d6d
213
package com.pichs.common.base.stack; /** * 栈的被管理者接口 */ public interface IStackChild { /** * 当触发,添加接口 */ void onAddActivity(); /** * 当触发,移除接口 */ void onRemoveActivity(); }
11.210526
36
0.539906
331c7f37fc75e1c261c08c10f430240b29f8f183
533
package br.com.zupacademy.vinicius.casadocodigo.categoria; public class CategoriaDto { private Long id; private String nome; public CategoriaDto(Categoria categoria) { this.id = categoria.getId(); this.nome = categoria.getNome(); } public Long getId() { return id; } ...
19.035714
58
0.559099
da9a01a25098de983cf934be119a4c5e03eea719
4,208
/* * Copyright (c) 2004, KNOPFLERFISH project * 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 list ...
30.057143
86
0.686074
ebffe8a1b236bb28087187e07329fa5bdba83efe
1,852
package com.famaridon.gitlab.hook.server.configuration; import com.famaridon.gitlab.hook.server.api.beans.AbstractEvent; import com.famaridon.gitlab.hook.server.api.beans.SystemEvent; import com.famaridon.gitlab.hook.server.api.beans.system.AbstractSystemEvent; import com.famaridon.gitlab.hook.server.sdk.listeners.Hoo...
35.615385
77
0.799676
638410c779136b40307b582b781c97f2028af7d9
192
package com.ugiant.jfinalbase; import com.jfinal.core.Controller; /** * controller 基类 * @author lingyuwang * */ public abstract class BaseController extends Controller { }
14.769231
58
0.692708
4b9df9f5d1a7ae900080bc9920e358c380e1a221
2,023
package remoteio.common.core.helper; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.ShapedOreRecipe; /** * @author dmillerw */ public class RecipeHelper { public static vo...
31.609375
96
0.56698
58fdfd98d362bbedf95466e31f17f920ea427b81
2,663
package nc.util; import java.io.*; import java.nio.file.*; import java.util.zip.*; public class IOHelper { public static final String NEW_LINE = System.lineSeparator(); public static final int MAX_ZIP_SIZE = 50000000; public static final int ZIP_READ_SIZE = 0x2000; /** Modified from Srikanth A's answer at h...
30.965116
168
0.681187
ab288a44962b3a50b6e4a6b5945b1aecec50a199
1,703
package steps; import es.bsc.dataclay.DataClayObject; import es.bsc.dataclay.api.BackendID; import es.bsc.dataclay.api.DataClay; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; import model.People_Stub; import model.Person_Stub; impor...
36.234043
108
0.730476
8b23e52b558cece407950b3e604667fbc3e71ebb
7,085
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/router/command/command.proto package com.xray.app.router.command; public final class Command { private Command() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static ...
56.230159
201
0.768102
9088a33c1a52f03278b9e01c21fbdfebf024425d
1,454
package com.github.glusk2.wse.common.crypto.srp6; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.nio.ByteOrder; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import org.junit.Test; import com.github.glusk2.wse.common.crypto.srp6.rfc50...
33.045455
79
0.655433
6ed5d5ced471cbcb4814b0f515c1f3f1bb34480b
2,517
package com.chess.engine.board; import java.util.Collections; import java.util.HashMap; import java.util.Map; import com.chess.engine.pieces.Piece; //Abstract class, splits into two subclasses: emptyTile and occupiedTile //Abstract class cannot be instantiated public abstract class Tile { //8x8 grid o...
27.966667
128
0.706794
79e583f90d8be6a0adf0d6e361e92000db85e6ef
736
package cz.mg.application.entities.architecture; import cz.mg.annotations.requirement.Mandatory; import cz.mg.annotations.storage.Value; import cz.mg.application.entities.Store; import cz.mg.application.entities.MgEntity; @Store public class MgSequence extends MgEntity { private static final long INITIAL_VALUE =...
22.30303
109
0.67663
089759302eb272f6ea4347f354d85ffeba3aaefe
908
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj2.command.Subsyste...
24.540541
80
0.702643
5c502d36ea1312a510feb050fd0e60892dd667f7
3,347
package org.dsa.iot.dslink.util.json; import io.netty.util.CharsetUtil; import java.util.*; /** * @author Samuel Grenier */ @SuppressWarnings("unchecked") public class JsonArray implements Iterable<Object> { private final List<Object> list; public JsonArray() { this(new LinkedList<>()); } ...
23.405594
74
0.568868
39fed3dadb69ec2801657ec070ebb8feb1fded1f
1,419
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.trading.api; /** * * Defines values that describe an application's current status * with respect to an API access rule. The rules specify daily, * hourly, and periodic usage limits for various eBay Web Services calls. * */ public ...
20.565217
81
0.571529
8df7cb3b335e020cc4b6a45394339e2382ef06ad
11,964
package Chapter2; //only really used for validation import javax.swing.JOptionPane; /** * * @author trophic */ public class BookGUI extends javax.swing.JFrame { /** * Creates new form BookGUI */ public BookGUI() { initComponents(); } /** * This method is called from within ...
45.14717
190
0.599131
663a4252637367e2dce9bcc742d7b4c4e278979d
2,131
/* * Copyright 2016 Detlef Gregor Herm * * 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 applicabl...
38.053571
107
0.807602
75e37c7ef3931011eb430f62209d28abe765a0f1
1,158
package br.com.transacao.transacoes; import br.com.transacao.cartao.CartaoResponse; import br.com.transacao.estabelecimento.EstabelecimentoResponse; import java.math.BigDecimal; import java.time.LocalDateTime; public class TransacaoResponse { private String id; private BigDecimal valor; private Estabelec...
21.849057
64
0.648532
ae6211f4ede01f6f390d141559066699eac763ac
180
package com.tamatea.model.selection; import com.tamatea.model.entity.Entity; public abstract class Selection<T extends Entity> { public abstract String selectionName(); }
16.363636
51
0.772222
327bed5143ea65be90fc44d2c08afd851896542a
3,216
/* * 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.395349
85
0.691542
2017a9818fee5173917eeb78056d8b0336ef2ec1
956
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
34.142857
91
0.525105
f1f69ea5c258f1ab532d053a5d82542e4a3a5e93
4,062
package io.github.ph1lou.werewolfplugin.save; import com.eclipsesource.json.Json; import com.eclipsesource.json.JsonObject; import com.eclipsesource.json.JsonValue; import io.github.ph1lou.werewolfapi.events.UpdateLanguageEvent; import io.github.ph1lou.werewolfplugin.Main; import io.github.ph1lou.werewolfplugin.game....
38.685714
152
0.610044
38890529e771a59faf24db6718bd8fb7bf6d8038
6,243
/* ***************************************************************************** * Name: * Date: * Description: **************************************************************************** */ import edu.princeton.cs.algs4.FlowEdge; import edu.princeton.cs.algs4.FlowNetwork; import edu.princeton.cs.algs4.FordFul...
31.371859
89
0.517059
37284bf4d14548d63fd0c2fc26525b636e6dd88c
131
package com.bin.david.form.annotation; /** * Created by huang on 2017/11/4. */ public enum ColumnType { Own,Child,List; }
13.1
38
0.664122
c66309fcb476af3e79d5baaf815744f4b034ee37
207
package net.codetojoy.haiku.common; public record Entry(String id, int syllableCount) { @Override public String toString() { return "id: " + id + " syllableCount: " + syllableCount; } }
23
64
0.652174
ecdb0a1c0c27bcc504faeb0ac52ca1d5463338e4
580
package io.github.vladmk.randomport; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; /** * Created by Vlad Mikerin on 7/7/17. */ @Component @Slf4j public class R...
27.619048
98
0.784483
b3eecaf8d51e803938e386d3f89038d6d6d8c866
10,324
/* * MIT License * * Copyright (c) 2018 i4one Interactive, LLC * * 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 us...
36.871429
331
0.738473