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 |
|---|---|---|---|---|---|
8668378c22acabbe72bf4d7da645b3ad803957cb | 306 | package com.netflix.dynomitemanager.monitoring;
import redis.clients.jedis.Jedis;
public class SimpleJedisFactory implements JedisFactory {
public SimpleJedisFactory() {
}
@Override
public Jedis newInstance(String hostname, int port) {
return new Jedis(hostname, port);
}
} | 20.4 | 57 | 0.72549 |
ca14e56625dd942ea4c29b94f3f7cb66f2e5cef7 | 156 | package com.github.ingogriebsch.sample.spring.jdbc.postgresql.lob.handling;
import lombok.Value;
@Value
public class DocumentResource {
String id;
}
| 15.6 | 75 | 0.782051 |
d9945983fd7da321024e3f16b8ed8047b12af763 | 1,117 | package in.soundararajan;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by DakshinS on 5/12/2018.
*/
public class NPPESWebFileReader {
String fileName;
public NPPESW... | 23.270833 | 100 | 0.654432 |
2fad04893f775f1cbb62243d7a926b2b466f7819 | 4,439 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
import android.os.*;
public class zzej
implements IInterface
{
protected zzej(IBinder ibinder, String s)
... | 31.935252 | 94 | 0.544717 |
d013f0f7c2f5530f3d54e128aee478df1465d295 | 9,828 | package com.example.registry;
import com.example.registry.model.*;
import org.springframework.web.client.RestTemplate;
public class Injector implements Runnable, ControlApi {
private static final String BASE_URL = "http://127.0.0.1:8080";
private static final String EVALUATION_SCENARIO = "SIMPLE";
priva... | 42.730435 | 173 | 0.683557 |
25a62847b0bfdd4409cf47bcc52a85bdada666c1 | 834 | import java.util.*;
class a2q10
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
double x1,x2,x3,y1,y2,y3,s,a,l1,l2,l3;
System.out.print("Enter the Value of X1 :");
x1=in.nextDouble();
System.out.print("Enter the Value of Y1 :");
y1=in.nextDouble();
System.out.print("Enter... | 29.785714 | 48 | 0.621103 |
1087343653cfed795703fc338d6b53c84ba704d7 | 13,771 | /*
* 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 ... | 40.742604 | 143 | 0.662624 |
59969b946ff4342fe90e5b17ce21ce8accedcb55 | 3,480 | /*
* Copyright 2011 Konrad Malawski <konrad.malawski@project13.pl>
*
* 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 requi... | 27.619048 | 101 | 0.722414 |
b4028d2a2d3f14cef7789059d35d2d2ef92ec260 | 6,957 | /**
* Copyright (c) Dell Inc., or its subsidiaries. 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
*/
package ... | 39.982759 | 122 | 0.576685 |
4472a87e06063d3a0df49654f836fe66e0f51f1f | 2,194 | package de.havemann.lukas.vanillahttp.search;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Objects;
/**
* Simple class to render a h... | 30.054795 | 97 | 0.685506 |
538c03fd195035c84537b712f987c0968d50c7f1 | 2,242 | package org.androidannotations.holder;
import com.sun.codemodel.*;
import org.androidannotations.helper.ModelConstants;
import org.androidannotations.process.ProcessHolder;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.TypeMirror;
import j... | 42.301887 | 144 | 0.725691 |
4445a990cd086bb8ca685e37f63f354b44cb34b6 | 562 | package com.raynigon.unit.api.core.units.si.power;
import com.raynigon.unit.api.core.units.si.SISystem;
import com.raynigon.unit.api.core.units.si.energy.Joule;
import com.raynigon.unit.api.core.units.si.time.Second;
import com.raynigon.unit.api.core.units.general.AlternateUnit;
import javax.measure.Unit;
import java... | 31.222222 | 101 | 0.743772 |
dfa2f469a425bb24ebe5a641cac8176bdb55e927 | 944 | package org.wystriframework.core.wicket;
import org.apache.wicket.util.visit.IVisitFilter;
import org.danekja.java.util.function.serializable.SerializablePredicate;
abstract class Utils {
static <C> IVisitFilter filter(Class<C> type, SerializablePredicate<C> visitObject) {
return filter(type, visitObject... | 36.307692 | 129 | 0.663136 |
7bcf306bceb513204a75fc4fdf90fe56f5c84985 | 2,984 |
package com.google.refine.tests.importing;
import java.io.InputStream;
import java.util.LinkedList;
import org.json.JSONArray;
import org.json.JSONObject;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.google.refine.importers.XmlImporter;
import ... | 39.263158 | 261 | 0.677949 |
2c9b1813531b8fcc3674efee87bb9e7bbe4c92d2 | 947 | package com.fearefull.todoreminder.data.model.db;
import com.fearefull.todoreminder.data.model.other.type.RingtoneType;
import java.io.Serializable;
public class Ringtone implements Serializable {
private final RingtoneType type;
private final String title;
private final String uriString;
public Rin... | 23.675 | 72 | 0.658923 |
bff01e33a9e37e57b5ce36c6a85993fb618de2bf | 300 | import java.util.*;
class A<T> {
protected T t;
protected List<T> list = new ArrayList<T>();
}
public class B extends A<S<caret>tring> {
void foo() {
if (t == null) return;
if (list == null) return;
System.out.println(t);
for (String s : list) {
//do nothing
}
}
} | 17.647059 | 46 | 0.566667 |
df04caa39624e21c065c29e4e4d20a234e9f81a1 | 667 | package buffer;
import org.junit.Test;
import java.nio.ByteBuffer;
public class ByteBufferTest {
@Test
public void testByteBuffer(){
ByteBuffer buffer = ByteBuffer.allocate(256);
System.out.println(buffer.arrayOffset());
System.out.println(buffer.putInt(10));
System.out.prin... | 20.212121 | 53 | 0.641679 |
2bd205d9a3b40cfd37b3dbad19ed5cd768b0007f | 599 | package com.caseystella.sketchy.nosql.exception;
public class UnableToPutException extends Exception {
public UnableToPutException() {
super();
}
public UnableToPutException(String message) {
super(message);
}
public UnableToPutException(String message, Throwable cause) {
super(message, cause);... | 23.96 | 92 | 0.747913 |
60c29284bce588e4ed648c6259470b5b382a61eb | 6,004 | package model;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringEsc... | 30.632653 | 80 | 0.612758 |
a491fdfa09f95d3632b6557161312e595dad08b3 | 1,486 | /*
Copyright 2009-2010 AdMob, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 32.304348 | 143 | 0.794751 |
4ca73acab688f17bc2a52b13a363d992895b383e | 4,272 | package com.test.eprintapp;
import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
impo... | 42.29703 | 99 | 0.689841 |
2fcb56c445f7cef292f4151708d1c246c0bd2985 | 6,762 | package com.works.dto;
import com.works.entities.Storage;
import com.works.entities.Suppliers;
import com.works.entities.Vaccine;
import com.works.entities.VaccineStockAdd;
import com.works.repositories.StorageRepository;
import com.works.repositories.SuppliersRepository;
import com.works.repositories.VaccineRepositor... | 38.64 | 125 | 0.608696 |
284d45909de62a3bfbbc86762ecc2d5920b6838e | 1,089 | /*
* Copyright 2018 OMRON Corporation
*
* 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 l... | 31.114286 | 76 | 0.696051 |
a2c27d2fb24876cf74106c0101883e8220d5caae | 2,219 | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 35.790323 | 91 | 0.681388 |
1fda72f5b9f266fdf23cacdedc8c2c064524885d | 581 | package behavioral.template;
public class NonGamingDesktopAssemble extends DesktopAssembleTemplate {
public NonGamingDesktopAssemble() {
System.out.println("Assembling Non Gaming Desktop");
}
@Override
void addMonitor() {
System.out.println("Choosing Normal Refresh Rate Monitor");
}
@Override
... | 20.034483 | 71 | 0.709122 |
a48422a0dcc7317cc65ddd09a06ed0f569eaf215 | 604 | package com.penglecode.xmodule.common.mybatis.dsl;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.function.Predicate;
/**
* @author pengpeng
* @version 1.0
* @since 2021/10/26 22:26
*/
public class QueryColumns {
private final Set<String> columns = new LinkedHashSet<>();
private ... | 19.483871 | 62 | 0.680464 |
f53b4e86b547900330da46fb63e15865652d5fae | 273 | package com.github.daggerok.car;
import com.github.daggerok.car.domain.Color;
import com.github.daggerok.car.domain.EngineType;
import lombok.Builder;
import lombok.Value;
@Value
@Builder
public class Specification {
final Color color;
final EngineType engineType;
}
| 19.5 | 49 | 0.798535 |
a176608297b3290451bb8f3f1190ba177be44134 | 281 | package com.ms.silverking.cloud.dht.common;
import com.ms.silverking.cloud.dht.client.impl.NamespaceOptionsClientCS;
/**
* For backwards compatibility. New code should use NamespaceOptionsClientCS.
*/
public interface NamespaceOptionsClient extends NamespaceOptionsClientCS {}
| 31.222222 | 77 | 0.825623 |
a870e3f391c615f16bd8b32c65afa70928ca11a7 | 5,481 | package me.mrletsplay.mrcore.bukkitimpl.gui;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.plugin.Plugin;
import me.mrletsplay.mrcore.bukkitimpl.gui.event.GUIBuildEvent;
import me.mrletsplay.mrcore.bukk... | 36.785235 | 128 | 0.722131 |
e3450614309efdfb2e1f5878a2322ee8924c9efd | 5,761 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 35.561728 | 144 | 0.610137 |
4aafe2f8ede83bfab3a36190ec7a4e1f184b790a | 3,511 | package com.github.vizaizai.entity;
import com.github.vizaizai.entity.body.RequestBody;
import com.github.vizaizai.util.value.HeadersNameValues;
import com.github.vizaizai.util.value.StringNameValues;
import java.nio.charset.Charset;
import java.util.Map;
/**
* 请求参数封装
* @author liaochongwei
* @date 2020/7/30 17:3... | 20.294798 | 67 | 0.586443 |
3aae14ba06079bc522a19de797a2eacc2037bd9b | 1,522 | /*
* Copyright 2018 Coinbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 36.238095 | 120 | 0.749671 |
eb6e2e2fde2e7554691f5c836c714c7380e30e2c | 120 | class Main {
static public void main(String[] args) {
Pattern pattern = new Pattern();
pattern.doSomething();
}
}
| 17.142857 | 41 | 0.675 |
8df92c9ee19e7040de778746d4f6575f0a7d781d | 1,343 | /*
* Author: Michael Bar-Sinai
*/
package il.ac.bgu.cs.bp.bpjs.model.eventselection;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import il.ac.bgu.cs.bp.bpjs.model.BProgram;
import il.ac.bgu.cs.bp.bpjs.execution.BProgramRunner;
import il.ac.bgu.cs.bp.bpjs.model.StringBProgram... | 25.339623 | 119 | 0.661206 |
a43b18cc5b56a40a424374ffe55c1180b1a3222e | 1,248 | /* SPDX-License-Identifier: Apache-2.0 */
package org.odpi.openmetadata.adminservices;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceRegistration;
import java.util.ArrayList;
import java.util.List;
/**
* OMAGAccessServiceRegistration provides static methods for an access servic... | 27.733333 | 101 | 0.728365 |
539871db4f37d671bfce9ad73f6121d092178aa6 | 750 | package com.sureshatt.springboot.redis;
import java.io.Serializable;
class RedisData implements Serializable {
private String id;
private String data1;
private int data2;
public RedisData() {
}
public RedisData(String id, String data1, int data2) {
this.id = id;
this.data1... | 16.304348 | 58 | 0.577333 |
c5067b9dec4978e079308d5c2602964f291ab8a0 | 133 | package info.pinlab.ttada.core.model.rule;
public interface Rule {
public int hashCode();
public boolean equals(Object other);
}
| 16.625 | 42 | 0.759398 |
2924c4245e8a34c34e9751d3bea218385e67ec35 | 2,723 | package com.twilio.sdk.resource.list;
import static junit.framework.Assert.*;
import com.twilio.sdk.resource.instance.BasicRequestTester;
import com.twilio.sdk.resource.instance.Key;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.junit.Test;
import org.mockit... | 35.363636 | 100 | 0.669115 |
c32ddf837d68e8220ef4ea9fca4567b3a64a0506 | 22,610 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 40.017699 | 128 | 0.666342 |
a055cde53a8fa86213d1b5d249a6c1560b24e205 | 447 | package oldmana.md.client.card.collection;
import oldmana.md.client.Player;
import oldmana.md.client.gui.component.collection.MDInvisibleHand;
public class Hand extends CardCollection
{
public Hand(int id, Player owner)
{
super(id, owner);
}
public Hand(int id, Player owner, int cardCount)
{
super(id, owne... | 18.625 | 66 | 0.733781 |
e5d2be6d36aedbd5eb0fe436cd60692ef20df8f9 | 2,586 | package uk.gov.hmcts.ccd.data.casedetails.search;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class SortOrderQueryBuilderTest {
private static final String DESC = "DESC";
private final String CASE_TYPE_ID ... | 31.925926 | 106 | 0.679041 |
7a24b934ee76b6702241d74a139e0f877ccf70fd | 8,036 | package io.github.roguesdev.hoard;
import io.github.roguesdev.hoard.serialization.ObjectStreamSerializer;
import io.github.roguesdev.hoard.serialization.Serializer;
import java.io.File;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import java.util.Map;
import org.reactivestreams.Publisher;
import org... | 29.762963 | 99 | 0.621578 |
acc95d4b568dcbc706beee69ba599cc3ed18064a | 11,176 | package com.frye.trading.controller;
import com.frye.trading.pojo.dto.Commodity;
import com.frye.trading.pojo.model.Customer;
import com.frye.trading.service.CommodityService;
import com.frye.trading.service.CustomerService;
import com.frye.trading.service.ShopcartService;
import com.frye.trading.service.OrderService;... | 37.62963 | 170 | 0.639943 |
1e8de39b567e568e3a603dcebe499f6e0ec36ce2 | 2,581 | /*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 22.840708 | 75 | 0.635413 |
6d6168d48fb60e82d817d96ad1b057283e49b2f7 | 1,802 | /*
* Copyright 2017 Donovan Allen.
*
* This file is part of Spriggan.
*
* 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
... | 25.380282 | 76 | 0.591565 |
2a96019293080d7c21161e0a670da2f74a49e5d4 | 1,056 | package org.mineblock.pluginmanager.bukkit.messaging;
import java.io.InputStreamReader;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
/**
* Class that allows reading from a YAML file embedded in the JAR.
*
* @author rylinaux
*/
public class Messag... | 21.55102 | 141 | 0.644886 |
25471ea88d2e2d5e47defb08db6089d533a93742 | 62 | module expenses.application {
requires expenses.readers;
} | 20.666667 | 30 | 0.774194 |
0dd6916679f990ada89254c80821f963f20222b5 | 824 | package com.ueboot.shiro.shiro.processor;
import com.ueboot.core.condition.RedisDisabledCondition;
import com.ueboot.shiro.entity.UserInfo;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;... | 26.580645 | 75 | 0.753641 |
668ca75b379e4e9b28ea99358ec9821874110d67 | 4,378 | /**
* WebRTC Connection that requires ICE Servers to initiate connectivity.
*/
package com.openfin.webrtc;
import dev.onvoid.webrtc.RTCIceCandidate;
import dev.onvoid.webrtc.RTCSdpType;
import dev.onvoid.webrtc.RTCSessionDescription;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactor... | 32.191176 | 109 | 0.633851 |
dc52baa3469e40ce7528d399563c6291667f99e8 | 1,277 | package homework29;
import java.util.Scanner;
public class ScoreEx {
private int no;
private String name;
private int kor; private int eng; private int math;
private int total;
private double avg;
private char grade;
private Scanner sc = new Scanner(System.in);
//입력
public void setValues() {
System... | 22.403509 | 190 | 0.610807 |
75f1dfcab6f7726718339526deffbace6b6afa73 | 1,891 | package org.teachingkidsprogramming.section02methods;
import org.teachingextensions.logo.Tortoise;
import org.teachingextensions.logo.utils.ColorUtils.PenColors.Blues;
import org.teachingextensions.logo.utils.ColorUtils.PenColors.Greens;
import org.teachingextensions.logo.utils.ColorUtils.PenColors.Purples;
public cl... | 23.936709 | 70 | 0.68588 |
06d1b90a0b271ca659f458fbb638213c19d8f211 | 661 | package org.develnext.jphp.ext.libgdx.classes;
import org.develnext.jphp.ext.libgdx.LibGDXExtension;
import php.runtime.annotation.Reflection;
import php.runtime.env.Environment;
import php.runtime.ext.java.JavaException;
import php.runtime.reflection.ClassEntity;
import static php.runtime.annotation.Reflection.Name;... | 31.47619 | 74 | 0.7882 |
d529596086e3b93b80fa7d8cc030d3273eda068f | 2,498 | package io.sapl.test.mocking;
import static io.sapl.test.Imports.times;
import java.util.function.Function;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import io.sapl.api.interpreter.Val;
import io.sapl.test.SaplTestException;
public class FunctionMockFunctionResultTest {
private F... | 35.685714 | 93 | 0.755404 |
814249b630e7fa4023a73ebafc704132f22236e4 | 79,078 | /*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | 40.490527 | 146 | 0.727737 |
022dfa89268b5149b13d487442006fc43712c6d6 | 1,756 | package org.qiunet.quartz;
/**
* 一个线程调度
*/
public interface IJob {
/**
* 执行
*/
Boolean doJob();
/****
* 对应 秒 分 时 日 月 周 年(可以不指定)
*
字段 允许值 允许的特殊字符
秒(Seconds) 0~59的整数 , - * / 四个字符
分(Minutes) 0~59的整数 , - * / 四个字符
小时(Hours) 0~23的整数 , - * / 四个字符
日期... | 33.769231 | 67 | 0.513098 |
4e74833be0edf04cfa12e497ab430c2776a7db00 | 753 | package org.yarlithub.yschool.repository.model.dao.yschool.impl;
import com.felees.hbnpojogen.persistence.impl.GenericHibernateDaoImpl;
import org.yarlithub.yschool.repository.model.obj.yschool.SchoolHasStaffHasRolePK;
import org.springframework.stereotype.Repository;
import org.yarlithub.yschool.repository.model.dao.... | 34.227273 | 154 | 0.831341 |
5bfbdab65c45f9451b6824647dbc0954cbb1f4ba | 249 | package com.cloudogu.smeagol.wiki.infrastructure;
public final class LuceneFields {
static final String CONTENT = "content";
static final String PATH = "path";
static final String MESSAGE = "message";
private LuceneFields() {}
}
| 20.75 | 49 | 0.710843 |
60a7501141ca2778b4d18a625c27830fc4bb1ac9 | 398 | package com.project.lebiton.dao;
import com.project.lebiton.model.impl.*;
import java.util.List;
public interface AdministradorDaoInterface {
List<Medico> listarMedicos();
List<Agenda> listarAgenda();
List<AgendaMedico> listarAgendaMedico();
List<Paciente> listarPacientes();
List<Consulta> lista... | 23.411765 | 60 | 0.753769 |
e0bc17d4b6de0e0af04c65c6a63983281f9fbff6 | 318 | package ro.robertgabriel.configuration;
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;
public class SecurityBootstrap extends AbstractSecurityWebApplicationInitializer{
@Override
protected boolean enableHttpSessionEventPublisher() {
return true;
}
}
| 26.5 | 90 | 0.814465 |
ecc53321bf4e1ff540ec04b3c26bf9fe3e12e118 | 1,881 | package net.spring.crs.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.spr... | 23.810127 | 64 | 0.760234 |
2d476cbc96fde0944358ae486fb09bedbc0efd68 | 2,720 | package follow.twentyfourking.learning_arouter.testinterceptor;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.util.Log;
import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.an... | 41.212121 | 97 | 0.641912 |
423d3c250e87498aeebd3f31480b0cf8839fc8f9 | 397 | package dias.thiago.importgradle;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ImportgradleApplication {
public static void main(String[] args) {
SpringApplication.run(ImportgradleApplication.class, args... | 24.8125 | 68 | 0.816121 |
76b2d08e50770a923d6d8eedd10c28e0ecdab02a | 1,371 | import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class Bitstrings {
public static void main(String[] args) {
if (isNotExpectedArgsAmount(args)) {
throw new IllegalArgumentException(Constants.ONE_IN... | 24.482143 | 84 | 0.696572 |
7ba63de55fe74b7bdfcd968ed24bda67a3ad9458 | 4,196 | /**
* The MIT License (MIT)
*
* Copyright (c) 2017 Oskar Mendel
*
* 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... | 28.351351 | 86 | 0.633937 |
b5b94850896aa24f0448ebd8e377022d05742c82 | 207 | import java .io.*;
public class reverse
{
public static void main ( String name , int n)
{
int k,s=0;
while (n > 0)
{
k = n % 10;
s = (s*10) + k;
n = n / 10;
}
System.out.println(+s);
}
}
| 12.176471 | 48 | 0.516908 |
adf9aaac2bc63f65dd426bf5807e0241132e8dbc | 2,707 | /*
* MIT License
*
* Copyright (c) 2017 Barracks Inc.
*
* 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, mo... | 41.646154 | 137 | 0.778352 |
39c645888f3460dda651a25e2c6148bdb9fff6f7 | 586 | package cn.zlmisme.prophet.monitor;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author liming z... | 27.904762 | 72 | 0.805461 |
680993188dfadb202aa8756324f66ff77d1b9a7c | 2,753 | package ca.bc.gov.open.jagefilingapi.qa.frontendutils;
import ca.bc.gov.open.jagefilingapi.qa.frontend.pages.AuthenticationPage;
import ca.bc.gov.open.jagefilingapi.qa.frontend.pages.EFileSubmissionPage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.Java... | 40.485294 | 117 | 0.678533 |
b2dc9ce04c76e5fa3cf71e7800cd3f60ae37dc96 | 7,174 | package twg2.parser.test;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import twg2.junitassist.checks.CheckTask;
import twg2.junitassist.checks.ObjectEquality;
import twg2.parser.textFragment.TextFragmentRef;
import twg2.parser.textFragment.TextFragmentRefImpl;
impo... | 39.855556 | 210 | 0.702258 |
ac037484657f67a31f95500ffab646af3afa61b7 | 1,948 | package com.github.onotoliy.algorithm.trees;
import org.junit.Test;
public class BinaryTreeTest {
@Test
public void test() {
Tree<Long, Long> binaryTree = new BinaryTree<>();
binaryTree.insert(1000L, 1000L);
binaryTree.insert(500L, 500L);
binaryTree.insert(1500L, 1500L);
... | 25.973333 | 57 | 0.617556 |
dc0b3d7eb1e56cb98b4a7a97f1bf6c9ece6fad6d | 919 | package rot.pot.components.RatingCalculator;
import rot.pot.entities.Movie;
import rot.pot.entities.Rating;
import rot.pot.persistence.MoviesDAO;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.transaction.Transactional;
import javax.ws.rs.NotFoundException;
import java.uti... | 24.837838 | 65 | 0.697497 |
ab6da7e29832f220e2cfecc75630569f5005e022 | 1,061 | package com.talanlabs.java.lambda;
/**
* An implementation of Try representing a failure.
* @param <E>
*/
public final class Failure<E> extends Try<E> {
private final Exception exception;
/**
* Wrap the given exception in an instance of Failure.
* @param exception
*/
public Failure(Exce... | 20.018868 | 66 | 0.582469 |
e5992291b38da8eb966ab32ce9c2f4ce324d8a3a | 1,537 | /*
* 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 collabrs_recommender.wrappers.nodejs.DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Resul... | 25.196721 | 107 | 0.592062 |
7576bac9ac96631c71192c42917238d548f4c4b2 | 32,536 | /*
* A_Number.java
* Copyright © 1993-2018, The Avail Foundation, LLC.
* 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 ... | 37.056948 | 80 | 0.704143 |
09c0f2369143b11c87fdeb52a07622bfa995ce6b | 2,540 | package at.jku.cg.sar.world;
import java.util.ArrayList;
import java.util.List;
import at.jku.cg.sar.core.grid.Grid;
public class World implements Cloneable {
public static final int TILE_WIDTH = 30; // meters
protected final String name;
protected final int width, height;
protected final List<Grid<Double>> l... | 22.678571 | 87 | 0.657087 |
2710467994f327ae244c14cb5f975e1365990544 | 2,975 | package ru.daniilazarnov.network;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import org.apache.log4j.Logger;
import ru.daniilazarnov.FileSender;
import ... | 31.989247 | 108 | 0.567731 |
74821fea62d52d12bbc6f99faadf7bd1c5c92a6a | 1,544 | /*
* 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 edu.psu.ist412.mFinance.models;
import java.util.Collection;
import java.util.Set;
import org.springframework.security.core.Gr... | 22.057143 | 79 | 0.67228 |
d30be2f0923088fabf5a659a5ee6937bfab588b2 | 14,490 | /*
* Copyright DMS Jiazht. All rights reserved.
*
* The code was generated by tools.
* if you want to modify it, regenerate is Deprecated.
* if you want to regenerate the code strongly, please backup the code first.
*/
package com.shareworx.ezfm.problem.details.model;
import com.shareworx.platform.persist.Domai... | 19.607578 | 83 | 0.696273 |
9e3a16be076b727c0573f8eade3ef7b02d4d26f4 | 844 | package org.noob.thinking.chapter11.foreach;
import java.util.Iterator;
public class IterableClass implements Iterable<String>{
protected String[] words=("And that is how"+"we know the Earth to be banana-shaped").split(" ");
@Override
public Iterator<String> iterator() {
return new Iterator<String>(){
priv... | 19.627907 | 97 | 0.667062 |
2d6924d8a6b605fad76596a35d7b1313cba784a5 | 401 | package network.marmoj.client.response;
import io.netty.handler.codec.http.HttpResponseStatus;
public class IntentResponse {
private HttpResponseStatus status;
public IntentResponse(HttpResponseStatus status) {
this.status = status;
}
public HttpResponseStatus getStatus() {
return status;
}
pu... | 19.095238 | 54 | 0.750623 |
0694affa54039a3559c80e89de11ec8e532d9579 | 7,852 | /* Copyright 2011--2018 The Tor Project
* See LICENSE for licensing information */
package org.torproject.descriptor.impl;
import org.torproject.descriptor.DescriptorParseException;
import org.torproject.descriptor.DirSourceEntry;
import org.torproject.descriptor.DirectorySignature;
import org.torproject.descriptor.... | 35.369369 | 79 | 0.716251 |
d3f91439a598d57f9fb05da964c61450d4412a28 | 3,170 | package at.ac.uibk.mcsconnect.sshsessionmanager.impl.hidden;
import at.ac.uibk.mcsconnect.common.api.NetworkTarget;
import at.ac.uibk.mcsconnect.sshsessionmanager.impl.hidden.exception.SshSessionException;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import org.slf... | 50.31746 | 205 | 0.707886 |
4962b9395bfdf273529b6eb7f77091e750e6de79 | 610 | package Ejercicios;
/**
* @author iza19
* @version 1.0
*
* Dado el fichero secuencial ARTICULOS.DAT, cuyos campos son: NART, ARTICULO, PVP, STOCK y MINIMO.
* En otro fichero VENTAS.DAT, están almacenadas las modificaciones de los productos durante el día,
* cuyos campos son: NART2, VENTAS y TIPO. El campo TIPO p... | 35.882353 | 104 | 0.732787 |
5a45139ca96871b1d388662fb68072f7a12f74e9 | 6,128 | package com.alibaba.otter.node.etl.load.loader.common;
import com.alibaba.otter.node.etl.load.exception.LoadException;
import com.alibaba.otter.shared.etl.model.EventData;
import org.springframework.util.CollectionUtils;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Ma... | 37.139394 | 99 | 0.55891 |
a0c3f4076fe49c55013bbc9a25a5a1619fd24e1a | 1,651 | package uk.ac.ebi.spot.goci.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uk.ac.ebi.spot.goci.model.Association;
import uk.ac.ebi.spot.goci.model.AssociationUploadRow;
import uk.ac.e... | 32.372549 | 114 | 0.700182 |
78276b0ee96e5c02eeeeca78a092af89e53c2577 | 5,200 | // File is part of TouchSC (c) 2020 msg-programs, see LICENSE
package main;
import java.awt.BasicStroke;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import ja... | 21.138211 | 91 | 0.575769 |
bf9e0bcf49b25c5aa6e5ae9c51752ee2f103d3ce | 1,483 | import java.util.Scanner;
public class MyMain {
// Calculates the square root iteratively, using the Babylonian method
public static double babylonian(double x) {
double diff = 0.00001;
double n = 5;
double b = 1;
while (n - b > diff) {
double m = (n + x / n) /... | 24.716667 | 82 | 0.514498 |
0608f0437db849daa21667c1442568d85fdbd26a | 5,505 | /*
* BSD 3-Clause License
*
* Copyright (c) 2021, Corby
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
... | 39.321429 | 135 | 0.6396 |
afeb42adb001ad50cc129f6b9de37e866f1f7ef4 | 1,045 | package website.automate.jwebrobot;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static java.util.Arrays.asList;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class ConfigurationPropertiesTest {
private ConfigurationProperties properti... | 27.5 | 100 | 0.677512 |
606f764624f7822159eec48a5b52e306c38192f1 | 2,462 | package Chap2;
import javax.swing.*;
import java.io.IOException;
import java.net.*;
public class Server_UI {
private JPanel panel1;
private JTextField textField1;
private JTextField textField2;
private JButton start_Button;
public JTextArea textArea1;
private JButton EXIT_Button;
private S... | 34.194444 | 124 | 0.537774 |
46fd89bd11df09cba7a2993b2d8b264625672933 | 1,591 | /*
* 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 transportadora;
/**
*
* @author Francisco
*/
public class Home extends javax.swing.JInternalFrame {
/**
* Creates... | 31.82 | 107 | 0.67379 |
d9f96059d5ecc5f2fc437473ad5b92eb8e10f284 | 3,008 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sa.lib.grid;
/**
*
* @author Sergio Flores
*/
public final class SGridPaneSettings {
private int mnPrimaryKeyLength;
private int mnTypeKeyLength;
private boolean mbDateApplying;
private bool... | 41.777778 | 80 | 0.736702 |
d675a4e54c726d46c109016e52cc7e88ddea0ac6 | 11,937 | package TopicDetection;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.uti... | 29.54703 | 111 | 0.708553 |
aa3c2c0ef7b87b71f63084b8df776928e612f8d1 | 868 | package com.halohoop.mergebitmap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.halohoop.mergebitmap.utils.Utils;
public class MainActivity extends AppCompatActivity {
... | 31 | 85 | 0.735023 |
1bb98070a7a04bb5f77cdda1ab5802eb31e9a392 | 1,053 | package com.github.jikoo.planarwrappers.world;
import com.github.jikoo.planarwrappers.util.Generics;
import java.util.EnumSet;
import java.util.Set;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.NotNull;
/**
* A base for a {@link BlockDataTransformer} that operates in multiple {@link Direc... | 30.970588 | 101 | 0.745489 |
2eafcb8bbb62330e66f35d7e531656a621129adc | 509 | package no.nav.melosys.eessi.models.sed.medlemskap.impl;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class SvarAnmodningUnntakBeslutningTest {
@Test
void beslutningAvslag() {
SvarAnmodningUnntakBeslutning beslutning = SvarAnmodningUnntakBeslutning.fra... | 29.941176 | 110 | 0.776031 |
0c812355f2574a20ae480bb5b09218d36a84bb52 | 4,796 | package com.wwish.ganalytics.utils;
import android.content.Context;
import android.text.TextUtils;
import static com.wwish.ganalytics.utils.GMSharedPreference.SharePreferenceKeyEnum.sid;
import static com.wwish.ganalytics.utils.GMSharedPreference.SharePreferenceKeyEnum.sidTime;
final public class PubParamSharedPref... | 27.405714 | 112 | 0.664304 |
1ca1641e858dbbbf7d132e2e7b563f22d0c2235e | 527 | package Model;
public class ReimbType {
private int TypeId;
private String Types;
public ReimbType(int typeId, String types) {
super();
TypeId = typeId;
Types = types;
}
public ReimbType() {
super();
}
public int getTypeId() {
return TypeId;
}
public void setTypeId(int typeId) {
TypeId = typeId;
}
pub... | 11.711111 | 65 | 0.669829 |
9e6612df95ef59f2f94aa302cb65f8641bed6f01 | 1,777 | package com.axinom.drm.sample.license;
import androidx.annotation.StringRes;
import com.axinom.drm.sample.R;
/**
* Player error codes
*/
@SuppressWarnings("WeakerAccess")
public enum LicenseManagerErrorCode {
/**
* DRM scheme is not supported by current Android SDK
*/
ERROR_300(300, R.string.lice... | 24.013514 | 67 | 0.649972 |
df71b563a604eabe87b5acfc9bd252f56b54d0ad | 2,705 | package edu.nccu.cs.simmeter.util;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.Security;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKe... | 36.554054 | 88 | 0.702033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.