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 |
|---|---|---|---|---|---|
705ce385b09c83547c2c3ae74ab6c20c36d6e6ef | 3,054 | package ca.uhn.fhir.parser.i391;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.parser.CustomTypeDstu2Test;
import ca.uhn.fhir.parser.IParser;
import ca.uhn.fhir.util.TestUtil;
import org.junit.jupiter.api.AfterAll... | 35.103448 | 109 | 0.774394 |
7b3dfcb3d07a7b15a29d5a36d780f431ddaa12fa | 355 | package cn.com.vipkid.vkdns;
// _ _ _ _
//__ _(_)_ __ | | _(_) __| |
//\ \ / / | '_ \| |/ / |/ _` |
// \ V /| | |_) | <| | (_| |
// \_/ |_| .__/|_|\_\_|\__,_|
// |_|
/*
*
*2018/11/2
*/
class Constants {
static final String TAG = "httpdns";
static final String HTTPDNS_RESULT_FORM... | 19.722222 | 73 | 0.433803 |
417a30b9233da1bef84efeaafc3165e70bb4e042 | 1,128 | package org.jimmutable.core.serialization;
import org.jimmutable.core.exceptions.ValidationException;
import org.jimmutable.core.objects.Stringable;
import junit.framework.TestCase;
/**
* This class cannot be used across projects as it lives in the test folder of
* Jimmutable core. The test folder is local to just... | 22.117647 | 78 | 0.734929 |
e649a4576c41df887dde231f703ce781ef7242f6 | 509 | package main.models.response;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/** Model for newsapi.org error response */
@JsonIgnoreProperties(value={"status"})
public class NewsResponseError {
private String code;
private String message;
public String getCode() {
return code;
}
public... | 18.178571 | 61 | 0.709234 |
d163ee82746197eb94bfdafe7e8aa0c26afc8211 | 6,731 | package com.newegg.ec.redis.controller;
import com.alibaba.fastjson.JSONObject;
import com.newegg.ec.redis.aop.annotation.OperationLog;
import com.newegg.ec.redis.entity.OperationObjectType;
import com.newegg.ec.redis.entity.OperationType;
import com.newegg.ec.redis.entity.Result;
import com.newegg.ec.redis.entity.Sen... | 43.993464 | 156 | 0.718615 |
57f2b723519e16c894156450c6a423802c987843 | 2,484 | package com.avides.xml.saxxomparser;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.ext.DefaultHandler2;
import nu.xom.Attribute;
import nu.xom.Document;
import nu.xom.Element;
public class DocumentSaxParser extends DefaultHandler2
{
private String elementTagName;
private ... | 29.571429 | 115 | 0.637279 |
4e6aa6120850469b5555bd9700ef585bd0d485c5 | 8,546 | /*
* 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 no... | 36.678112 | 143 | 0.63831 |
0fe75454f1d2c065ac566d66ef0a993be1f34e4d | 894 | import java.util.*;
/**
* Created by AMK on 7/30/2019.
* Life is nice :)
* Enjoy coding :D
*/
public class Main2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int T = scanner.nextInt();
for (int i = 0; i < T; i++) {
int n ... | 27.9375 | 68 | 0.412752 |
32731e7a50164497fb1ea346ef7138a2fd84c660 | 681 | package com.moomoohk.JNotificationCenter.notifications;
import com.moomoohk.JNotificationCenter.OSXSoundEffect;
public class SimpleNotification extends Notification
{
public SimpleNotification(String title, String message, String subtitle)
{
super(title, message, subtitle);
}
public SimpleNotification(String t... | 27.24 | 110 | 0.779736 |
9786992c974a71c69512bd1706b02cc66f59ca22 | 749 | package com.example.lottery.application;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.example.lottery.service.LotteryService;
import com.example.lottery.service.RandomNumberGeneratorService;
public class LotteryApp {
private static final String BASE_PACKAGE = "com.exa... | 29.96 | 81 | 0.76769 |
06e120020739cc256b68ca1ff1f8e0e48d9d9c66 | 1,246 | package com.medical.soft.persistence.entity;
import javax.persistence.*;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.List;
@Entity
@Table(name = "lugar")
public class Lugar implements Externalizable {
@Id
@Column(name = "... | 20.766667 | 89 | 0.675762 |
406618755431558e05b163d2cc6c28b326e65c8e | 2,630 | /*
* Copyright 2021 EPAM Systems
*
* 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 ... | 43.114754 | 119 | 0.814829 |
7a80d5358d0fa1197e8dcbf9d14c48f401d4ae9f | 5,031 | /*
* Copyright 2000-2011 JetBrains s.r.o.
*
* 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 agre... | 39 | 205 | 0.702445 |
a301373b797385bbd286f9228286f26ae6cafc17 | 2,582 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.util.ElapsedTime;
@Autonomous(name="RedFoundation")
public class RedFoundation extends LinearOpMode {
HardwareBot robot = n... | 28.688889 | 91 | 0.566228 |
4f1586e9f92e6c6355a7a4a9db95ccf5452378b2 | 3,975 | package mcjty.lib.preferences;
import mcjty.lib.McJtyLib;
import mcjty.lib.gui.BuffStyle;
import mcjty.lib.gui.GuiStyle;
import mcjty.lib.network.PacketSendPreferencesToClient;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecra... | 28.804348 | 169 | 0.636478 |
a7f1199c97155d959e784232a38de62401e25683 | 749 | package id.nap.discord.model.wordnik;
public class Example {
private String url;
private String title;
private String text;
private long id;
public Example() {
super();
}
public Example(String url, String title, String text, long id) {
super();
this.url = url;
this.title = title;
this.text = text;
... | 14.132075 | 65 | 0.64753 |
223fe3b9376d218d05a9ef330eca5fdaae44ccc1 | 4,841 | package com.sykomaniac.sunwidget;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextVi... | 31.435065 | 144 | 0.681677 |
22ee92a99c47d554b7a5e1b052eee290b02c2579 | 977 | package jdo.party.model.relationship;
import javax.persistence.Entity;
import jdo.party.model.roles.Customer;
import jdo.party.model.roles.InternalOrganization;
@Entity
public class CustomerRelationship extends PartyRelationship {
public CustomerRelationship(InternalOrganization relationshipFrom, Customer relation... | 22.72093 | 94 | 0.793245 |
11fdcbfbe7748555bd962a39c9d8e7f2579092a6 | 26,022 | /*
* BSD 3-Clause License
*
* Copyright © 2020, viadee Unternehmensberatung AG
* 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 c... | 56.69281 | 122 | 0.688302 |
1f1c3c76190108193dd0cb3f8edcc7f3adcb797a | 15,123 | /* Copyright 2017 Zutubi Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 30.737805 | 124 | 0.641077 |
00ef4953ad241fdeb8dc6fd91c7a91f86acb2ef3 | 2,940 | /*
* 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 ... | 46.666667 | 131 | 0.744218 |
8d31a1e5617150ef6350cc577e7a113655aa98f8 | 1,858 | /*
* 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 ma... | 33.178571 | 98 | 0.636168 |
9664ed3c729e56015daa14d543371d28b8577819 | 6,790 | /*
* Copyright (c) 2019 by cordalo.ch - 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 the rights to use, copy, modify, merge, ... | 52.635659 | 463 | 0.594109 |
ff6e7cfe9cc68385889abc99a01cbe29e1a68fca | 2,100 | package com.pipemaze.eggdropsoap.mod_pndc;
import cpw.mods.fml.common.eventhandler.Event.Result;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.entity.Entity;
import net.minecraft.entity.monster.EntitySlime;
import net.minecraft.entity.monster.IMob;
import net.minecraft.util.MathHe... | 45.652174 | 113 | 0.697619 |
07441699345ec1824decb64e9bd7f2e2caa83900 | 4,059 | /*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* 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
*... | 29.627737 | 88 | 0.700172 |
fc55614bfbf5079fa9b40097377c5b563e9ea21e | 1,319 | package examples.rmi.arithmetic;
import bus.uigen.models.MainClassLaunchingUtility;
// this is a distrbuted implementation of a CS 1 (UNC Comp 110) first assignment submission described below
/******************************************************************
* Program or Assignment #: Assignment1
*
* Programmer: J... | 28.06383 | 107 | 0.645944 |
eae72f04ab3c2001ef95ae53f81694b81dd22157 | 8,950 | package com.example.thread;
import com.example.util.Utility;
import java.util.Date;
/**
* @author VanceKing
* @since 2018/3/18.
*/
class SynchronizedSample {
private interface AAA {
int a = 1;
void test();
}
private static class MyObject {
private int count = 0;
priv... | 30.650685 | 90 | 0.552849 |
bbd11740fb75f82438659c09be9dd8258102ec81 | 1,549 | package ng.cheo.android.inventory;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by mickey on 7/11/16.
*/
import ng.cheo.android.inventory.AssetContract.AssetEntry;
public class AssetDbHelper extends SQLiteOpenHelper {... | 35.204545 | 88 | 0.681085 |
a181c2d72215ef3835e2fff226629e0cff9289dd | 5,130 | package com.base.springboot.utils;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import jav... | 42.75 | 155 | 0.588889 |
e20fc2520ba46e98a43d53d81e2a6e655fe14c83 | 619 | package memstore.grader;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GradescopeOutput {
public int executionTime;
public String stdout_visibility = "visible";
public List<GradedTestResult> tests;
public List<Leade... | 26.913043 | 52 | 0.689822 |
d5d159b57122c808dea975058fb252060ae5033a | 3,654 | package kr.geun.o.config;
import kr.geun.o.app.bbs.code.ArticleStatusCd;
import kr.geun.o.app.bbs.model.BbsArticleEntity;
import kr.geun.o.app.bbs.model.BbsCategoryEntity;
import kr.geun.o.app.bbs.repository.BbsArticleRepository;
import kr.geun.o.app.bbs.repository.BbsCategoryRepository;
import kr.geun.o.app.user.mode... | 40.153846 | 140 | 0.670772 |
e0ef9e151a6aa5565dd57236dca1326a5375d326 | 2,023 | package com.sequenceiq.flow.component.sleep.event;
import java.util.ArrayList;
import java.util.Objects;
import com.sequenceiq.cloudbreak.common.event.AcceptResult;
import com.sequenceiq.cloudbreak.common.event.IdempotentEvent;
import reactor.rx.Promise;
public class NestedSleepChainTriggerEvent implements Idempote... | 28.492958 | 101 | 0.704399 |
0f033e46a85316ffb14954ae2096e9637a104c2b | 2,677 | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... | 26.77 | 88 | 0.686589 |
757bed99164f23beaaf2d47378ab7a16c98ea775 | 936 | package jedi.db.models;
/**
* @author thiago
* @version v1.0.0 20/03/2017
* @since v1.0.0
*/
public enum AutoClose {
YES(true),
NO(false);
private final boolean value;
private AutoClose(final boolean value) {
this.value = value;
}
public static AutoClose of(boolean value) {
... | 20.8 | 127 | 0.604701 |
2cd2950164726a16eb3d31bff233d949789355dc | 2,076 | package datastructures;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.st... | 31.938462 | 101 | 0.675819 |
11af30197ba5642a6a639d4c559b474dcb0688ce | 722 | package pl.stqa.training.selenium.appmanager;
import org.apache.commons.lang3.RandomStringUtils;
import java.util.Random;
/**
* Created by Konrad on 26/11/2017.
*/
public class Generators extends HelperBase {
public Generators(ApplicationManager app) throws Exception {
super(app);
}
public static Strin... | 22.5625 | 63 | 0.752078 |
79493a68774abf0b31ba563e33686f991550b276 | 7,712 | package com.tgithubc.kumao.message;
import android.os.Looper;
import android.util.Log;
import android.util.Pair;
import com.tgithubc.kumao.message.handler.ThreadMessageHandler;
import com.tgithubc.kumao.message.message.Message;
import com.tgithubc.kumao.message.message.RunThread;
import com.tgithubc.kumao.message.pr... | 30.125 | 114 | 0.55083 |
5ac5d15943538dccae54850e17aa34fbbd08face | 3,216 | //| Copyright - The University of Edinburgh 2013 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... | 35.340659 | 86 | 0.637127 |
e815116889a04ca5297de0cb1fcf12927326416c | 6,849 | /*
* Copyright (C) 2021 Not Alexa
*
* 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 ... | 28.5375 | 133 | 0.691196 |
75f30fb0fd25fd66b97ff66eb912a6573dbc2614 | 2,073 | // Copyright 2005 Google Inc.
// All Rights Reserved.
package net.jsunit;
import junit.framework.TestCase;
import net.jsunit.utility.XmlUtility;
import org.jdom.Document;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.net.... | 34.55 | 96 | 0.575494 |
b974abbbebbd834c8df7a10c8e03918f45d0fef7 | 115 | void advance() {
do {
position += 2;
} while (position < data.length && data[position] == EMPTY);
} | 23 | 64 | 0.53913 |
879c7c238fa5658800e5e174b2e106181b9baf0b | 10,667 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses... | 15.733038 | 815 | 0.794881 |
9682a821ae27445e52dbe8233a34f52e46010dcd | 88 | package note.designPattern.abstractFactory;
public class AudiSedan implements Sedan{
}
| 17.6 | 43 | 0.840909 |
8c784a7861287206ec29ae8b98f09bece93db0d8 | 8,551 | /** 12.12.2011 01:16 */
package fabric.module.typegen.base;
import java.util.List;
import java.util.Stack;
import java.util.HashMap;
import org.apache.xmlbeans.SchemaType;
import fabric.module.typegen.AttributeContainer;
import fabric.wsdlschemaparser.schema.FSchemaRestrictions;
import fabric.wsdlschemaparser.schema... | 34.479839 | 127 | 0.678751 |
9479e2d246b87aa619de273e35e03f8d679bf094 | 1,505 | /*
* Copyright (c) 1998-2021 John Caron and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.nc2.grib.grib1;
import static com.google.common.truth.Truth.assertThat;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import org.junit.Test;... | 32.021277 | 101 | 0.730233 |
cb7d8c37fef26d7fd502b41e0134f2ead4f1d57f | 14,401 | package at.ac.tuwien.ec.sleipnir;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.spark... | 39.346995 | 182 | 0.715992 |
5a0e5bbcef0488d9bfdabff028e146390be32a80 | 78 | /**
* Ardor3D's UI extension package.
*/
package com.ardor3d.extension.ui;
| 13 | 34 | 0.692308 |
72f70ba98b70b42d135c7bede2bc6541b5e87b32 | 1,773 | package com.beekeeper.model.comb.cell;
import java.util.ArrayList;
import com.beekeeper.model.agent.Agent;
import com.beekeeper.model.agent.EmitterAgent;
import com.beekeeper.model.agent.WorkingAgent;
import com.beekeeper.model.comb.CombServices;
public class CombCell
{
protected int combID = -1;
public int x,y... | 20.37931 | 77 | 0.724196 |
f74e5f923c2694dcde61069b7d027a2dc82e99ad | 3,090 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 27.105263 | 103 | 0.643689 |
2fd45feaa7271f34a66fa45ee5715a064aee74d0 | 4,493 | package io.keyko.monitoring.agent.core.chain.service.strategy;
import io.keyko.monitoring.agent.core.chain.block.BlockListener;
import io.keyko.monitoring.agent.core.chain.service.domain.Block;
import io.keyko.monitoring.agent.core.model.LatestBlock;
import io.keyko.monitoring.agent.core.service.AsyncTaskService;
impo... | 36.827869 | 113 | 0.66548 |
df7ee8384dc032b7f4f6e71d7b86caa355363e00 | 2,373 | package com.trett.rss.models;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.util.Objects;
/**
* RSS c... | 18.833333 | 61 | 0.606827 |
8d6fab40bc00e67f0b78f6eb76223fa4b3211e5c | 11,107 | package signpost;
import ucb.gui2.Pad;
import java.util.concurrent.ArrayBlockingQueue;
import java.awt.Font;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.BasicStroke;
import java.awt.event.MouseEvent;
import java.awt.geom.AffineTransform;
import static java.awt.RenderingHints.*;
import static ... | 32.381924 | 80 | 0.544792 |
9e403475527fbf89b63a9d0f5be92806cd676ef0 | 1,821 | /*
* This file is subject to the terms and conditions outlined in the file 'LICENSE' (hint: it's MIT); this file is located in the root directory near the README.md which you should also read.
*
* This file is part of the 'Adama' project which is a programming language and document store for board games; however, it... | 33.109091 | 190 | 0.756727 |
12a4b286067324ebfd3b3697c72f404cabb76393 | 1,444 | package at.adridi.finanzverwaltung.db;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
/**
* Hibernate Utility Klasse um Session-Facto... | 32.088889 | 84 | 0.680748 |
89c8f6f598e4ba3fa5ee56ff5746877b4bfd5ec5 | 4,212 | package com.swifty.fillcolor.controller.main;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayou... | 32.90625 | 160 | 0.650047 |
04b93924038dc29cf48cb14bbe0e7a59606941a7 | 4,147 | package uk.gov.hmcts.reform.divorce.service;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import uk.gov.hmcts.reform.divorce.mapper.DocumentCollectionDocumentRequestMapper;... | 41.47 | 124 | 0.694478 |
412953ad9f2ec974ba89e36e5e39dc47e21f5fac | 673 | package de.hasi.bandbash.commands;
import java.util.Collection;
import java.util.Map;
public interface Queries {
Collection<Map<String, String>> getAreaIntro();
Collection<Map<String, String>> describeArea();
Collection<Map<String, String>> getPaths();
Collection<Map<String, String>> goTo(String t... | 24.925926 | 66 | 0.719168 |
c09bc1a3f0c99e26ccc8816e734db47af6ffb89d | 7,144 | package com.fumbbl.iconcomposer.image;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.util.stream.Collectors;
import com.fumbbl.iconcomposer.ColourTheme;
import com.fumbbl.iconcomposer.controllers.Controller;
import com.fumbb... | 30.926407 | 124 | 0.703947 |
aeb4818eb454e88f738e8b4e3aea31576278f350 | 4,782 | package com.secuconnect.demo.payment.payout;
import com.secuconnect.client.Environment;
import com.secuconnect.demo.Globals;
import com.secuconnect.client.ApiException;
import com.secuconnect.client.api.PaymentSecupayPayoutApi;
import com.secuconnect.client.model.*;
import java.util.ArrayList;
public class createPay... | 42.318584 | 111 | 0.589084 |
033e0ddda084e9c441d7b235d7d4510fc22f0294 | 2,291 | package com.structurizr.componentfinder;
import com.structurizr.Workspace;
import com.structurizr.model.Component;
import com.structurizr.model.Container;
import com.structurizr.model.Model;
import com.structurizr.model.SoftwareSystem;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.ass... | 39.5 | 130 | 0.701877 |
8be5d122c1903cb5f5e2e132456455a135123cd2 | 2,098 | package org.simpleframework.demo.jmx;
import java.lang.management.ManagementFactory;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import org.springframework.jmx.export.annotation.ManagedResource;
import com.sun.jdmk.comm.AuthInfo;
import com.sun.jdmk.comm.CommunicatorServer;
import com.s... | 36.172414 | 124 | 0.732602 |
c960fafb5dc27037037e8a82c0463c3d1d3f2354 | 1,016 | package com.portal.app.helper;
public class SearchCriteria {
private String key;
private String parentKey;
private String operation;
private Object value;
public SearchCriteria() {
}
public SearchCriteria(String key, String parentKey, String operation, Object value) {
this.key... | 18.472727 | 89 | 0.608268 |
3f2180e4a6154f1392ab624c1bf9d46c4b918e16 | 5,385 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.msu.cme.rdp.framebot.stat;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;... | 37.922535 | 123 | 0.497864 |
efc38b9e0d55db8b8bed805a9975146771b0a118 | 8,051 | package me.mathiasluo.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Build;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.v... | 36.265766 | 142 | 0.661905 |
8e08bc02de2cdd00e9336dd736aa9e61e0c4e774 | 3,696 | package home.eduard.braintraininggame;
public class Question {
private int level;
private final String[] oper = {"*", "/", "+", "-"};
private final int maximumNumber = 10;
private String challenge;
private int howManyNumbers;
private int answer;
public Question(int level) {
this.l... | 25.666667 | 75 | 0.520292 |
256528d77924658485de05c81d1a21652b498be9 | 3,295 | /*-
* #%L
* anchor-feature-io
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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... | 40.679012 | 95 | 0.712291 |
22bb857c71d53f1d83097ce5105d58f4688e5059 | 3,883 | package main.controller;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.CheckBox;
import javafx.scene.control.TextInputControl;
import main.Main;
import main.db.*;
import java.net.URL;
import java.time.LocalDateTime;
import java.time.ZoneId;
i... | 36.28972 | 154 | 0.674994 |
1a07c70154661802eb6dbeab5bc0cde9275c275a | 6,268 | /*
* Copyright 2012-2017 Canoo Engineering AG.
*
* 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 la... | 32.816754 | 163 | 0.647735 |
f4bfe911c77d83cc4b56e2b30a45c310fdc86c1f | 815 | package com.strumski.library.util;
import com.strumski.library.entities.Author;
import com.strumski.library.entities.Book;
import org.apache.commons.lang3.RandomStringUtils;
import java.util.Random;
public class BookAuthorFactory {
public static Book generateRandomBook() {
return Book.builder()
... | 30.185185 | 68 | 0.641718 |
4bd91b8ea6432858275ca9e390b7e95c0f2baaed | 3,898 | package com.am.scheduling.presentation.screens.home.schedule.modules;
import android.util.SparseArray;
import com.am.scheduling.chapter5.Timetable;
import com.am.scheduling.data.database.models.Group;
import com.am.scheduling.presentation.abc.core.base.BasePresenterImpl;
import com.am.scheduling.presentation.screens.... | 30.453125 | 127 | 0.590559 |
c60aef0cf45814a8add2ea628b0f9e8dfd25c6bf | 4,165 | package com.baxi.agrohelper.view;
/*-
* #%L
* agro-helper
* %%
* Copyright (C) 2017 University of Debrecen, Faculty of Informatics
* %%
* 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
... | 28.141892 | 116 | 0.75006 |
93f6db1701b78ec58fd710f8f2dacb7c6abb5ff2 | 3,970 | package org.terasology.joml.test;
import org.joml.Vector2dc;
import org.joml.Vector2fc;
import org.joml.Vector3dc;
import org.joml.Vector3fc;
import org.joml.Vector4dc;
import org.joml.Vector4fc;
import java.util.function.Supplier;
import static org.terasology.joml.test.AssertionUtils.failNotEqual;
import static org... | 38.543689 | 117 | 0.672796 |
f103f83269707412a1340a54108ede5df17e6cf0 | 4,596 | /*
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.sql.data.common;
import javax.persistence.*;
import javax.xml.datatype.XMLGregorianCalendar;
... | 39.965217 | 132 | 0.756527 |
2e1f13058620c3b76b2ce38d46beddf5abfda4b1 | 2,060 | package com.arcao.trackables;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.widget.ImageView;
import com.arcao.trackables.internal.di.component.AppComponent;
import com.arcao.t... | 23.678161 | 105 | 0.750485 |
ed1c7be25cf445ffe0527c97e0c268246c73000f | 7,374 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agree... | 38.810526 | 124 | 0.79387 |
a1e1825f49143ddf2efe6aab8007839f51e6672a | 785 |
import fi.helsinki.cs.tmc.edutestutils.Points;
import org.junit.*;
import static org.junit.Assert.*;
@Points("02-30")
public class SmallestTest {
@Test
public void normalCase() {
test(2, 7, 2);
}
@Test
public void oneIsNegative() {
test(-5, 4, -5);
}
@Test
public voi... | 21.216216 | 84 | 0.610191 |
1bd86157102dba0931bb81414c578fc246750e06 | 10,922 | package com.zyu.wsecx.asn1.pkcs;
import com.zyu.wsecx.asn1.ASN1Encodable;
import com.zyu.wsecx.asn1.ASN1EncodableVector;
import com.zyu.wsecx.asn1.ASN1InputStream;
import com.zyu.wsecx.asn1.ASN1Sequence;
import com.zyu.wsecx.asn1.DERBitString;
import com.zyu.wsecx.asn1.DERInteger;
import com.zyu.wsecx.asn1.DERNull;
im... | 42.498054 | 152 | 0.787493 |
bf012c4117640c72061e831e5effd77fce6bde1d | 1,603 | /*
* Copyright (c) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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 obtain a copy of the License at
*
* http://www.apac... | 28.625 | 78 | 0.75733 |
c21c6cf388f73772615b0f68213405389913b52e | 645 | package com.education.repository.projection;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter
public class DiaryClassroomSchoolProjection {
private Long id;
private LocalDate dateDiary;
private Boolean active;
private Long idClassroomSchool;
private String nameClassroomSc... | 22.241379 | 138 | 0.796899 |
444657ad3c4934820964cc039f9394021cbed3f6 | 1,131 | package org.sherlockyb.leetcode.string.zigZagConversion;
/**
* Created by yangbing on 2017/4/3.
*/
public class Solution {
public String convert(String s, int numRows) {
if (s == null || s.length() <= 0 || numRows <= 0) {
return "";
}
if (numRows == 1)
return s;
... | 30.567568 | 98 | 0.473033 |
dd8ad2240c3b6b54d24c541c9b11986cd289ed0d | 674 | package com.haiyu.manager.dao;
import com.haiyu.manager.pojo.SettingsPayType;
import com.haiyu.manager.query.PayTypeQuery;
import com.haiyu.manager.vo.PayTypeVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;
import java.util.List;
@Repositor... | 28.083333 | 94 | 0.801187 |
9979ba5ff3a6f74026ad3252da22a1be8ea8b274 | 5,042 | /*
* Copyright (c) 2009, Rickard Öberg. 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 required by applicable l... | 27.402174 | 117 | 0.549782 |
a8238e35f53208a575cb07e836a79f553dde03fd | 5,601 | package de.max.adventofcode;
import java.time.LocalDateTime;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Day04
{
public static void main(String[] args)
{
doPart(1);
System.out.println();
doPart(2);
}
private static void doPar... | 30.606557 | 99 | 0.560614 |
5c3cfb4a534bb8e16c262276e4a97b89d2c44140 | 369 | package com.github.amatanhead.pcl.errors;
/**
* Error when processing user input.
*/
public class ProcessingError extends Exception {
public ProcessingError() {
super();
}
public ProcessingError(String message) {
super(message);
}
public ProcessingError(String message, Throwable... | 19.421053 | 61 | 0.655827 |
a61d4a4ddcc73901438f97c4c11c96c035096b65 | 342 | package com.fjx.mg.me.safe_center;
public interface AuthType {
int GESTURE = 2;//手势修改或者重置验证
int SECURITY_ISSUES = 3;//设置安全问题
int LOGIN_PASSWORD = 4;//扽里密码修改或者重置
int BIND_MOBILE = 5;//换绑手机
int PAY_PASSWORD = 6;//设置支付密码
int FINGERPRINT = 7;//指纹设置
int BIND_DEVICE = 8;//绑定设备
int FORGET_PASS... | 24.428571 | 39 | 0.669591 |
a215ff44dfcfe45cac502c7dbf0e14b41bd3c309 | 4,192 | package com.smcpartners.shape.usecases.activate_user;
import com.smcpartners.shape.crosscutting.security.RequestScopedUserId;
import com.smcpartners.shape.crosscutting.security.annotations.SecureRequireActiveLogActivity;
import com.smcpartners.shape.frameworks.data.dao.shape.UserDAO;
import com.smcpartners.shape.share... | 36.137931 | 111 | 0.684399 |
35f7b9476d38d2d2b67952550a724ca01598341b | 4,047 | package com.laxmena.a478_editcontactapp;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import andr... | 36.459459 | 120 | 0.660983 |
314e7ddf17bc6678325dca93cf65ed9f24884a82 | 4,887 | /*
* 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 ... | 30.54375 | 90 | 0.791692 |
9503b69b1ddebb3bc9d83a22d657987743633a18 | 373 | package com.qidao.qidao.msg.msgMenu.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MsgMenuFather {
private Long id;
private String name;
priv... | 14.92 | 43 | 0.769437 |
17ab8716e055b9b4d9fd48be6daadd4f5fdfdce9 | 203 | public class MyThread extends Thread{
@Override
public void run() {
super.run();
for (int i = 0;i <= 1000;i++){
System.out.println("分支线程-----> "+i);
}
}
}
| 20.3 | 48 | 0.472906 |
3d43d838f33bd31a401376cd2eb9d2f6d82efe31 | 1,704 | /*
Foilen Infra Resource DNS
https://github.com/foilen/foilen-infra-resource-dns
Copyright (c) 2018 Foilen (http://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.resource.dns;
import com.foilen.infra.plugin.v1.core.context.ChangesContext;
import com.fo... | 37.043478 | 153 | 0.748239 |
c751c3272b132ebd14b7627373a25b7f015d4c50 | 1,045 | package com.lordjoe.ui.propertyeditor;
import com.lordjoe.propertyeditor.*;
/**
* com.lordjoe.ui.propertyeditor.ICollectionEditorGenerator
* factory for collection editors
* @author Steve Lewis
* @date Dec 15, 2007
*/
public interface ICollectionEditorGenerator {
public static ICollectionEditorGenerator[] ... | 29.857143 | 92 | 0.717703 |
2e0e01167708cff51e28e735b97fdb704e4a4d1a | 45 | package P01_Jar_of_T;
public class Main {
}
| 9 | 21 | 0.755556 |
b236f83650d9688c2513ec30389d09019c5028df | 628 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.team1160.logomotion.model.states.arm;
/**
*
* @author CJ
*/
public class ShoulderState {
public int lastPWMRight;
public int lastPWMLeft;
public double shoulderAngle;
public String toSt... | 22.428571 | 65 | 0.603503 |
f619b31f02608dee345b12b1fb7ce6b13f257dc3 | 2,059 | package cn.bamboo.user.dao;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import cn.bamboo.user.domain.User;
... | 22.877778 | 73 | 0.671685 |
9002a8d8fd40f29e4681caf1300a3a2123c1db22 | 6,516 | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.221622 | 90 | 0.76903 |
9dd5230a5593b3c6e0b8969ec504df0c37d8bf5d | 1,268 | package com.hourglassapps.util;
import java.io.Closeable;
import java.util.Deque;
import java.util.LinkedList;
public class Closer implements AutoCloseable {
private boolean mClosed=false;
private Deque<AutoCloseable> mCloseables=new LinkedList<>();
/**
* Adds an AutoCloseable instance to the end of our list o... | 23.481481 | 80 | 0.701104 |
050d5d7c1f8357c1e39beed81cbc42d3ffd79a6b | 243 | /*
* 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.
*/
module B {
requires transitive A;
exports pkgB;
} | 24.3 | 79 | 0.716049 |
83d36594acf993a5d1aaf1c0167412706584b893 | 2,846 | package testPackage;
import javax.ejb.*;
/**
* This is the bean class for the SalesTaxCodeTblBean enterprise bean.
* Created Kdysi
* @author Kdosi
*/
public abstract class SalesTaxCodeTblBean implements javax.ejb.EntityBean, testPackage.SalesTaxCodeTblLocalBusiness {
private javax.ejb.EntityContext context;
... | 28.178218 | 154 | 0.634575 |
2e92ab003602cf5500c729af145f69c837cdb47c | 3,791 | package com.pavikumbhar.javaheart.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletContext;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.xssf.usermodel.X... | 35.764151 | 104 | 0.72804 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.