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 |
|---|---|---|---|---|---|
2f617b3f62d681845406cf1ad06fa204d786ec2f | 218 | package com.icthh.xm.commons.config.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor
@Data
public class ConfigurationEventData {
private String path;
private String commit;
}
| 18.166667 | 43 | 0.793578 |
15fb399269950898caf6c14e76f32a4f7a2d7e80 | 4,543 | package ie.gmit.sw;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.util.Arrays;
/*
* VECTOR PROCESSOR
*
* @author: Morgan Reilly
*
* This cl... | 31.992958 | 112 | 0.6674 |
2a061c99352b8c48aafb14283b601b7ccc691134 | 9,359 | package gutta.apievolution.core.resolution;
import gutta.apievolution.core.apimodel.AtomicType;
import gutta.apievolution.core.apimodel.Optionality;
import gutta.apievolution.core.apimodel.QualifiedName;
import gutta.apievolution.core.apimodel.StringType;
import gutta.apievolution.core.apimodel.consumer.ConsumerApiDef... | 35.585551 | 109 | 0.5819 |
5330ebdac8a338e8a06e3c169e30a0eff2d1983f | 3,482 | package org.metadatacenter.schemaorg.pipeline.experimental;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder... | 35.896907 | 93 | 0.696726 |
74dda1263791780672029bae6c4251ed8f617e0f | 300 | // "Replace with forEach" "true"
public class Main {
static class A {
A next(){return null;}
int x;
}
static boolean isGood(A a) {}
public long test() {
for <caret>(A a = new A(); isGood(a); a = a.next()) {
if(a.x < 3) {
System.out.println(a);
}
}
}
} | 16.666667 | 57 | 0.506667 |
1dbe782ca60b545b1ab8e819f2bf33fee4cdba74 | 1,760 | package com.ficture7.aasexplorer.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.ficture7.aasexplore... | 29.333333 | 115 | 0.66875 |
ab991044216980498d306672ad89670911fce27e | 5,036 | package de.illonis.eduras.mapeditor.gui.dialog;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.util.LinkedList;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import j... | 33.573333 | 98 | 0.753376 |
aa5ce21f2d1564cd24e0f9aff4aa857f8ed6d192 | 66 | package me.alien.tic.tac.to.multiplayer;
public class Client {
}
| 13.2 | 40 | 0.757576 |
218e9cb9b8d5ca44c4792bdf1abcbe41ad249b69 | 245 | package pl.ajtuss.cinematics.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Image {
private String url;
private String filename;
}
| 14.411765 | 35 | 0.804082 |
d531f27d1111a7d8aff1de9810336b114427c711 | 11,578 | package com.upgrad.quora.api.controller;
import com.upgrad.quora.api.model.QuestionDetailsResponse;
import com.upgrad.quora.api.model.QuestionEditRequest;
import com.upgrad.quora.api.model.QuestionRequest;
import com.upgrad.quora.api.model.QuestionResponse;
import com.upgrad.quora.service.business.CommonService;
impor... | 51.6875 | 275 | 0.744515 |
7d5c6f72dd228082e3076eeaf527e9d56a53dc27 | 81 | package main;
public interface PsiSensor {
double popNextPressurePsiValue();
}
| 13.5 | 34 | 0.790123 |
1d37507ed0867f8d48afa6ab1745c25dd4c133f9 | 5,497 | /*******************************************************************************
* Copyright 2015 InfinitiesSoft Solutions 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
*
* ... | 38.173611 | 120 | 0.770238 |
a4ff2f5241dc879e55a3030be042b5143d62c910 | 2,627 | package com.bolo1.mobilesafe1.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by 菠萝 on 2017/7/15.
*/
public class Sputils {
private static SharedPreferences sp;
/**
* 存储boolean值
* @param ctx 上下文环境
* @param key 键对
* @param value 值
... | 24.324074 | 80 | 0.563761 |
ac2884e2ec2a3be9b8767ff51481506b8870438f | 2,693 | /*******************************************************************************
* Copyright (C) 2018-2019 Arpit Shah and Artos Contributors
*
* 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 Sof... | 31.313953 | 80 | 0.722614 |
fde3f46043a5db6c53b920f7148abb2773b4fdfb | 4,440 | package com.sphenon.basics.testing;
/****************************************************************************
Copyright 2001-2018 Sphenon 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 Licen... | 43.106796 | 237 | 0.671171 |
1a77842c1b55d8b211145b405a20d4a01dd2afbd | 17,401 | package com.github.tdurieux.repair.maven.plugin;
import exceptionparser.StackTrace;
import exceptionparser.StackTraceElement;
import exceptionparser.StackTraceParser;
import fr.inria.spirals.npefix.config.Config;
import fr.inria.spirals.npefix.main.DecisionServer;
import fr.inria.spirals.npefix.main.all.DefaultRepairS... | 44.732648 | 188 | 0.576978 |
8df6ec8cf9829dc41d6676f95d74e1ca7c0cdb57 | 1,804 | package id.go.kemendag.siupclientandroid.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import id.go.kemendag.siupclientandroid.R;
import id.go.kemendag.siupcli... | 32.8 | 98 | 0.721729 |
723ea106bb7fdf1eca5b076025cac0cf5085e362 | 123 | package havis.device.io;
public interface IODeviceFactory {
IODevice getInstance();
void release(IODevice instance);
} | 15.375 | 34 | 0.780488 |
7585b6cc449fb1f886535d08c35839d827a49d6c | 44,318 | package high.mackenzie.autumn.lang.compiler.compilers;
import autumn.lang.compiler.ClassFile;
import autumn.lang.compiler.ast.nodes.AnnotationDefinition;
import autumn.lang.compiler.ast.nodes.DesignDefinition;
import autumn.lang.compiler.ast.nodes.EnumDefinition;
import autumn.lang.compiler.ast.nodes.ExceptionDefiniti... | 33.346877 | 124 | 0.588316 |
83e49232208f57babe1937a8d7178fa30dc65867 | 411 | package com.yyt.axios.vo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class MenuVO {
private int id;
... | 19.571429 | 37 | 0.781022 |
3ea8f1de01ece8e1ef52920652817844e11be127 | 3,980 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.loopj.android.http;
import android.content.Context;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
i... | 26.711409 | 93 | 0.600754 |
d344a0b4feb3b9e03feb85e8fc1c761b13874619 | 1,890 | package org.fluentlenium.core.inject;
import org.fluentlenium.core.annotation.Label;
import org.fluentlenium.core.annotation.LabelHint;
import org.fluentlenium.core.label.FluentLabelProvider;
import java.lang.reflect.Field;
/**
* Parses and stores the values of the {@link Label} and {@link LabelHint} annotations of... | 30.983607 | 115 | 0.637037 |
00667335def0bff47a3a8717dd39a990b918ba31 | 5,306 | package org.shapelogic.imageprocessing;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import junit.framework.TestCase;
import org.shapelogic.imageutil.IJImage;
import org.shapelogic.imageutil.SLImage;
import org.shapelogic.polygon.AnnotatedShape;
import org.shapelogic.polygon.Geo... | 38.729927 | 117 | 0.719374 |
5d41282f023d43526074fe695b0bef3d557efadd | 8,680 | package com.orange.analysis.anasoot.printing;
/*
* #%L
* Matos
* %%
* Copyright (C) 2004 - 2014 Orange SA
* %%
* 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.ap... | 35.1417 | 119 | 0.662442 |
0a17441bc789b0cb450c637ff0046fee40c359bd | 53,735 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 48.453562 | 137 | 0.608802 |
2189713ed51b693fdaf5e890ae3be73eb9da8e95 | 1,729 | package mack.servlets;
import ejb.beans.UsuarioBean;
import javax.ejb.EJB;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... | 35.285714 | 91 | 0.692308 |
b0768db4c73d53631504b6528df7835fb72bf2ac | 440 | package se.bm.client;
import java.util.Optional;
import javax.inject.Inject;
import se.smokestack.bm.Command;
public class WarHandler implements ClientHandler {
@Inject
private BrokerHelper brokerHelper;
@Override
public Command command() {
return Command.WAR;
}
@Override
public void handle() {
brokerHe... | 15.172414 | 50 | 0.736364 |
560f5a71ae5d996860376a2a674d1b6c92066e8a | 1,357 | package org.shonminh.helper.util;
public class StringUtil {
public static boolean isSqlComment(String string) {
return (string.trim().startsWith("--"));
}
public static String camelString(String string) {
char[] array = string.toCharArray();
char[] retArray = new char[array.length... | 32.309524 | 148 | 0.501842 |
ff9a11dda0a8aa7971e63cffee16ff3574edb062 | 1,991 | /**
* Sapelli data collection platform: http://sapelli.org
*
* Copyright 2012-2016 University College London - ExCiteS 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
*
* ... | 25.525641 | 91 | 0.730286 |
a7ba72dce28570e02c6a547518ac127e1342e1f4 | 8,667 | /*
Copyright 2015 Mark Otway
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 wr... | 40.5 | 129 | 0.69805 |
9f52ba4225a9a5d7fdeee28d8df2c8a600f844b6 | 4,591 | package com.mmnaseri.utils.spring.data.store.impl;
import com.mmnaseri.utils.spring.data.error.DataStoreException;
import com.mmnaseri.utils.spring.data.sample.models.Person;
import org.hamcrest.Matchers;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.hamcrest.Matche... | 36.436508 | 82 | 0.660858 |
3709ba287da1a72708c7d67fdb5e343a42427ddd | 836 | package org.spincast.plugins.request;
import java.util.Map;
import org.spincast.core.dictionary.Dictionary;
import org.spincast.core.dictionary.DictionaryBase;
import org.spincast.core.dictionary.DictionaryEntries;
import com.google.inject.Inject;
/**
* Messages to be added to the {@link Dictionary}.
*/
public cl... | 26.125 | 105 | 0.730861 |
986e364e0608dc3c9cbdbe736ab96c974d8fb6dd | 33,070 | /*
* 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 ... | 48.418741 | 120 | 0.731569 |
4f0d1d2fe0875887dc7a0a192351c12ec74e3a7d | 944 | /**
*
*/
package hr.vestigo.java.tecaj.zadaca1;
import java.util.Scanner;
/**
* Calculating the distance between two points in 2D space.
*
* @author franv
*
*/
public class Zadatak4 {
/**
* @param args
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.pri... | 21.953488 | 67 | 0.670551 |
b788b1e85ad86bca3c6e42285d93419baa961774 | 2,608 | package com.example.dronedelivery;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
public cla... | 33.012658 | 117 | 0.66411 |
da0f9442cff0ca65cfca6aa8eb04841713864701 | 2,010 | package com.seanthomascarroll.jmediator;
import com.seanthomascarroll.jmediator.pipeline.PipelineBehavior;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
// TODO: javadocs
public interface ServiceFactory {
/**
*
* @param requestClass
* @param <T>... | 29.130435 | 136 | 0.616915 |
896a264383ae21c79b9b4bb5d8a6645747443dfe | 6,753 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 30.835616 | 100 | 0.611728 |
23fcf99280442d01341ac97b4c65fbf65171588e | 12,662 | /* Licensed under MIT 2021. */
package edu.kit.kastel.mcse.ardoco.core.common.util;
import java.util.List;
import org.apache.commons.text.similarity.JaroWinklerSimilarity;
import org.apache.commons.text.similarity.LevenshteinDistance;
import org.apache.logging.log4j.CloseableThreadContext.Instance;
import org.eclipse... | 49.850394 | 154 | 0.704786 |
901f6d772d5d54a1d9826808de51e02d44ae727f | 1,382 | package no.aegisdynamics.habitat.preferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import no.aegisdynamics.habitat.R;
/**
* Preference Activity
*/
public class PrefsActivity extends AppCompatActivity {
... | 28.791667 | 82 | 0.644718 |
ace4bcc09d68946206fdedfcfa47d94aac9caf37 | 3,031 | /*
* Copyright 2016-2019 Sean J. Barbeau (sjbarbeau@gmail.com),
* Philip M. White (philip@mailworks.org)
* Chunzhang Mo (victormocz@gmail.com)
* 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... | 37.419753 | 152 | 0.720554 |
1847ada0bc0d3933bea706d5fe183ed7be607734 | 1,599 | package org.openex.tcpc.bean;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "problem_definition")
public class TCProblemClassDefinition {
@DatabaseField(generatedId = true)
private Integer id;
@DatabaseField(canBeNull = false)
pr... | 22.521127 | 109 | 0.651657 |
9f4ade353668221d870426d9bf0e1a9dfd9c1b57 | 1,553 | package org.opensha.oaf.oetas.griddedInterpGMPE;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.opensha.commons.data.Site;
import org.opensha.sha.earthquake.EqkRupture;
import org.opensha.sha.earthquake.ProbEqkSource;
import org.opensha.sha.imr.ScalarIMR;
import org.opensha.sha.util... | 28.236364 | 82 | 0.719897 |
9e454128dcbb210d0c94209582fbad0613a26e6a | 1,180 | package com.swak.wechat.message;
import com.swak.utils.CDataAdapter;
import com.swak.utils.XmlParse;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* 自定义菜单事件: 扫码推事件的事件推送 scancode_waitmsg 或 scancode_push
*
* @author lifeng
... | 25.106383 | 70 | 0.710169 |
ca744241a431ae986d11390537f01c96ee5b4157 | 3,555 | package io.github.yexiaoxiaogo.SQLSelect;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
public class App {
//JDBC驱动名
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
//连接数据库的url
static fina... | 23.85906 | 119 | 0.631224 |
5ed2ff4634751f13ab7f8c3f9e7945ea5cdd3637 | 23,111 | /*
* (c) Copyright 2017 Palantir Technologies Inc. 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 ... | 48.147917 | 120 | 0.666998 |
a7d3931beefc74429b439c64f97a1153835ed000 | 3,201 | package ryuunoakaihitomi.xposed.screenshothookbox;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
import android.os.Vibrator;
import android.service.quicksettings.Ti... | 40.0125 | 150 | 0.57607 |
21dfbb7ef9c582efaec1cf98fd5810693778875e | 1,301 | package e02ConditionalStatements;
import java.util.Scanner;
public class E04ToyShop {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double tripPrice = Double.parseDouble(scanner.nextLine());
int puzzleNumber = Integer.parseInt(scanner.nextLi... | 39.424242 | 133 | 0.607994 |
d6af914a007e69f30c5d316c2337c21c05788d2a | 3,230 | /**
* @author Francesco di Dio
* Date: 29/dic/2010 23.31.50
* Titolo: SavePreferencesAction.java
* Versione: 0.2.0 Rev.a:
*/
/*
* Copyright (c) 2011 Francesco di Dio.
* tabuto83@gmail.com
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated document... | 31.666667 | 118 | 0.768731 |
d461d18c206053e56bea318417f8bf3af15cb20c | 325 | package edu.iis.mto.lab_0;
import java.util.ArrayList;
import java.util.List;
public class TailsGenerator {
public List<String> tails(String value) {
List<String> l = new ArrayList<>();
for(int i=0;i<=value.length();i++)
l.add(value.substring(i));
return l;
}
... | 20.3125 | 46 | 0.581538 |
83b230536cb6aa674bc819b482527fcbc687a16c | 417 | package com.github.fengyuchenglun.apidoc.core.render;
import com.github.fengyuchenglun.apidoc.core.schema.Project;
/**
* The interface Project render.
*
* @author fengyuchenglun
*/
public interface ProjectRender {
/**
* 模版文件名.
*
* @return the string
*/
String template();
/**
... | 15.444444 | 60 | 0.616307 |
12d8f0a1999780bc3f376de156c242f0deb3fede | 1,459 | import java.util.Scanner;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class SearchElement {
public static void main(String args[]) {
int size, i, max, count = 0;
int arr[] = new int[50];
Str... | 22.446154 | 58 | 0.424263 |
7dec8d33cb93e27893f409c9a2db577c1832b29a | 511 | package org.jbei.wors.services.rest.multipart;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;
/**
* @author Hector Plahar
*/
public class WorsApplication extends Application {
@Override
public Set<Class<?>>... | 23.227273 | 61 | 0.69863 |
e6fa13e6a758bbebced8205e8a061b25a7244ad6 | 5,789 | package frc.robot.simulation;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.kinematics.ChassisSpeeds;
import edu.wpi.first.math.util.Units;
public class CargoSimPhysics {
public static final double kGravityAccel = -9.8;
public static... | 41.647482 | 103 | 0.668855 |
b72b9d274641f5030e66c396bcd8688300008af4 | 4,936 | /*-
* #%L
* BigDataViewer-Playground
* %%
* Copyright (C) 2019 - 2021 Nicolas Chiaruttini, EPFL - Robert Haase, MPI CBG - Christian Tischer, EMBL
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redis... | 41.830508 | 160 | 0.721232 |
e763651f7ab6e4db116117cebcf031e800b5618c | 190 | // Copyright 2019 Intel Corporation
// SPDX-License-Identifier: Apache 2.0
package org.sdo.sct.mt;
class DiDone {
@Override
public String toString() {
return ""; // no body
}
}
| 14.615385 | 38 | 0.668421 |
a4ef947dbd3f022fff4343195178c014cb1c25cb | 1,776 | package org.atomhopper.adapter;
import org.apache.abdera.model.Entry;
import org.apache.abdera.model.Feed;
import org.atomhopper.adapter.request.adapter.GetEntryRequest;
import org.atomhopper.adapter.request.adapter.GetFeedRequest;
import org.atomhopper.response.AdapterResponse;
import java.net.URL;
/**
* A feed so... | 29.114754 | 98 | 0.686374 |
a4323822a471b5ef8e8cbc91b7f5c580340797a3 | 2,273 | package de.g00fy2.justdoit.app.activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import de.g00fy2.justdoit.app.MyApplication;
import de.g00fy2.justdoit.app.annotations.Layout;
import de.g00fy2.ju... | 28.772152 | 91 | 0.74967 |
048ed9a1326b506af2614f906ee71e582bdfa717 | 4,471 | package org.sj.tools.jcastiglione.io.load;
import java.awt.Color;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.text.ParseException;
import javax.imageio.ImageIO;
import javax.xml.stream.XMLStreamException;... | 36.647541 | 107 | 0.597182 |
64ae8ba5875417a8fd42939f91ba23c9dc9d18aa | 1,055 | package it.unicam.cs.ids.C3.TeamMGC.personale;
import it.unicam.cs.ids.C3.TeamMGC.negozio.Negozio;
import java.sql.SQLException;
/**
* La classe estende la classe astratta {@link Personale} ed ha la responsabilità di gestire un Commerciante.
*
* @author Matteo Rondini, Greta Sorritelli, Clarissa Albanese
*/
publ... | 28.513514 | 109 | 0.673934 |
6f900c433202c5b4d8e6dd4031c58b5038bd26ba | 3,259 | package com.numbercortex.logic;
import java.util.ArrayList;
import java.util.Map;
import com.badlogic.gdx.scenes.scene2d.Action;
import com.numbercortex.CortexState;
import com.numbercortex.GameSettings;
import com.numbercortex.logic.brain.Brain;
import com.numbercortex.logic.brain.BrainFactory;
class ComputerPlayer ... | 33.255102 | 100 | 0.656336 |
ee6c1565689007d0d052772f7c5a23ecf396fa53 | 21,490 | package org.xdef.impl.util.conv;
import org.xdef.impl.compile.XScriptParser;
import org.xdef.sys.SBuffer;
import javax.xml.XMLConstants;
import javax.xml.namespace.QName;
import org.xdef.impl.XConstants;
import org.xdef.xml.KDOMBuilder;
import org.xdef.xml.KXmlUtils;
import java.io.File;
import java.util.Iterator;
imp... | 34.66129 | 78 | 0.699535 |
6a1828d4b3c6e8646734c3a4b72b51d2c5d02674 | 2,584 | /*
* $Id$
*
* 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
* "Lice... | 25.84 | 99 | 0.683824 |
bafc9cad4221b9bf862993ccf36d85ac9587cdcd | 4,392 | package aston.jpd.warehouse.io;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.nio.file.Files;
import org.junit.jupiter.api.Test;
import aston.jpd.warehou... | 29.28 | 95 | 0.732013 |
f94b187b7f9414f5b1390258c7cfbcda1f600a39 | 756 | package demo.v1;
import demo.product.Product;
import demo.product.ProductRepository;
import org.neo4j.ogm.session.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class InventoryServiceV1 {
private ProductRepository productRep... | 23.625 | 91 | 0.761905 |
a367be4803155835c557101d076ea57b9b042bda | 353 | package com.ll.blog.dao;
import com.ll.blog.entity.CategoryInfo;
import java.util.List;
public interface CategoryInfoMapper {
int deleteByPrimaryKey(Long id);
int insert(CategoryInfo record);
CategoryInfo selectByPrimaryKey(Long id);
List<CategoryInfo> selectAll();
int updateByPr... | 22.0625 | 49 | 0.728045 |
82de77ec07864b6a8dc639aba30b395b75f3c62f | 5,750 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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... | 39.930556 | 107 | 0.661565 |
e9d068c128c0b98e155ed3453ed50babb49e31f1 | 3,274 | package stincmale.sandbox.benchmarks;
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.Test;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Sc... | 31.480769 | 85 | 0.642639 |
09b8e3878011b8cdd34fe10df967cdc15d0aaecd | 711 | package observer_pattern.subscribers;
import observer_pattern.Publisher;
import observer_pattern.Subscriber;
public class DecimalASCIISubscriber extends Subscriber {
public DecimalASCIISubscriber(Publisher publisher) {
this.publisher = publisher;
this.publisher.attach(this);
}
@Override
... | 27.346154 | 82 | 0.658228 |
ede4b546af57ce652b8a280400a1cf9cb4b6e17e | 2,907 | package org.arquillian.smart.testing.ftest.affected;
import java.util.Collection;
import org.arquillian.smart.testing.ftest.testbed.project.Project;
import org.arquillian.smart.testing.ftest.testbed.project.TestResults;
import org.arquillian.smart.testing.ftest.testbed.testresults.TestResult;
import org.arquillian.sma... | 39.283784 | 132 | 0.73237 |
802750b95af41d806f872d40b66a5e67adb18f87 | 292 | package io.myweb.processor.model;
public class GroupMapping {
private final String name;
private final int idx;
public GroupMapping(String name, int idx) {
this.name = name;
this.idx = idx;
}
public int getIdx() {
return idx;
}
public String getName() {
return name;
}
}
| 13.904762 | 44 | 0.684932 |
82b0eb79e7884d8df9377b4d2648a4e2ebb587c7 | 1,951 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | 24.696203 | 75 | 0.627371 |
a2a97a93050aeb065502e60be236f42a878517b9 | 2,479 | package com.orasi.utils;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class FrameHandler {
@Deprecated
public static void findA... | 32.618421 | 96 | 0.777733 |
6d25247abc170a1ca5d1d351d24d49e50a4b44c2 | 2,961 | /**
* This class is generated by jOOQ
*/
package org.jooq.test.jdbcoracle.generatedclasses.test.tables.interfaces;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IVIncomplete extends java.io.Serializable {
/**
* Setter for <code>TEST.V... | 25.525862 | 113 | 0.665991 |
ab23c88f0bd64aff7c2722c69649d37c10ab67b4 | 8,334 | /*
* Copyright (c) 2016, Fredrick Meunier
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of cond... | 45.540984 | 183 | 0.655028 |
59c36148ee93954cb72100a03c8439ac5036b655 | 77 | package chp14;
public interface ExPlayer extends Player{
void slow();
}
| 12.833333 | 41 | 0.727273 |
bbea20bde0cad8bc87a7b1807fd677ba27e69217 | 299 | package com.py.py.dao;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.py.py.dao.custom.PaymentDaoCustom;
import com.py.py.domain.Payment;
public interface PaymentDao extends MongoRepository<Payment, ObjectId>, PaymentDaoCustom {
}
| 24.916667 | 90 | 0.819398 |
69812de3f191d6c5edf6192473da066390c9bd47 | 3,160 | package com.manorath.csye6225.service;
import com.manorath.csye6225.exception.*;
import com.manorath.csye6225.model.User;
import com.manorath.csye6225.repository.UserRepository;
import com.manorath.csye6225.util.Utils;
import com.timgroup.statsd.StatsDClient;
import org.springframework.beans.factory.annotation.Autowir... | 31.6 | 90 | 0.654747 |
5602fe82694a4419485ea3feb97ee18a6f816fbd | 1,410 | package com.bdqn.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import com.bdqn.constants.NewsConstants;
import com.bdqn.entity.ENews;
import com.bdqn.mapper.ENewsMapper;
imp... | 25.636364 | 85 | 0.746099 |
fa4b4a838c742b3302839a9109f0a684a82aa7bf | 260 | package com.fitbit.api.exceptions;
/**
* Created by jboggess on 9/19/16.
*/
public class FitbitAPIException extends RuntimeException {
public FitbitAPIException() {
}
public FitbitAPIException(String message) {
super(message);
}
}
| 17.333333 | 58 | 0.684615 |
81661dc4c96523ebbbc08e5af0d986705bf91136 | 1,841 | /*
* Copyright 2021 The University of Manchester
*
* 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 ... | 33.472727 | 103 | 0.629549 |
e3892a244ce15ed745b9a8872a65ff3e5fdae280 | 154 | package me.vmamakers.practice;
public class DominoesPizzaCompany implements Company {
@Override
public String getName() {
return "Dominoes";
}
}
| 14 | 54 | 0.746753 |
4c639a4fa0c5aaacba4abe98d7a3710e19c5810e | 1,655 | /* ------------------------------------------------------------------------------
** _________ _________ ________ _____ _____ ___________ _________
** \_ ___ \ / _____/ / _____/ / _ \ / \ \_ _____// _____/
** / \ \/ \_____ \ / \ ___ / /_\ \ / \ / \ | __)_ ... | 31.826923 | 86 | 0.534743 |
8389443c0defbb0c60f7788d8df05275dedbd56f | 1,293 | /**
* Copyright 2015 Jesse Jaara <jesse.jaara@gmail.com>
*
* 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 applica... | 30.785714 | 87 | 0.684455 |
438759b99a3a758f2f526479b6bc2ffdf08f1fa6 | 2,720 | package cleanplayer;
import battlecode.common.*;
public class BaseActor {
ModSensor sensor;
ModNav nav;
ModIndicator indicator;
ModBroadcast broadcast;
ModMemory memory;
public RobotController rc;
public MapLocation loc;
float sensorRange;
RobotType type;
Team team;
public boolean shot = false;
pu... | 20.298507 | 71 | 0.684926 |
4c560ba28253b0f988b75d8cc64755ecc60bb2db | 2,385 | package com.wings2d.editor.ui.project;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.sql.Connection;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JList;
import jav... | 26.797753 | 99 | 0.727883 |
2a7b311c374317974a4038e297795deaca1c3178 | 699 | package com.maggioli.rest.finalEx.manager;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maggioli.rest.finalEx.model.Product;
import com.maggioli.rest.finalEx.repository.CategoryRepository;
import com.maggioli.rest.fina... | 24.964286 | 63 | 0.816881 |
f5d799479edcf57faf0434b3b6125af2b9a0e9ca | 1,812 | package me.hyfe.simplespigot.cache;
import me.hyfe.simplespigot.plugin.SimplePlugin;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
public class FutureCache<K, V> extends CacheWrapper<K, V> {
protected final SimplePlugin plugin;
/**
* @para... | 32.357143 | 103 | 0.640177 |
41a7c430223371f0608534aadbd2f19dff25723d | 1,425 | package top.simplelife42.community.dto;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class PaginationDTO<T> {
private List<T> data;
// << < 4 5 6 7 8 > >>
private boolean showPrevious;
private boolean showFirstPage;
private boolean showNext;
private ... | 23.75 | 79 | 0.516491 |
d5e46a514b6ee9b3e16ea8b675f2c0f2e2e29368 | 2,423 | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Peter Nemes
*
* 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,... | 34.126761 | 102 | 0.683863 |
57a9c1ac83bcb60872bb28922ed3ad5ce3991521 | 4,951 | package jetbrains.mps.baseLanguage.findUsages;
/*Generated by MPS */
import jetbrains.mps.ide.findusages.findalgorithm.finders.GeneratedFinder;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperat... | 49.019802 | 222 | 0.78065 |
b3bc613fdcad6fa557025d192a72d9afb849067b | 377 | package io.pixelguys.gasparg.endroits;
public abstract class Endroit {
public abstract String getName();
public abstract boolean hasObject(String object);
public abstract boolean canGoTo(String place);
public abstract String getObjectText(String object);
public abstract String[] getPlaces();
public abstract Str... | 26.928571 | 53 | 0.785146 |
3294d6785cdeb784313386c61018dfb56c111aa1 | 1,898 | package old;
public class Test02 {
//单例模式,饿汉式,线程安全
public static class Demo1 {
private static Demo1 demo1 = new Demo1();
private Demo1() {
}
public static Demo1 getInstance() {
return demo1;
}
}
//单例模式,懒汉式,线程不安全
public static class Demo2 {
... | 18.607843 | 63 | 0.48314 |
911e2e37e9859dea6ecd5d03bb927062872c3445 | 91 | class Test {
@Deprecated
public final String string = "";
void foo() {
}
} | 13 | 36 | 0.538462 |
5b1b024b1c4ac0c0096e3daa07414a8822a9aec0 | 208 | package designmodel.decorator;
/**
* @author
*/
abstract class Decorator implements SuperMan {
protected SuperMan superMan;
public Decorator(SuperMan superMan) {
this.superMan = superMan;
}
}
| 13.866667 | 46 | 0.716346 |
e83630bb44ee558a6164b79bb9b40215cfe0409f | 639 | package co.com.codesoftware.logic;
import co.com.codesoftware.servicio.usuario.UsuarioEntity;
import co.com.codesoftware.utilities.WSGeneralInterface;
public class UsuarioLogic implements WSGeneralInterface {
/**
* Funcion la cual se encarga de llamar el Web Service para el cambio de
* contraseña
*
* @retur... | 25.56 | 77 | 0.746479 |
114c430f43a1c5f60d0d7aa865fd5fe3a73c7417 | 15,279 | /*
* 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 ... | 49.446602 | 133 | 0.588651 |
e9b7d09037af785dfbcec3e2e775a024459ddc29 | 5,256 | package org.knowm.xchange.binance.service;
import org.knowm.xchange.binance.*;
import org.knowm.xchange.binance.dto.BinanceException;
import org.knowm.xchange.binance.dto.FuturesSettleType;
import org.knowm.xchange.binance.dto.account.BinanceFutureAccount;
import org.knowm.xchange.binance.dto.account.IfNewUser;
import... | 37.81295 | 181 | 0.677702 |
91289f38c969029935336f3aa9fd491f56a2e9be | 987 | package ca.quickheaven.ocjp.practice.test.two;
import java.util.Set;
import java.util.TreeSet;
public class Question53 {
public static void main(String[] args) {
Set<String> greetings = new TreeSet<>();
greetings.add("Welcome");
greetings.add("to");
greetings.add("the");
g... | 29.029412 | 77 | 0.468085 |
098e450792f00fb0877f495a9de6f29bf8761af0 | 1,212 | package com.sencha.gxt.demo.theme.tritium.custom.client.slider;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ImageResource.ImageOptions;
import com.sencha.gxt.demo.theme.tritium.client.base.slider.Css3VerticalSliderAppearance;
pub... | 35.647059 | 93 | 0.787954 |
fbeee4740a2b75a882674fd7f80f7e9d0f10d0d0 | 803 | package tests.pages;
import org.fluentlenium.core.FluentPage;
import org.openqa.selenium.WebDriver;
import static org.fest.assertions.Assertions.assertThat;
/**
* Testing support for the Database view.
*
* Created by Branden Ogata on 4/24/2015.
*
*/
public class DatabasePage extends FluentPage {
private Stri... | 19.585366 | 69 | 0.672478 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.