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
b185bb712bfd0dfbe9438a9a349fa38e9606f2bd
309
package com.u8.server.dao; import com.u8.server.common.UHibernateTemplate; import com.u8.server.data.UChannelpayType; import org.springframework.stereotype.Repository; /** * cp类 */ @Repository("uChannelPayTypeDao") public class UChannelPayTypeDao extends UHibernateTemplate<UChannelpayType, Integer>{ }
20.6
85
0.805825
a9039b29ea8194222267b5e4a31216bd63ec2a42
1,129
package com.company; import java.util.Scanner; public class P06_SumAndProduct { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); String finalN = "" + input.charAt(input.length() - 1); int n = Integer.parseInt(i...
26.255814
70
0.358725
443e4991d9128a2d4c29b4ec22bbc60c191f3d97
3,384
package com.openforce.keycloak; import java.util.Objects; import org.jboss.logging.Logger; import org.keycloak.component.ComponentModel; import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; import org.keycloak.models.UserModel; import org.keycloak.storage.StorageId; import org.keycloak.s...
25.253731
99
0.722222
18e8406f706022d7139b5492336d0bbc41a90d19
625
import java.util.Scanner; public class X08_stringalong { private static Scanner input = new Scanner(System.in); public static void main(String[] args) { // Now modify your program to write each word (as defined by spaces) rather than letter on a different line. System.out.println("P...
29.761905
120
0.5904
57c20b3256a0e2d038855b6df1c855e5c02bd65f
15,553
package com.melodies.bandup.setup; import android.animation.ValueAnimator; import android.content.Context; import android.content.SharedPreferences; import android.support.v4.content.ContextCompat; import android.util.TypedValue; import android.view.View; import android.widget.AdapterView; import android.widget.GridVi...
41.145503
196
0.631775
521710fd6ae02bb3e8cc592c142204808e7cfd34
16,186
/* * Copyright 2017-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
38.084706
182
0.803596
31ffb835c301558c4539d5d3cfa9c92707594890
7,718
/* * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
40.197917
108
0.77248
d9524056d577841bb849c89148eb3551c028d73f
1,566
/************************************************************************ * A Comparator for sorting MusicItem objects by title. * Queens University, Kingston, Ontario * * author: Margaret Lamb ***********************************************************************/ import java.util.*; // for Vector and Comparator...
47.454545
80
0.55811
7888291329dda32595b8dad710c319732b7185c5
2,547
package com.youhaoxi.livelink.gateway.im.handler; import com.youhaoxi.livelink.gateway.im.enums.EventType; import com.youhaoxi.livelink.gateway.im.event.IMsgEvent; import com.youhaoxi.livelink.gateway.im.msg.IMsg; import com.youhaoxi.livelink.gateway.im.msg.Msg; import io.netty.channel.ChannelHandlerContext; import o...
41.754098
133
0.741264
51e3d57db60e732366970047bf83c53248a0c874
2,774
package pl.piotron.animals.model.mapper; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import pl.piotron.animals.model.User; import pl.piotron.animals.model.UserDetails; import pl.piotron.animals.model.UserRole; import pl.piotron.animals.model.dto.U...
34.675
88
0.675919
f3c236580f60589b64816a5eec115c8376541ce1
7,579
/* * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
38.085427
88
0.57092
653190932baaaa238131761e098aa7bf82fa285b
659
package mx.ipn.escom.matefacil; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class WelcomeActivity extends AppCompatActivity { Button btnContinue; public v...
25.346154
62
0.746586
519c222cfe9244bc7061d246ef608d8fb431d338
144
package cn.dankefu.service; import cn.dankefu.bean.Customer_tags; public interface CustomerTagsService extends BaseService<Customer_tags> { }
20.571429
73
0.833333
c649d4d1ce454d495edea6e0b7b58bd58329ba0e
15,856
package appviews; import android.content.Intent; import android.os.Bundle; import android.provider.CalendarContract; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CalendarView; import android.widget.ImageButton; import androidx.annotation.NonNull; im...
54.487973
210
0.569816
ff065f0d765407b2f9df7324d9dfc18b23fe1b46
297
package ml.bigbrains.fsspapiclient.model; public enum TaskType { UNDEFINED, //0 - не определен PHYSICAL, // 1 - запрос на поиск физического лица; LEGAL, // 2 - запрос на поиск юридического лица; IP // 3 - запрос на поиск по номеру исполнительного производства; }
33
78
0.666667
a3afb5cce4f8c008414dea2ff07f77f7a643c8c3
8,415
/** * vertigo - application development platform * * Copyright (C) 2013-2022, Vertigo.io, team@vertigo.io * * 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/li...
44.057592
161
0.791682
e942f09f2bd0bd54269053824d91159c75b8faae
971
/* * Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package com.intel.iot.ams.repository; import com.intel.iot.ams.entity.ClientDeviceMapping; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; public interface ClientDeviceMapping...
33.482759
97
0.821833
65c6b3b8c166ad2faec5a03ec79c8fc53022d233
5,862
/** * Copyright (c) 2003-2013 The Apereo Foundation * * Licensed under the Educational Community 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://opensource.org/licenses/ecl2 * * Unless requ...
32.566667
135
0.714773
40918a7fe2f87e1735530b6a30bd4a4325508993
1,036
package pl.srw.todos.presenter; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import pl.srw.todos.model.Todo; import pl.srw.todos.presenter.task.PushTask; import static org.mockito.Matchers.any; import static org.mockit...
23.022222
63
0.684363
ecf561e054f9d3d88f81aea70e0206f6cc40602c
1,967
package userinterface; import javafx.scene.chart.XYChart; /** * This class stores the Series of one tool. These are needed * to display tracking data in XYCharts. */ @SuppressWarnings("rawtypes") public class TrackingDataDisplay { private final String toolName; private final XYChart.Series<Double, Double>...
29.80303
78
0.661922
42e81ba002f7204f813ffb53e899776386ff5389
839
package ss.week3.test; import org.junit.Before; import org.junit.Test; import ss.week3.hotel.Bill; import ss.week3.hotel.PricedRoom; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class PricedRoomTest { private Bill.Item item; private static final double PRIC...
25.424242
102
0.693683
1c5006bbeac6ff6ebb87c530323894f0829b26be
957
package controller; import javafx.event.ActionEvent; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.input.MouseEvent; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; import java.io.IOException; import java.net.URL; public class ManageItemFo...
27.342857
74
0.731452
48a7316c62de6a102ff533d27efa64c50b1adeda
3,110
package com.edwise.completespring.controllers; import com.edwise.completespring.exceptions.InvalidRequestException; import com.edwise.completespring.exceptions.NotFoundException; import com.edwise.completespring.exceptions.helpers.ErrorInfo; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWi...
40.38961
110
0.77299
55dea572af047d9bf5b8c5c3becd242ac296c7fb
1,511
package $PACKAGE$.init; import $PACKAGE$.$MOD_CLASS$; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.tags.BlockTags; import net.minecraft.tags.ItemTags; import net.minecraft.tags.Tag; import net.minecraft.util.ResourceLocation; public class ModTags { public static final cla...
34.340909
89
0.665784
f2272fd5d5f0c7a94e10d51a1e5ea0982bafc266
366
package ninja.harmless.tethys.aop.logging; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author bnjm@harmless.ninja - 10/13/16. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD)...
24.4
44
0.800546
6c3cd29ee04c59cfa9d62ce2fce0c0add9de31ec
1,963
package org.infinispan.stream.impl.interceptor; import org.infinispan.Cache; import org.infinispan.CacheSet; import org.infinispan.CacheStream; import org.infinispan.commons.util.CloseableSpliterator; import org.infinispan.container.entries.CacheEntry; import org.infinispan.distribution.DistributionManager; import org...
36.351852
114
0.731024
ef0e1abd2bedceb665c0016c01712aa478b4468b
947
package com.Project2; import javax.persistence.*; import java.util.*; @Entity// This tells Hibernate to make a table out of this public class User { @Id @GeneratedValue(strategy=GenerationType.IDENTITY)//.IDENTITY needed to produce independent ids to new users and movies private int userId; private ...
17.537037
122
0.637804
c5fbcab6ea5f386fcb0a4f673244bad5dbb3538d
1,379
package audio.rabid.dev.roe; import android.os.Handler; import android.os.Looper; /** * Created by charles on 10/28/15. */ public class BackgroundThread extends Thread { private Handler handler; private Handler mainHandler = new Handler(Looper.getMainLooper()); private final Object semaphore = new Ob...
24.192982
82
0.603336
18f5fb53a36f98b445d28042595e93b9e5e15fd5
1,527
package com.njust.test.kemu2; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import lombok.ToString; @ToString public class SerializableDemo implements Serializable { //...
27.267857
111
0.668631
2b1c974c2676fdfdb457ec8a74d58f55c43acaea
833
import java.util.Scanner; public class ScannerTest01 { public static void main(String[] args) { Scanner a = new Scanner(System.in); System.out.println("next方式接收:"); if (a.hasNext()){//判断是否还有下一个输入项 String cai = a.next(); /* * a.next()与a.nextLine的区别 ...
33.32
91
0.606242
3909fdac7e20b8b95b34759208e6f88d6d56046e
4,859
package org.softuni.resident_evil.web.controllers; import org.modelmapper.ModelMapper; import org.softuni.resident_evil.domain.models.binding.VirusAddBindingModel; import org.softuni.resident_evil.domain.models.binding.VirusDeleteBindingModel; import org.softuni.resident_evil.domain.models.binding.VirusEditBindingMode...
36.810606
106
0.685944
c57a75073ef88fc16b97ba7be11bfe8808986458
10,011
package com.mazmaz.sharedhouse; import android.content.Intent; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import android.widget.Toast; import com.google.firebase.auth.FirebaseAuth; import...
31.780952
141
0.564879
c8c8dabe708368e7dad01443d58509fee7a88f39
702
package com.corey.springbootquartzdemo.jobs; import com.corey.springbootquartzdemo.info.TimerInfo; import org.quartz.Job; import org.quartz.JobDataMap; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; @...
27
89
0.773504
585f854e0f625aab26a0cb2b09d4c38d4e1fe762
662
package com.calistasakralya.response; import com.calistasakralya.model.InboxModel; import com.calistasakralya.model.InboxbalasModel; import com.google.gson.annotations.SerializedName; import java.util.List; public class GetBalas { @SerializedName("result") List<InboxbalasModel> listInbox; @SerializedNam...
22.827586
70
0.714502
1499ccc5b4bf4c508d30a75948c30062377b5580
520
package com.mafour.api.dao.dao; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.util.Date; import lombok.Data; @Data @TableName("update_record") public class BookUpdateRecordDO { @TableId(type =...
18.571429
53
0.782692
7d900831db5ec787e0469b45aca7f0e8df8c50c9
473
// Test incorrect conditional expression assignment. // .result=COMPILE_FAIL interface Ownable { } interface Thing { } abstract class Entity implements Thing { } abstract class NotEntity { } class Unit extends Entity implements Ownable { } class Resource extends NotEntity implements Ownable { } class Test { void fo...
27.823529
60
0.731501
34946941cb30a0791b8fb28bda8a54ecc97207a2
12,591
package com.tools.plugin.utils.ftp; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; import java.util.function.Function; ...
25.283133
130
0.651656
3d067e43e78907355cfb34de7928f08fb4deb0c6
1,242
package com.example.coolweather.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.example.coolweather.util.LogUtil; /** * Created by chenbing on 2018/4/26. */ public class BaseBusiness { private static final String TAG = "BaseBusiness"; ...
23.433962
66
0.592593
dd67c3849fd869906be9521595626bea20f01cf1
2,236
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.pds.client.models; import com.aliyun.tea.*; /** * */ public class SignatureInfo extends TeaModel { @NameInMap("bucket") public String bucket; @NameInMap("canonicalized_resource") public String canonicalizedResource; @Na...
24.043011
86
0.651163
e4705ac314a5a8975f64f3a6d2dfee55dd2385ef
228,180
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: dstore/engine/procedures/mi_GetStorageAllocInfo_Ad.proto package io.dstore.engine.procedures; public final class MiGetStorageAllocInfoAd { private MiGetStorageAllocInfoAd() {} public static void registerAllExtensions( com.google.protobuf...
37.69701
241
0.602735
3e759194e66bfe97cdae170a4cf373145f2425b1
6,802
package com.covid.repository; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.covid.dto.PatientLocationDto; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org....
41.224242
212
0.597177
b086fd19a40f73397b0c96fc870d53dbba4d078e
14,057
/* * Jigasi, the JItsi GAteway to SIP. * * Copyright @ 2015 Atlassian Pty Ltd * * 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 * *...
31.30735
80
0.569823
686cf0b90b1fe698f6be5eef76310978874700fc
275
package com.algaworks.algafood.api.model.mixin; import java.util.List; import com.algaworks.algafood.domain.model.Restaurant; import com.fasterxml.jackson.annotation.JsonIgnore; public abstract class KitchenMixin { @JsonIgnore private List<Restaurant> restaurants; }
19.642857
54
0.810909
90fca7afdb48fdc30a259f0ce68675dda64e8164
6,251
package cat.udl.cig.structures.ecc; import cat.udl.cig.structures.ExtensionField; import cat.udl.cig.structures.ExtensionFieldElement; import cat.udl.cig.structures.PrimeField; import cat.udl.cig.structures.RingElement; import cat.udl.cig.utils.Polynomial; import org.junit.jupiter.api.BeforeEach; import org.junit.jupi...
57.348624
196
0.590306
b8c1565b506d3ec1c0cfe4b14a58baccbd180d00
1,849
package com.watcher; import java.util.Scanner; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * 刷新bat执行时的控制台输出流. * Created by Zhao Jinyan on 2017-1-1. */ class ProcessWatch extends ThreadAdapter { private static String ...
25.328767
68
0.517036
8108ea71343d039f73c8631ba3e1ea5c622ff18a
570
package io.github.cd871127.hodgepodge.mybatis.multidatasource; public class MultiDataSourceManager { private static ThreadLocal<String> currentDataSource = new ThreadLocal<>(); public static void setCurrentDataSource(String dataSourceName) { currentDataSource.set(dataSourceName); } public st...
27.142857
79
0.717544
c9d577befd893078cca357db38a571be8347b996
413
/* * Copyright (C) 2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.rfid.api.sensor; public class SensorSoftwareVersions { public String app_version; public String module_version; public String platform_id; public String platform_support_version; public Strin...
21.736842
43
0.755448
673a990a9d39a3e6c87db45362cd388be0b50c3e
5,301
package pl.sternik.jk.weekend.web.controlers.th; import java.util.*; import javax.servlet.http.HttpServletRequest; //import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.http.HttpStatus;...
38.977941
117
0.688361
8131cd231f3863fae1142bf6ceefd3b86ac0a7be
2,250
package br.unicamp.ic.lsd.mercurius.datatype; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; public interface Promotion extends Serializable { /** * Returns the {@link Promotion} id. * * @return */ Integer getId(); /** * Returns the date that the promotion was created...
16.071429
71
0.636889
83c1a870f80cc3284d419e1992ee399cb79932b5
23,417
package org.apache.servicemix.examples.cxf.send; import java.util.ArrayList; import java.util.List; import org.apache.servicemix.examples.cxf.info.GatewayInfo; import org.apache.servicemix.examples.cxf.info.ServiceInfo; import org.apache.servicemix.examples.cxf.model.Bundler; import org.apache.servicemix.examples.cxf...
33.500715
118
0.687407
5d161aa10d8968f76a61b8232c3ad3bc0eb00470
778
package com.zygon.htm.core.io.channel.Input; import com.google.common.collect.Lists; import java.util.List; import java.util.Random; /** * * @author zygon */ public class RandomInputChannel extends InputChannel<BooleanInputSet> { private final Random random = new Random(); public RandomInputChannel() { ...
21.611111
71
0.641388
e33f1aafe225514cf039b51b660fe2de535ea827
8,854
/**************************************************************************** * Copyright AGAT-Team (2014) * * Contributors: * J.F. Randrianasoa * K. Kurtz * E. Desjardin * N. Passat * * This software is a computer program w...
28.469453
241
0.66422
4ea585cf21a5c54670e7f8c9fb081ba9547d266d
2,139
/* */ package psdi.webclient.beans.common; /* */ /* */ import java.rmi.RemoteException; /* */ import psdi.mbo.MboSetRemote; /* */ import psdi.util.MXException; /* */ import psdi.webclient.components.RecordImage; /* */ import psdi.webclient.system.beans.DataBean; /* */ import psdi.webclient.syst...
40.358491
94
0.610566
57ae9f1aabf680e6f7e1885634c0ab26f2ea3490
934
package cn.nwinfo.exhibition.config; import org.springframework.boot.web.server.ErrorPage; import org.springframework.boot.web.server.ErrorPageRegistrar; import org.springframework.boot.web.server.ErrorPageRegistry; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpStatus;...
37.36
92
0.749465
bc6537fcf8e6d64ee5e2ee2351f105b0f483e5df
2,780
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
36.103896
210
0.734892
368e5c8297f50a52ad252c23b437c5340c93aa53
1,298
package victor.testing.mocks.time; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import java.util.List; import static java.time.Lo...
34.157895
125
0.728814
f284772e39fb5d5d632a47c0f543874f451cee23
6,783
package io.opensaber.registry.middleware.util; import io.opensaber.converters.JenaRDF4J; import org.apache.jena.ext.com.google.common.io.ByteStreams; import org.apache.jena.query.DatasetFactory; import org.apache.jena.rdf.model.*; import org.apache.jena.riot.JsonLDWriteContext; import org.apache.jena.riot.Lang; import...
41.87037
123
0.708389
a77c218c0ec8ed485277e38240896107c45da133
2,056
package org.kunze.diansh.service; import com.baomidou.mybatisplus.extension.service.IService; import com.github.pagehelper.PageInfo; import org.apache.ibatis.annotations.Param; import org.kunze.diansh.controller.vo.SkuVo; import org.kunze.diansh.entity.HotelSku; import org.kunze.diansh.entity.Sku; import java.util.Li...
20.56
108
0.614786
19c830dad48883f905f529fbd5fb91051b71af14
1,058
package com.webank.ai.fatecloud.system.dao.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.*; impo...
27.128205
64
0.751418
1b1ea189591b97d88008ac1eaddb3abbaccc4cb2
155
package org.ddd4j.value.versioned; //TODO needed? @FunctionalInterface public interface EventProcessor<K, V, T> { T applyEvent(Committed<K, V> event); }
19.375
42
0.754839
410be5422aecbbf67ddbc308cde117c08558f3b5
834
package Nov2020Leetcode; import java.util.Arrays; public class _1317ConvertIntegerToTheSumOfTwoNoZeroIntegers { public static void main(String[] args) { System.out.println(Arrays.toString(getNoZeroIntegers(2))); System.out.println(Arrays.toString(getNoZeroIntegers(11))); System.out.println(Arrays.toString(getN...
32.076923
150
0.705036
41844b92edc78664d470402d1048e8b69e6e87f0
951
package ru.job4j.map; import org.junit.Test; import ru.job4j.map.User2; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * @author Денис Мироненко * @version $Id$ * @since 04.10.2018 */ public clas...
25.026316
63
0.658254
c20a05158ba8f1e52d2bc519141aee45103d0150
4,429
/* * Copyright (c) OSGi Alliance (2002, 2010). 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 re...
29.526667
94
0.705351
19fff286c50dd25477d1b7023eafb15ce11c9f02
1,429
package api.http.httpResponse.Recruiter.RMP; /** * Created by zero on 20/2/17. * * Custom employee class */ public class EmployeeResponse { private Long partnerId; private String firstName; private String lastName; private String mobile; private String emailId; private String employeeId; ...
19.575342
50
0.627012
e5df0043b54f11b0099874704bb083e840c4bf50
2,871
package com.dida.rn.plugin.theme; import android.util.Log; import com.dida.rn.MainApplication; import com.dida.rn.R; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import javax.annotation.Nonnull; p...
35.444444
97
0.635319
0d5755477afbe2aed35f2a453631a44198b030c4
3,383
package com.mchapagai.movies.utils; import android.animation.ValueAnimator; import android.annotation.SuppressLint; import android.content.Context; import android.view.View; import android.view.animation.Animation; import android.view.animation.Interpolator; import android.view.animation.Transformation; import android...
39.337209
100
0.707065
89022a8c3549e3c024c17c706babe8302feac4ca
1,969
package org.fuin.cqrs4j.example.spring.query.views.common; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.validation.constraints.NotNull; import org.fuin.cqrs4j.ProjectionService; import org.fuin.esc.api.StreamId; import org.fuin.objects4j.common.Contract; import org...
34.54386
101
0.7161
4198f7e520986e92c10b38a46799e8df244c5adb
1,873
package util; import java.security.SecureRandom; public class CommonUtils { /** * printListNode 打印单向链表 * * @param listNode * @return void * @author WangZhe * @since 1.0 */ public static void printListNode(ListNode listNode) { if (listNode != null) { if (...
26.380282
93
0.462894
12dfb62e85fa3e36fac4ec7cc05b6942e48e9761
834
package zone.cogni.asquareroot.security; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.test.context.support.WithSecurityContextFactory; import zone.cogni.asquare.security.model.Authentication...
41.7
115
0.845324
3b71aae3ea510f216013e53ded6aa6882b0d029c
1,268
// https://leetcode.com/problems/next-greater-element-i/ import java.util.Arrays; public class NextGreatestElement { public static void main(String[] args) { int[] nums1 = {1,3,5,2,4}; int[] nums2 = {6,5,4,3,2,1,7}; System.out.println(Arrays.toString(nextGreaterElement(nums1, nums2))); ...
30.190476
78
0.399054
be65f8b07f7e7aa9ade979e59139e75c39a986b4
4,292
/** * This work is protected under copyrights held by the members of the * TOOP Project Consortium as indicated at * http://wiki.ds.unipi.gr/display/TOOP/Contributors * (c) 2018-2021. All rights reserved. * * This work is dual licensed under Apache License, Version 2.0 * and the EUPL 1.2. * * = = = = = = = = ...
40.490566
122
0.657735
14c735e6cb7d46ee1931b303b0045f8f40eedf61
108
package dot.junit.opcodes.invoke_virtual_range.d; public class Snippet { public void test() { } }
13.5
49
0.694444
fe44c68e46234819a0f50d5fba60ebdeb7e00a56
17,529
/******************************************************************************* * Copyright 2016 Intuit * <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.o...
44.716837
145
0.693822
814c258c4414e2baed9e9eb23b5238658866e9ce
231
package sample; /** * Created by freemanliu on 3/19/18. */ public class AlienSource { private final String v; public AlienSource(String v) { this.v = v; } public Alien getAlien() { return new Alien(v); } }
12.157895
36
0.623377
5929c77ee70279dcaac2848e930d99a439442dc7
3,631
package com.roberto.cotaeasy.controllers; import com.roberto.cotaeasy.domain.base.RetornoBaseModel; import com.roberto.cotaeasy.domain.entities.Cotacao; import com.roberto.cotaeasy.domain.entities.CotacaoLance; import com.roberto.cotaeasy.domain.models.NovaCotacaoModel; import com.roberto.cotaeasy.service.CotacaoServi...
50.430556
154
0.719361
4eb7d6330b1adf7af692d40720e3825e74f930a8
1,624
package io.github.jonestimd.finance.config; import java.util.Collections; import java.util.Optional; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import com.typesafe.config.ConfigValueFactory; import org.junit.Test; import static org.assertj.core.api.Assertions.*; public class Config...
31.843137
102
0.695197
fec7bba6a8cd3c7b9844ceb429d3105d5b011f13
295
package com.designpatternstestautomation.utils.constants; public class GeneralConstants { public static final String AUTOMATION_PAGE = "http://automationpractice.com/index.php"; public static final String CLIENT_USER = "Client User"; public static final String CHROME = "chrome"; }
36.875
91
0.776271
4fb3e629df478dd3a9530cfa4728f6128ef50243
5,998
package pt.ipc.estgoh.jogoGalo.atividade; import pt.ipc.estgoh.jogoGalo.baseDados.BaseDados; import pt.ipc.estgoh.jogoGalo.jogadores.Jogador; import java.sql.*; import java.util.ArrayList; /** * A classe GereAtividade será útil para realizar a manutenção dos dados contidos na * tabela atividade da base d...
32.597826
122
0.522841
4aa1149b24391482d771521396b5c2912d91f824
5,911
package com.lifekau.android.lifekau.viewholder; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.ContextMenu; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.google.firebase.database.DataSn...
41.335664
114
0.66317
179a7fbaaf4d7d972ab210fde80e65bf9a381d46
14,300
package us.ihmc.idl; import org.junit.Test; import us.ihmc.commons.MutationTestFacilitator; import us.ihmc.idl.IDLSequence.Byte; import us.ihmc.idl.IDLSequence.Char; import us.ihmc.idl.IDLSequence.Double; import us.ihmc.idl.IDLSequence.Enum; import us.ihmc.idl.IDLSequence.Float; import us.ihmc.idl.IDLSequence.Integer;...
34.047619
137
0.617762
98716318023d92a0c3a415f0b916ca0fc340fdad
3,617
package env; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchSessionException; import org.openqa.selenium.SessionNotCreatedException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; impor...
33.490741
106
0.732928
8dd9e6e9dfd98b0da0acd9d07fff262dde5ec97c
1,170
package ggc.app.main; import pt.tecnico.uilib.menus.Command; import pt.tecnico.uilib.menus.CommandException; import java.io.FileNotFoundException; import java.io.IOException; import ggc.app.exception.FileOpenFailedException; import ggc.core.WarehouseManager; //FIXME import classes import ggc.core.exception.Unavailab...
24.893617
59
0.734188
2149ba7a9eb18e36617cf30cbbb9b49e9ab2eaa9
3,196
/** SJFSchedulingAlgorithm.java * * A shortest job first scheduling algorithm. * * @author: Kamesh Vedula * Spring 2018 * */ package com.jimweller.cpuscheduler; import java.util.*; import com.jimweller.cpuscheduler.Process; public class SJFSchedulingAlgorithm extends BaseSchedulingAlgorithm implements Option...
31.333333
120
0.411452
6e199bfea578575c2f468eeba8b8467bc2e5fc8c
2,823
/* * MFP project, Statement_select.java : Designed and developed by Tony Cui in 2021 * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.cyzapps.Jmfp; import com.cyzapps.Jfcalc.DCHelper; import com.cyzapps.Jmfp.ErrorProcessor.ERRORTYPES; import com.cyzapps.Jmfp...
37.144737
147
0.688983
c16d291fb99668c53e9b481e1bb74b8c92269354
2,537
package banking.business; import banking.Card; import banking.persistence.ICardRepository; import com.google.common.base.Preconditions; import java.security.SecureRandom; import java.util.Objects; import java.util.Optional; import java.util.Random; public class CardService { private static final String CARD_BIN...
34.283784
95
0.698463
6e1d60877831311e48971ab8697f14243989ee55
2,233
package moveexecutors; import chess.Board; import chess.BoardState; import chess.PosicionPieza; import chess.Square; import layers.ColorBoard; import layers.KingCacheBoard; import layers.MoveCacheBoard; import movecalculators.MoveFilter; /** * @author Mauricio Coria * */ class CaptureMove extends AbstractMove { ...
21.892157
83
0.725481
21384f008052238719d6ad83b5bb35f828116df7
7,028
/* * 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.matrixlab.indexservice; import com.google.common.collect.Iterables; import java.io.IOException; import java.util.Map; impo...
35.494949
125
0.604297
62b860dac78c40d47c81eaed789c5e030c2dcc1c
602
public class Quine1{ public static void main(String ... args){ String str = "public class Quine1{%c%cpublic static void main(String ... args){%c%c%cString str = %c%s%c%c%c%c%cchar quote = 34;%c%c%cchar tab = 9;%c%c%cchar nl = 10;%c%c%cchar semicol = 59;%c%c%cSystem.out.printf(str,nl,tab,nl,tab,tab,quote,str,quote,...
60.2
320
0.664452
5756cdf9cd3c1965c627d434b9adc358c7e6e111
3,900
package com.rush.controller; import com.rush.entity.Comment; import com.rush.entity.QuestionBank; import com.rush.service.*; import com.rush.util.CollectionQuestion; import com.rush.util.OnlineQuestion; import com.rush.util.WrongQuestion; import org.springframework.beans.factory.annotation.Autowired; import org.spring...
28.888889
121
0.716923
410e029560ddd7f3be3ed5f6504873138008d991
3,463
package net.sourceforge.ondex.rdf.rdf2oxl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.io.FileInputStream; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; import org.apache.commons.lan...
30.377193
118
0.698239
935d1d856247e6d5f9bab2609c489183972d5a39
405
package com.raven.example.dp.behavioral.command.ex1.tv; import com.raven.example.dp.behavioral.command.ex1.NoParamCommand; /** * TV[关闭]命令 */ public class CloseCommand implements NoParamCommand { private final TVReceiver receiver; public CloseCommand(TVReceiver receiver) { this.receiver = receiver;...
18.409091
66
0.691358
646abffb16289244c350679001bfbf1f1ca81c93
1,976
package com.talanlabs.processmanager.messages.helper; import com.talanlabs.processmanager.messages.exceptions.SynchronizationException; import org.apache.commons.lang3.time.FastDateFormat; import java.util.Calendar; import java.util.concurrent.Semaphore; public class IncrementHelper { private final FastDateForm...
25.662338
81
0.63664
c5faf0d24fc9877c2ca8317366268883fd4e04d2
6,655
package audioplayer; import csvFormatter.CSVFormatter; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ListView; import javafx.s...
35.026316
88
0.574906
c09888984a4a719abb5c009914593bf3be77fb2f
381
package br.com.controle.domain.repository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import br.com.controle.domain.model.security.UserSystem; @Repository public interface UserRepository extends JpaRepository<UserSystem,...
23.8125
72
0.832021
c5950a001d0ae8d79779ff3f8ad2c8f032f0b76b
17,104
package synergynet3.web.apps.numbernet.expressionevaluator; import java.util.HashMap; /** * Java Math Expression Evaluator Freeware V1.01 by The-Son LAI * laitheson@gmail.com http://Lts.online.fr */ /************************************************************************ * <i>Mathematic expression evaluator.</i...
18.816282
124
0.547708
050b02be449936f093afe217261c200e975a9c73
3,163
/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
32.608247
99
0.790389
3d63915f6366b5cc4e377f28ee15eda747c90274
310
package org.zeroturnaround.javassist.annotation.processor.test; public class PrivateInstanceMethod { public String accessPrivate(String input) { return method(input); } private String method(String input) { return input.substring(input.length()/2) + input.substring(0, input.length()/2); } }
25.833333
84
0.741935
5006776f67460e6e953f4fc154d17117e24e0fb3
440
// Java program to check for even or odd // using Bitwise XOR operator class GFG { // Returns true if n is even, else odd static boolean isEven(int n) { // n^1 is n+1, then even, else odd if ((n ^ 1) == n + 1) return true; else return false; } // Driver code public static void main(String[] args) ...
16.923077
55
0.620455
c8eec6c3e1d47d0ff45d6f83f4aa5826bd0c2b05
904
package box.star.net.tools; import box.star.content.MimeTypeMap; import box.star.content.MimeTypeScanner; import box.star.net.WebService; import java.util.HashSet; /** * <p>{@link MimeTypeDriver}s create {@link ServerResult}s from {@link ServerContent} using a server environment such as the {@link WebService}.</p> ...
26.588235
148
0.751106
813e371bfa832e09f62328c59444721e620ff9ee
484
package cz.mg.language.entities.mg.runtime.components.stamps.buildin; import cz.mg.collections.text.ReadonlyText; public class MgInstanceStamp extends MgBuildinStamp { public static final MgInstanceStamp INSTANCE = new MgInstanceStamp(); public static MgInstanceStamp getInstance() { return INSTANCE;...
23.047619
73
0.710744