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 |
|---|---|---|---|---|---|
2a8b4a3d38df52cebe64857544213a70ad52daf9 | 1,433 | /*
Copyright 2004, Martian 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 applicable law or agreed to ... | 29.854167 | 74 | 0.67411 |
d218a6f7b7814c881501a49709e527cdaa946258 | 19,299 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 38.140316 | 154 | 0.666615 |
337339ca7b6423aef118c7fcd2e24770b3fa9074 | 529 | package com.jstarcraft.nlp.tokenization;
import com.huaban.analysis.jieba.JiebaSegmenter;
import com.huaban.analysis.jieba.JiebaSegmenter.SegMode;
import com.jstarcraft.nlp.tokenization.jieba.JiebaTokenizer;
public class JiebaTokenizerTestCase extends NlpTokenizerTestCase {
@Override
protected NlpTo... | 31.117647 | 67 | 0.746692 |
42f46dc8b00c5b06df1a0e2969b8f69825e69831 | 911 | package com.github.arthurfiorette.sinklibrary.command;
import com.github.arthurfiorette.sinklibrary.command.wrapper.CommandInfo;
import com.github.arthurfiorette.sinklibrary.command.wrapper.CommandInfo.CommandInfoBuilder;
import com.github.arthurfiorette.sinklibrary.command.wrapper.CommandWrapper;
import lombok.experi... | 32.535714 | 92 | 0.769484 |
3c3b805ce8e72d50d536f41c2125e7e6a3945747 | 916 | package com.nurisezgin.securesharedpreferences.util.checker;
import org.junit.Test;
import static com.nurisezgin.securesharedpreferences.util.checker.ParamChecker.*;
/**
* Created by nurisezgin on 07/02/2017.
*/
public class ParamCheckerTest {
@Test (expected = InValidContentException.class)
public void s... | 28.625 | 81 | 0.724891 |
db27c0d2ba3275960370def4dad2567500b8bf7c | 601 | package com.test.performance.demo;
import com.test.performance.testcase.AbstractTestCaseExecutor;
import com.test.performance.testcase.TestCaseResult;
public class DemoTestCaseImpl extends AbstractTestCaseExecutor {
public DemoTestCaseImpl(){
//System.out.println(System.getProperties());
}
@Overrid... | 25.041667 | 80 | 0.71381 |
15f1d1529b1017a8e87ecfb0d4ea7eba17b7a52b | 2,187 | package com.eixox.reflection;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;
import com.eixox.globalization.Culture;
public class AbstractAspectMember implements AspectMember {
private final AspectMember member;
public AbstractAspectMember(AspectMember member) {
t... | 22.090909 | 88 | 0.74257 |
4a66cd8fcb72d2aec94233a1b6dc73e8b1f2811a | 440 | package org.ualr.mobileapps.sneakercalendar.ui.signup;
public class SignupResult {
private int errorMessage;
private boolean successful;
public SignupResult(int errorMessage, boolean successful) {
this.errorMessage = errorMessage;
this.successful = successful;
}
public int getErro... | 22 | 63 | 0.684091 |
795d9c2ff98603602ca9523c913c7b57dcc72532 | 1,331 | package cn.ideabuffer.process.extension.retry.nodes;
import cn.ideabuffer.process.core.ProcessListener;
import cn.ideabuffer.process.core.Processor;
import cn.ideabuffer.process.core.rules.Rule;
import com.github.rholder.retry.Retryer;
import java.util.List;
import java.util.concurrent.Executor;
/**
* @author sangj... | 27.163265 | 75 | 0.694966 |
e93a4058efa6d7c6801a4c85bc75e293dc325911 | 1,076 | package game;
import enums.ActorType;
import enums.Direction;
public class PacMan extends Actor {
private Direction direction;
public PacMan(Point position) {
if (position == null) {
throw new IllegalArgumentException("Invalid position to initialize PacMan");
}
this.posit... | 26.243902 | 106 | 0.61803 |
bd1b9f4a362d77b9d7ed9893608575d6ac36e08b | 1,371 | package com.dianping.cat.report.task.problem;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import org.junit.Test;
import org.unidal.lookup.ComponentTestCase;
import com.dianping.cat.Constants;
import com.dianping.cat.report.page.problem.task.ProblemReportBuilder;
import com.dianping.cat.report... | 26.882353 | 75 | 0.741794 |
dffac8789c3e45f62a263a250040d3130b55268f | 2,250 | package org.apache.hadoop.examples.iterative;
import java.io.IOException;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.FloatWritable;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapred.IterativeMap... | 28.481013 | 117 | 0.755111 |
a1234da98443537dbe15ffd6839b644f0087f42a | 127 | package cn.woodwhales.mapstruct.converter;
/**
* @author woodwhales
* @date 2020-12-24 21:44
*/
public interface Param {
}
| 14.111111 | 42 | 0.700787 |
762f8cf69d1a1f6a965bd0639ec6577a8d722472 | 1,600 | package de.bogenliga.application.business.user.impl.entity;
import java.sql.Timestamp;
import de.bogenliga.application.business.user.impl.types.SignInResult;
import de.bogenliga.application.common.component.entity.BusinessEntity;
/**
* I represent the user sign in history business entity.
* <p>
* The sign in hist... | 22.857143 | 71 | 0.65875 |
6b7bf1b8b0bb5f9f2e90fffdec7ef57abfd3d3a0 | 2,274 | /*
* 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")... | 38.542373 | 107 | 0.709323 |
0feedb6458a7e782165fc2686568c41d9830e653 | 946 | package io.vertx.tp.optic;
import io.vertx.tp.ke.init.KePin;
import io.vertx.tp.optic.atom.Income;
import io.vertx.tp.optic.atom.Lexeme;
import java.util.Objects;
/*
* T seeking in the environment of kernel.
*/
public class Pocket {
/*
* Lookup interface
*/
public static <T> T lookup(final Class<... | 22.52381 | 81 | 0.526427 |
7fa2a760e5eb5e073ce9f6495871db3d4f4a0bfb | 17,019 | /*
* Copyright (c) 2009, GoodData Corporation. 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 notice, this list of con... | 46.247283 | 173 | 0.611728 |
a94cb249a733af9bfca36a93275ee60ed1f21b26 | 1,582 | public class Area {
private Point2D upLeftCorner;
private double width;
private double height;
public Area(Point2D upLeftCorner, double width, double height) {
this.upLeftCorner = upLeftCorner;
this.width = width;
this.height = height;
}
public Point2D getUpLeftCorner()... | 27.275862 | 89 | 0.575853 |
3d2bfdf852688e08eb735f94eedf55c80f70913a | 4,151 | package it.unimi.di.wikipedia.categories;
import it.unimi.dsi.fastutil.ints.IntArrayFIFOQueue;
import it.unimi.dsi.fastutil.ints.IntArrayPriorityQueue;
import it.unimi.dsi.fastutil.ints.IntPriorityQueue;
import it.unimi.dsi.fastutil.ints.IntSet;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import it.unimi.d... | 27.490066 | 94 | 0.71019 |
96753a21e9acb76deff12945325c173be72b510c | 285 | package com.fakecompany.personmonolith.exception;
public class DataNotFoundException extends GeneralRuntimeException{
private static final long serialVersionUID = 1L;
public DataNotFoundException(String message){
super(DataNotFoundException.class,message);
}
}
| 23.75 | 67 | 0.785965 |
271a011c18d5852c102ac96b7756efa4b929610c | 4,152 | package com.zb.study.extend;
import org.springframework.beans.BeansException;
import org.springframework.beans.PropertyValues;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
import org.springframework.stereotype.Component;
import java.beans.PropertyDescriptor;
/**
* @descriptio... | 29.446809 | 148 | 0.745183 |
882d9fef6203c7afc476449d99ee9d564bb100d9 | 1,479 | /*
* Copyright 2014 MIR@MU.
*
* 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... | 29 | 75 | 0.709939 |
867f93da73c66a2082a303d68615318f8b22ae81 | 8,649 | /*
* Copyright (c) 2011, 2012, 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 ... | 32.637736 | 151 | 0.636259 |
67488be651ec8c6ef73de3b63850c46e229450d3 | 2,117 | /*
This file is part of BORG.
BORG 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 2 of the License, or
(at your option) any later version.
BORG is distributed in the hope th... | 25.202381 | 82 | 0.695324 |
06b8e1d88219444b470c6547c55162a8b81bcdff | 463 | package com.taobao.arthas.core.security;
import java.security.Principal;
/**
* 本地连接的特殊处理 {@link Principal}.
*
* @author hengyunabc 2021-09-01
*/
public final class LocalConnectionPrincipal implements Principal {
public LocalConnectionPrincipal() {
}
@Override
public String getName() {
r... | 17.148148 | 66 | 0.645788 |
ced7ceea5ad78d3f2a97a9e7afd5d93bed45b115 | 679 | package jdk.nashorn.internal.scripts;
import jdk.nashorn.internal.runtime.PropertyMap;
import jdk.nashorn.internal.runtime.ScriptObject;
public class JD extends ScriptObject {
private static final PropertyMap map$ = PropertyMap.newMap(JD.class);
public static PropertyMap getInitialMap() {
return map$;
... | 23.413793 | 76 | 0.703976 |
a68ca7810cc14489de888a406818a94e7731ceb8 | 93 | package com.swak.paxos.common;
/**
* 节点ID
*
* @author DELL
*/
public class NodeId {
}
| 8.454545 | 30 | 0.602151 |
0a1c50f357677c8b539c09cd0245ac4c37d2c3c9 | 518 | package com.simple.creact.library.framework.datasource;
import com.simple.creact.library.framework.Closeable;
import com.simple.creact.library.framework.IParameter;
import com.simple.creact.library.framework.ParameterFactory;
/**
* R-DataFetcher从DB/network/File System 获得的原始数据类型
* P-Parameter Type
*
* @author:YJJ... | 25.9 | 69 | 0.777992 |
ae34cd0ddf88627b4d2dee115d66494e8791d6bb | 1,694 | /*
*
* Copyright 2020. Explore in HMS. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 26.888889 | 106 | 0.691263 |
9229e63a9ba8f4f559657b750fe1c05db2bd4e3e | 299 | package testFLProject;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
public class IfstatementTest2 {
@Test public void test3_4() {
Ifstatement ifTest = new Ifstatement();
assertThat(ifTest.plus(3), is(4));
}
} | 21.357143 | 47 | 0.675585 |
533353fb229255394656f49aa5d50a183353b362 | 162 | package com.testsigma.automator.webservices;
public enum JSONCompareMode {
STRICT,
LENIENT,
NON_EXTENSIBLE,
STRICT_ORDER,
JSON_PATH,
JSON_SCHEMA
}
| 12.461538 | 44 | 0.759259 |
e14c2cf7944d152500b2994366114bc060de6d1e | 3,071 | package com.bestvike.linq.enumerable;
import com.bestvike.function.Func1;
import com.bestvike.function.Predicate1;
import com.bestvike.linq.IEnumerable;
import com.bestvike.linq.exception.ExceptionArgument;
import com.bestvike.linq.exception.ThrowHelper;
/**
* Created by 许崇雷 on 2019-07-26.
*/
public final class Loo... | 28.700935 | 130 | 0.582546 |
ea99ca597a78c5f816622773278537ad3d98233f | 419 | package com.whalecloud.service;
/**
*
* 验证码平台
*
* @author zhaoyanac
* @date 2019/10/31
*/
public interface CodeService {
/**
*
* 添加
*
* @param phone
* @param code
*/
void add(String phone, String code);
/**
*
* 验证码是否正确
*
* @param phone
* @para... | 11.971429 | 63 | 0.513126 |
d27d82fd3fdbb57fc1a5eaac5fca6c6f99ade539 | 178 | package net.sf.l2j.commons.mmocore;
import java.nio.channels.SocketChannel;
/**
* @author KenM
*/
public interface IAcceptFilter
{
public boolean accept(SocketChannel sc);
} | 16.181818 | 41 | 0.758427 |
580b7f55fa4433871fd78e6414f074c032774903 | 5,443 | package com.atlassian.jira.ext.calendar.model;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.index.DocumentConstants;
import com.atlassian.jira.issue.priority.Priority;
import org.jmock.Mock;
import org.jmock.MockObjectTestCase;
import java.sql.Timestamp;
import java.text.ParseException;
impo... | 46.127119 | 122 | 0.693735 |
20afee0623a7120cc478c635cffa91ef7675fe16 | 367 | public class Lion implements Eudemon, Action {
public void update(double oldCount, double newCount, String name, String treasure) {
System.out.println("Lion known " + name + " took " + treasure + "\noldCount = " + oldCount + ", newCount = " + newCount);
attacks(name);
}
public void attacks(String name) {
Sys... | 28.230769 | 123 | 0.678474 |
3be9b26a0b289525818e4a80f38456bd986ca773 | 2,927 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.SDCustomerPositionRetrieveOutputModelServiceDomainRetrieveActionRecordControlRecor... | 43.044118 | 188 | 0.884865 |
3592bab7b88ba7493aaa33aa39151b33e949f0c1 | 208 | package com.pateo.spider.download;
import com.pateo.spider.domain.Page;
public class HtmlCleanerDownload implements Downloadable {
@Override
public Page download(String url) {
return null;
}
}
| 13.866667 | 58 | 0.75 |
1bcd431f7a437a3ee360101a74a141739d910c1d | 1,636 | import java.util.Arrays;
/*
* @lc app=leetcode id=646 lang=java
*
* [646] Maximum Length of Pair Chain
*
* https://leetcode.com/problems/maximum-length-of-pair-chain/description/
*
* algorithms
* Medium (54.11%)
* Likes: 1667
* Dislikes: 92
* Total Accepted: 87.9K
* Total Submissions: 161.9K
* Testc... | 19.95122 | 79 | 0.542787 |
9f47012a031b29b95dc25d584cd9b2f05b6f0ba5 | 247 | package io.kenxue.cicd.domain.factory.sys;
import io.kenxue.cicd.domain.domain.sys.Role;
/**
* 角色表
* @author mikey
* @date 2021-12-03 17:27:04
*/
public class RoleFactory {
public static Role getRole(){
return new Role();
}
}
| 17.642857 | 45 | 0.65587 |
bb6d1444606efbc3ef932614554e78308af83df1 | 1,735 | package com.zerrium.zping.server;
import net.fabricmc.api.DedicatedServerModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.networking.v1.PacketByteBufs;
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
import net.fabricmc.fabric.api.networkin... | 41.309524 | 119 | 0.696254 |
c2f5ae70ef5e9a8532aede36affd0b182d34b63b | 8,832 | /*
* Copyright 2017 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 a... | 39.428571 | 100 | 0.689198 |
681ddf37fbe57682407ffc95e55c509147c074f5 | 230 | package br.ufc.dc.tpii.helloci;
import static org.junit.Assert.*;
import org.junit.Test;
public class AppTest {
@Test
public void testSayHello() {
App app = new App();
assertEquals("Hello World!", app.sayHello());
}
}
| 14.375 | 47 | 0.686957 |
0714abee887a7a9d7cfd4c0d099279a0a525b9d3 | 622 | package nl.beerik.easyenchantments.config;
import java.util.List;
import net.minecraft.item.DyeColor;
public class EEConfig {
//Client
public static boolean clientBoolean;
public static List<String> clientStringList;
public static DyeColor clientDyeColorEnum;
public static boolean modelTranslucency;
publ... | 25.916667 | 64 | 0.807074 |
f177be0bd1bde3687b309a8ad6728177990fb960 | 2,470 | 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.729167 | 77 | 0.736032 |
616c9084127d09f24145e78ffde44affbe2275dd | 1,163 | /** Ben F Rayfield offers this software opensource MIT license */
package mutable.compilers.java.impl;
import java.io.File;
import java.security.ProtectionDomain;
import java.util.HashMap;
import java.util.Map;
import mutable.util.Files;
public class DirClassLoader extends ClassLoader{
public final File dir;
p... | 24.229167 | 72 | 0.706793 |
65772c7aab65a35adb32083894764ea421e107ce | 1,789 | // Copyright 2022 Google LLC
//
// 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 ... | 31.946429 | 90 | 0.652879 |
8d7beff58b0c7441b38fbc46446ebf03a12adfcb | 4,410 | package de.fred4jupiter.fredbet.web.image;
import de.fred4jupiter.fredbet.domain.AppUser;
import de.fred4jupiter.fredbet.domain.ImageGroup;
import de.fred4jupiter.fredbet.domain.ImageMetaData;
import de.fred4jupiter.fredbet.security.FredBetPermission;
import de.fred4jupiter.fredbet.service.image.ImageAdministrat... | 40.833333 | 150 | 0.7322 |
f7494783915af4700d6e2d42086fcce18beb695e | 107 | package com.stone.pile.util;
/**
* Created by admin on 2017/5/12.
*/
public class TransitionHelper {
}
| 11.888889 | 33 | 0.682243 |
96d403814813f959c085aa262a2febb3b35ae476 | 557 | package com.jokls.jok.dataset.writer;
import com.jokls.jok.dataset.IDataset;
/**
* Copyright (C) 2019
* All rights reserved
*
* @author: marik.wei
* @mail: marks@126.com
* Date: 2019/6/22 15:07
*/
public interface IMapWriter {
void put(String name, int value);
void put(String name, long value);
... | 17.967742 | 42 | 0.664273 |
00334994057d99d643d7adb5156b744a885bed65 | 1,522 | package br.com.joinersa.contaeletrica.entities;
/**
* Created by Joiner on 16/07/2016.
*/
public class Aparelho {
private int idImagem;
private String nome;
private float potencia;
private float tempo;
private String periodo;
public Aparelho() {}
public Aparelho(String nom... | 21.43662 | 94 | 0.57293 |
a2922c9fb07ea735cc0e5300799288380796e20f | 2,073 | /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 29.614286 | 124 | 0.677279 |
234e272e4c1bc7662580072205983a0764ced19f | 1,009 | package com.arjim.webserver.user.service;
import com.arjim.webserver.user.model.*;
import java.util.List;
import java.util.Map;
/**
* 部门
*
* @author arjim
* @description
* @date 2020-11-27 09:38:52
*/
public interface UserDepartmentService {
UserDepartmentEntity queryObject(Long id);
List<UserDepartmentEn... | 21.468085 | 71 | 0.77998 |
6ee2bc3b75a3e664c8125fd7b9401c2f2419a886 | 509 | /*
* Ven's Aliucord Plugins
* Copyright (C) 2021 Vendicated
*
* 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
*/
package com.discord.databi... | 25.45 | 67 | 0.738703 |
85bcad4d5f65eace4c29597da604e46ca3582a6a | 1,932 | package br.com.fernandomachado.galaxy;
import br.com.fernandomachado.galaxy.dao.singleton.MaterialSingletonDAOTest;
import br.com.fernandomachado.galaxy.dao.singleton.TranslationSingletonDAOTest;
import br.com.fernandomachado.galaxy.model.numeral.roman.RomanNumeralFactoryTest;
import br.com.fernandomachado.gala... | 42.933333 | 104 | 0.807453 |
fc3b186e5e8f96c89f33cff0c30b1e463d06a684 | 252 | package com.rrvrafael.cursojava.aula31;
public class TesteCarro {
public static void main(String[] args) {
Carro carro = new Carro();
carro.marca = "Fiat";
double km = 10;
carro.calcularCombustivel(km);
}
}
| 16.8 | 44 | 0.607143 |
198c8a52f697d1d9f259fc020fefb4666793835d | 14,440 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 33.425926 | 180 | 0.669183 |
6a2ca2253590d9e8ca060ec2cbbdd5865cac30c7 | 113,060 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.az... | 48.986135 | 120 | 0.733124 |
2238faac26e6728cfdb634e0693514d4825a66ac | 6,349 | package de.tum.repairchain;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Button;
impo... | 33.067708 | 97 | 0.569539 |
6c379916ead5a292e8afc68186cdeef91bd25a4c | 1,643 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
package com.microsoft.store.partnercenter.countryvalidationrules;
import java.text.MessageFormat;
import com.fasterxml.jackson.core.type.TypeReference... | 34.957447 | 114 | 0.806452 |
8dc747ee115f0cbaef10dc6ef75f0709dfe516a1 | 6,097 | package ax.stardust.skvirrel.component.keyboard;
import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.View;
import android.view.inputmethod.InputConnection;
import android.widget.Button;
import android.widget.LinearLayout;
im... | 30.034483 | 119 | 0.657865 |
5d5280d3c1808629deb1609a3da6552a73924008 | 1,199 | package net.renfei.dao.persistences;
import java.util.List;
import net.renfei.dao.entity.PostsDO;
import net.renfei.dao.entity.PostsDOExample;
import net.renfei.dao.entity.PostsDOWithBLOBs;
import org.apache.ibatis.annotations.Param;
public interface PostsDOMapper {
long countByExample(PostsDOExample example);
... | 32.405405 | 117 | 0.792327 |
26168f6dfe562755beb438aff6161a1fc8912b81 | 2,231 | package com.huawei.hackzurich;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.... | 36.57377 | 104 | 0.718512 |
dd74797996783815a439d75b0561d439edc14d48 | 2,047 | /*
* 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 ... | 39.365385 | 76 | 0.738153 |
483c2cf8865fa0f93bc35d8e5615ff88bdc52b51 | 196 | package com.wytings.demo;
/**
* Created by rex on 12/9/16.
*/
public class MyApp extends App {
@Override
protected void initialize() {
G.i("app has benn initialized");
}
}
| 15.076923 | 40 | 0.612245 |
7d1f436d16b5f1e89df898567bba96660b513808 | 5,356 | /*
* MIT License
*
* Copyright 2018 Sabre GLBL Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 46.573913 | 134 | 0.677184 |
794e903889fea79ac72383f62b5d8f9b72361396 | 1,383 | package io.github.nichetoolkit.rest.error.data;
import io.github.nichetoolkit.rest.RestErrorStatus;
import io.github.nichetoolkit.rest.RestError;
import io.github.nichetoolkit.rest.RestErrorException;
import io.github.nichetoolkit.rest.RestStatus;
/**
* <p>DataCreateException</p>
* @author Cyan (snow22314@outlook.c... | 32.162791 | 129 | 0.749096 |
b0eab1a19153e99b8bbe872ca548f2244a2222fe | 5,060 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 40.48 | 97 | 0.713834 |
44508a435fa23834a03d1ed0e708440c37521352 | 4,704 | package no.jsosi;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class Navntype {
private final static Map<Integer, String> nameById = new HashMap<>();
static {
// copy from
// http://www.kartverket.no/globalassets/standard/sosi-st... | 28.337349 | 114 | 0.479804 |
0c0fc43d9047a5a7830dd6adae9613ac469ac4aa | 828 | package common.entities.payload.client_to_server;
import common.entities.Token;
import common.entities.payload.PayloadType;
/**
* A payload from client to server that
* contains the data for a user to leave a channel.
* <p>
* Created on 2020.12.10.
*
* @author Shari Sun
* @version 1.0.0
* @since... | 21.789474 | 63 | 0.677536 |
a566a7fbdf04b2d84bf3a21c247b4a15a76bd5d1 | 4,899 | /*
* Copyright (C) 2018. Uber Technologies
*
* 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 ... | 35.244604 | 98 | 0.719739 |
016d63bf524029fd09c180a9d5cf8888b3851965 | 609 | package com.jiedangou.i17dl.api.sdk.bean.param.req.receivemanagement;
import com.jiedangou.i17dl.api.sdk.bean.param.req.BaseReq;
/**
* 订单管理-列表
* Created on 2018/1/22
*
* @author Jianghao(howechiang @ gmail.com)
*/
public class IndexReq extends BaseReq {
private Integer page;
public Integer getPage() {
... | 18.454545 | 69 | 0.65353 |
36c774b8ffe0f6f6ddb5426bec17ccfd5a414983 | 1,982 | package serializers.wobly;
import static serializers.core.metadata.SerializerProperties.APIStyle.REFLECTION;
import static serializers.core.metadata.SerializerProperties.Features.OPTIMIZED;
import static serializers.core.metadata.SerializerProperties.Features.SUPPORTS_BACKWARD_COMPATIBILITY;
import static seriali... | 44.044444 | 103 | 0.780525 |
d860e1d7d3549412b6920f7b33002f4d1d50be29 | 8,816 | /*
* Copyright 2008 Google 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 i... | 37.675214 | 99 | 0.654152 |
41dafefcbb6668d8ad88b5af1ab75bf940ef1eb8 | 2,796 | /*
* Copyright 2012-2015 Viant.
*
* 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 t... | 24.964286 | 81 | 0.652718 |
6dd13c92ffbd39d1789091cea6161630116918db | 11,734 | package com.webcheckers.model.board;
import com.webcheckers.ui.boardView.Move;
import com.webcheckers.ui.boardView.Position;
import java.util.Stack;
import java.util.HashMap;
import java.util.Map;
/**
* Model tier class that represents the checkers board.
*
* @author Dan Wang
* @author Emily Lederman
* @author ... | 30.7979 | 92 | 0.514317 |
6978f7332f9db0851ca0cbf15d8d47d08d78bcbf | 1,121 | package com.procergs.starter.web.controllers;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
imp... | 27.341463 | 112 | 0.768064 |
8398d0e16dbdc8e9f139c143ff387fddfdad7743 | 284 | package org.biolink.model;
import java.util.List;
import lombok.*;
/* version: 2.2.16 */
/**
One or more causally connected executions of molecular functions
**/
@Data
@EqualsAndHashCode(callSuper=false)
public class BiologicalProcess extends BiologicalProcessOrActivity {
} | 14.947368 | 68 | 0.760563 |
2e3517ea963fff3c398e7fdd664df7473842170a | 250 | package org.amphiaraus.roundedlayout.sample;
import android.app.Application;
/**
* author: EwenQin
* since : 2017/8/3 上午11:51.
*/
public class App extends Application {
@Override public void onCreate() {
super.onCreate();
}
}
| 14.705882 | 44 | 0.668 |
4bbe227958a18cffed8ff585b567cbe0886efa9b | 2,041 | /*
* 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 de.guntram.mcmod.fabrictools;
import com.google.common.collect.Lists;
import de.guntram.mcmod.fabrictools.Types.ConfigurationS... | 24.297619 | 79 | 0.653111 |
9db5e6f70fa14b1927bca7cdddb2cd024cf7d9a5 | 9,428 | /*
* Copyright © 2017-2021 Ocado (Ocava)
*
* 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 a... | 40.119149 | 158 | 0.683814 |
27bda4867a9ed0dbb9f1d6caf6b847f9584ebf54 | 525 | package cz.muni.fi.spnp.gui.components.menu.view.includes;
import cz.muni.fi.spnp.gui.components.mainwindow.Model;
import cz.muni.fi.spnp.gui.components.menu.view.general.GeneralItemsTableViewCollapsable;
/**
* Collapsable table view with the includes supporting operations add, edit and delete.
*/
public class Incl... | 32.8125 | 97 | 0.788571 |
6971f3aa3e699b3ddd23697ba6b299bf7e5e5d9d | 369 | package com.stresstest.random.permutations.external;
public class ExternalObjectWithDefaultEnum {
final private ExternalDefaultEnum externalDefaultEnum;
public ExternalObjectWithDefaultEnum(final ExternalDefaultEnum enumPublic) {
this.externalDefaultEnum = enumPublic;
}
public ExternalDefaultEnum getExternalDe... | 26.357143 | 77 | 0.840108 |
2f128b543f2419e61e346f399eba71b9aff9ea5c | 1,627 | /*
* Copyright (c) 2020, MicroRaft.
*
* 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 ... | 29.053571 | 132 | 0.73571 |
441ff43bd8765819572e676331f62e3380b9073e | 7,718 | /**
*
* http-toolbox: Command line HTTP tools
* Copyright (c) 2014, Sandeep Gupta
*
* http://sangupta.com/projects/http-toolbox
*
* 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
*
... | 27.663082 | 120 | 0.679321 |
1e15af6fa5e193a6bf74bfe077ed873648c06a9d | 995 | package com.appsmith.server.services;
import com.appsmith.external.models.DatasourceTestResult;
import com.appsmith.server.acl.AclPermission;
import com.appsmith.server.domains.Datasource;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.util.List;
import java.util.Set;
public inte... | 31.09375 | 99 | 0.80603 |
ee3b2d1228497c02a6b9a8bdd875a5c78b0e160e | 2,547 | /*
* 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, software
* distributed u... | 68.837838 | 213 | 0.870828 |
389af8f9eb9250c5694f0d0cefd3e2957f076a06 | 23,978 | /*
* Copyright 2015 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 applica... | 43.675774 | 99 | 0.678831 |
9aada397c960b6d1ac2d5ed7c03a38f7de8d782c | 380 | package com.core.app.ui.test2;
import android.content.Context;
import com.core.app.di.PerActivity;
import com.core.app.ui.base.IPresenter;
@PerActivity
public interface ITest2Presenter<V extends ITest2View> extends IPresenter<V> {
void init(Context context, String mainTopicTitle, int subTopicId);
void loadD... | 21.111111 | 78 | 0.752632 |
906c4bab7625b8c5c617176f8f9b086711f55ece | 4,410 | package se.lnu.siq.s4rdm3x.experiments.system;
/*
public class TeamMates extends System {
@Override
public String getName() {
return "TeamMates";
}
@Override
public HuGMe.ArchDef createAndMapArch(Graph a_g) {
HuGMe.ArchDef ad = new HuGMe.ArchDef();
HuGMe.Arc... | 48.461538 | 183 | 0.706803 |
73c1fcced752c15939b304eb6e5889d8e39c216d | 521 | package com.prohelion.maps;
import java.util.GregorianCalendar;
public interface Environment {
double getLatitude();
void setLatitude(double latitude);
double getLongitude();
void setLongitude(double longitude);
double getGradient();
void setGradient(double gradient);
GregorianCalendar getGregor... | 15.787879 | 55 | 0.761996 |
6a23c70049544cf7dac9ada2ca60c008d5e2f5a4 | 2,198 | /*
* hsb-kintel-17
* Copyright (C) 2018 hsb-kintel-17
* This file is covered by the LICENSE file in the root of this project.
*/
package de.kintel.ki.cli;
import com.google.common.collect.Lists;
import de.kintel.ki.model.Field;
import de.kintel.ki.model.Piece;
import de.kintel.ki.model.Player;
import de.kintel.ki... | 33.30303 | 139 | 0.675614 |
6b4c9c9a38fdc1d5d735956ecb43ffeaca928fd4 | 1,862 | package sep.gaia.controller.settings;
import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import sep.gaia.resources.ResourceMaster;
import sep.gaia.resources.tiles2d.TileCache;
import sep.gaia.resources.tiles2d.TileManager;
/**
* Thi... | 27.791045 | 113 | 0.743824 |
63e868f40e9e247298f9c7d001b23730ef71ea5b | 538 | package com.github.windsekirun.daggerautoinject.sample;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.github.windsekirun.daggerautoinject.InjectBroadcastReceiver;
import dagger.android.AndroidInjection;
/**
* Created by pyxis on 18. 4. 25.
*/
... | 24.454545 | 71 | 0.789963 |
4411a4021f2f7396ed05e15222d54e3fa7c1881d | 169 | package com.dashboard.service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class AttendenceServiceImpl {
}
| 16.9 | 46 | 0.822485 |
525ebd18c5f17ef2933705ced1cc5a2c6e6e89eb | 410 | package command.Turtle;
import command.Command;
import turtle.Turtle;
public class LeftCommand implements Command{
private Turtle myTurtle;
private double myMovement;
public LeftCommand(double movement, Turtle turtle){
myTurtle = turtle;
myMovement = Math.toRadians(movement);
}
public double execute(){
... | 19.52381 | 62 | 0.765854 |
af69e13304970835315150c77a918886a75280b7 | 3,677 | /* **************************************************************************
* $OpenLDAP$
*
* Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERS... | 32.830357 | 99 | 0.594506 |
e62d3614428100e21075c56c15a50ebbc66c63df | 787 | package org.activiti.engine.impl.bpmn.helper;
import java.io.Serializable;
public class TaskSimpleInfo implements Serializable{
private static final long serialVersionUID = 1L;
private String taskId;
private String taskDefiniotinKey;
private String assignee;
public String getTaskId() {
return taskId;
}... | 16.061224 | 61 | 0.740788 |
d125947e274cc4e86032aa4c2fb777abe25ef680 | 1,124 | /**
* This file is part of eps4j-core, http://github.com/eps4j/eps4j-core
*
* Copyright (c) 2017, Arnaud Malapert, Université Nice Sophia Antipolis. All rights reserved.
*
* Licensed under the BSD 3-clause license.
* See LICENSE file in the project root for full license information.
*/
/**
* This file is part o... | 23.914894 | 94 | 0.708185 |
600b692b2d3694699a45a60b67c3e180d14fe30d | 4,443 | package com.dwarfeng.dutil.develop.reuse;
import java.util.Collection;
import java.util.Iterator;
import java.util.Objects;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* 复用工具类。
*
* <p>
* 由于只是包含静态字段以及静态方法的工具类,因此该类禁止继承或者外部实例化。
*
* @author DwArFe... | 17.355469 | 103 | 0.600495 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.