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
a5bffc1da29f867ef2235c5eecbb04400122e13f
3,562
/* * Project: Timer * Class: com.leontg77.timer.Main * * The MIT License (MIT) * * Copyright (c) 2016-2018 Leon Vaktskjold <leontg77@gmail.com>. * * 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...
35.62
107
0.6516
c286b8a86988813d962afbd268d38a3c9af2bdb2
5,799
/* * Copyright 2015 JAXIO http://www.jaxio.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 applicable la...
23.573171
122
0.634247
1ba248062870ae9ce31ab522789cdd4cbcb341f0
11,774
package com.bbva.kyof.vega.protocol.subscriber; import com.bbva.kyof.vega.autodiscovery.model.AutoDiscTopicSocketInfo; import com.bbva.kyof.vega.protocol.common.VegaContext; import com.bbva.kyof.vega.protocol.control.ISecurityRequesterNotifier; import com.bbva.kyof.vega.util.collection.HashMapOfHashSet; import lombok....
48.057143
170
0.691439
814d4e86ed8af3cf4f147c5c877dbdcb6b963ea9
6,479
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
35.598901
101
0.618923
75c710e927381f37e97f8ab3f15e32d81a920f36
1,445
/* * 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 * distribut...
32.840909
80
0.740484
b47a0bc712e85a7b55b0bb203e25e75ffa544c15
343
package exercicio_1_2; public class Calzoneria implements Fabrica { public static final int CALABRESA = 1; public static final int PRESUNTO = 2; @Override public Produto getProduto(int tipo) { switch(tipo) { case CALABRESA: return new CalzoneCalabresa(); case PRESUNTO: return new CalzonePresunto(); ...
18.052632
44
0.725948
c34a256e63d5051485bf9c2db25a193a455e40e9
711
package net.sourceforge.ondex.parser.taxonomy; /** * Interface states meta data usage of Parser. * * @author taubertj * @version 28.05.2008 */ public interface MetaData { /** * The evidence type */ public static final String ET = "IMPD"; /** * The concept class */ public static f...
17.341463
47
0.606188
7fa84746b264fae796bb56f2e8392b3bc748d5ae
4,515
/** * 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...
35.551181
111
0.732669
b14483c7abca7a160282de621c42859298d85743
218
package maxim.rpc.socket; import maxim.rpc.socket.transport.IoSession; import java.nio.ByteBuffer; //消息传输协议接口 public interface Protocol<T> { public T decode(final ByteBuffer readBuffer, IoSession<T> session); }
19.818182
71
0.775229
49cec2f8c8bbbda5b3258a0f34dfe733cc68c8bc
707
package com.skytala.eCommerce.domain.workeffort.relations.deliverable.event.workEffortProd; import java.util.List; import com.skytala.eCommerce.framework.pubsub.Event; import com.skytala.eCommerce.domain.workeffort.relations.deliverable.model.workEffortProd.WorkEffortDeliverableProd; public class WorkEffortDeliverab...
33.666667
116
0.862801
e9ba0fe97b17c725b73914bbab03b359ffc16680
37,454
package org.aion.zero.impl.pendingState; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import java.io.File; import java.math.BigInteger; import java.util.ArrayList; import java.util.Collections; import java.util.Lis...
41.477298
170
0.624446
c7da3162b7325a6bc866c564d186f1d8dea48a2c
1,538
package com.annas; import org.newdawn.slick.*; import org.newdawn.slick.geom.Vector2f; public class Main extends BasicGame { Player player; Enemy enemy; static Ball ball; static Vector2f mousePos; public static void main(String[] arguments) { try { ...
25.213115
109
0.583875
6d99c6656267f39232fdbd104892757d9e6d39ec
4,539
package seedu.ezwatchlist.storage; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static seedu.ezwatchlist.testutil.Assert.assertThrows; import static seedu.ezwatchlist.testutil.TypicalShows.AVENGERSENDGAME; import static seedu.ezwatchlis...
40.168142
113
0.722186
5cb5c0c6eb2fc7011a0c024283bba93b352d829c
1,260
package team07.vikingwars.Model; /** * Woodcutter is a production building, it produces wood. * This class is a subclass of Building. */ public class Woodcutter extends Building { private int baseProduction; private int resourcePerTurn; /** * Constructor for woodcutter. * @param level *...
23.333333
120
0.603968
ccff97e978cb89d197da4f949a81774c87043a36
1,520
package com.faoncloud.app.messenger.MensageiroBranco.message; import java.util.Date; //{ // "fromid": "1", // "message": "Olá Mamae. Aqui é o papai.", // "sentdate": 1582680700506, // "toid": "2", // "read":"no" // } public class Message { private Integer id; private Integer fromid; private Integer toi...
19.74026
111
0.652632
fe07f3ccc6d01954178d2f8245c3362dbc0021a0
169
package util.remoter.service; import remoter.annotations.Remoter; /** * To test @Remoter can be passed */ @Remoter public interface IGen<T> { T echo(T input); }
14.083333
35
0.698225
43b7e247a785c4fcce97a8aa37e489492e628bec
4,464
/* * The MIT License (MIT) * * Copyright (c) 2010 Technische Universitaet Berlin * * 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 t...
39.857143
115
0.706541
cc19d7b2d603f9864956b54be61178171ecc6fba
1,072
public class Solution { /* Binary Tree Node class * * class BinaryTreeNode<T> { T data; BinaryTreeNode<T> left; BinaryTreeNode<T> right; public BinaryTreeNode(T data) { this.data = data; } } */ ...
26.146341
91
0.407649
d2ebe7da12fbf1872ab71db1c3f1227ca2e51453
55
package segua; public abstract class PlayerPair { }
9.166667
34
0.745455
aa5ab4a9380dc7f7568d0519e656baf38846b59a
1,637
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
30.314815
82
0.682346
f49e99a77538cb00a668419735f0dc19b797f2d3
246
package com.akshat14714.stockcalculator.common.dtos.request; import com.akshat14714.stockcalculator.common.dtos.LatLong; import lombok.Data; @Data public class DirectionRequest { private LatLong origin; private LatLong destination; }
18.923077
60
0.800813
ae83bebf18b3e8ba23b268d0217fee737acf02a9
11,886
/* * 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 ...
24.608696
195
0.669527
865c6c87fbe20a8a9d953ef3a70da35542b7fbf8
7,553
package edu.cmu.lti.nlp.chinese.parser; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.List; import edu.cmu.lti.algorithm.structure...
32.277778
140
0.562426
04d564492a6ca7ff0012f48cbbd974f8a5b84cf1
7,627
package com.oxygenxml.gim.ui.ec; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.text.Document; import org.eclipse.jface.text.source.SourceViewer; import org.eclipse.jface.text.source.S...
26.482639
90
0.576505
5f371b98fe95a8c19c15a75c6b87ed1c5aaa912d
812
package com.amituofo.xcexplorer.entry.plugin.hitachi.hcp.model; import javax.swing.DefaultComboBoxModel; import com.amituofo.common.ex.ServiceException; import com.amituofo.xfs.plugin.fs.objectstorage.hcp.item.HCPFileItem; import com.amituofo.xfs.plugin.fs.objectstorage.hcp.item.HCPMetadataItem; public class HCPObje...
26.193548
109
0.780788
803346cde537148a91bb71342c2bd71947ad8e9b
581
package com.sefford.common; import com.sefford.common.interfaces.Postable; /** * NullPostable is a dummy implementation of a Postable using Null-Object. It does nothing at all * when a element is received. * * @author Saul Diaz <sefford@gmail.com> */ public class NullPostable implements Postable { /** ...
23.24
97
0.702238
440b09991bdc82ec43600d873d3d0344a3d16f19
206
package com.wesring.example; /** * * @author Wes Ring * */ public class Drink { String type; public Drink(String _drink) { type = _drink; } public String getDrinkType() { return type; } }
11.444444
31
0.631068
bc1198d979a1020c317b965341674a097875b681
129
public class PacketThreadUtil$1 { // Failed to decompile, took too long to decompile: net/minecraft/network/PacketThreadUtil$1 }
43
93
0.79845
2480e928bbe8141a63346371d58fb47dad3d5cb7
17,501
/* * ### * Xcodebuild Command-Line Wrapper * * Copyright (C) 1999 - 2012 Photon Infotech 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/licen...
31.030142
112
0.689618
0c6bb9c1d1418b7cf5f5f1a21cf9cc7d0739463b
186
package br.com.economize.dao; /** * @author Mateus Henrique Tofanello * */ import br.com.economize.domain.Empresa; public class EmpresaDAO extends GenericDAO<Empresa> { }
15.5
54
0.704301
ff1f581f7ac87cb6402987cc0ff0302d52a19939
1,843
package com.ashessin.cs474.hw1.generator.creational; import com.ashessin.cs474.hw1.generator.*; public class SingletonGen extends DesignPatternGen { private String packageName; private String singletonName; private String singletonInstanceFieldName; private String singletonAccessorMethodName; public SingletonG...
34.773585
100
0.742811
27edfeca7add336f97f163e3e29113607d111557
814
package cn.jianke.imagedeal.imageloader; import android.content.Context; import com.bumptech.glide.load.model.GenericLoaderFactory; import com.bumptech.glide.load.model.ModelLoader; import com.bumptech.glide.load.model.ModelLoaderFactory; import java.io.InputStream; /** * @className:CustomImageSizeModelFactory * ...
26.258065
97
0.710074
f1a04d7467e458149ff1d1fa3d7738c26e298fae
398
package com.spingular.cms.repository; import com.spingular.cms.domain.Feedback; import org.springframework.data.jpa.repository.*; import org.springframework.stereotype.Repository; /** * Spring Data SQL repository for the Feedback entity. */ @SuppressWarnings("unused") @Repository public interface FeedbackRepository...
30.615385
112
0.81407
ea2c9278d6e50ddb4510a1ca425ed9e3a866502d
350
package ru.myx.sql.wrapper; import java.sql.Connection; interface ConnectionInfo { /** @return int */ int connectionMaxLoops(); /** @return long */ long connectionTimeToLive(); /** @return connection */ Connection createConnection(); /** @param poolConnectionHolder */ void reuse(final ConnectionHold...
16.666667
57
0.711429
8e39ed6bc626cdfe48912ed23ef92c5c90e706f2
2,756
/*----------------------------------------------------------------------------*/ /* Copyright (c) 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...
19.971014
80
0.605951
72cf4a67a5158e7cc3cf4c57d444e83e8316c708
12,039
/** * Copyright 2011 The PlayN Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
37.504673
99
0.698646
cef1eaee9a4cab89daf933998391b1f3a77943c9
5,404
import java.util.*; /** * Driver Class * * @author Seyda Nur DEMIR */ public class Driver { void driverForBranch () { KWLinkedList <Branch> branches = new KWLinkedList <Branch>(); System.out.println("\n---------------------------------------------------- Branch Class Driver"); branches.addLast((new Branch("...
63.576471
223
0.584567
a3145233dcb6af4de3ea7a9d10032e13917d0698
242
package com.hy.tuna.xml.elements; public class ResultMapNode extends AbstractNode{ private String type; public String getType() { return type; } public void setType(String type) { this.type = type; } }
16.133333
48
0.640496
eee6ac1edf7000c55c4299bf3d2a3a9d53ad803a
747
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: packimports(3) // Source File Name: DataSourceConnectionImpl.java package com.ibm.tivoli.maximo.report.birt.datasource; import java.sql.Connection; // Referenced classes ...
24.9
78
0.725569
6121d234102c55fe88d487c73d510d12debe47e7
206
package edu.bator.cards.todo; import edu.bator.cards.Card; public class EmoreCrossbow extends Card { public EmoreCrossbow() { } public EmoreCrossbow(Card cloneFrom) { super(cloneFrom); } }
13.733333
41
0.713592
9675e9793082328fb174e7156ef85e711293d6a9
23,698
/* * Copyright (C) 2014 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...
33.005571
103
0.70449
a48423d090103fa5b4288e369657428625c01b3d
4,641
package bt.runtime.evnt; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Consumer; import bt.types.number.MutableInt; import bt.utils.Null; /** * A basic data dispatcher for generic dispatching of i.e. events to listen...
27.957831
117
0.59707
5c68ba95ba391c15cf13448bf1c06a48f52ddf02
1,109
package prot3ct.workit.views.edit_profile; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import prot3ct.workit.R; import prot3ct.workit.views.edit_profile.base.EditProfileContract; public class EditProfileActivity extends AppCompatActivity { private EditProfileContract.Presenter pres...
34.65625
108
0.711452
a30c96b22055cf1f4e7d1eb2e146853eafe9b7e5
1,161
package interpreter.bytecode; import interpreter.VirtualMachine; import java.util.List; /** Used prior to calling a function. This instruction is immediately followed by the CALL instruction; the function has n args so ARGS n instructs the interpreter to set up a new frame n down from the top of the runtime stack....
27
108
0.695952
434d5bbf32fdefadd675ccce48e452677a310081
11,882
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
43.050725
143
0.61833
d766dc90e518fb16f40d52633defcd90789efe3a
253
package com.revature.dao; import java.sql.SQLException; import com.revature.project0.Customer; public interface CustomerDao { public void regNewCustomer(Customer c) throws SQLException; public Customer retrieveById(int id) throws SQLException; }
21.083333
60
0.810277
322667cccaa0a581f2bd7830bf771334203f90f0
2,347
package com.herle.hibernate; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "stock") public class Stock implements ja...
23.707071
101
0.684704
b308b982aefdadc9e9d23ad60a58fab67fc5d8ee
20,645
package org.apache.helix.api.accessor; /* * 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 Licen...
42.392197
102
0.744248
1fa876b78b24768579b6d53eff11e484d8577d56
2,398
package consultorio.classes; import consultorio.classes.Enum.Especializacoes; public class Odontologista extends Pessoa{ protected String crm; protected int iddentista; protected Especializacoes especializacoes; public Odontologista(String nome, String cpf, String telefone, String email, String sexo, int idade,...
31.973333
123
0.728941
4dc5e74662742d9d3dc83eb32072b38fa623235e
2,097
package seedu.expensela.logic.parser; import static seedu.expensela.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.expensela.logic.parser.CliSyntax.PREFIX_BUDGET; import static seedu.expensela.logic.parser.CliSyntax.PREFIX_RECURRING; import java.util.stream.Stream; import seedu.expensela.l...
39.566038
113
0.713877
d368e2f4fd7cd3cedc387f60b0a70ff739f917aa
456
package frc.robot.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.Climber; public class ZeroClimber extends CommandBase { private final Climber m_climber; public ZeroClimber(Climber climber) { m_clim...
21.714286
59
0.719298
8d311c6a7b6cf756f95c903cf5e034f098a49e7d
3,430
package org.codehaus.xfire.wsdl11; import java.util.Collection; import java.util.Map; import javax.xml.namespace.QName; import org.codehaus.xfire.service.Endpoint; import org.codehaus.xfire.service.MessageInfo; import org.codehaus.xfire.service.MessagePartContainer; import org.codehaus.xfire.service.MessagePartInfo;...
37.692308
104
0.664723
0a04d77c793743c58d6d6a229116f9c6d682a6ce
414
package com.broadcom; import com.broadcom.apdk.api.BaseAction; import com.broadcom.apdk.api.annotations.Action; import com.broadcom.apdk.api.annotations.ActionPacks; @Action( name = "ACTION3", title = "Action #3 for testing the API" ) @ActionPacks({TestActionPack2.class}) public class TestAction3 extends BaseActio...
20.7
53
0.748792
d8409c6324c13b795c30176bbc1b825f88fefba8
1,019
package cn.fjc.reflectiontutorial; /** * Created by shiqifeng on 2017/1/9. * Mail byhieg@gmail.com */ public class ExampleObject extends FatherObject { public int age = 30; public String name = "byhieg"; private Integer score = 60; public void printName() { System.out.println(name); } ...
16.435484
50
0.57213
6904cf9f0f6ab0ba6fda67674adf33209fdd5cfb
1,372
package com.venus.demo.dao.model; public class User { private Long id; private String name; private String email; private String gender; private Integer age; private String address; private String qq; public Long getId() { return id; } public...
18.794521
64
0.528426
c40254435c5407a97eba8026231dc65b4e3e7a2f
8,645
/* * 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 ...
39.474886
140
0.646617
c783cbf3bc94f0d2a13bd987674b6076a8e37900
236
package com.example.errorutil; import android.util.Log; public class LogError { private static final String TAG = "MY_MODULE"; public static void errorPrinter(String TAG, String message){ Log.e(TAG, message); } }
19.666667
64
0.699153
6f6410bc219dabc3b100670d6d4fdc985828895d
278
package buzz.song.facilitator.repository; import buzz.song.facilitator.model.Track; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; public interface TrackRepository extends JpaRepository<Track, Track.TrackID> {}
34.75
79
0.848921
a60230191153f5d03fe5c63017c7d8acc9ed664f
65
package com.zb.basic.mvp.model; public interface IBaseModel { }
13
31
0.769231
40d04c27cf3a5b8786e849bf7c48bc539d409c31
14,478
package info.smart_tools.smartactors.message_processing.wrapper_generator; import info.smart_tools.smartactors.base.exception.invalid_argument_exception.InvalidArgumentException; import info.smart_tools.smartactors.class_management.class_generator_with_java_compile_api.FromStringClassGenerator; import info.smart_tools...
45.961905
121
0.562509
b2d6093a67b8738b1f70b7432a46975be691b9a0
6,262
/** * Copyright 2005-2007 Xue Yong Zhi * Distributed under the BSD License */ package com.xruby.compiler.codedom; import java.util.*; import antlr.RecognitionException; class Rescue { private final ExceptionList condition_; private final CompoundStatement body_; Rescue(ExceptionList c...
30.696078
109
0.595816
3fdeb474ca1ae89d16f20861bbb7d8ea97f942ae
2,941
/* * Generated from SessionStateData.bond (https://github.com/Microsoft/bond) */ package com.microsoft.applicationinsights.contracts; import java.io.IOException; import java.io.Writer; import java.util.Map; import com.microsoft.telemetry.JsonHelper; /** * Data contract class SessionStateData. */ publi...
23.34127
88
0.571234
c3f5a52f158df0706c2a145131b017d8b19a8a6f
850
package com.springx.bootdubbo.job.autoconfig; import com.dangdang.ddframe.job.event.JobEventConfiguration; import com.dangdang.ddframe.job.event.JobEventListener; import java.io.Serializable; /** * @author <a href="mailto:fuchun.li@lifesense.com">fuchun.li</a> * @description 事件配置 * @date 2019年01月15日 11:22 AM * @...
22.972973
83
0.682353
922ce46c5c1c409580676d85e08586c27735a8e0
8,676
package edu.uga.ei_final; /** * A program to extract semantic relations for job postings using Sparql and ontologies. * @author Gaurav Agarwal */ //package uga.ei.team4; import org.apache.jena.query.*; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.RDFNode; import org.apache.jena.util.Fil...
36.919149
124
0.571
d72fbf28aa7b1c818e14aaf37ba3e02312d218ad
6,815
/* * Copyright (C) 2016 essobedo. * * This 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 2.1 of * the License, or (at your option) any later version. * * This software is distri...
34.075
79
0.588114
19c172cca58b7dd3e5d5b742fa4668cb94f27ce4
6,519
package net.kyrptonaught.glassdoor; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; import net.minecraft.block.*; import net.minecraft.client.render.RenderLayer; public class GlassDoorMod implements ModIniti...
71.637363
348
0.782482
d0b1dab3e863432f7d2337025114bfa169398b6f
1,875
/* * Copyright (c) 2013 Vwazen Nou * All rights reserved. */ package org.vwazennou.mrs.formulary; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; impo...
27.173913
95
0.705067
557aa2ee068d2a7ef4a5444a250f89fcddb62ced
717
/* * 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 practice; /** * * @author prakash */ public class cmd2 { public static void main(String[] args) { int coun...
22.40625
79
0.524407
160c24c1de7d621b2d1f1418405edf6e39622ebe
6,387
/** * a small, limited port of Python's Struct, based on java.nio.ByteBuffer * @author zigliolie - Copyright Sirtrack Ltd. * */ package com.sirtrack.construct; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Arrays; /** Functions to convert between Python value...
24.377863
112
0.571786
48cd79e533acf02c0bfa2619dd9e3743a74d985c
2,841
package server; import dh.KeyExchange; import java.io.*; import java.net.ServerSocket; import java.net.Socket; import static utils.CryptChatUtils.*; public class Server implements Runnable { private ServerResponse serverResponse; private ClientHandler clientHandler; private int port; private Serve...
23.675
85
0.63886
0ad4218534cf473e3773ea3a551876cca8598dbe
4,850
/* * Copyright 2016 Michel Vollebregt * * 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...
46.190476
121
0.717113
6fa3bb72dae81ae19626ff325f8c0d7934f63002
828
package io.smsc.jwt.service; import io.smsc.jwt.service.impl.JWTTokenGenerationServiceImpl; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import java.io.Serializable; import java.util.Map; /** * This interface is describing methods to provide JWT au...
28.551724
78
0.799517
3a4c4b753b717dae6d2f888eecefffc7a63f6d55
1,992
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
23.162791
82
0.725904
62bbfa64e77eae935e5a1eb3e9c68c5bed24e0e4
647
package im.silen.vueboot.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import static im.silen.vueboot.util.StringUtil.stripWhitespace; class StringUtilTest { @Test void stripWhitespace1() { Assertions.assertEquals(stripWhitespace(" \u202a \nhello \n world \n ...
40.4375
111
0.692427
5a47db7dc113e446ee041e8c5c2f5e300133eaa0
1,185
package it.secretbasium.bns.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import it.secretbasium.bns.dal.GiftDAO; import it.secretbasium.bns.entities.Gift; @Service public class GiftServiceImpl implements GiftService { ...
19.42623
62
0.664135
452c33c693783e86ee2dcfee72bf09e80307b9ce
294
package com.common.jdk.desginpattern.bridge; /** * <p> * </p> * * @author zhoucg * @date 2019-11-05 9:41 */ public class ConcreteImplementorA implements Implementor{ @Override public void OperationImpl() { System.out.println("具体实现化(Concrete Implementor)角色被访问" ); } }
18.375
64
0.663265
c0ea4d588641224fe337039be0aedbf99c30afcf
218
package game; public interface GameField { void markPosition(int i, int j, char signOfMark); char getPosition(int i, int j); boolean getIsMarked(int i, int j); boolean isFilled(); int getSize(); }
21.8
53
0.674312
7f53cde533fbd0558a477f5815bc090909ac988b
20,473
package hu.juhdanad.neonjumper; import java.util.Arrays; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.Screen; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graph...
36.235398
108
0.430274
8ba501d438589cb1c23139038a74453a659dbe28
171
package com.github.serezhka.jap2lib.rtsp; public interface MediaStreamInfo { StreamType getStreamType(); enum StreamType { AUDIO, VIDEO } }
14.25
41
0.654971
f56d1d00ce21993866121843e60336a1d52e4040
1,790
package by.it.academy.elearning.model; import java.util.Objects; public class User { private Long id; private String userName; private String password; private String role; public User(Long id, String userName, String password, String role) { this.id = id; this.userName = userNam...
21.309524
73
0.544134
947c70223dd3f4b9d64a91d1740e3762a1c78d36
1,011
//,temp,MQTTMaxFrameSizeTest.java,94,121,temp,MQTTMaxFrameSizeTest.java,65,92 //,2 public class xxx { @Test(timeout = 30000) public void testFrameSizeNotExceededWorks() throws Exception { LOG.debug("Starting test on connector {} for frame size: {}", getProtocolScheme(), maxFrameSize); MQTT mqt...
30.636364
105
0.605341
b69fe886c8faaeb7f05afcf7afcf10a7c07d6c51
641
package com.surroundrervouscat.astar; import java.awt.Point; public class Node implements Comparable<Node> { public Point point; // 坐标 public Node parent; // 父结点 public int G; // G:是个准确的值,是起点到当前结点的代价 public int H; // H:是个估值,当前结点到目的结点的估计代价 public Node(int x, int y) { this.point = new Point(x, y); ...
18.852941
55
0.591264
3bc473690219de60e5a163b628e3e61465a5ca2f
1,221
/** * Copyright 2012-2019 Wicked Charts (http://github.com/adessoAG/wicked-charts) * * 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/LICENS...
34.885714
81
0.731368
bba6e51ec2ba88ebd01c658b9cbf1df1eb7cc28c
3,913
package com.github.tadukoo.util.map; import com.github.tadukoo.util.tuple.Pair; import java.util.Map; /** * A ManyToManyMap class that uses {@link HashMultiMap} as the backing {@link MultiMap} class. * * @author Logan Ferree (Tadukoo) * @version Alpha v.0.2 * @since Pre-Alpha */ public class HashManyToManyMap<...
34.628319
97
0.732686
62710891e18a25df1bba15bee8fc20deb732440c
631
package com.google.cloud.functions.invoker.testfunctions; import com.google.cloud.functions.HttpFunction; import com.google.cloud.functions.HttpRequest; import com.google.cloud.functions.HttpResponse; import java.util.stream.Collectors; public class Nested { public static class Echo implements HttpFunction { @O...
33.210526
86
0.752773
f2967a2c34b5909a588d03de91b93f12f500381b
904
package roth.lib.java.jdbc.sql; @SuppressWarnings("serial") public abstract class Order extends Sql { protected String sql; protected String table; protected String name; protected String orderType = ASC; protected Order() { } public Order setSql(String sql) { this.sql = sql; return this; } publ...
14.580645
47
0.661504
556c7ca75d26d4d1d42c4aff03be11fe9581c034
172
import java.util.List; public class CombinedResult { private List<SalesInfoDTO> values; public List<SalesInfoDTO> getValues() { return values; } }
13.230769
43
0.668605
ff86014c3cc3ac6eee0c88220376533bf404e627
10,874
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
16.062038
810
0.781313
b916f3e52339df8d88316425a638c1d06a7ca22e
198
package com.ververica.common.resp; import com.ververica.common.model.catalog.Catalog; import java.util.List; import lombok.Data; @Data public class ListCatalogsResp { List<Catalog> catalogs; }
16.5
50
0.787879
51cfc5dfc2c0488f8ed044df548af08039bee661
7,331
package de.redsix.dmncheck.feel; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import java.util.Optional; import static org.junit.jupiter.api.Assertions.assertEquals; class SubsumptionTest { @ParameterizedTest @CsvS...
52.364286
526
0.678898
a7328f0d35c9efa2c093739cf10f1adcde6d92ec
2,880
package com.milelu.service.service.category.impl; import java.util.List; import com.milelu.service.service.category.CategoryAttributeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.milelu.service.mapper.CategoryAttributeMapper; import c...
24.201681
99
0.694444
a9b8ee190b280fe3dff71a0f19bbc1ff25fddd82
2,144
package br.com.exemplo.vendas.negocio.dao; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.TypedQuery; import br.com.exemplo.vendas.negocio.entity.Reserva; import br.com.exemplo.vendas.util.log.LoggerGenerator; public class ReservaDAO extends Gene...
18.807018
98
0.643657
e998bea02b943f4534956b2a300315c743587632
896
package domain.cache.impl; import domain.cache.Item; public class Clothe implements Item { private int id; private String code; private String name; private String price; private String provider; private String country; public void setCode(String code) { this.code = code; } public int getId() { return ...
14.688525
43
0.688616
f7a75112dd74660e3ff40e8982cfcf47b0ebe86b
9,304
/* * MIT License * * Copyright (c) 2018 Andreas Guther * * 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, copy, m...
33.11032
105
0.7227
3b25c0f02f10a9d407679a62ebe16c0bfde5fd1e
136
package medo.algorithm; /** * Binary Search. * * @author bryce * */ public interface ArraySort { int[] run(int[] datas); }
9.714286
28
0.595588
36e3e6f6c62ff3044cabcbec0f13fb62addb930b
629
package de.pnp.manager.model.character.state; public abstract class MemberStateIcon { public static final int UNKNOWN = 0; public static final int DAMAGE = 1; public static final int HEAL = 2; public static final int MANA_DRAIN = 3; public static final int MANA_REGENERATION = 4; public static ...
33.105263
50
0.702703
2e663ebe070507d03376b48e754a133e864db77e
995
package com.seizedays.ideasharingprovider.impl; import com.alibaba.dubbo.config.annotation.Service; import com.seizedays.beans.Memo; import com.seizedays.ideasharingprovider.mappers.MemoMapper; import com.seizedays.services.MemoService; import org.springframework.beans.factory.annotation.Autowired; import org.springfr...
25.512821
62
0.745729
fa8bea319d2ace13211fb92f6a3d5dd0e3fb5364
4,972
/** * Copyright (c) 2001-2017 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://robocode.sourceforge.net/license/ep...
31.66879
152
0.730893
7bb9819a5562af203b705687a0b2c4a44d609590
144
package mcjty.lector.books.parser; public enum Token { TITLE, TOC, SECTION, TEXT, PARAGRAPH, PAGE, ITEM, IMG }
11.076923
34
0.576389
22a116fd7b1fa7556eccb513325cbd7910722985
57,117
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
47.478803
110
0.726316