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
3376c205f6e4a29a16b9bfe98a6ee278638ff5df
9,743
package com.baidu.disconf.web.service.user.mybatis; import static com.baidu.disconf.web.service.user.mybatis.AuthUserRoleDynamicSqlSupport.*; import static org.mybatis.dynamic.sql.SqlBuilder.*; import com.baidu.disconf.web.service.MybatisMapper; import com.baidu.disconf.web.service.user.mybatis.AuthUserRole; import j...
50.481865
130
0.699066
541ff12c2fbb9439994861015c145d878687582d
326
package foodtruck.slack; import java.io.UnsupportedEncodingException; import org.codehaus.jettison.json.JSONException; import foodtruck.model.SlackWebhook; public interface SlackWebhooks { SlackWebhook create( String code) throws SlackAuthenticationFailedException, UnsupportedEncodingException, JSONExcepti...
23.285714
106
0.834356
54bf0aa93ec71f352339ca36ea8de445d32247d5
857
package nato.ivct.gui.client; /** * <h3>{@link ResourceBase}</h3> This class is the base for resources contained * in this module.<br> * Do not move it to another package, the package is part of the resource * name.<br> * Usage: <code>ResourceBase.class.getResource("relativeFolder/file.ext")</code> * * @author ...
26.78125
80
0.71762
cb2dca0c20bf1fc504fc61c72a5c31d4a84bee98
1,719
package org.ayo.robot.anim.transition; import android.app.ActivityOptions; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.transition.Explode; import android.transition.Slide...
30.696429
97
0.692263
792c4a151f881545682569a7ecde8132346c5d5a
7,295
package com.avivvegh.encryption; import android.content.Context; import android.content.SharedPreferences; import android.os.Build; import android.security.KeyPairGeneratorSpec; import android.support.annotation.RequiresApi; import android.util.Base64; import javax.crypto.Cipher; import javax.crypto.CipherInputStream...
34.088785
99
0.616998
14be75218f7efcacba241dabf23e23f54594b057
1,878
/** * Copyright 2016-2021 The Reaktivity Project * * The Reaktivity Project 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.org/licenses/LICENSE-2...
29.34375
100
0.707135
922b185a1a2dd2447b6be56b79f48f58a7483f50
15,823
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may n...
36.125571
84
0.690451
d1697043fa6ab1dd92a6bb0f7a8094a25a4cfc1a
2,576
/* * 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...
34.346667
161
0.730202
da51057f2f29c8ea5265846dbfae2e6916e07fa0
855
package com.bockig.crazybackyard.model; import com.bockig.crazybackyard.common.HasInputStream; import org.apache.commons.mail.util.MimeMessageParser; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.internet.MimeMessage; import java.io.IOException; import java.io.InputStream; import ...
29.482759
108
0.747368
004e15fec427ed3bec6b07ad5295e0724380a6eb
719
package cn.modernpoem.date; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author zhy */ public class YmdFormatter implements DateFormatter { private final static Pattern PATTERN = Pattern.compile("^[((]?\\s*(\\d{4})[.,、,./\\-年]?(\\d{1,2})[.,、,./\\-月](\\d{1,2})[..日]?[,于在]?.{0,4}\\s*[))]?...
29.958333
154
0.59249
56821cb3420e5af6fceadf5eb3c93d616facd5b5
867
import java.util.Scanner; public class EasterGuests { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double guests = scan.nextDouble(); int budget = scan.nextInt(); int easterBread = (int) (Math.ceil(guests / 3)); int eggs = (int)(guests * ...
34.68
96
0.588235
ada2ebee4799b17a8202af878fa6527e3faf0c7c
1,725
package achozen.rememberme.engine; import android.animation.ValueAnimator; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.drawable.Drawable; impo...
27.822581
105
0.672464
0e6d38e905bf757cfec272d6e20a32b7dcf4d02a
5,745
package com.sap.bpm.wfs.forms.adaptivecards; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Scanner; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.htt...
41.330935
145
0.711923
3fef782d8d417d8b4a49e6cc414ce4a9157312be
1,152
package DATA_STRUCTURE; import java.util.Scanner; public class indegree_outdegree { /** * @param args */ public int indeg(int DATA[][],int v,int n){ int indegree=0; for(int i=0;i<n;i++){ if(DATA[i][v]==1){ indegree++; } } return indegree; } public int outdeg(int DATA[][],int v,int n){ int...
20.945455
62
0.572049
d3b9c69827d972f274abf1980077d47a27e4a976
884
/* * IntPTI: integer error fixing by proper-type inference * Copyright (c) 2017. * * Open-source component: * * CPAchecker * Copyright (C) 2007-2014 Dirk Beyer * * Guava: Google Core Libraries for Java * Copyright (C) 2010-2006 Google * * */ package org.sosy_lab.cpachecker.exceptions; import org.sosy_la...
20.55814
68
0.723982
8e35fb32f9bdfedefc5a94f7e88ca973b97f004b
4,274
/* * User.java * * Created on 2017-12-10 * */ package com.botsoffline.eve.domain; import java.io.Serializable; import java.time.Instant; import java.util.HashSet; import java.util.Objects; import java.util.Set; import javax.validation.constraints.NotNull; import com.botsoffline.eve.domain.enums.TrackingStatus;...
22.376963
99
0.652316
b6901c81b4d0c1eb287b8424ee56794c110f8659
1,707
package cn.smartcoding.system.security; import cn.smartcoding.common.core.domain.CommonErrorCode; import cn.smartcoding.common.exception.CommonException; import cn.smartcoding.system.security.authentication.LdapAuthenticationToken; import org.springframework.security.authentication.AbstractAuthenticationToken; import ...
27.532258
123
0.688928
c1229edf2f28e048f455b9c16a8f48a7f81e9517
4,403
package com.zeroecks.core.resource; import com.zeroecks.core.domain.Stance; import io.katharsis.resource.annotations.JsonApiId; import io.katharsis.resource.annotations.JsonApiIncludeByDefault; import io.katharsis.resource.annotations.JsonApiResource; import io.katharsis.resource.annotations.JsonApiToOne; @JsonApiRes...
20.867299
65
0.644788
b05c51908f998095ea8750fa2a39f2582cfb4e68
2,373
package instrumentation; public class StatementInstrumentation { static final int static_i; final int instance_i; static { static_i = 10; } { instance_i = 20; } public StatementInstrumentation() { int i = 0; i++; } public void simpleStatements() ...
17.071942
68
0.365782
4c10d09b81b49b076eeb31a82e833d381f17dd74
1,585
package org.infinispan.server.core.admin.embeddedserver; import java.util.EnumSet; import java.util.Map; import org.infinispan.commons.api.CacheContainerAdmin; import org.infinispan.configuration.cache.Configuration; import org.infinispan.manager.EmbeddedCacheManager; /** * Admin operation to create a cache * Para...
31.7
140
0.711672
45ea3585e9fb2d659f57708b715cad43c4c7f6a9
1,115
package de.unistuttgart.t2.creditinstitute; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import io.swagger.v3.oas.models...
27.875
110
0.743498
20be350dbdab199869fc33fa8ef66fe276995b26
732
package com.zarbosoft.merman.webview.compat; import elemental2.core.JsObject; import elemental2.dom.DataTransfer; import elemental2.promise.Promise; import jsinterop.annotations.JsMethod; import static jsinterop.annotations.JsPackage.GLOBAL; public class CompatOverlay { @JsMethod(namespace = GLOBAL) public stati...
28.153846
64
0.786885
200fc20faf40bdbc95cd9774b8d12fef321a7cbf
1,801
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
33.981132
82
0.676291
d132fd4cb426236ad23d3086906cfcbcebfb2846
1,902
package com.pi4j.io.gpio; /* * #%L * ********************************************************************** * ORGANIZATION : Pi4J * PROJECT : Pi4J :: Java Library (Core) * FILENAME : GpioPinPwmOutput.java * * This file is part of the Pi4J project. More information about * this project can be fou...
33.368421
95
0.624606
142a780591c17ec9062c10765197de05651125b0
1,063
/** * Classe * Do pacote de exemplo SistemaTransacoesBancarias * ( Pacote criado para realizar as operações "virtuais" bancárias de nosso exemplo ) * Padrão de Projeto GOF - Facade * * @author Thiago Toledo <javaephp@gmail.com> * */ package SistemaTransacoesBancarias; //Importando o Random para deixar noss...
32.212121
107
0.702728
a80e6ca67fe5e72085a5d01233c5d191e8f0410b
8,186
/* Node.java Copyright (C) 2005, Richard Johansson (richard@cs.lth.se). Created in June, 2004 by Richard Johansson (richard@cs.lth.se). $Log: Node.java,v $ Revision 1.4 2011-06-09 08:39:58 johansson Removed LGPL preamble. Revision 1.3 2011-05-26 09:25:19 johansson Added getText. Revision 1.2 2010-...
26.927632
103
0.585634
d2e3330101f25a8bd89d1402e82a32ce397cf9a8
590
package com.github.j3t.ssl.utils.types; /** * Constants with names of key store providers. * * @author j3t */ public interface KeyStoreProvider { String SUN_PKCS11 = "SunPKCS11"; String SUN = "SUN"; String SUN_RSA_SIGN = "SunRsaSign"; String SUN_JSSE = "SunJSSE"; String SUN_JCE = "SunJCE"; ...
24.583333
47
0.659322
93e880ef2dcaeb7802c3e834cfd4d34981fc6892
2,172
/* * Copyright (c) 2016, Peter Abeles. All Rights Reserved. * * This file is part of DeepBoof * * 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/LIC...
39.490909
116
0.709945
37a78bf04a7846f17b95508c554ddcee99614d90
10,397
package com.puyixiaowo.fblog; import com.puyixiaowo.fblog.controller.IndexController; import com.puyixiaowo.fblog.controller.TestController; import com.puyixiaowo.fblog.controller.admin.*; import com.puyixiaowo.fblog.controller.admin.afu.AfuController; import com.puyixiaowo.fblog.controller.admin.afu.AfuTypeController...
38.940075
109
0.495816
c63fdfa2e701c1de116d7880b65d15178054ca65
3,620
package com.wya.template.android_template; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.FrameLayout; import android.widget.TextView; import android.widget.Toast; import com.wya.views.dialog.L...
29.430894
101
0.555801
59a4141b3d9cee1e470f1ae025359176c9f2fbee
639
package com.baeldung.reactive.events; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import com.baeldung.reactive.events.StockPriceService...
25.56
62
0.823161
9583004e8198d048da0951b19e6e01a171298c01
815
package uk.me.graphe.shared.messages.factories; import uk.me.graphe.shared.jsonwrapper.JSONException; import uk.me.graphe.shared.jsonwrapper.JSONObject; import uk.me.graphe.shared.messages.Message; import uk.me.graphe.shared.messages.SetGraphPropertiesMessage; public class SetGraphPropertiesFactory implements Convers...
31.346154
69
0.650307
24bb2fbb2d52fe7002d8f2c3cb595b9876f9aaa9
1,072
package com.fasterxml.jackson.core; import com.fasterxml.jackson.core.io.SerializedString; import com.fasterxml.jackson.core.util.Separators; import java.io.IOException; public interface PrettyPrinter { Separators DEFAULT_SEPARATORS = Separators.createDefaultInstance(); SerializedString DEFAULT_ROOT_VALUE_SEPAR...
34.580645
78
0.823694
c4505617ac03548d904a8a69948074bb6861a29d
8,047
/* * Copyright 2009-2010, James Leigh and Zepheira LLC Some rights reserved. * Copyright (c) 2011 Talis Inc., Some 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 sourc...
30.95
91
0.711445
5cb3e1856b2b2756e31f03fffea8c831dd67a105
1,661
package yobdc.linkedlist; import java.util.HashMap; import java.util.Map; public class Problem82 { public class ListNode { int val; ListNode next; ListNode(int x) { val = x; } } public ListNode deleteDuplicates(ListNode head) { Map<Integer, Integer> m...
24.426471
67
0.425045
87d55e518a857607a9fad2071129514910b4d3e4
1,786
package com.example.netty.async; import io.netty.util.concurrent.*; /** * 演示用法: * <p>{@link io.netty.util.concurrent.Promise}, * <p>{@link io.netty.util.concurrent.Future}, * <p>{@link io.netty.channel.ChannelFuture}, * <p>{@link io.netty.channel.ChannelPromise} */ public class AsyncExample { public static ...
30.793103
82
0.546473
f20151c59d433371f086223a52e711e3c6635de0
104
package org.motechproject.evsmbarara.domain.enums; public enum SmsStatus { YES, NO, FAIL }
13
50
0.692308
36cfc5d037b78c73179e67c6e8c65ee7151d210b
501
package com.zarate.bean.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import com.zarate.bean.service.FoodService; @Configuration public class OttomanTroopsConfig { @Primary //Works usin...
20.04
60
0.788423
c218251054521055de3bba1f6fe5c38db1616312
956
package projectzulu.common.core.itemblockdeclaration; import net.minecraftforge.common.config.Configuration; import cpw.mods.fml.relauncher.Side; public interface ItemBlockDeclaration { public enum Type { Block, Item; } public abstract Type getType(); public abstract int getRegisterPass(); ...
28.117647
117
0.703975
70692bb94d1d0f221ec5c5f216d7c8b91ea32858
279
package test.java.testJunitMaven; import main.java.testJunitMaven.App; import junit.framework.Assert; import org.junit.Test; public class TestApp1 { @Test public void testPrintHelloWorld() { App app=new App(); Assert.assertEquals(app.getHelloWorld(), "Hello World"); } }
21.461538
58
0.759857
4e86748fa71504a942b2ec8c51e7669f26e4a782
6,682
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.Deque; public class FenceOrthogonality { private static ArrayList<Vector> polygon; private static ArrayList<Vector> pointList; private static ArrayList<Integer> currentPointForVector; public static void main(St...
32.754902
110
0.663873
61a4b173e273d595254abb050bf8367544ac1480
2,597
/* * 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 org.mskcc.shenkers.view; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; imp...
33.727273
109
0.67424
c2f5ed0a35de367333f85e50fc9e513dd4625bd1
69
/** * */ /** * @author wecksr * */ package CaptureImages.model;
8.625
28
0.536232
3788a4ada0ff1092f384b44727ac27cd3695e5ea
15,515
/******************************************************************************* * (C) Copyright 2015 Hewlett Packard Enterprise Development LP * * 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 Licen...
43.951841
133
0.681598
f73f4c4e4d74491e92c69d933e8b69c8bea839d3
921
package dataStructure; import Algorithm.shortestPath.Graph; import org.junit.Test; public class MinGraphDisTest { @Test public void testDijkstra() { Graph instance = new Graph(15); instance.addEdge(1, 5, 5); instance.addEdge(2, 5, 10); instance.addEdge(3, 7, 7); instanc...
28.78125
39
0.565689
6b3b7495992fe9288811cbfb1ed6e6e58e7d601a
271
package im.tabis.prod.service; import im.tabis.core.service.CommonService; import im.tabis.prod.entity.Demo; import java.math.BigInteger; public interface DemoService extends CommonService<Demo, BigInteger> { public static final String BEAN_NAME = "demoService"; }
20.846154
70
0.797048
80017137ea1f590ab5d881f4c9a6846406619db5
964
package com.contentbig.graphql.shoppingcart.query; import com.contentbig.graphql.shoppingcart.api.Query; import com.contentbig.graphql.shoppingcart.model.*; import graphql.kickstart.tools.GraphQLQueryResolver; import graphql.schema.DataFetchingEnvironment; import org.springframework.stereotype.Service; @Service pub...
28.352941
111
0.798755
2fc1162aa2639bf31ec1e05e24b60e5de13cae6f
904
package org.jeecgframework.web.demo.service.test; import java.util.List; import org.jeecgframework.web.demo.entity.test.JeecgOrderCustomEntity; import org.jeecgframework.web.demo.entity.test.JeecgOrderMainEntity; import org.jeecgframework.web.demo.entity.test.JeecgOrderProductEntity; import org.jeecgframewor...
36.16
193
0.811947
6900bd4e995368adeff0dc1a07a7264402f457a7
1,297
package com.problems.geeksforgeeks.dp; /** * Created by Maks on 9/2/2017. * http://www.geeksforgeeks.org/minimum-cost-to-fill-given-weight-in-a-bag/ */ public class MinimumCost { public int solution1(int[] price, int bagSize) { int res[] = new int[bagSize + 1]; for (int i = 0; i < res.length; i...
30.162791
75
0.504241
37e44f87f3e26a7553c6593c21e30e14ab5b7968
5,734
package no.nav.modiapersonoversikt.consumer.kontrakter.consumer.fim.mapping; import no.nav.modiapersonoversikt.consumer.kontrakter.consumer.fim.ytelseskontrakt.to.YtelseskontraktRequest; import no.nav.modiapersonoversikt.consumer.kontrakter.consumer.fim.ytelseskontrakt.to.YtelseskontraktResponse; import no.nav.modiape...
43.439394
130
0.723055
dfd6e45f98277dcd6ec7acbfbdef6dc8f8519aab
287
package ru.nivanov.output; /** * Created by Nikolay Ivanov on 27.03.2017. */ public class ConsoleOutput implements Output { /** * outputs string. * @param output String to write. */ public void write(String output) { System.out.println(output); } }
19.133333
46
0.627178
a325d98c034c22af5a306248b133f438cf2a746a
3,470
package com.ruoyi.kaisheng.controller; import java.util.List; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind...
28.677686
78
0.731988
1cdca55b71ba30d45719c872e59c178fbad6f53f
2,924
/** * This software is released as part of the Pumpernickel project. * * All com.pump resources in the Pumpernickel project are distributed under the * MIT License: * https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt * * More information about the Pumpernickel project is available he...
31.782609
84
0.701094
87dfd9a412fa40e95576b252edfc62006a32a9d5
2,401
/*- * ========================LICENSE_START================================= * Bucket4j * %% * Copyright (C) 2015 - 2021 Vladimir Bukhtoyarov * %% * 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 L...
35.308824
98
0.710121
0cb8719a74f5add8c7ad95f526b071a68c74b875
1,024
package com.quickapi.web.controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import quickcore.annotations.compo...
34.133333
72
0.744141
34eb660c4538a036ce5f287443db18c6be467479
5,757
/* * Copyright 2020 LINE Corporation * * LINE Corporation 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.org/licenses/LICENSE-2.0 * * Unless re...
39.163265
111
0.606392
f824f22969d6362aebfb1e90978bacc1d40b9975
1,564
/** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
31.28
97
0.725064
30e43f24f27737f64b0efeee40f11e065d2bd6fe
4,160
package com.iitg.reportscanner.qr; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.hardware.SensorListener; import android.hardware.SensorManager; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; imp...
34.098361
98
0.67524
aa5b92be5d99883f4ce3f32615c0bc30119ef37e
1,250
package com.pokemongostats.view.rows; import android.content.Context; import android.util.AttributeSet; import androidx.core.content.ContextCompat; import com.pokemongostats.R; /** * @author Zapagon */ public class MoveHeader extends AbstractMoveRow { public MoveHeader(Context context) { super(contex...
28.409091
110
0.708
65bd329eefa0af40f4ca3b9a0439f4e3f74bb2bf
187
package io.recode.model; public interface TypeCast extends Expression { Expression getValue(); default ElementType getElementType() { return ElementType.CAST; } }
15.583333
46
0.700535
ed71f6b46a6fa316d3d56ae710999bd14d7b29d1
144
package com.projeto.web.controller; import org.springframework.stereotype.Controller; @Controller public class SobreController { }
9.6
49
0.763889
ef9b1e56e3c24c2a1e7593bb3d53605a2987eab2
1,299
package uk.gov.defra.datareturns.validation.constraints.validators; import org.springframework.stereotype.Component; import uk.gov.defra.datareturns.data.model.record.Record; import uk.gov.defra.datareturns.service.csv.EcmErrorCodes; import uk.gov.defra.datareturns.validation.constraints.annotations.ProhibitUnitWithTx...
36.083333
127
0.765974
d835114c40b07c6795a6414a538b12ab4ee868a6
1,592
package com.app.landlordcommunication.repositories; import com.app.landlordcommunication.http.HttpRequester; import com.app.landlordcommunication.parsers.base.JsonParser; import com.app.landlordcommunication.repositories.base.Repository; import java.io.IOException; import java.util.List; public class HttpRepository<...
31.215686
103
0.707915
b80d5716cac119dec9107a627a2f067e430287bf
11,959
/* Copyright 2018 Case Western Reserve University * * 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,...
36.684049
108
0.624634
192fcb3c4ef4dca9a9134c110c3d7c87f78a8a8b
3,731
/** Copyright 2017 Andrea "Stock" Stocchero 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...
37.31
172
0.727419
f4e9d582c28343f103d118fe59e245ca49b992f9
1,669
/** * Copyright 2014 Daniel Furtlehner * * 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...
34.061224
109
0.757939
63ca313629d863e33355ff72894262c9bab601a0
461
package io.devfactory.account.repository; import io.devfactory.account.domain.Account; import io.devfactory.account.domain.AccountRole; import java.util.Set; import org.springframework.data.jpa.repository.EntityGraph; import org.springframework.data.jpa.repository.JpaRepository; public interface AccountRoleRepository...
30.733333
81
0.824295
4f62fe508f7457a633cd695a1f43b58c4ecf89ac
185
package behavioural.command; /** * @author Neil Grogan * Light interface to define On and Off for all implementations */ interface ILight { void turnOn(); void turnOff(); }
16.818182
63
0.691892
c6f3a3f3951083dfe5078a64d15b0b4c96129112
1,781
package httpa; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.File; import java.io.IOException; import java.sql.SQLException; import java.sql.Statement; public class Re...
33.603774
115
0.532285
7eeb825d9edd03c4f71dcaf0408b247827a13f30
287
package com.softuni.pcstore.service; import com.softuni.pcstore.domain.models.service.RoleServiceModel; import java.util.Set; public interface RoleService { void seedRolesInDb(); Set<RoleServiceModel> findAllRoles(); RoleServiceModel findByAuthority(String authority); }
22.076923
66
0.787456
1007e40a56bc642c198f55731842bd4d71a91be1
3,594
package net.id.aether.blocks.natural.tree; import net.minecraft.block.*; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.server.world.ServerWorld; import net.minecraft.state.StateManager; import net.minecraft.state.property.BooleanProperty; import net.minecraft.util.m...
36.673469
169
0.70562
07164f81a4263fcb5e7ef855b538bd71411a6108
4,273
package cn.bluemobi.dylan.step.activity; import android.graphics.Color; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import com.github.mikephil.charting.charts.BarChart; import com.google.gson.Gson; import org.json.JSONObject; ...
35.31405
104
0.620875
fb372f9dc1b8e20bd5e063c4b87facc414e352ca
242
package br.com.wa.domain.user; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Address { private String street; private String postalCode; }
17.285714
33
0.818182
b67964297f3407e3c5c1d90e9a5d7ff599f6c874
1,599
package com.github.sornerol.chess.pubapi.domain.game.enums; import com.fasterxml.jackson.annotation.JsonValue; import lombok.Getter; /** * Possible game results for a player */ public enum GameResult { /** * Player won */ WIN("win"), /** * Player lost by checkmate */ CHECKMATED(...
17.193548
71
0.570982
40a86f29171d964ca371653e7b1a5c181c7fafc5
2,310
package com.testwithspring.intermediate.vat; import com.testwithspring.intermediate.IntegrationTest; import com.testwithspring.intermediate.IntegrationTestClassicStubContext; import com.testwithspring.intermediate.Profiles; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runn...
38.5
86
0.776623
378f9a78bfc838da55e5f38570cda221c60a6f51
1,710
package org.talend.daikon.spring.metrics.io; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import jav...
25.147059
69
0.659649
afb22850ea82a1a0c439da325de916da5f0f9576
3,110
package com.specflare.algohut.algos.combinatorics; import com.specflare.algohut.Util; import java.util.Arrays; public class Permutations { public static void permutations_backtracking(int[] stack, int K, int N) { // WORKING if (K == N) { Util.printArray(stack, K); return; ...
28.272727
88
0.433762
3e49c265b7578c8e44b2cdb9439b3cc5e88f1d0d
4,023
package de.fau.cs.mad.fly.android; import android.content.Context; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Configuration; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Message; ...
37.598131
137
0.643798
ac9185a58142a23e36463e4f20a2fcd41a8ed946
8,261
/* * Copyright (c) 2018, Senmori. 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 and the ...
27.908784
111
0.621838
56db60df40ad62070a2959c575d5d6ecb09ab8e2
2,931
package dev.model; import javax.persistence.*; import java.time.LocalDate; @Entity public class Nature { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; private String nom; private boolean facturation; private boolean prime; private int TJM; private float...
23.448
183
0.640737
0a84200dbf213ce3142889ebc9bf998a45d19e12
2,945
package com.battcn.boot.extend.configuration.oss; import com.battcn.boot.extend.configuration.oss.domain.DownloadResponse; import com.battcn.boot.extend.configuration.oss.domain.StorageItem; import com.battcn.boot.extend.configuration.oss.domain.StorageResponse; import java.io.File; import java.io.InputStream; import...
19.633333
84
0.60747
6db42b4e644e603eeaca0b37dfb4fb809861eb27
1,157
package com.k2.mobile.app.utils; import android.content.Context; import android.content.SharedPreferences; import com.k2.mobile.app.common.config.HttpConstants; import com.k2.mobile.app.common.config.LocalConstants; import com.k2.mobile.app.controller.core.BaseApp; import com.k2.mobile.app.model.bean.ReqHeaderBea...
27.547619
99
0.746759
502c6ffa381fdc07e01483532e488186470d1cb8
1,651
package web.api.sistemareservas.model; import java.time.LocalDate; import java.time.temporal.ChronoUnit; import com.fasterxml.jackson.annotation.JsonGetter; public class Reserva { private int codigo; private LocalDate dataInicio; private LocalDate dataFinal; private Cliente cliente; private Veicu...
22.310811
109
0.636584
068b24539f28dfd7ca48fad22c1d13e4d1b22ee0
1,469
/** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH * * Licensed under Apache License 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package de.rub.nds.tlsattacker.attacks.config; import com.beust.jcommander.ParametersDelegate...
23.693548
67
0.679374
e4cb743b40a52e4151841066b349c27ba49ec416
10,026
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
46.850467
98
0.684221
827cd2514fb4ce7b3a22482db288c3aa0ebf43e9
496
/** * Copyright (c) 2009 Jozef Izso. All Rights Reserved. */ package samples; /** * Sample class with just one generic method {@see #method1(Object)} * */ public class GenericClass03 { /** * {@see #method1} takes just one templated parameter {@param obj} * of type {@param <T>}. * * @p...
20.666667
69
0.586694
0bc4687a84c59c68aa9bbe024ebdbcdaa44155c0
6,354
package cn.com.fhz.utils; import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.math.NumberUtils; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; ...
31.455446
108
0.704753
b94ef6aa64f99deae8f71d3d2cb7981eee2e6cdb
3,347
package com.blibli.oss.backend.newrelic.aspect; import com.blibli.oss.backend.command.Command; import com.blibli.oss.backend.newrelic.TestApplication; import com.blibli.oss.backend.newrelic.aspect.service.AspectModifyService; import com.blibli.oss.backend.newrelic.injector.NewRelicTokenInjectorFilter; import com.newre...
32.813725
84
0.779803
26b53fee42f08ff12b6027925c40fb2669661d18
3,234
/* Licensed to Diennea S.r.l. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Diennea S.r.l. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except ...
38.963855
163
0.744589
b5c6e446523c4420ca5c93bc0833f2abe53974f3
2,071
/* Copyright 2021 Telstra Open Source * * 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 la...
39.826923
100
0.771608
492d5073a8eda7ec804f915644eb10b3bda44f82
9,558
/* * 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...
49.523316
181
0.539757
2b400fdff5acbef9b6d2da0c81c25807e323038b
210
package io.github.hapjava.server.impl.http; /** * Http请求,url/消息体,Http方法 */ public interface HttpRequest { String getUri(); byte[] getBody(); // 枚举类,get,post,put类型的http方法 HttpMethod getMethod(); }
14
43
0.685714
96d38962eb9eaf3c1a44e09c5c5104dfa7c2c016
3,562
/* ParquetMetadataToJsonSerialize.java * * Copyright June 2019 Tideworks Technology * Author: Roger D. Voss * MIT License */ package com.tideworks.data_load.util.io; import com.tideworks.data_load.util.JsonAvroSchemaSerializer; import com.tideworks.data_load.util.JsonStrMapSerializer; import org.apache.avro.Schem...
45.088608
119
0.787198
ef50516caf0acb2b2fa1938a961f6c0912e047bb
676
package org.atlasapi.remotesite.channel4.pirate.model; import org.atlasapi.media.entity.Episode; import org.atlasapi.media.entity.Series; import org.atlasapi.media.entity.Brand; public class EpisodeSeriesBrand { private final Episode episode; private final Series series; private final Brand brand; p...
21.806452
76
0.676036
1b05b7b6250bdf14657d901a2d04c55bba81c946
345
package de.php_perfect.intellij.ddev.state; import com.intellij.openapi.project.Project; import org.jetbrains.annotations.NotNull; public interface StateWatcher { void startWatching(); void stopWatching(); static StateWatcher getInstance(@NotNull Project project) { return project.getService(Stat...
23
63
0.756522
e815b3602cc3e8b56c005a53cb65d322255a5284
1,406
/* * Copyright [2021] * * 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, ...
27.568627
75
0.603841
6eee4ea572468a57df0bec47e0844b4935f4ab15
2,625
package com.taoswork.tallycheck.datadomain.tallyuser.impl; import com.taoswork.tallycheck.datadomain.base.entity.PersistEntity; import com.taoswork.tallycheck.datadomain.base.entity.PersistField; import com.taoswork.tallycheck.datadomain.onmongo.AbstractDocument; import com.taoswork.tallycheck.datadomain.tallyuser.Fac...
23.863636
159
0.68419
46ba1d7f46fcde4f7a65fcd6d12fb0cf5f11fd6a
7,318
//////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2018 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
31.008475
89
0.599344
385a564663b9890ecd436b9fdcfff8da609bbe76
1,089
/* * Copyright (c) 2005, The JUNG Authors * All rights reserved. * * This software is open-source under the BSD license; see either "license.txt" * or https://github.com/tomnelson/jungrapht-visualization/blob/master/LICENSE for a description. * * * Created on Apr 12, 2005 */ package org.jungrapht.visualization...
31.114286
98
0.745638
d3fb0463beedec38705646d520722bb0c976f793
3,151
package org.mbari.vcr4j.examples.sharktopoda; import org.docopt.Docopt; import org.mbari.vcr4j.VideoCommand; import org.mbari.vcr4j.VideoIO; import org.mbari.vcr4j.commands.SeekElapsedTimeCmd; import org.mbari.vcr4j.commands.VideoCommands; import org.mbari.vcr4j.sharktopoda.SharktopodaError; import org.mbari.vcr4j.sha...
33.521277
106
0.646461