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
db8b1b1e0515c10c48a256d533db14bd983914e6
5,324
/* * The MIT License * * Copyright 2021 Jayson Fong <contact@jaysonfong.org>. * * 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 ri...
32.463415
80
0.61157
c0b9e7231097bef3fd34985ddabff21355823520
1,870
package at.helpch.chatchat.format; import at.helpch.chatchat.api.Format; import org.jetbrains.annotations.NotNull; import org.spongepowered.configurate.objectmapping.ConfigSerializable; import java.util.Collections; import java.util.List; import java.util.Map; @ConfigSerializable public final class ChatFormat implem...
26.714286
119
0.65508
6fce11a5bbdb3c7a980333b4b3e8c2b3e3291e19
131
package org.bschlangaul.entwurfsmuster.beobachter.hauer_neutral; public interface Observer { public void update(int state); }
16.375
64
0.801527
017725101b7614588ef245065e8d6ada8d6fcc53
213
package sg.edu.nus.leaveapplication.util; import sg.edu.nus.leaveapplication.model.Credentials; public interface UserService { void save(Credentials user); Credentials findByUsername(String username); }
23.666667
53
0.793427
1869f426d1f2856582040592bce29e7379e9ac6e
36,540
package org.iets3.ears.gxw.editor; /*Generated by MPS */ import jetbrains.mps.nodeEditor.DefaultNodeEditor; import jetbrains.mps.openapi.editor.cells.EditorCell; import jetbrains.mps.openapi.editor.EditorContext; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.nodeEditor.cells.EditorCell_Collection...
58.464
402
0.775096
845bdf066cb4f2f1e4f3c2c0004001319d0e02f2
882
package com.yazid.demo.java.collection; import com.yazid.demo.java.collection.entity.Item; import java.util.SortedSet; import java.util.TreeSet; /** * Created by YazidChen on 2018/09/16 0016. */ public class TreeSetDemo { private static void sortedSet() { SortedSet<Item> parts = new TreeSet<>(); ...
26.727273
71
0.623583
73edc336b6637a490f864dff9b2e96ff8e770f69
3,172
package com.amee.platform.resource.unit.v_3_5; import com.amee.base.domain.Since; import com.amee.domain.unit.AMEEUnit; import com.amee.platform.resource.unit.UnitResource; import org.jdom2.Document; import org.jdom2.Element; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Se...
32.367347
103
0.671816
e020bac57df161e71f39f15989d6290d65c90656
14,573
package org.endeavourhealth.ui.endpoints; import org.endeavourhealth.core.database.dal.DalProvider; import org.endeavourhealth.core.database.dal.admin.LibraryDalI; import org.endeavourhealth.core.database.dal.admin.models.*; import org.endeavourhealth.core.xml.QueryDocument.QueryDocument; import org.endeavourhealth.co...
43.115385
203
0.667124
8ae08ee18ef5919dbbb7672130fdf406dca37183
1,898
package com.enhalo.juc.example; public class TestClerk { public static void main(String[] args) { Clerk clerk =new Clerk(); Product product = new Product(clerk); Consumer consumer = new Consumer(clerk); new Thread(product, "生产者A").start(); new Thread(consumer, "消费者B").star...
19.978947
83
0.503161
ee32dca82ec3f7c233694c4ebe04d077beec0ac4
2,556
package uk.co.harrymartland.multijmx.domain.optionvalue.order; import com.google.inject.Inject; import org.apache.commons.cli.Option; import uk.co.harrymartland.multijmx.domain.JMXConnectionResponse; import uk.co.harrymartland.multijmx.domain.ValidationException; import uk.co.harrymartland.multijmx.domain.optionvalue....
39.323077
127
0.754695
a449adbf21cbe5a664c86b8dd0410ccc592c157f
416
package com.google.sitebricks.core; import com.google.sitebricks.rendering.With; import com.google.sitebricks.rendering.EmbedAs; /** * @author Dhanji R. Prasanna (dhanji@gmail com) */ @EmbedAs("Case") @With("When") public class CaseWidget { private Object choice; public Object getChoice() { return ...
19.809524
48
0.680288
1e01403562cc397013e6cb0984f0dcde75cf134e
8,870
package kore.botssdk.view; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RatingBar; import...
36.652893
183
0.654002
1b0138492857090a7cca5f534db64dacdff42263
8,946
/******************************************************************************* * Copyright (c) 2008 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at...
42.198113
131
0.703555
3bdd4188dd8e1b877801136a31516dea887fb422
973
package com.leyou.config; import com.leyou.order.interceptor.LoginInterceptor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotati...
33.551724
81
0.797533
8970a011eca149341ad4f4f0d58355fcf27066d2
254
package com.datahub.test.testing.urn; import com.linkedin.data.template.Custom; public class BarUrnCoercer extends BaseUrnCoercer<BarUrn> { private static final boolean REGISTER_COERCER = Custom.registerCoercer(new BarUrnCoercer(), BarUrn.class); }
28.222222
108
0.811024
272684dacd36f95f7ff6db85534ed1175725c6a9
2,240
package com.meti.feature.type.primitive; import com.meti.content.Content; import com.meti.feature.render.Field; import com.meti.feature.render.Type; import com.meti.util.Monad; import java.util.Optional; import java.util.function.Function; import java.util.stream.Stream; public enum PrimitiveType implements Type { ...
21.132075
101
0.598661
e2fb792534f1a21cf28798b7a15168a9a2abfac9
2,497
/* * 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.015625
91
0.745695
f34bc0ad026c19db6e0f83743a13dbd517064e3c
869
package generic; import java.util.Set; /* * 定义泛型类,T代表实际操作的类型。指明了操作类型后,定义的CRUD方法都是针对于指定的类型 */ public class GenericDAO<T> { private T field; // 泛型类型的成员变量 public <T> void add(T x) {} public <T> T findById(int id) { return null; } public void delete(T x) {} public void delete(i...
25.558824
97
0.629459
eb6f397b9ac151c8fc78e66abdcf86799b1b7613
5,439
/* * Copyright 2014 Monmonja. 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 by applicab...
37.253425
127
0.68303
18d4f201b395d8e2a43052dae9762284b19a4d4a
3,071
/* * Copyright 2018 Netflix, 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 t...
46.530303
216
0.776294
cf2edc18a914db2a5da8bd31f5752adea89fa100
2,631
package org.spark.gui.applet; import java.awt.Dimension; import java.lang.reflect.Method; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.xy.DefaultTableXYDataset; import org.jfree.data.xy.XYSeries; import org.w3c.dom...
24.137615
87
0.677309
519a1b1abc615f6975bbb92cc518f34b114da5de
33,751
/* * Copyright (c) 2020, Luis Felipe Sosa Alvarez. All rights reserved. * Use is subject to license terms. * * GESOFT-WORKFLOW-BACKEND */ package cl.com.gesoft.workflow.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import org.springframework.data.a...
19.187607
88
0.557643
087c61432e9c3f4b97f177e990400dc11721e6ac
2,999
package com.ztgm.base.service.impl; import net.sf.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springf...
22.548872
76
0.697899
c7b23ff53575086131c01c4ce68fab82bcb3da79
2,095
package com.github.kaiwinter.user.view; import static org.junit.Assert.assertEquals; import java.io.File; import java.util.List; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquillian.drone.api.annotation.Drone; imp...
33.790323
98
0.702148
8acebcefa25cb4e7fe69ce90fb9a3603aaf460d3
756
package double_example.restrictions; import hu.unideb.czty.analyzer.core.Analyzer; import hu.unideb.czty.analyzer.parsers.classes.AnalyzerElement; import hu.unideb.czty.analyzer.restrictions.core.RestrictionHandler; import java.lang.annotation.Annotation; import java.util.Arrays; import java.util.List; public class ...
34.363636
104
0.740741
a57f4a10a7421029caf72bff9b04ad399ead0217
1,732
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
30.928571
154
0.733834
ba8da340e60270f1726a8d936be8e70ea5568b24
3,214
package ch.heig.gamification.entities; /** * File : RuleAwardsEntity.java * Authors : Jee Mathieu, Kopp Olivier, Schürch Loïc * Last modified on : 29.12.2018 * * Description : RuleAwards entity store in the database. It contains all information about the awards to give to the user * when an event fulfilled the r...
28.696429
122
0.673304
1a38b8ed74a528e8cf2b162eef0bba7debafa955
1,812
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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...
25.885714
75
0.686534
c2a510f1bd9e5aa9b816004e9b948494409e8673
192
package pers.auly.cmcwip.utils.exceptions; public class BadRequestException extends CmcWebException { public BadRequestException() { reason("Request param error. "); } }
21.333333
58
0.708333
520b29965909fc3f4853fc94219b40cea0b47395
14,852
package de.marcermarc.chunkloader.listener; import de.marcermarc.chunkloader.Messages; import de.marcermarc.chunkloader.Util; import de.marcermarc.chunkloader.controller.PluginController; import org.apache.commons.lang.StringUtils; import org.bukkit.Chunk; import org.bukkit.Material; import org.bukkit.command.CommandE...
43.940828
149
0.555615
d8a821181028d681028cc8ac15ce4024e3e96f9d
804
import java.nio.ByteBuffer; //slice buffer public class NioTest6_SliceBuffer { //0 //1 //4 //6 //8 //10 //6 //7 //8 //9 public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); for (int i = 0; i < buffer.capacity(); i++) { ...
19.142857
58
0.49005
31be1b7404a2417424b7439311b46c516b70db5e
3,289
package ru.skycelot.bencode; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; /** * */ public class Bencode { public static Object decode(InputStream is) throws IOException { if (!is.markSupported...
29.106195
91
0.508969
7384d30936ad969881d9af9faa67f361db02e387
111
package person.me.epitomize.coreJava.inherit; public class Employee { public Employee(String x) { } }
15.857143
45
0.711712
2540d797165df98bf665b866355fb93a4dd9237b
16,218
package com.spawpaw.mybatis.generator.gui.util; /** * Copyright 2006-2017 the original author or authors. * <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....
43.248
136
0.61888
880f6e385f35079b47e3d755675945f9a2e1f498
2,207
/* * Copyright 2016 Johan Viklund, NBIS, https://www.nbis.se * * 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...
25.964706
82
0.608065
644e7ef4501162e7b6ceac36c26abbc47cc3f53c
5,046
package net.lcec.ftc.stringy; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import net.lcec.ftc.stringy.Sample; /** * <h1>Command</h1> * This version uses <code>String<code>s for the property values. * The result is a more descriptive structure, but less flexibility for different * typ...
32.554839
117
0.675981
38645509b921e830951a5164bc9e68c1bdab5b3f
620
package cn.programingmonkey.Exception.type; /** * Created by cai on 2017/3/31. */ public enum FRAMING_EXCEPTION_TYPE { FRAMING_EXCEPTION_IMAGE_UPLOAD_FAIL(-1101,"图片上传失败"), FRAMING_EXCEPTION_IMAGE_SAVE_FAIL(-1102,"图片保存失败"), FRAMING_EXCEPTION_IMAGE_UNRECNIZE(-1103,"图片无法识别"), FRAMING_EXCEPTION_CLASSIFY...
20.666667
59
0.666129
b29cc1dd84fc606785ba256e8ba0d16386a8203d
446
package top.tocome.webstore.store.goods; /** * 淘宝商品详情页 //item.taobao.com * 淘宝图片api格式: * //img.alicdn.com/??/O1CN01GoprA71e9jCdSFgeX_!!3407743829.jpg_430x430.jpg * ??:任意,一般为图片信息 * .*?jpg:图片名称 * _430x430.jpg:图片大小430x430(选填,不填为原图大小) */ public class TaoBaoGoods extends Goods { public static final String head =...
24.777778
75
0.668161
373956c160007265c54168a4ed756a3572fb102f
1,071
package jp.co.worksap.oss.findbugs.jpa; import static com.youdevise.fbplugins.tdd4fb.DetectorAssert.assertBugReported; import static com.youdevise.fbplugins.tdd4fb.DetectorAssert.assertNoBugsReported; import static com.youdevise.fbplugins.tdd4fb.DetectorAssert.bugReporterForTesting; import org.junit.Before; import or...
30.6
82
0.819795
1b699e72233090ee9f113ef433a5e29ead7766a4
9,667
/* * JBoss, Home of Professional Open Source * Copyright 2016, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
34.038732
156
0.680149
a311f1a9ec797a2bbcd43676e66710677a8781d3
2,578
/* * Copyright (c) 2020 BlackBerry Limited. * * 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...
36.828571
144
0.692785
db073780deb99da45e59f17c55451b79a8d2d02f
676
package net.virtualinfinity.nio; import java.nio.channels.SelectionKey; /** * A selection key handler that can specify what its interested in. * * @author <a href='mailto:Daniel@coloraura.com'>Daniel Pitts</a> */ public interface SelectionKeyActions extends SelectionKeyHandler { /** * The interested ops ...
24.142857
70
0.674556
3366cef1c54dc32d608e6513022eb5f02861eff0
1,017
package dsf.algorithm.leetcode.weekly.c201; /** * * * @author 董少飞 * @version 1.0 * @since 1.0, 2020/8/9 10:50 */ public class P1545 { public char findKthBit(int n, int k) { // StringBuilder sb = new StringBuilder("0"); // for (int i=1; i<n; i++) { // sb.append("1"); // } // ...
19.557692
54
0.444444
592d81449f22122d5e42445bc19ea598e8ddae56
1,557
package com.tianxiaobo.misc; import static com.tianxiaobo.Util.less; import static com.tianxiaobo.Util.swap; /** * MaxHeap * * @author Tian XiaoBo * @date 2019-02-19 12:50:52 */ public class MaxHeap<T extends Comparable<T>> { private T[] heap; private int N; public MaxHeap(int len) { heap ...
19.708861
56
0.432884
464e1d6fa6075edab0c614bc213d367fd80fc454
3,971
/* * 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...
65.098361
177
0.81239
92e67c2a5c5505f05a0041edfd383a8edd636549
12,814
// Copyright (c) 2011-2012, David H. Hovemeyer <david.hovemeyer@gmail.com> // // 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 /...
32.772379
132
0.708444
d0980c0ee2658768f83b8e7e8768a337c0b3727c
276
package com.example.bounswegroup2.Models; /** * Created by Enes on 20.12.2016. */ import java.io.Serializable; /** * The type Tag response. */ public class TagResponse implements Serializable { private final static long serialVersionUID = -1053540951359164544L; }
16.235294
71
0.735507
e426d0c25e43bad329ddf41bf5938295914f60dc
1,809
package com.example.android.miwok; /** * Created by mhasan on 5/24/2017. */ public class Word { private String mDefaultTranslation; private String mMiwokTranslation; private int mImgResourceId =NO_IMAGE_PROVIDED; private int mAudioResourceId; public static final int NO_IMAGE_PROVIDED=-1; ...
25.842857
88
0.632946
edd64c6f96a2862d910a407a527505778991e4c8
2,561
/** * Copyright (c) 2009, Signavio GmbH * * 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, pu...
33.697368
112
0.759078
82c3f98f199b310573340c84ac70c1a79a9d0adc
7,301
// Buddy Fetcher: simple RSS-fetcher/aggregator. // Copyright (c) 2021 Buddy Lancer. All rights reserved. // Author - Buddy Lancer <http://www.buddylancer.com>. // Licensed under the MIT license. package Bula.Objects; import Bula.Meta; import java.util.Enumeration; import Bula.Internal; import Bula.Objects.Regex; im...
30.676471
95
0.578277
ebcf11f3477e7772516594835f2ea9e958fbeab5
2,910
import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; public class JOptionPaneDemo { public static void main(String args[]) { // Create an array for annual interest rates Object[] rateList = new Object[25]; int i = 0; for (double rate = 5; rate <= 8; rate += 1.0 / 8) { ...
31.290323
76
0.673883
d1ce35e43b67f80a65e282a813e795cacbad8243
1,440
package org.jkiss.jdbc.cassandra.types; import org.jkiss.jdbc.cassandra.CassandraStruct; import java.nio.ByteBuffer; import java.sql.Types; /** * Cassandra struct. * Contains row columns */ public class JdbcStruct extends AbstractJdbcType<CassandraStruct> { public static final JdbcStruct instance = new JdbcS...
16.179775
67
0.613194
15cf8a2c882431bd4f60ac027cee72123e48754e
623
package com.leetcode.algorithm.medium.foursumii; import java.util.HashMap; import java.util.Map; class Solution { public int fourSumCount(int[] a, int[] b, int[] c, int[] d) { Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < a.length; i++) { for (int j = 0; j < b.length; j++) { ...
22.25
63
0.505618
acefe9501ba188697b935606cdde20f90de838e4
1,688
import java.io.*; import java.util.*; public class f{ static int N, a[], occ[]; public static void main(String args[]) throws IOException{ BufferedReader eat = new BufferedReader(new InputStreamReader(System.in)); PrintWriter moo = new PrintWriter(System.out); N = Integer.parseInt(eat...
27.225806
82
0.346564
5ad2e79a33ce82c9e825663f646a03f69064498e
1,841
package com.jenetics.smocker.util; /** * Used to parse special system properties * * @author igolus * */ public class SystemPropertyConfiguration { // private static final String SMOCKER_CLIENT_HOST = "SMOCKER_TARGET_HOST"; // private static final String SMOCKER_TARGET_PORT = "SMOCKER_TARGET_PORT"; ...
32.298246
77
0.703422
dc80d8dcab640201a24256efc022d442bccfcd7e
1,811
package shapes; import java.awt.Color; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.awt.image.Raster; import org.junit.Test; import static shapes.Fixtures.*; public class TestDraw { public static void assertEquals(final BufferedImage i1, final BufferedImage i2) { final Raster u ...
30.183333
84
0.631143
aa18f30c2079cf5bf763cb3fbd0f61baffae1994
1,236
package com.dlohaiti.dlokiosk.domain; import java.math.BigDecimal; public class Discount { private final String sku; private final Money amount; public Discount(String sku, Money amount) { this.sku = sku; this.amount = amount; } @Override public boolean equals(Object o) { ...
25.22449
101
0.559871
610a2dee17c72197a18ad1e5fe8c12854a4d4dd9
2,226
package com.bytehamster.drawingpad; import java.awt.image.BufferedImage; public class ImageUtils { private static final int MIN_PADDING = 20; private ImageUtils() { // Utility class } static BufferedImage trim(BufferedImage input) { int topPadding = 0; while (topPadding < inp...
33.727273
95
0.575022
ceba6983c887a6d86c0199b1667e515dadcc7f6b
673
package org.ko.concurrency.example.cache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; // http://redis.cn/ @Component public class RedisClient { @Autowired private Jedis...
21.709677
65
0.676077
eee546d23060cd86fb6ff8201fd18a9bc4ff3127
1,849
/* * Copyright (c) 2015-2016 Vladimir Schneider <vladimir.schneider@gmail.com>, all rights reserved. * * This code is private property of the copyright holder and cannot be used without * having obtained a license or prior written permission of the of the copyright holder. * * Unless required by applicable law or...
40.195652
105
0.77285
0bda70c4dba300d381469ce63143fac33d06721d
258
int connectedComponents() { int a = 0; boolean[] visited = new boolean[V]; for (int v = 0; v < V; ++v) { if (!visited[v]) { DFSUtil(v, visited); a++; // System.out.println(); } } return a; }
21.5
39
0.434109
4e21a61ea58e447bf44c813ea14993143c34611d
407
// This is a generated file. Not intended for manual editing. package name.kropp.intellij.makefile.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface MakefilePrerequisites extends PsiElement { @NotNull MakefileNormalPrerequisites getNormalPrerequi...
23.941176
61
0.813268
4259ddb72a749477c1c44d744a32bdc7ae428292
1,940
package ar.com.syswork.sysmobile.plogin; import android.app.Activity; import android.content.Intent; import ar.com.syswork.sysmobile.daos.DaoVendedor; import ar.com.syswork.sysmobile.daos.DataManager; import ar.com.syswork.sysmobile.entities.Vendedor; import ar.com.syswork.sysmobile.shared.AppSysMobile; import ar.com...
27.714286
160
0.764948
09fb77cadc121b26f7ea8e901b3f4f22520bf07b
376
package com.example.springApp.repos; import com.example.springApp.domain.StreetType; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface StreetTypeRepo extends JpaRepository<StreetType, Long> { List<St...
28.923077
73
0.81383
05382148b0c95c50bd4b0bbf30d38d1e13925ed8
956
package edu.stanford.protege.webprotege.viz; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeName; import edu.stanford.protege.webprotege.common.ProjectId; import edu.stanford.protege.webprotege.common.UserId; import edu.stanford.protege.webprotege.dispatch.Project...
32.965517
136
0.766736
844d5775c0bf606ce0d2e2661332db78e9ed7f6a
392
package com.lomoye.concurrency.frokJoin.section6; import java.util.Random; /** * Created by lomoye on 2017/7/24. */ public class ArrayGenerator { public int[] generateArray(int size) { int array[] = new int[size]; Random random = new Random(); for (int i = 0; i < size; i++) { ...
21.777778
49
0.576531
741e4b46c2c7a6e4c451374efcf53f4dacd356f7
873
package org.estore.persistence; import org.estore.domain.Account; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.transaction.annotation.Transactional; public interface AccountRepository extends JpaRepository<Account, String> { @Transactional(readOnly = true) Accou...
45.947368
200
0.751432
5588de44cc0ae7912ea4992254ae386d16eaa10a
28,904
package org.ovirt.engine.ui.uicommonweb.models.datacenters; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; import org.ovirt.engine.core.common.ActionUtils; import org.ovirt.engine.core.common.action.ActionParametersBase; import org.ovirt.engine.core...
40.709859
153
0.628771
9f6b1d4618ad908492b5e82ca5c1d8832ec9be10
2,333
package live.chatkit.android; import android.app.Application; import android.content.Context; import android.text.TextUtils; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleObserver; import androidx.lifecycle.OnLifecycleEvent; import androidx.lifecycle.ProcessLifecycleOwner; import static liv...
28.802469
84
0.679811
d2209ff30dcb5230e18917fa6f0ee1790e199cef
7,130
package com.muzibmuzakar.uasAndroidStudio; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.SearchView; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.app.SearchManager; import android.content.Context; import a...
40.282486
114
0.660589
307507ee77752b68e98393b7cd524f134b55021d
80
/** * Controllers for returning views. */ package com.jonki.popcorn.web.view;
16
35
0.7125
3b90d369fff560ab0c34c03d1425f4ad72fbcd85
5,846
/** * Jooby https://jooby.io * Apache License Version 2.0 https://jooby.io/LICENSE.txt * Copyright 2014 Edgar Espina */ package io.jooby; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nonnull; import java.util.Arrays; import java.util.Collections; import java.util.List; import j...
29.979487
98
0.647964
f55203855ab7af66512c46819dd8d3c7928a9772
927
package com.stepone.navigator.request; import android.net.Uri; import com.stepone.navigator.ActivityHooker; /** * FileName: PushRequest * Author: shiliang * Date: 2019-12-01 11:25 */ public final class PushRequest extends Request { private ActivityHooker.OnActivityResultCallback resultCallback; public ...
20.152174
81
0.659115
bc62dbbeb9556c4fa9cab99d32479a10ede9922a
635
package com.monitise.performhance.repositories; import com.monitise.performhance.entity.Review; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface Review...
25.4
75
0.798425
33345da8f8cf6667c20f51cd17a3c95cc96623e8
2,470
package jenkinsx.example.springboot; import io.fabric8.kubernetes.client.DefaultKubernetesClient; import io.fabric8.kubernetes.client.KubernetesClient; import io.fabric8.kubernetes.client.KubernetesClientException; import io.fabric8.kubernetes.client.Watcher; import io.jenkins.x.client.PipelineClient; import io.jenkin...
39.206349
139
0.668016
e46d5e2778010f2d2969c61d0a8ee190ca10cf8a
510
public class DuplicateArray { static boolean DuplicateFun(int[] data) { for(int i = 0;i<data.length;i++) { for(int j = 0;j<data.length;j++) { if(data[i]==data[j]){ return true; } } ...
20.4
44
0.392157
1465ef68d47e4c46868ca3f8700484a0f3a37115
13,190
package uk.gov.ons.ssdc.responseoperations.endpoint; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.hamcrest.core.Is.is; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.springfra...
45.958188
180
0.705838
85ad480ebabd2a65defc8704fc4a1a3b325833e9
6,145
package fr.adrienbrault.idea.symfony2plugin.doctrine; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.psi.*; import com.intellij.psi.util.PsiTreeUtil; import com.jetbrains.php.lang.documentation.phpdoc.parser.PhpDocElementTypes; import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocCom...
43.892857
187
0.644264
af772cd7f721a2a7d99ea45b221c52b698239626
475
package uk.ac.ebi.fgpt.zooma.service; import java.net.URI; /** * Javadocs go here! * * @author Tony Burdett * @date 20/11/13 */ public class SingleFieldURIMapper extends AbstractSingleFieldMapper<URI> { public SingleFieldURIMapper() { this("uri"); } public SingleFieldURIMapper(String uriFiel...
19.791667
74
0.675789
c0a78c46456199410ba8b2b3ac03fe9d4cee0fdf
1,360
package kingdominoplayer.tinyrepresentation.datastructures; import java.util.Arrays; /* * Copyright (c) 2017 Magnus Gedda<br> * User: gedda<br> * Date: 2017-03-18<br> * Time: 22:33<br><br> */ public class TinyMove { final byte[] iMove; public TinyMove(final byte[] move) { iMove = move; }...
20.298507
108
0.605147
071a6cfde9164cd1769b08ce3ebda63e5ff10b8f
9,360
/*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. * Modifications Copyright (C) 2019 Nordix Foundation. * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C)...
41.23348
120
0.603098
4d075d4a7f62ec021b9a5b5778a5954eece24e1f
2,103
/* * Copyright (c) 2012, 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...
38.236364
76
0.793153
33d27411ba3c7f0385f0e8e6ae8bc81723a12060
294
package com.roarbotics.json; import com.cedarsoftware.util.io.JsonReader; public class TemplateReader { public static void inputJSON(){ ScoutingFormTemplate scoutTEMPLATE = (ScoutingFormTemplate) JsonReader.jsonToJava("template.json"); System.out.println(scoutTEMPLATE.toString()); } }
26.727273
101
0.795918
7139919bacd420e77a02174b3fd33377d9f80bf9
1,086
package org.bouncycastle.crypto; /** * Base interface for an output verifier which can be used to verify a signature against a data stream. * * @param <T> the parameters type for the verifier. */ public interface OutputVerifier<T extends Parameters> { /** * Return the parameters for this output verifier. ...
31.941176
117
0.697053
96bd253ec0c8b8e085f0d8c06294a48862f11a12
568
package com.yhao.floatwindow.interfaces; import android.view.View; public abstract class BaseFloat { public abstract void setSize(int width, int height); public abstract void setView(View view); public abstract void setGravity(int gravity, int xOffset, int yOffset); public abstract void init(); ...
18.322581
75
0.65493
ede3fcae4241c30cf4ccabd4330ac075183408b7
658
package pt.maisis.search.export.jfreereport.function; import org.jfree.chart.JFreeChart; import org.jfree.chart.ChartFactory; public class AreaChartFunction extends AbstractCategoryBasedChartFunction { protected JFreeChart createChart() { return ChartFactory .createAreaChart(getTit...
31.333333
76
0.50304
adf594cccf00327304fc793f9236d790f9958a97
2,167
package net.remisan.base.model.mock; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import net.remisan.base.model.PersistableEntity; @Entity @Table(name = ...
18.843478
71
0.567605
b9b2486f2746663b509e9095e8f80383f173bb6c
3,532
/* Copyright (c) 2007 Timothy Wall, All Rights Reserved * * The contents of this file is dual-licensed under 2 * alternative Open Source/Free licenses: LGPL 2.1 or later and * Apache License 2.0. (starting with JNA version 4.0.0). * * You can freely decide which license you want to apply to * the project. *...
37.574468
96
0.60957
a54aa83e71acc75aa4c7ed35c37f013e33ee851d
1,732
package com.tiagobani.persons.adapters; import com.tiagobani.persons.domains.domain.PersonAddressResponse; import com.tiagobani.persons.domains.domain.PersonFindResult; import com.tiagobani.persons.domains.usecases.IFindAllPersonsUseCase; import com.tiagobani.persons.ports.postgress.IFindAllPersonsPort; import lombok....
37.652174
69
0.588915
c83da0761d647165f1303eff27b6642c9eff96eb
43,500
/* * Copyright 2015-2016 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 app...
52.791262
242
0.646644
74c5ed84f8cdadf23eca1ecaf1c88caf31c82768
1,917
package hr.fer.oop.lab4.second; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.file.FileVisitResult; import java.nio.file.FileVisitor; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardOpenOption; import java.nio.file.attri...
29.492308
99
0.729786
1c06ebf56f3562835a5ff14669a8091e6fb09b2d
104
package astro.tool.box.exception; public class NoExtinctionValuesException extends Exception { }
17.333333
61
0.788462
ee4f610eae3f8e88b7a3d5c29cf7fb1980bb804a
365
package com.food.delivery.app.ws.service; import java.util.List; import com.food.delivery.app.ws.shared.dto.FoodDto; public interface FoodService { FoodDto createFood(FoodDto food); FoodDto getFoodById(String foodId); FoodDto updateFoodDetails(String foodId, FoodDto foodDetails); void deleteFoodItems...
24.333333
64
0.761644
25067f4fd49c6c84bc442a8a52fe345a75bb8740
2,312
/***************************************************************************** * This file is part of the Prolog Development Tool (PDT) * * Author: Tobias Rho, Lukas Degener, Andreas Becker, Fabian Noth * WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start * Mail: pdt@lists.iai.uni-bonn.de * Copyright (C): 200...
32.56338
84
0.705017
0161a0fe31a82395716e753d629081e2e4605400
6,145
package de.uniks.networkparser.test; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import de.uni...
31.675258
113
0.681041
4c4c0d7e9f023d865221c6aa13d6911f4d01719b
2,656
package com.github.devil.srv.config; import com.github.devil.srv.dto.response.Resp; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.TypeMismatchException; import org.springframework.context.support.DefaultMessageSourceResolvable; import org.springframework.http.HttpStatus; import org.springframework...
40.242424
136
0.776732
839fe12d83eb2a57a717b731074186a45790d1ef
220
package com.github.zszlly.io; import com.github.zszlly.model.Case; import java.util.Collection; public interface CaseSaver { void addCase(Case c); void addCases(Collection<Case> cases); void save(); }
13.75
42
0.713636
4e305f4b6fbe2668ea2f0cef9883bd74cd79326f
1,359
package com.zcking.furyengine.lighting; import org.joml.Vector3f; /** * Conveniently wraps all the common lighting objects for a * scene (e.g. ambient light, point lights, spot lights, etc.). */ public class SceneLight { private Vector3f ambientLight; private PointLight[] pointLights; private SpotLigh...
23.842105
72
0.688006
68aec8b16a936ebef024583bc98cc1570411e406
2,530
/* * Copyright 2014-2019 Logo Business Solutions * (a.k.a. LOGO YAZILIM SAN. VE TIC. A.S) * * 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....
22.589286
80
0.641502
ab3e0962fba7fb14d88fe4379c960e512d77e364
2,696
/* * Copyright 2019 Gerald Curley * * 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...
25.923077
112
0.636128