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 |
|---|---|---|---|---|---|
98bd455dcd3b6e5e75514765a374d34f7f351a2f | 780 | package view.gui;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
import javafx.scene.layout.StackPane;
public abstract class StackPaneGUIContainer extends GUIContainer {
@FXML
protected StackPane stackPane;
@FXML
protected Butto... | 26.896552 | 69 | 0.714103 |
71dd1b1837a31ac9d3db96599d5da28756638a10 | 1,041 | package org.trebol.converters.topojo;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import org.trebol.pojo.AddressPojo;
import org.trebol.jpa.entities.Address;
/**
*
* @author Benjamin La Madrid <bg.lamadrid at gmail.com>
*/
@Component
public class A... | 29.742857 | 78 | 0.711816 |
0ca35713d2d3d83ae39fe440adf5ffbb0c837446 | 1,746 | //package com.liangtengyu.markdown;
//
//import com.liangtengyu.markdown.service.SaveFileService;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.... | 62.357143 | 292 | 0.810997 |
43b445f069df661b8d3f4c94391bf95ec74db7fb | 689 | package com.jordanluyke.azores.util;
import io.reactivex.rxjava3.core.SingleObserver;
import io.reactivex.rxjava3.disposables.Disposable;
import org.apache.logging.log4j.LogManager;
public class ErrorHandlingSingleObserver<T extends Object> implements SingleObserver<T> {
private Class<?> loggerClass;
public ... | 24.607143 | 89 | 0.706821 |
42a454e3e770c2512519c9a8bc71c42484fa8e82 | 1,449 | // package 16-bulletin-board;
// package bulletin;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
public class SIXTEEN{
public static void main(String[] args) {
String filePath="";
// Check the number of parameters.
//args[0] = "../pride-and-prejudice";
if (args.length == 1) {
fil... | 30.829787 | 119 | 0.68185 |
c4d6508c69fc302cb980ac491b57c9788e85ad16 | 796 | package io.graversen.twaddle;
import io.graversen.twaddle.lib.Utils;
import org.junit.Test;
import java.util.List;
public class UtilsTest
{
@Test
public void testExtractHashtags()
{
final List<String> hashtags1 = Utils.extractHashTags("Hello");
assert hashtags1.isEmpty();
final L... | 28.428571 | 106 | 0.653266 |
078b9587ada77798526831cfe9bc55b102637623 | 3,886 | //| Copyright - The University of Edinburgh 2015 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... | 43.177778 | 142 | 0.664694 |
981acba98312d38b785b5e91c7072ada8a0b1f2b | 99 | package com.liuyun.doubao.io;
public interface Stopable {
void stop(boolean waitCompleted);
}
| 12.375 | 34 | 0.757576 |
219d93ca09aa791cb482bd2f447ab93d0c2ce20f | 4,691 | package breadth_first_search;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
/**
*
* @author exponential-e
* 백준 5465번: 곰돌이
*
* @see https://www.acmicpc.net/problem/5465/
*
*/
public class Boj5465 {
private static final char TREE = 'T';
private static final char HIV... | 29.689873 | 97 | 0.492859 |
e5700ee24b530f18365a414a27b200a284e0a7c2 | 332 | package com.didi.tms.duduorder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DuduOrderApplication {
public static void main(String[] args) {
SpringApplication.run(DuduOrderApplication.class, arg... | 25.538462 | 68 | 0.795181 |
96cd34ba2f4d572c8abb7753d6b8b96cc45cf213 | 249 | package test.priority;
import org.testng.annotations.Test;
public class Priority2SampleTest {
@Test(priority = 1)
public void cOne() {
}
@Test(priority = 2)
public void bTwo() {
}
@Test(priority = 3)
public void aThree() {
}
}
| 13.833333 | 35 | 0.650602 |
eaaceb09ff7e37d72c9d96adf9a75deaabcfb66d | 651 | /**
* Towers of Hanoi
* <p>
* The Towers of Hanoi is a game played with three poles and a number of discs of different sizes which can slide onto any pole. The game starts with all the
* discs stacked in ascending order of size on one pole, the smallest at the top. The aim of the game is to move the entire stack to... | 43.4 | 158 | 0.708141 |
c1be8d670205a9ef76ee5dbed97a258617e24560 | 654 | /*
* Developed by Softeq Development Corporation
* http://www.softeq.com
*/
package com.softeq.amilosh.edu.dto;
/**
* Represents Employee transfer object to create Employee.
* <p/>
* Created on 2021-03-24
* <p/>
*
* @author Alexander Milosh
*/
public class EmployeeCreateDto {
private String name;
p... | 17.675676 | 58 | 0.64526 |
b84489a93f9b1e5068ea652fa243236dbc9fa0dd | 1,616 | //
// Decompiled by Procyon v0.5.36
//
package ch.ethz.ssh2.packets;
import java.io.IOException;
public class PacketOpenSessionChannel
{
byte[] payload;
int channelID;
int initialWindowSize;
int maxPacketSize;
public PacketOpenSessionChannel(final int channelID, final int initialWindowSize... | 32.32 | 112 | 0.623762 |
16969c42327b33942cb95c78b89844e411e58f0a | 1,824 | package de.metas.vendor.gateway.api;
import de.metas.vendor.gateway.api.availability.AvailabilityRequest;
import de.metas.vendor.gateway.api.availability.AvailabilityResponse;
import de.metas.vendor.gateway.api.order.LocalPurchaseOrderForRemoteOrderCreated;
import de.metas.vendor.gateway.api.order.PurchaseOrderRequest... | 35.764706 | 127 | 0.782346 |
6659deb3bfa5e22ca8d235b0c72c573f355252c9 | 2,254 | package java;
import org.bitcoinj.core.Peer;
import org.bitcoinj.core.Sha256Hash;
import org.bitcoinj.core.Transaction;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.locks.Lock;
/**
* Created by snakecharmer1024 on 7/19/16.
*/
public class PermutationManager
{
private static Per... | 40.25 | 166 | 0.723159 |
166c34f2740d6e52425f17ace86e53472e30d832 | 728 | package ca.crimsonglow.simmer;
import java.util.Properties;
import org.apache.log4j.PropertyConfigurator;
/**
* A job object.
*/
public abstract class Job {
/**
* Creates a new job and collects arguments into a properties object.
*
* @param args
* The job arguments.
*/
public Job(Strin... | 22.060606 | 76 | 0.649725 |
08ac94726024eba7d9d91feafe6df5adb7ad6e2f | 5,043 | package org.ftc9974.thorcore.robot.drivetrains.swerve;
import com.qualcomm.robotcore.hardware.AnalogInput;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import ... | 32.960784 | 112 | 0.664684 |
582606869b634b697445adacff39040d63ef797c | 3,516 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2006, 2007, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
*
* This program 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 Foundati... | 30.310345 | 93 | 0.616325 |
35f8751c0ea5385fa791f309b4bd6ea03b0a10d6 | 2,874 | /*
* ====================================================================
* StreamEPS Platform
*
* (C) Copyright 2012.
*
* Distributed under the Modified BSD License.
* Copyright notice: The copyright for this software and a full listing
* of individual contributors are as shown in the packaged copyright... | 33.811765 | 82 | 0.675017 |
ff72d3182d335cc104836135ebf6c14fcb43ada6 | 2,998 | package org.shypl.common.concurrent;
import org.shypl.common.util.Cancelable;
import org.shypl.common.util.LinkedQueue;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Queue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.S... | 24.983333 | 105 | 0.707138 |
e1ba3c7106f23d4e485b99770d72384b543c8a74 | 8,687 | /*
* Copyright (c) 2002 and later by MH Software-Entwicklung. All Rights Reserved.
*
* JTattoo is multiple licensed. If your are an open source developer you can use
* it under the terms and conditions of the GNU General Public License version 2.0
* or later as published by the Free Software Foundation.
*
* see: gp... | 44.548718 | 147 | 0.695177 |
559d18e733f11cf947e4003a7fd7118ff66289c8 | 13,992 | package de.otto.edison.aws.dynamodb.jobs;
import com.google.common.collect.ImmutableList;
import de.otto.edison.jobs.domain.JobInfo;
import de.otto.edison.jobs.domain.JobMessage;
import de.otto.edison.jobs.domain.Level;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.Run... | 37.918699 | 179 | 0.672384 |
d33fd7803eb6830fb7ff5fc113d1adb7fe01f56c | 2,093 | /*
* =============================================================================
*
* Copyright (c) 2011-2016, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 43.604167 | 212 | 0.697563 |
1f8ae7e0c5456bf3118956d9aa944eb62e75c806 | 1,896 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRCustomerContactOperatingSessionInitiateOutputModelCustomerContactOperatingSessio... | 37.92 | 209 | 0.855485 |
d21383fe1bc22995b47699a7aa149308de771302 | 447 | //Chapter 15 - Exercise 15.3
public class Purse
{
private double total;
public Purse()
{
total = 0;
}
public void read (String input)
{
boolean done = false;
Coin c = new Coin();
if (c.read(input))
{
add(c);
}
else
{
done = true;
}
}
public void add (Coin aCoin)
{
total = to... | 5.258824 | 35 | 0.510067 |
9357bc8e38f9a15acc07a1f0a703b50188ac1dd4 | 9,041 | package com.diamondq.common.types;
import com.diamondq.common.TypeReference;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.checkerframework.checker.nullness.qual.Nullable;
public abstract class Types {
private Types() {
}
/**
* Constant for str... | 49.404372 | 104 | 0.359916 |
35529a06289539cedf13867216bc504149129dcb | 1,855 | package com.yuyh.library.utils;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.telephony.SmsManager;
import com.yuyh.library.utils.log.LogUtils;
import java.util.List;
/**
* @author yuyh.
* @date 16/4/10.
*/
public class Uti... | 27.686567 | 91 | 0.595148 |
fe8e86738d3688a802a4cd6369ef8aba3980d323 | 5,439 | /*
* CWS, Cryptographic Web Share - open source Cryptographic Sharing system.
* Copyright (c) 2016-2022, haugr.net
* mailto: cws AT haugr DOT net
*
* CWS is free software; you can redistribute it and/or modify it under the
* terms of the Apache License, as published by the Apache Software Foundation.
*
* CWS is... | 36.26 | 103 | 0.560949 |
3583634ea59132aefcc5723804d74265637f13f3 | 102 | public class UserDaoImpl implements IUserDao {
public String getUserDao(){
return "coldstar";
}
}
| 17 | 46 | 0.745098 |
37d5b0fe8aa69528c5a8556e799a3e545f93eb03 | 5,377 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF licenses this file to You
* under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 43.715447 | 114 | 0.70597 |
0ef20d7f302b54573377ee2f5171e0898d1dbbdf | 198 | package org.albianj.persistence.impl.db;
import org.albianj.persistence.context.IWriterJob;
public interface IPersistenceTransactionClusterScope {
public boolean execute(IWriterJob writerJob);
}
| 24.75 | 54 | 0.843434 |
f9843a996954e5fb1e4b9e1eec6d69eb4b24ad4a | 3,187 | package com.spacetimecat.control;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
* Compile Java source files into class files.
*
* @author erik
*/
public class Compile_java
{
private final Log log;
... | 22.131944 | 78 | 0.551302 |
0dd162092fe2951f02e407ff1b2866f317fc1b84 | 8,149 | package com.google.android.gms.ads.internal;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import com.google.android.gms.common.internal.C1314c;
import com.google.android.gms.internal.C1648i... | 37.380734 | 186 | 0.610627 |
6bc5d3cee6f0a3cec03445f8acc8a2bfaa4c60e5 | 2,327 | package gov.va.med.lom.avs.dao.hibernate;
import gov.va.med.lom.avs.dao.EncounterCacheDao;
import gov.va.med.lom.avs.model.EncounterCache;
import gov.va.med.lom.reports.dao.hibernate.BaseQueryDaoJpa;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Stateless;
impo... | 32.774648 | 112 | 0.718092 |
dc259283ab9e701eecbcaad75171f9597b0fc07e | 8,050 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 35.619469 | 83 | 0.72472 |
a9144b468e00281f48ba6555c44c224df44abc78 | 18,981 | /*
* Copyright (c) 2001-2007 Sun Microsystems, Inc. All rights reserved.
*
* The Sun Project JXTA(TM) Software License
*
* 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 ... | 31.79397 | 134 | 0.597018 |
f47ee09237e669edc9400beaeb3d93b8b708fc7a | 2,835 | package ru.job4j.tracker;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class TrackerTest {
@Test
public void whenAddNewItemThenTrackerHasSameItem() {
Tracker... | 36.346154 | 78 | 0.620811 |
abef776d7a03f26e2f610649e0cfd99f783851d7 | 642 | package frc.team2767.deepspace.command.elevator;
import edu.wpi.first.wpilibj.command.InstantCommand;
import frc.team2767.deepspace.Robot;
import frc.team2767.deepspace.subsystem.ElevatorSubsystem;
public class ElevatorSetPositionCommand extends InstantCommand {
private static final ElevatorSubsystem ELEVATOR = Ro... | 23.777778 | 67 | 0.772586 |
a48e52c2daf10ee3d0e280d6964e8ef172288d07 | 622 | package nc_io_test;
import java.util.Scanner;
/**
* @author: afuya
* @program: BiShiLianXi
* @date: 2021/8/25 2:27 下午
*/
public class T_05 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str1 = sc.nextLine();
int n = Integer.parseInt(str1);
... | 24.88 | 48 | 0.491961 |
6673e71c39c536654790154c56713a2e06f7307a | 1,431 | package com.govnomarket.market.service;
import com.govnomarket.market.dto.OrderDTO;
import com.govnomarket.market.repository.IOrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Date;
import java.util.List;
public class OrderService implements IOrderService{
@Autowire... | 29.204082 | 101 | 0.744235 |
e8296a909ed316ebde88a114938b20d392229e2d | 692 | package org.saltframework.core.properties;
import java.util.*;
/**
* @author Seok Kyun. Choi. 최석균 (Syaku)
* @site http://syaku.tistory.com
* @since 2016. 11. 15.
*/
public final class ApplicationProperties {
private Map<String, List<Properties>> context = new LinkedHashMap<>();
protected void addProperties(Ap... | 26.615385 | 93 | 0.734104 |
ba970a233f272ec9c6d9fbac186b942fce31063d | 2,560 | package com.crest.backend.util;
import com.crest.backend.constants.Service;
import com.crest.backend.constants.TimeBucket;
import com.crest.backend.constants.TripMonth;
import java.io.File;
import java.io.FileWriter;
public class DataWriter {
private final String arff_55_NORTH_ON_COUNT = "Bus55NorthCountOn_Rando... | 37.647059 | 166 | 0.654688 |
9ecab39d5d0c32b4538c9335fcd63e2b8236fc09 | 691 | package com.liang._02springTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.Spr... | 25.592593 | 71 | 0.81042 |
4f8f8ffd6d3015ad46c28d0fe2700f45414ece76 | 133 | package org.atlasapi.content;
import java.util.List;
public interface MutableContentList {
List<ContentRef> getContents();
}
| 13.3 | 37 | 0.759398 |
b7dc24bc635a455a253b14bdc0f89b8a9cbdd7fb | 2,462 | package io.magicthegathering.javasdk.api;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import io.magicthegathering.javasdk.resource.Card;
import io.magicthegathering.javasdk.resource.MtgSet;
/**
* {@link SetAPI} is used to fetch {@link MtgSet}s from magicthegathering.io
*
* @... | 32.394737 | 106 | 0.708367 |
a216fda92ff272c543268cfb09419deb83346d58 | 2,760 | package ch.bailu.tlg_gtk;
import org.gnome.gdk.RGBA;
import ch.bailu.tlg.PlatformContext;
import ch.bailu.tlg.StateRunning;
import ch.bailu.tlg.TlgPoint;
import ch.bailu.tlg.TlgRectangle;
public class BaseContext extends PlatformContext {
private static final int PALETTE_RESERVED=5;
private static final int... | 22.08 | 92 | 0.602536 |
e9b1a997f5147b9c381b91ed91a2189a7a1fb773 | 2,085 | package io.raindev.router;
import java.util.List;
import java.util.Optional;
import io.raindev.router.Router.PathNode;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class RouterTest {
List<String> paths = List.of(
"/",
"/users/",
... | 27.077922 | 60 | 0.530935 |
c849dc40e5dff6192b11ef5d6fd86e9fdbb93b18 | 1,127 | package org.zalando.riptide.autoconfigure.testing;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;... | 29.657895 | 96 | 0.78882 |
d92c6cc0e4317f6ba8fa9f5156a810c4d37810aa | 5,366 | package test;
import boardgames.model.CheckersGame;
import boardgames.model.board.BoardImpl;
import boardgames.model.board.Box;
import boardgames.model.board.CheckersBoard;
import boardgames.model.piece.CheckersPawn;
import boardgames.model.piece.PieceImpl;
import boardgames.utility.Colour;
import boardgames.utility.P... | 43.983607 | 142 | 0.663996 |
090c4aa7479550828a8362327501900f155ccef4 | 4,673 | package cn.zhengcaiyun.idata.develop.dal.dao.dag;
import java.sql.JDBCType;
import java.util.Date;
import javax.annotation.Generated;
import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class DAGInfoDynamicSqlSupport {
@Generated(value="org.mybatis.generator.api.MyBatis... | 36.795276 | 119 | 0.695485 |
8247e7e2099f85581fa483eb01f51231d168ad7b | 1,434 | /**
* Copyright 2011-2015 John Ericksen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 31.866667 | 107 | 0.692469 |
89b97851781950dc75ccd8986b19660274ec46c3 | 461 | package com.twitter.summingbird.javaapi;
import com.twitter.summingbird.Platform;
/**
* a Store used in sumByKey
*
* @author Julien Le Dem
*
* @param <P> the underlying platform
* @param <STORE> Is the actual type used by the underlying Platform it is parameterized in <K,V>
* @param <K> key
* @param <V> value... | 20.954545 | 97 | 0.687636 |
ec97820dcfe46d9da9791969f1629a06da9bcf90 | 751 | package com.anrc.model;
public class Location {
private int id;
private String city;
private String road;
private String postalNo;
public Location(){}
public Location(int id, String city, String road, String postalNo) {
super();
this.id = id;
this.city = city;
this.road = road;
this.postalNo = postal... | 17.880952 | 69 | 0.6751 |
497957031dd5720bb86d1c9ccd1cc2f481aaab24 | 378 | package io.quarkus.deployment.pkg;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
@ConfigGroup
public class ManifestConfig {
/**
* If the Implementation information should be included in the runner jar's MANIFEST.MF.
*/
@ConfigItem(defaultValue ... | 23.625 | 92 | 0.756614 |
4da7e5443846124c5bfef0d8d869b537b5ba98c9 | 4,045 | package org.aaaa;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import org.aaaa.Enums.DatabasePath;
import org.aaaa.Enums.Models.DeliveryCancellationModel;
import org.aaaa.FileHandlers.FileHandlerOrder;
import org.aaaa.FileHandlers.FileHandlerUser;
public class DeliveryCancellati... | 27.896552 | 137 | 0.65513 |
5cdb50cca83c9ba0b0b842a5d6526bfd6da66886 | 4,110 | package com.xj.scud.scan;
import com.xj.scud.annotation.Client;
import com.xj.scud.spring.bean.ClientBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.co... | 47.241379 | 123 | 0.711192 |
f79b204eb0b7edb60811d7e3f72c68719d6e5ce9 | 2,185 | package com.entity;
import java.io.Serializable;
import java.util.List;
public class User implements Serializable, Cloneable {
/**
*
*/
private static final long serialVersionUID = 2710820901930537171L;
private int id;
private int cardID;
private String name;
private String pwd;
private String sex;
pri... | 19.684685 | 115 | 0.679176 |
2230d123f10e9c7838440ac47a4199d61e31cfab | 17,659 | package java_cup;
import java_cup.runtime.Symbol;
import java.util.Hashtable;
/** This class implements a small scanner (aka lexical analyzer or lexer) for
* the JavaCup specification. This scanner reads characters from standard
* input (System.in) and returns integers corresponding to the terminal
* number ... | 32.461397 | 80 | 0.53729 |
60785c358973e548121c64d5836d73e51078c1b0 | 10,847 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* 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 ri... | 41.400763 | 139 | 0.763068 |
a62836b993723e200cfc7bd4ee6b00dda1fd1061 | 9,039 | package DataLayer.Sistem;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteConstraintException;
import android.database.sqlite.SQLiteDatatypeMismatchException;
import android.database.sqlite.SQLiteException;
import android.util.L... | 51.948276 | 141 | 0.66556 |
17e7976a6a46d676f081ad4b1d20be33fb0b781f | 1,385 | package de.leoliebig.playground.data;
import java.util.List;
/**
* Defines the basic operations of a data source. Use this interface to encapsulate a data source
* and the technology used to access it.
* <p>
* Created by Leo on 25.02.2017.
*/
public interface DataSource<T> {
void load(long id, LoadListener... | 24.298246 | 97 | 0.676534 |
f161eba7a2bb0d0944e130e2d65731837701f14a | 1,006 | package firstinspires.ftc.teamcode.autonomous.camera;
/*
import java.awt.image.BufferedImage;
import java.util.function.Predicate;
public class PixelValidator {
public static Pixel[] loadPixelsFromImage(BufferedImage image) {
int width = image.getWidth();
int height = image.getHeight();
Pi... | 25.794872 | 80 | 0.520875 |
9bc928f008c625b7f67fb34c5c28c3b6b6105589 | 3,112 | // Copyright (c) 2012 Tim Niblett. All Rights Reserved.
//
// File: ShortenURLBitly.java (30/09/12)
// Author: tim
//
// Copyright in the whole and every part of this source file belongs to
// Tim Niblett (the Author) and may not be used, sold, licenced,
// transferred, copied or reproduced in whol... | 37.047619 | 106 | 0.625 |
b5e49f82e9555ee875df09ffabb21ce9840eeef3 | 3,706 | /*
* Copyright (c) 2015 Uber Technologies, 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, modify, me... | 31.142857 | 103 | 0.635186 |
50af61a98c315736de353faa8feb32c6dfae173e | 12,087 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.04.19 um... | 25.717021 | 115 | 0.580624 |
f4c411a3a5f4a2f398bc5a5a3508f6dd5d9335c7 | 2,791 | package com.lmax.disruptor.demo;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.YieldingWaitStrategy;
import com.lmax.disruptor.demo.consumer.InParkingDataEventDbHandler;
import com.lmax.disruptor.demo.consumer.InParkin... | 31.011111 | 155 | 0.799713 |
145c1af6d7de16043ee4d688922736ca8ccb7ec2 | 3,246 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 36.47191 | 92 | 0.761553 |
af98bf7ad0257c19e70b4c266c3543e2fa96884b | 2,165 | package nn;
import lib.StdArrayIO;
import java.util.Arrays;
public class Vec {
public static double sum(double[] x) {
return Arrays.stream(x).sum();
}
public static double norm(double[] x) {
double s = 0.0;
for (int i = 0; i<x.length; i++) {
s += x[i]*x[i];
}
double r = Math.sqrt(s);
return r;
}
... | 22.091837 | 62 | 0.550577 |
77dd33457ddc25e0cceaf5473ed97df2b3150330 | 2,570 | package ua.restaurant.utils;
import ua.restaurant.dto.CategoryDTO;
import ua.restaurant.dto.DishDTO;
import ua.restaurant.entity.Baskets;
import ua.restaurant.entity.Categories;
import ua.restaurant.entity.Dishes;
import java.math.BigDecimal;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Co... | 32.531646 | 87 | 0.607393 |
e68963960748c0cc772a6b586fc93dd6cf0b203a | 1,012 | package com.ttdt.modle;
/**
* Created by Administrator on 2017/10/8.
*/
public class LeftMenu {
private String text;
private String imageUrl;
private int image;
public LeftMenu() {
}
public LeftMenu(String text, int image) {
this.text = text;
this.image = image;
}
... | 17.152542 | 62 | 0.577075 |
3d5e2f6f3ef30b2bf0c58be692cd2631e6f9555e | 306 | package cn.emay.utils.string;
import org.junit.Assert;
import org.junit.Test;
/**
* @author Frank
*/
public class StringUtilsTest {
@Test
public void test() {
Assert.assertTrue(StringUtils.isBool("true"));
Assert.assertFalse(StringUtils.isBool("1"));
}
}
| 17 | 55 | 0.617647 |
4d6f7af56f7a95ede95d6651f3851b1069326772 | 12,778 | /*
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* 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
* ... | 44.368056 | 238 | 0.703788 |
c5f0d08a5a0bda1e2d0a660ddf62efffcc9741a3 | 706 | package com.meiya.nio2;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
/**
* 创建目录,要求path中所有的名字元素都存在,如果不是会得到IOException
*/
public class TestNine {
private static String home = System.getProperty("user.hom... | 10.085714 | 65 | 0.628895 |
e0ec202f5cb99923e955de843cfc2476ba940749 | 552 | package org.pjp.cag.instruction.group4;
import static org.junit.Assert.assertEquals;
import static org.pjp.cag.cpu.Store.ZERO;
import org.junit.Test;
import org.pjp.cag.cpu.Store;
import org.pjp.cag.test.TestConstants;
public class ARCTest {
@Test
public void testExecute() {
Store store = new Store(... | 23 | 91 | 0.682971 |
e57925329e5f750d90dde75038b435740300d621 | 1,124 | package com.eaglesakura.sloth.persistence;
import com.eaglesakura.util.ThrowableRunnable;
import com.eaglesakura.util.ThrowableRunner;
import android.arch.persistence.room.RoomDatabase;
import java.io.Closeable;
/**
* 設計上の注意点:
* {@link android.arch.persistence.room.Query} に対して "AS"文を含めるとビルドが終了しない不具合がある(alpha1)
*... | 27.414634 | 126 | 0.662811 |
6526a59002aac4ee372a50c5cb448fbf3f211284 | 306 | package net.spy.memcached.collection;
/**
* A type component for "bop smgetmode"
*/
public enum SMGetMode {
UNIQUE("unique"),
DUPLICATE("duplicate");
private String mode;
SMGetMode(String mode) {
this.mode = mode;
}
public String getMode() {
return mode;
}
}
| 15.3 | 40 | 0.611111 |
6de76fc7d2f7ef85e231481b571a3f60dade26e5 | 6,251 | package com.svega.vanitygen;
import com.svega.common.math.UInt8;
import com.svega.common.version.Version;
import com.svega.moneroutils.Base58;
import com.svega.moneroutils.addresses.MainAddress;
import com.svega.vanitygen.fxmls.LaunchPage;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import ja... | 33.25 | 111 | 0.484243 |
cb8f68f6e9b2c90c471fb554736b0332d09091b6 | 1,120 | /**
* @FileName : PPRuleGetConditionJsonParser.java
* @Project : Presence Pro
* @Copyright : Copyright (c) 2016 People Power Company. All rights reserved.
*/
package com.peoplepowerco.virtuoso.parser;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.peoplepowerco.virtuoso.mo... | 26.046512 | 107 | 0.723214 |
f65f801acb41c04d949f6cc0683e621a78363a2c | 899 | package todo.spark.transformer;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.orientechnologies.orient.core.id.ORID;
import spark.ResponseTransformer;
/**
* @author david.clutter@greyrocksoft.com
*/
@Singleton
public ... | 24.972222 | 77 | 0.704116 |
10732385235f823436a4cb5363515e43ae179eca | 14,111 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 47.672297 | 120 | 0.581249 |
188a67377387cf2525e274c50356508088538537 | 7,825 | /*
* Copyright (C) 2018 The Sylph Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 42.994505 | 180 | 0.65508 |
2ae2c673d17e384892dec897bb3abb19e3b393c4 | 254 | package dev.exception;
public class CollegueNonTrouveException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* @param arg0
*/
public CollegueNonTrouveException(String message) {
super(message);
}
} | 14.111111 | 59 | 0.700787 |
5db66133abacfde45960000d75a9692661782c6a | 549 | package pl.entpoint.harmony.service.settings.dayOff;
import java.time.LocalDate;
import java.util.List;
import pl.entpoint.harmony.entity.pojo.controller.DayOffPojo;
import pl.entpoint.harmony.entity.settings.DayOff;
/**
* @author Mateusz Dąbek
* @created 19 maj 2020
*
*/
public interface DayOffService {
DayO... | 23.869565 | 67 | 0.777778 |
40401dbc9ae37f1b620fd91bd45537a9d39e65fd | 2,589 | package com.neusoft.hp.runtime.dyn.visitor.element;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import com.neusoft.core.dao.GenDO;
import com.neusoft.core.service.annotation.SubTable;
import com.neusoft.hp.runtime.dyn.AttributeBean;... | 34.065789 | 95 | 0.688683 |
efdcc524751b830190cf0be2828678f0def6ad5a | 398 | package io.getlime.security.powerauth.lib.webflow.authentication.mtoken.exception;
/**
* Exception thrown when request object is invalid.
*
* @author Petr Dvorak, petr@lime-company.eu
*/
public class InvalidRequestObjectException extends MobileAppApiException {
public InvalidRequestObjectException() {
... | 28.428571 | 82 | 0.761307 |
a2f0096cd94b8a1e84ecc5239ab17eb9bd5a3cf2 | 769 | package org.jfl110.prender.api.render;
import org.jfl110.prender.api.RenderNode;
import com.google.common.base.Function;
/**
* Wrapper for a RenderNode to allow child swapping
*
* @author JFL110
*/
public class RenderNodeSpace{
private RenderNode node;
public static RenderNodeSpace renderNodeSpace(RenderNo... | 18.309524 | 64 | 0.725618 |
0ebf5c94548845e6a106caf46aa2d0ecdcbccffa | 5,665 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL")... | 41.654412 | 108 | 0.632304 |
926dd76ef3d8a91f5a8689df8690c228d559dd87 | 1,247 | package net.szum123321.tool_action_helper.impl;
import com.google.common.collect.ImmutableMap;
import net.minecraft.block.Block;
import net.minecraft.block.PillarBlock;
import net.szum123321.tool_action_helper.exception.BadBlockException;
import net.szum123321.tool_action_helper.mixin.accessors.AxeItemAccessor;
publi... | 36.676471 | 101 | 0.756215 |
fbb6559716491b5d6e614582ba1b3dbb37b8ff7d | 1,748 | package org.gbif.pipelines.tasks.validator.validate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.UUID;
import org.gbif.api.model.crawler.FinishReason;
import org.gbif.api.vocabulary.EndpointType;
import org.gbif.common.messaging.api.messages.PipelinesArchiv... | 36.416667 | 86 | 0.756865 |
4fe9a299cab07862362227044a4a3434087462ca | 1,497 | package no.nav.foreldrepenger;
import static no.nav.foreldrepenger.boot.conditionals.Cluster.profiler;
import static org.springframework.context.annotation.FilterType.ASSIGNABLE_TYPE;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;... | 44.029412 | 102 | 0.824315 |
21910c0dc2633e3def78ecd070b0ada8ebc6f964 | 11,138 | package com.bitdubai.reference_niche_wallet.bitcoin_wallet.fragments.wallet_final_version;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.MenuItem;
import android.view.View;
import android.widget.PopupMenu.OnMenuItemCli... | 37.126667 | 141 | 0.667265 |
b03fa38de36a0cdadf8b234b3dfe730cf90e5491 | 2,957 | /*
* Copyright 2020 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 ap... | 35.202381 | 110 | 0.702401 |
81c0e023b21549a6db5d75db0f74e83ff2a1c02a | 2,742 | package me.mos.lnk.packet;
import java.util.Date;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
/**
* 用户信息修订报文定义.
*
* @author 刘飞 E-mail:liufei_it@126.com
*
* @version 1.0.0
* @since 2015年5月31日 下午11:21:27
*/
@XStreamAlias(Alias.REVIS... | 16.518072 | 63 | 0.689278 |
b2766a7dfb07b2e6117b97110ad48051daedae32 | 8,732 | package com.ruoyi.project.userbackground.rules.controller;
import java.util.*;
import com.alibaba.fastjson.JSON;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframe... | 35.068273 | 141 | 0.664567 |
1c2141ac29bdb0ac84ac69c0ac47ac93f7ed1e48 | 618 | package com.loveplusplus.update;
class Constants {
// json {"url":"http://192.168.205.33:8080/Hello/app_v3.0.1_Other_20150116.apk","versionCode":2,"updateMessage":"版本更新信息"}
static final String APK_DOWNLOAD_URL = "url";
static final String APK_UPDATE_CONTENT = "updateMessage";
static final String APK... | 29.428571 | 130 | 0.729773 |
d1899e0faf1fa671b3e9abdcd7b7c168ac0356fd | 1,638 |
package application;
import gui.ApplicationWindow;
import java.io.IOException;
import logging.Logger;
import main.EntryPoint;
/**
* Application serves as the entry point for
* the automation program. The main method of\
* this class starts and launches the GUI where the used can
* choose which automation to run.... | 26.419355 | 138 | 0.619658 |
2909f9304071df3738366fae0d45f21792b55da5 | 26,487 | /*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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... | 44.218698 | 100 | 0.641636 |
f89089151e70a1e8f3557f3f3cb53a7b9b1b6fa8 | 2,658 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 38.521739 | 192 | 0.72009 |
694db5f0fbc7d310807b205effcf6de29c8e5f15 | 1,247 | package com.chubz.renderer;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
/**
* I recommend not using this class and only view it as a template on how to make input.
*/
public class InputHandler implements KeyListener {
public boolean up = false;
public boolean down = false;
public ... | 25.979167 | 88 | 0.613472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.