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 |
|---|---|---|---|---|---|
24c0c5a7d750198e9cac389ba23a6c579e3d3ecc | 20,194 | /* file: DistributedHDFSDataSet.java */
//==============================================================
//
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
//
// Copyright 2017-2018 Intel Corporation
/... | 44.578366 | 155 | 0.621719 |
d63b7d8d4d0968d276146ddf307a991a9d8da0d1 | 1,188 | package com.keqi.jlibmodbus.init;
import com.keqi.jlibmodbus.modbustcp.Zlan6844Constant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
im... | 31.263158 | 105 | 0.683502 |
303bfc30139e445b54087d297755d2a822ad9e83 | 2,101 | /*
Copyright (c) 2014 (Jonathan Q. Bo)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribut... | 28.780822 | 145 | 0.733936 |
2b7228a8590af7429df616642d354f1f4896e4bf | 125 | package dz.minagri.stat.enumeration;
public enum EtatMateriel {
/**
*
*/
NOUVEAU,
/**
*
*/
UTULISE;
}
| 7.352941 | 36 | 0.536 |
2a55659afc5509b79590658eb7bf50f5156286af | 1,553 | /*
* 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 ... | 23.892308 | 63 | 0.710882 |
d377a25ae9649c2b03f732d616b7d84f621f4a74 | 4,504 | package org.arkecosystem.crypto.transactions.builder;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import org.arkecosystem.crypto.enums.Fees;
import org.arkecosystem.crypto.identities.PublicKey;
import org.ark... | 51.181818 | 622 | 0.702043 |
b58aed2f01a08c4406b0be1e9f97c7836cc4cf97 | 4,099 | import org.hyperskill.hstest.dynamic.DynamicTest;
import org.hyperskill.hstest.stage.StageTest;
import org.hyperskill.hstest.testcase.CheckResult;
import util.Checker;
import util.RegexChecker;
import util.TextChecker;
import util.UserProgram;
import java.util.Random;
import java.util.function.Function;
import java.ut... | 34.445378 | 98 | 0.594779 |
20aa43fc91e17b4874d6fa0389af9944b410fcad | 110 | public void scanLongArr(long[] arr) {
for (int i = 0; i < arr.length; ++i) {
arr[i] = l();
}
} | 22 | 42 | 0.472727 |
19309fce99e0f5efd89d384464b5ce2514ef5de6 | 1,655 | package org.kontza.atmospi;
import java.util.ArrayList;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestC... | 33.77551 | 116 | 0.687613 |
c71e2f0d0e9ef45daf75a8faef963a71abfd7ed5 | 648 | package io.github.henryssondaniel.teacup.core.assertion;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
class AbstractByteArrayAssertTest {
@Test
void getAssert() {
assertThat(new TestAbstractByteArrayAssert().getAssert())
.isInstanceOf(org.assertj.core.a... | 30.857143 | 74 | 0.802469 |
e7afcfe4c3361aa26c50c2bbdbad57e3f1bc2d99 | 2,194 | package com.outdatedversion.algorithm;
import com.outdatedversion.visualizer.VisualizedArray;
import java.util.Arrays;
/**
* Implementation of the radix sorting algorithm from https://www.geeksforgeeks.org/radix-sort/
*
* @author Ben Watkins
* @since Dec/06/2020
*/
public class RadixSort implements SortingAlgor... | 27.425 | 95 | 0.608022 |
adbf493f4b36fb74f8d3496c8c070b208f2f09fd | 3,089 | import java.io.Serializable;
/**
* Stores the result of an Othello game, including the players' scores
* and what caused the game to end.
* <p>
* $Id: OthelloResult.java,v 1.12 2004/03/07 00:20:52 plattner Exp $
*
* @author Aaron Plattner
**/
public class OthelloResult implements Serializable
{
// Constants ... | 34.322222 | 119 | 0.622532 |
1353c0190dabb8e4e6038519a84639cda7a19f4f | 1,970 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 35.818182 | 80 | 0.777665 |
3283c737e494335c52c9134315cc3cd485d06d96 | 2,066 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 35.62069 | 121 | 0.74879 |
6bb7beffa0a56e2edf0c0b9b39b5d82f4af3d028 | 10,144 | /**
*/
package CIM.IEC61970.Informative.InfAssets.impl;
import CIM.IEC61970.Informative.InfAssets.InfAssetsPackage;
import CIM.IEC61970.Informative.InfAssets.SurgeProtectorInfo;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationIm... | 31.212308 | 193 | 0.725158 |
28e77465735286cc76d2c283aac90e5c586051bd | 707 | package cat.yoink.clientapi.component;
import cat.yoink.clientapi.ClientAPI;
import org.reflections.Reflections;
import java.util.ArrayList;
public class ComponentManager
{
private final ArrayList<Component> components = new ArrayList<>();
public ComponentManager()
{
for (Class<?> aClass : new R... | 27.192308 | 162 | 0.673267 |
8c9023cc1e32bdb3a821b624e061bdd644ea6388 | 726 | package io.github.xiewinson.smoothrefresh.library.wrapper.header;
import android.support.annotation.FloatRange;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.ViewGroup;
import io.github.xiewinson.smoothrefresh.library.annotation.RefreshHeaderState;
import io.github.xiewinson... | 25.928571 | 96 | 0.790634 |
3bc5046b938b3bcf032bfd8e6aec446ba3ee8770 | 4,034 | package com.example.huseyiniyakala;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.opengl.Visibility;
import android.os.Bundle;
import android.os.CountDownTim... | 25.371069 | 135 | 0.607338 |
f9e94541a3f8a927bc5fe49e8f8e134d1c4838dd | 559 | package io.palyvos.scheduler.policy.cgroup;
import org.apache.commons.lang3.Validate;
class CGroupParameterContainer {
private final String key;
private final Object value;
public CGroupParameterContainer(String key, Object value) {
Validate.notBlank(key, "blank key");
Validate.notNull(value, "value")... | 18.633333 | 61 | 0.677996 |
f33ea82472108afb8ad1e29c09d6c65bd7ab833c | 732 | package com.amos.inventory.constant.skuDeal;
public enum SkuDealFreezeInventoryResultStatus
{
UNKNOWN((byte)-100,"无法识别"),
NOT_ENOUGH_STOCK((byte) -1, "库存不足"),
HAVEN_EXIT((byte)-2,"单据已存在"),
SUCCESS((byte) 1, "成功");
private Byte code;
private String desc;
SkuDealFreezeInventoryResultStatus(Byte code, String de... | 17.428571 | 70 | 0.703552 |
b2e720f8f76c2d218468bf26ea6ca62795cdf136 | 422 | package com.salesmanager.core.business.services.shipping;
import com.salesmanager.core.business.services.common.generic.SalesManagerEntityService;
import com.salesmanager.core.model.merchant.MerchantStore;
import com.salesmanager.core.model.shipping.ShippingOrigin;
public interface ShippingOriginService extends Sales... | 32.461538 | 96 | 0.853081 |
a897287c99a8b167f1f8c08c6b82505ace8a00ab | 1,879 | package com.samples.feeder;
import com.samples.common.Car;
import com.samples.common.Cellphone;
import org.openspaces.core.GigaSpace;
import org.openspaces.core.GigaSpaceConfigurer;
import org.openspaces.core.space.SpaceProxyConfigurer;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Ma... | 25.053333 | 79 | 0.621607 |
699365bf4dd560cf43244b2aed4ebe44ac42e07c | 136 | class MultipleClasses {
}
// Should ignore when there are multiple top-level types declared in
// same compilation unit
class Other {
} | 19.428571 | 68 | 0.764706 |
e345a73e88ff996ea84cf336fadedf98e870ec61 | 32,079 | /*
* Copyright (c) 2012, Gerrit Grunwald
* 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 condition... | 42.153745 | 247 | 0.622089 |
888f5a29c0d2242e8217856c7286595920010051 | 1,285 | package org.infinispan.server.configuration.security;
import static org.infinispan.server.configuration.security.GroupsPropertiesConfiguration.PATH;
import static org.infinispan.server.configuration.security.GroupsPropertiesConfiguration.RELATIVE_TO;
import org.infinispan.commons.configuration.Builder;
import org.inf... | 32.125 | 101 | 0.79144 |
b4543fd4eb08217189269decd98e16039bfbc74f | 2,209 | package org.im97mori.ble.characteristic.u2af5;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
import org.junit.Test;
public class FixedString16Test {
@Test
public void test_constructor_00001() {
String fixe... | 28.688312 | 87 | 0.691263 |
6f3b06a9a2a255ad2ae853523bdab5472f99453e | 777 | package org.egov.infra.microservice.models;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class TaxHeadMasterResponse {
@JsonProperty("ResponseInfo")
private ResponseInfo responseInfo;
@JsonProperty("TaxHeadMasters")
private List<Tax... | 23.545455 | 71 | 0.728443 |
9807ee1df4fe1c5d1ef83da18322395c38014056 | 1,731 | package com.wilutions.jsfs;
/*
* Serializer for com.wilutions.jsfs.BRequest_FileSystemService_uploadFilesMultipartFormdata
*
* THIS FILE HAS BEEN GENERATED BY class byps.gen.j.GenSerStructJson DO NOT MODIFY.
*/
import byps.*;
// DEBUG
// isEnum=false
// isFinal=true
// isInline=false
// #members=3... | 32.660377 | 235 | 0.756788 |
2206e60e4dfb070baf5d98c54b5668ff76d51292 | 2,149 | package actividad3;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
/* Crear una clase para gestionar Productos de una tienda de informatica, que se define
por nombre y precio. Tendra que contener las siguientes operaciones: rebajar el precio,
a... | 25.583333 | 92 | 0.651466 |
9955f8f93b57d2b50885ff342ef1ca2721cee9bc | 4,408 | package com.fc.system.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org... | 26.08284 | 106 | 0.69941 |
ee8605137a9c8b44b19a8294c7df27bc19883d08 | 1,213 | package com.wakaka.auth.controller;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotat... | 28.880952 | 95 | 0.690025 |
f571ef6afd873f23db4a00fc785ae1b257f27821 | 4,663 | /*
* Copyright 2021-2022 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.327044 | 117 | 0.741154 |
5e512fa83f5db20b3e7d69f6b9ec1dcad8fbcaf1 | 1,631 | package com.dh10.utils;
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
public class DBaccess {
private static DBaccess dbAccess = null;
private static SessionFactory factory;
private DBaccess() {
}
public static DBaccess getInstance() {
if (dbAccess == null) {
... | 28.614035 | 125 | 0.584304 |
0c4d55f4fb6613bfe96ad4546a43cd5954367e83 | 744 | package com.atlassian.clover.eclipse.core.ui.editors.cloud;
import com.atlassian.clover.api.registry.ClassInfo;
import com.atlassian.clover.reporters.html.HtmlRenderingSupportImpl;
public class EclipseEditorLinkingHtmlRenderingSupport extends HtmlRenderingSupportImpl {
private final String currentFile;
publi... | 35.428571 | 93 | 0.775538 |
9baa32f3c76a6cda69dd9b100a8851f3a720059a | 1,897 | // Copyright 2010 Google Inc. All Rights Reseved.
//
// 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 ... | 26.71831 | 78 | 0.71165 |
508b7e4a06ce73cd7cd315e0ed80d1a3f741fba7 | 1,136 | package org.apitooling.export.output;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.Map;
import freemarker.template.Template;
import freemarker.template.TemplateException;
public class DocBookExporterOuptput implements ExporterOuptput {... | 23.666667 | 81 | 0.668134 |
3b2cb4360071636a1fd80afc975545a1e5ccfc35 | 974 | /*******************************************************************************
*
* Copyright (C) 2013 Turkcell
*
* 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... | 37.461538 | 81 | 0.60883 |
0198d418dd29943788a68d26a1079604da1b6e60 | 4,578 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 46.714286 | 201 | 0.773919 |
8498435f0ef7a5917a9b692ce369e002dc304539 | 523 | public void solve(int testNumber, InputReader in, OutputWriter out) {
int n = in.nextInt();
String q = in.next();
StringBuilder reversed = new StringBuilder(StringUtils.reversed(q));
for (int i = 0; i < reversed.length(); i++) {
char c = reversed.charAt(i);
reversed.setCharAt(i, c == '<'... | 40.230769 | 72 | 0.621415 |
f8586806652de18cce4f51066309d701bf5b38a8 | 4,441 | /**
* Copyright © 2016
* Maksim Lozbin <maksmtua@gmail.com>
* Oleksii Ihnachuk <legioner.alexei@gmail.com>
*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for ... | 41.504673 | 119 | 0.69624 |
1663333e51a5e0a4a23e88c9d02a5dc8b197976f | 3,219 | package net.minecraft.world.pathfinder;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.pathfinding.PathPoint;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.MathHelper;
import ... | 38.783133 | 239 | 0.660764 |
1c5b25bcaddfa7d750cdeeaa17badd327985117a | 8,551 | package com.shangxiazuoyou.advancedtimepicker;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.widget.TextView;
import com.shangxiazuoyou.advancedtimepicker.bean.PickerViewData;
import com.shangxiazuoyou.advancedtimepick... | 30.758993 | 108 | 0.576658 |
aa46c82aaa0761d415eff3be3d9ef9c92d343b74 | 515 | package cool.sodo.log.starter.event;
import cool.sodo.common.core.domain.LogBusiness;
import org.springframework.context.ApplicationEvent;
/**
* @author TimeChaser
* @date 2021/9/15 21:35
*/
public class BusinessLogEvent extends ApplicationEvent {
private final LogBusiness logBusiness;
public BusinessLog... | 23.409091 | 69 | 0.726214 |
a043ab5a50d80b22a93ab67cdcc79a2d1dc549e2 | 2,514 | /**
Copyright (c) 2018 HF Robotics (http://www.hfrobots.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 rights
to use, copy, modify, ... | 39.904762 | 92 | 0.722753 |
1b2c8103e602e10ca2df0b56001cf7e862e4dbb5 | 1,338 | package hr.fer.oop.lab3;
import hr.fer.oop.lab3.welcomepack.Constants;
import hr.fer.oop.lab3.welcomepack.PlayingPosition;
/**
* TODO: Document this class
*/
public class FootballPlayer extends Person {
private int playingSkill = Constants.DEFAULT_PLAYING_SKILL;
private PlayingPosition playingPosition;
... | 28.468085 | 120 | 0.699552 |
e5d0cf82e6d77bf5c682eef812f7327da591bf26 | 2,591 | package bio.singa.chemistry.annotations.taxonomy;
import bio.singa.features.identifiers.NCBITaxonomyIdentifier;
import bio.singa.features.identifiers.model.Identifiable;
import java.util.ArrayList;
import java.util.List;
/**
* The organism class is used to store information about organisms, such as {@link NCBITaxon... | 22.336207 | 118 | 0.617522 |
f85c8dafc2f6bc6e2e5289d43fc0e6a38378562e | 6,313 | /*
* Copyright 2020 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 33.94086 | 118 | 0.711231 |
8da1dbc396b5a81237f869d03beb7d910fbf16f5 | 149 | package io.github.swingboot.processor;
import org.junit.jupiter.api.Test;
class BootProcessorTests {
@Test
void main() throws Exception {
}
}
| 12.416667 | 38 | 0.744966 |
ebfc76886ecb761c58581ff8d81bbd0e23cb209a | 3,537 | /**
* Copyright 2017 Goldman Sachs.
* 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... | 32.154545 | 127 | 0.640373 |
8fc9b31a289b3b7f95a3b4214ac806324c341997 | 9,545 | package dai.hris.dao.login;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import dai.hris.action.filemanager.util.EmployeeUtil;
import dai.hris.d... | 31.19281 | 216 | 0.639392 |
587dab7a7e08e1800cb5b753b1e67c38651b5023 | 2,885 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pl.panryba.mc.guilds.entities;
import org.bukkit.Location;
import org.junit.*;
import pl.panryba.mc.guilds.GuildRole;
import static org.junit.Assert.*;
/**
*
* @author PanRyba.pl
*/
public class GuildTest {... | 24.041667 | 77 | 0.567418 |
4d2c706f219b6ee55790e62b12614c2b76861f4e | 1,914 | /*
* 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.875 | 97 | 0.778474 |
39fb8994254e60a516d2a893f4d6a5e91ef958e5 | 15,697 | package org.contentmine.norma.biblio;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.contentmine.cpro... | 52.323333 | 228 | 0.698159 |
7cc68674c8061d93af9cc37ed498f431cc224e1a | 8,244 | package org.nibiru.ui.core.impl.builder;
import org.nibiru.ui.core.api.ListWidget;
import org.nibiru.ui.core.api.ListWidget.DefaultRowType;
import org.nibiru.ui.core.api.ListWidget.DefaultRowTypeHandler;
import org.nibiru.ui.core.api.Widget;
import javax.inject.Inject;
import javax.inject.Provider;
import static com... | 33.512195 | 86 | 0.662542 |
a49d7430c61500594ac07d5215ae3bdcf6399f9f | 11,644 | /*
* Copyright (c) 2016 Evolveum
*
* 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... | 36.501567 | 165 | 0.748969 |
7a44a00a9eeb107b73ca03a770d05dcac33f6e34 | 3,487 | package local.tin.tests.tomee.crud.dao.impl;
import local.tin.tests.tomee.crud.dao.impl.UnitDAO;
import local.tin.tests.tomee.crud.dao.impl.ComponentDAO;
import local.tin.tests.tomee.crud.model.domain.exceptions.DAOException;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
i... | 41.511905 | 129 | 0.729854 |
b52029ce78bd90599414a890bd60cd3a6e500709 | 2,384 | package com.webber.mvpdemo;
import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import com.web... | 27.72093 | 80 | 0.714346 |
2520482a3b077741fb23c0793a2f2ca8b9ff1005 | 143 | package sdl2;
public class SDLException extends RuntimeException {
public SDLException(String message) {
super(message);
}
}
| 15.888889 | 52 | 0.699301 |
c6c6edb650082e7add98ef78248ff47bdc3a45f8 | 400 | package io.zrz.zulu.values;
import io.zrz.zulu.types.ZType;
import io.zrz.zulu.types.ZTypeUse;
/**
* supplier of late bound {@link ZValue} instances, with a {@link ZType} known in advance.
*/
public interface ZValueProvider {
/**
* the type that will be resolved.
*/
ZTypeUse type();
/**
* resolve... | 14.285714 | 90 | 0.63 |
f77bc711ccc870cb9c465fd520de2e3c6bd026d3 | 5,122 | package dev.necauqua.mods.subpocket.command;
import com.google.gson.JsonObject;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import dev.necauqua.mods.subpo... | 39.705426 | 121 | 0.653651 |
b61ddc6a564286ec1bad027beb44425f8bb377f7 | 3,258 | /*
* (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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... | 38.329412 | 115 | 0.738797 |
f33ce733752bae516ce6e49b1e398db6006e7df5 | 4,030 | /*
* Copyright 2009 Mike Cumings
*
* 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... | 30.530303 | 100 | 0.745906 |
6ecb6e611f1a8f1db334a2388d30a7aeb72645e8 | 2,506 | // Copyright (C) 2017 The Android Open Source 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 License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 40.419355 | 99 | 0.728252 |
b68718cd44b5668b4a8556304fc581f25113e8e1 | 1,832 | package com.hackersnews.servlet;
import java.io.IOException;
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 com.hackersnews.controller.NoticeCo... | 33.309091 | 87 | 0.764192 |
56198f7e01b5cff5917a82146fd7befb998be706 | 769 | package Model;
import java.util.List;
public class CommonDeclarationFortran extends DeclarationFortran {
private List<CBlockFortran> cBlocks;
public void setCBlocks(List<CBlockFortran> cBlocks) {
this.cBlocks = cBlocks;
}
@Override
public String toString() {
StringBuilder stringR... | 25.633333 | 91 | 0.647594 |
8a798250ffd7d3b642a5b962c34de1bffe498649 | 247 | package com.refinedmods.refinedstorage2.platform.common.item;
import net.minecraft.world.item.Item;
public class QuartzEnrichedIronItem extends Item {
public QuartzEnrichedIronItem(Properties properties) {
super(properties);
}
}
| 24.7 | 61 | 0.777328 |
4fc67c06eadc471d9e990eb7997b530abde2fae2 | 5,996 | package lekt05_grafik;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.RectF;
import android.media.MediaPlayer;
import android.os.Bundle... | 34.262857 | 133 | 0.630254 |
666b64cc448d5f2d3c4f22eb00904a1abe85bc08 | 570 | package com.goldze.mvvmhabit.viewadapter.viewpager;
import android.databinding.BindingAdapter;
import android.support.v4.view.*;
import android.text.TextUtils;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import java.util.List;
/**
* Created b... | 23.75 | 90 | 0.749123 |
bd2042725a5ebce54ea3989230825c6d7da1c9c7 | 434 | package sensorval;
import java.util.List;
import java.util.Objects;
/**
* @author {@literal Jayaram Naveenkumar (jayaram.naveenkumar@in.bosch.com)}
*/
public final class Validator {
private Validator() {
}
public static <T> boolean isListOrContentsEmpty(List<T> list) {
if (list != null && !lis... | 20.666667 | 76 | 0.629032 |
72ad5e4444f1b5bbc288aefa3a3479d8ef900ec7 | 521 | package org.broadinstitute.hellbender.utils.commandline;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
* Combines a list of files into a single output.
*/
public abstract class Gatherer {
/**
* Gathers a list of files into a single output.
* @param inputs Files to combine... | 26.05 | 83 | 0.706334 |
759d8045d723c1ceeb4ddcb50cbdfe48e769edc4 | 690 | package jianqiang.com.plugin1;
import android.content.Intent;
import android.util.Log;
import com.example.jianqiang.mypluginlibrary.BasePluginService;
public class TestService1 extends BasePluginService {
private static final String TAG = "TestService1";
@Override
public void onCreate() {
s... | 23 | 70 | 0.657971 |
a78eef4963b5ae78504f96638744342f5acaade4 | 828 | package com.xurxodev.moviesandroidkata;
import android.app.Application;
import com.xurxodev.moviesandroidkata.di.component.ApplicationComponent;
import com.xurxodev.moviesandroidkata.di.component.DaggerApplicationComponent;
import com.xurxodev.moviesandroidkata.di.module.AppModule;
import com.xurxodev.moviesandroidka... | 28.551724 | 78 | 0.727053 |
fb9fe9a2792a4a2db859bdb1a196453e0c8f8a1b | 1,719 | package com.ivascucristian.alexa.skill.ilab.persistence.model;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;
import java.util.List;
@DynamoDBTable(tabl... | 23.547945 | 72 | 0.737638 |
bec0557248e93ecf9e54d03754e5391b7ebda837 | 8,137 | package com.dfire.platform.alchemy.web.rest;
import com.dfire.platform.alchemy.client.ClientManager;
import com.dfire.platform.alchemy.client.FlinkClient;
import com.dfire.platform.alchemy.security.SecurityUtils;
import com.dfire.platform.alchemy.service.ClusterQueryService;
import com.dfire.platform.alchemy.service.C... | 46.232955 | 195 | 0.711564 |
b05b73ac42ea83235da7e0c9c447fd76d3b38fa7 | 4,225 | package gui;
import config.Config;
import global.GlobalVariable;
import java.awt.Toolkit;
public class JFrameMain extends javax.swing.JFrame {
public JFrameMain(String args[]) {
initComponents();
start(args);
}
private void start(String[] args) {
try {
GlobalVariable... | 29.545455 | 121 | 0.610414 |
94e2edcba7df2cd446bf901b1d31ecef75257be2 | 6,204 | package dm.impl.ml.models;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.*;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class GDT_model {
private static... | 32.825397 | 161 | 0.544326 |
a6ea21f4c6ddbd8c91d1abd45cdc1bb993afbb65 | 1,976 | /*
* Copyright 2016 Jacob Meacham (jemonjam.com).
*/
package com.jemonjam.versioneer.impl;
import com.jemonjam.versioneer.api.VersionLocator;
import java.nio.file.Path;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Returns a version parsed from the specified path ... | 31.365079 | 98 | 0.635628 |
e8db95ef6d691947a3bcb428cb521e70aeabab94 | 175 | package actors;
import akka.actor.UntypedActor;
public class GameActor extends UntypedActor {
@Override
public void onReceive(Object message) throws Throwable {
}
}
| 14.583333 | 58 | 0.765714 |
0915321792db6417e739037e924b4c4c7d134adc | 8,285 | package ut.org.ndrone.event;
import com.atlassian.bitbucket.event.pull.PullRequestEvent;
import com.atlassian.bitbucket.event.repository.RepositoryRefsChangedEvent;
import com.atlassian.bitbucket.pull.PullRequest;
import com.atlassian.bitbucket.pull.PullRequestAction;
import com.atlassian.bitbucket.pull.PullRequestRef... | 42.055838 | 98 | 0.748461 |
5e67f5551a445b7fc3f8fee45e0beaefeb3e4999 | 1,489 | package nge.lk.stuff.theorem;
import nge.lk.stuff.theorem.firstorder.resolution.KnowledgeBase;
public final class TheoremProver {
public static void main(String[] args) {
KnowledgeBase kb = new KnowledgeBase();
// Equality axioms
kb.addClause("Eq([x], [x])");
kb.addClause("!Eq([x... | 34.627907 | 101 | 0.490934 |
31404598b5f93ecd3d9008b20f04768d0f08f598 | 21,001 | package com.humanharvest.organz.controller.client;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Comparator;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.collections.FXCollections;
import javafx.collections.transformation.SortedList;
import j... | 42.426263 | 120 | 0.621304 |
a52cc3c95459b77d8a0ac9befa629dd584e9c185 | 2,552 | package havis.custom.harting.etb.input.rest;
import java.io.IOException;
import java.io.StringWriter;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesA... | 30.023529 | 108 | 0.765282 |
2a7d2774b1f27e4a2813a2bb71d0d119ae15882b | 5,880 | package webapi.controller;
import model.enums.EnumApiResultCode;
import model.param.ParamAccount;
import model.result.ResultAccount;
import model.result.ResultAccountLogin;
import model.result.ResultCommon;
import model.user.TUser;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.s... | 40 | 130 | 0.628912 |
4f3c6e02c98671a995cfbb86e970a0d3a83a4357 | 519 | /**
* Copyright (c) Raja Dilip Chowdary Kolli. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.poc.restfulpoc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplicat... | 28.833333 | 71 | 0.741811 |
cb0eda0d7e2b193942cd5a39c5c97bf99d872e59 | 535 | package app.cars;
import lombok.Data;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
public class Message implements Serializable
{
private final String text;
private final String date;
public Message(String text)
{
t... | 19.814815 | 62 | 0.682243 |
d8ae1f69d7bc1676fba37cc6c8f12439e8b61b95 | 1,149 | /*
* 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 aoyue;
/**
*
* @author Aoyue
*/
import java.util.function.Consumer;
public class LambdaScopeTest {
pub... | 26.113636 | 80 | 0.517842 |
6cb1b73117d4af80a633da3f992bc0b01377e4fb | 194 | /*
* Copyright 2014, Andrew Lindesay
* Distributed under the terms of the MIT License.
*/
package org.haiku.haikudepotserver.api1.model.repository;
public class CreateRepositoryResult {
}
| 17.636364 | 57 | 0.768041 |
b5ea0aa18725ba0f70f24bd8fd1dc62e3b0a4830 | 1,886 | /*
* Copyright (C) 2014-2016 LinkedIn Corp. 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 appl... | 29.015385 | 112 | 0.758218 |
c2ca896ea6625e82e442dd8f46f9de8885d2262c | 515 | package com.wantest.es.sql2dsl.es4sql.spatial;
/**
* Created by Eliran on 15/8/2015.
*/
public class RangeDistanceFilterParams extends DistanceFilterParams {
private String distanceTo;
public RangeDistanceFilterParams(String distanceFrom,String distanceTo, Point from) {
super(distanceFrom, from);
... | 23.409091 | 89 | 0.693204 |
ed1df683e7199853ebafa5aeafd7498a25fa0c43 | 318 | package pythonError.errorInterpreter.inputPhaser;
/**
* Created by Matthew Doyle on 31/05/2016.
*/
enum tokens {
newLine,
keyWord,
stringLiteral,
number,
comment,
indent,
dedent
}
public class Token {
tokens type;
public Token(tokens type) {
this.type = type;
}
}
| 13.25 | 49 | 0.619497 |
0a497af82fbe067d5c9de50031ae260d22e36a3b | 363 | package me.rori.examples.stringresourceloader.services;
import me.rori.examples.stringresourceloader.annotation.StringResourceLoader;
import org.springframework.stereotype.Service;
@Service
public class ExampleService {
@StringResourceLoader("classpath:somesql.sql")
public String sqlQuery;
public String getS... | 22.6875 | 77 | 0.804408 |
4d3708170433c5bf65820212644655ca562938f8 | 4,025 | package org.incredible.pojos.ob.valuator;
import org.incredible.pojos.ob.exeptions.InvalidDateFormatException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExpiryDateValuatorTest {
private String issuedDate;
@Before
public void ... | 35.9375 | 102 | 0.691429 |
aa9451d24313cebe3c28d83ccd83c4e6d0b129fc | 1,538 | package cl.uchile.dcc.scrabble.gui.memory;
import cl.uchile.dcc.scrabble.gui.types.Int;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
class FlyweightIntTest {
private FlyweightInt FInt;
@BeforeEach
... | 27.464286 | 134 | 0.611183 |
81175caf124b92404410db20b7ca33225bd0042f | 8,492 | /*
* 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 CONTROL;
import static CONTROL.Principal.formproduto;
import static CONTROL.Principal.inicio;
import DAO.ProdutoDAO;
... | 37.742222 | 195 | 0.566415 |
3d4f834a31b91870deeb60a134b0e2d4654600ea | 1,400 | /**
* This class illustrates exercises from the slide deck for the course
*
* Arrays
* Parallel arrays
* Copy Arrays (Shallow & Deep)
*
* 360-420-DW Intro to Java
* @author PMCampbell
* @version today
**/
import java.util.Scanner;
public class ArrayCopy {
public static void main(String[] args) {
int... | 29.787234 | 71 | 0.617857 |
3560eb70d12c030036cd71fcd1a148f974977306 | 1,053 | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file acco... | 29.25 | 75 | 0.716999 |
00d820ef16d2d6c1808782fd648d7829a8182347 | 1,262 | package com.potato369.novel.basic.service.impl;
import com.potato369.novel.basic.dataobject.AppVersion;
import com.potato369.novel.basic.repository.AppVersionRepository;
import com.potato369.novel.basic.service.AppVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | 30.047619 | 111 | 0.737718 |
21037345d2d2f42083ff310f010269701a84697e | 2,416 | package com.swrobotics.bert.constants;
import com.swrobotics.bert.shuffle.ShuffleBoard;
import com.swrobotics.bert.shuffle.TunableBoolean;
import com.swrobotics.bert.shuffle.TuneGroup;
public final class SubsystemConstants {
private static final TuneGroup SWITCHES = new TuneGroup("Switches", ShuffleBoard.subsyste... | 75.5 | 119 | 0.719785 |
b02b1ad3a3a68afa0d78c99d84926cf49c6a6aa6 | 913 | package gz.scau.zhonghaowei.xiaoshoukuaisuan.Model;
import com.chad.library.adapter.base.entity.SectionEntity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gz.scau.zhonghaowei.xiaoshoukuaisuan.controller.Util.TimeUtil;
/**
* @author zhong
* 包装类,用于分组列表
... | 21.738095 | 85 | 0.700986 |
544f474afd5a283d599dce322fa675f0062a71f9 | 1,176 | package com.github.dnvriend;
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
// see: https://www.baeldung.com/sp... | 25.565217 | 63 | 0.676871 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.