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 |
|---|---|---|---|---|---|
01536f4a6135f73c6828e2da8e2c381d3404befb | 356 | package lista1;
import java.util.Locale;
import java.util.Scanner;
public class Exercicio2 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
Locale.setDefault(Locale.US);
double x;
System.out.println("\n Digite um numero");
x = sc.nextDouble();
System.out.println(... | 19.777778 | 54 | 0.676966 |
2e4e308814d809d8f36c2445af66ca75e74a6358 | 307 | package cn.xfyun.config;
/**
* @author mqgao
* @version 1.0
* @date 2021/7/6 11:05
*/
public enum FaceDetectEnum {
ON("1"),
OFF("0");
private String value;
FaceDetectEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
| 13.347826 | 34 | 0.563518 |
6d8e5eb537f321f60c0ad006f86dd3aa94289a6d | 1,818 | import java.util.Scanner;
/**
* This class represents a social networking startup's new system
* for how their user data is organized.
*
*
* @author Adam Stebbing
*/
public class Driver {
public static void main(String[] args) {
String cmd;
BST<User> usersDB = new BST<User>();
do {
Scanner keyboard = ... | 31.894737 | 77 | 0.650715 |
c9ff8d82c3d056418ce81fa49af34ceea49edaf8 | 1,426 | /*
* #%L
* BroadleafCommerce Open Admin Platform
* %%
* Copyright (C) 2009 - 2015 Broadleaf Commerce
* %%
* 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.... | 35.65 | 129 | 0.755259 |
7d2192ade520f0abc791e341cbc3455f1ddfa121 | 15,410 | /**
* current-pims-web org.pimslims.command.newtarget GenBankMultipleCDSParser.java
*
* @author Petr Troshin aka pvt43
* @date 3 Dec 2007
*
* Protein Information Management System
* @version: 1.3
*
* Copyright (c) 2007 Petr Troshin
*
*
*/
package org.pimslims.bioinf.newtarg... | 40.984043 | 119 | 0.615315 |
0da8a0807ac4568fd1b8f910a2d3f0baaaa4dac9 | 2,454 | package com.inepex.ineForm.client.form.widgets;
import java.util.List;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Vertica... | 26.387097 | 90 | 0.617767 |
8244c0517e40dfc2918b48829b251b4be0e3a702 | 20,711 | /**
* @FileName : PPDeviceInfoJsonParser.java
* @Project : Presence Pro
* @Copyright : Copyright (c) 2016 People Power Company. All rights reserved.
*/
package com.peoplepowerco.virtuoso.parser;
import android.text.TextUtils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import c... | 57.530556 | 151 | 0.539761 |
e93590baf2815248bfa2ae65ff49f20ab055bb8c | 1,599 | package com.eyeieye.melody.demo.web.action.crypto;
import com.eyeieye.melody.util.StringUtil;
import com.eyeieye.melody.util.crypto.Crypto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
imp... | 29.611111 | 76 | 0.672295 |
4b71119a67127c263bfb54ac859aef23918ce1e0 | 2,712 | package ua.org.ostpc.ittools.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
impo... | 34.329114 | 91 | 0.687316 |
7c84098d7772ce70026136a94e045b2aadb920dc | 1,612 | package net.silentchaos512.scalinghealth.objects.item;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.particles.IParticleData;
import net.minecraft.util.SoundEvent;
import net.silentchaos512.scalinghealth.objects.Registration;
import net.silentchaos512.scalinghealth.utils.config.EnabledFeatures;... | 30.415094 | 136 | 0.740074 |
7f8ea51c7304ae7f45c3042aa5b0ccbfc0a8ab70 | 3,397 | package com.gooroomee.api.comment;
import com.gooroomee.api.error.exception.CommentsNotFoundException;
import com.gooroomee.api.error.exception.MemberNotFoundException;
import com.gooroomee.api.error.exception.PostNotFoundException;
import com.gooroomee.api.member.Member;
import com.gooroomee.api.member.MemberReposito... | 40.440476 | 147 | 0.731233 |
72f3531141759ab1d15fb229a6c6d1bff065cb99 | 595 | package com.org.safeSelling.util;
import java.util.ArrayList;
import java.util.List;
public class StringConversions {
public static List<String> stringToList(String inp, String delimiter) {
String[] arr = inp.split(delimiter);
List<String> list = new ArrayList<String>();
for (String element : arr)... | 22.037037 | 73 | 0.677311 |
996c84aecdb9e108428d33d106605fb19ce75d93 | 1,944 | package com.twu.biblioteca.biblioteca;
import com.twu.biblioteca.items.Item;
import java.util.ArrayList;
import java.util.List;
public class Biblioteca {
private static List<Item> totalBooks = new ArrayList<>();
private static List<Item> totalMovies = new ArrayList<>();
public enum Section {
... | 27 | 71 | 0.601337 |
b3e25d0a88870cd0d11601632b48f2a792ee7bca | 89 | package com.torontocodingcollective.oi;
public enum TStick {
SINGLE, LEFT, RIGHT;
}
| 14.833333 | 39 | 0.741573 |
89a8f82a9a199612588edf25d6d48feec890b318 | 33,502 | /*
* Copyright 2009-2015 University of Hildesheim, Software Systems Engineering
*
* 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... | 41.825218 | 121 | 0.582174 |
3c215fecec3f6520102df418c7fbe9614c2f0184 | 1,086 | package integration.selectors.pseudoclasses.form;
import static io.github.seleniumquery.SeleniumQuery.$;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import infrastructure.junitrule.SetUpAndTearDownDriver;
import org.junit.Rule;
import org.junit.Test;
public class PasswordPseudo... | 31.941176 | 99 | 0.686924 |
4c1af4272d4baea58b6d3a5f987a7d2ad91ace09 | 3,947 | /*
* 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 ... | 35.241071 | 115 | 0.640993 |
0709e744b25ec88df46eace8f1709f47b4e06e1b | 3,552 | /*
* Copyright 2018-2020 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 r... | 40.363636 | 152 | 0.657376 |
3086d8e21cb11c01b5f582bd6c71b265d6c05a2e | 138 | package com.dottydingo.service.endpoint.context;
/**
*/
public interface CorrelationIdGenerator
{
String generateCorrelationId();
}
| 15.333333 | 48 | 0.768116 |
60939c5c2615447c1cbe7671c1cdb21777b6b1fa | 19,264 | package com.wimoto.app.model.sensors;
import java.math.BigInteger;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import android.bluetooth.BluetoothGattCharacteristic;
import android.util.Log;
import com.wimoto.app.AppContext;
import com... | 41.074627 | 133 | 0.753686 |
2ab1d278899295377f47c588f55897f2c9fc282e | 21,723 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package merlionfrsmanagementclient;
import ejb.session.stateless.AircraftConfigurationSessionBeanRemote;
import ejb.session.stateless.Airc... | 48.488839 | 335 | 0.588317 |
7cc95bc109bc7e9357ba07234400bbcc442dbb50 | 1,485 | package L01StacksAndQueues;
import java.util.ArrayDeque;
import java.util.Scanner;
public class L07MathPotato {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] childrenInGame = scanner.nextLine().split("\\s+");
int tosses = Integer.p... | 28.557692 | 68 | 0.482828 |
2ba340669ceef34d68c51e968cb4d306c59f36f9 | 12,206 | /*
* Copyright 2019-2021 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | 52.612069 | 151 | 0.831804 |
d3b5d078c2aa5652563fd54b08c925f4a2c72c57 | 17,848 | package com.sohu.tv.jedis.stat.data;
import java.text.DecimalFormat;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executors;... | 37.813559 | 183 | 0.599955 |
313b4c248da217ff8e78ddb4ea30c36300abbf0a | 4,372 | /*
* 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")... | 30.151724 | 92 | 0.63312 |
587aade9701ed096bda5b3a225051a9113b9152e | 762 | package br.com.buyme.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.Data;
@Entity
@Table(name="forma"... | 21.771429 | 45 | 0.778215 |
651ee19831f9f9859c64298bac7e235fd7d91bbc | 9,451 | /*
* 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 ... | 42.959091 | 254 | 0.684584 |
6b0d5356e12baff2822568a431bc180b404997ab | 830 | package me.gaigeshen.doudian.config;
/**
* 常量
*
* @author gaigeshen
*/
public class Constants {
/** 接口请求地址 */
public static final String API_URL = "https://openapi-fxg.jinritemai.com";
/** 店铺授权地址 */
public static final String SHOP_AUTHORIZE_TEMPLATE_URL = "https://fxg.jinritemai.com/index.html#/ffa/open/... | 33.2 | 189 | 0.748193 |
4266b84ff0083c7513c73efd09532497567deea0 | 8,420 | package org.cyclops.integratedterminalscompat.network.packet;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.inventory.container.Slot;
import net.minecraft.item.I... | 48.67052 | 167 | 0.674466 |
2d13cc056f06f8cdc5c1eabe1fba9bd65a0b622f | 81 | /** Kafka consumer for voting events. */
public class VotingEventConsumer {
}
| 11.571429 | 40 | 0.716049 |
fed110e5696493da2a585a2b870690cce6dfad79 | 352 | package org.artifactory.aql.result.rows;
import static org.artifactory.aql.model.AqlDomainEnum.dependencies;
/**
* @author Gidi Shabat
*/
@QueryTypes(value = dependencies)
public interface AqlBuildDependency extends AqlRowResult {
String getBuildDependencyName();
String getBuildDependencyScope();
Str... | 20.705882 | 67 | 0.775568 |
6d71c609fd6a72bcfa90af6067f7cfa79a83bf1c | 7,373 | /*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | 34.293023 | 188 | 0.605859 |
29609db23b85d991d572ce10ca65cfb1e7c684ba | 4,422 | package org.or5e.ffmpeg.core;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.concurrent.E... | 30.708333 | 100 | 0.757802 |
c5c45d3c3ba31362ca85e1f21802b64ef40e5292 | 1,149 | package com.vaadin.demo.domain;
import java.time.LocalDateTime;
import java.time.LocalTime;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; // hidden-full-source-line
@JsonIgnoreProperties(ignoreUnknown = true) // hidden-full-source-line
// tag::snippet[]
public class Appointment {
private LocalTime... | 19.15 | 88 | 0.689295 |
75610661eb4d3e8e822eb821440dacad29804718 | 10,049 | /*
* Copyright 2022 Alibaba Group Holding Limited.
*
* 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 applic... | 32.003185 | 100 | 0.672107 |
076f97da4ab9f152a454c7380d50dfc3acbc6620 | 8,704 | package us.ihmc.footstepPlanning.graphSearch;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import us.ihmc.commons.MathTools;
import us.ihmc.euclid.geometry.ConvexPolygon2D;
import us.ihmc.euclid.referenceFrame.FramePose3D;
import us.ihmc.euclid.referenceFrame.ReferenceFrame;
import us.ih... | 64.955224 | 215 | 0.744945 |
72fcfa9a356062713effce9580caf0d7197e0f42 | 1,749 | package stsjorbsmod.cards.wanderer;
import com.megacrit.cardcrawl.actions.common.HealAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import stsjorbsmod.JorbsMod;
import stsjorbsmod.cards.CustomJorbsModCard;
import stsjorbsmod.actions.EndTu... | 36.4375 | 91 | 0.71984 |
6488f884b8e2b172e0d7bd6b36a3b4b48a955d34 | 231 | package it.vige.businesscomponents.businesslogic.interfaces;
import javax.ejb.Stateless;
@Stateless
public class MyTopics implements Topics {
@Override
public String getCurrentTopicName() {
return "current_topic_name";
}
}
| 17.769231 | 60 | 0.796537 |
8c2e6fce24e955dfde4aceac9ace0f2a2624fcc9 | 527 | package com.gaffey.mall.security.component;
import org.springframework.security.access.ConfigAttribute;
import java.util.Map;
/**
* 动态权限相关业务
*
* @author gaffey
* @created 2020-09-17 23:31:00
*/
public interface DynamicSecurityService {
/**
* <p>
* 加载资源ANT通配符和资源对应MAP
* </p>
* @param
... | 21.08 | 98 | 0.671727 |
69da98ada739591d04d17e91b34b2ebdc87c750d | 331 | package basics.finalAndStatic.staticexample;
public class StaticClassExampleCaller {
public void method3() {
//Static members can be called directly
StaticClassExample.method1();
StaticClassExample.b = 100;
//Non static needs obj
StaticClassExample obj = new StaticClassExample();
obj.method2();
... | 16.55 | 52 | 0.725076 |
300b098f0700fb9c4eddceccc149f13d7b2cce31 | 284 | package org.kie.services.client.api.builder;
/**
* This class will be deleted after the 6.2.x branch.
* </p>
* Please see the {@link RemoteRuntimeEngineBuilder} interface.
*/
@Deprecated
public interface RemoteRuntimeEngineFactoryBuilder extends RemoteRuntimeEngineBuilder {
} | 25.818182 | 87 | 0.771127 |
cc14c2aaacd494d6c2816b8f58a7699b1a25a287 | 986 | package presentation.command.classifiers;
import business.classifiers.agrupamientosecuencial.AgrupamientoSec;
import business.factory.FactoryAS;
import business.transfers.TAgrupamientoSec;
import business.transfers.TResult;
import presentation.command.Command;
import presentation.controller.BusinessEvent;
import prese... | 29.878788 | 69 | 0.810345 |
25e52117b73424ea48aef721545406c3646efa97 | 1,111 | package com.simibubi.create.foundation.utility;
import java.util.Random;
import net.minecraft.util.Direction.Axis;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.Vec3i;
public class VecHelper {
public static Vec3d rotate(Vec3d vec, float deg, Axis ax... | 27.775 | 106 | 0.641764 |
fce4346d8d7f8fd788ba39f7ec237a4a55db8c1c | 471 | package cn.jxust.utils;
import java.io.UnsupportedEncodingException;
import org.apache.commons.lang.StringUtils;
public class MyStringUtils
{
/**
* iso8859-1转化为utf-8编码
* @param str
* @return
*/
public static String iso2utf(String str)
{
String result = StringUtils.stripToEmpty(str);
try
{
result ... | 17.444444 | 63 | 0.698514 |
7c5ad7e359bc0b54d0ebfc53e9e4686b74af89d1 | 323 | package testclasses;
import de.unifreiburg.cs.proglang.jgs.support.DynamicLabel;
/**
* Created by Nicolas Müller on 07.02.17.
*/
public class NoNSU1 {
public static void main(String[] args) {
int x = 3;
int y = DynamicLabel.makeHigh(7);
int z = x + y;
System.out.println(z);
}... | 20.1875 | 59 | 0.616099 |
4e2c2f999fee6fa117d429fb1affb4e9aa54f42b | 890 | package org.tain.verify.exam07;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.stereotype.Component;
import org.tain.utils.ClassUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
@Component(value = "exam07.StreamExample")
public class StreamEx... | 22.25 | 58 | 0.688764 |
4425bb44b7abc4c7e2cdc0761c16bfa4f493702d | 1,547 | /*
* Copyright (c) 2022. lWoHvYe(Hongyan Wang)
*
* 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 requir... | 35.976744 | 85 | 0.707822 |
570f8584f2d8e8aae2f1b6c26554ffdbe49ce5eb | 8,642 | import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
/**
* The database of staff records.
*/
public class StaffRecordDB implements Database {
// key: StaffID, value: password
private HashMap<String, String> staffIDPasswordRecord;
private String filename;
/*... | 37.411255 | 133 | 0.563874 |
b61367b09cede4f2cd13d2e39490495a59510829 | 3,547 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.marketdata.availability;
import com.opengamma.engine.ComputationTargetSpecification;
import com.opengamma.engine.marketdata.MarketDataProvider;
import c... | 62.22807 | 199 | 0.793346 |
19c771a96b30b959dbfcf7a9fa75c3ef7489f7e5 | 1,334 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Rompezabezas;
import java.awt.Color;
import java.awt.Image;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEve... | 19.910448 | 79 | 0.622189 |
1c19866a128f2c0c19f5ebc5f022a1ff597206a5 | 908 | package io.syndesis.qe.cucumber;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;
import lombok.Getter;
/**
* This class stores all log events.
... | 32.428571 | 144 | 0.729075 |
86548cb233abcc7e9df9746c493ac22a9df0fcfd | 2,095 | package edu.ecu.cs.csci6030.search;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.queryparser.classic.MultiFieldQueryParser;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.queryparser.flexible.core.QueryNodeException;
import org.apache.lucene.search.Query;
... | 29.507042 | 90 | 0.582816 |
0f65221985d94234566b2c587e5ee18ef5007a2d | 1,876 | package org.innovateuk.ifs.application.summary.populator;
import org.innovateuk.ifs.application.readonly.populator.ApplicationReadOnlyViewModelPopulator;
import org.innovateuk.ifs.application.resource.ApplicationResource;
import org.innovateuk.ifs.application.summary.viewmodel.ApplicationSummaryViewModel;
import org.i... | 45.756098 | 164 | 0.83049 |
674c9c8a357aa757071814bde4f944f29a50796f | 1,202 | /*
Copyright 2007-2010 Selenium committers
Portions copyright 2011 Software Freedom Conservancy
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
Unle... | 35.352941 | 98 | 0.781198 |
509ecbdb1201901a21b7a7359fb49392b8baaa59 | 3,257 | package com.humberto.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springfra... | 29.609091 | 86 | 0.748849 |
86ae5ccddc64caca6d7c3541e64d508dfc16268f | 1,683 | package com.github.sokyranthedragon.mia.potions;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge... | 28.525424 | 106 | 0.699941 |
4629dc565554c8c6b0b64cc457d3cd5d08c5877c | 2,672 | package urlshortener.demo.repository;
import urlshortener.demo.domain.BaseEntity;
import urlshortener.demo.exception.CannotAddEntityException;
import urlshortener.demo.exception.UnknownEntityException;
import static org.junit.Assert.*;
public abstract class BaseRepositoryTest {
protected void cleanUp(IRepositor... | 29.362637 | 117 | 0.590943 |
b1841a10685eb8320e12b1ace1d5113d5a9104d5 | 484 | package uk.hfox.morphix.mongo.connection;
import org.junit.jupiter.api.Test;
class SingleNodeConnectorTest {
@Test
void getClient() {
MongoConnector.Builder builder = MongoConnector.builder();
builder.address("localhost", 27017);
builder.timeout(100);
SingleNodeConnector conn... | 23.047619 | 73 | 0.623967 |
965fd272094b67d1bd943f1e0c94355229c867c3 | 841 | // Part of SourceAFIS: https://sourceafis.machinezoo.com
package com.machinezoo.sourceafis.models;
import static org.junit.Assert.*;
import org.junit.*;
public class CellGridTest {
private final CellGrid g = new CellGrid(2, 3);
public CellGridTest() {
for (int i = 0; i < g.allX.length; ++i)
g.allX[i] = (i + 1)... | 27.129032 | 57 | 0.651605 |
041b25599e6e205ad30598bfc62e3c9e3b13477a | 11,334 | /*
* Copyright © 2013 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | 28.766497 | 93 | 0.634639 |
d67d85824ea4c3c56d9140150c157d352a681285 | 3,267 | /*
* Copyright 2019 Albert Tregnaghi
*
* 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 i... | 34.389474 | 98 | 0.579737 |
24b43da18b08035e7861c7c24d293bf038a982df | 113 | package fr.lteconsulting.hexa.client.ui.miracle;
public interface TextPrinter
{
void setText( String text );
}
| 16.142857 | 48 | 0.778761 |
30857b9021987187201b0a3747b3fbf013ef4ffe | 4,089 | /*
* Home Health Grouper
* Developer for the Center for Medicare and Medicaid Services CMS
* by 3M Health Information Systems for CMS Home Health.
*
* All code is provided as is.
*/
package com.mmm.cms.homehealth.vut.oasis;
import com.mmm.cms.homehealth.vut.proto.CollectionValidationEditsIF;
import com.mmm.cms.... | 42.59375 | 124 | 0.654439 |
14e0fb0b075ac785592bcdc5170195f3b1a1ed05 | 11,395 | package edu.isi.karma.cleaning;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Vector;
import org.perf4j.StopWatch;
import org.perf4j.log4j.Log4JStopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import edu.isi.karma.cleaning.Research.ConfigParamete... | 29.908136 | 106 | 0.658885 |
f16c8296f1d64325152bf3eaffdcbbaf7fe06ec6 | 1,489 | // Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/CopasiWS/copasiws_dev/copasiws/parameterestimationws/src/org/copasi/copasiws/services/parameterestimationws/ServiceFaultMessage.java,v $
// $Revision: 1.1 $
// $Name: $
// $Author: jdada $
// $Date: 2008/11/11 12:19:57 $
// End C... | 32.369565 | 193 | 0.716588 |
5b66eca63f68c11cde952f6cb07a974a7c21947d | 9,029 | /*
* Copyright 2012-2020 smartics, Kronseder & Reiner GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 31.134483 | 80 | 0.62842 |
f4a4a023cf4360377b45d013015296ccb8cef3a6 | 358 | package oop.focus.calendarhomepage.controller;
import oop.focus.common.Controller;
public interface GeneralHomePageController extends Controller {
/**
* This method is used to get the calendarHomePage controller.
* @return HomePageController that is the controller of the homepage.
*/
HomePage... | 27.538462 | 73 | 0.76257 |
4f075d3308ebd6ba3e7c8b86474fc695985f0220 | 10,558 | /**
*/
package org.cufir.s.ecore.iso20022;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Business Transaction</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-mode... | 49.568075 | 246 | 0.723243 |
437c2f74885523b5b71a4dfee19f9d32749f0a9b | 515 | package cz.mg.vulkan;
public class VkShaderModuleCreateFlags extends VkFlags {
public VkShaderModuleCreateFlags() {
}
protected VkShaderModuleCreateFlags(VkMemory vkmemory) {
super(vkmemory);
}
protected VkShaderModuleCreateFlags(VkMemory vkmemory, long vkaddress) {
super(vkmemory... | 20.6 | 76 | 0.693204 |
83aeb90fb7f58992abe96101e7d9b20252b79faa | 1,739 | package com.voxelgameslib.voxelgameslib.internal.config;
import com.google.gson.annotations.Expose;
import java.util.List;
import java.util.logging.Level;
import javax.annotation.Nonnull;
import javax.inject.Singleton;
import com.voxelgameslib.voxelgameslib.internal.lang.Locale;
import com.voxelgameslib.voxelgamesli... | 26.348485 | 106 | 0.721679 |
8a1c34e66615e1d3f2e3ca0d8959d4946c305f88 | 813 | package nativeapp.ios.epamiostestapp;
import com.epam.jdi.light.mobile.elements.pageobjects.annotations.JApp;
@JApp(app = "epam.com.EpamIOSTestAPP")
public class IOSAppInit {
public static NavigationBarPage navigationBarPage;
public static AlertDialogPage alertDialogPage;
public static ContextMenuPage ... | 23.911765 | 71 | 0.795818 |
2ea66d15b82ce8866efd3a03623550026d582cea | 1,394 | /*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | 30.304348 | 78 | 0.695122 |
636ff53ea92b0f17765881adb47442c25a64c18c | 402 | package org.chromium.chrome.browser.ssl;
/**
* Created by yangdeli on 16-7-20.
*/
public class ConnectionSecurityLevel {
public static final int NONE = 0;
public static final int EV_SECURE = 1;
public static final int SECURE = 2;
public static final int SECURITY_WARNING = 3;
public static final i... | 28.714286 | 56 | 0.721393 |
985669978c70edaaa93dff4b2d385ce387c2cbe5 | 6,589 | package net.teamfruit.autoinput.bnnwidget.font;
import java.awt.Font;
import java.util.List;
import java.util.ListIterator;
import javax.annotation.Nonnull;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
/**
* フォント集合
* <p>
* スタイルを保持し、優先度順に複数のフォントを指定することができます... | 25.440154 | 140 | 0.663378 |
5eb26a78e110710793d65883fe2a392028ca329d | 10,349 | /**
* 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.892537 | 113 | 0.676201 |
1d783e23811ffdb479effed06e5408e72e34932c | 3,294 | package quek.undergarden.block;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.state.IntegerProperty;
import n... | 39.214286 | 217 | 0.738009 |
36a458cf55c9bd38b4263ea1f7706ef762b90d72 | 6,637 | package org.bajiepka.concurrency.modernjavainaction.chapter9;
import org.junit.Test;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class DslExpressions {
@Test
public void test_01_dsl() {
... | 24.400735 | 72 | 0.53699 |
f684ab9d897e2f280c470d5b78e3c652656bb8c5 | 2,176 | package net.minecraft.server;
import java.util.EnumSet;
import java.util.Iterator;
public class PathfinderGoalBreath extends PathfinderGoal {
private final EntityCreature a;
public PathfinderGoalBreath(EntityCreature entitycreature) {
this.a = entitycreature;
this.a(EnumSet.of(PathfinderGoal... | 31.536232 | 292 | 0.628217 |
17c58a66bc05b152448f1b3a41cd59bf23cab457 | 1,754 | package gov.va.contentlib.views;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import android.graphics.drawable.Drawable;
import gov.va.contentlib.UserDBHelper;
import gov.va.contentlib.content.Content;
import gov.va.contentlib.content.Reminder;
import gov.va.c... | 26.984615 | 78 | 0.738883 |
a9b0e7b52cc80d473283faae07a1f525531cde20 | 5,474 | /*
* MusicPane.java
*
* Created on February 9, 2004, 2:01 PM
*/
package plugin.charactersheet.gui;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.swing.JCheckBox;
import pcgen.core.PlayerCharacter;
/**
* @author ddjone3
*/
public class MusicPane extends javax.swi... | 21.636364 | 204 | 0.682499 |
f7aee2a34779eec5fe6bf25e36f6aeb2496f1ff2 | 5,314 | /*
* Copyright 2019 ConsenSys 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 law or agreed to in wr... | 44.283333 | 118 | 0.716221 |
af4f819a066060c6722b5506662f8e02e8f08cd2 | 5,818 | /*
* 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 ... | 30.302083 | 115 | 0.721726 |
0ad44fd1ac311e932bc1f1d9d811405222566326 | 1,978 | package com.jantvrdik.intellij.latte.psi.impl.elements;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.jantvrdik.intellij.latte.icons.LatteIcons;
import com.jantvrdik.intellij.latte.psi.LatteMacroContent;
import com.jantvrdik.intellij.latte.psi.elements.LatteMacroTagElement;
import co... | 25.688312 | 115 | 0.775531 |
5ae3c4b3f780dd4b25b3b48b4c2cf7438928d3fd | 2,671 | /*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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
*
*... | 36.589041 | 105 | 0.721078 |
b09f98022ec51d0284cba799f72ee569d14f6f0d | 1,931 | package ethos.model.npcs.bosses.wildypursuit;
import ethos.model.npcs.NPC;
import ethos.model.npcs.NPCHandler;
import ethos.model.players.Boundary;
import ethos.model.players.Player;
import ethos.model.players.PlayerHandler;
import ethos.model.players.combat.Hitmark;
import ethos.util.Misc;
public class Glod {
pub... | 33.877193 | 87 | 0.676851 |
56f58b5cd41f347c933de4b39024f5320a8c1db4 | 13,532 | package archExtractor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.codehaus.groovy.ast.ClassCodeVisitorSupport;
import org.codehaus.groovy.ast.expr.Cons... | 32.84466 | 157 | 0.681052 |
f33553cab46e2e21cf316db95477fa1e633e0cd7 | 313 | package com.sinergise.sentinel.byoctool.custom;
import com.sinergise.sentinel.byoctool.ByocTool;
class SetCoverageTest {
public static void main(String[] args) {
ByocTool.main(
"set-coverage",
"e0f19e2f-e7fe-4c11-92c6-bd6fc957643d",
"83fb5d1e-7acc-4669-a96d-53427be3064d");
}
}
| 22.357143 | 48 | 0.702875 |
9f3408f3f198a53f2da8904c9dfe3110e5fa5645 | 2,511 | /*
* Project Scelight
*
* Copyright (c) 2013 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the author's permission
* is prohibited and protected by Law.
*/
package hu.scelight.sc2.rep.model.trackerevents;... | 27 | 150 | 0.685384 |
daee73133365d7ac9a7192f7fedef59a74dc2539 | 6,020 | package co.infinum.princeofversions;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import co.infinum.princeofversions.mocks.MockApplicationConfiguration;
import static org.assertj.core.api... | 34.797688 | 124 | 0.695349 |
fc5273a8662d548b77efa25efb2efd48eba38c2b | 18,326 | /*
Copyright 2014 Google 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 required by applicable law or agreed to in ... | 44.806846 | 100 | 0.712321 |
ec7e44cc8c3c1d418c6b3f9c53a9319664d77eb6 | 123 | package gestionDeBibliotecas;
public enum TipoContrato {
INDEFINIDO, TEMPORAL, PRACTICAS, FORMACION_Y_APRENDIZAJE
}
| 20.5 | 58 | 0.804878 |
881207ae63ec6828428009cd15dc0624de893a55 | 11,477 | /*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.17052 | 95 | 0.624641 |
921c8fad57d4e17ef2a700f91f449d3ceaaea5ae | 12,812 | /*
Copyright 2015 Tremolo Security, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 31.870647 | 174 | 0.720496 |
ff1db1b14e791df1cfebab824f1a85e3d9812444 | 1,197 | package uebung_5_4;
import java.util.ArrayList;
import java.util.List;
public class Betoffice {
private final List<Bet> bets;
private final List<Race> races;
private static final int QUOTE = 2;
public Betoffice() {
this.bets = new ArrayList<Bet>();
this.races = new ArrayList<Race>();... | 20.637931 | 61 | 0.516291 |
e5c36d4e57e8d1aeabd2f4aa6f7e2750046ad94b | 61,879 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB 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... | 41.585349 | 165 | 0.612356 |
648fe69fd52a299900ceb8710e29c1cb2f2eedd9 | 1,285 | /*
* This file is part of the HyperGraphDB source distribution. This is copyrighted
* software. For permitted uses, licensing options and redistribution, please see
* the LicensingInformation file at the root level of the distribution.
*
* Copyright (c) 2005-2010 Kobrix Software, Inc. All rights reserved. ... | 32.948718 | 83 | 0.699611 |
443db75b7870b94d039600188f309a70b42f644f | 163 | import instant.Single;
/**
* @author 霖
*/
public class Main {
public static void main(String[] args) {
Single single = Single.getSingle();
}
}
| 13.583333 | 44 | 0.601227 |
813d22e5658a8b432e1fe2c37a2d141aa0ae5ccf | 908 | package edu.drexel.cis.dragon.ir.clustering.featurefilter;
import edu.drexel.cis.dragon.ir.index.IRDoc;
import edu.drexel.cis.dragon.ir.index.IndexReader;
import edu.drexel.cis.dragon.matrix.DenseMatrix;
import edu.drexel.cis.dragon.matrix.SparseMatrix;
public abstract interface FeatureFilter
{
public abst... | 34.923077 | 94 | 0.769824 |
dc5332c6b34f66ccdd808a50c88d5dfaee2219f1 | 10,021 | package com.hellokoding.account.web;
import com.hellokoding.account.model.*;
import com.hellokoding.account.service.*;
import com.hellokoding.account.validator.UserValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.M... | 41.580913 | 159 | 0.662309 |
2921480d85fed4fa3a2157924dc4db6f36c787ce | 6,773 | /**
* Licensed to the TomTom International B.V. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. TomTom International B.V.
* licenses this file to you under the Apache License,
* Version 2.0 (the "Lic... | 37.627778 | 80 | 0.632364 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.