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 |
|---|---|---|---|---|---|
0d6e4348fc151b1367b691419829ff4cfb1f4b75 | 1,743 | /*
* Copyright (C) 2018 Square, 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 agre... | 29.05 | 92 | 0.697074 |
907c0a8bd07fc5a13d3ccc96ed9e3435bc5a75ea | 6,498 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | 35.703297 | 100 | 0.642813 |
a8d80d1b737d189d7dcf381472e6f6f16e9181c9 | 2,850 | /* Escreva um algoritmo que obtém do usuário 3 valores inteiros representando as três cartas
deste usuário em uma mão de jogo de truco (1 = AS; 2 = 2; 3 = 3; 7 = 7; 11 = Valete; 12 = Da-
ma; 13 = Rei). O algoritmo deve imprimir na tela a palavra "TRUCO" (se APENAS UMA das cartas
for AS, 2 ou 3), "SEIS" (se APENAS DUAS... | 57 | 117 | 0.397895 |
5ff59182eec140e7cffacde83f8d54f41bf13fba | 51 | public void clear() {
shift(length, -length);
} | 17 | 27 | 0.627451 |
33a6da1f5567bcf8ebe58bc91430f2c26c6557ce | 204 | import java.io.*;
import java.lang.*;
class Prioridad
{
public static void main(String args[])
{
int ncuentas=2;
Cuentas hiloCuantas = new Cuentas(ncuentas);
hiloCuantas.start();
}
}
| 15.692308 | 46 | 0.656863 |
1a003e6ba9b3d039bea876e33a62ce7d0ad5e560 | 12,308 | package com.example.craftsman;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import android.content.Intent;
import android.os.Bundle;
i... | 42.588235 | 132 | 0.580679 |
7a9fdc9a951c699ebdc900e1fb535669b1990276 | 2,533 | package de.marhali.easyi18n.io;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import de.marhali.easyi18n.model.SettingsState;
import de.marhali.easyi18n.model.TranslationData;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java... | 40.206349 | 104 | 0.728385 |
c03c6c7ed887a91304f913a670412f275f8c06a3 | 1,356 | package com.ofdbox.core;
import com.ofdbox.core.xmlobj.base.page.CT_PageBlock;
import com.ofdbox.core.xmlobj.base.page.object.*;
public class ContentWalker {
private CT_PageBlock ct_pageBlock;
public ContentWalker(CT_PageBlock ct_pageBlock) {
this.ct_pageBlock = ct_pageBlock;
}
public void o... | 28.851064 | 64 | 0.638643 |
388980c090e19d6b10648b30fa065ebe28cc917e | 623 | package com.wjy.oauth2.res.interfaces;
import java.util.Set;
import com.wjy.oauth2.res.vo.Oauth2UserInfo;
import com.wjy.oauth2.res.vo.UserInfo;
/**
* Oauth2缓存接口</br>
* 支持内存和redis两种存储模式
*/
public interface IOauth2CacheService {
/** 保存用户信息 */
public void storeUserInfo(String token, Oauth2UserInfo uInfo);
... | 20.766667 | 75 | 0.707865 |
a9289e3d98a7f8133782415309ad7a3f0789c0cc | 2,433 | /**
* Copyright © 2017 Salzburg Research Forschungsgesellschaft (graphium@salzburgresearch.at)
*
* 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/lice... | 33.791667 | 102 | 0.749692 |
e5acd7c97bd2bb9db4864db7ef0e1418d11bae14 | 407 | package com.tvd12.calabash.persist.factory;
import com.tvd12.calabash.persist.EntityMapPersist;
import com.tvd12.calabash.persist.NameIdMapPersist;
public interface EntityMapPersistFactory {
EntityMapPersist<?, ?> newMapPersist(String mapName);
NameIdMapPersist newMapNameIdMapPersist();
NameIdMapPersist newAt... | 25.4375 | 54 | 0.832924 |
61055a74311842c433dfd82b83dcd7475adbf43a | 796 | package net.meisen.dissertation.model.time.granularity;
/**
* 10^-9 seconds
*/
public class NanoSecond implements ISecondBasedGranularity {
private static final NanoSecond instance = new NanoSecond();
private NanoSecond() {
// just to make it private
}
/**
* Gets the one and only instance of a {@code NanoS... | 17.304348 | 61 | 0.683417 |
10116d48879c0ef072e4429fbc72256570913128 | 1,237 | package br.com.mindsy.api.gateway.service.feign;
import br.com.mindsy.api.gateway.dto.psychologist.PsychologistBackEndDto;
import br.com.mindsy.api.gateway.dto.MessageResponseDto;
import br.com.mindsy.api.gateway.dto.psychologist.PsychologistResponseDto;
import br.com.mindsy.api.gateway.dto.authentication.TokenRespnse... | 39.903226 | 122 | 0.789006 |
52c91610192baf0f70a9d431a39535ffe73458cd | 1,633 | package com.github.housepower.jdbc.data.type;
import com.github.housepower.jdbc.data.IDataType;
import com.github.housepower.jdbc.misc.SQLLexer;
import com.github.housepower.jdbc.serializer.BinaryDeserializer;
import com.github.housepower.jdbc.serializer.BinarySerializer;
import java.io.IOException;
import java.sql.S... | 25.515625 | 108 | 0.685242 |
3354e72bafd5b0043f3e7a5b8882658a6e5535cc | 2,336 | package seedu.address.logic;
import java.nio.file.Path;
import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseExcepti... | 26.850575 | 99 | 0.694349 |
cedb8d4d278dc4dcb7a04ee7908aead6efab9015 | 314 | package com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
@ApiModel
@JsonIgnoreProperties(ignoreUnknown = true)
public class AwsEncryptionV1Parameters extends EncryptionParametersV1Base {
}
| 26.166667 | 75 | 0.853503 |
0a5954050abd672fd9e3b9b39f0decdb744e9705 | 12,490 | /*
* 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.920962 | 150 | 0.552202 |
c6c5ada35466a043940e6f6618f8bb1252639181 | 336 | package repositories;
import com.google.inject.ImplementedBy;
import models.Server;
import java.util.List;
@ImplementedBy(JPAServerRepository.class)
public interface ServerRepository {
Server get(long id);
Server add(Server server);
void delete(long id);
List<Server> list();
Server getByName(... | 16.8 | 41 | 0.738095 |
02b6f8ac9e8e0c28f059ab512a4c8d0c6e21b0a0 | 775 | package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author mschatz
*/
public final class OrcGreenToken extends TokenImpl {
public OrcGreenToken(int power_val, int toughness_val) {
super("OrcGreen", power_val + "/" + toughness_val... | 23.484848 | 89 | 0.652903 |
52abaf2a579731aae560052b2c7047235932cb16 | 624 | package beginer.simple;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PrimeTest {
// тест на функции проверки на простое число
@Test
public void testPrime(){
Assert.assertTrue(Primes.isPrime(Integer.MAX_VALUE));
}
@Test(enabled = false)
public void testNonPrime(){
Asser... | 20.129032 | 64 | 0.719551 |
dc0dc98f67a5663ffe1f48e516a78b1de1be0d09 | 3,909 | package com.demo.tests.smoke;
import com.codeborne.selenide.Condition;
import com.demo.pages.*;
import com.demo.tests.BaseTestWithApiAuth;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static com.codeborne.selenide.Condition.text;
import static com.demo.pages.AddressesPage.TEXT_... | 41.147368 | 101 | 0.782553 |
f930dd893671123e0515f12fcb7ad91688b8419d | 1,175 | package org.pdm.ib.model;
public class ATMLocation {
private String id;
private String name;
private String address;
private String email;
private ATMGeoLocation map;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public S... | 18.951613 | 48 | 0.497872 |
da09303f2071b76d8881a6a2d0e8636378db8e2c | 4,965 | /**
* Copyright (C) 2015 Cambridge Systematics, 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 app... | 28.371429 | 91 | 0.729708 |
7a9109ae24a5bfbd89a9d2e75bf1fe036d5d1e82 | 1,305 | // Copyright © 2008-2010 Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://dimdwarf.sourceforge.net/LICENSE
package net.orfjackal.dimdwarf.entities;
import javax.annotation.concurrent.NotThreadSafe;
import java.util.Iterator;
@NotThreadSafe
... | 25.096154 | 69 | 0.634483 |
a6ed06b2abef4b591fa5feeb95ff84acf4224c63 | 942 | /*
* Copyright 2014 Davor Sauer
*
* 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 w... | 26.914286 | 75 | 0.714437 |
9bcba5092888c295e325f7bebe001b2c8a32b2f1 | 1,592 | package im.actor.sdk.controllers.calls;
import android.os.Bundle;
import android.view.Menu;
import android.view.WindowManager;
import im.actor.core.entity.PeerType;
import im.actor.sdk.R;
import im.actor.sdk.controllers.activity.BaseFragmentActivity;
import static im.actor.sdk.util.ActorSDKMessenger.messenger;
/**
... | 32.489796 | 85 | 0.665829 |
5800c32ab53c8ef0ee3d8e79de26c2d731e374de | 1,919 | package com.paulandcode.service.impl;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.paulandcode.dao.RoleDao;
import com.paulan... | 22.313953 | 63 | 0.725378 |
1268c03248d3f3ce14ea0e7d368d5efff1bc2fd1 | 2,066 | package com.mglj.wms.base.data.redis.tool;
/**
* Created by zsp on 2018/9/20.
*/
public class DirectAccessRequest {
private String namespace;
private String domain;
private String key;
private String value;
private Long expiredSeconds;
private Integer bucketSize = 1;
private Integer scan... | 21.747368 | 77 | 0.566312 |
3d61e4bb13837aaac87598cac6b4e4e2a65a1a00 | 710 | package com.jonbore.database.generation.entity.xml;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @author bo.zhou
* @date 2021/1/10 下午4:32
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "type")
public class WordsType {
@XmlAttribute(name = "name")
private String name;
... | 20.882353 | 59 | 0.659155 |
fa6e5100a8f427926b7aeafc41ec4ea22687005c | 6,167 | /*
* Copyright (C) 2011 Cyril Mottier (http://www.cyrilmottier.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 36.064327 | 120 | 0.668234 |
853afb55ea7ce56f4102e79cd0f713a5eca188e2 | 5,511 | package com.anchor.common.logs;
import org.slf4j.Logger;
import java.util.Map;
/**
* Created by anchor on 2015/8/16.
*/
public class LogUtil {
public static final String INTERVAL_CHAR = ", ";
private final static String map2String(Map<String, Object> map) {
StringBuffer sb = new StringBuffer("");... | 35.785714 | 120 | 0.544366 |
9c717261323802915b064b42613526053ae8d5a0 | 4,848 | /**
* Copyright (c) 2020, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright... | 34.628571 | 133 | 0.642946 |
a92d9fb18db2b2af01aaafbb2657cc02b7913977 | 9,832 | package com.redheads.arla.ui;
import com.dansoftware.pdfdisplayer.PDFDisplayer;
import com.redheads.arla.business.files.FileHelper;
import com.redheads.arla.entities.ContentType;
import com.redheads.arla.entities.DashboardCell;
import com.redheads.arla.util.exceptions.persistence.CSVReadError;
import com.redheads.arla... | 38.556863 | 128 | 0.639951 |
0bf4be1ab40c0c47850befe14c68bc12561689ea | 1,963 | package com.synopsys.integration.detect.tool.detector;
import java.io.File;
import java.util.Set;
import com.synopsys.integration.detect.workflow.event.Event;
import com.synopsys.integration.detect.workflow.event.EventSystem;
import com.synopsys.integration.detect.workflow.status.UnrecognizedPaths;
import com.synopsy... | 38.490196 | 93 | 0.799287 |
482919180f16f49ae8ae38781bdfd33e10ccfcc6 | 2,545 | /**
* Copyright 2008-2017 Qualogy Solutions B.V.
*
* 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... | 31.8125 | 93 | 0.75442 |
7039e0ea9bfe441a75085370e0a7bd378948eb20 | 4,704 | package dustin.examples.jdk8;
import static java.lang.System.out;
import java.math.BigInteger;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Demonstrates BigInteger's methods for exact narrowing
* conversions that were added in JDK 8.
*/
public class BigIntegerEx... | 29.217391 | 105 | 0.626276 |
76a0d97a4520b29b345d7f8250899d4a7f02633f | 2,165 | package me.jessyan.armscomponent.commonres.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.view.ViewGroup;
import com.jess... | 28.486842 | 111 | 0.662356 |
2763941b82bd77260a6d5388df1696772b822e08 | 2,319 | package org.folio.circulation.domain.anonymization;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.collections4.CollectionUtils;
import org.folio.circula... | 32.208333 | 81 | 0.747736 |
e8065378f7adf7a19985d66cad9027110c6c8247 | 2,142 | package com.yudy.heze.server;
import com.yudy.heze.cluster.Cluster;
import com.yudy.heze.cluster.Group;
import com.yudy.heze.config.ServerConfig;
import com.yudy.heze.util.DataUtils;
import com.yudy.heze.util.ZkUtils;
import com.yudy.heze.zk.ZkClient;
import org.apache.zookeeper.ZKUtil;
import org.slf4j.Logger;
import... | 34.548387 | 138 | 0.690009 |
80e1568619ea221b83f41ba533fcc8e7b67b73bb | 492 | package com.seltzer.selenium.views;
import com.seltzer.selenium.View;
import com.seltzer.selenium.pages.HomePage;
import org.apache.log4j.Logger;
public class HomeView extends View {
private static Logger log = Logger.getLogger(LoginView.class);
private static HomePage homePage;
public static void init(... | 23.428571 | 66 | 0.72561 |
66c8a1654b31611b8a760fadfcad541a7da23910 | 208 | public class Start4 {
public static void main(String[] args) {
int k = 5;
int m;
m = square(k);
}
private static int square(int k) {
int result;
k = 25;
result = k;
return result;
}
} | 11.555556 | 41 | 0.581731 |
6148023be61069d9ebfa6a40f460f8dcd968f7f9 | 575 | package classloader;
public class UpdateUtilTwoUtil implements IupdateUtil {
public static volatile IupdateUtil instance;
public static IupdateUtil getInstance() {
if(instance == null){
synchronized(UpdateUtilTwoUtil.class){
if(instance == null){
UpdateUtilTwoUtil.instance = new UpdateUtilTw... | 21.296296 | 59 | 0.697391 |
bb4c6db5a48b78b384ac871aad429d8e52aecf9e | 1,357 | package quasylab.sibilla.examples.pm.seir;
import java.io.IOException;
import quasylab.sibilla.core.simulator.pm.PopulationState;
import quasylab.sibilla.core.simulator.serialization.SerializationType;
import quasylab.sibilla.core.simulator.server.BasicSimulationServer;
import quasylab.sibilla.core.simulator.server.S... | 38.771429 | 103 | 0.579219 |
dfcece319dd3cdcc7bb70d234b29703d37dbe668 | 750 | package net.jacobpeterson.alpaca.websocket.listener;
import net.jacobpeterson.abstracts.websocket.listener.StreamListener;
import net.jacobpeterson.alpaca.websocket.message.AlpacaStreamMessageType;
import net.jacobpeterson.domain.alpaca.websocket.AlpacaStreamMessage;
import java.util.Set;
/**
* An asynchronous upda... | 34.090909 | 111 | 0.796 |
a4a15f1eda91b463c4c0aa611de46f457d7f11fb | 1,289 | package com.intuit.dsl.expression.runtime.parser;
import com.google.inject.Injector;
import com.intuit.dsl.ExpressionStandaloneSetup;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import org.eclipse.emf.common.util.URI;
import org.eclipse.xtext.resource.IResourceFactory;... | 33.921053 | 112 | 0.794414 |
5900228902d6e364cca8ac5a14f0ae71250ad1b2 | 2,955 | package org.openapitools.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.faster... | 23.452381 | 86 | 0.695093 |
88e830691c84552db6be1326c983d7090b025ffa | 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 ... | 27.455056 | 115 | 0.669531 |
b31a60e325118947347b967b697b327538a3101f | 3,731 | package cn.jsprun.foreg.vo.statistic;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Stats_forumsrankVO{
private Stats_navbarVO navbar = new Stats_navbarVO();
private List<Map<String, ForumCompositor>> forumCompositorMapList = new ArrayList<Map<String,F... | 36.578431 | 114 | 0.756366 |
b08beb38a69ed100e967e6d0f279b5f08ba9127d | 303 | package de.homelab.madgaksha.lotsofbs.resourcecache;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ java.lang.annotation.ElementType.TYPE })
public @interface AnnotationResource {
}
| 27.545455 | 52 | 0.828383 |
86861523d80e467bb94b592b714a0a645c4fe5ce | 2,501 | package com.jtransc.mem;
import com.jtransc.annotation.JTranscAddHeader;
import com.jtransc.annotation.JTranscInline;
import com.jtransc.annotation.JTranscMethodBody;
@SuppressWarnings("JavacQuirks")
@JTranscAddHeader(target = "cpp", value = {
"static int8_t *__JTRANSC_byte_memSRC = NULL;",
"static int8_t *__JTRANS... | 32.907895 | 173 | 0.673331 |
e1dddab8fc26ef4cd8095922ac62874659de9d90 | 707 | package io.github.cd871127.hodgepodge.cloud.gateway.route;
import org.springframework.cloud.gateway.route.RouteDefinition;
import java.util.List;
/**
* @author Anthony Chen
* @date 2019/11/26
**/
public class DatabaseRouteDefinitionManager implements RouteDefinitionManager {
@Override
public void save(R... | 18.128205 | 79 | 0.674682 |
c1e391fae38f5fc60517fc3518aa06a52ad8b960 | 2,303 | /*
* 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 will be us... | 29.151899 | 89 | 0.631785 |
74d76bcafb7ba13bee8765a62679a561042acff4 | 4,622 | /*
* L2_GET_INVALID_MESSAGE_SEND_FUNCTION.java
* Copyright © 1993-2018, The Avail Foundation, LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must... | 34.75188 | 80 | 0.782562 |
c8761fda66abbe688de50f622360c4db70ac697a | 4,904 | package bart.model;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class OutlierErrorConfiguration {
private Map<String, Set<AttributeToDirty>> mapAttributesForTables = new HashMap<String, Set<AttributeToDirty>>(); // key: tableNa... | 34.293706 | 135 | 0.623777 |
dd24f2d71d9ea71c2af431286cbe4305c1ef7a90 | 3,568 | /*
* Copyright 2016 Paulius Danenas
*
* 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 agree... | 38.782609 | 129 | 0.691984 |
ccfd2acf05ab49d6901f927366b583f5ad929dec | 1,696 | package org.folio.inventory.dataimport.handlers.quickmarc;
import java.util.Map;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import org.folio.inventory.common.Context;
import org.folio.inventory.dataimport.handlers.actions.InstanceUpdateDelegate;
import org.folio.inventory.dataimport.handlers.actions.... | 39.44186 | 124 | 0.779481 |
abcd6262216b52252bdea6789442e850da4df71e | 749 | package dev.rinaldo.soujava;
import java.time.temporal.ChronoUnit;
public class LocalDate {
// Java 8 - API de Data e Hora
public static void main(String[] args) {
// LocalDate - armazena apenas Data
System.out.println(java.time.LocalDate.now());
java.time.LocalDate ld = java.time.LocalDate.o... | 22.69697 | 66 | 0.658211 |
1260ce01db2fc50d9b707d231bb56086aa39cdc7 | 4,089 | /*
* Copyright (C) 2017 The Dagger 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 ag... | 40.485149 | 98 | 0.763267 |
eebf4759f627aed536513c72a34e265588fb9fa7 | 341 | package org.linlinjava.litemall.admin.erp.rq;
/**
* @author :stephen
* @date :Created in 2020/7/1 11:37
* @description:TODO
*/
public class BaseRQ {
private Long tenantId = 63l;
public Long getTenantId() {
return tenantId;
}
public void setTenantId(Long tenantId) {
this.tenantId =... | 16.238095 | 45 | 0.633431 |
34fcb74db4c0a73f744f601b10da3961a36d675f | 210 | package com.example.design.observer.server;
/**
* @
* @Description 这个接口一般用于完成最终差异化操作
* @Date: 2020/5/26 23:14
* @Create by external_ll@163.com
**/
public interface DisplayElement {
void display();
}
| 16.153846 | 43 | 0.690476 |
d7f2a368b346913616f7f16c4234d8c3ac833597 | 5,268 | /*
* Copyright 2018-2019 Karakun AG.
* Copyright 2015-2018 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
*
... | 51.647059 | 157 | 0.789104 |
3165769d3b7e95d836585d81605b80b004c70d20 | 1,652 | package com.github.krenfro.names;
/**
* <p>Builder for NameParsers.</p>
*
* By default, punctuation is <b>omitted</b> and names to be parsed are provided <b>last name first</b>.
*
* <p>
* <pre>
new NameBuilder().lastNameFirst().omitPunctuation().buildMultiName();
- is equivalent to -
new NameBuilder().bui... | 25.030303 | 104 | 0.627724 |
0c87a3b6416162121521a44c90eb60e28a6de416 | 620 | class NativeSumDemo
{
native public static double sum( double [] arr )
throws Exception;
static
{
System.loadLibrary( "Sum" );
}
public static void main( String[] args )
{
double [ ] arr1 = { 3.0, 6.5, 7.5, 9.5 };
... | 22.962963 | 61 | 0.430645 |
921308e3ca905d1055667d13ec545d09b007d212 | 1,402 | package edu.ufp.inf.sd.rmi.pingpong.client;
import edu.ufp.inf.sd.rmi.pingpong.server.Ball;
import edu.ufp.inf.sd.rmi.pingpong.server.PingRI;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server... | 31.155556 | 103 | 0.672611 |
8b8a73de354ef08ad60e7608df9ae655eeeb9705 | 1,367 | package org.seasar.doma.it.dao;
import java.sql.Time;
import java.util.List;
import java.util.Map;
import org.seasar.doma.Dao;
import org.seasar.doma.Function;
import org.seasar.doma.In;
import org.seasar.doma.MapKeyNamingType;
import org.seasar.doma.it.entity.Employee;
@Dao
public interface FunctionDao {
@Functio... | 26.803922 | 80 | 0.775421 |
a89d8647d5ee1f062010f3ebe443e8d822f24c85 | 3,274 | package run.rook.chi.data;
import java.math.BigInteger;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Base64;
import org.agrona.DirectBuffer;
public final class DataTypeUtil {
public static final Charset UTF8 = Charset.forName("UTF-8");
public static byte[] toBytes(DirectBuffer value... | 24.992366 | 96 | 0.711973 |
7627fd8b7928fc1ed850383f65484652cc8d46a9 | 1,827 | package com.java.wanghaoyu.ui.main;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.TextView;
import android... | 29 | 124 | 0.703339 |
430a44b151659e1e1a71aa8d0995b215bd53dbe9 | 753 | package io.github.ministryofjustice.bichard7.release;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.nio.charset.Charset;
public class GenerateReleaseProperties {
public static void main(String args[]) throws Exception {
fina... | 35.857143 | 137 | 0.733068 |
886d229b7b02fbb064348ee7c678ae6076294f8f | 1,266 | package com.ruoyi.generator.mapper;
import java.util.List;
import com.ruoyi.generator.domain.GenTable;
/**
* 业务 数据层
*
* @author ruoyi
*/
public interface GenTableMapper {
/**
* 查询业务列表
*
* @param genTable 业务信息
* @return 业务集合
*/
List<GenTable> selectGenTableList(GenTable genTable);... | 16.441558 | 65 | 0.555292 |
fd42fe32e27c1f020c1010f982135a6ba9846c98 | 37,553 | package org.zoxweb.server.api;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.logging.Logger;
import org.zoxweb.server.security.CryptoUtil;
import org.zoxweb.server.security.JWTProvider;
import org.zoxweb.server.security.KeyM... | 35.764762 | 242 | 0.700503 |
5d0ead4e2ca09cee73af6fd2f32380d34a34d0fb | 6,048 | /*
* Copyright 2007 Shawn Boyce.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
* You may obtain a copy of the License ... | 32.869565 | 95 | 0.666501 |
68842b4a0bba2e4288d683f747503fb94de625aa | 533,355 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/certificatemanager/v1/certificate_service.proto
package yandex.cloud.api.certificatemanager.v1;
public final class CertificateServiceOuterClass {
private CertificateServiceOuterClass() {}
public static void registerAllExtensions(
... | 38.539996 | 270 | 0.651367 |
6e4314ad276bb442933e7c625030b31639baf97d | 203 | package io.quarkus.qe.validation;
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
public class NativeValidationOnResponseRouteHandlerIT extends ValidationOnResponseRouteHandlerTest {
}
| 22.555556 | 100 | 0.866995 |
e30e10c88c0f0d3d64b04472d96c65dfb745f0f8 | 882 | package algorithm;
import java.util.Scanner;
/**
* Selection of sorts.
*/
public class Sorts {
private static void choseSort() {
try {
Scanner in = new Scanner(System.in);
//Select the sorting option that you want to use.
System.out.println("HOMEWORK \n"
+ "Enter number of sort... | 23.210526 | 92 | 0.546485 |
90e9db204e3073501006d8986a1f9159626e263d | 174 | package com.example.jkapp.CallBack;
/**
* Created by dufangyu on 2016/11/1.
*
*/
public abstract class NetCallBack {
public abstract void onHandle(int stateCode);
}
| 15.818182 | 49 | 0.712644 |
b3ecbe99381701e9e5f42b558419b830464d87f1 | 1,544 | package uk.gov.defra.plants.applicationform.service.helper;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang3.ObjectUtils;
import uk.gov.d... | 38.6 | 125 | 0.800518 |
4b7a4111b7947355e17366f6735fbab67d176842 | 2,012 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.0... | 26.12987 | 137 | 0.641153 |
9027a89dbdb42b757b1ba61b08a84ff7b06d9375 | 2,402 | package com.ntier.streams.starters;
public class Book {
public enum Category {
FICTION,
TECHNICAL,
SELF_HELP,
HOW_TO,
EXERCISE,
COOKING,
COMIC;
}
private String title;
private String author;
private int numPages;
private double price;
private Category category;
private int yearPublished;
publi... | 22.036697 | 109 | 0.662781 |
c23ba816c25f60b05fb68f6badf479ab088a1109 | 1,355 | package com.leone.boot.common.aop;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org... | 30.111111 | 82 | 0.691513 |
8b84c7215d782f9ee0d719892688c0678d2d203d | 5,852 | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
/*
* AccessibleScrollDemo requires these files:
* Rule.java
* Corner.java
* ScrollablePicture.java
* images/youngdad.jpeg
*/
public class AccessibleScrollDemo extends JPanel
implements ItemListen... | 29.705584 | 77 | 0.617225 |
00184273cb1c9483445d2d2d7acbbe213dce077f | 3,926 | /*
* MIT License
*
* Copyright (c) 2018 Fabio Falsini <falsinsoft@gmail.com>
*
* 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 rig... | 37.037736 | 113 | 0.693581 |
001c9f063d2c2ec610a7a89daf0b74a4a63869c7 | 11,853 | /*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2020 Nordix Foundation.
* Modifications Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
* ============================... | 38.235484 | 118 | 0.610394 |
2965d8b373d670b56a092ffdc0098a92c3c6ee64 | 3,234 | package org.zerock.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework... | 32.34 | 130 | 0.757885 |
bd204c27ba6e9a8618f46bf6a648aa004b2ffeb6 | 6,535 | /*
* Copyright 2019-2020 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... | 39.847561 | 125 | 0.782708 |
3e6f4bd47a339dd6e46f8549cfadce9584d89b3b | 201 | package br.com.jwheel.test;
import org.junit.runner.RunWith;
/**
* @author Lima Filho, A. L. - amsterdam@luvva.com.br
*/
@RunWith (WeldJUnit4Runner.class)
public abstract class WeldEnabledTest
{
}
| 16.75 | 53 | 0.731343 |
b9ce877d8ab5bfeddab3ad71b4df796365a9e4dc | 2,391 | package by.dobrush.swruneoptimizer.util.parser;
import by.dobrush.swruneoptimizer.beans.RuneSet;
import by.dobrush.swruneoptimizer.beans.Stat;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import co... | 44.277778 | 112 | 0.7156 |
fcb0660c61967b4db3e00196263232cb934ee8e1 | 6,053 | package enemeez.simplefarming.util;
import enemeez.simplefarming.SimpleFarming;
import enemeez.simplefarming.block.growable.SimpleCropBlock;
import enemeez.simplefarming.config.FeatureConfig;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.CropsBlock;
import net.mine... | 45.511278 | 176 | 0.671568 |
b6e7ada580d4a4f84218f48445907e16ffa716e7 | 376 | package com.pattern8.command;
public class Stereo {
public void on() {
System.out.println("Stereo --- on");
}
public void off() {
System.out.println("Stereo --- off");
}
public void setCD() {
System.out.println("Stereo --- setCD");
}
public void setVolume() {
... | 18.8 | 51 | 0.553191 |
1a40b28cd0b7cf9146e873c13aa54c15e50cf92a | 134 | package com.kkwrite.demo.spring.data.jpa;
public class SpringDataJpa {
public static void main(String[] args) {
}
}
| 13.4 | 42 | 0.656716 |
4cb03b7f2cf38f9d5d76d8252e085544f8457209 | 3,599 | package com.java.atta.services;
import com.java.atta.commons.TransactionExpired;
import com.java.atta.commons.TransactionOperation;
import com.java.atta.domains.Statistic;
import com.java.atta.domains.Transaction;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.PriorityQueue;
import java.... | 35.633663 | 118 | 0.581828 |
3b546dfe56e94187bc33b117fd7eb69d4a2f6f68 | 943 | package br.com.basis.madre.madreexames.service.mapper;
import br.com.basis.madre.madreexames.domain.*;
import br.com.basis.madre.madreexames.service.dto.HorarioLivreDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link HorarioLivre} and its DTO {@link HorarioLivreDTO}.
*/
@Mapper(componentModel = "sprin... | 31.433333 | 89 | 0.720042 |
624867e5c100111d4aa0fe79e63329810b193d32 | 2,690 | package pl.me.inwentaryzacja.activities;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widge... | 30.224719 | 182 | 0.716357 |
faab9e7ffd59cf8698def5ae3b720eb86da39563 | 97,252 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: coprocessor.proto
package coprocessor;
public final class Coprocessor {
private Coprocessor() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensi... | 34.462084 | 144 | 0.617725 |
9370ecf79d80150e47ca06f3a40b5d40421e7f13 | 1,523 | package com.gallantrealm.modsynth.module;
import java.io.Serializable;
/**
* Used to maintain a MIDI control's id and range.
*/
public class CC implements Serializable {
private static final long serialVersionUID = 1L;
public int cc = 0;
public int minRange = 0; // 0-100
public int maxRange = 100; // 0-100
pu... | 23.430769 | 93 | 0.645437 |
e7507c2c2dd42ee95a95a80841b4d3accb8c393c | 530 | package com.univocity.cardano.wallet.api.generated.byronwallets;
import com.univocity.cardano.wallet.api.generated.common.*;
import static com.univocity.cardano.wallet.common.Utils.*;
import com.fasterxml.jackson.annotation.*;
import com.univocity.cardano.wallet.api.generated.*;
/**
*
* Request body definition fo... | 31.176471 | 80 | 0.803774 |
e58151265281171dea1bc7ee57b1ddc7e25f6f09 | 2,463 | package com.jannchie.biliob.security;
import com.jannchie.biliob.constant.ResultEnum;
import com.jannchie.biliob.model.User;
import com.jannchie.biliob.utils.UserUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 40.377049 | 106 | 0.776289 |
3b23a7007b8291b89891f352d905009ca02d5106 | 2,932 | /*
* FHIRWork (c) 2018 - Blair Butterworth, Abdul-Qadir Ali, Xialong Chen,
* Chenghui Fan, Alperen Karaoglu, Jiaming Zhou
*
* This work is licensed under the MIT License. To view a copy of this
* license, visit
*
* https://opensource.org/licenses/MIT
*/
package org.ucl.fhirwork.network.empi.data;
import ... | 27.401869 | 78 | 0.668145 |
bd8abdae0fb5bb88ba53bf6b622032112a7e48e1 | 1,851 | package com.cehome.easykafka.consumer;
/**
* Created by houyanlin on 2018/06/26
**/
public class ConsumerRecord {
private String topic;
private int partition;
private long offset;
private long timestamp;
private int serializedKeySize;
private int serializedValueSize;
private Strin... | 22.573171 | 151 | 0.613182 |
c537821d87fdbc2bba20298d2c785bdfc93b5d76 | 2,071 | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, 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... | 28.369863 | 77 | 0.721873 |
b2172f243be22ae106de046cce84e1002b147ee6 | 2,704 | /*
* Copyright (c) 2017 - sikulix.com - MIT license
*/
package com.sikulix.api;
import com.sikulix.core.SX;
import com.sikulix.core.SXLog;
/**
* implements the API for text search and OCR features<br>
* holds all settings for a text feature processing<br>
* and the results of this processing<br>
* uses Core.Te... | 22.722689 | 87 | 0.659393 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.