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 |
|---|---|---|---|---|---|
b53b6f2ef58c4fb05485420cafdc045a8e935e34 | 1,221 | package org.bcos.web3j.crypto;
import org.bcos.web3j.crypto.sm3.SM3Digest;
import org.bouncycastle.jcajce.provider.digest.Keccak;
import org.bcos.web3j.utils.Numeric;
/**
* Crypto related functions.
*/
public class Hash {
private static HashInterface hashInterface = new SHA3Digest();
public static HashInte... | 25.4375 | 70 | 0.665848 |
e632202831340432eca0bf13006c70343cce57e0 | 346 | package com.funcache.util;
/**
* TODO: Class description here.
*
* @author <a href="https://github.com/tjeubaoit">tjeubaoit</a>
*/
public interface FastLinkedListItem {
FastLinkedListItem getPrevious();
void setPrevious(FastLinkedListItem previous);
FastLinkedListItem getNext();
void setNext(Fa... | 19.222222 | 63 | 0.725434 |
4de1c2e2e48e54af6bb8d82a1d60ee7b3e208413 | 1,459 | package com.tma.tt.api.repository;
import com.tma.tt.api.jpa.ScheduleJpaRepository;
import com.tma.tt.api.model.Schedule;
import io.katharsis.queryspec.QuerySpec;
import io.katharsis.repository.ResourceRepositoryBase;
import io.katharsis.resource.links.DefaultPagedLinksInformation;
import io.katharsis.resource.list.De... | 32.422222 | 137 | 0.770391 |
7097f4020c7506fa25a5a574a960d7ae94fe789a | 3,469 | package testpackage;
import java.util.ArrayList;
import rx.Observable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.microsoft.azure.cosmosdb.ConnectionPolicy;
import com.microsoft.azure.cosmosdb.ConsistencyLevel;
import com.... | 38.977528 | 119 | 0.686653 |
59717ea3ad5557ef9917f6b4637a10d2bb7f9acf | 878 | package miw.ws.easidiomas.images.util;
import java.awt.Image;
import java.awt.image.BufferedImage;
public class ImageUtils {
/**
* Resizes an image to the given dimensions.
*
* @param src java.awt.Image object with the original image to be resized.
* @param finalWidth Target width that the ... | 36.583333 | 104 | 0.738041 |
ae85c253f4e9d43fc9d2eb155c26c8923afdb687 | 1,306 | import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
@SuppressWarnings("unused")
public class P073 implements Puzzle {
@Override
public String solve() {
final BitSet primesBits = Util.primesBits(12_000);
final Map<Int... | 36.277778 | 154 | 0.487749 |
50bfaf4767d9e694e505c2b6fd1170f5ec5ad290 | 1,354 | package com.jwetherell.algorithms.data_structures.test;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.jwetherell.algorithms.data_structures.HashMap;
import com.jwetherell.algorithms.data_structures.test.common.JavaMapTest;
import com.jwetherell.algorithms.data_structures.test.common.Ma... | 39.823529 | 116 | 0.745938 |
0a5a5eb47926a70dc76d9eb801864b7f5ead0bbc | 1,605 | import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.remote.MobileCapabilityType;
public class base {
... | 40.125 | 107 | 0.759502 |
8942cb9c823faabd93b4b8c6832d5981ed5e3321 | 1,945 | package org.mudebug.prapr.core.mutationtest.engine.mutators.util;
/*
* #%L
* prapr-plugin
* %%
* Copyright (C) 2018 - 2019 University of Texas at Dallas
* %%
* 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 c... | 30.873016 | 75 | 0.684319 |
7669168d1f4a12359c15dad03dc1455f3928947f | 17,141 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 33.413255 | 128 | 0.658713 |
1c437fdf995b3268077e7ede4b9d5d9f36a0ceb9 | 3,982 | package com.skunkworks.fastorm.processor.tool;
import javax.annotation.processing.Messager;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.Executable... | 47.975904 | 140 | 0.68659 |
f9be9fb85d01245407735fa490b2e0dd754d382d | 1,257 | package org.jeecf.manager.module.template.model.po;
import org.jeecf.common.model.Request;
import org.jeecf.manager.common.model.AbstractEntityPO;
import org.jeecf.manager.module.template.model.query.GenTableColumnQuery;
import org.jeecf.manager.module.template.model.schema.GenTableColumnSchema;
/**
* 业务表字段 ... | 26.1875 | 90 | 0.670644 |
56abc621bde1c4f6d53ea5a950f35be0facc920a | 1,600 | /*
* 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.042553 | 99 | 0.745 |
82b2eaf91efdc482f38a870df874af53f08a2d9c | 277 | package core.interfaces;
import utilities.VectorObservation;
public interface IVectorObservation {
/**
* Encode the game state into a vector (fixed length during game).
* @return - a vector observation.
*/
VectorObservation getVectorObservation();
}
| 19.785714 | 70 | 0.711191 |
9f993bc9422de5b9d44cb2d6856f1efc47d9dc78 | 6,415 | package com.ucar.datalink.worker.core.runtime;
import com.ucar.datalink.common.errors.DatalinkException;
import com.ucar.datalink.domain.plugin.PluginWriterParameter;
import com.ucar.datalink.domain.task.TaskInfo;
import com.ucar.datalink.worker.api.task.TaskWriter;
import com.ucar.datalink.worker.api.util.statistic.B... | 42.766667 | 155 | 0.617771 |
6360e055bcaad343c65dfbe2010cbf851717e3ef | 634 | package com.dongkap.feign.dto.master;
import com.dongkap.feign.dto.common.BaseAuditDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@T... | 21.862069 | 68 | 0.812303 |
ef285f41eb7402a6fd192a6cd027dc7255ea95b5 | 1,145 | package cn.arvix.ontheway.business.controller;
import cn.arvix.base.common.entity.JSONResult;
import cn.arvix.base.common.web.controller.ExceptionHandlerController;
import cn.arvix.ontheway.business.service.BusinessTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annota... | 31.805556 | 76 | 0.771179 |
5501c9d719a1391dbc1b7dcae6b8b4e093b8d86d | 814 | package com.example.demo.common.i18n;
/**
* @author humbinal
*/
public interface CommonError {
/**
* @message 成功
*/
public static final String SUCCESS = "0";
/**
* @message 接口不存在
*/
public static final String NOT_FOUND = "0x00001";
/**
* @message 方法不被允许
*/
publ... | 18.5 | 68 | 0.597052 |
7a13cf12b621ca0eb9010b9ca8dbaa151021e61c | 2,996 | package org.elasticsearch.kafka.indexer.mappers;
public class AccessLogMapper {
private KafkaMetaDataMapper kafkaMetaData = new KafkaMetaDataMapper();
private String ip;
private String protocol;
private String method;
private String url;
private String payLoad;
private String sessionID;
private String timeSta... | 18.493827 | 71 | 0.746996 |
342b227c8189d09702ecfa73052a57afd905fe6a | 1,832 | /**
* Copyright (C) 2008-2010 Matt Gumbley, DevZendo.org <http://devzendo.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.apache.org/licenses/LICENSE-2.0
*... | 31.050847 | 80 | 0.70524 |
470b9c92c0280a1b6b518d75e316572eb726a197 | 565 | package Day17;
public class Address {
int RoomNo;
String State;
String City;
int PinCode;
Address(int RoomNo, String State, String City, int PinCode){
this.RoomNo = RoomNo;
this.State = State;
this.City = City;
this.PinCode = PinCode;
}
@Override
public... | 21.730769 | 64 | 0.463717 |
381edf5f9193ce9bfa2afae087b73171d5155b38 | 2,193 |
package com.mh.ta.core.config.settings;
/**
* @author minhhoang
*
*/
public class DriverConfig {
private String driversFolderName = "drivers";
private String borderColor = "red";
private String backGroundColor = "yellow";
private int implicitWait = 30;
private int pageloadTimeout = 60;
private i... | 21.93 | 65 | 0.726858 |
7b6930f344692c8abd9b6d340e3258abdef3e197 | 2,650 | package net.sf.l2j.gameserver.model.multisell;
import java.util.ArrayList;
import java.util.LinkedList;
import net.sf.l2j.gameserver.model.actor.Npc;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
import net.sf.l2j.gameserver.model.item.kind.Armor;
impo... | 30.113636 | 115 | 0.686792 |
42727951a480d4dfa45e41b47f878a64824691dd | 37,626 | package com.home.commonGame.tool.generate;
import com.home.commonGame.constlist.generate.GameRequestType;
import com.home.commonGame.net.request.activity.ActivityCompleteOnceRequest;
import com.home.commonGame.net.request.activity.ActivityResetRequest;
import com.home.commonGame.net.request.activity.ActivitySwitchR... | 39.112266 | 127 | 0.819221 |
0e0cc659fb5d591e30abaa7ffe0b36bd7506447d | 1,062 | /*
* ©2018 HBT Hamburger Berater Team GmbH
* All Rights Reserved.
*/
package de.hbt.dmn_eval_java.impl;
import jdk.nashorn.api.scripting.ScriptObjectMirror;
/**
* Java interface to wrap functions from the Javascript dmn-eval-js library.
*/
public interface DmnEvalJsWrapper {
/**
* Evaluates the decis... | 33.1875 | 120 | 0.722222 |
fc39a6456e425bd8df0807e2a97d53e3f50c8f4a | 206 | package com.mypocket;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MyPocketApplicationTests {
@Test
void contextLoads() {
}
}
| 14.714286 | 60 | 0.786408 |
39555e3f2f897aa2dae970e37dd4fc93191c09e9 | 2,158 | package io.github.izdwuut.yarl.controllers;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.ashley.core.Engine;
import com.badlogic.ashley.core.EntitySystem;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import squidpony.squidgrid.gui.gdx.SquidInput;
/**
* A generic controller. ... | 23.456522 | 103 | 0.677016 |
ac76557bfe39cef6ff36f1673a7e8d0eb85dc86a | 2,355 | package com.bdoemu.gameserver.model.creature.player.itemPack.events;
import com.bdoemu.commons.model.enums.EStringTable;
import com.bdoemu.core.network.sendable.SMRepurchaseItems;
import com.bdoemu.gameserver.model.creature.npc.Npc;
import com.bdoemu.gameserver.model.creature.player.Player;
import com.bdoemu.gameserve... | 42.818182 | 202 | 0.717622 |
a5c8017b0ef60a6fdb7d6c6d78f1e1a13a79bc42 | 1,064 | class Solution {
public String XXX(int num) {
String[] roman = {"M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"};
List<String> ans = new ArrayList<String>();
int index = 12;
int yushu = 0;
while(num>0){
yushu = num%10;
if(yushu==4){
... | 29.555556 | 85 | 0.393797 |
cdccc79eab5f86dfaf9bee48f735092a87116128 | 3,209 | package com.alorma.github.ui.fragment.commit;
import android.os.Bundle;
import android.view.LayoutInflater;
import com.alorma.github.R;
import com.alorma.github.sdk.bean.dto.response.CommitComment;
import com.alorma.github.sdk.bean.info.CommitInfo;
import com.alorma.github.sdk.services.client.GithubListClient;
import ... | 28.39823 | 128 | 0.714864 |
e3910326a724a7ebb8233d8bb1b20981c8dc91f9 | 1,674 | package com.cloudbees.groovy.cps;
/**
* Base class for {@link Block} that can come to the left hand side of an assignment, aka "l-value"
*
* Subtypes implement {@link #evalLValue(Env, Continuation)} that computes {@link LValue} object,
* which provides read/write access.
*
* @author Kohsuke Kawaguchi
*/
public ... | 26.571429 | 99 | 0.620072 |
90ad442a439cc4c17253317176190af09ea606e7 | 3,076 | package fr.imie.tp.jsp;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import fr.imie.archi.Abstra... | 35.767442 | 149 | 0.745449 |
90f5c5c0b0f284b7c14c6cf249e10078c746dacb | 2,291 | package data_science.ui.loc.action;
import com.lynden.gmapsfx.javascript.object.InfoWindowOptions;
import com.lynden.gmapsfx.javascript.object.LatLong;
import com.lynden.gmapsfx.javascript.object.MarkerOptions;
import data_science.database.query.AllBicycleStallsQuery;
import data_science.model.BicycleStall;
import dat... | 31.383562 | 110 | 0.755129 |
82a1534d40e29b4058e8017695dca91cc72874c2 | 1,470 | /*-
* <<
* DBus
* ==
* Copyright (C) 2016 - 2019 Bridata
* ==
* 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... | 30 | 100 | 0.656463 |
4fcc0f0651c663ee313beb96daacb0c70383ed81 | 1,801 | package com.liyouzhi.dataprocess.service.impl;
import com.liyouzhi.dataprocess.domain.KeyWordPosition;
import com.liyouzhi.dataprocess.service.DataWrite;
import com.opencsv.CSVWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.io.*;
import java.... | 37.520833 | 99 | 0.62965 |
44a61a4e2d7637a056dbd522fdf093c99381c7cc | 2,701 | package com.cjh.tp.manage.controller;
import com.cjh.tp.manage.constant.Constants;
import com.cjh.tp.manage.service.CacheConfig;
import com.cjh.tp.manage.service.notify.entity.ConfigDataChangeEvent;
import com.cjh.tp.manage.service.notify.entity.Event;
import com.cjh.tp.manage.service.notify.NotifyCenter;
import com.c... | 32.542169 | 96 | 0.63532 |
10d66c41519e0467a569fa7b5820eb32207944df | 1,268 | package searchengine.core.repository;
import java.sql.SQLException;
import java.util.List;
import searchengine.core.Page;
/**
* Represents a repository that contains data about the crawled pages
*/
public interface IPagesRepository {
/**
* Sets the repository to read pages from the beginning
*/
void reset();... | 23.481481 | 82 | 0.716088 |
d5c014d52291b171664981b5b6ad789f038bd532 | 5,781 |
package fi.laverca.jaxb.wsssecext;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.Xml... | 31.248649 | 175 | 0.651098 |
46b7912cd8dd08f854ecb3e8349a69266c26b67d | 3,424 | /*
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... | 51.104478 | 127 | 0.812792 |
c56c174a6f96ec829f550bf32890b295f9b13609 | 985 | package br.com.casadocodigo.model;
import br.com.casadocodigo.validator.ExisteId;
import br.com.casadocodigo.validator.ValorUnico;
import javax.persistence.EntityManager;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
public class NovoEstadoRequest {
@NotBlank
@Va... | 25.921053 | 75 | 0.654822 |
d86e2d28b36ea27e7de4c507227ceb1c92cd9328 | 1,036 | package net.henryco.sqlightning.reflect.table.stb;
import java.lang.reflect.Field;
/**
* Created by HenryCo on 10/05/17.
*/
public enum StbType {
NULL(), REAL(), TEXT(), BLOB(), INTEGER();
public static StbType findType(Field field) {
return findType(field.getType());
}
public static StbType findType(Object... | 24.093023 | 57 | 0.664093 |
ef9d50ea5604ae3e4e41093173efb32aeda20641 | 3,668 | /**
* This class is generated by jOOQ
*/
package lifetime.backend.persistence.jooq.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import lifetime.backend.persistence.jooq.Keys;
import lifetime.backend.persistence.jooq.Lifetime;
import lifetime.backend.persistence.jooq.t... | 24.291391 | 149 | 0.632497 |
1aade594982a9a13b2062d621837d885155ebc0a | 1,323 | package net.andreinc.jbvext.test;
import lombok.Data;
import net.andreinc.jbvext.annotations.digits.MaxDigits;
import net.andreinc.jbvext.annotations.digits.MinDigits;
import org.junit.Assert;
import org.junit.Test;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validati... | 28.148936 | 103 | 0.687075 |
ad0aee45cb6c7bd7bff800dd4f209aefef447da7 | 1,599 | package hhp.tictactoe.simple.smart.startingmatch;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class Trainer {
public static Classifier train(URL gameDataURL) throws URIS... | 34.021277 | 83 | 0.693558 |
3b8e56fbe9ae8e0a3e77e3cebdbe0f59450ac005 | 78 | package org.zstack.sdk;
public class DeleteCephPrimaryStoragePoolResult {
}
| 13 | 49 | 0.820513 |
a558d6a5e4cd04bfed783400c4e395ca30a5716d | 2,239 | package themepark0419;
import java.io.IOException;
import java.util.ArrayList;
public class OutputClass {
// 가격 내역 출력
public static void printResult(String ticketSelect_Zone , String sort, int totalPrice, int ticketnum) {
System.out.printf("가격은 %d원 입니다.\n", totalPrice);
}
// 우대 사유 출력
public static Strin... | 30.256757 | 136 | 0.645824 |
f8ab9d01c6fb1d0e40ac852169d3976183a3e8fd | 704 | package br.com.ernanilima.jpdv.Model;
/**
* Classe com os dados de acesso do suporte tecnico.
*
* @author Ernani Lima
*/
public class Support {
/** ID do usuario Suporte */
private int id = 999;
/**
* Senha do usuario Suporte criptografada em sha256
* @see br.com.ernanilima.jpdv.Util.Encryp... | 20.114286 | 92 | 0.610795 |
d4eefa00bc04f2d5fb452e4450a5b16be39c255a | 1,822 | package com.skedgo.android.tripkit.tsp;
import com.skedgo.android.common.model.Region;
import java.util.List;
import javax.inject.Inject;
import dagger.Lazy;
import okhttp3.HttpUrl;
import rx.Observable;
import rx.functions.Func1;
import static org.apache.commons.collections4.CollectionUtils.isNotEmpty;
/**
* A ... | 31.964912 | 86 | 0.660263 |
e18a0594c0e9e144d6354946a493615234f112db | 3,080 | /*
* Copyright 2019 Roessingh Research and Development.
*
* 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, mo... | 37.108434 | 78 | 0.739935 |
cb24b7d62e62758c9c1e3057d212eb0cf8233d05 | 128 | package soya.lang;
/**
* @author: Jun Gong
*/
public interface Pattern {
boolean isMatch(Object obj) throws Throwable;
}
| 14.222222 | 49 | 0.6875 |
859865008c2b4e485b3e78e3f787898570cf6015 | 12,229 | /**
Copyright (c) 2007-2013 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in the @author tags
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/licen... | 31.117048 | 117 | 0.709216 |
c8478b9dcd26e4d689b9cfde1c06eb347d8981ba | 1,758 | package com.example.fn;
import com.fnproject.fn.api.FnConfiguration;
import com.fnproject.fn.api.RuntimeContext;
import com.goplacesairlines.api.GoPlacesAirlines;
import java.io.Serializable;
import java.util.Date;
public class Flight implements Serializable {
private GoPlacesAirlines apiClient;
public sta... | 36.625 | 151 | 0.750853 |
7009238bb9446236a8d679ed5f86802bf1595c4f | 522 | package org.kyojo.schemaOrg.m3n3.doma.core.clazz;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaOrg.m3n3.core.impl.MOTEL;
import org.kyojo.schemaOrg.m3n3.core.Clazz.Motel;
@ExternalDomain
public class MotelConverter implements DomainConverter<Motel,... | 22.695652 | 71 | 0.793103 |
d642309c851a8bf5dae1dc89574a427259635b19 | 670 | package com.pandawork.service.nature;
import com.pandawork.common.entity.nature.Nature;
import com.pandawork.core.common.exception.SSException;
import java.util.List;
/**
* @author : kongyy
* @time : 2018/12/23 16:52
*/
public interface NatureService {
public List<Nature> listAll( ) throws SSException;
p... | 23.103448 | 63 | 0.749254 |
a7435772c2e39d01456471af54da57514accfe77 | 4,139 | /*
* Copyright 2016-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 required by a... | 29.147887 | 99 | 0.750906 |
117480890de3951b539662df4702d247f605e7b1 | 7,420 | /*
* Copyright [2013-2021], 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 app... | 31.982759 | 112 | 0.586658 |
986734d2c9cb48e34ffeac4c54e8ef95423bea70 | 2,486 | package com.kickstarter.viewmodels;
import android.support.annotation.NonNull;
import android.util.Pair;
import com.kickstarter.KSRobolectricTestCase;
import com.kickstarter.factories.ProjectFactory;
import com.kickstarter.factories.ProjectStatsEnvelopeFactory;
import com.kickstarter.libs.Environment;
import com.kick... | 51.791667 | 168 | 0.835881 |
abaa8a9b3d0d05741c9a198ac02b530c8656b57d | 2,824 | /*
* 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 ... | 33.619048 | 96 | 0.654037 |
5ace1b04b152549089fa53f570c007b9bf982cd0 | 1,501 | package org.zimmob.zimlx.settings.ui;
import android.os.Bundle;
import androidx.appcompat.widget.Toolbar;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import org.zimmob.zimlx.theme.ThemeOverride;
import org.zimmob.zimlx.util.ThemeActivity;
import butterknife.BindView;
import butterknife.... | 32.630435 | 99 | 0.742172 |
8f83e55a66f1fd669d1384f58f72ec5ec1e200cf | 850 | package com.coder.happensbefore;
import java.util.concurrent.TimeUnit;
/**
* @author: lichunxia
* @create: 2021-03-27 17:46
*/
public class ThreadJoinDemo {
private int a = 10;
public static void main(String[] args) {
ThreadJoinDemo threadJoinDemo = new ThreadJoinDemo();
Thread thread = ... | 23.611111 | 92 | 0.548235 |
173994745fdea1033f53344f9c0c9aed6711c0f2 | 1,854 | /*
* MIT License
*
* Copyright (c) 2020 Alen Turkovic
*
* 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, mo... | 36.352941 | 81 | 0.748652 |
ea997c4353bf14c398e0358784fce02b0c0cb52d | 3,403 | package com.example.ex2_034;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;
import andr... | 35.082474 | 107 | 0.557743 |
ba1bf3f6f98ef6736a3eb03daf51ea861fa562db | 3,449 | package me.ehp246.aufjms.core.byjms;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.UUID;
import org.junit.jupiter.api.Assertions;
import me.ehp246.aufjms.api.dispatch.DispatchConfig;
import me.ehp246.aufjms.api.dispatch.InvocationDispatchBuilder;
import me.ehp246.a... | 29.991304 | 86 | 0.634677 |
790ce6f48c4530111c652061873da995e209e60c | 489 | package co.yixiang.modules.shop.repository;
import co.yixiang.modules.shop.domain.YxExpress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* @author hupeng
* @date 2019-12-12
*/
public interface YxExpressRepository extends Jp... | 25.736842 | 106 | 0.754601 |
9261bbe594a200ffc09f39423c9c188d4fe6a4fa | 12,165 | package org.stormroboticsnj.stormappmaster2019.Fragments;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.su... | 51.54661 | 162 | 0.575339 |
cd177d9580c385767318c00fa20a6a86338d7a43 | 572 | //
// Decompiled by Procyon v0.5.36
//
package org.xml.sax;
import java.io.IOException;
import java.util.Locale;
public interface Parser
{
void setLocale(final Locale p0) throws SAXException;
void setEntityResolver(final EntityResolver p0);
void setDTDHandler(final DTDHandler p0);
vo... | 22 | 70 | 0.722028 |
28e981484767824794314db924ad0fb116ace88f | 2,492 | package io.tidb.bigdata.cdc.json.jackson;
import java.math.BigDecimal;
public class JacksonObjectNode {
private final JacksonContext context;
private final Object object;
JacksonObjectNode(final JacksonContext context, final Object object) {
this.context = context;
this.object = object;
}
Object ... | 25.428571 | 90 | 0.720305 |
c247bc40cdfc0be4c89b89726c2e275cdb953146 | 1,730 | /**
* Copyright 2017 Hortonworks.
*
* 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 ... | 34.6 | 76 | 0.657225 |
a7ed94afa5c94b7dd5f35ed04f71687b0eaaedf7 | 3,631 | package org.thoughtcrime.securesms.util;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlarmManager;
import android.app.NotificationManager;
import android.app.job.JobScheduler;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Contex... | 37.822917 | 98 | 0.822363 |
09e85de54587f3a100cd697dfd94bc3141b3903d | 8,313 | // Copyright (C) 2002 IAIK
// http://jce.iaik.at
//
// Copyright (C) 2003 - 2015 Stiftung Secure Information and
// Communication Technologies SIC
// http://www.sic.st
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permi... | 34.782427 | 99 | 0.707927 |
f9406dd3bd91aa6ebc72d91e43fb0f4586fe6928 | 2,224 | package com.instructure.canvasapi.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Date;
/**
* @author Josh Ruesch
*
* Copyright (c) 2014 Instructure. All rights reserved.
*/
public class DiscussionTopicPermission extends CanvasModel<DiscussionTopicPermission> {
private static f... | 24.43956 | 105 | 0.59982 |
185ab87c4012e36207c93e30fffffa46e5c550d9 | 1,997 | package seedu.expensela.model.transaction;
import static java.util.Objects.requireNonNull;
import static seedu.expensela.commons.util.AppUtil.checkArgument;
/**
* Represents a Transaction's category.
* Guarantees: immutable; is valid as declared in {@link #isValidCategory(String)}
*/
public class Category {
p... | 27.736111 | 102 | 0.580871 |
6be3645463a38af9b7fcdd0010dba2b9897c641e | 1,721 | package com.trivadis.plsql.formatter;
import org.junit.jupiter.api.BeforeEach;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Collectors;
public abstract class AbstractTvdFormatTest {
Path tempDir;
@... | 32.471698 | 99 | 0.62115 |
a5999078491db6d70d9d158b3e830832838db1a4 | 365 | package com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.features.headline;
import org.codehaus.jackson.annotate.JsonValue;
/**
* @author Jan Molak
*/
public class Headline {
private final String value;
public Headline(String value) {
this.value = value;
}
@JsonValue
public St... | 18.25 | 84 | 0.679452 |
f5a8c89483aa76ba7ef1abbfa9a701f1c3d5c35b | 573 | protected List<Datastream> getDatastreams(final DepositCollection pDeposit) throws IOException, SWORDException {
LOG.debug("copying file");
String tTempFileName = this.getTempDir() + "uploaded-file.tmp";
IOUtils.copy(pDeposit.getFile(), new FileOutputStream(tTempFileName));
Datastrea... | 57.3 | 126 | 0.724258 |
ac03f89bfe6671a1137526289ca6a51b8bdeb27e | 648 | package org.javamaster.b2c.test.initializer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
/**
* @author yudong
* @date 2020/10/23
*/
@Slf4j
public class CustomerApplicationContextInitializer im... | 36 | 140 | 0.816358 |
870fd1308d1117f7fd508d2de8d14dcaf2610235 | 2,262 | package io.choerodon.iam.api.validator;
import io.choerodon.core.exception.CommonException;
import io.choerodon.iam.infra.dto.PasswordPolicyDTO;
import io.choerodon.iam.infra.mapper.PasswordPolicyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/... | 39 | 96 | 0.704686 |
00784565faf791f6d9042b120e1996e66d3e3367 | 15,999 | /*
* Copyright (C) 2018 Kweny.
*
* 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... | 46.917889 | 151 | 0.594225 |
1b67d5367d1878b4b5445d5c171bb3dd85e5acc7 | 592 | package com.photowey.fx.action;
import com.photowey.fx.action.layout.dialog.DialogLauncher;
import javafx.application.Application;
/**
* FX App
*
* @author photowey
* @date 2020/11/24
* @since 1.0.0
*/
public class App {
public static void main(String[] args) throws Exception {
// Application.launc... | 26.909091 | 62 | 0.692568 |
8bd154ac3e2badb5605781d4bd0497c9592f6662 | 1,883 | /*
* Copyright (c) 2011-2014 Pivotal Software, 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 ... | 29.421875 | 119 | 0.712693 |
d46e402ae8906200f49e0d4092f95092964f8930 | 13,370 | /*
* 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 nylon.report;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.S... | 32.451456 | 173 | 0.476365 |
816fdf2e3be5768d0346a9651d6943cadbd5d17b | 1,375 | package com.packt.springboot.formhandling.blogpost;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import java.time.LocalD... | 28.645833 | 97 | 0.698909 |
d865e155556abd02587220f25c9faae1b6e4a8f3 | 1,391 | package io.tornadofaces.component;
import javax.faces.component.UIComponent;
import javax.faces.component.behavior.ClientBehavior;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.faces.context.FacesContext;
import javax.faces.render.Renderer;
import java.util.List;
import java.util.Map;
publi... | 31.613636 | 104 | 0.762761 |
f1059768dd32632a55d4ff12d8ba8a5dfe1a64ef | 663 | package co.amasel.client.reports;
import io.vertx.core.Future;
import co.amasel.client.common.AmaselClientException;
import co.amasel.client.common.AmaselClientBase;
import co.amasel.client.common.MwsApiResponse;
import co.amasel.client.reports.MethodMap;
import co.amasel.model.reports.*;
public class ManageReport... | 27.625 | 108 | 0.776772 |
f6aaeef89030799e73a914d48e52923bcd1e1515 | 7,929 | package cz.habarta.typescript.generator;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
import java.io.Serializable;
import java.io.StringWriter;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.junit.... | 34.030043 | 145 | 0.575482 |
32493c4411341c90088fe989e8b9f5113496bef9 | 548 | import java.util.*;
import java.util.regex.*;
public class A4qno6 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String str=sc.nextLine();
Pattern p=Pattern.compile("\\w+");
Matcher m=p.matcher(str);
while(m.find()) {
Pattern p1=Pattern.compile("^[\\w]");
Matcher m1=p1.ma... | 24.909091 | 45 | 0.614964 |
bd14656f25b279ac215218ecf29cae469b9e7d8d | 20,146 | /*******************************************************************************
* Copyright 2018 T Mobile, 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. You may obtain a copy
* of... | 48.311751 | 120 | 0.715477 |
d50f1f503442d010724930b5a3170df90e232cce | 11,263 | package kasirgalabs;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.OutputStream;
import java.net.So... | 38.179661 | 82 | 0.585723 |
590a1ec205bae95d925ba75f61604bfdf070ec47 | 475 | package me.interview.entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Entity
@DiscriminatorValue(value="CATEGORY")
public class Category extends OptionVal... | 21.590909 | 68 | 0.793684 |
4c513e31f8136837840b4fb3fb9a28bef36b93ff | 1,441 | package com.github.brunoais.xpath_to_xml.parsing;
import java.util.ArrayList;
import org.apache.commons.jxpath.ri.compiler.Constant;
import org.apache.commons.jxpath.ri.compiler.CoreOperationEqual;
import org.apache.commons.jxpath.ri.compiler.Expression;
import org.apache.commons.jxpath.ri.compiler.LocationPath;
impo... | 24.844828 | 74 | 0.739764 |
18491442db22f43a921872b6bd4668ac83f8447f | 758 | package baseball.controller;
import baseball.utils.AnswerNumberFactory;
import baseball.utils.HintFactory;
import baseball.utils.PlayerNumberFactory;
import baseball.utils.TerminateUtil;
import baseball.models.AnswerNumber;
import baseball.models.PlayerNumber;
import baseball.view.InputView;
public class GameControll... | 27.071429 | 98 | 0.796834 |
bad88826efcebe814265edb55576e4d5186b0842 | 9,655 | package com.bluegosling.collections.queues;
import java.util.AbstractQueue;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Queue;
import com.bluegosling.collections.CollectionUtils;
import com.bluegosling.collections.queues.PriorityQueue.Entry;
/**
* Utility methods for working with instan... | 37.422481 | 100 | 0.642983 |
30517ccb23b9eb8c5ec26d2f3cb884da6da35f69 | 2,196 | package net.blazecode.vanillify.mixins.packets;
import it.unimi.dsi.fastutil.shorts.ShortSet;
import net.blazecode.vanillify.api.interfaces.BlockStateProxy;
import net.minecraft.block.BlockState;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.listener.Clie... | 37.220339 | 177 | 0.711749 |
3397b1fbacb2e9d73616b16e39529debeed1d9e1 | 2,479 | /*
*
* * Copyright 2018 Uber Technologies 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 req... | 38.138462 | 87 | 0.674062 |
445fa30e77edf04e72f3fe88bdf4fffd7856afc6 | 1,136 | /**
*
*/
package org.collectionspace.services;
import org.collectionspace.services.common.vocabulary.AuthorityItemJAXBSchema;
/**
* @author pschmitz
*
*/
public interface PersonJAXBSchema extends AuthorityItemJAXBSchema {
final static String PERSONS_COMMON = "persons_common";
final static String FORE_NAME = "f... | 34.424242 | 78 | 0.769366 |
e5b9329851fe8e5595313aaf46cb8528de32edf5 | 734 | package com.tieto.ipac.presence;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum VisibilityLevel {
NONE("none"),
PERSONAL("personal"),
WORKGROUP("workgroup"),
SITE("site"),
COMPANY("company"),
FEDERATION("federation"),
ALL... | 19.837838 | 57 | 0.638965 |
c8113d07a81baa3177938711e37f44e9d6d5767c | 4,339 |
package com.tonymontes.comicvine;
/*
Created by tony on 2/13/17.
*/
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Publisher {
@SerializedName("aliases")
@Expose
private Object aliases;
@SerializedName("api_detai... | 21.374384 | 60 | 0.642314 |
20c237cffb602b722cfb005d86dcadec0616848e | 2,416 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 25.166667 | 74 | 0.728477 |
310a87d742ffae6dcefad737fabd5db658ca58fc | 582 | package ru.eexxyyq.solutions.tasks.week2;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class Task9Test {
@Test
void solution() {
assertArrayEquals(new int[]{}, Task9.solution(new int[]{}));
assertNull(Task9.solution(null));
assertArrayEquals(ne... | 34.235294 | 96 | 0.611684 |
7956c2e8690ce280773af62e80041deec49bc97d | 5,604 | package de.jmonitoring.standardPlots.common;
import de.jmonitoring.base.MoniSoftConstants;
import de.jmonitoring.utils.intervals.CustomMinutePeriod;
import de.jmonitoring.utils.intervals.CustomSecondPeriod;
import java.util.Date;
import org.jfree.data.time.*;
/**
* Defining methods used by all dataset generators
*
... | 47.491525 | 152 | 0.605639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.