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
07701a4e1a7e2f3fe9156391e75a9ef48d5e3dd4
2,357
/* * 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 * distributed u...
51.23913
147
0.821383
db93cf507a0e2a557a55dc42a0672a7a119ada85
2,163
package net.h34t.temporize; import org.junit.Assert; import org.junit.Test; import java.nio.file.Path; import java.nio.file.Paths; public class TemplateFileTest { @Test public void getPackageName_good() { Path directory = Paths.get("tpl"); Path file = Paths.get("tpl/foo/bar/baz/MyFile.tempor...
31.347826
141
0.649098
d1863c22d2ea44642d5ec8b9a28401c5145f86b0
687
package com.sansi.stellarWiFi.util; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * @author lql E-mail: 595308107@qq.com * @version 0 创建时间:2017/2/18 20:16 * 类说明 */ public class NetUtils { public static boolean isNetworkAvailable(Context c)...
28.625
68
0.676856
6962d820211ab44652a6240402fd7ed88cca3e39
756
package io.futuristic.http; import java.io.ByteArrayInputStream; import java.io.InputStream; /** * Created by rubioz on 12/5/13. */ public final class HttpStringBody implements HttpBody{ private final String contentType; private final String body; HttpStringBody(String body){ this("text/plain",...
19.894737
57
0.65873
9d6a3de8c821b69f6ccd438e230b58714ec5cfc0
264
package org.ogerardin.b2b.domain.mongorepository; import org.ogerardin.b2b.domain.entity.BackupSource; import org.springframework.data.mongodb.repository.MongoRepository; public interface BackupSourceRepository extends MongoRepository<BackupSource, String> { }
29.333333
87
0.852273
31b19d604a49c521e74d9ffbc1c35fa24371acd8
2,467
package cn.springcloud.book.eureka.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bi...
28.034091
111
0.758006
88b48f07514fcfee1193b6abf585b1e5492a25a8
659
package com.christophecvb.elitedangerous.events.startup; import com.christophecvb.elitedangerous.events.Event; import com.google.gson.annotations.SerializedName; public class NewCommanderEvent extends Event { public String name; @SerializedName("FID") public String fid; @SerializedName("Package") ...
29.954545
79
0.740516
cb010d2155a4604f81e9b12ebda06500b10e7ba6
94
package com.gl.monitor.common.object; public class CommonResponse extends CommonMsgBody { }
15.666667
51
0.808511
cd5ba0b3a4625ac125dc01272550c8b7f3ea180b
1,187
package com.alipay.global.api.request.aps.pay; import com.alipay.global.api.request.AlipayRequest; import com.alipay.global.api.response.aps.pay.AlipayApsUserInitiatedPayResponse; public class AlipayApsUserInitiatedPayRequest extends AlipayRequest<AlipayApsUserInitiatedPayResponse> { private String acquirerId; ...
23.27451
104
0.696714
bc66a25751e5b3b2e4082b7b72e70f0e17253793
6,114
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
47.765625
143
0.668793
2e8570b9ddd18f67f8c3d6014af85f6329cd000c
1,070
package com.workhub.z.servicechat.config; /** *@Description: 消息码 *@Param: *@return: *@Author: 忠 *@date: 2019/5/29 */ public class MessageType { //个人消息 public static final int PRIVATE_MSG = 0; //群消息 public static final int GROUP_MSG = 1; //系统消息 public static final int SYS_MSG = 2; //群创建 ...
20.980392
50
0.642991
558cbacb4de15e3d0413bd204e5307580534279f
3,936
package com.qryptic.api.model; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonProperty; import javax.persistence.*; import java.util.List; import java.util.stream.Collectors; /** * Represents a Crypto Currency entity. * * @author Marcus Cvjeticanin * @version 0.0....
24.296296
80
0.612043
b26c8a207b9b4293cc504c802b171ecc7e211fff
17,240
package parserValidCheck; import java.io.StringReader; import java.io.StringWriter; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.xml.sax.InputSource; import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.inter...
51.309524
122
0.683469
d2f66d14d89548d2a9e9c0f6872e774bee8d239c
1,778
/** * Copyright 2018 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.transport.examples; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com...
44.45
126
0.737908
2798e4c10dcbd5199addb7b02f38c760db9485c7
1,766
package MergingIntervals; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Naive { static class Interval { int start; int end; Interval(int start, int end) { this.start = start; this.end = end; } int getStar...
29.932203
95
0.535108
921dfdb6255738e5bf6fcda3ded211490bee7555
5,629
package com.mt.shop.domain.model.product; import com.mt.common.domain.model.restful.query.PageConfig; import com.mt.common.domain.model.restful.query.QueryConfig; import com.mt.common.domain.model.restful.query.QueryCriteria; import com.mt.common.domain.model.restful.query.QueryUtility; import com.mt.shop.domain.model...
38.292517
137
0.656955
a548f66152569f0735eed66167c2cd985682cb69
1,720
/* * 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 ...
33.72549
80
0.713372
0f0b00a1cc1489e7e79468cebcbdf69c7e477f18
2,318
/* * Copyright (c) 2018 Uber Technologies, Inc. * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, p...
46.36
118
0.7761
d93f281dfa7a2f95ff5542a6070e26e7374c28a7
464
package codewars; public class Vowels { public static int getCount(String str) { int vowelsCount = 0; for(int i=0;i<str.length();i++){ if(str.charAt(i)=='a'|| str.charAt(i)=='e'|| str.charAt(i)=='i'|| str.charAt(i)=='o...
25.777778
45
0.394397
109dc0983c9fd18ffbba3641ee6a7c283c068b20
20,201
package com.jibo.apptoolkit_desktop_example; import com.jibo.apptoolkit_desktop_example.JiboWebSocketListener; import com.jibo.apptoolkit_desktop_example.ErrorInterceptor; import com.jibo.apptoolkit_desktop_example.JiboX509TrustManager; import com.jibo.apptoolkit.protocol.CommandRequester; import com.jibo.apptoolkit.p...
55.803867
181
0.597149
9fc82919479e3880508accf81720c310ed420cba
910
package org.vietspider.chars.jchardet; public class nsDetector extends nsPSMDetector implements nsICharsetDetector { nsICharsetDetectionObserver mObserver = null ; public nsDetector() { super() ; } public nsDetector(int langFlag) { super(langFlag) ; } public void Init(nsICharsetDetectionObserve...
19.361702
77
0.62967
0ce0d873e92ebf2243bc5a4d37de4e51f22720d1
2,494
/* * Copyright 2017 Budapest University of Technology and Economics * * 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 * * Unles...
28.022472
91
0.719727
6b9cde09772c4173e0f4f84c0e780b1f5be7e314
2,157
package org.kohsuke.stapler.compression; import org.kohsuke.stapler.AttributeKey; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; import java...
38.517857
160
0.664349
1e2724c52d23cce41ed444d11674b1d84e85ffe7
6,815
package com.fabriccommunity.thehallow.block; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.block.Block; import net.minecraft.block.BlockRenderType; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.FluidDrainable; import n...
38.502825
192
0.752898
80b4cf318689e13994e643e09254643a641657e2
11,584
/* * Copyright 2002-2012 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
47.867769
117
0.769855
6a09e0acaf5f3f214b5994f07d521bd841728c18
5,068
package miniquest1; import java.util.Scanner; import java.util.Random; public class Miniquest1 { public static boolean hasKey = false; public static boolean victory = false; public static void printMap(char [][] map) { for(int y = 0; y < map.length; ++y) { for(int x = 0; x < map[y].length; ++x) { System...
24.365385
98
0.500395
7cccbc29ca8b8edef7b82598ab89a3dec37b96c1
7,837
package wraith.fabricaeexnihilo.api; import net.minecraft.block.Block; import net.minecraft.block.TallPlantBlock; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; import org.jetbrains.annotations.ApiStatus; import wraith.fabricaeexnihilo.util.Color; import wraith.fabricaeexnihilo.util...
51.900662
277
0.698482
b3d2a1b0187da32468f7a0f13aa536bdbd49f82b
403
package com.lzhlyle.leetcode.self.no617; public class MergeTwoBinaryTrees { public TreeNode mergeTrees(TreeNode t1, TreeNode t2) { if (t1 == null) return t2; if (t2 == null) return t1; TreeNode res = new TreeNode(t1.val + t2.val); res.left = mergeTrees(t1.left, t2.left); ...
28.785714
59
0.600496
414f678f867a6f8115f2f4e48814caa09e6cc64a
757
package org.drools.model.functions; import java.io.Serializable; public interface Predicate3<A, B, C> extends Serializable { boolean test(A a, B b, C c) throws Exception; default Predicate3<A, B, C> negate() { return (a, b, c) -> !test( a, b, c ); } class Impl<A, B, C> extends Introspectabl...
23.65625
85
0.577279
35a590b2e08da20978ac999df2b3d4b02392ab47
513
package com.shizhan.bookclub.app.fragment; import com.shizhan.bookclub.app.R; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class ContactsFragment extends Fragment { @Override public View onCreateView(Lay...
24.428571
85
0.803119
ad85ddf27d0fc2434a7cf032da95f8144b02b073
3,030
package com.sachin.filemanager.fragments; import android.os.Bundle; import android.support.v7.preference.CheckBoxPreference; import android.support.v7.preference.Preference; import android.support.v7.preference.Preference.OnPreferenceChangeListener; import android.support.v7.preference.PreferenceFragmentCompat; import...
41.506849
109
0.726403
25b9098b01511169545b7a4e5ee7a889c9425602
1,488
package vcs; import utils.ErrorCodeManager; import utils.OperationType; import java.util.ArrayList; import java.util.List; /** * @project Version Control System * @author Alin-Andrei Georgescu * (C)Copyright 2018 */ public class CheckoutOperation extends VcsOperation { public CheckoutOperation...
28.075472
96
0.59543
4caeed4836a1bb138bf9ebacc7301bbaed9dc821
670
package com.twu.biblioteca.Books; import com.twu.biblioteca.Books.Book; import org.junit.Test; import java.time.Year; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class BookTest { @Test public void shouldHaveCorrectData() { String testTitle = "Harry ...
27.916667
69
0.697015
6dedfdf9f1de31afb5ca138af46d15d76a880921
755
import java.util.ArrayList; import java.util.List; class Solution { private List<List<Integer>> res; //Time Complexity: (n!) //Space Complexity: O(n) public List<List<Integer>> permute(int[] nums) { res = new ArrayList<>(); if (nums.length == 0) return res; permute(nums, 0, new...
26.034483
70
0.519205
cd8a66fb44a1d2e636c29533293af2f57e0c35b2
5,024
/*- * ========================LICENSE_START================================= * TeamApps Application Server * --- * Copyright (C) 2020 - 2021 TeamApps.org * --- * 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 ...
50.747475
284
0.814291
4b565fe000df2186c8a53229bbe1bfb75d458874
2,192
package com.xzhou.book.widget; import android.annotation.SuppressLint; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; import androi...
30.444444
135
0.700274
48815651f90b7af616dacfa0347df774836265ed
1,610
/* * 3D City Database - The Open Source CityGML Database * http://www.3dcitydb.org/ * * Copyright 2013 - 2016 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.gis.bgu.tum.de/ * * The 3D City Database is jointly developed with the following * cooperation partners: ...
28.245614
76
0.68882
5095105eafcbc6690f6c57d8120702b4d6d798e5
1,107
package softuni.spring_data.DatabaseAccessWithJDBC; import java.sql.*; import java.util.Scanner; public class WritingYourOwnDataRetrievalApplication { public static void main(String[] args) throws SQLException { Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/diablo", "ro...
33.545455
122
0.634146
d161e8d30d81400861d757d8065ece367e451cb8
6,152
package com.github.houbb.lombok.ex.metadata; import com.github.houbb.lombok.ex.constant.ClassConst; import com.github.houbb.lombok.ex.model.ProcessContext; import com.sun.source.tree.Tree; import com.sun.tools.javac.code.Flags; import com.sun.tools.javac.code.Symbol; import com.sun.tools.javac.tree.JCTree; import com....
25.957806
116
0.560793
19610c328b4edd3f4fbacf568821384ae8036143
3,744
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL")...
39.410526
80
0.715812
85a57ac6b3c9a8f18792b228c8855b4a3c0c9791
6,906
/* * Copyright (c) 2004-2022, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of cond...
37.32973
117
0.637996
49096a73651d2bf0455604681dd620910ef3c043
4,838
/* * 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 node.receiving.PROVIDE.for_transfer; import util.Parser; import Server.ThreadMCReceiver; import Server.notimpl.base.MCControll...
37.796875
133
0.646135
37d652b5a63a7007d407a1032058cbbaaeead3e8
175
package org.codehaus.waffle.example.simple.controllers; public class HelloWorldController { public String getGreeting() { return "Hello World!"; } }
19.444444
56
0.674286
53a908533ef6edbb496e5a6c19c5c1c235176eeb
356
package io.quarkus.quartz.runtime; import javax.inject.Singleton; @Singleton public class QuartzSupport { private QuartzRuntimeConfig runtimeConfig; void initialize(QuartzRuntimeConfig runtimeConfig) { this.runtimeConfig = runtimeConfig; } public QuartzRuntimeConfig getRuntimeConfig() { ...
18.736842
56
0.738764
20e561347801e3e43732040bf66c8e8f660b1eb0
1,358
package br.com.livroandroid.carros.adapter; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import br.com.livroandroid.carros.R; import br.com.livroandroid.carros.fragments.CarrosFragment; /* Adapter para preencher o ViewPager com fragments */ public class TabsAdapte...
28.291667
84
0.62813
b567b9d87b0109beb28111eac965357ac3267683
2,377
/* * 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...
34.449275
121
0.727387
a7be0ddd73f965fc1e03fd3cd59ef19123fac489
3,577
package org.fbme.lib.iec61499.stringify; import org.fbme.lib.iec61499.declarations.EventAssociation; import org.fbme.lib.iec61499.declarations.EventDeclaration; import org.fbme.lib.iec61499.declarations.FBInterfaceDeclaration; import org.jdom.Element; import org.jetbrains.annotations.NotNull; import java.util.List; ...
39.744444
121
0.704501
1a6beeab1acaebe1e2b70308c1752ee70cd43920
697
/* * Copyright (C) 2022 The SINOBU Development Team * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT */ package kiss.lifestyle; import org....
23.233333
68
0.621234
31ff61726340faf63ddaf048ca6c329a5d4c4b8b
6,922
/* * Copyright 2017-present Open Networking 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.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
32.961905
88
0.59766
4f05512a30249b0372bc9bb7f0fd35de8d4ef75c
597
package sceneGraphsAndNodes; import javafx.application.*; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.stage.Stage; public class JavaFXHelloWorld extends Application { @Override public void start(Stage stage) { // Create label Label label = new Labe...
19.9
49
0.723618
456adb276f2e60c78d20397dd74f29164e006ce5
1,204
package com.tlongdev.bktf.component; import com.tlongdev.bktf.module.BptfAppModule; import com.tlongdev.bktf.module.PresenterModule; import com.tlongdev.bktf.ui.fragment.BptfFragment; import com.tlongdev.bktf.ui.fragment.CalculatorFragment; import com.tlongdev.bktf.ui.fragment.ConverterFragment; import com.tlongdev.bk...
28.666667
66
0.807309
3e842cf060155e2afde18a454a4bf0be71009aa1
2,758
/* * This file is part of limbo, licensed under the MIT License. * * Copyright (c) 2017-2019 KyoriPowered * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
39.971014
110
0.772299
9e271f98923c518654daa7e1519e070a115d6a3e
4,978
package com.qa.toDoList.controller.integrationTests; import java.util.List; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest...
34.811189
90
0.792286
e07380b37656e472b8668fc0d7f747dc51bc6f2c
1,346
package org.aerogear.plugin.intellij.mobile.services.configuration; import com.intellij.openapi.project.Project; import com.intellij.psi.xml.XmlTag; import java.io.File; import java.util.ArrayList; public class CordovaConfig extends ConfigurationXml { private static final String ATTR_ID = "id"; private stat...
32.047619
123
0.65899
fe7b07443325bddd8110d582d3854cbe8ede32ba
11,403
package com.iphayao.linebot; import com.google.common.io.ByteStreams; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.iphayao.linebot.flex.*; import com.iphayao.linebot.helper.RichMenuHelper; import com.iphayao.linebot.service.AppMailServiceImp; import com.linecorp.bot.client.LineMessagingC...
38.523649
123
0.603438
1ae9b1f66ff98975f8ac184084f559689362115a
423
package com.g2forge.alexandria.java.fluent.optional; import org.junit.Assert; import org.junit.Test; import com.g2forge.alexandria.java.fluent.optional.factory.IOptionalFactory; public class TestNullableOptional extends ATestOptional { @Override protected IOptionalFactory getFactory() { return NullableOptional.F...
22.263158
76
0.787234
371a4deb3c08ba6b7fa498bd888af4363b8d0f91
1,875
package com.github.shuaidd.resquest.externalcontact; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** * 描述 * * @author ddshuai * date 2021-01-02 21:26 **/ public class UpdateRemarkRequest { @JsonProperty("userid") private String userId; @JsonProperty("external_useri...
21.067416
62
0.6736
6af013a057b3a14a217c7701dbf906951e62645f
1,353
/* * Source code generated by Celerio, a Jaxio product. * Documentation: http://www.jaxio.com/documentation/celerio/ * Follow us on twitter: @jaxiosoft * Need commercial support ? Contact us: info@jaxio.com * Template pack-backend-jpa:src/main/java/printer/Printer.e.vm.java * Template is part of Open Source Proje...
30.75
101
0.715447
bc7c80396ffa274d0ca6ad764c44c4c49b8edda8
9,248
package com.aspose.cells.android.examples; import com.aspose.cloud.cells.api.CellsRangesApi; import com.aspose.cloud.cells.client.ApiException; import com.aspose.cloud.cells.model.Color; import com.aspose.cloud.cells.model.Font; import com.aspose.cloud.cells.model.PasteOptions; import com.aspose.cloud.cells.mod...
39.186441
164
0.665225
f94060a52de2954add66748cc9eb833d48ac631b
538
package com.alexgilleran.icesoap.example.guice; import roboguice.config.AbstractAndroidModule; import com.alexgilleran.icesoap.example.dao.DictionaryRequestFactory; import com.alexgilleran.icesoap.example.dao.DictionaryRequestFactoryImpl; /** * The standard (non-mock or anything else) module for the App. * * @au...
24.454545
73
0.79368
ad16ab81ecc904a812905a74b78e8481699b1313
35,990
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package io.radar.sdk; public final class R { public static final class attr { public static final int alpha = 0x7f040027; public static final int ...
44.32266
123
0.663268
44e0c9fd393da9746ce4695849d5bcb03ec057a7
2,115
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.maintenance; import com.yahoo.vespa.hosted.controller.Instance; import com.yahoo.vespa.hosted.controller.Controller; import com.yahoo.vespa.hosted.controller....
41.470588
120
0.63026
dfdb1100383b0d7e4864f5c9ad8d739c6eb2398b
2,086
package io.github.malteseduck.springframework.data.marklogic.repository.custom; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import io.github.malteseduck.springframework.data.marklogic.core.mapping.Document; import org.springframework.data.annotation.Id; ...
26.405063
109
0.670182
be4b7b4e5616c8f5eacc1cba7431a52752f83cee
60
package salwiczek.bartosz.Farm; public class Wheat { }
12
32
0.716667
d198fe26df4bb2440462bb8b09dbcf234abcbb86
340
package project; import java.awt.Color; import java.awt.Graphics2D; import engine.Game; public class Piso extends ObjetoDeJuego { public Piso() { posX = 0; posY = 556; width = Game.WIDTH; height = 20; } @Override public void render(Graphics2D g) { g.setColor(Color.WHITE); g.fillRect(posX, posY, wi...
14.166667
41
0.682353
70de57c48a31517a4ac06f226821e6345d2b4c89
564
package com.bitprogress.auth; import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; /** * @author 不会飞的小鹏 * GatewayCmsRemoteService的fallback */ @Component public class AuthFeignServiceFallback implements FallbackFactory<AuthFeignService> { /** * Retur...
22.56
84
0.725177
827bd54a89dc245dce8bf72018204d39d77bbf05
1,953
package com.project.inc; import android.app.TabActivity; import android.content.Context; import android.content.Intent; import android.graphics.PixelFormat; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.Window; import android.widget...
31.5
85
0.696877
4be7de5816e6f3de65845fc7bd4918f95b498d66
2,351
/* * Copyright 2018 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
30.532468
225
0.725649
f77f10974369ad33f33bcb08dc2aa5fe8f1c05eb
179
package org.fakekoji.jobmanager; import org.fakekoji.storage.StorageException; public interface Parser<T, U> { U parse(T t) throws ManagementException, StorageException; }
19.888889
62
0.782123
bd002baa448b3f6f60c10c354fdbc150546a2e2a
399
package me.uniodex.skywars.utils.packages.pool.properties; import com.zaxxer.hikari.HikariConfig; public class PropertyConnectionTimeout implements HikariProperty { private final long value; public PropertyConnectionTimeout(long value) { this.value = value; } @Override public void apply...
21
66
0.73183
03862bb7e02b972d95a6e5ba5da1a8e8ca25a6ea
808
package br.com.sousa.domain.repository; import br.com.sousa.domain.data.model.Vote; 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.Repository; import java....
38.47619
122
0.787129
16a9db728d68b16d3b287c04dfa6fb593dd29ee9
574
package com.lls.cherry.exception; /************************************ * FrameworkException * @author liliangshan * @date 2019-04-11 ************************************/ public class FrameworkException extends Exception { private static final long serialVersionUID = -56778334232277741L; public FrameworkExc...
20.5
67
0.635889
9e0de86b9862df2ab7c81e087ab5806e1e94e30f
1,292
package com.sap.dcode.online.ui.online; import android.app.Activity; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import com.sap.dcode.online.R; public class AgencyActivity extends Activity { private static ...
29.363636
113
0.748452
2c8efd7b9ed8305a2a623b3ffa1f833b425dfb8b
3,072
import models.Ingredient; import models.NutritionalData; import models.Recipe; import models.Step; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.*; public class RecipeTest { private Recipe recipe; @Before public void se...
32
124
0.669922
b7f035fca6c2364f20e8060b7603f4fabe6e041c
3,119
package ki.edu.agh.algorithm; import java.util.ArrayList; import java.util.Collection; import java.util.List; import ki.edu.agh.clustering.Cluster; import ki.edu.agh.clustering.SimpleCluster; import ki.edu.agh.clustering.optics.OpticsClustering; import ki.edu.agh.clustering.optics.OpticsParamteres; import ki.edu.agh....
33.902174
122
0.785829
115aa37081802364e7ad3196eddfd915ea1567ad
9,545
package com.zebrunner.reporting.service.integration.tool.adapter.notificationservice; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.zebrunner.reporting.domain.db.TestRun; import com.zebrunner.reporting.domain.entity.integration.Integration; import com.zebrunner.reporting.service.integ...
42.048458
133
0.673023
210e831356caace558969e693f4cf01744cc9964
2,485
/* * 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 ...
47.788462
165
0.698189
787167121b5b961317fe65d23a7b6ce2af667d6f
1,576
package M10Robot.cardModifiers; import M10Robot.M10RobotMod; import M10Robot.powers.RecoilPower; import basemod.abstracts.AbstractCardModifier; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.actions.utility.UseCardAction; import com.megacrit.cardcrawl.cards.AbstractCard; i...
35.022222
164
0.772843
e125c08cc01707ca937c3e40e28905b1e1faf88d
173
package org.javawebstack.httpserver.handler; import org.javawebstack.httpserver.Exchange; public interface RequestInterceptor { boolean intercept(Exchange exchange); }
24.714286
44
0.82659
1905b3648b8bbc7aeaabe9835e89b5336c233825
1,952
package com.tutorials.hackro.googlemaps; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapF...
38.27451
149
0.740266
3291254e7e545b87a9ca153c589752758a5ae733
3,469
package com.aknayak.offchat; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; import android.widget.Toast; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; imp...
34.346535
173
0.656962
60f3ccd3dd7a96b669ae88a64b2dda2a33bd0d6a
8,624
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
37.991189
102
0.468112
76b03c1c0638a81079f786e2da488e3180acb903
30,381
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
39.92247
130
0.716171
719b2deb378f15408dc1c35d3dc66501463728c6
2,936
package bean_benchmarks; public class JavaEditBean implements java.io.Serializable { private Long timestamp; private String channel; private String title; private String diffUrl; private String user; private Long byteDiff; private String summary; private Boolean isMinor; private Boo...
43.176471
109
0.684605
079e1fce39762bfb0b29ed28c487bca481ef21b6
384
package net.ibizsys.paas.entity; import java.util.HashMap; /** * 简单数据对象 * @author Administrator * */ public class SimpleEntity extends EntityBase { /** * 获取数据对象属性名称集合 * @return */ public java.util.Iterator<String> getFieldNames(){ HashMap<String,Object> fieldsMap = new HashMap<String,Object>(); this.f...
17.454545
66
0.705729
5a4d7e371c29ada680e79d12cf7c89b33011282a
714
package com.deltabase.everphase.engine.shader.filter; import com.deltabase.everphase.engine.shader.Shader; public class ShaderBloom extends Shader { private int loc_colorTexture; private int loc_highlightTexture; public ShaderBloom() { super("filter/filterBloom", "filter/filterBloom"); } @Override protec...
23.032258
70
0.773109
c6b5ff7146735e711c3c08239b438faf0db2ea27
270
package application; //exception qui s'execute si on entre une ligne qui ne commance pas par let ou print ou un while ou if public class CommandeNotFoundException extends Exception { CommandeNotFoundException(String message){ System.out.println(message); } }
33.75
103
0.777778
f97b6ae36c58079a358341ad034e3daef4df6a0d
1,118
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
31.942857
97
0.759392
0d8489e1898258de256d087cad1af91278db0e69
1,107
package com.github.walterfan.guestbook.dao; /** * Created by walter on 06/11/2016. */ import com.github.walterfan.guestbook.domain.GenericQuery; import com.github.walterfan.guestbook.domain.Message; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.a...
29.131579
87
0.699187
28447759204c45bb8de93ed22da0c5227390bbed
753
package com.example.a41448.huawu.base.Contacts; import android.content.Context; import com.example.a41448.huawu.bean.Players; import java.util.ArrayList; import java.util.List; public class ContactList { //创建联系人列表 private static ContactList sContactList; private List<Players> mContacts; //创建构造器...
19.815789
52
0.666667
242e7d6da757a0a68b072a2a60575c0372a1f02a
1,384
/* * 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; /** * * @author User */ public class Curso { private String nome; private String ementa; private Integer...
21.292308
100
0.612717
88a3e303ff2dd5959dd599f74b2dff48148a8139
237
// Holds background for game package game.gameelement; import game.GameElement; public class GameBackground extends GameElement { public GameBackground(String path, int width, int height) { super(path, width, height, false); } }
16.928571
58
0.759494
8444963fde01052bcf7df5b65f72fa4990f02e6e
1,490
package theFishing.cards; import com.megacrit.cardcrawl.actions.animations.TalkAction; import com.megacrit.cardcrawl.actions.common.GainEnergyAction; import com.megacrit.cardcrawl.actions.defect.IncreaseMaxOrbAction; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.cards.blue.MultiCast; ...
37.25
204
0.706711
efdbf740eff9a96757c14088a3b75c95918e9785
1,799
package com.cedricziel.idea.fluid.viewHelpers; import com.cedricziel.idea.fluid.lang.FluidReference; import com.cedricziel.idea.fluid.lang.psi.FluidElement; import com.cedricziel.idea.fluid.lang.psi.FluidViewHelperExpr; import com.cedricziel.idea.fluid.lang.psi.FluidViewHelperReference; import com.cedricziel.idea.flui...
36.714286
149
0.748193
1e58da7e6ba1eea2ba82329642cb505fd3db1d75
2,682
/* * 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 ...
30.477273
109
0.677852
01f8c370993d367d001f27ec9995302abe44af87
5,313
package tests_dominio; import java.util.LinkedList; import org.junit.Assert; import org.junit.Test; import dominio.*; public class TestItem { @Test public void testEquiparItem_desequiparItem() { Humano h = new Humano("Nico", 100, 100, 25, 20, 30, new Asesino(0.2, 0.3, 1.5), new LinkedList<Item>(),...
37.680851
113
0.67476
486a7a706415c1930f61602c24ad8c0852faed40
6,031
package com.example.achuan.flowlayout.view; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.List; /** * Created by achuan on 16-2-16. * 功能:实现自定义流式布局,注意考虑有边距时的情况 */ public class FlowLayout extends V...
38.170886
123
0.580998
e493f5c7a6c4c2453d576c21861958fa0310b0a8
109
package education.cs.scu; public class testController{ public static void main(String args[]){ } }
13.625
43
0.697248
64480f868448b03ee7ac86e4265d8940e231cb0c
1,352
package com.npes87184.ntuapp; import android.content.Context; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; /** * Created by npes87184 on 2015/4/5. */ public class PositiveEnergy { private static PositiveEnergy positiveEnergy; private String [][] events = n...
24.581818
87
0.569527
867c6db1bb65ed77a8377145f9b1deb35e6428b2
1,157
import entities.Address; import entities.Employee; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.Query; public class AddingNewAddressAndUpdatingEmployee { public static void main(String[] args) { Entit...
33.057143
109
0.703544