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
e36fbbd7e48b53ab497ccf27dbbc5368dc6e418c
3,503
/* * Javassist, a Java-bytecode translator toolkit. * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved. * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Alternatively, the contents of th...
26.740458
78
0.625464
b3ff44b686fecc4fd0a33e1424e61652ff27c651
2,645
/* * Copyright 2016 Zhukov Sergei * * 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 ...
34.350649
152
0.626465
106cf4204649e9430f9085aa1a3e43f9862560ea
4,514
package WayofTime.alchemicalWizardry.common.entity.projectile; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.effect.EntityLightningBolt; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.DamageSource; import net.minecraft.util.MovingObjec...
35.825397
219
0.647541
1ea4785b3e5afa175fc161531f57fe27ed6621eb
2,213
/* * 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 ...
33.029851
95
0.67465
6123d8cc453e84d3c9bb2d570c05b13fb0ff5e6b
1,287
/* * Copyright (C) 2010-2015 AludraTest.org and the contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
33.868421
126
0.72805
8456765e775e79c8a07917e9311985e61cb44e59
119
package p; public class A { public static void method() { System.out.println("TestA.method"); B.newmethod(); } }
14.875
37
0.663866
9a912c5b853d38526e4b78133a7e59f4c234c716
2,031
package com.willian.yunmusic.fragment; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.support.v4.app.Fragment; import com.willian.yunmusic.bean.MusicInfo; import com.willian.yunmusic...
26.038462
73
0.604136
f463958fce26424c2a797eb6984375823d2508e8
28,156
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2008, 2014 Etudes, Inc. * * Portions completed before September 1, 2008 * Copyright (c) 2007, 2008 The Regents...
25.297394
149
0.627681
34a558e4af189027eea2e57de0344237e9186322
7,811
/* * Copyright 2016 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
43.882022
118
0.654462
8355103175b490e389a37f383fd084adc5391903
1,297
/* * Copyright 2020. Huawei Technologies Co., Ltd. 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 required...
27.595745
75
0.713955
244d7ab85037c116771ea038da0aa583d83eaf6c
1,961
package fr.potajaime.core.entities; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; impo...
19.808081
81
0.736359
793f23fa3f71a14bddc496793ebca0715dee4342
857
package be.helha.aemt.dao; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import be.helha.aemt.entities.Utilisateur; public abstract class DAO< T > implements IDAO< T > { ...
22.552632
64
0.665111
a29b2b406321ad4ed63209bcdbf735be51cca2fa
13,919
/* * Copyright 2013-2018 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
84.871951
159
0.791436
1179c15ad65a4066828a89ccb337601201b7216a
677
package com.fabriccommunity.spookytime.item.tool; import net.minecraft.item.ToolMaterial; import net.minecraft.recipe.Ingredient; import com.fabriccommunity.spookytime.registry.SpookyItems; public class SpookiumMaterial implements ToolMaterial { @Override public int getDurability() { return 1024; } @Override...
17.358974
59
0.751846
031dc8572c4877220891f7e4eb557b569f69f98c
14,572
/* * Copyright 2006-2014 smartics, Kronseder & Reiner GmbH * * 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 a...
29.144
80
0.634779
fc3bf4a98a1e82a125517c5beae0758d80338aa6
10,659
/* * 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...
37.139373
152
0.677174
e83ef509ba77811aa43de4cf61d074e8d6c808ee
2,217
/*- * ============LICENSE_START======================================================= * SDC * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ===================================================================...
27.036585
83
0.585476
c2b87f4df239143e38aae3d43f5c2e228bcf52b1
20,461
package de.uni_stuttgart.informatik.sopra.sopraapp.app; import android.support.test.espresso.DataInteraction; import android.support.test.espresso.ViewInteraction; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import android.test.suitebuilder.annotation.LargeTest...
46.187359
136
0.470651
352e9f081497daac361a55665a21ce88a0c0c87a
2,133
/* * 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 model; import java.sql.Date; import java.util.Objects; import javax.persistence.Entity; import javax.persistence.Gen...
24.238636
80
0.573371
e6fa6fe96ea4f31698da97b57efa84e879fb77bb
1,259
package com.ost.kyc.services.v2; import com.google.gson.JsonObject; import com.ost.kyc.lib.OSTKYCRequestClient; import com.ost.kyc.services.OSTKYCAPIService; import java.io.IOException; import java.util.Map; public class User extends OSTKYCAPIService { static String servicePrefix = "/api/v2/users"; public U...
27.977778
109
0.681493
103f9cd49e71c270e99574266153ab79337f7fd4
5,299
package io.left.rightmesh.libdtn.core.utils; import java.io.File; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import j...
38.963235
90
0.550104
a808242aeb36fdad922bdaf5e27a4667ebbd30b7
3,597
package db.io.config; import com.google.common.base.Objects; import static com.google.common.base.Optional.fromNullable; import static com.google.common.base.Preconditions.*; public interface DBCredentials { DBUrl url(); DBPwd pwd(); DBUser user(); DBName dbName(); DBDir dbDir(); DBHost ...
26.255474
95
0.541562
b82db0669af1509f801a50a3276f8091585ab4b9
5,258
package com.lenovo.instagram_clone; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android...
30.929412
143
0.613731
9402040891daa064f0cbd4dbee8c3388d34240bb
1,393
package ru.nk.training.DataStructures.BlockingQueue; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.util.concurrent.TimeUnit; public class ArrayBlockingQueueTest { @Test public void put() throws Exception { ArrayBlockingQueue<Integer> q = new ArrayBlockingQue...
27.86
83
0.653266
da7732b777dfd6aa4e9d34ba6c6a1e8608be7daf
1,790
package com.example.mrss; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.Medi...
31.403509
96
0.812849
1eeefe118aefc7d779aeecb11fa1a83eeb0af3d9
1,275
package daggerok.domain; import lombok.extern.slf4j.Slf4j; import javax.ejb.TransactionAttribute; import javax.inject.Singleton; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import java.util.List; import static javax.ejb.TransactionAttributeType.NEVER; import static javax.ejb....
27.717391
116
0.705882
32108c9b9051ac1d91477094b8a4ff071c2bc3e1
647
package dev.sample.framework.core.util; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validator; import lombok.experimental.UtilityClass; /** * バリデーション ユーティリティー. */ @UtilityClass public class ValidationUtils { /** * BeanValidationを実行します. * * @...
23.107143
84
0.689335
b492dd6bf4cfad55fe7791e21d0f90e849a6b90d
2,680
/* * 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 ua.metlife.claims.simplecs.entity.crl; import javax.persistence.*; import javax.xml.bind.annotation.XmlRootElement; import jav...
23.304348
94
0.658209
8c33ed972490bd427a0aa83c0faae3b73648e175
797
package io.rxson.reactive; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.List; /** * @author Mohamed Aly Bou Hanane © 2020 */ public interface ReactiveProvider { default <T> T createInstance(Class<T> clazz) { try { final Constructo...
30.653846
121
0.678795
e72bc747a1df71dbf10da8fcafec822b14c30439
3,047
/******************************************************************************* * Copyright (c) 2013, Fabrizio Falchi (NeMIS Lab., ISTI-CNR, Italy) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
41.175676
758
0.636364
ec3ff74637306228e74099b50baa3824550b26df
686
package com.dayofpi.super_block_world.common.util.materials; import net.minecraft.item.ToolMaterial; import net.minecraft.recipe.Ingredient; public class SuperPickaxToolMaterial implements ToolMaterial { @Override public int getDurability() { return 100; } @Override public float getMining...
18.540541
62
0.64723
843fe3998048dd0ad14c87fca7552604dbddaa19
3,332
package br.com.zupacademy.juliana.proposta.associacartao; import br.com.zupacademy.juliana.proposta.associacarteira.CarteiraPaypal; import br.com.zupacademy.juliana.proposta.associacarteira.CarteiraSamsungPay; import br.com.zupacademy.juliana.proposta.bloqueiocartao.PossiveisStatusUso; import br.com.zupacademy.julian...
36.615385
147
0.69958
b5a81fe38c920dd21f6eb9682b5b1b32d775083f
1,554
package ru.stqa.pft.addressbook.tests; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactData; import ru.stqa.pft.addressbook.model.GroupData; import java.io.File; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.M...
33.06383
129
0.655084
a9ba8b89433ef97f562378fe31718a209a315aed
267
package land.study; public class Main { public static void main(String[] args) { // MagicSquare magicSquare = new MagicSquare(3); // magicSquare.solve(); CongTru1 congTru1 = new CongTru1(); congTru1.solve(); } }
19.071429
56
0.576779
8151dbf0d29f4c9d0e6d74c7d4018533a8539306
450
package org.happykit.happyboot.sys.model.form; import java.io.Serializable; import java.util.List; import javax.validation.constraints.NotNull; import lombok.Data; /** * 单位区域提交对象 * * @author shaoqiang * @version 1.0 2020/03/25 */ @Data public class SysObjRegionForm implements Serializable { /** * 对象id...
16.666667
55
0.662222
2242a27bc0dcdec6b52b0f850465cd369bdd3dc1
9,436
/* * Copyright (C) 2013 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...
31.986441
112
0.730818
d0329398bd9f48bed9ed37cce209a39bbc02d8a2
217
package Reader.Proxy; import java.io.IOException; import java.util.Hashtable; import java.util.Vector; public interface IProxy{ boolean doConnect()throws IOException; void forever()throws IOException; }
16.692308
43
0.764977
fcc3837eea97d02113969ef913dfc08bc6c9a3aa
1,982
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/jobscheduler/trunk/scheduler-api/src/java/org/sakaiproject/api/app/scheduler/JobBeanWrapper.java $ * $Id: JobBeanWrapper.java 105077 2012-02-24 22:54:29Z ottenhoff@longsight.com $ ************...
26.426667
142
0.566599
aa01efddb7d886bb583cd50b50fed68be0a08158
1,087
package com.allesad.habraclient.fragments.posts; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import com.allesad.habraclient.fragments.BaseSpicedFragment; import it.gmariotti.cardslib.library.view.CardListView; ...
26.512195
103
0.780129
80c9c98261c3d04683ab173158cfaecfa8e8c3a5
3,211
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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 * * ...
34.902174
102
0.784802
64e7bf43ee18cefb0b3d35f175523f91bb56e40b
14,065
package io.github.kits; import io.github.kits.enums.Prop; import io.github.kits.log.Logger; import io.github.kits.timer.TimedTask; import java.io.File; import java.io.IOException; import java.io.StringReader; import java.math.BigDecimal; import java.util.Objects; import java.util.Optional; import java.util.Properties...
26.944444
119
0.685105
295e0faf7f6c7ba667693b789291822c9ece35b7
3,995
package com.crazyhitty.chdev.ks.firebasechatModule.ui.fragments; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.v...
32.745902
123
0.702128
d92f1ca7303a77679ce510ee8b130ae3c095ada9
2,916
/* * BSD 3-Clause License * * Copyright (c) 2021, Joint Research Centre (JRC) All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copy...
39.405405
109
0.736283
8dfd325d7deda3397e2ad05e603034de04aa8b02
1,959
package beans; import java.time.LocalDate; public class Review { private int reviewID; private String userID; private LocalDate reviewDate; private String reviewTitle; private String reviewContent; private int prodID; private String farmID; private int orderID; public Review() { } public Review(String u...
21.293478
136
0.710567
f157eba764e742b36e7b114cc9c414670cdb2b44
1,899
package net.pladema.establishment.repository; import net.pladema.establishment.repository.entity.Room; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Reposi...
35.166667
98
0.728278
f419cdf6554354eedc56129b09f94c30d780bbce
14,973
package shabadoit; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.test.context.SpringBootTest; ...
42.902579
118
0.68323
d424ba59bfaba8b6ab22c5c08d0233f0bb34d08c
6,485
package model; import data.SQLite; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Timer; import java.util.TimerTask; import java.util.logging.Level; import java....
29.343891
188
0.500077
96db1bf453e33b042b46724baefd4a54b60342a8
1,077
/* * Copyright 2020 (c) Tim Langhammer * * 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 ...
25.046512
75
0.675952
6d7aa5512b32e5013d1816e754c7a7d3a7c5d766
854
package com.anji.sp.service; import com.anji.sp.model.ResponseModel; import com.anji.sp.model.vo.SpAppReqDataVO; import javax.servlet.http.HttpServletRequest; /** * app 接口 * * @author Kean * @date 2020/06/23 */ public interface SpAppReqService { /** * 初始化保存用户设备信息 * * @param spAppReqDataVO ...
20.829268
91
0.65808
2dc5d9a348ce9298805d33c1c3b047a1dca03c36
2,273
package com.sywyg.stackandqueue; import java.util.Stack; import com.sun.javafx.image.IntPixelAccessor; /** * 滑动窗口的最大值(剑指offerP290,进军P232,P234)。 * @author sywyg * 测试 */ public class Question4 { public static void main(String[] args) { int[] array = {2,3,4,2,6,5,2,1}; int[] max = solution(array, 3); for (i...
19.262712
85
0.570172
46f83c4c220255ac3c421972a36de92eff4ef863
2,815
package com.twasyl.slideshowfx.setup.controllers; import com.twasyl.slideshowfx.setup.app.SetupProperties; import com.twasyl.slideshowfx.utils.OSUtils; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.CheckBox; import javafx.scene.layout.VBox; import javafx.scene.text.Text; impor...
33.117647
146
0.700888
c215e22f6abe8fe7d55e8f6eba9f594e9227af59
1,830
package io.github.cleitonmonteiro.model; import org.bson.types.ObjectId; public class SubscriptionModel { private ObjectId _id; private ObjectId mobileId; private ObjectId userId; private boolean track; private double distanceToNotifier; private double latitude; private double longitude; ...
22.048193
66
0.585792
a43aa165b565e98dab5ccee26e1058b961022ddb
507
package com.github.chpressler.fade.connector.file; import com.github.chpressler.fade.IFile; import com.github.chpressler.fade.IRenameCommand; import java.io.File; public class FileRenameCommand implements IRenameCommand { @Override public boolean rename(IFile file, String newName) throws Exception { ...
29.823529
135
0.745562
0e1bb8dfadf9beab20746478e8a65de2555758d8
4,157
package org.spaceroots.mantissa.linalg; import junit.framework.*; public class DiagonalMatrixTest extends TestCase { public DiagonalMatrixTest(String name) { super(name); } public void testConstantDiagonal() { checkMatrix(new DiagonalMatrix(5, 2.7), 2.7); } public void testNoSetOutsideOfDiagona...
23.890805
81
0.562906
ffa5a5cf61e67b6e4185af15c7e8004321f1c473
1,388
package Array_01; import java.util.Arrays; public class ArrayTest { public static void main(String[] args) { int[][] ax00 = { {1, 2, 3}, {1, 111, 5, 5}, {0, 20, 0, 9, 6}, {1, 29, 39, 8, 100} } ; //縱向加總(行) for (int i =...
27.76
72
0.416427
c8cdc624626cdcc0d05c18da7cf93571b3140467
428
package com.booking.reservationservice.integration; import org.springframework.cloud.stream.annotation.Output; import org.springframework.messaging.MessageChannel; public interface MessageSources { String OUTPUT_USERS = "output-users"; String OUTPUT_PROPERTIES = "output-properties"; @Output(OUTPUT_USERS)...
26.75
58
0.787383
465b36659c1bb2af51a53445137138fac0b5681e
95
package org.beanpod.switchboard.entity; public enum UserRole { ADMIN, USER, SUPERUSER }
11.875
39
0.736842
fa69cb4e95f55c889c4c4d0c27b80c27f4bcc053
534
package p005cm.aptoide.p006pt.billing.view.payment; import p026rx.p027b.C0132p; /* renamed from: cm.aptoide.pt.billing.view.payment.K */ /* compiled from: lambda */ public final /* synthetic */ class C2562K implements C0132p { /* renamed from: a */ private final /* synthetic */ PaymentPresenter f5723a; ...
26.7
70
0.689139
e01cd5701af38b0f58822ab3843f025ec9e0cec0
7,815
package com.infoDiscover.adminCenter.ui.component.infoDiscoverSpaceManagement.commonUseElement; import com.infoDiscover.adminCenter.logic.component.infoDiscoverSpaceManagement.InfoDiscoverSpaceOperationUtil; import com.infoDiscover.adminCenter.logic.component.infoDiscoverSpaceManagement.vo.MeasurableValueVO; import co...
55.425532
184
0.743698
a1c4a5af14c2e59a26cd3a177557c506fc2c1a4c
60,670
/** * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under * the terms of the Healthcare Disclaimer located at http://openmrs.org/license....
47.398438
207
0.678573
5553f13257145ce53f117fb3eb688c84df0b891f
1,199
package io.github.haykam821.nataldomain; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.dimension.v1.FabricDimensionType; import net.minecraft.block.pattern.BlockPattern; import net.minecraft.util.Identifier; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Vec3d; import ...
37.46875
117
0.786489
22aa15e2ffd6c249e1ff4909015116b28c8f787e
744
package com.lordjoe.ui; import javax.swing.*; import java.awt.*; /** * com.lordjoe.ui.IArrayDrawer * * @author slewis * @date Apr 26, 2005 */ public interface IArrayDrawer { public static final Class THIS_CLASS = IArrayDrawer.class; public static final IArrayDrawer EMPTY_ARRAY[] = {}; /** * dra...
19.578947
73
0.639785
82dba4118af9dbfc4d6c4d874dee372707664e34
5,450
package model; import javax.swing.*; import java.awt.*; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Semaphore; /** * カメの座標、角度、大きさ、画像を管理する。 * このクラスはアニメーションの管理はしないし、各変数は瞬時に変更される。 */ public class Turtle { private List<TurtleListener> mTurtleListenerList = new ArrayList<>(); ...
25.707547
73
0.520734
44b03dfd2a0630fd9beb69b1b9899328a5e149db
1,097
package com.integrador.grupo2android.proyectointegrador.Modelo.DAO; import android.arch.persistence.room.Dao; import android.arch.persistence.room.Insert; import android.arch.persistence.room.OnConflictStrategy; import android.arch.persistence.room.Query; import com.integrador.grupo2android.proyectointegrador.Modelo.PO...
35.387097
83
0.789426
36a491ac1d9f53fa95ea6a8e951fcd9a7dac5931
7,243
package com.lzx.demo.ui; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import ...
34.327014
273
0.662985
d6b4018cacc92614d995598ad68a386b57458dcd
5,038
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...
15.993651
813
0.79734
a546c4fd30d1f5b157b6fa08a8943e0ff743a7b6
733
package ru.job4j.sql; import javax.xml.bind.*; import java.io.File; /** * @author Michael Hodkov * @version $Id$ * @since 0.1 */ public class JAXBWorker { public void work(MyEntries myEntries, String file) { System.setProperty("javax.xml.bind.JAXBContextFactory", "org.eclipse.persistence.jaxb.JAXBCont...
30.541667
115
0.663029
104265458cc0f9f25e2f4953bbee34953d3b49fc
797
package ru.i_novus.configuration; import net.n2oapp.platform.security.autoconfigure.N2oPlatformResourceServerConfigurerAdapter; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annota...
46.882353
119
0.863237
fea1991f3dc943f8bea6b997a65fb4ecaac8cbcd
1,242
package xyz.destiall.pixelate.items.inventory; import xyz.destiall.pixelate.items.ItemStack; /** * Written by Yong Hong */ public class FurnaceInventory extends Inventory { private ItemStack toSmelt, burner, processed; public FurnaceInventory() {} //Can be redone to figure out material type and whethe...
28.883721
107
0.687601
3188e437c69d272d73ceb2b9bbfdb3c602b5048d
365
package com.bx.erp.model.commodity; import com.bx.erp.model.BaseModelField; public class PackageUnitField extends BaseModelField { protected String FIELD_NAME_name; public String getFIELD_NAME_name() { return "name"; } protected String FIELD_NAME_normalCommodityID; public String getFIELD_NAME_normalCommodit...
19.210526
54
0.791781
6bd82f40d3a0a957bacd72530dde918a9639a689
1,504
package edu.asu.lib.jaxb; import java.io.OutputStream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.util.JAXBResult; import javax.xml.bind.util.JAXBSource; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.Transformer; imp...
32
82
0.781915
1a2659ce886c5d4bd2f836693375ba9ce738dbee
5,947
package com.github.mikesafonov.smpp.assertj; import com.cloudhopper.smpp.pdu.CancelSm; import com.cloudhopper.smpp.pdu.SubmitSm; import com.github.mikesafonov.smpp.server.MockSmppServer; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.Collections; imp...
31.802139
108
0.610392
cf1db1066a7b0acb955d4f84ebba93a9998812f0
602
package cn.com.sparkle.firefly.cmd.command; import java.util.List; import cn.com.sparkle.firefly.client.PaxosOperater; public class HelpCmd implements Cmd { List<Cmd> cmdList; public HelpCmd(List<Cmd> cmdList){ this.cmdList = cmdList; } @Override public void process(PaxosOperater operater,String command) { ...
18.242424
61
0.69103
20ec2bc1758dcd849bedf4ccd8e1956f0e6e7392
742
package ru.ltst.saturday_data_binding.ui.datachanging; public enum Avatars { A("http://icons.iconarchive.com/icons/hopstarter/bioman/512/Bioman-Avatar-3-Blue-icon.png"), B("http://icons.iconarchive.com/icons/hopstarter/bioman/512/Bioman-Avatar-4-Yellow-icon.png"), C("http://icons.iconarchive.com/icons/hop...
37.1
98
0.718329
7c007371438db00906c56aa661553c5f7c844f8e
2,840
/* * Copyright 2017-present Open Networking Laboratory * * 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 appli...
34.216867
109
0.642254
bf460b2a4c4cbdab677b3d5304161d4d8fb7baec
1,618
package com.bbn.speed.commands.global; /* * @Author Skidder / GregTCLTK */ import com.bbn.speed.Speed; import com.bbn.speed.commands.Command; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; import java.awt.*; import jav...
40.45
133
0.635352
0ff3775b05cf94979c347904431f208f8e62b9e6
2,230
/* * Copyright (c) 2020 Richard Hauswald - https://quantummaid.de/. * * 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 * ...
33.283582
107
0.720628
dcdbfcc38fe7a63e9815981dc080ec98948bc0ba
995
package org.infinispan.query.remote.impl.indexing; import java.security.AccessController; import java.security.PrivilegedAction; import org.infinispan.manager.EmbeddedCacheManager; import org.infinispan.protostream.SerializationContext; import org.infinispan.query.remote.impl.GetSerializationContextAction; import org...
30.151515
91
0.778894
b1439aea231acaba16edb8f4346f981605937689
2,054
/* * Copyright (C) 2017 UrbanThings. * * 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...
39.5
100
0.743914
2c1c83dafd802b8bad43bcd22f439f0128c0ca65
529
package hu.marazmarci.belatheblob.entities.collectibles; import static hu.marazmarci.belatheblob.handlers.B2DVars.BIT_COLLECTIBLE; import hu.marazmarci.belatheblob.entities.B2DSprite; public abstract class Collectible extends B2DSprite { public String action; public int delay = 60; public int healthPoints = 0; ...
24.045455
73
0.782609
9657f77d1d6b47ffd1942ffc70fc459b18b18a07
2,594
/* * 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 RevisionHitory; import common.Difference; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; ...
36.027778
201
0.608712
54916ade5b4a176a56bfc5623b1129bfa2d66d68
1,084
package org.deer.hundred.hysteric.tugriks.hystrix.query.command; import com.mongodb.BasicDBList; import java.util.Objects; import org.bson.Document; import org.deer.hundred.hysteric.tugriks.dto.Offer; import org.deer.hundred.hysteric.tugriks.hystrix.query.param.CompositeQueryCommandParam; import org.springframework.da...
43.36
102
0.77583
2c53074c9a27e891bc2f4c59e1a72bb78f121438
3,450
/* * Copyright 2015 Smart Society Services B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ package org.opensmartgridplatform.adapte...
28.75
92
0.722609
0c1a168f927ffb5f1964dbd482e1f22cbc48da44
2,617
package com.whu.rzjl; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.graphics.drawable.Drawable; import android.p...
27.547368
106
0.751624
2fc443cb30e20a20650eada45f8b9554e7a4bd68
252
package com.yxf.bookshop.common; /** * Api异常 * @author 余晓枫,0410190109 * * */ public class ApiServiceException extends Exception{ private static final long serialVersionUID = 1L; public ApiServiceException(String msg) { super(msg); } }
14.823529
51
0.710317
c221ff4bc8d8f610b2da9c0c5a220497ad1677a2
163
package org.codehaus.xfire.jaxws; import org.codehaus.xfire.aegis.AbstractXFireAegisTest; public class AbstractJAXWSTest extends AbstractXFireAegisTest { }
16.3
55
0.822086
f627de43580d089f9c3fe76b63523989fc02a956
4,484
package xworker.javafx.control; import java.time.LocalDate; import java.util.Iterator; import java.util.List; import javafx.collections.ObservableList; import javafx.scene.control.ListCell; import javafx.scene.control.ListView; import javafx.util.Callback; import javafx.util.StringConverter; import org.xmeta.Action; ...
30.297297
120
0.728591
bd422152b866cddf2d1ba6a5f2c89d0b89ce09d5
829
package com.name.filler.macaw; import java.util.Date; /** * Created by huytr on 9/11/2018. */ public class Task { private String name; private String description; private Date date; public Task(String name, String description, Date date) { this.name = name; this.description = descr...
17.270833
61
0.579011
6c3be4909e0cd5ee2e509b150f5487556cf911d4
64
class B { void m(FooImpl f) { String s = "f = " + f; } }
12.8
26
0.4375
2a4525d7cd9ecfeb0298384927f5eb1c73ddbca5
348
package test; import extensions.SuperTerminalMode; import extensions.YoudaoDictTerminal; /** * @author linxi * www.leftvalue.top * test * Date 2018/7/30 4:32 PM */ public class JlineTest { public static void main(String[] args) throws Exception { new SuperTerminalMode().start(); // YoudaoDict...
16.571429
61
0.681034
a473702af76a6a73ef52639468c2af69fe8f0e89
4,091
package com.wen.web_socket.controller; import javax.websocket.*; import javax.websocket.server.PathParam; import javax.websocket.server.ServerEndpoint; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CopyOnWriteArraySet; /** * @ServerEndpoint 注解是一个类层...
30.759398
116
0.548032
60b4423e4f34066f78df24d2656ac91d59d523e2
2,310
/* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
39.152542
111
0.775325
e4d325d616bb2ee736a5769d2d1641017a781a97
1,638
package wayoftime.bloodmagic.structures; import java.util.Random; import javax.annotation.Nullable; import com.mojang.serialization.Codec; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IWorldReader; import net.minecraft.world.gen.feature.template.IStructureProcessorType; import net.minecraft.w...
35.608696
206
0.800977
ae405bc5a477d124237eda9f60481c883474f200
2,059
package mnistfromscratch; /** * * @author Noah * */ public class Preprocessor { public static float[][] preprocessImages(byte[][][] imageBytes) { byte[][] imageBytesFlat = convertImagesToFlat(imageBytes); float[][] imageBytesNormalized = normalizeImages(imageBytesFlat); return imageBytesNor...
24.511905
105
0.638174
0dea3ca85f6facce11187d7d675f03a1d2c67b84
6,848
import java.io.File; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; public class Sound { private Clip sound[]; private int maxNbSounds; private int maxNbType; private int nbSounds[]; private int indSounds[]; /* type: 0: jump carac, * 1: land, * 2:TP carac, * 3: void carac, ...
22.90301
59
0.592728
0bcfd1b0f509e6e15d24a6197862ac8a157dc58f
9,561
/* * 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 not ...
40.512712
100
0.691141
9990da01088cae6b1d758b1cfbb81b8bb3200809
2,109
/** * Copyright 2018 人人开源 http://www.renren.io <p> 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 <p> http://www.apache.org/licenses/LICENSE-2.0 <p> Unless required by * applicable law or ag...
35.745763
99
0.766714
2704fc65f7649229e5a82d992f3c879b9251ed10
299
package com.hikobe8.fakerimageloader; import java.util.ArrayList; import java.util.List; /** * Author: yr * 18-1-23 下午4:28. */ public class PhotoLoadedBean { public final List<String> mPhotos = new ArrayList<>(); public void addPhoto(String path) { mPhotos.add(path); } }
16.611111
58
0.668896
0d682f54ec920eaddc5162fd84692545230a501d
994
package io.smallrye.mutiny.math.tck; import static io.smallrye.mutiny.math.tck.TckHelper.iterate; import org.reactivestreams.Publisher; import org.reactivestreams.tck.TestEnvironment; import org.reactivestreams.tck.flow.support.TestException; import org.reactivestreams.tck.junit5.PublisherVerification; import io.sma...
30.121212
75
0.710262
28e64e5d676406a229f1e31b7042154b73553abe
4,645
package ru.pavlenov.bio.graph2; import java.util.*; /** * Какой сам ⚝ * Author: Pavlenov Semen * Date: 16.01.14 * <p> * E = mc^2 */ public abstract class AbstractGraph<N, E extends IBaseEdge<?, N>> implements IBaseGraph<N, E> { protected List<E> edges; protected Map<N, List<E>> nodes; public Abst...
22.548544
95
0.542304