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 |
|---|---|---|---|---|---|
47ca16e397c59253d41db9f1050165790f4af59d | 2,966 | package org.ovirt.engine.core.common.validation;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;
import org.ovirt.engine.core.common.erro... | 37.544304 | 114 | 0.772084 |
22f9984e1f4215c1a7d699b625e405a993aae83b | 5,136 | package io.crnk.reactive.internal.adapter;
import io.crnk.core.engine.dispatcher.RepositoryRequestSpec;
import io.crnk.core.engine.http.HttpMethod;
import io.crnk.core.engine.information.repository.RelationshipRepositoryInformation;
import io.crnk.core.engine.information.resource.ResourceField;
import io.crnk.core.eng... | 42.098361 | 158 | 0.804128 |
b9043f1a4fde3e50f0749aa3385c878a08396dbb | 1,654 | package dynamicProgramming.unboundedKnapsack;
public class CoinChangeProblem {
//choice of including the coin from coin arrays
//so knapsack pattern
//in knapsack we are given 2 properties for of the item ie, wt array and value array, here we are given only one
//array, so ignore the value array of kn... | 30.072727 | 118 | 0.521161 |
8ad07ea410528cce694336ac73104215e8cb9f7c | 1,765 | package com.shenjiahuan.eBook.util;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.shenjiahuan.eBook.entity.CartItem;
import com.shenjiahuan.eBook.entity.Order;
import com.shenjiahuan.eBook.entity.OrderItem;
import... | 39.222222 | 98 | 0.687819 |
17218ec892a01efa62ff92af52d28ee5b3387d72 | 3,205 | package com.howietian.chenyan;
import android.content.ClipboardManager;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main3Activity extends AppCompa... | 36.011236 | 270 | 0.563807 |
5467e198b2d8607513c8facdd9bb34a5c4814ee9 | 398 | package org.develnext.jphp.core.tokenizer.token.stmt;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.TokenMeta;
public class EndifStmtToken extends EndStmtToken {
public EndifStmtToken(TokenMeta meta, TokenType type) {
super(meta, type);
}
public End... | 24.875 | 59 | 0.738693 |
72818d34bb1871fc2eb550cc36b91ffe0b230bef | 427 | package com.siinus.simpleGrafixShader;
import com.siinus.simpleGrafix.gfx.Image;
public class ShaderImage extends Image implements IShaderImage {
private int lightBlock = 0;
public ShaderImage(String path) {
super(path);
}
public void setLightBlock(int lightBlock) {
this.... | 21.35 | 65 | 0.655738 |
1c7735e0158e3d08c9e53183d102f67c482f7b46 | 787 | package com.learn.aop.dynamicproxy.muiltcglibproxy;
import java.util.List;
/**
* @Author fengjie
* @Description 代理链
* @Date Created in 2018/10/17
* @Time 15:14
*/
public class Chain {
private List<ProxyInterface> list;
private int index = -1;
private Object beProxied;
public Chain(List<ProxyInte... | 23.848485 | 74 | 0.598475 |
18ed81b1660137ceb0c7e4b422d320e97bd53b19 | 767 | package org.dd4t.test.models;
import org.dd4t.databind.annotations.ViewModel;
import org.dd4t.databind.annotations.ViewModelProperty;
import org.dd4t.databind.viewmodel.base.TridionViewModelBase;
@ViewModel (rootElementNames = {"paragraph"})
public class EmbeddedParagraph extends TridionViewModelBase {
@ViewMode... | 22.558824 | 61 | 0.718383 |
7bf5680a82d8a374a43bc41be0d024b9ac38ed3a | 3,621 | package com.jihan.mini_core.app;
import android.app.Activity;
import android.os.Handler;
import com.jihan.mini_core.delegates.web.event.Event;
import com.jihan.mini_core.delegates.web.event.EventManager;
import com.joanzapata.iconify.IconFontDescriptor;
import com.joanzapata.iconify.Iconify;
import java.util.ArrayLi... | 29.680328 | 91 | 0.673019 |
4e0d9d4a9f68782c104cd0e3578a16121ffc04b2 | 2,039 | package Data.world;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import util.Constants;
import authoring.gameObjects.ItemData;
import authoring.gameObjects.ShopkeeperData;
import authoring.gameObjects.WorldData;
import engine.gridobject.GridO... | 25.810127 | 80 | 0.742521 |
0ff27f56f3878cae2bac490f9dc9a0a62e7a4f4e | 818 | package org.pdxfinder.services;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.pdxfinder.BaseTest;
import org.pdxfinder.rdbms.repositories.MappingEntityRepository;
import static org.mockito.Mockito.*;
public class MappingServiceTest extends BaseTest... | 21.526316 | 79 | 0.737164 |
cb4daf74decccfdf52e13f15e583929b794cfe33 | 8,217 | package lmr.randomizer.randomization.data;
public enum CustomBlockEnum {
DefaultShopBlock,
CustomXelpudIntro,
HalloweenNoCandyConversationBlock,
HalloweenNoCandyReferenceBlock_DracuetWaitForNightfall,
HalloweenNoCandyReferenceBlock_DracuetBackInTime,
HalloweenNoCandyReferenceBlock_DracuetHugeCa... | 43.941176 | 59 | 0.865401 |
23b95318d46ee6fd0287ae444e5ebc9d6c26f9a9 | 527 | package leetcode.Medium;
import org.junit.Test;
import static org.junit.Assert.*;
public class IsSubsequenceSp1Test {
@Test
public void isSubsequence() throws Exception {
assertTrue(new IsSubsequence().isSubsequence("ace", "abcde"));
assertFalse(new IsSubsequence().isSubsequence("axe", "abcd... | 31 | 120 | 0.717268 |
6abbd24b6757814cf2b634dd69a65b9a57cef8be | 1,800 | package me.joesvart.commandnode.bukkit;
import me.joesvart.commandnode.bukkit.annotation.Command;
import me.joesvart.commandnode.bukkit.data.impl.BaseCommandData;
import lombok.Getter;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.*;
import java.util.stream.Collectors;
pub... | 31.034483 | 96 | 0.671111 |
d0311fa0424380945d40f87f35a5e1d4f674f9b5 | 2,011 | package at.newmedialab.lmf.util.geonames.builder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeNotNull;
import org.apache.http.impl.client.DefaultHttpClient;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import at.newmedialab.lmf.util.geonames.builder.Ge... | 29.144928 | 93 | 0.668821 |
9ae04ad18c5454ccd699eb4406b5aabb29d5b300 | 184 | package com.pochub.ms.dto.policy.groups;
import java.util.List;
import lombok.Data;
@Data
public class UserDepartments {
public boolean exclude;
public List<Object> departments;
} | 16.727273 | 40 | 0.782609 |
f63e4351c8cf2e23d08bb06066e9fee178bcf9be | 4,069 | /*
* Copyright (c) 2018 - 2020, Thales DIS CPL Canada, 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
*
* Un... | 58.971014 | 152 | 0.71074 |
d699e464aed3388bffba66d5cd3519351dff5154 | 1,087 | package practice.search;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sharanya.p on 10/29/2018.
*/
public class SNT {
SN root;
public static void main(String[] args) {
}
}
class SN {
SN children[] = new SN[256];
List<Integer> indexes;
public SN() {
for (... | 20.903846 | 64 | 0.522539 |
416b3cd45a80d6526e4f05417686e1ed265a23f5 | 12,800 | package top.niunaijun.blackbox.fake.service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
i... | 39.751553 | 153 | 0.647578 |
a191e15ed5ed910e6a9b7e874ffc412a23bcc2c8 | 4,353 | package de.tudarmstadt.awesome.erclaerung.precomputation;
/**
* Represents a step in a transformation
*
* @author Manuel
*
*/
public class LevenshteinStep implements Comparable<LevenshteinStep> {
private int index;
// private int indexOfString2;
private Operation op;
private char letter;
private char letter... | 24.183333 | 116 | 0.654261 |
e9c17f8e7946e7ba23cd73f144d7a235aadbf4f4 | 18,894 | /*
* Copyright 2014 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | 38.402439 | 161 | 0.694983 |
17733331db4bf4d4615cf7da55b1b991316c9b1d | 1,197 | package pro.sisit.unit9.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import pro.sisit.unit9.data.BuyingBookRepository;
import pro.sisit.unit9.entity.Book;
import pro.sisit.unit9.entity.Buyer;
import pro.sisit.unit9.entity.BuyingBook;
import javax.transaction.Transacti... | 28.5 | 66 | 0.715957 |
04f0a8771c4c3a5a99c4b7da15120e9c032c0b1c | 849 | package com.ilusons.ref.threading;
import com.ilusons.harmony.ref.threading.UiRelatedTask;
import static org.junit.Assert.assertEquals;
public class TestUiRelatedTask extends UiRelatedTask<Integer> {
private static final Integer RESULT = 42;
private boolean mDidRun;
private Thread mWorkThread;
priva... | 21.769231 | 63 | 0.671378 |
5f38b81d12749007dce188587968545caf2efe73 | 4,407 | /*******************************************************************************
* Open Behavioral Health Information Technology Architecture (OBHITA.org)
* <p>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Red... | 44.515152 | 104 | 0.726798 |
50c21870d72f4fea848f5ea5e17edcd117f3180a | 2,434 | package com.ykbjson.app.simplepermission;
import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android... | 35.275362 | 99 | 0.686935 |
caa15661965d91692b8f6d591ab729543929a7e7 | 9,127 | package cn.mulanbay.pms.web.controller;
import cn.mulanbay.common.util.BeanCopy;
import cn.mulanbay.common.util.DateUtil;
import cn.mulanbay.persistent.query.PageRequest;
import cn.mulanbay.persistent.query.PageResult;
import cn.mulanbay.persistent.query.Sort;
import cn.mulanbay.pms.persistent.domain.Account;
import c... | 37.253061 | 112 | 0.648296 |
b99a5fd5d94ef24d1d6e522b368c6107b3775728 | 17,104 | /*
* Copyright (c) 2017 Carbon Security Ltd. <opensource@carbonsecurity.co.uk>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS... | 30.597496 | 129 | 0.661483 |
8f969222e27683032e1b2914d9c1080f763bab36 | 5,672 | /*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by en... | 29.541667 | 80 | 0.686883 |
b029bd8ae475f0cf4443cdaaf1d6c4fd7beb905b | 994 | package com.learn.mytodo.collection;
import java.util.UUID;
public class CollectionItem {
public String id;
public String title;
public int nums;
public String createAt;
public CollectionItem(String title, int nums) {
this.id = UUID.randomUUID().toString();
title = title;
... | 20.708333 | 79 | 0.589537 |
97c3c3e4b379aad65ba637ed6cf86ca3c4c32e93 | 1,453 | package com.zgrannan.crewandroid;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class ViewDiagram ... | 29.06 | 74 | 0.726772 |
877235b4643cf06b477197651c63f0041435da6d | 409 | package edu.wisc.library.ocfl.api.exception;
public class OverwriteException extends RuntimeException {
public OverwriteException() {
}
public OverwriteException(String message) {
super(message);
}
public OverwriteException(String message, Throwable cause) {
super(message, cause)... | 19.47619 | 64 | 0.679707 |
09b8c7ad280edde004438d24b5398aa0457862a4 | 4,911 | /**
* 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... | 28.888235 | 194 | 0.651191 |
bb59e32e63f50f184dd8a6de39e700f22291b9ea | 7,477 | package com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.books.entity.Book;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.cart.entity.BookSelection;
import com.sebastian_daschner.jaxrs_hypermedia... | 46.440994 | 141 | 0.637823 |
4c64bf7ac793cfbd6fdc95032dc0c210f8b24eeb | 3,101 | /*
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 not use this fil... | 35.643678 | 174 | 0.692357 |
f87eafd981e3a61cf2c53f925f3978172c6974ad | 458 | package cl.uchile.dcc.scrabble.model.hidden_layer.hidden_types.interfaces;
import cl.uchile.dcc.scrabble.model.types.TypeFloat;
/**
* An interface to represent a HiddenFloat or a HiddenNull
*
* @author Francisco Muñoz Guajardo
* @create 2021/07/23 19:35
*/
public interface HFloat extends HNumber {
/**
... | 21.809524 | 74 | 0.694323 |
e7d41ad5c2bf0da76c65abb386eee4a447bc4858 | 4,041 | package frc.util.math;
public final class Convert {
// #region encoders
public static enum Encoder {
VersaPlanetaryIntegrated(1024.0),
TalonFXIntegrated(2048.0),
CTREMagEncoder(4096.0);
public final double ticksPerRevolution;
Encoder(double ticksPerRevolution) {
this.ticksPerRevolutio... | 34.245763 | 100 | 0.744865 |
671c1f9e160197dcb3b6b3aa6344556a555ab03f | 12,861 | /*******************************************************************************
* PathVisio, a tool for data visualization and analysis using biological pathways
* Copyright 2006-2021 BiGCaT Bioinformatics, WikiPathways
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this fi... | 27.837662 | 105 | 0.636109 |
f1820b723ab048530c1f8708baa6e914cbb61612 | 1,220 | package com.elegion.tracktor.util;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import com.elegion.tracktor.App;
import com.elegion.tracktor.data.IRepository;
import com.elegion.tracktor.data.RealmRepository;
import com.elegion.tr... | 24.897959 | 82 | 0.734426 |
b11a96312d1b0aa2b7b90f8d23825100874cc919 | 232 | import javax.swing.JFrame;
public class Main {
public static void main(String[] args) {
// Afficher la fenêtre d'accueil
User user = new User();
user.setVisible(true); //On la rend visible
}
}
| 14.5 | 51 | 0.603448 |
691083b39a810ce5d6796ea92c87742344367d2a | 1,412 | /*
*
* Copyright (c) 2006-2020, Speedment, 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 requi... | 32.090909 | 81 | 0.713881 |
87775af5c4c31903a0885e0017d90741c0a97648 | 330 | public class M_Pedir_Fich extends Mensaje{
private String fich;
private String user;
public M_Pedir_Fich(String fich, String user){
super(4);
this.fich=fich;
this.user = user;
}
public String getFich() {
return fich;
}
public String getUser() {
return user;
... | 15.714286 | 50 | 0.59697 |
71d930c6164ac52978ed66c3cba7141af8140fb1 | 3,309 | package com.blamejared.crafttweaker.impl.util.text;
import com.blamejared.crafttweaker.api.annotations.*;
import com.blamejared.crafttweaker_annotations.annotations.*;
import net.minecraft.util.text.*;
import org.openzen.zencode.java.*;
@ZenRegister
@ZenCodeType.Name("crafttweaker.api.util.text.MCStyle")
@Document("v... | 26.902439 | 143 | 0.643095 |
fbd3ddf99c45bf4bfaed0efe033bd3cb9c90ac1d | 7,952 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 30.467433 | 111 | 0.61494 |
63c1fa8703652c1875316d394d1abaad401ec825 | 1,111 | /*
* Copyright (c) 2021. Enrico Daga and Luca Panziera
*
* MLicensed 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 ... | 32.676471 | 108 | 0.721872 |
23ce9ad8c38ef5fdd063ec1d2dff540c6b279e0a | 395 | package com.packt.spring.acl;
import java.util.List;
public interface BookService {
public enum Permission {
READ, WRITE
}
public void createBook(Book book);
public Book findBookById(long id);
public List<Book> findAllBooks();
public void updateBook(Book book);
public void gr... | 17.954545 | 61 | 0.698734 |
e3663b1ceac09e811e7a9b61348541e85058eadb | 1,302 | package rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.outbound;
import rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.BedrockOutboundPacketType;
import rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.data.ResourcePackIdVersions;
import rocks.cleanstone.net.packet.Packet;
import rocks.cleanstone... | 34.263158 | 150 | 0.789555 |
2e672b18aa9668611d083109074d8dd8211b2262 | 2,342 | 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 javax.validation.Valid;
/**
* CROpenItemProcedureControlOutputModel
*/
public class CROpe... | 36.030769 | 215 | 0.821947 |
3fc13b861bc727d5d8f6812c096e6b1688dd8787 | 364 | package br.com.zupacademy.transacao;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;
@Component
public class TransacaoService {
@KafkaListener(topics = "transacoes")
public void ouvir(Transacao eventoDeTransacao) {
System.out.println("TRANS... | 24.266667 | 68 | 0.752747 |
cbda95d80645085fb4b67df8c4a2961b91981ac1 | 281 | package org.apache.spark.metrics;
/**
* This is an interface so we can have multiple implementation of metrics that "finish". Currently
* we just use read metrics but eventually will support write metrics also.
*/
public interface MetricsUpdate {
Long finish(String name);
}
| 28.1 | 98 | 0.761566 |
cfeb22c9b987b7e46251e70b1843bf7ea32b1735 | 5,833 | package com.joymain.jecs.fi.model;
// Generated 2015-10-12 9:35:15 by Hibernate Tools 3.1.0.beta4
import java.math.BigDecimal;
import java.util.Date;
/**
* @struts.form include-all="true" extends="BaseForm"
* @hibernate.class
* table="JFI_INVOICE_DEPOSIT"
*
*/
public class JfiInvoiceDeposit extend... | 31.701087 | 196 | 0.566089 |
be199adfef4effeb8da5d9940c10e2cb6a2fb6cc | 13,422 | /*
* 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 dbtest;
import javax.swing.JOptionPane;
import java.sql.*;
/**
*
* @author seung
*/
public class CustomerModify extends ja... | 50.269663 | 170 | 0.603636 |
2cfa98a28aaa93c54f8fe85d3d11322d2e6b486a | 7,386 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.integration;
import org.elasticsearch.acti... | 53.521739 | 137 | 0.668427 |
d8d38c49e9f3326afdd098210997c59cbf05748c | 7,805 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 38.073171 | 85 | 0.716976 |
90d59b90b3993e7cd627931294e307d115e0c7e7 | 22,824 | /*
* Copyright (c) 2014, 2018, 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 ... | 60.541114 | 159 | 0.494742 |
fe35c090ef13ba7b35cbe03400e004406d36da06 | 2,235 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
... | 42.980769 | 113 | 0.714094 |
046fce08dcb3df28119cd91d10d2bc9a483f4447 | 635 | package com.tacitknowledge.slowlight.proxyserver.config;
/**
* Interface definition for any objects capable to build a slow-light configuration.
*
* @author Alexandr Donciu (adonciu@tacitknowledge.com)
*/
public interface ConfigBuilder
{
/**
* Creates and returns the slow-light configuration based on the ... | 33.421053 | 91 | 0.751181 |
5d9972e4ae89b5212355f10f4d4db156cee949fe | 5,973 | package com.kunaalkumar.ignis.activities.search;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
import andr... | 35.766467 | 99 | 0.67554 |
1b1d556ffca2313ddbfecc30ad8835662d47a070 | 873 | package com.github.houbb.markdown.toc.core;
import java.util.List;
/**
* 纯文本的目录生成
*
* @author bbhou
* @since 1.1.0
*/
public class MarkdownTocTextContext {
/**
* markdown 纯文本
* @since 1.1.0
*/
private List<String> lines;
/**
* 是否指定编号
* @since 1.1.0
*/
private boole... | 16.788462 | 61 | 0.533792 |
6b5f711d782f1f26d038e740e36fb385e716074f | 681 | package net.myacxy.agsm.utils;
import android.util.Patterns;
import com.rengwuxian.materialedittext.validation.METValidator;
public class IpAddressAndDomainValidator extends METValidator
{
public IpAddressAndDomainValidator(String errorMessage)
{
super(errorMessage);
}
@Override
public b... | 25.222222 | 79 | 0.654919 |
82125b365a04e117baf509ec534f4af19766f320 | 2,729 | /*
* Licensed to David Pilato under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fil... | 38.985714 | 88 | 0.695859 |
c8f5ebc31e8819f2a5f48caa0f0e3f30666c2629 | 259 | package com.blu3flux.omnichess.utils;
public class ChessGameValidator {
// Check if chess move is valid in chess position
public boolean checkValidMove(String fen, String move) {
//TODO: Check if move is valid in given fen position
return true;
}
}
| 23.545455 | 57 | 0.752896 |
1b25e2994a948b1bdaffe153d1b804f946f86acc | 1,921 | package com.clearblade.platform.api.internal;
import com.clearblade.platform.api.ClearBladeException;
import com.clearblade.platform.api.Code;
import com.clearblade.platform.api.CodeCallback;
import com.clearblade.platform.api.Collection;
import com.clearblade.platform.api.DataCallback;
import com.clearblade.platform.... | 27.056338 | 71 | 0.79646 |
db8fbfe0ed5797fe0aba185237753648fcb13706 | 3,331 | /*
* Copyright 2010 Vrije Universiteit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 32.028846 | 77 | 0.548784 |
1bfebe208cd73f3a97fe450b18ed5f0eb1e41b7a | 905 | package com.baeldung.apache.opennlp;
import java.io.InputStream;
import opennlp.tools.postag.POSModel;
import opennlp.tools.postag.POSTaggerME;
import opennlp.tools.tokenize.SimpleTokenizer;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class POSTaggerTest {
@Test
pu... | 36.2 | 103 | 0.731492 |
34967fce123056941191d0bea0f8ff997bc4b8e4 | 4,583 | package logic;
import com.alibaba.fastjson.JSON;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.sun.jnlp.ApiDialog;
public class YoutubeAPIController {
private static final String API_KEY = "AIzaSyCZI-... | 44.067308 | 312 | 0.667249 |
15b0e6289f60833d2be9a17b17b57e86f7781549 | 4,116 | package com.github.riccardove.easyjasub;
/*
* #%L
* easyjasub-lib
* %%
* Copyright (C) 2014 Riccardo Vestrini
* %%
* 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://ww... | 28 | 78 | 0.72862 |
19b4a8729b717dc4eb54432262b8040798958a01 | 263 | package org.firstinspires.ftc.teamcode.Compitition.FreightFrenzy.Controls.Autonomous.SixWD.RedWarehouse;
import org.firstinspires.ftc.teamcode.Compitition.FreightFrenzy.Controls.Autonomous.SixWD.AutoMain;
public abstract class RedWarehouse extends AutoMain {
}
| 37.571429 | 104 | 0.863118 |
bd63db6af9a9361c2ef66ac586388849ecdd25c8 | 5,980 | /*
* Copyright (c) 2008-2018, Hazelcast, 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 ... | 30.824742 | 122 | 0.662375 |
e1d664202826ca37b910e81d227c671dcdf492e8 | 4,673 | package com.neu.his.backend.Controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.neu.his.backend.pojo.InvoiceEntity;
import com.neu.his.backend.pojo.MedicineEntity;
import com.neu.his.backend.pojo.PrescriptionDetailEntity;
import com.ne... | 40.284483 | 122 | 0.752835 |
862018e794d690f5e50cacfc4c4f0909e74ddcf9 | 7,890 | /*
* Copyright 2008 Novamente 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 t... | 26.565657 | 78 | 0.659696 |
5baf7711f343ef2d614f49d44c5672f1a3990adf | 5,037 | /*
* Copyright (c) 2015 FUJI Goro (gfx).
*
* 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... | 34.5 | 111 | 0.656343 |
4efac23ab4c17189a097518f1e515461a1151538 | 3,437 | package com.sam_chordas.android.stockhawk.service;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.os.ResultReceiver;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import org.json.... | 36.956989 | 162 | 0.637184 |
e33d21fcfe80ee5119d292c3f06516fb4e0e987a | 821 | package softuni.exam.instagraphlite.util.impl;
import org.springframework.stereotype.Service;
import softuni.exam.instagraphlite.util.ValidationUtil;
import javax.validation.Validation;
import javax.validation.Validator;
import java.util.function.Predicate;
@Service
public class ValidationUtilImpl implements Validat... | 31.576923 | 76 | 0.725944 |
9a7acc1d52c458155eda24824481e70dde8f4520 | 1,903 | // Carrie Krueger
// 9-10-19
// Chapter 2 Notes: Output and Escape Sequences
public class Ch2Output {
public static void main(String[] args) {
escape(); // this method will explore output and escape sequences
}
// this method investigates output and escape sequences
public static void... | 26.068493 | 84 | 0.495533 |
258f35bec89a7b427fedc111e81700a2395d5842 | 1,347 | /******************************************************************************
* Project Strix *
* Socket Client-Server *
* *
... | 32.071429 | 83 | 0.473645 |
fe5c0ad1006b95b3794835015d1772bb15bd6afb | 6,041 | package com.defano.wyldcard.parts;
import com.defano.hypertalk.ast.model.PartType;
import com.defano.hypertalk.ast.model.Value;
import com.defano.hypertalk.exception.HtSemanticException;
import com.defano.hypertalk.exception.NoSuchPropertyException;
import com.defano.hypertalk.exception.PropertyPermissionExcepti... | 36.173653 | 121 | 0.648403 |
d2582894d17a0111862f372acb419d73e3390b98 | 3,422 | package models;
import org.junit.Test;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;
/**
* Implements JUnit test cases for TweetTest functionality.
*
* @author Nikita Baranov
* @version 1.0.0
*/
public class TweetTest {
/**
* Checks Equals metho... | 30.283186 | 60 | 0.651666 |
886fb1c4ce2abc72cd430cec6f1274d7a2d21304 | 1,375 | /**
* Copyright 2007-2016, Kaazing Corporation. 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 require... | 31.25 | 86 | 0.722182 |
3467d539b5bd5dbab3aed571d229abf43c5493d1 | 5,277 | /*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 39.088889 | 125 | 0.674436 |
7dbaebfbb672b54bf2607be60e71d78eb4b792e3 | 393 | public class Gerente extends Funcionario {
public Gerente(String nome, String cpf, String localDeTrabalho) {
super(nome, cpf, localDeTrabalho);
}
public void contactarFornecedor(String produto, int quantidade, Fornecedor fornecedor) {
Estoque estoque = new Estoque();
estoque.aument... | 32.75 | 92 | 0.717557 |
786e0bf8b66a530e8b36c35217ab298e7d5bca62 | 947,320 | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ErrorTest5 {
public static boolean debug = false;
@Test
public void test2501() throws Throwable {
if (debug)
System.out.format("%n... | 72.563769 | 314 | 0.718876 |
e0007e7cd7faee6c7681f76c299ec73f7b130a1e | 2,597 | /*
* Copyright (C) 2012 Martin Řehánek
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 33.294872 | 81 | 0.663073 |
4c0340651a5abb818588619a4e7c4a4ba3bca18c | 882 | package org.swiftexplorer.swift.operations;
import java.io.File;
import java.util.List;
import org.javaswift.joss.instructions.UploadInstructions;
import org.javaswift.joss.model.StoredObject;
import org.swiftexplorer.swift.operations.SwiftOperations.SwiftCallback;
public interface LargeObjectManager {
public vo... | 49 | 173 | 0.826531 |
b2e2208de5c31bcfbb8de02e05d9d0c22f49464f | 287 | package net.chrisrichardson.eventstore.examples.todolist.testutil;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableAutoConfiguration
public class BasicWebTestConfiguration {
}
| 22.076923 | 70 | 0.867596 |
f1ddf8c4f5fe9e81d6641f101dbf885b8647f787 | 4,688 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 30.441558 | 101 | 0.669795 |
b06a383b2c3c53da58f80eaedffe2a6e55dd5440 | 1,797 | package com.sudwood.advancedutilities.client.renders;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
... | 35.235294 | 155 | 0.656093 |
09f89857df6e58ed513d614a6799ac53762b4b70 | 685 | package com.goblin.manage.bean.domain.enums;
import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;
/**
* 发送状态
* (
* NOT_SEND : 未发送,
* SEND : 已发送,
* FAIL_SEND : 发送失败,
* FINAL_FAIL_SEND : 重试次数用完后,还是发送失败
* )
*
* @author : 披荆斩棘
* @date : 2017/8/7
*/
@Getter
public enum EmailSendState implemen... | 16.707317 | 57 | 0.639416 |
0e1657ae492fe53c8b17318cb36b3ddd02877fa3 | 6,275 | package com.verygood.security.larky;
import com.google.common.collect.ImmutableSet;
import com.verygood.security.larky.console.testing.TestingConsole;
import com.verygood.security.larky.nativelib.LarkyGlobals;
import com.verygood.security.larky.nativelib.LarkyUnittest;
import com.verygood.security.larky.parser.LarkyP... | 29.599057 | 96 | 0.665817 |
291ba5dbecd707b4e10466fa2075967fd68756b2 | 1,412 | package ca.ulaval.glo4003.housematch.services.statistics;
import ca.ulaval.glo4003.housematch.domain.property.Property;
import ca.ulaval.glo4003.housematch.domain.property.PropertyDetails;
import ca.ulaval.glo4003.housematch.domain.property.PropertyObserver;
import ca.ulaval.glo4003.housematch.domain.property.Property... | 34.439024 | 98 | 0.755666 |
9e389ef958dab1831b7906500c764343181001ad | 1,567 | package top.plgxs.common.core.api.node;
import lombok.Data;
import java.io.Serializable;
/**
* ztree组件节点数据格式
*
* @author Stranger。
* @version 1.0
* @since 2021/2/6 21:20
*/
@Data
public class ZTreeNode implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 节点id
*/
... | 19.345679 | 104 | 0.584556 |
54c218058cd7e1fc23eea4387d11bb87dc6ba71a | 1,269 | /*
* Copyright 2016 Crown Copyright
*
* 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... | 30.95122 | 84 | 0.740741 |
d89785f18af11e5273af46be9266c431b4566964 | 725 | package dk.thoughtcrime.surveillance.server.routes;
import dk.thoughtcrime.surveillance.server.database.ReadingsDAO;
import org.apache.camel.spring.SpringRouteBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Created by jimmy on 23/11/2015.... | 25.892857 | 67 | 0.688276 |
7d5792d1e6bd100a6d2714a2aae6c458e8f1e0f4 | 6,032 | package com.xceptance.xlt.engine.scripting.htmlunit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import com.gargoylesoftware.htmlunit.html.HtmlOption;
import com.gargoylesoftware.htmlunit.html.HtmlSelect;
import com.xceptance.xlt.e... | 30.77551 | 111 | 0.585544 |
f5db0ee0732c7df835b46b6c4dd82e33978e017b | 7,291 | package com.sourcegraph.langserver.langservice.compiler;
import com.sourcegraph.lsp.domain.structures.Location;
import com.sourcegraph.lsp.domain.structures.Position;
import com.sourcegraph.lsp.domain.structures.Range;
import com.sourcegraph.utils.LanguageUtils;
import com.sun.source.tree.*;
import com.sun.source.util... | 37.582474 | 112 | 0.648471 |
3e2334e25926c989bda582883bb2934da7242c48 | 2,662 | /***************************************************************************************************
*
* Copyright (c) 2013, 2014, 2015, 2016, 2017 Universitat Politecnica de Valencia - www.upv.es
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | 42.253968 | 104 | 0.693088 |
d8047b84c708759b0747c70482dfb89db7c6925c | 14,645 | package genepi.imputationbutler.commands;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import ... | 33.133484 | 114 | 0.740048 |
1932b86722d37a35fe42201bbd3f60c44fb16753 | 656 | package com.echo.server.configuration;
import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.alibaba.nacos.spring.context.annotation.EnableNacos;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springfram... | 41 | 96 | 0.817073 |
dc27e6f57021fb299c34f379ff3780b697c9d562 | 2,543 | /*
* Copyright 2019 Tango Controls
*
* 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 ... | 33.906667 | 139 | 0.681872 |
cea1c589fdb7c73c1d0f937d4aef51a8c0a18dc4 | 8,919 | package kaptainwutax.v1_11;
import kaptainwutax.TestFramework;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.version.MCVersion;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static kaptainwutax.TestFramework.randomChunk... | 59.066225 | 132 | 0.570916 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.