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
b1ffd8cbd517e7c24a539dcb73c8414392e13298
825
package joshie.enchiridion.wiki.gui.buttons; import joshie.enchiridion.wiki.WikiHelper; import joshie.enchiridion.wiki.gui.GuiLayers; import joshie.enchiridion.wiki.gui.GuiMenu; public class ButtonWikiLayersVsMenu extends ButtonWikiSwitch { public ButtonWikiLayersVsMenu(int id, int x, int y) { super(id, x...
26.612903
62
0.596364
c0eec0c4cb15cc7140c411d2ad620c162605381c
10,466
/* * Copyright (C) 2014 Camptocamp * * This file is part of MapFish Print * * MapFish Print is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
42.893443
140
0.633289
36805cb38807a489302fc97361caae06407d682e
68
package p; class C { void k() { new A().m(4); } }
7.555556
21
0.367647
62cf546d699a9bd7e24659fe2e069e430ddb1e37
25,567
package org.apache.solr.cloud; /* * 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 ...
40.841853
191
0.67947
61e784a9797ad72bf375192e3deea31cd3057c05
2,673
package main.java.entities; import java.util.LinkedList; import java.util.ListIterator; import java.util.NoSuchElementException; import javafx.scene.canvas.GraphicsContext; import main.java.util.Region; public abstract class Lane { private Region region; // 1- close to divider, 2 - away from divider private Ro...
17.82
81
0.691732
cf61d430fa03dba6b0cad7f1a626383d9ea938a9
1,586
class Solution { public int ladderLength(String beginWord, String endWord, List<String> wordList) { int flag = 0; Map<String, Integer> map = new HashMap<>(wordList.size()+1); map.put(beginWord,0); for(int i=0;i<wordList.size();i++) { map.put(wordList.get(i),0); ...
35.244444
97
0.503153
6653c9a3eea9470d2cc13201988c4e62e7791050
1,697
/***************************************************************************** * This file is part of the Prolog Development Tool (PDT) * * Author: Lukas Degener (among others) * WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start * Mail: pdt@lists.iai.uni-bonn.de * Copyright (C): 2004-2012, CS Dept. III, Univ...
25.328358
78
0.622864
3813fa182fabf9cb18e5b4e0944f36a7eece0c89
1,771
/* * Copyright (C) 2020 The Android Open Source Project * * 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...
32.2
99
0.734613
35a57b9f7907b231913602ef04ee1f34368d1451
1,627
/* * Copyright (C) 1999-2011 University of Connecticut Health Center * * Licensed under the MIT License (the "License"). * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.opensource.org/licenses/mit-license.php */ package cbi...
26.672131
71
0.675476
4803290e63937b9a70c24b21a2d9fc7f0edd5dcd
234
package pl.krych14m.ramki.wycennikram.ramki.products; import pl.krych14m.ramki.wycennikram.api.products.Product; public class Hook implements Product { @Override public String getName() { return toString(); } }
19.5
58
0.722222
7b2d7aeec1429db0b9d218d29863c3170ca32f0f
276
package com.codegym.task.task02.task0207; /* Part of a calculator */ // Mustafa YAŞAR public class Solution { public static void main(String[] args) { int a = 5; int b = 7; System.out.println(a + b); System.out.println(a * b); } }
15.333333
44
0.576087
571aa420cf798addf650b89ffb3d42b2ba2a2ab8
125
package com.zdg.spring.service; /** * @Author zdg * @Description TODO */ public interface UserService { void sayHi(); }
12.5
31
0.68
c5cd1d3111c3a134ea02bed529ef5142cb5867e0
437
package fi.riista.test.runners; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Inherited @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @inter...
23
44
0.773455
6d7726d3c9c1064f4dffd64c24148988a868d2fe
6,434
// // ======================================================================== // Copyright (c) 1995-2022 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
33.336788
164
0.686975
421b2c3ce009cf8ab8f912dbd8faff7782ab4fed
255
package com.mgireesh; import java.util.List; public class App { public static void main(String[] args) { Solution sol = new Solution(); List<String> list = sol.generateParenthesis(5); for (String s : list) { System.out.println(s); } } }
15
49
0.666667
806e4b6864e9465cc4a537a6fdb7ff70bd27cbe1
142
package com.avaje.ebeaninternal.server.type.reflect; public interface KnownImmutable { public boolean isKnownImmutable(Class<?> cls); }
20.285714
52
0.78169
d1c22abae1bfed4556a5b8b0121ea6c2d8c3e545
3,476
package com.teamupnext.robot; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ public class RobotMap { ...
41.380952
103
0.733602
c03f7b443064503f544c3ade2dd68a9e4c259540
8,303
package cool.sodo.common.base.util; import cool.sodo.common.base.entity.ResultEnum; import cool.sodo.common.base.exception.SoDoException; import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import java.security.*; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509Enco...
30.083333
95
0.638083
03b2a8609398eacdc9f78fcc54b00ebc7a8807de
248
package ru.bclib.blocks; import net.minecraft.world.level.block.Block; public class WoodenPressurePlateBlock extends BasePressurePlateBlock { public WoodenPressurePlateBlock(Block source) { super(Sensitivity.EVERYTHING, source); } }
24.8
71
0.78629
aa3bc17b0425bb0901e16b05ce97fe1f82064c77
12,707
package com.desai.vatsal.mydynamiccalendarexample; import android.content.Context; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.uti...
39.219136
126
0.590383
32a344c2ada6faf189f8f4cfddd226f0cca1460b
1,290
package com.thinkgem.jeesite.modules.mobile.service; import java.util.Calendar; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.thinkgem.jeesite.common.pers...
24.339623
67
0.775194
9b7a55e7b6f32489873caf75a69eee39839ee3a2
2,008
package com.apollo.reverseBits; import java.util.HashMap; import java.util.Map; /** * 190. 颠倒二进制位 * 位运算有很多, 异或 算数左移 算数右移 无符号右移 与或非 * 多次调用, 查表思想[static关键字] * 分治算法-局部与整体旋转思想 */ public class ReverseBits { // you need treat n as an unsigned value // 1.利用API // 2转, 4转, 8转, 4个8反转 publi...
23.623529
68
0.445219
409e56a7b61584c3215339c721143f3f99b69dbe
1,547
package cn.cookie.common.exception; import java.io.IOException; import java.io.InputStream; import java.io.Serializable; import java.util.Arrays; import java.util.Map.Entry; import java.util.Properties; import java.util.Set; import java.util.TreeMap; /** * * 请使用classpath下的cn.upenny.error.properties配置文件定义错误码, 使用get...
25.360656
86
0.702004
848eef455074d5f32b202a1d8508a4bc43562fac
2,425
package com.example.androidmultichoicesquiz.Adapter; import android.content.Context; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import a...
34.15493
141
0.707629
643ef7e7f88a95d638c3a0d6c539fc00e84734ac
2,088
package com.webcheckers.appl.playerlobby; import com.webcheckers.model.states.PieceColor; import com.webcheckers.model.entities.Game; import com.webcheckers.model.entities.Player; import com.webcheckers.model.entities.PlayerEntity; import com.webcheckers.model.gamesaves.GameLog; import com.webcheckers.model.states.Pie...
26.769231
74
0.638889
c129716997a39aef559772805190995f1333121e
753
package com.hoanganhtuan95ptit.rotate; import android.content.Context; import android.support.v7.widget.AppCompatImageView; import android.util.AttributeSet; /** * Created by Hoang Anh Tuan on 12/6/2017. */ class RotateView extends AppCompatImageView { private int rotate; public RotateView(Context contex...
20.351351
78
0.677291
3df9616d16b356b227cff07840d73af864c5252f
3,599
package io.github.jokoframework.security.services.impl; import io.github.jokoframework.common.JokoUtils; import io.github.jokoframework.security.entities.SecurityProfile; import io.github.jokoframework.security.errors.JokoUnauthorizedException; import io.github.jokoframework.security.repositories.ISecurityProfileRepos...
38.698925
120
0.676577
d049919528af74199c104ddfe9600cda00078062
14,453
package de.kid2407.bahnplugin.classes; import de.kid2407.bahnplugin.BahnPlugin; import de.kid2407.bahnplugin.util.DBHelper; import org.bukkit.command.*; import org.bukkit.entity.Player; import org.jetbrains.annotations.NotNull; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException...
47.542763
200
0.541618
01f8bdf0a6b9885db1bdff682a42d03aba933c70
12,881
package org.pmiops.workbench.cohortreview; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Maps; import java.sql.ResultSet; import java.sql.SQLException; import java.text.SimpleDateFormat; imp...
40.253125
99
0.680537
5807522eb7bf59bd17263a39da53cf9d688d75ba
148
package io.github.ulisse1996.jaorm.vendor.specific; public interface AliasesSpecific extends Specific { String convertToAlias(String name); }
21.142857
51
0.804054
fa6fc2f30180c58cede3decad04145dc4c7f2db1
296
package com.github.cbuschka.hexarch_eval.domain; import lombok.AllArgsConstructor; import lombok.Getter; import java.util.Date; @AllArgsConstructor @Getter public class UpdateStockCommand { private String supplierNo; private String itemNo; private int amount; private Date updatedAt; }
14.8
48
0.807432
643c457dcc17ae7ca5be29c66e1e84914575bd77
6,628
/******************************************************************************* * Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ...
51.379845
198
0.746982
546fba20215d6eaba1ec9e0eb6aab905b2f354b5
1,152
/* * 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 Modelos; import java.util.List; public class PDF { private List<String> ingrediente; private List<Strin...
22.153846
87
0.607639
55b5d8faa05079fc304a835d6a24b3b9e960e416
3,822
/** * pims-web org.pimslims.presentation.vector RefSampleBean.java * * @author pajanne * @date May 28, 2009 * * Protein Information Management System * @version: 2.2 * * Copyright (c) 2009 pajanne The copyright holder has licenced the STFC to redistribute this * software */ packa...
26.541667
103
0.654108
17d7fa6ee58b08296acd4a3fac88ce6980d74aa6
2,239
package net.chrisrichardson.eventstore.examples.todolist.todoservice.backend; import io.eventuate.javaclient.spring.EnableEventHandlers; import io.eventuate.sync.AggregateRepository; import io.eventuate.sync.EventuateAggregateStore; import net.chrisrichardson.eventstore.examples.todolist.TodoRepository; import net.chr...
43.901961
194
0.851273
cb246fc4f831a400504c74202ca31b2351ab1830
4,876
/* * Copyright 2015-2018 52°North Initiative for Geospatial Open Source * Software GmbH * * 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...
40.97479
115
0.729696
4149a68c98d2aacc89962e865bc1fa7092f514a6
270
package com.avanade.dio.api.repository; import org.springframework.data.repository.CrudRepository; import com.avanade.dio.api.models.Produto; public interface ProdutoRepository extends CrudRepository<Produto, String> { public Produto findByCodigo(Integer codigo); }
24.545455
74
0.82963
9ada3ce4938b797d348b49881566ab39a62df151
1,282
package com.wisedu.emap.itpub.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Respons...
29.136364
67
0.807332
c86af7e2c59b9fde17372fc51d79a65b16b831c5
880
import java.awt.event.KeyEvent; import java.awt.event.KeyListener; //keyboard nii utgiin funciton public class Keyboard implements KeyListener { private static Keyboard instance; // key giin utgiig boolean utga buhii aray t hadgalan private boolean[] keys; private Keyboard() { keys = new boolean[256]; } ...
19.130435
60
0.652273
91f210de09110c8d40a9ad8a98c8145225d1f2e7
841
package de.fraunhofer.iem.swan.features; import de.fraunhofer.iem.swan.data.Method; import soot.Scene; import soot.SootClass; /** * Feature which checks whether the current method gets an interface as a * parameter * * @author Steven Arzt * */ public class ParameterIsInterfaceFeature extends AbstractSootFeature...
22.72973
76
0.705113
91e901846ed5d85014b0265cec6f3b9bc4c46d71
1,780
package com.ycsoft.sysmanager.component.config; import java.util.List; import org.springframework.stereotype.Component; import com.ycsoft.beans.config.TExchange; import com.ycsoft.business.dao.config.TExchangeDao; import com.ycsoft.commons.abstracts.BaseComponent; import com.ycsoft.commons.constants.StatusConstants; i...
34.230769
110
0.796067
94fc78594ba7e3c8a8899108a3fa0f203a02cac7
1,255
package com.postnow.views.settings; import com.vaadin.flow.component.customfield.CustomField; import com.vaadin.flow.component.orderedlayout.HorizontalLayout; import com.vaadin.flow.component.textfield.TextField; public class PhoneNumberField extends CustomField<String> { // private final Select countryCode = new ...
36.911765
78
0.69243
74b4b667968bbe4f9c4a1ec22cf672c88bde5ebf
398
package jp.chang.myclinic.logdto.practicelog; import jp.chang.myclinic.dto.DiseaseAdjDTO; public class DiseaseAdjUpdated implements PracticeLogBody { public DiseaseAdjDTO prev; public DiseaseAdjDTO updated; public DiseaseAdjUpdated() { } public DiseaseAdjUpdated(DiseaseAdjDTO prev, DiseaseAdjDT...
23.411765
73
0.731156
2f56d66e184f61638f375050b2bd2c9cfeab7e99
1,660
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.datamigration.v2017_11_15_preview; import java.u...
25.151515
87
0.670482
9b764ab734057cec93429ce933567ede26a18d86
1,386
/**Project name : Melite-Meu (MovieTicketingSystem) Roll no: 0147-BSCS-2019 (Section C) Description: THIS IS THE CLASS WHERE CUSTOMER, MOVIE, AND THE HALL TYPE INTERSECT WITH EACH OTHER used classes : Customer, Movie, GenericHall **/ package HallPackage; import HallPackage.GenericHall; import MainPackage.Custome...
22.354839
108
0.654401
c95c3c319c5cce4c34dec963218300cdcf2d02d4
1,152
package com.baeldung.ssh; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import org.junit.Test; import com.baeldung.ssh.jsch.JschDemo; public class JSchLiveTest { @Test public void givenValidCredentials_whenConnectionIsEstablished_thenServerReturnsResponse() th...
32
119
0.690972
f78e5dd28398364446218396a66600b71824a7a4
465
package com.rpgm.online.services; import org.apache.sling.api.resource.ResourceResolver; /** * API to access information about users and groups. */ public interface UserService { /** * Get the authorable status of the current user. * * @param resourceResolver a resolver identifying t...
27.352941
63
0.692473
7ac2eaaf9b9ad4049712c1a538d948f0ba116ab2
1,436
package com.masanta.ratan.leetcode.study.plan.data.structure.two; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class BinaryTreeRightSideView { /* * Given the root of a binary tree, imagine yourself standing on the right side * of it, return the values of the nodes you can ...
24.338983
85
0.635794
e0373ad0f5d21a18a0eaa827747c76be96f588e4
1,784
package com.example.learnfragment; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class BlankFragment extends Fragment { // public BlankFragment() { ...
31.857143
127
0.643498
33407166e463cc352cc242aa7d0aaf3794cc5b8e
1,670
/* * Copyright 2021-2021 Monkey Group. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
30.363636
101
0.711377
1eb3ba001319a67bf6caa9dcc8f8ed6edc407c91
164
package com.pichu.nanamare.utils; public class GLEtc { public static final int NO_TEXTURE = 0; public static final int GL_TEXTURE_EXTERNAL_OES = 0x8D65; }
23.428571
61
0.756098
1aeb1fbbde09c508e7421aef6b79a2f2e8604302
1,494
package uk.co.cheem.vcshistory.config; import lombok.Value; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; /** * The type Command li...
28.730769
103
0.710174
fee69c5538f051ae9c44b4f2680720b4f557c951
2,103
package com.jwss.sra.system.controller; import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.CircleCaptcha; import com.jwss.sra.common.model.ApiResult; import com.jwss.sra.config.properties.FileUploadProperties; import com.jwss.sra.framework.constant.GlobalValue; import com.jwss.sra.framework.constant.RedisK...
36.258621
123
0.756063
1813604e18d29b7920000ec31e6a44ba9bd4c821
1,030
package jetbrains.mps.vcs.plugin; /*Generated by MPS */ import jetbrains.mps.annotations.GeneratedClass; import jetbrains.mps.plugins.actions.GeneratedActionGroup; import org.jetbrains.annotations.NotNull; import jetbrains.mps.workbench.action.ApplicationPlugin; @GeneratedClass(node = "r:5ec7bf64-acd2-448b-8f9b-ce1b...
46.818182
186
0.821359
ca53e5c799657e4269340a842063900faac27397
469
package by.grodno.krivosheev.transformation.entities; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "BATCH") @Getter @Setter @NoArgsConstructor public class BatchEnti...
20.391304
53
0.778252
1e9db31cb6dd9f556126e9065f88714743d8916f
475
package com.prado.cerveja.dto; public class FotoDTO { private String nome; private String contentType; public FotoDTO(String nome, String contentType) { this.nome = nome; this.contentType = contentType; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; ...
16.964286
50
0.715789
9622e288082db647c666b8518c077913cb0f56a8
3,017
package com.example.diningReview.controller; import com.example.diningReview.model.*; import com.example.diningReview.repositories.DiningReviewRepository; import com.example.diningReview.repositories.RestaurantRepository; import com.example.diningReview.repositories.UserRepository; import org.springframework.beans.fac...
43.1
156
0.765993
976d0d9ba10d06a7ca46ddfec1374f4bfbcaa5a7
449
package com.bdp.framework.data.biz.impl; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.bdp.framework.data.entity.User; @Service @Transactional(rollbackFor = Exception.class) public class UserBiz extends BaseBizImpl<User> { publ...
26.411765
79
0.768374
c18644496e9b7a0bd583b8c83dcdcafc2c63670c
3,719
/* * Copyright (C) 2018 Hortonworks Inc. * * Licenced under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
38.739583
132
0.745093
e37230935a579788b35b699fc0dd07ce93a79eb3
6,114
package com.intellif.consumer.web; import com.google.common.collect.Maps; import com.intellif.utils.ApplicationContextHolder; import com.netflix.loadbalancer.ServerList; import com.netflix.niws.loadbalancer.DiscoveryEnabledServer; import feign.Response; import io.prometheus.client.Counter; import org.springframework.b...
37.509202
121
0.617763
2d02475c8275068b9ec8c8b9f14b9d77f4c3c04b
3,244
package org.osgi.test.cases.upnp.tbc.export; import org.osgi.service.upnp.UPnPLocalStateVariable; /** * * */ public class TestStateVariable implements UPnPLocalStateVariable { /** * The state variable name. */ private final String name; /** * The java type of the variable. */ private final Class< ? >...
19.90184
69
0.658446
af0dac6a009f1012a51723452de110fdef27cdf3
122
package com.engine.ParticleTypes.Interfaces; public interface MoleculeBehavior { void render(); void update(); }
17.428571
44
0.737705
3711642b1798be82108c9e2592cd9f5892ff377c
435
package com.rohan.dp.iterator.problem; /** * Here we changed internal data structure, this will break the code else where */ public class BrowserHistoryUsingArray { private String[] urls = new String[10]; private int count = 0; public void push(String url) { urls[count++] = url; } publi...
19.772727
79
0.616092
31d6254c879b761907a432b7db64bdb368572bd6
3,791
package com.stackroute.controller; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.stackroute.domain.Questions; import com.stackroute.service.QuestionServiceImpl; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; i...
37.91
118
0.739647
1343cb6b663b7bfcbe9d51e8753ac2ada991c133
180,334
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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...
16.438833
813
0.791736
13f155986a14ccedc1b60225235fcbb8776b8b7a
800
package org.seng302.project.service_layer.dto.validators; import org.seng302.project.service_layer.dto.address.AddressDTO; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; /** * Defines the validation method performed on * fields annotated with @ValidAddress in DTOs ...
36.363636
93
0.7375
fd3ba0ec228dcf4a50a68e62f96f446149a57980
1,141
/** * */ package com.kant.general; import java.util.Arrays; import java.util.Deque; import java.util.HashSet; import java.util.LinkedList; import java.util.Set; /** * https://leetcode.com/problems/simplify-path/?tab=Description * * For example, * * path = "/home/", => "/home" * * path =...
20.375
78
0.546012
2ac38b5ac85151a168fc5bf59e137736a9689db1
410
package org.jakubczyk.dbtesting.screens.di; import org.jakubczyk.dbtesting.di.ForActivity; import org.jakubczyk.dbtesting.screens.TodoContract; import org.jakubczyk.dbtesting.screens.TodoListPresenter; import dagger.Binds; import dagger.Module; @Module public abstract class TodoModule { @Binds @ForActivity ...
24.117647
87
0.819512
8bd05d48a7fa9e53164727f766fa5ecaa37c4678
6,544
package com.example.mohamedfadel.cryptomarket; import android.arch.lifecycle.Observer; import android.arch.lifecycle.ViewModelProviders; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.ConnectivityManager; ...
41.681529
136
0.608191
455eb708e98b6dcf13fd4efb11196fce4953c647
11,671
package com.takin.emmet.file; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputSt...
24.518908
86
0.488561
e96b5f12cb39cbc7d5d4f862038301f70ed898d2
1,225
package com.github.leonroy.datademo.user.privilege; import com.github.leonroy.datademo.user.role.Role; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lo...
26.630435
115
0.786122
ad24b0a4abbf4a93ee07a330ff0c4aa98cb14846
3,259
package cn.cerc.mis.core; import cn.cerc.ui.core.HtmlWriter; import cn.cerc.ui.parts.UIComponent; public class UIMenuItem extends UIComponent { private String img = ""; private String name; private String code; private int hrip; private boolean delphi; private boolean menuLock; private St...
24.140741
103
0.534213
dd67143bebb0b94f4fd9832ab42690dab924f225
501
package co.com.sofka.userinterface.landingpage; import net.serenitybdd.core.pages.PageObject; import net.serenitybdd.screenplay.targets.Target; import org.openqa.selenium.By; public class LandingPage extends PageObject { public static final Target SING_IN_LINK = Target .the("Sing In link") ...
27.833333
55
0.698603
bc9e330c8289e86248559b8c6755188ab1146c36
7,858
// ============================================================================ // // Copyright (C) 2006-2016 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
36.548837
123
0.647366
ac5a9639e3f2a24321e9a6dc3b5ae9fe6ea9ecb1
3,884
package jp.sf.amateras.jseditor.launch; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.resources.Resour...
35.962963
116
0.779351
42f18c5cf26d69570202fee2069b61ea0c7cdf99
125
package id.ac.tazkia.payment.virtualaccount.entity; public enum StatusNotifikasi { BELUM_TERKIRIM, SUDAH_TERKIRIM }
17.857143
51
0.784
41b8757cd343e4050aa4532bff8a3243949d19df
532
package com.sectong.infrared; /** * Created by xueyong on 16/9/19. * mobileeasy. */ public class FunctionStatus { private String status; private String rcode; public FunctionStatus(String status) { this.status = status; } public String getRcode() { return rcode; } pub...
16.625
42
0.605263
33c3d4dad5ea227fc98406884a1d0e1f15b71d06
2,725
// settings page package com.example.quicklogs; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; public class SettingsActivity extends AppCompatActivity { private Butto...
35.855263
96
0.638899
979191c24736f8acadf00f0487774d8e7f6e1712
4,191
package com.iskyinfor.duoduo.ui.talkgarden; import com.iskyinfor.duoduo.R; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsList...
25.246988
120
0.702219
71bce6f798d2c1c2d8775a9c0f48bbf55d1481e9
3,513
/* * TeXTokenMarker.java - TeX/LaTeX/AMS-TeX token marker * Copyright (C) 1998 Slava Pestov * * You may use and modify this package for any purpose. Redistribution is * permitted, in both source and binary form, provided that this notice * remains intact in all source distributions of this package. */ package or...
27.880952
73
0.598918
e330bcf5b2bb4b80daa3cbb91cc9a76fc6ac140f
4,288
/* * Copyright (C) 2015 the original author. * * 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...
36.649573
118
0.621035
a4693d9891fdb3b8b4ba2361b64bcd2e38578cc3
246
package org.cytosm.cypher2sql.cypher.ast; /** */ public abstract class Union extends QueryPart { public class All extends Union { public All() {} } public class Distinct extends Union { public Distinct() {} } }
17.571429
47
0.630081
85894d56353f54c89d5be4731f04e07002e64497
31,356
/* * Copyright 2013 Luke Klinker * * 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...
65.87395
133
0.556767
3ebf150a1a2f91661a5873ce2c8ff3a8c80a9bba
2,012
package com.walmartlabs.concord.plugins.ansible.v2; /*- * ***** * Concord * ----- * Copyright (C) 2017 - 2020 Walmart 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 * ...
35.928571
98
0.666998
8cb3866d50fada509587d5b2083ae7d772e5a7b7
4,400
package si.matjazcerkvenik.test.javase.network.telnetstok; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; public class TelnetServer_Stok implemen...
14.61794
87
0.5175
0145504ed09cf2f7a91483a009821a59597584a5
5,164
package edu.cs4730.sqlitedemo; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; // // /* * This an accessor class that do all the work * in the database. This is the object tha...
43.033333
277
0.68416
6a519819c57fecd89c9fabded27ac4532fa24844
17,170
package com.icm.sphynx.mystyles.ui.metro.manager; import com.icm.sphynx.mystyles.ui.metro.tools.MetroUIConfigTheme; import com.icm.sphynx.mystyles.ui.metro.tools.MetroUIComponent; import com.icm.sphynx.mystyles.ui.metro.tools.MetroUIStyleColors; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font;...
43.689567
172
0.573326
83cc0461d8f753bd0e7c0a5e362a495ef7c9f1d1
2,815
/* Copyright 2009-(CURRENT YEAR) Igor Polevoy 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 writi...
37.039474
217
0.684547
a803d2ec9faec4a3c3c0e35652318d67afd7b5dd
922
package cn.finder.wx.app.request; import cn.finder.wx.app.response.FindSessionKeyResponse; import cn.finder.wx.request.WeixinRequest; /*** * 根据CODE获取openid 和 session_key * @author whl * */ public class FindSessionKeyRequest extends WeixinRequest<FindSessionKeyResponse>{ /*** * 小程序唯一标识 */ private String app...
12.630137
81
0.683297
92b32f87bea74df73e9e5f436224f8abfaa26701
463
package com.magc.sensecane.framework.container; public interface Container { /* register an entity of type T in the container and get its class by reflection */ <T> T register(T entity); <T> T register(Class<T> clazz, T entity); /* removes instance for class */ <T> T unregister(Class<T> clazz); /* removes cla...
24.368421
84
0.697624
4479bc5bbd2231299b9179f27f227ce2a80514f6
614
package ObjectPackage; public class MultiplexTable { private int screen_id; private int capacity; public int getScreen_id() { return screen_id; } public void setScreen_id(int screen_id) { this.screen_id = screen_id; } public int getCapacity() { return capacity; } public void setCapacity(int capacity...
17.542857
85
0.705212
0229183a91998366a9134b88330a2a766faa102b
1,429
// Copyright 2014 takahashikzn // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
31.065217
91
0.6669
282e515d22a4e794f3bad1e71d97a19d723bc9d5
103
package com.LuoZhiHao.GUI.ADGUI; import javax.swing.*; public class InsertADFrame extends JFrame { }
14.714286
43
0.776699
366a6f600e1ee55932fdc6cba6d40944f47cb4e8
3,941
package net.lecousin.framework.math; import java.text.ParseException; import net.lecousin.framework.text.StringParser; import net.lecousin.framework.text.StringParser.Parse; import net.lecousin.framework.util.Pair; /** * Range of integer values, with a minimum and maximum. */ @SuppressWarnings("squid:Cl...
29.631579
138
0.624968
3b6c5c810136ba7d7a5b438db80f49a77385d627
146
package pl.thecode.helper.chat; import lombok.Value; @Value class MessageRequest { private long clientTimestamp; private String content; }
13.272727
31
0.773973
f8218bd653ce7ee882f357521ba4be3d63dbf013
7,378
/* * 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 * "Lic...
34
113
0.65858
03b2b977a2b8d6e182c9ef3add1440759d69beeb
1,157
package org.javabahia.cassandra.spring; import java.io.IOException; import org.apache.lucene.queryparser.classic.ParseException; import org.javabahia.cassandra.spring.model.Music; import org.javabahia.cassandra.spring.model.Musics; import org.javabahia.cassandra.spring.service.MusicService; import org.springframework...
38.566667
80
0.79516
6b809d231345ca52b59f1078f670fc6df500f860
2,110
/* * 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...
38.363636
99
0.724645
36e7558c9a19f5094bc218e632083ff3ba6e63eb
27,408
/* * Copyright (c) OSGi Alliance (2000, 2013). 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.662338
174
0.661048
6066f434eceb5b70040608d2774306953dc636a5
358
package com.cts.training.stockexchangeservice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class StockExchangeServiceApplication { public static void main(String[] args) { SpringApplication.run(StockExchangeS...
25.571429
69
0.840782