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
735548bba66b3fd14f3554cf1c45328d86b8b75f
316
package com.github.cuzfrog.psmm; import com.github.cuzfrog.psmm.PsmmConfiguration; final class NullFactoryPool extends AbstractFactoryPool { NullFactoryPool(PsmmConfiguration config) { super(config); } @Override protected PsmmFactory createOrFetch() { return new PsmmFactoryImpl(); } }
18.588235
58
0.743671
245d6135e90ced174b10a10f61183280fb85b555
530
package com.progetto.OOP.other; /** Rappresenta la superclasse per i calcolatori di statistiche. * @author Lorenzo Benenchia * @author Riccardo Iobbi */ import java.util.ArrayList; import com.progetto.OOP.model.Record; public class StatisticheSuperclasse { protected ArrayList<Record> records; /...
24.090909
67
0.735849
5eca7c8f45dd9a910c7fa6026f74775ad7c67a3a
4,149
package org.knowm.xchange.bittrex.dto.marketdata; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; import java.time.LocalDateTime; public class BittrexV2Summary { private Integer openSellOrders; private LocalDateTime timeStamp; private BigDecimal last; private BigDecimal low;...
22.069149
61
0.648108
bfdabef936b3f47b6702a0b71bb19da201b85f30
588
package io.tony.arcaretrofit.datasets; import io.pivotal.arca.provider.Column; import io.pivotal.arca.provider.SQLiteTable; import io.pivotal.arca.provider.Unique; public class CardTable extends SQLiteTable { public interface Columns extends SQLiteTable.Columns { @Unique(Unique.OnConflict.REPLACE) ...
24.5
58
0.670068
98600e802a74cf1a1df0da3a846cd2255b84157a
1,871
package com.example.hai_da_shi_tang2019; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; public class suan_cai_yu_pian_ba_fan extends AppCompatActivity { private String[]data={"营养价值:\n" + "酸菜鱼的主材鱼含丰富优质蛋白,人体消化吸收率可达9...
53.457143
275
0.701229
fa4cc6309d2be0dc1b9d39400075a6df6d6d448b
2,100
package com.udacity.webcrawler.json; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.nio.file.Files; import java.nio.file.Path; import java.util.Objects; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.ObjectM...
30.434783
110
0.733333
559a9e83565fad716dfff9d4e76613a2309e31d5
3,017
package phoenixTeam.util; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; /** * @author Strikingwolf, chbachman */ public class ReflectionUtil { public static void runMethodsFromObjects(ArrayList<Object> objects, St...
33.898876
110
0.582035
b7a6ed6bc13f2af85a2492591a82db151e671c1c
439
package algo.array; public class FindMinimumRotatedSortedArrayII { public int findMin(int[] nums) { int l = 0; int r = nums.length; while(l < r){ int mid = (l+r)/2; if(nums[mid] < nums[r]){ r = mid; }else if(nums[mid] > nums[r]){ ...
19.086957
46
0.394077
702ee37af6647ca833cf01197b79c2fe640190ac
2,531
package com.elisacapololo.bustrip.ui.trips; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; imp...
37.220588
108
0.655867
8828f1cb5d62907e2e0ca7b0fec344aa5990c8e9
4,188
/** * <copyright> * </copyright> * * $Id$ */ package org.reclipse.behavior.specification; import org.fujaba.commons.identifier.Identifier; import org.eclipse.emf.ecore.ENamedElement; import org.eclipse.emf.ecore.EObject; import org.reclipse.structure.specification.PSObject; /** * <!-- begin-user...
34.9
135
0.626791
72f1dc0121b26f0313215500ddce670a00dd8d50
395
package good; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class FileStoage implements IStorage { @Override public void writeToFile(String data, String path) throws IOException { BufferedWriter out = new BufferedWriter(new FileWriter(path, true)); ...
20.789474
74
0.688608
7611ffe498bc737d1067d44e573efc43bd7ac95f
12,158
package com.google.android.gms.drive.sample.quickstart; import android.app.Activity; import android.content.Intent; import android.content.IntentSender.SendIntentException; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.widget.Toast; import com.google.android.gms.comm...
42.215278
122
0.577069
c8f6e4bd4dd49bc894181ee1ac45a2cfb5139b69
903
package com.ftpix.sherdogparser.models; public enum SearchWeightClass { CATCHWEIGHT(11, "Catchweight"), MINIMUMWEIGHT(17, "Minimumweight"), POUND_FOR_POUND(8, "Pound for Pound"), ATOMWEIGHT(15, "Atomweight"), STRAWWEIGHT(13, "Strawweight"), FLYWEIGHT(10, "Flyweight"), BANTAMWEIGHT(9, "Banta...
24.405405
52
0.655592
d1e9567c581fe9121b72b5eae30ae069e3549b32
450
package com.javarush.test.level14.lesson06.home01; public class BelarusianHen extends Hen { @Override String getDescription() { return super.getDescription() + String.format( " Моя страна - %s. Я несу %d яиц в месяц.", Cou...
23.684211
120
0.544444
c9b20623ac09a277d3d729a874644c21ba61cf34
1,974
package net.seesharpsoft.spring.data.domain; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.util.Assert; public class OffsetLimitRequest implements Pageable { private final long offset; private final int limit; private final So...
26.32
126
0.615502
2575976441a2e11e1733d7f63a6ed6877e932683
5,455
package com.example.jay3165.garglibrary; import android.app.ProgressDialog; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import andr...
45.840336
554
0.610816
77ccda1e1fcdc0caadef05dd0fd1251546a8b414
4,966
package com.example.android.tourguideapp; // TODO: Update coordinates import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Adap...
40.373984
153
0.682843
8798c57b24454fcc04653cc7f6650c4800e77af4
1,365
package org.tus.servlet.upload; import javax.servlet.http.HttpServletRequest; /* A single instance of the datastore will be created. */ public interface Datastore { /* Initialize the datastore service */ public void init(Config config, Locker locker) throws Exception; /* Return list of extensions supported...
22.75
82
0.740659
b6021772755b1d79666ececa759338feaa685099
4,220
package edu.washington.cs.detector.guider; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; import com.ibm.wala.classLoader.IClass; import com.ibm.wala.classLoader.IMethod; import com.ibm.wala.ipa.callgraph.CGNode; import edu.washington.cs.detector.util.Util...
35.166667
114
0.688152
b2a9caa8bcba2439d167d4151eba38a17411e897
1,744
package com.aopphp.go.index; import com.intellij.psi.util.PsiTreeUtil; import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocComment; import com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag; import com.jetbrains.php.lang.psi.PhpFile; import com.jetbrains.php.lang.psi.elements.Function; import com....
36.333333
114
0.686927
ffeb1aa6e392616cac4d63fa3e4acc603a699008
1,242
package controller; import java.text.NumberFormat; import java.util.Locale; public class Ex_6 { public static void main(String[] args){ Locale.setDefault(Locale.FRANCE); NumberFormat f = NumberFormat.getCurrencyInstance(); double valor = 123456.789; System.out.println(f.format(valor)); Locale.setDefau...
29.571429
55
0.752013
759966f1667d42fdc5379aeedf0fac4047884c12
14,188
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
64.490909
204
0.527629
ac1d0c1b1117c62bddcb4f69d623fc078631f71d
1,410
package com.commercetools.api.models.me; import java.time.*; import java.util.*; import java.util.function.Function; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; import io.vrap.rmf.base.client.utils.Generated; @Generated(value = "io.vrap.rmf.codegen.rendring.CoreCo...
30.652174
120
0.748936
0511c2c2922b6c26721ebd30768540a6ae4a7a3c
1,005
package com.zhl.userguideview; import android.app.Activity; import android.content.Context; import android.util.DisplayMetrics; /** * * des:测量工具类 * Created by xsf * on 2016.08.11:59 */ public final class MeasureUtil { public static final int RATION_WIDTH = 0; public static final int RATION_HEIGHT = 1; /** ...
22.333333
92
0.699502
2ae86c0a8d8c6875dc5fb90077480b3d8788b425
2,425
package edu.utah.bmi.nlp.easycie; import edu.utah.bmi.nlp.core.Interval1D; import edu.utah.bmi.nlp.core.IntervalST; import edu.utah.bmi.nlp.type.system.ConceptBASE; import org.apache.uima.analysis_component.JCasAnnotator_ImplBase; import org.apache.uima.analysis_engine.AnalysisEngineProcessException; import org.apache...
36.19403
125
0.647835
77d2dab953357e64bf5a91a574facf0a6845a576
235
package com.elopez.almacen.core.models.dao; import com.elopez.almacen.core.models.entity.Producto; import org.springframework.data.jpa.repository.JpaRepository; public interface IProductoDao extends JpaRepository<Producto, Long> { }
29.375
69
0.829787
a124ad2691c36bca4620c086f5ab26bfa915fbc1
19,603
package Nuskin; import java.math.BigDecimal; import java.math.RoundingMode; import java.time.LocalDate; import java.time.YearMonth; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHas...
24.412204
131
0.652247
50b098bcb5e100ad50e3c3198ebf21abb7daa2a1
1,744
/** * Copyright (C) FuseSource, Inc. * http://fusesource.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
29.559322
97
0.692661
a7afc0c504a481aaba30c0ea88b729e464851055
2,522
/* * 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 FXMLS.FINANCIAL.CLASSFILES; import javafx.beans.property.SimpleStringProperty; /** * * @author Gilbert */ public class Dis...
34.547945
79
0.629659
946d17c57e8a33923a6050703494b286fa2c62b2
1,812
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache....
39.391304
118
0.732892
31652dab17904ce5c428cb3c78c6e1240dbae784
1,517
/* * 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 me.zero.tls.proplan.gui.controller; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import m...
28.092593
85
0.60646
cece4e7c5089c320bcac0de018b024a82902ab02
505
class ProxyVerticalTrapezoidVertex { public VerticalTrapezoid t = null; public Vertex v = null; public ProxyVerticalTrapezoidVertex(VerticalTrapezoid t) { this.t = t; } public ProxyVerticalTrapezoidVertex(Vertex v) { this.v = v; } public String toString() { if(t != null) return t.toString(...
18.035714
60
0.657426
333ec2fc473bc903e22e203d352bb3a51a0aa9c6
2,064
package com.github.datalking.web.mvc; import com.github.datalking.util.Assert; import com.github.datalking.util.ClassUtils; import java.util.Collection; import java.util.LinkedHashMap; import java.util.Map; /** * 定制map用来存放string -> Object * * @author yaoo on 4/26/18 */ public class ModelMap extends LinkedHashMap...
27.157895
109
0.635174
8647865b8c3fe25948937a9d48dec85fd406decc
242
package com.catfish.ums.service; import com.catfish.ums.entity.domain.UmsMenu; import com.hisaige.dbcore.service.BaseService; /** * @author chenyj * 2020/5/23 - 18:54. **/ public interface UmsMenuService extends BaseService<UmsMenu> { }
20.166667
62
0.752066
b73c33c4ad43d7298c7de5028c353e09bc1d7b78
1,531
/* * #%L * Protempa Framework * %% * Copyright (C) 2012 - 2013 Emory University * %% * 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...
34.022222
78
0.745265
2ad3b0c8742f52b0b01b6af857e49b941e5b61d4
789
package com.onevgo.leetcode; public class Ex28StrStr { public int strStr(String haystack, String needle) { if (needle == null || needle.equals("")) return 0; char[] srcArr = haystack.toCharArray(); char[] destArr = needle.toCharArray(); for (int i = 0; i <= srcArr.length - destArr...
27.206897
67
0.470215
3cc00588c171bd0ffb38d9cc1da7afd10c169d67
2,816
/*************************GO-LICENSE-START********************************* * 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...
42.029851
132
0.742188
42c0104fe6368c08c434688c9ca6a7c82b9286eb
22
package A; class A{ }
5.5
10
0.636364
6fb9a106660c98a2791542e1607cbdae5f1e0c09
232
package grp2.fitness.Helpers; public class AccountHandler { private boolean isLoggedIn = true; public boolean isLoggedIn(){ return isLoggedIn; } public void logout(){ isLoggedIn = false; } }
14.5
38
0.637931
3fbdb58b493007ae2394aba10d79384715bc28ca
2,115
package com.tjnu.club.utils; import com.tjnu.club.constants.TJNUConstants; import com.tjnu.club.exceptions.TJNUException; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.mail.*; import javax.mail.Message.Recipie...
36.465517
232
0.658629
c09ae2c089a49de4122f4558f3e43d6068711c34
409
package com.joelzhu.bindview.annotations; import androidx.annotation.LayoutRes; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interf...
25.5625
44
0.797066
6e482d24d63ab1de880b0eb4ff86e41083316446
2,139
package chronosacaria.mcdw.mixin; import chronosacaria.mcdw.bases.McdwAxe; import chronosacaria.mcdw.bases.McdwCustomWeaponBase; import chronosacaria.mcdw.enchants.EnchantsRegistry; import chronosacaria.mcdw.enums.DaggersID; import chronosacaria.mcdw.items.ItemsInit; import net.minecraft.enchantment.Enchantment; impor...
38.196429
140
0.742403
e444acb426fb30a1a853bdc743fa4f52a5884626
2,100
/* * $# * FOS R implementation *   * Copyright (C) 2013 Feedzai SA *   * This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU * Lesser General Public License version 3 (the "GPL License"). You may choose either license to govern * your use of this software only upon ...
31.818182
109
0.704762
22f8bb746e82de52eebf971d342d9a81d54171b7
14,294
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ilm; import com.carrotsearch.hppc.cursors.Obj...
45.961415
138
0.664754
3ec2648c2eeceb7c813cc3ca3d9f3e615634646d
2,911
package de.dfki.nlp.chemspot.amqp; import static de.dfki.nlp.domain.PredictionResult.Section.T; import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import org.springframework.amqp.rabbit.annotation.Queue; import org.springf...
31.641304
103
0.698042
d0c4f03f3d98a391643ab2473cec4775861f32be
4,852
/* * Copyright 2014 Oleksiy Voronin <ovoronin@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
29.053892
119
0.605523
d91fc15396eb992b7fde90177f8f1976b1cd527c
1,466
package ictk.boardgame.chess.io; import java.net.URISyntaxException; import java.net.URL; import java.io.*; import junit.framework.TestCase; /** * Parent class for the PGN tests. */ public abstract class AbstractPGNTest extends TestCase { public AbstractPGNTest(String name) { super(name); } /* ...
28.745098
124
0.621419
e578148a48e5711f9d43dbdf5d999e112ddb3608
4,606
package rocks.appconcept.testing.perf; /** * Created by imeta on 18-Dec-16. */ import java.lang.management.ManagementFactory; import java.lang.management.OperatingSystemMXBean; import java.lang.management.ThreadMXBean; import java.util.HashMap; import java.util.Map; /** CPU usage monitor in pure Java Goal: ...
28.968553
227
0.597916
acab2b6a3cc8e764057d0d50e4555f0af9fe25e3
556
package com.icepoint.base.web.entp.service; import com.icepoint.base.api.entity.QueryCondition; import com.icepoint.base.web.basic.service.CrudService; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import java.util.List; @Transactional...
30.888889
82
0.814748
243ff564b8e7b7f8cc092e5dcf70c62c2114ab0b
415
package chapter21.part2.section2.practice1; /** * @author xuyong * @since 2019-03-21 00:01 **/ public class Practice1 implements Runnable { public Practice1() { System.out.println("started"); } @Override public void run() { for (int i = 0; i < 3; i++) { System.out.print...
18.863636
44
0.544578
72d955e9e277a90388b426013fdf776e42ed6b5c
648
public class HeapSortThread extends Thread { private int[] inputData; private int[] result; public void run(){ try { this.result = HeapSort.sort(inputData, inputData.length); } catch(ThreadDeath td) { // timeout this.result = null; System.out.println(toString() + "Timed out"); System.out.println...
19.058824
60
0.666667
78db8364b0849d2a2978e2fbf9478116bdd428f6
1,726
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * li...
34.52
135
0.72248
f684b9b74bf9d68a8d3f38e12d1c5907031df331
1,009
package br.com.zupacademy.vinicius.casadocodigo.livro.detalhar; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariab...
29.676471
69
0.80773
89ec5a8ec9a5c766345bdbb2401d64476cb137d9
923
package cn.fantasticmao.pokemon.web.repoistory; import cn.fantasticmao.pokemon.web.SpringTest; import cn.fantasticmao.pokemon.web.domain.Ability; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import javax.annotation.Resource; import java.util.List; /** * AbilityRepositoryTest * * @au...
26.371429
73
0.725894
e11102342e9d219855eb5075bb12f74c40f07d67
407
package com.roxiemobile.networkingapi.network.rest.response.error.nested; public class ConnectionException extends Exception { // MARK: - Construction /** * Construct a new instance of {@code ConnectionException}. */ public ConnectionException(Throwable cause) { super(cause); } // MARK:...
22.611111
73
0.717445
e12ae3a8bc6d99f15d27c7341c66f15efab9dd67
304
package com.concurnas.lang.precompiled; import java.util.ArrayList; public class HoldingAStaticVarWithNonFinal { public static final int CL_INVALID_VALUE = -30; public static int CL_INVALID_VALUE2 = 100; public int getInvalidValue() { return HoldingAStaticVarWithNonFinal.CL_INVALID_VALUE; } }
25.333333
56
0.805921
783f844a31c3aec0770955ac8e2e0db00d219050
1,748
package pl.edu.agh.to.busregistration.admin.routes; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import pl.edu.agh.to.busregistration.admin.buses.Bus; import java....
27.746032
81
0.686499
ca1c0bead318a05c2dc13b90eb9e578fdf1ca5d6
16,117
/* * Copyright 2013 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 applicabl...
39.697044
172
0.727431
1147d95260f72d92715fb574ccd2f683932c327f
2,299
package com.xiaochu.dao; import java.util.List; import java.util.Map; import org.hibernate.Criteria; import org.springframework.stereotype.Component; import com.base.dao.BaseDao; /** * @author zhaodongchao * 2016年9月16日 */ @Component public class UserEntityDao extends BaseDao{ /** * 查询系统中所有的角色 * @return ...
45.078431
168
0.686385
bd59ec32379fd8f2e055841519f2f5391c87c2c1
495
package com.lajospolya.spotifyapiwrapper.response; import java.util.List; /** * @author Lajos Polya * Represent the response of GetRecommendationGenres as described at * https://developer.spotify.com/documentation/web-api/reference-beta/ */ public class RecommendationGenres { List<String> genres; ...
20.625
71
0.662626
7a395f31c261643728a8239e4967055b789ff837
6,893
/* * __ .__ .__ ._____. * _/ |_ _______ __|__| ____ | | |__\_ |__ ______ * \ __\/ _ \ \/ / |/ ___\| | | || __ \ / ___/ * | | ( <_> > <| \ \___| |_| || \_\ \\___ \ * |__| \____/__/\_ \__|\___ >____/__||___ /____ > * \/ \/ ...
24.617857
78
0.605977
90ba959a094fb87e00ce49ec90ab555774264810
652
package wicket.in.action.chapter13.dbdiscounts.web.model; import java.util.Iterator; import org.apache.wicket.markup.repeater.util.ModelIteratorAdapter; import org.apache.wicket.model.IModel; import wicket.in.action.chapter13.dbdiscounts.domain.DomainObject; public class DomainModelIteratorAdaptor<T> extends Mo...
26.08
67
0.782209
f1e908cb046fcc1b8268bc1fcd53da6bcdb1088f
1,540
/* * Copyright (c) 2015. Zuercher Hochschule fuer Angewandte Wissenschaften * 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...
26.551724
84
0.664286
d9dfdfbcb91fa133a516fb2358ee28d61e5d4efb
1,570
package model; import javafx.beans.property.IntegerProperty; import javafx.beans.property.SimpleIntegerProperty; /* GameObject * This class represent all of the object present in the scene * (Tiles, Player, Enemy, Item Drop) */ public abstract class GameObject { private int id; private IntegerProperty coord...
23.432836
93
0.657325
7b013c66c7648f78ca5b8382d7843ef4ad440932
566
package com.tuling.dynamicproxy.anno; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * Created by smlz on 2020/3/31. */ public class AngelProxyInterceptor { private Object targetObj; public AngelProxyInterceptor(Object targetObj) { this.targetObj = targetObj; } pu...
21.769231
110
0.765018
9924a850963f4f36e3043a7dc38ef8b52909b019
502
package io.flowing.retail.order_validation.dto; public class Item { private String articleId; private int amount; public String getArticleId() { return articleId; } public void setArticleId(String articleId) { this.articleId = articleId; } public int getAmount() { return amount; } pub...
20.08
71
0.665339
098dbff42a35c32574124375585862a9fc70a6b8
2,250
/* * Copyright 2019 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 a...
33.58209
78
0.742667
7bfeeacfefc5570623b4c595b26107d4b1d90bb3
1,133
package processing.utility; import java.util.Date; /** * Class Representing a Timestamp * * @author Ahmed Zaheer Dadarkar * @reviewer Himanshu Jain */ public class Timestamp implements Comparable<Timestamp> { /** Timestamp is internally stored as a Date */ private Date date; /** * Timestamp Constructor ...
17.703125
57
0.669903
2e5c75a58fb35f20c1084f6400abb64a090566a0
330
package com.saimon.Stock.portfolio.Database.Repository; import com.saimon.Stock.portfolio.Database.Model.Balance; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; public interface BalanceRepository extends JpaRepository<Balance, Long> { Optional<Balance> findTopByOrderById...
30
73
0.827273
073c0bbe2d438d492b66c3c16e2d91b6567c973e
726
package org.jboss.seam.examples.seamcrm.core; import javax.enterprise.context.Conversation; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.inject.Named; import org.jboss.solder.logging.Logger; @RequestScoped @Named public class ConversationManagement { @Inject...
20.166667
88
0.69146
8da865ad6989b8445d5f47923abd76b40441c14a
1,509
package org.infinispan.it.endpoints; import static org.infinispan.commons.dataconversion.MediaType.APPLICATION_OBJECT_TYPE; import java.io.IOException; import org.infinispan.client.hotrod.RemoteCacheManager; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.infinispan.configuration.cache.Ind...
32.106383
105
0.756793
120d65b3f50632ab391000bed3af8854786fa497
11,108
/* * Copyright 2016-2017 Luca Zanconato * * 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 ag...
30.855556
97
0.57238
cff13d370cb80ad433a0516c3ce668c311d1a88a
2,372
package org.allenai.ml.classification; import com.gs.collections.api.tuple.primitive.IntObjectPair; import lombok.RequiredArgsConstructor; import org.allenai.ml.linalg.Vector; import org.allenai.ml.math.SloppyMath; import org.allenai.ml.objective.ExampleObjectiveFn; @RequiredArgsConstructor public class MaxEntObjecti...
41.614035
103
0.650506
fb4d13dd92340ba3fad004d89784aa6c26ecc316
3,677
/** * Copyright (c) 2015-2018, CJ Hare 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 conditions * a...
26.078014
100
0.727223
30f89ff234cf1cfa78a0b025e08f167b8ba5d4b2
1,537
package me.violinsolo.testlibsapp.activity; import android.os.Bundle; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import me.violinsolo.testlibsapp.R; import me.violinsolo.testlibsapp.base.BaseActivity; import me.violinsolo.testlibsapp.databinding.ActivityTestGifBinding; ...
26.5
136
0.696812
0d19d4a5a49052f99b3c250b1cf31c3b9bc8cf93
11,943
/* * Copyright 2016-2018 Crown Copyright * * 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 a...
34.517341
255
0.614753
01376e2d11db610e4b798da01d5d3c5a73f7bc22
3,179
package com.cmu.smartphone.allavailable.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.cmu.smartphone.allavailable.R; im...
28.132743
86
0.647688
c6a544922585f5f0ccc1b2690539a7dc634851a2
252
package org.shaolin.javacc.sql.node; public abstract class OQLSimpleField implements IOQLExpressionNode { public boolean isCategoryField() { return false; } private static final long serialVersionUID = 2291418435386989200L; }
21
70
0.746032
55090e7b3530899c803397700fb3803ee721f950
7,118
package io.split.client; import io.split.TestHelper; import io.split.client.dtos.Split; import io.split.client.dtos.SplitChange; import io.split.engine.common.FetchOptions; import io.split.engine.metrics.Metrics; import io.split.telemetry.storage.InMemoryTelemetryStorage; import io.split.telemetry.storage.TelemetryRun...
50.842857
165
0.737567
7977e0d348bdb72d6e2ef8a484a7e26298cf8b13
2,296
package org.statemach.db.schema; import java.util.Objects; import org.statemach.db.jdbc.Vendor; import org.statemach.db.sql.SchemaAccess; import org.statemach.util.Java; import io.vavr.Tuple2; import io.vavr.collection.HashMap; import io.vavr.collection.List; import io.vavr.collection.Map; public class Schema { ...
33.275362
91
0.607578
5c2fb1aedfda4c6f5b43fa4741acc723469949de
1,501
package com.gentics.mesh.core.data.root; import com.gentics.mesh.core.data.Project; import com.gentics.mesh.core.data.Release; import com.gentics.mesh.core.data.User; /** * Aggregation vertex for Releases. */ public interface ReleaseRoot extends RootVertex<Release> { public static final String TYPE = "releases"; ...
21.442857
120
0.648901
59f5a3f5b59abc73a400edb5b93f5d7d71f1392d
387
package kr.co.popone.fitts.di.component; import dagger.android.AndroidInjector; import kr.co.popone.fitts.feature.coupon.CouponUseConfirmActivity; public interface CouponUseConfirmActivityComponent extends AndroidInjector<CouponUseConfirmActivity> { public static abstract class Builder extends dagger.andr...
35.181818
116
0.819121
c004e516968a66bd3828731972acc5a528fe4d77
2,742
package io.github.kavahub.learnjava.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import org.apache.comm...
32.642857
126
0.615244
12cf2384b96fb7643bfb0b0a01cd3101811137a1
343
/* (c) British Telecommunications plc, 2010, All Rights Reserved */ package com.bt.pi.ops.website.exception; import org.junit.Test; import com.bt.pi.ops.website.exception.CannotCreateException; public class CannotCreateExceptionTest { @Test public void canInstantiateCannotCreateException(){ //act new CannotCre...
22.866667
67
0.77551
29d09e22da61db7cc1adb4522908ae1411ad0ad0
673
package com.lindar.realvault.client.model.internal; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import lombok.AllArgsConstructor; import lom...
28.041667
70
0.821694
00fc0ac274666e34ba99b26c1a9d6ddd3bfbf33c
3,098
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
53.413793
224
0.757908
e176e07dafa27bd5c45f4612fb860af6d1ebacca
2,674
package im.heart.material.service.impl; import java.math.BigInteger; import java.util.Collection; import java.util.HashSet; import java.util.List; import com.google.common.collect.Sets; import im.heart.core.service.impl.CommonServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.sprin...
40.515152
142
0.829469
bd56e1a0e2f2e0cbc8d41e772fa25b32e1942b81
2,230
package experimental.trees; public class SegmentTreeIntervalAddSum { int n; int[] tsum; int[] tadd; public SegmentTreeIntervalAddSum(int n) { this.n = n; tsum = new int[4 * n]; tadd = new int[4 * n]; } void push(int node, int left, int right) { tsum[node] += tadd[node] * (right - left + 1); if (left ...
22.755102
90
0.544843
b28f91822d2741eb1fdd8a4e8f6411876f3fc37d
2,030
package service; import java.util.List; import com.pojo.Repertory; import common.Assist; public interface RepertoryService{ /** * 获得Repertory数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null * @param assist * @return */ long getRepertoryRowCount(Assist assist); /** * 获得Repertory数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则...
22.065217
114
0.706897
268f6bb8015edefa0f2ca0a7a30bcca7ff81bcda
3,423
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
29.508621
78
0.685364
fbe291c3ae57a58bf2ed7e1d917a96511b317dcc
1,740
/** * 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 "LICENSE.TXT" file accompanying this file. This file is distributed on an "AS IS" * B...
34.8
94
0.736207
0328f6907e98a4408d0af473d1a862559bc4e8c2
1,155
/*** * Excerpted from "Language Implementation Patterns", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose...
26.860465
83
0.690909
6c3708cef460656744219e4eeeba4a631fae5df0
2,466
/** * 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.938462
83
0.725872
c14c90565df522ee5368a44fb8efcd20ce6f8ace
488
package me.philcali.device.pool.lock; import me.philcali.device.pool.exceptions.LockingException; import me.philcali.device.pool.model.LockInput; import me.philcali.device.pool.model.LockOutput; import java.util.Optional; import java.util.concurrent.CompletableFuture; public interface LockingMechanism { Completa...
28.705882
63
0.815574
047d975867ebd8025500b7881a2722756d608d41
1,835
package com.example.tetianapriadko.myapplication; import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class Lesson104_2 extends Fragment{ final String LOG_T...
25.84507
74
0.643597
0fde2f18a2876a6dff282ef6c47a200620769829
5,092
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference // Implementation, v2.2.11 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.11.10 at 01:13:...
26.941799
137
0.647486
d201430aa761bb1ad5ae2256b105857daabb7ed3
1,072
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.freebasicacc.ui.observer; import com.freebasicacc.util.DateUtil; import com.qt.datapicker.DatePicker; import java.util.Calendar; import java.util.Observable; import java.util.Observer; import javax.swing.JTe...
25.52381
90
0.702425
776cdd6e28312731431980d1cb56807bfc53c16a
4,565
package de.minecrafthaifl.nyanfighters; import com.minnymin.command.CommandFramework; import de.minecrafthaifl.nyanfighters.commands.NyanfightersCommands; import de.minecrafthaifl.nyanfighters.listeners.*; import org.bukkit.Bukkit; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity...
44.320388
163
0.562103
5c049bd2b7e85112ae34b9cbc9ee3c8bb44272b1
700
package com.periscope.qviz.json; import java.util.ArrayList; import java.util.List; /** * JSON Model for API Test Case Details */ public class TestCaseAPI extends TestCase { /** * List of Test Case Step Objects associated with the Test Case */ public List<TestCaseStep> testCaseSteps; /** * Lise of Test A...
18.918919
64
0.692857
21657dcb3f851227f43d90d33779af99950f3478
62
package io.qiot.covid19.datahub.collector.gas.service.station;
62
62
0.854839