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 |
|---|---|---|---|---|---|
a31dbcbf5dc5f194801540041c6872068b0291ae | 995 | package org.modelcatalogue.letter.annotator;
/**
* Abstract implementation of Highlighter which allows to set custom head and tail.
*/
public abstract class AbstractHighlighter implements Highlighter {
private String head = "";
private String tail = "";
/**
* Sets the custom head for the highligh... | 26.184211 | 104 | 0.667337 |
dc2f3ef41597da0b9b16053bf87c029f97676272 | 5,490 | /*
* L2Operand.java
* Copyright © 1993-2018, The Avail Foundation, LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright... | 32.874251 | 80 | 0.733698 |
147e7b6275450c47664339d396a8d62f949362cd | 817 | import java.lang.Exception;
class threadX extends Thread {
int i;
String str;
threadX(int i,String str) {
this.i = i;
this.str = str;
}
public void run() {
try {
System.out.println(str+" is "+i);
}
catch(Exception e) {
System.out.println("Exception ocurred "+e);
}
}
}
class threadY implements Runnable ... | 17.382979 | 44 | 0.631579 |
0f43692dd9d3f4306927019d0862e32b453a84b8 | 2,279 | package de.srendi.advancedperipherals.common.blocks.tileentity;
import com.refinedmods.refinedstorage.api.network.node.INetworkNodeProxy;
import com.refinedmods.refinedstorage.tile.NetworkNodeTile;
import com.refinedmods.refinedstorage.tile.config.IRedstoneConfigurable;
import dan200.computercraft.api.peripheral.IPeri... | 41.436364 | 143 | 0.754278 |
245dd23f99a7445a1be461b406198a45f82ab489 | 7,264 | package ru.stqa.pft.addressbook.appmanager;
import org.testng.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.Contacts;... | 34.103286 | 135 | 0.685573 |
21e4a5d0a4e1e295e585311dfad1b4637f34f412 | 1,981 | package Y2020.Day6;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class CustomCustoms {
private List<List<String>> data = new ArrayList<>();
public CustomCustoms() throws FileNotFoundException {
Scanner sc = new Scanner(new File("./src/Y2020/Day6/inpu... | 30.953125 | 87 | 0.485109 |
cfa1777a20bc629148664a63043e6419c2394cbf | 2,911 | package com.blakebr0.pickletweaks.feature.item;
import com.blakebr0.cucumber.helper.NBTHelper;
import com.blakebr0.cucumber.iface.IEnableable;
import com.blakebr0.cucumber.item.BaseItem;
import com.blakebr0.pickletweaks.config.ModConfigs;
import com.blakebr0.pickletweaks.lib.ModTooltips;
import net.minecraft.network.c... | 33.079545 | 114 | 0.754036 |
aa92fd78a0763202de31c935766923e9d2868b46 | 9,576 | /**
* Copyright 2013 Canada Health Infoway, 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... | 42.941704 | 190 | 0.712615 |
036a40e62e4cc1db62b208f80a078710c21c4735 | 7,524 | package com.gaohui.main;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import androi... | 35.658768 | 121 | 0.584264 |
a7531699fd4c43d843c829feafd3133196d48251 | 2,833 | package me.RonanCraft.Pueblos.player.command.types;
import me.RonanCraft.Pueblos.Pueblos;
import me.RonanCraft.Pueblos.inventory.PueblosInventory;
import me.RonanCraft.Pueblos.player.command.PueblosCommand;
import me.RonanCraft.Pueblos.player.command.PueblosCommandHelpable;
import me.RonanCraft.Pueblos.resources.Permi... | 37.773333 | 135 | 0.617014 |
31ca33fe7ce2a1b9a122084f3ddee723b50a7f98 | 473 | package com.sondertara.joya.core.model;
import lombok.Data;
import java.io.Serializable;
import java.util.Map;
/**
* the data of one table
*
* @author huangxiaohu
* @date 2021/11/15 16:34
* @since 1.0.0
*/
@Data
public final class TableStruct implements Serializable {
private String tableName;
/** entity c... | 20.565217 | 72 | 0.716702 |
c1e4af307a03417e1a40d8f956d0616ffb8b428d | 1,904 | /*
* Copyright 2018-2019 Wave Software
*
* 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 agr... | 33.403509 | 91 | 0.766282 |
dc0b6f490d5d5832836fdcfa670dd152c9a42054 | 2,282 | package com.example.anan.AAChartCore.AAChartCoreLib.AAOptionsModel;
public class AADataLabels {
public Boolean enabled;
public Boolean inside;
public AAStyle style;
public String format;
public Float rotation;
public Boolean allowOverlap;
public Boolean useHTML;
public Float distance;
... | 21.12963 | 67 | 0.612621 |
0b25598625ea4d4790131efcd1f19f7bca64240a | 347 | // Locator2.java - extended Locator
// http://www.saxproject.org
// Public Domain: no warranty.
// $Id: Locator2.java,v 1.5 2004/03/17 14:30:10 dmegginson Exp $
package org.xml.sax.ext;
public interface Locator2
extends org.xml.sax.Locator
{
public abstract java.lang.String getXMLVersion();
public abstract java.la... | 26.692308 | 64 | 0.743516 |
b98b68f537aedaa6bf1307314614e1dc1707bb15 | 5,121 | package org.gratitude.ui.adapter;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.LayoutInflater;
i... | 34.14 | 108 | 0.633079 |
ef0f5da1c5134d5e5b5cce8e57fe7ca52d74329f | 1,372 | package org.apdoer.condition.quot.source.deserializer.impl;
import lombok.extern.slf4j.Slf4j;
import org.apdoer.common.service.util.JacksonUtil;
import org.apdoer.condition.common.model.dto.LatestPriceDto;
import org.apdoer.condition.quot.payload.QuotPriceMessageSourcePayload;
import org.apdoer.condition.quot.source.d... | 39.2 | 121 | 0.73105 |
9b16b8d72bb242e01fab3aba25bcbc6474884c91 | 318 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Write your main program here. Implementing your own classes will be very useful.
Scanner scanner = new Scanner(System.in);
UserInterface ui = new UserInterface(scanner);
ui.start();
}
}
| 26.5 | 91 | 0.657233 |
77de0b64d2582ffb13f11909a79428780190c4c2 | 6,645 | //
// ========================================================================
// Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 40.518293 | 148 | 0.51392 |
ad3f59554401aaf4d4d30ac35de93a37221b355d | 967 | package com.liuscoding.springcloud.service.impl;
import com.liuscoding.springcloud.service.IMessageProvider;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.messaging.MessageChannel;
import org.springframework.messag... | 27.628571 | 65 | 0.736298 |
400df83562e7e428bde815416d0c987ce83b76a3 | 3,599 | package controllers;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import views.html.scoreScreen;
import views.html.loginScreen;
import views.html.createUserScreen;
import views.html.gameScreen;
import jpa.Score;
import models... | 28.338583 | 106 | 0.716866 |
a505c96b5193eb9abfe752a13e4582c81fd13db0 | 220 | package game.item;
import org.joml.Vector3i;
public interface ItemModifier {
default public void onPlace(Vector3i pos, Vector3i pointedThingAbove) {
System.out.println("placing interface worked");
}
}
| 20 | 75 | 0.731818 |
3b41b9a2dc67e670e5d9945bba4e138be49686df | 2,409 | /**********************************************************************
Copyright (c) 2009 Andy Jefferson and others. 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://... | 36.5 | 98 | 0.672063 |
9c3830a90e334853cd4566082e76f3dd7932426d | 5,677 | /*
* 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
* distr... | 39.423611 | 97 | 0.638365 |
bd6dd36738662191d4b0672fb6c0e93cd1141427 | 3,243 | package org.ethereum.beacon.test.runner.ssz;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
import org.ethereum.beacon.consensus.BeaconChainSpec;
import org.ethereum.beacon.ssz.SSZBuilder;
import org.ethereum.beacon.ssz.SSZSerializer;
import org.ethereum.be... | 34.870968 | 175 | 0.720012 |
c34b1743a643285b5e5bbabbd1f055f1ee718948 | 1,811 | /**
* 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.369565 | 79 | 0.684152 |
793b513f50efbc6521b8940ce311615fac36fa9f | 2,521 | package info.unterrainer.commons.datastructures;
public class Interval<T extends Comparable<T>> {
private T maximalValue;
private T minimalValue;
/**
* Initializes a new instance of the {@link Interval} structure.
*
* @param min the minimal value
* @param max the maximal value
* @throws IllegalArgumentE... | 26.819149 | 91 | 0.682666 |
546377aedb585eafead8327a445d795b7a6c574f | 10,545 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.o... | 45.064103 | 118 | 0.672736 |
4ea12849dfe4eaaaadfadc9f9b2b9ff333295a50 | 509 | package io.penguinstats.model;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(description = "The model for e... | 21.208333 | 52 | 0.81336 |
10c885bee169b284b14211e75c1e1215c04c3ab7 | 851 | package com.stylefeng.guns.modular.foundation.service.impl;
import com.stylefeng.guns.modular.system.model.Material;
import com.stylefeng.guns.modular.system.dao.MaterialMapper;
import com.stylefeng.guns.modular.foundation.service.IMaterialService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.myba... | 27.451613 | 108 | 0.788484 |
8de62f0d15589542664d18d2285048c9c23cd354 | 2,985 | /*
* Copyright 2015-2018 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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... | 37.78481 | 113 | 0.740034 |
114a66a555a7310b009728ff0952217d992c78c1 | 62,936 | // Copyright 2012 Citrix Systems, Inc. Licensed under the
// Apache License, Version 2.0 (the "License"); you may not use this
// file except in compliance with the License. Citrix Systems, Inc.
// reserves all rights not expressly granted by the License.
// You may obtain a copy of the License at http://www.apache.or... | 43.106849 | 362 | 0.667297 |
f9898f4d33984cfef0050783341dce19e08e675b | 525 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
//$Id$
package org.hibernate.test.annotations;
import javax.persistence.Entity;
... | 18.103448 | 94 | 0.700952 |
e3b6b5e7c979f494e2f712305b0542df2d22cff1 | 252 | package com.boluozhai.snowflake.xgit.http.client.smart;
import java.io.IOException;
import com.boluozhai.snowflake.xgit.http.client.smart.io.SmartPktWriter;
public interface SmartTx extends SmartPktWriter {
SmartRx openRx() throws IOException;
}
| 21 | 72 | 0.813492 |
72cc60966e2ac99366419d687b4bf0956b94e45a | 2,515 | /*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | 43.362069 | 79 | 0.758648 |
c60486700fd36dddb722f457044a642c61157fd8 | 19,725 | package de.esymetric.jerusalem.main.tests;
import java.io.File;
import java.io.FileInputStream;
import java.io.RandomAccessFile;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.Vector;
import junit.framework.TestCase... | 31.56 | 103 | 0.658809 |
f5280f37ca6e1ecce408ad2532f28430398599d4 | 501 | import java.util.Scanner;
public class fibonacci {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter a value: ");
int value = scan.nextInt();
System.out.println("The result is " + recurseFib(value));
scan.close();
}
... | 26.368421 | 65 | 0.54491 |
d7c72200ece2db995fcc7a0063c2ba654d0f4fb8 | 252 | package vfdt.stat.splitter;
import vfdt.tree.Decision;
/**
* %Description%
*
* @author Mehran Mirkhan
* @version 1.0
* @since 2018 Mar 07
*/
public interface Splitter {
Double getSplitGain() throws Exception;
Decision getDecision();
}
| 14.823529 | 43 | 0.686508 |
e48aed28f7dbf10915d27df406254c67555148c7 | 3,022 | package com.chenyee.stephenlau.floatingball.quickSetting;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import android.support.v4.content.LocalBroadcastM... | 29.339806 | 138 | 0.694904 |
8b658a689f9d864593f4fafad94fc6f984db71e1 | 2,481 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 39.380952 | 131 | 0.707376 |
755dbe43bbda67f7ffccfd0a6e0420a8c8ea5b67 | 1,987 | package examples.MetadataOperations.SetMetadata;
import java.util.ArrayList;
import com.groupdocs.cloud.metadata.api.MetadataApi;
import com.groupdocs.cloud.metadata.client.ApiException;
import com.groupdocs.cloud.metadata.model.FileInfo;
import com.groupdocs.cloud.metadata.model.SearchCriteria;
import com.groupdocs.... | 34.258621 | 84 | 0.766985 |
b986ac61713de74e820e9166ad64f34ae4232258 | 391 | package test.me.chan.spark2pidgin;
import static org.junit.Assert.*;
import me.chan.spark2pidgin.AppConstants;
import org.junit.Test;
/**
* Makes sure {@link AppConstants} is initialized properly with
* <code>app.properties<code>.
*
* @author chan
*
*/
public class AppConstantsTest {
@Test
... | 17 | 64 | 0.677749 |
f628fbc2757e755324962150e61841f249c05898 | 2,635 | package mit.edu.scansite.examples.databasesearch;
import mit.edu.scansite.examples.ExampleUtils;
import java.util.List;
import static mit.edu.scansite.examples.ExampleUtils.baseURL;
/**
* @author Thomas Bernwinkler
* Last edited 4/4/2017
* Provided by Yaffe Lab, Koch Institute, MIT
*/
//../databasesearch/motif... | 40.538462 | 247 | 0.681214 |
385c17ebccee9499fdedd6254ab37381633ab312 | 860 | package org.lndroid.framework.usecases;
import org.lndroid.framework.WalletData;
import org.lndroid.framework.client.IPluginClient;
import org.lndroid.framework.common.IPluginData;
import org.lndroid.framework.defaults.DefaultPlugins;
import java.io.IOException;
import java.lang.reflect.Type;
public class GetPayment... | 27.741935 | 78 | 0.719767 |
5c2fb33f3a4a7966c05074cf02a5ba4998daca8b | 142 | package org.jetbrains.research.kex.intrinsics.internal;
@FunctionalInterface
public interface FloatGenerator {
float apply(int index);
}
| 20.285714 | 55 | 0.802817 |
34fd29190a06d5c86d1c9949bc32efe1cd4b66a2 | 4,012 | /**
* Copyright (C) 2018-2019 Expedia, 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 ag... | 34.886957 | 92 | 0.747009 |
141effca85920562540b1987fc1a1d64e2762e2e | 4,357 | /**
* 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 m... | 32.036765 | 97 | 0.620611 |
6be3886b820ca811d49360dcaeb40d78e38c64e1 | 4,690 | package webhook.teamcity.payload.format;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.HashMap;
import java.util.TreeMap;
import org.junit.Before;
import org.junit.Test;
import jetbrains.buildServer.parameters.Parameter... | 34.485294 | 114 | 0.793603 |
29b64884f284ff88a9b2d55c17ef7d29cee2d6a5 | 324 | package io.advantageous.qbit.service.discovery;
import io.advantageous.qbit.annotation.EventChannel;
/**
* ServiceChangedChannel
* created by rhightower on 3/23/15.
*/
@EventChannel
public interface ServiceChangedEventChannel {
void servicePoolChanged(String serviceName);
default void flushEvents() {
... | 20.25 | 52 | 0.765432 |
992f3b1e30c9dd000b69abb7ea90a2d70aec1637 | 2,952 | /*
* Copyright (c) 2014, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. 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/LICE... | 29.818182 | 92 | 0.695799 |
1b0f9e10381586c48addcc9c61af426be6df0638 | 1,962 | import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
// LC1738: https://leetcode.com/problems/find-kth-largest-xor-coordinate-value/
//
// You are given a 2D matrix of size m x n, consisting of non-negative integers. You are also given
// an integer k. The value of coordinate (a, b) of the ma... | 33.827586 | 99 | 0.523445 |
459062489b503b5e6d3dde8565127cc528ae0c7d | 12,874 | /*
New BSD License http://www.opensource.org/licenses/bsd-license.php
Copyright (c) 2017, Beck Yang
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retai... | 37.424419 | 174 | 0.681451 |
6ca35d1211a843d8f77788915c380606906d84d3 | 185 | package ru.gdg.kazan.gdgkazan.screens.splash;
/**
* @author Artur Vasilov
*/
public interface SplashView {
void showLoading();
void showError();
void showEvents();
}
| 12.333333 | 45 | 0.664865 |
c1f22740cd0100075970908a0aaadcbe86263976 | 1,333 | package com.twu.biblioteca;
import java.io.IOException;
import java.util.Optional;
public class ReturnBook implements Command {
private Output out;
private Input input;
private Catalog catalog;
private ListBooks listBooksCommand;
public ReturnBook(final Output out,
final Inp... | 29.622222 | 69 | 0.597149 |
9239cd9f889a7428e949f52efc85a53c31976424 | 1,559 | /*
* Copyright 2015 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 t... | 22.271429 | 76 | 0.65619 |
942226a6450fa8afffa7f27c98d8b4f08d52c016 | 2,191 | package com.cherry.jeeves.domain.request;
import com.cherry.jeeves.domain.request.component.BaseRequest;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotatio... | 19.389381 | 62 | 0.76084 |
c84caebfd1be538994c20baa86af880cd1f6fa2e | 3,019 | /*
* 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 ... | 38.21519 | 99 | 0.752236 |
9f2d903781ab8f9959008b17e09c489dca396c66 | 5,275 | /*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 52.75 | 264 | 0.807583 |
f140dd602e638478dbb49e5494c594636e3deed6 | 2,267 | package com.my.edigits.servlet;
import com.my.edigits.utils.AStarUtils;
import com.my.edigits.utils.Matutils;
import com.my.edigits.utils.Node;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | 35.984127 | 114 | 0.626378 |
6d5226b55d39e169f9d54815b5194791f3de2b61 | 1,940 | package com.nano.candy.std;
import com.nano.candy.utils.Characters;
public class Names {
public static final String MOUDLE_FILE_NAME = "__module__.cd";
public static final String MAIN_FILE_NAME = "main.cd";
public static final String METHOD_INITALIZER = "init";
public static final String METHOD_ITERATOR = "_... | 32.333333 | 72 | 0.741753 |
ac23e881340645b2270dfc09cceeb62656d64480 | 969 | /*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.alvearie.imaging.ingestion.model.result;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxm... | 21.065217 | 60 | 0.675955 |
6c85ae41a62f74c6296788289652cfdd88e26c5f | 2,164 | /**********************************************************************************
*
* $Id$
*
***********************************************************************************
*
* Copyright (c) 2005, 2006 The Sakai Foundation, The MIT Corporation
*
* Licensed under the Educational Community License, Version 2.0 (the... | 27.74359 | 83 | 0.608595 |
4d6af63365459ab20553f6ff2d17012915377106 | 266 | package com.sorm.core;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public interface CallBack {
public Object doExecute(Connection connection, PreparedStatement preparedStatement, ResultSet resultSet);
}
| 22.166667 | 107 | 0.785714 |
11dc3e022218f40399549629a3858c0e4bd6cc9a | 1,504 | package net.quikkly.android.react;
import com.facebook.react.common.MapBuilder;
import com.facebook.react.uimanager.SimpleViewManager;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.annotations.ReactProp;
import java.util.Map;
import javax.annotation.Nonnull;
import javax... | 29.490196 | 87 | 0.716755 |
8eab3f919e2e2bd6f220dac0004dce8283e7bae4 | 3,128 | package net.sf.regadb.ui.datatable.query;
import java.util.List;
import net.sf.regadb.db.QueryDefinitionRun;
import net.sf.regadb.db.QueryDefinitionRunStatus;
import net.sf.regadb.db.Transaction;
import net.sf.regadb.ui.framework.RegaDBMain;
import net.sf.regadb.ui.framework.forms.SelectForm;
import net.sf.regadb.ui.... | 33.634409 | 197 | 0.717711 |
ba600fb2bf08cfff810cfb09ec43351f44a6f15f | 420 | package com.stephenmac.incorporate.commands;
import com.stephenmac.incorporate.ArgParser;
import com.stephenmac.incorporate.Executor;
public class HelpCommand extends Command {
public HelpCommand(ArgParser p, Executor cmdExec) {
super(p, cmdExec);
needsCorp = false;
}
@Override
public String execute() {
r... | 22.105263 | 96 | 0.764286 |
42a8db8b3d5864b73153c1028b0a2be8a415d109 | 3,905 |
package com.tw.go.task.sonarqualitygate;
import com.google.gson.GsonBuilder;
import com.thoughtworks.go.plugin.api.GoApplicationAccessor;
import com.thoughtworks.go.plugin.api.GoPluginIdentifier;
import com.thoughtworks.go.plugin.api.annotation.Extension;
import com.thoughtworks.go.plugin.api.request.GoPluginApiReque... | 37.548077 | 133 | 0.673239 |
f8e46c9c7938cd128153ca8d23c66a7df83e2756 | 5,017 | /*
* UltraCart Rest API V2
* UltraCart REST API Version 2
*
* OpenAPI spec version: 2.0.0
* Contact: support@ultracart.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.ultra... | 29.863095 | 125 | 0.741878 |
6f105dc844cc95338e4593830046b9c5b3660d67 | 2,748 | /*
* Weblounge: Web Content Management System
* Copyright (c) 2003 - 2011 The Weblounge Team
* http://entwinemedia.com/weblounge
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundat... | 28.040816 | 80 | 0.673581 |
d789660a6171df90558f076cf8011ecb32fbf163 | 265 | package com.infosys.json;
import org.junit.Test;
import junit.framework.Assert;
public class InformaticaTest {
@Test
public void test() {
Informatica i = new Informatica();
i.setInfoObject(null);
Assert.assertEquals(null, i.getInfoObject());
}
}
| 14.722222 | 47 | 0.713208 |
b0544a89800607082c5d232bcb66803ebb6d932f | 1,130 | package com.samaranavi.egorpetruchcho.ui;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import com.samaranavi.egorpetruchcho.samaranavi.R;
import org.osmdroid.DefaultRe... | 28.974359 | 122 | 0.7 |
b9b2074ac40a568b6c151d190f2e91f8446281f4 | 536 | package observer3;
import java.awt.*;
public class RedBall extends Ball {
public RedBall(MainPanel panel, int xSpeed, int ySpeed, int ballSize) {
super(panel, Color.RED, xSpeed, ySpeed, ballSize);
}
@Override
public void update(char keyChar) {
if (keyChar == 'a' || keyChar == 'd') {
... | 23.304348 | 75 | 0.587687 |
9afb1b1476569e374ceb01613914656ff432d3cf | 9,302 | /*
* 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 n... | 33.825455 | 104 | 0.716728 |
2d4e87d5a73a2d2c60326feb1117c54374729792 | 2,927 | package com.auto.applet.violation.model;
import java.util.Date;
import javax.validation.constraints.NotNull;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.... | 19.911565 | 108 | 0.714725 |
3fe3f75d63e0dcfcb992496207b6cec34d3b5bf3 | 8,897 | /* */ package edu.drexel.cis.dragon.qa.system;
/* */
/* */ import edu.drexel.cis.dragon.matrix.DoubleFlatSparseMatrix;
/* */ import edu.drexel.cis.dragon.matrix.IntFlatSparseMatrix;
/* */ import edu.drexel.cis.dragon.nlp.Document;
/* */ import edu.drexel.cis.dragon.nlp.DocumentParser;
/* ... | 39.896861 | 114 | 0.505564 |
677b3d4e22d3a83fb7a76df7c677c06218861ec7 | 36,675 | /*
* Copyright (c) Australian Institute of Marine Science, 2021.
* @author Gael Lafond <g.lafond@aims.gov.au>
*/
package au.gov.aims.ncanimate;
import au.gov.aims.aws.s3.entity.S3Client;
import au.gov.aims.ereefs.Utils;
import au.gov.aims.ereefs.bean.metadata.TimeIncrement;
import au.gov.aims.ereefs.bean.metadata.n... | 51.437588 | 189 | 0.587267 |
141a1b96ff053719669974ac9471d4ddac7f833e | 1,555 |
/*
* Copyright (c) 2012 Yan Pujante
*
* 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.339623 | 110 | 0.713183 |
109f7757d3e1a546c2ae0146d288296f0075e8b2 | 370 | package org.springframework.samples.petclinic.repository.springdatajpa;
import org.springframework.data.repository.Repository;
import org.springframework.samples.petclinic.model.Booking;
import org.springframework.samples.petclinic.repository.BookingRepository;
public interface SpringDataBookingRepository extends Boo... | 37 | 102 | 0.867568 |
871f24744f3e05deec152db586b9ccf255c51553 | 243 | package water.webserver.iface;
import java.io.IOException;
/**
* All the functionality that we need to call on an existing instance of HTTP proxy.
*/
public interface ProxyServer {
void start(String ip, int port) throws IOException;
}
| 18.692308 | 84 | 0.748971 |
f5fbf4298889fefc6a1a1a11edeb7d049d90ab13 | 2,673 | /*******************************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... | 35.64 | 118 | 0.61691 |
0aba29eccda36fc751a0ca0572bf41e034028ab8 | 11,147 | package net.evendanan.bazel.mvn.impl;
import com.google.common.io.Resources;
import net.evendanan.bazel.mvn.api.RuleClassifier;
import net.evendanan.bazel.mvn.api.TargetsBuilder;
import net.evendanan.bazel.mvn.api.model.Dependency;
import net.evendanan.bazel.mvn.api.model.MavenCoordinate;
import org.junit.Assert;
im... | 44.767068 | 139 | 0.601507 |
8010b40687fd069fc94a44f1744359812eeae5e1 | 7,619 | /*******************************************************************************
* Copyright (c) 2012 Secure Software Engineering Group at EC SPRIDE.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this... | 40.1 | 109 | 0.701929 |
feba65d056525946411b2fb57233d2d23ba94817 | 10,112 | /**
* SkillAPI
* com.sucy.skill.listener.StatusListener
*
* The MIT License (MIT)
*
* Copyright (c) 2014 Steven Sucy
*
* 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 restric... | 34.394558 | 207 | 0.654173 |
9c38407d37892752caf6a0a03e8f02dab8b1a01c | 2,061 | package seedu.bookmark.testutil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import seedu.bookmark.model.Library;
import seedu.bookmark.model.WordBank;
import seedu.bookmark.model.book.Book;
import seedu.bookmark.model.wordstore.Word;
public class TypicalWords {
public static fi... | 31.227273 | 88 | 0.688016 |
d69133434adfef4666a8efefd024df7764533ce4 | 23,040 | /**
* Copyright © 2016-2022 The Thingsboard Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 55.652174 | 188 | 0.622396 |
0e98419f22c000bd79f329bf54fc0b8459b5addd | 1,824 | package jdbc.magnit;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List... | 28.5 | 79 | 0.619518 |
92026842687b538f6acf12a299436d958593bb0d | 7,861 | /*
* Copyright 2012-2019 CodeLibs Project and the 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 required by ap... | 38.346341 | 158 | 0.657932 |
77d4f7e3cb26a4b952267fd2ac9d436182602587 | 795 | package net.collabsoft.clustering.jira.cache;
public class LocalCacheManager extends com.atlassian.cache.ehcache.EhCacheManager {
// ----------------------------------------------------------------------------------------------- Constructor
public LocalCacheManager() {
}
// ----------------... | 31.8 | 128 | 0.261635 |
8ded6c465e97cabd3b78bf012bd2df60381591c1 | 4,780 | /**
* Copyright (C) 2018 DANS - Data Archiving and Networked Services (info@dans.knaw.nl)
*
* 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... | 43.063063 | 101 | 0.774895 |
3869f4e0976e9e719f94d52ee23aeb1ebc42a923 | 358 | package com.goufn.permission.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.goufn.permission.common.page.PageRequest;
import com.goufn.permission.common.page.PageResult;
import com.goufn.permission.model.SysLog;
public interface SysLogService extends IService<SysLog> {
PageResult... | 29.833333 | 59 | 0.829609 |
7c374d1853098dc57427d715ec0c779b0123a14a | 1,276 | package com.lyd.mall.order.listener;
/**
* @Author Liuyunda
* @Date 2021/6/16 20:17
* @Email man021436@163.com
* @Description: TODO
*/
import com.lyd.mall.order.entity.OrderEntity;
import com.lyd.mall.order.service.OrderService;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
im... | 32.717949 | 99 | 0.737461 |
91ba0a58049471f804570fbea3c7486fc3071c2c | 25,719 | package com.cooey.android.vitals.dao;
import android.arch.lifecycle.ComputableLiveData;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.db.SupportSQLiteStatement;
import android.arch.persistence.room.EntityDeletionOrUpdateAdapter;
import android.arch.persistence.room.EntityInsertionAdapter;
imp... | 47.627778 | 171 | 0.535985 |
5d72ddde2c809062555c9458539dc013a7a0aad9 | 633 | package io.stat.nabuproject.core.net;
/**
* An exception that is thrown when a network action cannot be completed due to the fact
* that the node its directed at is leaving the cluster.
*
* @author Ilya Ostrovskiy (https://github.com/iostat/)
*/
public class NodeLeavingException extends Exception {
public Nod... | 24.346154 | 88 | 0.684044 |
69027e0bdb34b14afa7d3c0278b1c10965d5e785 | 131 | package com.xhc.dao;
import com.xhc.model.Admin;
public interface IAdminDAO {
//校验登录
public Admin checkAdmin(Admin admin);
}
| 14.555556 | 39 | 0.740458 |
8c644d3303db07fa5b93524fca12757de8568ae3 | 1,719 | /*
* Copyright (c) 2018 CA. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.ca.apim.gateway.cagatewayconfig.util.entity;
/**
* Constants for Gateway entity types supported by the plugin.
*/
@SuppressWarn... | 47.75 | 86 | 0.773124 |
6c3fb06d8d701a154ab385122d9edf9550209cc9 | 474 | package com.wy.common;
import org.apache.hadoop.hbase.util.Bytes;
/**
* 常量配置
*
* @author ParadiseWY
* @date 2020-11-10 16:53:39
* @git {@link https://github.com/mygodness100}
*/
public interface Constants {
/** 微博内容表的表名 */
byte[] TABLE_CONTENT = Bytes.toBytes("weibo:content");
/** 微博用户关系表的表名 */
byte[] TA... | 21.545455 | 83 | 0.696203 |
8807bef7c163834c3bbd39b23beb45af430b6115 | 19,699 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 27.51257 | 179 | 0.641911 |
2f54b8a2de807dca9d0e8595e8dad637fb07bcbb | 2,815 | /**
* 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... | 31.988636 | 77 | 0.702664 |
4e900cbadffcfc6851420914e1f4d8c40c89be4e | 9,658 | // This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package queryrequests.proxies;
public class SelectableQueryCode
{
private final com.mendix.systemwideinterfaces.core.IMendixObject selectableQueryCodeMendixObject;
private f... | 31.562092 | 233 | 0.735763 |
2c7bacc17b10761cd8b021bede1dbd1bc5f5e8f0 | 358 | package com.usaa.bank.graph.common.identity;
/**
* A class that specifies the GUID specific to Dependency Management tool. This is a specific to DeMa in terms of implementation.
*/
public class GUID extends SimpleImmutableIdentifier {
private static final long serialVersionUID = 1L;
GUID(String identifier)... | 25.571429 | 129 | 0.734637 |
1612dcf7c7be47b5a04a175802b1217747d88394 | 437 | package org.tutar.pattern.chain.simple.handlers;
import org.tutar.pattern.chain.simple.Handler;
import org.tutar.pattern.chain.simple.Request;
/**
* @author tutar
*/
public class SocketHandler implements Handler {
public Boolean isHandleAble(Request request) {
return true;
}
public Boolean proc... | 23 | 64 | 0.71167 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.