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
0fae1a3ab4ffa500bb0e531c2285f3a9eacea520
18,927
package com.google.android.gms.common.internal; import android.accounts.Account; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.ServiceConnection; import android.os.Bundle; import android.os.DeadObjectException; import android.os.Handler; ...
34.16426
277
0.562847
97c033f60ac2919f17274e76c590b8e6ef2faf9f
367
package de.brightside.bnotes.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.FORBIDDEN, reason="Wrong username/password") public class WrongCredentialsException extends RuntimeException{ private static final lon...
33.363636
79
0.844687
43cf9f51dbf1b3c138da15a10c32f37acaf76160
714
package com.jstarcraft.ai.math.algorithm.text; import java.util.Collection; import it.unimi.dsi.fastutil.ints.Int2FloatMap; /** * Term Frequency * * <pre> * 1 if term is existent, 0 if term is non-existent * </pre> * * @author Birdy * */ public class BinaryTermFrequency extends AbstractTer...
21
84
0.67507
0a366a14560ff1be67639e05b81d6ad5c45b157f
5,898
/* * 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.431655
139
0.655646
34510f25b4bbec17bbea94a73fdba3934c247c9e
3,350
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.11....
23.758865
122
0.605672
4f0bb5525619e5c8bc982700f6ba5ac7a23bf06e
7,330
package org.bc.jcajce.provider.asymmetric.ec; import cn.gmssl.crypto.impl.sm2.GBNamedCurves; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import org.bc.asn1.ASN1ObjectIdentifier; import org.bc.asn1.cryptopro.ECGOST3410NamedCurves; import org.bc.asn1.nist.NI...
36.108374
198
0.597954
db451af2c43f589d78fd954f51fc60136b117e23
134
package org.smyld.net; public interface ClientNodeTextListener { public void incomingText(ClientNode sourceNode, String newText); }
22.333333
65
0.820896
89b8417cdff38872ab5eb0c5bfbe73158ed4cec7
700
package com.wusiko.game2048.data.game; public class GameConfig { public static final int TILES_IN_A_ROW = 4; public static final int TILES_NUMBER = TILES_IN_A_ROW * TILES_IN_A_ROW; public static final float[] TILE_PROBABILITIES = new float[]{ 0.9f, // tile 2 0.1f, // tile...
31.818182
75
0.572857
25ff6f19afebb242b9a312fb4200a5b8e09e7827
1,159
package vswe.stevescarts.block.entity; import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntityType; import net.minecraft.util.registry.Registry; import net.fabricmc.fabric.api.event.lifecycle.v1.ServerBlockEntityEvents; import net.fabricmc.fabric.api.object.builder.v1.block.entity...
41.392857
217
0.816221
b7588198de2572bde50521df376349bbfee6cadc
835
public class Account { private String accountNumber; private String customerName; private double balance; public Account(String accountNumber, String customerName, double balance) { this.accountNumber = accountNumber; this.customerName = customerName; this.balance = balance; ...
23.194444
79
0.661078
961187a40a6f1c01bec48e660943f425a5290202
227
class Singleton { private Singleton() { } private static Singleton theInstance = null; public static instance() { if (theInstance == null) { theInstance = new Singleton(); } return theInstance(); } }
18.916667
46
0.634361
a4e68b4d1c9207832a2d28c8ec795ebe7d75c2a9
6,912
// ============================================================================ // // Copyright (C) 2006-2016 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
36.571429
117
0.649016
67bf35dd1ea964b7dc442555e0eae8ed26b2c21f
4,319
package com.github.walterfan.util; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import java.util.Properties; import org.apache.commons.io.IOUtils; /** * base class of connection provider * * @author Walter Fa...
25.862275
91
0.550822
0801b18e02da4cd58fbb43c69700a631c01a5cb2
2,256
package com.qunar.qfproxy.utils; import ch.qos.logback.classic.Level; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; public class QFProxyRuntimeLogger { private static final Logger LOGGER = LoggerFactory.getLogger(QFProxyRuntimeLogger.class); public s...
41.018182
169
0.599734
3b273724dd9ede6a3d00ee69ef1ac14583949aef
26,059
/* * © Copyright IBM Corp. 2014 * * 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.015625
167
0.732799
b47f8a8072b56247684f3b4c3defffe04807dcff
369
package com.targomo.client.api.request.enums; /** * Created by gerb on 01/03/2017. */ public enum StatisticMethod { CHARTS_DEPENDENT("charts/dependent"), CHARTS_INDEPENDENT("charts/independent"),; private final String path; StatisticMethod(String path) { this.path = path; } public...
17.571429
46
0.650407
5bf29c08318a4f010506a9702b908189b6ebbef6
1,403
package ca.intelliware.ihtsdo.mlds.web; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.commons.lang.Validate; import org.springframework.stereoty...
29.851064
92
0.724875
b8b5f0580653a92547a38ee0d0e73ad05380789a
2,073
package com.mantas.okhttp; import com.google.gson.Gson; import lombok.extern.slf4j.Slf4j; import okhttp3.*; import org.springframework.util.CollectionUtils; import java.io.IOException; import java.util.List; import java.util.Objects; import java.util.Set; @Slf4j public class OkHttp { private OkHttpClient client...
31.892308
96
0.666667
19ae050a9113dce6a5456d14969c1ce1d8658ca8
166
package troid.dythm.game.play; public interface PlayObserver { default void onHit(PlayState state, Hit hit) {} default void onComplete(PlayState state) {} }
23.714286
51
0.740964
042cfa63fa8754a7cd3c217af3ec8d088eeb865f
621
package com.baeldung.springcloudgateway.oauth.backend.domain; public class Quote { private String symbol; private double price; /** * @return the symbol */ public String getSymbol() { return symbol; } /** * @param symbol the symbol to set */ public voi...
17.25
61
0.544283
a2b006609b92bbd00653fe9fae9913f8b237bc35
280
package org.ggp.base.player.gamer.event import org.ggp.base.util.observer.Event class GamerUnrecognizedMatchEvent(Event): matchId = '' def GamerUnrecognizedMatchEvent(matchId='') self.matchId = matchId def String getMatchId() return matchId
15.555556
47
0.703571
d9e2d8a34d65f954e5429a66f9923034446c8f17
3,024
package bleach.mcosm.operation.nodes; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.stream.Collectors; import bleach.mcosm.operation.Operation; import bleach.mcosm.operation.OperationThread; import net.minecraft.block.state.IBlockState; import net.minecr...
32.869565
141
0.505291
82d0ed093c2b667b6dc7f9a50fad44ae3f2c5312
291
package com.kemalyanmaz.data.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.kemalyanmaz.data.entities.Product; @Repository public interface ProductRepository extends JpaRepository<Product,Long>{ }
24.25
71
0.848797
e48b6a10fb94ec27eea9d33ec8bbef3ac1cbea0d
1,050
package com.skeqi.htd.service.impl; import com.skeqi.htd.po.entity.Product; import com.skeqi.htd.po.mapper.ProductMapper; import com.skeqi.htd.service.ProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @author li...
25
88
0.75619
59ad7352a624273a4182825ff472f6df0f8299b5
1,389
/* */ package br.ufpb.dcx.sisclinica; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * * @author nikni */ public class SalvarDados { public static v...
19.842857
79
0.605472
1dae6d3952f7f8f1a4405fd9816a08295252e752
163
package io.microconfig.core.properties; public interface Resolver { String resolve(String value, DeclaringComponent sourceOfValue, DeclaringComponent root); }
32.6
92
0.822086
05b417ab2a9bac45c851eabb2713fec12c5f2885
2,291
package io.quarkus.samples.petclinic.service; import graphql.schema.DataFetcher; import io.quarkus.samples.petclinic.model.Perfume; import io.quarkus.samples.petclinic.model.User; import io.quarkus.samples.petclinic.service.Interface.IUserService; import java.util.List; import java.util.Map; public class UserService...
23.141414
80
0.642078
e1175473e16aea7816fa3ead67ebcaacf7857a39
1,855
/** * <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...
24.407895
82
0.674394
73c0241f67fd33371cd0123ef7504dae0bfa52ff
1,257
package org.bitbucket.nightsir.zuuladvanced.command.action.npc; import java.util.Optional; import org.bitbucket.nightsir.zuuladvanced.command.action.CommandAction; import org.bitbucket.nightsir.zuuladvanced.model.npc.NonPlayerCharacter; import org.bitbucket.nightsir.zuuladvanced.model.npc.proxytyping.AbstractTrader; ...
36.970588
108
0.783612
aec51829ffe73e0f779d3e0a269e6774c68b687a
1,453
package com.pavikumbhar.javaheart.controller; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springfram...
28.490196
107
0.77839
682275e33bea9abb9f5eabf2969a6eb6fcfa26e8
603
package me.scottwalkerau.qapes.block.blocks.bool; import me.scottwalkerau.qapes.block.Block; import static me.scottwalkerau.qapes.block.ReturnType.BOOLEAN; import static me.scottwalkerau.qapes.block.ReturnType.NUMBER; /** * Compare the first block is greater than the second * @author Scott Walker */ public class ...
22.333333
62
0.674959
878c8bca8b9874dd696c02b588d52be49db968f2
2,796
package com.github.mkolisnyk.sirius.client; import java.util.HashSet; /** * Enumeration containing the list of all supported platforms. * @author Mykola Kolisnyk */ public enum Platform { CHROME("chrome"), FIREFOX("firefox"), IE("ie"), SAFARI("safari"), OPERA("opera"), HTML_UNIT("htmlunit")...
27.96
96
0.584764
d120bb0e218d9ab8f5f3bf43cbfbcca3ef2c943f
2,095
package com.composum.pages.stage.model.edit; import com.composum.pages.commons.model.Container; import com.composum.pages.commons.model.Element; import com.composum.pages.commons.model.Model; import com.composum.pages.commons.model.Page; import com.composum.pages.commons.util.ResourceTypeUtil; import com.composum.slin...
44.574468
113
0.705012
2e45d2d2e715621c4827b5bf9f662477f18c6a8f
8,465
package io.github.greyp9.arwo.app.vis.handler; import io.github.greyp9.arwo.app.core.state.AppUserState; import io.github.greyp9.arwo.app.vis.core.VisualizationRequest; import io.github.greyp9.arwo.core.alert.Alert; import io.github.greyp9.arwo.core.alert.Alerts; import io.github.greyp9.arwo.core.app.App; import io.gi...
48.096591
118
0.673715
f28389baec176db8f0d4b9c0422664f0fb0d5f24
189
package uk.ac.ed.inf.wimo.stix.agent.model; /** * Class that represents a record set returned by a query * to the log repository. * * @author damon * */ public class RecordSet { }
14.538462
57
0.677249
18678379a4c89fba8389c4c92498beece2accacf
366
package net.java.ao.schema; import net.java.ao.Common; import java.lang.reflect.Method; public final class RelationalFieldNameResolver extends AbstractFieldNameResolver { public RelationalFieldNameResolver() { super(false); } @Override public boolean accept(Method method) { return Co...
21.529412
82
0.73224
bb30832d3ce16d032937ce6e5224a6dde20667ee
909
package util; import java.util.Collection; import java.util.HashSet; import java.util.Random; import geometrics.Point; public class ServicePontos { public static Point[] pontos() { Collection<Point> l = new HashSet<>(); // l.add(new Point(-250, 0)); // l.add(new Point(-250,200)); // l.add(new Point(-100,100))...
23.921053
40
0.572057
a36e3c71c06de127163dc0bcf2768f10aa87b823
1,420
package controllers.badging.validator; import java.text.MessageFormat; import java.util.List; import org.apache.commons.collections.CollectionUtils; import org.sunbird.common.exception.ProjectCommonException; import org.sunbird.common.models.util.BadgingJsonKey; import org.sunbird.common.models.util.JsonKey; import or...
36.410256
99
0.782394
9ff48b41ca81fce73bee5e5a1069b98ac0e15bea
2,299
package com.yx.user.model; import java.io.Serializable; import java.util.Date; /** * 用户的登陆日志 */ public class UserLoginLog implements Serializable { private static final long serialVersionUID = 1L; /** * 表名 */ private String tableName; private Long id; /** * 用户id */ p...
17.02963
58
0.594606
d7ebd5a658569fd682d149b842ae04ac513cc469
1,923
package controller; import model.ModelEnterMark; import model.ModelExportReport; import model.ModelItemGroup; import model.ModelLogin; import view.AddItemUI; import view.ExportReportUI; import view.LoginUI; /** * Created by ZHONG on 2017/5/13. */ public class ControllerEnterMark { private ModelEnterMark mek; ...
30.52381
171
0.669787
be3577c6f3cefdbe5326cd3ae93c14d4d80370af
475
package draylar.identity.api.ability; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.util.Hand; import net.minecraft.util.TypedActionResult; import net.minecraft.world.World; @FunctionalInterface public interface Ide...
33.928571
113
0.827368
1a1db917036ec17fde0cea1a1a7bbc1601f11e3f
24,011
/* * The MIT License (MIT) * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * 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 restr...
48.409274
130
0.549998
423592b496c8fca8b3ca6cc6d4ebe4651d93980f
7,653
/* * Copyright 2008 CoreMedia AG, Hamburg * * 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 l...
30.249012
111
0.667451
7116c56e655918eb7c83ceb30bec63bcbc42886a
689
package tech.spaceoso.jobboard.service; import org.json.JSONObject; public final class JsonObjectCreator { private JsonObjectCreator(){} /** * A handy JSON object creator. * @param messageKey the key to obtain the message * @param messageValue the value of the message * @return ...
27.56
95
0.669086
37890fc77a0c7a621c4623a33d3feeb6746bbd58
265
package dev.elektronisch.dieter.common.dto.organisation; import lombok.Data; import lombok.NoArgsConstructor; import java.util.UUID; @NoArgsConstructor @Data public class Organisation { private UUID id; private String name; private long createdAt; }
17.666667
56
0.777358
ead2500e379df58762e8b3223e5c0c0f2c438a00
306
package com.indorse.phonebook.exception; public class PhoneBookException extends RuntimeException { public PhoneBookException() { } public PhoneBookException(String message) { super(message); } public PhoneBookException(String message, Throwable cause) { super(message, cause); } }
19.125
62
0.745098
2252c45c9245ca90bce57bd7712a46e9542d4781
267
package e.a.a.a.y0.b; import e.x.c.i; public final class t extends IllegalStateException { /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(String str) { super(str); i.e(str, "message"); } }
22.25
89
0.625468
bcb7235f72d3c4abbb4fd5770d69403dcf3c3648
11,084
package org.tensorflow.ndarray.impl.sparse; import org.junit.jupiter.api.Test; import org.tensorflow.ndarray.BooleanNdArray; import org.tensorflow.ndarray.LongNdArray; import org.tensorflow.ndarray.NdArrays; import org.tensorflow.ndarray.Shape; import org.tensorflow.ndarray.StdArrays; import org.tensorflow.ndarray.buf...
35.187302
99
0.686936
1a2a3499151e41af4f504b96ed8a140657df3388
1,956
/** * ExceptionUtil.java * * Copyright 2017 the original author or authors. * * We 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: * * http://www.apache.org/license...
32.065574
111
0.651329
5a877f332666a9537607979b27628d2654079db8
656
package com.bkahlert.nebula.gallery.demoSuits.viewer; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Composite; import com.bkahlert.nebula.gallery.annotations.Demo; import com.bkahlert.nebula.gallery.demoSuits.AbstractDemo; import com.bkahlert.nebula.viewer.Projec...
28.521739
68
0.824695
b3e959c71934fb333be4be006c8c4718c98647d3
561
package com.ikaimen.pattern.MementoPattern.demo3; import java.util.HashMap; /** * @Author: Mr.Chen * * @Description: 备忘录角色 * * @Date: Created in 2017/9/10 下午5:13 **/ public class Memento { //接受HashMap作为状态 private HashMap<String,Object> stateMap; //接受一个对象,建立一个备份 public Memento(HashMap<String...
16.5
63
0.645276
8f5d2c14227945c775d5358fdf2df35d31f03760
105
package fi.solita.utils.concurrency; public class AlreadyStartedException extends CoroutineException { }
26.25
65
0.857143
8f45d9fa8072f4e9fd9b7c3a620f7b6e240b8868
1,434
package com.google.android.gms.internal.ads; import android.content.Context; import com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel; import com.google.android.gms.ads.internal.overlay.zzl; import com.google.android.gms.ads.internal.overlay.zzv; import com.google.android.gms.ads.internal.zzi; import com...
40.971429
286
0.696653
027547dc74fd0574474935e43e0638f2cbc0f7c3
57
/** * */ package edu.washington.escience.myria.daemon;
11.4
45
0.684211
cec40acccd2404c64366241832192d3b5f69ac01
711
package com.alibaba.datax.plugin.writer.kafkawriter; import com.alibaba.datax.common.spi.ErrorCode; /** * @author maokeluo * @description 多隆镇楼,bug退散🙏🙏🙏 * * @date 2020/1/12 */ public enum KafkaWriterErrorCode implements ErrorCode { CONFIG_PARAMS_REQUIRED("CONFIG_PARAMS_REQUIRED", "必填参数缺失"), ILLEGAL_VA...
20.911765
63
0.679325
0f33e071f1c70829fdbcfc5d98a709f01c0a9db9
10,169
/* * Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/ * * 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 * * Unl...
27.936813
147
0.711083
aa28fa623b786fb7e7b65c3a9ef5ec966ed8e71b
2,250
package com.tspeiz.modules.common.dao.impl.release2; import java.sql.SQLException; import java.util.List; import org.hibernate.HibernateException; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.transform.Transformers; import org.springframework.orm.hibernate3.HibernateCallback; import ...
36.290323
107
0.756
e7787f41c766f53e75638f08bd509b9c0b19a892
8,105
package org.openxmlformats.schemas.wordprocessingml.x2006.main; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.net.URL; import javax.xml.stream.XMLStreamReader; import org.apache.poi.POIXMLTypeLoader; import org.apache.xmlbeans.SchemaType; import org.apa...
29.907749
210
0.75657
0e64a9b9bdee253e4584cae63ff8679398ee136f
1,540
package dregsmod.cards.rare; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.monsters.AbstractMonster; import dregsmod.DregsMod; import dregsmod.actions.KindleAction; import dregsmod.actions.SealAndPerformAction; import dregsmod.cards.AbstractCurseHoldingCard; import dregsmod.car...
31.428571
82
0.665584
6f6add79fd802769a9e536b069add1838199e4d7
1,157
package at.favre.lib.armadillo; import android.support.annotation.NonNull; /** * Defines how the storage should behave on errors while decrypting. * <p> * For a simpler version check out {@link SimpleRecoveryPolicy}, this is for more advanced * use cases. * * @author Patrick Favre-Bulle */ public interface Re...
38.566667
111
0.713915
247415e82afdb95b27da6ea545f3f1ae289a59d6
111
package com.atelier.atelier.entity.MessagingSystem; public enum MessageRelation { Sender, Receiver; }
15.857143
51
0.756757
f7bd923276641827fba3e02a744242f122d024bd
1,848
package com.kumaraswamy.wifitransmo.utils; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; public class DataUtil { public static byte[] readFromFile(String fileName) { byte[] bytes; try { FileInputStr...
29.333333
79
0.552489
ea7368b801610a238bc1df5e9447d6c3fbfc545a
215
package com.github.sejoung.model; import lombok.Getter; import lombok.Setter; import lombok.ToString; @ToString @Setter @Getter public class Test { private String first_name; private String last_name; }
13.4375
33
0.762791
fc9ea5e84d1001d950003afa697bc28ebecffb8a
1,456
package com.mapr.demo.mobileappserver.controller; import com.mapr.demo.mobileappserver.sender.DataSenderService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PutMapping; import org.sp...
39.351351
115
0.741758
06f62c4ec8ed9a4bc8da2a45ad75d2d66b4a09a6
1,520
package com.ceiba.reserva.servicio.testdatabuilder; import java.time.LocalDateTime; import com.ceiba.reserva.modelo.entidad.Reserva; public class ReservaTestDataBuilder { private Long id; private Long idCliente; private LocalDateTime fechaCreacion; private LocalDateTime fechaReserva; private Double precioNeto;...
24.126984
95
0.775
6d60cbe248bea7f9c4d7280b8a7e01c425bbff7b
3,285
package network; import javax.jms.*; import javax.naming.*; import java.util.HashMap; import java.io.*; import org.apache.activemq.*; /* Network Layer Class Wraps all JMS functionality. Implements MessageListener for asynchronous messaging. */ public class NetworkLayer implements MessageListener { private Queue...
28.815789
76
0.730898
ae23b7b36e1e1099fd1db1227660a3ca298b7af9
3,762
package com.thinkgem.jeesite.common.commonPay.pay.wxpay.protocol; import java.lang.reflect.Field; import java.util.LinkedHashMap; import java.util.Map; /** * Created by zl on 15-3-18. * 公众号支付时使用 * 用来存放统一下单接口返回的数据数据 */ public class UnifiedOrderResData { private String return_code=""; //返回状态码 private Strin...
23.36646
69
0.579479
5fd2b32a1c39300cb642ca7fccb164c0c09759bb
526
package ex1_aula1; public class Ex1_Aula1 { public static void main(String[] args) { lampada a60 = new lampada(); a60.tipoAbajur = true; System.out.println("Modelo: "+ (a60.modelo="A60")); System.out.println("Tensão: "+ (a60.tensao="Bivolt")); System.out...
22.869565
64
0.532319
76e875bd6f771a76c891de5089eb23300a5fb19e
3,320
package com.Whodundid.core.windowLibrary.windowObjects.windows; import com.Whodundid.core.EnhancedMC; import com.Whodundid.core.util.renderUtil.EColors; import com.Whodundid.core.windowLibrary.windowObjects.actionObjects.WindowButton; import com.Whodundid.core.windowLibrary.windowObjects.basicObjects.WindowLabel; impo...
44.864865
163
0.741867
84ce401e6d9d270ad2ce7a9d571b8e615aea6da4
415
package com.oldwei.hikdev.service; import com.oldwei.hikdev.structure.NET_DVR_ALARMER; import com.sun.jna.Pointer; import com.sun.jna.win32.StdCallLibrary; /** * FMSGCallBack_V31 * @author oldwei * @date 2021-5-18 15:01 */ public interface FMSGCallBack_V31 extends StdCallLibrary.StdCallCallback { boolean invo...
27.666667
108
0.787952
14f00b5b2cec2caa4ebe5384579969b4b4d3f89d
25,014
package cat.indiketa.degiro.utils; import cat.indiketa.degiro.log.DLog; import cat.indiketa.degiro.model.DCashFunds; import cat.indiketa.degiro.model.DCashFunds.DCashFund; import cat.indiketa.degiro.model.DOrderTime; import cat.indiketa.degiro.model.DOrderType; import cat.indiketa.degiro.model.DOrders; import cat.indi...
37.558559
164
0.544455
8e57a709db07ce3b42800daeab154839e61dc73e
6,869
package xyz.hotchpotch.hogandiff.core; import java.util.LinkedList; import java.util.List; import java.util.Objects; import java.util.function.ToIntBiFunction; import java.util.function.ToIntFunction; import java.util.stream.Collectors; import java.util.stream.IntStream; import xyz.hotchpotch.hogandiff.util...
36.152632
118
0.492648
ac2f6c54379586deb3e43098ac4921ac4a4dbe16
2,561
package com.app.test; import java.io.BufferedInputStream; import java.io.File; import java.io.RandomAccessFile; import java.net.HttpURLConnection; import java.net.URL; public class Td { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub HttpURLConnection httpURL...
25.868687
142
0.650137
8cdc54f3830b9a446b6fc172b24e4dd6d02954f7
9,514
package com.pl.universalcopy.xposed; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.IBinder; import android.util.Log; import android.view.KeyEvent; import android.view.inputme...
39.152263
100
0.719992
cdcd305fa0fa3f21833548d1e63fa9d54d68ffd4
2,037
/******************************************************************************* * Copyright 2012 by the Department of Computer Science (University of Oxford) * * This file is part of LogMap. * * LogMap is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Gener...
30.863636
107
0.670594
ba22f8c5fada0a46c355848d0a108f05d4ff1522
1,375
package WayofTime.bloodmagic.compat.jei.armourDowngrade; import WayofTime.bloodmagic.recipe.LivingArmourDowngradeRecipe; import WayofTime.bloodmagic.util.helper.ItemHelper.LivingUpgrades; import WayofTime.bloodmagic.compat.jei.BloodMagicJEIPlugin; import WayofTime.bloodmagic.core.RegistrarBloodMagicItems; import com.g...
39.285714
135
0.791273
ef361acc33cb265501fd87ed0ce970b2e7ca4e15
565
import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; public class Solution { public static String getAttributeById(File arg0, String arg1) throws Throwable { DocumentBuilderFactory v1 = Do...
26.904762
84
0.715044
1a12c6385c4465fedd609077dba3da1eda0fda76
741
package io.luan.learn4j.structure.impl; import io.luan.learn4j.structure.Expression; import io.luan.learn4j.structure.ExpressionType; import io.luan.learn4j.visitor.Visitor; /** * @author Guangmiao Luan * @since 28/08/2017. */ public class Relu extends UnaryOp { public Relu(String name, Expression base) { ...
20.027027
59
0.646424
42159ec999fee7865c5b87e881c5f2f605cdea34
460
package io.lvlvforever; /** * Created by lvlvforever on 2018/7/16. */ public class Q9_b_1 { public int JumpFloor(int target) { if (target == 1 || target == 2) { return target; } int first = 1; int second = 2; int third = 0; for (int i = 3; i <= target; ...
20
43
0.465217
2d58d6f1264660b0014a7a3e7274c3335c889170
1,275
// https://practice.geeksforgeeks.org/problems/most-frequent-word-in-an-array-of-strings/0 import java.util.*; import java.lang.*; import java.io.*; class Main { public static String solve(String[] arr) { HashMap<String, Integer> mem = new HashMap<>(); int max = 1; for (int i...
27.717391
91
0.436863
868ca7af7e9893776d173714df6a792b1f1d77dc
668
package services; import java.util.List; import java.util.ArrayList; import javax.inject.Inject; import daos.TipoDireccionDAO; import dtos.TipoDireccionDTO; import models.TipoDireccion; public class TipoDireccionService { private TipoDireccionDAO dao; @Inject public TipoDireccionService(TipoDireccionDA...
23.034483
77
0.694611
e43a8c292f90dd33bba126be696bc8e52c9ece60
1,362
package edu.bu.met.cs665.dataAccess; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import java.util.List; import static org.junit.Assert.*; public class OldSystemTest { Customer customer1; Customer customer2; Customer customer3; List<Customer> customerData; List<Custom...
33.219512
80
0.700441
03730b2e52cf9ab6082e47955777da51bb7825f4
515
package org.nise.ux.asl.face; import org.nise.ux.asl.data.CommandChain; import org.nise.ux.asl.data.MapCommand; /** * Interface of worker objects. * All Methods in Worker that implement MapCommand & CommandChain annotations. * <p> * <b>Note:</b> Client should be aware of Server side &lt;command::function&gt; set....
28.611111
158
0.712621
f4112eff738b3be6a7e0304babba3f2e536c3ec4
1,849
package com.yuqi.mrrs.thirdservice.oss; import com.aliyun.oss.OSS; import com.aliyun.oss.OSSClientBuilder; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import java.io.File; import java.net.URL; import java.util.Date; @Component public class OssUtil { ...
30.816667
104
0.640346
61566e7301248b03fd76f7a3f22a70af90f70bbd
4,374
/* * Copyright (c) 2022 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
25.881657
99
0.547325
00a9582def2b3de05fcb036823696dcda41f31fe
620
package dev.webfx.kit.mapper.peers.javafxgraphics.base; import javafx.geometry.Insets; import javafx.scene.layout.Background; import javafx.scene.layout.Border; import javafx.scene.layout.Region; /** * @author Bruno Salmon */ public interface RegionPeerMixin <N extends Region, NB extends RegionPeerBase<N, N...
23.846154
103
0.740323
c93c1ad301c641c0e07e79d1989a976a87edfaf9
37,240
package me.scai.plato.servlets; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockHttpServletResponse;...
52.156863
314
0.638507
d047d348b212d32f7f89b0b8ddc45bfbd78e109d
630
package com.coinz.cryptomarketwatcher; import android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; @Entity(tableName = "favorite") public class Favorite { @ColumnInfo(name = "symbol") private String symbol; @PrimaryKey(auto...
21
48
0.666667
1d42793bb4508a4c33e6ba15ee1142d559ce78d7
417
package com.blanktrack.aliall; import android.app.Application; import static com.blanktrack.aliall.PushPlugin.initCloudChannel; import static com.blanktrack.aliall.PushPlugin.initHotfix; /** * Created by Blank on 2017-08-28. */ public class MyApplication extends Application { @Override public void onCreat...
21.947368
64
0.719424
085962543b9b517f1dd22849a0b720aabc591102
834
package fusion.distance; import java.util.Collection; import java.util.HashSet; /*** * Class allowing the instantiation of a Jaccard distance (d(X,Y) = |X intersection Y| / |X union Y|). * As a reminder, this distance returns 1 if the two sets are similar, so to be consistent with the pseudo-distance criteria, * ...
27.8
126
0.694245
4edbcb4d1ba7c14414af251de5e8bb7c91171989
8,097
package io.github.WeronikaJargielo.protein_interaction_finder; import org.biojava.nbio.structure.Atom; import org.biojava.nbio.structure.Calc; import org.biojava.nbio.structure.Group; import javax.vecmath.Point3d; import javax.vecmath.Vector3d; import java.util.Arrays; import java.util.List; /** * Class representi...
36.472973
159
0.650858
09e7b22a7ca29a002d024fe2d0394204cfb389bb
2,443
package com.jtelaa.da2.lib.bot.plugin; import java.io.FileNotFoundException; import java.util.ArrayList; import com.jtelaa.da2.lib.log.Log; /** * Plugin managment * * @author Joseph * @since 2 * */ public class Plugins { /** List of plugins */ private static ArrayList<Plugin> plugins; /** ...
18.648855
100
0.540319
f3f737ec8c71a4fadcc486c8242e34dfd66d705f
12,487
import java.util.HashMap; import java.util.Map; import com.jme.igui.IGui; import com.jme.igui.IGuiAppState; import com.jme.igui.IGuiMouseEvent; import com.jme.igui.extras.IGuiInputFields; import com.jme.igui.extras.IGuiInputFieldsAppState; import com.jme3.app.SimpleApplication; import com.jme3.input.KeyInput; import c...
32.26615
136
0.5384
8137af7be2c52eeb5f1ca040a6e4ddd0df910ecc
4,278
/** * 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 of conditions and the following disclaimer. * ...
34.780488
100
0.62015
d44e8cabe7fcf75b852b5a7b7e54517acbb86565
11,591
/* * Copyright 2015 - 2019 TU Dortmund * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
35.231003
119
0.699422
1939fddfc3c6554bd4b72f775b1bcf89cee6ad93
370
package com.nevercome.tabook.modules.book.dao.buy; import com.nevercome.tabook.common.persistence.CrudDao; import com.nevercome.tabook.common.persistence.annotation.MyBatisDao; import com.nevercome.tabook.modules.book.entity.buy.BookBuyRecord; /** * @author: sun * @date: 2019/5/1 */ @MyBatisDao public interface Bo...
26.428571
69
0.797297
b307081981f14d907a034e382547448a8c329b52
1,568
package com.mufasa.controller; import com.mufasa.domain.Contact; import com.mufasa.domain.ContactStore; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.*; import javax.ws.rs.core.*; import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.List; @Path("/contacts...
26.576271
77
0.675383
6a22fe96119b3db4d9cc2fc2d97c723ca671b4cc
2,690
/* * Copyright 2003-2017 JetBrains s.r.o. * * 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...
33.625
100
0.709665
cd95d69d3a00478afae67560ef2edbee9e821e69
805
package Runners; import com.lc1.*; public class PowerOfTwoRun { public static void main(String[] args) { PowerOfTwo231 s = new PowerOfTwo231(); //System.out.println(s.isPowerOfTwo(2)); System.out.println(2&(2-1)); System.out.println(4&3); System.out.println(5&4); ...
21.756757
48
0.47205
8de76fba60072ede95b940974c25d1530883e518
1,489
package org.apache.spark.sql.execution; /** * Helper functions for physical operators that work with user defined objects. */ public class ObjectOperator$ { /** * Static reference to the singleton instance of this Scala object. */ public static final ObjectOperator$ MODULE$ = null; public ObjectOperato...
87.588235
299
0.790463