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
37408479273b6ea752ae0ff90e20ea0e2fdfda54
1,462
import tencent.ai.texsmart.*; public class ChsNluExample2 { public static void main(String[] args) { String userDir = System.getProperty("user.dir"); String dataDir = args.length >= 1 ? args[0] : userDir + "/../../data/nlu/kb/"; System.out.println("Creating and initializing the NLU engine..."); NluEng...
34
106
0.647743
b3ff2a80a2cf180dcc1ca4c74c9886b844716be8
1,297
package com.ovit.nswy.member.common; import javax.servlet.*; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class HttpServletResponseFilter implements Filter { @Override public void destroy() { } @Override public void doFilter(ServletRequest request, ServletResponse response,...
30.162791
90
0.756361
9d7742566e48e569ab5be2fe24fd723132cd0fd9
3,225
/** * 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...
37.941176
111
0.688372
9e1d8860f9b97a6c771791d11bdcfba5292a016e
1,817
/* * ============LICENSE_START======================================================= * ONAP : APPC * ================================================================================ * Copyright 2018 TechMahindra * ================================================================================ * Modifications Copyrigh...
37.081633
90
0.586681
263b05a7a8e8a0e33fbb445cb5a50a3c6931f41d
982
package com.moon.ensuredemo.bank1.message; import com.alibaba.fastjson.JSONObject; import com.moon.ensuredemo.bank1.model.AccountChangeEvent; import org.apache.rocketmq.spring.core.RocketMQTemplate; import org.springframework.messaging.Message; import org.springframework.messaging.support.MessageBuilder; import org.sp...
30.6875
114
0.763747
99844a0e6b75f6ece58f67f0560d07e8b2f89ca4
357
package games.rednblack.hyperrunner.component; import games.rednblack.editor.renderer.components.BaseComponent; public class PlayerComponent implements BaseComponent { public int touchedPlatforms = 0; public int diamondsCollected = 0; @Override public void reset() { touchedPlatforms = 0; ...
21
64
0.722689
9658d7766ba753187251c0b46be6cf69dfaec902
3,334
package com.cameronwebb.webbhouse; import java.util.List; import java.util.Map; import android.content.Intent; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.cameronwebb.webbhouse.dummy.DummyConten...
31.45283
126
0.64967
dc1893d8bd9b82e3f8505c4a89024aafcdc82106
4,300
/* * Copyright 2017 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...
38.738739
162
0.754884
d31f1c4db77396bdc036f4f5aee99aa691a47c4b
1,072
package com.github.thomasdarimont.keycloak.trustdevice.model.jpa; import com.google.auto.service.AutoService; import org.keycloak.Config; import org.keycloak.connections.jpa.entityprovider.JpaEntityProvider; import org.keycloak.connections.jpa.entityprovider.JpaEntityProviderFactory; import org.keycloak.models.Keycloa...
26.8
104
0.752799
bac12f7dbb9bfe044e55b341427ec7a9420f4650
2,243
package io.nosqlbench.activitytype.cql.statements.rowoperators.verification; import io.nosqlbench.engine.api.activityconfig.yaml.OpTemplate; import io.nosqlbench.virtdata.core.bindings.BindingsTemplate; import java.util.ArrayList; import java.util.List; import java.util.Map; public class VerifierBuilder { public...
41.537037
110
0.607668
7be4ad0580a95aab25822e9bf4703bb21e12fdd9
518
package br.ufc.util; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.springframework.web.multipart.MultipartFile; public class FileUtil { public static void salvarImagem(String path, MultipartFile imagem){ File file = new File(path); try { FileUtils...
19.185185
68
0.712355
c924770c331168bb9a051060f21de858b0856322
484
package com.bzh.floodview.sideslip; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import com.bzh.floodview.R; import com.bzh.floodview.base.activity.BaseActivity; /** * 关于我们 */ public class AboutusActivity extends BaseActivity { @Override protec...
19.36
56
0.743802
b5d4b93a87c87d3fb7eb807f8d69e6d969d70962
4,306
package mekanism.common.block; import java.util.Random; import javax.annotation.Nonnull; import javax.annotation.Nullable; import mekanism.api.chemical.gas.GasStack; import mekanism.api.text.EnumColor; import mekanism.common.MekanismLang; import mekanism.common.block.prefab.BlockTile.BlockTileModel; import mekanism.co...
47.318681
179
0.69856
0443a0bb67dcf243346417938beb00b98d7f2034
2,308
package com.facebook.presto.procfs; import com.facebook.airlift.bootstrap.LifeCycleManager; import com.facebook.airlift.log.Logger; import com.facebook.presto.spi.connector.Connector; import com.facebook.presto.spi.connector.ConnectorMetadata; import com.facebook.presto.spi.connector.ConnectorRecordSetProvider; import...
32.971429
105
0.742201
91afda481db9ff2e6989cfa8d737792c8f4d3689
719
package com.wch.gulimall.product.service; import com.baomidou.mybatisplus.extension.service.IService; import com.wch.common.utils.PageUtils; import com.wch.gulimall.product.entity.SpuInfoEntity; import com.wch.gulimall.product.vo.SpuSaveVo; import java.util.Map; /** * spu信息 * * @author wch * @email 2879924329@qq...
23.193548
65
0.76217
a02a3dd3ffd6b359cc829115314566000c276bbf
18,128
package com.gmail.chibitopoochan.soqlui.controller; import java.io.BufferedReader; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.net.URL; import java.nio.file.Files; import java.util.Map; import java.util.Optional; import java.util.ResourceBundle; import java.util.s...
22.603491
113
0.696492
4755fbf5e4c10e721e6c121874ee0a79dd0b2a0d
1,887
package org.dotwebstack.framework.frontend.ld.writer.tuple; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.OutputStream; import java.util.Iterator; import org.dotwebstack.framework.frontend.ld.entity.TupleEntity; import org.eclipse.rdf4j.model.ValueFactory; import org.e...
28.164179
80
0.772655
3ab16dea6769389ce22c6ea7a527e416b4496960
436
package com.nutiteq.nuticomponents; import com.carto.core.MapBounds; public class GeocodeResult { public String line1; public String line2; public double lon; public double lat; public MapBounds boundingBox; public GeocodeResult(String line1, String line2, double lon, double lat, MapBounds boundingBox) { t...
19.818182
98
0.745413
071071226865d67bfe7c52be0f86671f6d581167
329
package no.ntnu.idi.apollo69framework.network_messages.data_transfer_objects; public class ShotDto { public PositionDto positionDto; public float radius; public ShotDto() { } public ShotDto(PositionDto positionDto, float radius) { this.positionDto = positionDto; this.radius = radius;...
21.933333
77
0.711246
62ae554065cc106836b7022ced9a9ca6c52ead47
706
package com.dxy.facebook.login; import android.os.Bundle; import com.facebook.AccessToken; import com.facebook.GraphRequest; import com.facebook.HttpMethod; /** * * 获取用户信息请求 * */ public class FBUserRequest { private static final String ME_ENDPOINT = "/me"; public static void makeUserRequest(GraphRequest...
22.0625
72
0.626062
eb01ef674ff9249862a9a9d642c0cd5f64fbcb78
1,496
package book.video.controller; import book.video.boundary.YouTubeGateway; import book.video.boundary.YouTubeVideos; import book.video.entity.YoutubeLinks; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.io.IOException; import java.util.List; ...
31.829787
67
0.654412
4c15fdf9d5df962222e4fe0e7298cd3fc6c81944
1,412
package ru.liahim.mist.client.renderer.entity; import ru.liahim.mist.client.model.entity.ModelBarvog; import ru.liahim.mist.client.renderer.entity.layers.LayerBarvogSaddle; import ru.liahim.mist.common.Mist; import ru.liahim.mist.entity.EntityBarvog; import net.minecraft.client.renderer.entity.RenderLiving; import net...
44.125
82
0.775496
cecacc1238f539d8a62b161ea7d65a04af8a458f
2,217
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 1999-2004 The Apache Software Foundation. * * 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....
28.063291
80
0.687415
c694836900a8d6e7438f9fddc31e6a7f0e24956a
3,548
package me.electroid.game.util; /* * 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...
39.422222
132
0.666009
2eeecb164f4b2da6a2fbdc7a864e9355c69b7bda
26,335
package android.support.v4.widget; import android.content.Context; import android.support.v4.view.C0534t; import android.support.v4.view.ah; import android.support.v4.view.aj; import android.util.Log; import android.view.MotionEvent; import android.view.VelocityTracker; import android.view.View; import android.view.Vi...
31.35119
277
0.476932
0e2bd7f40976ea15b6dacb9fcb5499fb19d8c294
5,176
package org.chenile.stm.model; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.chenile.stm.STMFlowStore; import org.chenile.stm.State; import org.chenile.stm.action.STMAction; import org.chenile.stm.exception.STMException; import java.util.Set; p...
26.408163
117
0.710781
2c126311764f16c9f15a42d0afa0987218dde982
2,575
package edu.wpi.first.smartdashboard; import edu.wpi.first.smartdashboard.gui.DashboardFrame; import edu.wpi.first.smartdashboard.robot.Robot; import edu.wpi.first.wpilibj.tables.ITable; import edu.wpi.first.wpilibj.tables.ITableListener; import java.io.FileWriter; import java.io.IOException; import javax.swing.JOptio...
29.94186
97
0.648932
1e5239f709b63c928663a724b015da22599177a8
1,026
package com.decompiler.entities.constantpool; import com.decompiler.bytecode.analysis.types.StackType; import com.decompiler.entities.AbstractConstantPoolEntry; import com.decompiler.util.bytestream.ByteData; import com.decompiler.util.output.Dumper; public class ConstantPoolEntryInteger extends AbstractConstantPoolE...
24.428571
109
0.69883
6b1e17fd88571006ea3f0f30b69ac1efa073f4c8
1,126
package com.google.android.gms.internal.ads; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; /* compiled from: com.google.android.gms:play-services-ads-lite@@19.4.0 */ public abstract class zzyg extends zzgt implements zzyh { public zzyg() { ...
32.171429
144
0.668739
f6f198e6835d169b59261759dd840281851b9d99
2,537
package net.qiujuer.widget.airpanel; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; import android.view.View; import android.view.inputmethod.InputMethodManager; /** * @author qiujuer Email:qiujuer@live.cn * @version 1.0.0 */ @SuppressWarnings("WeakerAccess") pu...
34.283784
102
0.646039
1500cab9364be9b1853f0c98a62890542a6df14b
4,966
package com.itracker.android.ui.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import an...
34.013699
134
0.687878
1a607762ed7a316d3acff267a92113456d36106e
28,254
/* * Copyright 2012 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
52.225508
135
0.557868
24e72adc155b06cbb1dbb29d99b19ef7c3c02a30
3,140
package com.icthh.xm.tmf.ms.product.keyresolver; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.icthh.xm.commons.lep.XmLepConstants; import com.icthh.xm.commons.lep.spring.LepServiceHandler; import com.icthh.xm.lep.api.LepKey; ...
37.380952
115
0.774841
b99de18e0c45b4f9b509e9ad91fb14bacd597dcf
445
package io.quarkus.qe; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import io.opentracing.Tracer; @Path("/client") public class ClientResource { @Inject Tracer tracer; @GET @Produces(MediaType.TEXT_PLAIN...
18.541667
57
0.68764
6ae2e4c0d03ae27c8f0c8fc5e4d943f121ab41c8
2,036
package seedu.address.model.schedule; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; import seedu.address.logic.parser.exceptions.ParseException; public class EventRecurrenceTest { @Test public voi...
47.348837
108
0.757367
737e5082399cb34330b8134c7a3c4a6b871d09ce
2,606
package br.com.zup.livraria.livraria.controller.form; import java.math.BigDecimal; import java.time.LocalDate; import javax.validation.constraints.DecimalMin; import javax.validation.constraints.Future; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; import javax.validation.cons...
22.084746
100
0.747889
9d4867ebc3f15cf093f562fe572788ca859fc6f5
1,308
package com.tinymooc.handler.user.service.impl; import com.tinymooc.common.base.impl.BaseServiceImpl; import com.tinymooc.common.domain.Level; import com.tinymooc.common.domain.User; import com.tinymooc.handler.user.service.UserService; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions;...
29.727273
77
0.678899
370c34e0377662658de5e1549feaf351ed0f344e
4,803
package com.skeqi.mes.controller.yp.oa; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import org.spring...
26.983146
84
0.696856
0104e98d25bfb40311b45b56a930b0313f86c4b1
889
package application.model.fxcircuitry; import application.model.util.Point; import javafx.scene.shape.Line; public class Wire extends Line { NodeCircle source, target = null; public Wire(NodeCircle node) { source = node; setMouseTransparent(true); setStrokeWidth(getStrokeWidth() + 3);...
23.394737
58
0.642295
63d2c78fd5f51c7c139202ce8d032dab75cbd9b7
3,232
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
30.780952
84
0.672649
62eb670338ac5c2b841c00ea9563023fe0e22c35
2,672
package com.googlecode.jslint4java; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.Matchers.empty; import static org.junit.Assert.assertThat; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; imp...
35.157895
103
0.661677
91ff08adee5fec377723e6a18acb01fbebdfc79f
11,409
/* * MergeHero: Differing and Merging Folders & Files * * Copyright © 2004, Dynamsoft, Inc. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the ...
33.955357
100
0.587256
1b3fe40e6d8905def95998bf8b502f1cb5938798
10,311
package cn.lastwhisper.modular.service.impl; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.H...
28.404959
89
0.694307
4d4a9b9cbee14d40f60788247a7e5c7c41c13f9a
6,101
/* * Copyright 2014 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...
32.452128
163
0.651369
8f80ed20decf1435ce2b96dc4bfb1f86ef833c09
174
package com.perunlabs.tool.jvalgen.java.type; import com.google.common.collect.ImmutableList; public interface JBlock { public ImmutableList<JStatement> jStatements(); }
21.75
49
0.804598
419deac0ecce15db10f911ab26d35407384b8536
500
package ch9_09; import static org.junit.Assert.*; import org.junit.Test; public class LabeledPointTest { @Test public void test() { boolean result; LabeledPoint p1 = new LabeledPoint("hoge", 1, 2); LabeledPoint p2 = new LabeledPoint("hoge", 2, 1); System.out.println(p1.hashCode()); System.out.println(p...
17.857143
51
0.692
862567cb774abc80f5f687e50c4906050e22041a
1,382
// Looks up author of selected books import javax.swing.*; class DebugNine1 { public static void main(String[] args) { String[][] books = new String[6][2]; books[0][0] = "Ulysses"; books[0][1] = "James Joyce"; books[1][0] = "Lolita"; books[1][1] = "Vladimir Nab...
40.647059
120
0.524602
2f1e21d2d854baa11370c169e1cb2eb1fa4bc516
3,292
package evaluation.summary; import java.util.*; /** * This class offers utility methods to perform analysis on list of {@link Summary} results from testing of machine learning models. * Currently, the only supported method is {@link #average(List)} which returns average values over a list of summaries. * * @autho...
45.722222
153
0.658262
28b073aca99734ca79171089d7642e2333376039
659
package com.koch.ambeth.cache.datachange.revert; import java.lang.reflect.Field; import com.koch.ambeth.util.exception.RuntimeExceptionUtil; public class FieldBasedBackup implements IBackup { protected final Field[] fields; protected final Object[] values; public FieldBasedBackup(Field[] fields, Object[] values...
22.724138
59
0.708649
fe3546e2c5bb4265692cdb85a7fc390d564a46de
4,962
/* * 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.308271
143
0.692261
4994b5769474aa4ff4ee29cfd20d073773b7de6b
1,142
package ru.guar7387.servermodule.tasksfactory; import org.json.JSONException; import org.json.JSONObject; import ru.guar7387.servermodule.api.ConnectionManager; import ru.guar7387.servermodule.api.ConnectionRequest; import ru.guar7387.servermodule.callbacks.Answer; import ru.guar7387.servermodule.callbacks.AnswerCall...
27.190476
106
0.685639
05386752c7e5efc0e34c0f71921bbdc5849f3f3e
445
package com.stylefeng.guns.rest.common.persistence.dao; import com.stylefeng.guns.rest.modular.film.vo.GetFilmVO; import org.apache.ibatis.annotations.Param; import java.util.List; public interface GetFilmMapper { List<GetFilmVO> selectGetFilmDataListByIdId(@Param("showType") int showType, @Param("sortId") int ...
31.785714
222
0.761798
beb339c19d12330bd81e9002c448ba7703a4a7c8
11,865
/* * Copyright 1998-2009 University Corporation for Atmospheric Research/Unidata * * Portions of this software were developed by the Unidata Program at the * University Corporation for Atmospheric Research. * * Access and use of this software shall impose the following obligations * and understandings on the use...
42.679856
127
0.711167
e5cacea58b459c65601dd33d6e4b4a1f1208a424
392
// DocSection: delivery_api_get_types // Tip: Find more about Java/JavaRx SDKs at https://docs.kontent.ai/javaandroid import com.github.kentico.kontent.delivery; DeliveryClient client = new DeliveryClient("<YOUR_PROJECT_ID>"); List<NameValuePair> params = DeliveryParameterBuilder.params().page(null, 3).build(); Conte...
43.555556
85
0.80102
03f6075c9600ebf7ba4eafbbe9fc24d071f4c7b7
1,722
package org.adorsys.encobject.types; import org.adorsys.cryptoutils.exceptions.BaseException; import org.adorsys.encobject.domain.ContentMetaInfo; import java.util.HashMap; /** * Created by peter on 24.01.18 at 09:15. */ public class PersistenceLayerContentMetaInfoUtil { private final static String KEYID = "Ke...
38.266667
106
0.707317
26cf03327c23288068aec68f70328c3045da5dfc
17,267
/* * Copyright (C) 2011 The Guava 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 ...
36.123431
100
0.6513
505a07289def3322709fb525c5c381e298171657
6,479
package com.eu.habbo.habbohotel.items.interactions.wired.effects; import com.eu.habbo.Emulator; import com.eu.habbo.habbohotel.gameclients.GameClient; import com.eu.habbo.habbohotel.items.Item; import com.eu.habbo.habbohotel.items.interactions.InteractionWiredEffect; import com.eu.habbo.habbohotel.items.interactions.I...
29.45
163
0.573237
277646dfe5397c6176dddf8e2e1af2f267bda392
8,032
package uk.gov.hmcts.reform.divorce.orchestration.tasks; import com.google.common.collect.ImmutableMap; import feign.FeignException; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; impor...
53.546667
130
0.747136
bf3fa1f1f7f3e4edf1951cf1ae57595e2292f2c7
20,407
package com.mtools.core.plugin.db; import java.sql.Timestamp; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import com.mtools.core.plug...
33.842454
132
0.58524
524f528533b04cb97692c268311112feed6805d1
1,309
/* * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
24.698113
78
0.708938
565b73f60e75a4b4c373b055d0461a01ae1408bd
953
package camelinaction; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.processor.loadbalancer.SimpleLoadBalancerSupport; /** * A custom load balancer which will pick the first processor for gold messages, * and the 2nd processor for other kind of messages. * <p/> * Not...
30.741935
80
0.700944
541652e71f09ff9475ab4f2b0e3d7bfd3bc9ef0d
1,441
package spaceinvaders.command.client; import static spaceinvaders.command.ProtocolEnum.TCP; import spaceinvaders.client.ClientConfig; import spaceinvaders.client.mvc.Controller; import spaceinvaders.client.mvc.Model; import spaceinvaders.client.mvc.View; import spaceinvaders.command.Command; import spaceinvaders.comm...
27.711538
89
0.7127
f139351f16cadd5fbe941e5baa1bbff11ca07ae3
2,087
package io.github.ykalay.rabbitmqtunnel.config; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import java.util.Objects; /** * Rabbitmq Pool configuration class * * @author ykalay * * @since 1.0 */ public class RabbitmqPoolConfig { /** * Singleton lazy instance of {@link RabbitmqPoolC...
31.149254
119
0.702444
cc59d3051691e35cc4d882e656bdc2b9b5916c30
14,056
/* * 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 ...
37.185185
187
0.682129
9d0cbe8c1d8b92ff66b7342f64030c597e11cd1d
13,869
package com.example.radu5.android_sqlite; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.support.v4.content.Context...
32.104167
126
0.534429
e69f0f84cf980fee5933b0c7e082c0d03a1c146c
1,509
package io.mdsl.generator; import org.eclipse.emf.common.util.URI; import org.eclipse.xtext.generator.IFileSystemAccess2; import io.mdsl.apiDescription.EndpointContract; import io.mdsl.apiDescription.ServiceSpecification; import io.mdsl.dsl.ServiceSpecificationAdapter; import io.mdsl.generator.freemarker.FreemarkerEn...
43.114286
142
0.821074
fbc56a7bc77c0a5ad9a51f466f5f77b61a2e73a5
1,063
package com.networknt.ac.handler; import com.networknt.config.Config; import com.networknt.handler.LightHttpHandler; import com.networknt.server.Server; import io.undertow.server.HttpServerExchange; import io.undertow.util.HttpString; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import...
34.290323
127
0.734713
99113e563bdfc81bd422f79831431c7e29d7ccf7
2,393
// Copyright 2021 The KeepTry 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 applicable...
27.825581
82
0.645215
7ae306c1d30231a89fa1918b48a39f8838b218aa
418
package com.example; @Marker public class Person { private String fullName; private Address address; public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } public Address getAddress() { return addr...
16.076923
46
0.626794
c8cb4b75d1c0fb36c741e94e84e125eb06afe095
5,676
package com.gmonetix.bookspivot.activity; import android.content.Intent; import android.net.Uri; import android.support.v4.app.ActivityCompat; import android.support.v4.app.ActivityOptionsCompat; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.Suppo...
33.192982
143
0.624912
81ec90009d289aa2cc2532b87956953a072ae9c8
2,552
package com.taotao.cloud.order.api.vo.cart; import cn.lili.modules.order.cart.entity.enums.DeliveryMethodEnum; import cn.lili.modules.promotion.entity.dos.MemberCoupon; import cn.lili.modules.promotion.entity.vos.CouponVO; import io.swagger.v3.oas.annotations.media.Schema; import java.io.Serializable; import java.util...
23.2
86
0.731975
8d548f9ccb1d053e78510a10f5b2a13cf6b505a5
762
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxauth.client.model.authorize; /** * @author Javier Rojas Blum Date: 03.07.2012 */ public class Claim { private String name; private ClaimValue c...
20.594595
106
0.641732
e3fb3178e27b506c58f358bb8653dd8dc687aed3
734
package lee.code.code_386__Lexicographical_Numbers; import java.util.*; import lee.util.*; /** * * * 386.Lexicographical Numbers * * difficulty: Medium * @see https://leetcode.com/problems/lexicographical-numbers/description/ * @see description_386.md * @Similiar Topics * @Similiar Problems * Run solution from Un...
20.388889
73
0.675749
08bc2731d4afbaed3e7285f0f15b613211d98781
811
package com.jiangfw.common.lang.test.json.utils; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; /** * Created by jiangfw on 2019/1/8. */ public class JacksonUtil { private static ObjectMapper mapper = new ObjectMapper()...
23.852941
70
0.630086
26a3d2c10b25b9ebf3b3b0495c84661cdf7eda92
2,014
package com.skytala.eCommerce.domain.shipment.relations.shipment.command.gatewayConfig; import org.apache.ofbiz.entity.Delegator; import org.apache.ofbiz.entity.DelegatorFactory; import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.GenericValue; import org.apache.ofbiz.entity.GenericEnt...
37.296296
113
0.84856
8e27fa7861da86a4806104f09e00ee681bb6ea37
675
package com.otuadraw.data.model; import com.otuadraw.enums.ShapeEnum; import lombok.Getter; import lombok.Setter; public class InkFile { private InkTrail inkTrail; @Getter @Setter private ShapeEnum guess; @Getter @Setter private boolean isTempFile; @Getter @Setter private bo...
16.875
42
0.623704
33acb16687964efcf4433a81fc2e3868dd74007d
1,579
/* * Copyright (c) 2006 JMockit developers * This file is subject to the terms of the MIT license (see LICENSE.txt). */ package mockit.internal.reflection; import java.lang.reflect.*; import javax.annotation.*; import static mockit.internal.util.Utilities.ensureThatMemberIsAccessible; public final class FieldRefl...
34.326087
114
0.697277
a803e2c4f5a4a87480172a4d6fe581513438b591
7,003
package org.meowcat.mp3desktop.qin; import android.annotation.SuppressLint; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.media.AudioDeviceInfo; import androi...
40.953216
155
0.598886
ddbbee37fe851629088ccfb06c73a0bf315ceedb
447
//,temp,HistoryServerFileSystemStateStoreService.java,201,211,temp,ZKRMStateStore.java,1140,1152 //,3 public class xxx { @Override public void removeTokenMasterKey(DelegationKey key) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug("Removing master key " + key.getKeyId()); } Path ...
27.9375
96
0.709172
1af0f1acd5debc23a2c774b94f8967d21ea49bc1
14,543
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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 ...
46.463259
100
0.682046
8f715e8c2e0d422eb6c0e841535fff5410a848f2
4,896
package ee.ttu.thesis.model.processor; import static ee.ttu.thesis.util.Logger.log; /** * */ public class Result { public static final double THRESHOLD_PERCENTAGE = 100; private String metricName; private String unit; private double average; private double median; private double range; ...
29.672727
192
0.629085
2a0a08ca41d14ace82b95628696a3ba7ae39fe3c
7,177
package fr.ign.validator.validation.database; import static org.junit.Assert.assertEquals; import java.io.File; import java.util.ArrayList; import java.util.List; import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.opengis...
42.217647
106
0.680507
b3ba47128958ebf3105811f7d4393eb849fa0990
1,579
/* * Copyright (c) 2019. http://devonline.academy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
29.240741
89
0.567448
3c3bdc38aec998cf52b972d8ca891f4f3c61eca8
7,692
/******************************************************************************* * 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 ...
36.803828
106
0.50754
8f6cd9cd525a5597b38f37e6ae0bd41b1d664998
629
package quek.undergarden.world.gen.tree; import net.minecraft.world.level.block.grower.AbstractTreeGrower; import net.minecraft.world.level.levelgen.feature.ConfiguredFeature; import net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration; import quek.undergarden.registry.UGConfiguredFeatures; imp...
34.944444
109
0.82035
216bd864becc1070a949c3a3ce29dc4cb377113a
4,776
package org.esupportail.opi.batch; import java.util.HashMap; import java.util.Map; import java.util.Set; import org.esupportail.commons.services.application.ApplicationService; import org.esupportail.commons.services.application.ApplicationUtils; import org.esupportail.commons.services.database.DatabaseUtils; import ...
29.121951
95
0.707286
40325ebc58dfb6f83c5a1c5833471e12cf36613b
1,157
package io.vertx.example.core.http.simpleform; import io.vertx.core.AbstractVerticle; import io.vertx.example.util.Runner; /* * NOTE! It's recommended to use Vert.x-Web for examples like this * * @author <a href="http://tfox.org">Tim Fox</a> */ public class SimpleFormServer extends AbstractVerticle { // Conven...
29.666667
101
0.611063
118aa5185eca245215fb439331d9cf2299d8b48f
1,049
// Template Source: Enum.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------------------------------...
26.897436
152
0.587226
2f95495162def0e70c0f7b93b7f7c312f57ab585
2,814
package word_ladder; import java.lang.reflect.Array; import java.util.*; public class Solution{ public static void main(String [] args){ String beginWord = "hit"; String endWord = "cog"; // String beginWord = "a"; // String endWord = "c"; // String beginWord = "red"; // ...
38.027027
107
0.505686
4e6fafe73ad7d8db1c75653ae76c76b41d7f19de
2,663
package com.deepoove.cargo.web.controller; import com.deepoove.cargo.application.command.CargoCmdService; import com.deepoove.cargo.application.command.cmd.CargoBookCommand; import com.deepoove.cargo.application.command.cmd.CargoDeleteCommand; import com.deepoove.cargo.application.command.cmd.CargoDeliveryUpdateComman...
39.161765
102
0.733008
c24be14d9c366217a978d7e01ec6a1d346c76c8c
145
package rolectrl; /** * @author: xu.yefcion * @description: * @date: 2020/2/1 14:02 */ public interface RoleOperation { String op(); }
12.083333
32
0.627586
02d48b528fb3409a34c7e1b1f8cc62461bd0f14c
17,142
package com.project.convertedCode.globalNamespace.namespaces.Symfony.namespaces.Component.namespaces.Console.namespaces.Question.classes; import com.runtimeconverter.runtime.references.ReferenceContainer; import com.runtimeconverter.runtime.nativeFunctions.string.function_str_replace; import com.runtimeconverter.runti...
47.882682
162
0.504842
57d284d6f2767b4d683adb6e61b312724a496579
3,081
package pl.consdata.ico.sqcompanion.sync; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.cache.CacheManager; import org.springframework.stereotype.Service; import pl.consdata.ico.sqcompanion.cache.Caches; import pl.consdata.ico.sqcompanion.members.MemberService; imp...
38.037037
107
0.734826
c93bebac068aaad7c1ce224f94059e8b9d8c5a01
13,605
/* * Copyright 2019 is-land * * 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 w...
35.522193
100
0.601985
16e5a4fa8357eb3331c435e3d7cdd9643095b41e
13,331
/* * Copyright (c) 2015 EMC Corporation * All Rights Reserved */ package com.emc.vipr.client.core.util; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; impo...
28.730603
134
0.54152
612236de177da648b5edda35e9c9790ade435192
241
package com.example.injector.includes.provider.naming.flat_enclosing; public interface Outer { class Middle { public static class Leaf { @MyFrameworkComponent public static class MyModel2 { } } } }
15.0625
69
0.655602
7c2b715a61ca53f72e453a3da18e93c5f56852b8
2,328
package chronosacaria.mcdw.bases; import chronosacaria.mcdw.Mcdw; import chronosacaria.mcdw.api.util.RarityHelper; import chronosacaria.mcdw.enums.DoubleAxesID; import chronosacaria.mcdw.items.ItemsInit; import net.minecraft.client.item.TooltipContext; import net.minecraft.item.AxeItem; import net.minecraft.item.Item;...
52.909091
114
0.758162
661439a2de41d1b6ccb2851249594106f1ccf20f
176
package fly; /** * @className: FlyBehavior * @description: TODO 类描述 * @author: WU Yuejiang * @date: 2021/1/11 **/ public interface FlyBehavior { public void fly(); }
14.666667
30
0.647727
e676c6a8a6908ea4e740239cb4e542c35dc35442
853
package no.uio.cesar.ViewModel; import android.app.Application; import java.util.List; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LiveData; import no.uio.cesar.Model.Interface.Repository; import no.uio.cesar.Model.Sample; public class SampleViewModel ex...
24.371429
64
0.737397
cb8e3be87a29fc8f6df7670bc71cd0c7372dce99
1,375
package database; import java.time.Instant; import javax.persistence.EntityManager; import org.junit.Assert; import org.junit.Test; import dto.Channel; import dto.Comment; import dto.User; public class EntityManagerTest { @Test public void entityManagerTest1() { EntityManager em = HibernateUtil.getEntityManag...
20.220588
54
0.709818