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 |
|---|---|---|---|---|---|
0f0129782ad715428cac806f0399f08200f93689 | 10,869 | package com.alipay.api.internal.parser.json;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.alipay.api.AlipayApiException... | 35.174757 | 192 | 0.532524 |
16d1d6ccc0314687d6ed9acbd24151b560351eff | 1,165 | package com.jagsaund.rxuploader.sample.model.wire;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.SerializedName;
import java.util.List;
@... | 25.326087 | 70 | 0.733047 |
f4c0bf0d37c2eee95095854f4c6f91de863df74f | 2,059 | package com.conveyal.gtfs.loader;
import com.conveyal.gtfs.error.NewGTFSErrorType;
import com.conveyal.gtfs.storage.StorageException;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit tests to verify functionality of classes that load fields from GTFS tables.
... | 36.767857 | 112 | 0.585721 |
9ff329e336c4088760dd7a563a996ff8fc4a786c | 3,668 | package com.test;
import java.util.ArrayList;
public class MinSumPath_Tree {
/*
Find the min sum path in a tree from root to leaf
The tree need not be a Binary tree
*/
static class Node {
int cost;
Node[] children;
Node parent;
Node(int cost) {
this... | 23.363057 | 101 | 0.424755 |
c88694a4d32b75d77b3d648888f0c4434ec95568 | 1,665 | package com.zplesac.connectionbuddy.models;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Created by Željko Plesac on 23/09/15.
* Magic constant which defines different netw... | 23.450704 | 119 | 0.656456 |
92e0dc324f843c738761c999ae4ab70a20abb753 | 3,553 | /*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... | 35.178218 | 118 | 0.710386 |
fcc85581446add8c738bc8cbea99226dc4974079 | 2,959 | /*
* Copyright (c) 2016, 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.org/li... | 33.625 | 92 | 0.752619 |
0fcf50c11c0e10c83328c49c281725ac4b2ba4f2 | 2,334 | package com.builtbroken.mffs.client.gui.base;
import com.builtbroken.mc.client.SharedAssets;
import com.builtbroken.mc.prefab.gui.GuiButton2;
import com.builtbroken.mc.prefab.gui.GuiContainerBase;
import com.builtbroken.mc.prefab.gui.buttons.GuiButton9px;
import com.builtbroken.mffs.MFFS;
import com.builtbroken.mffs.a... | 27.785714 | 127 | 0.651671 |
14f90aa098632791c6dbea07b1f7c3d1cc9d777b | 1,475 | package com.google.android.gms.auth.api.accounttransfer;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
public final class zzv implements Parcelable.Creator<DeviceMetaData> {
public final /* synthetic */ Object[] newArray(int i) {... | 39.864865 | 81 | 0.628475 |
b7f5b73492ef264d993db5366ccbb05db83ee9ea | 1,212 | package com.palyrobotics.frc2018.suites;
import com.palyrobotics.frc2018.auto.AutoModeSelectorTest;
import com.palyrobotics.frc2018.behavior.RoutineManagerTest;
import com.palyrobotics.frc2018.config.CommandsTest;
import com.palyrobotics.frc2018.config.RobotStateTest;
import com.palyrobotics.frc2018.subsystems.Climber... | 41.793103 | 157 | 0.811056 |
52435355326d5401626bbd186afd045af67b7dd0 | 467 | package br.com.mioto.cloud.vo;
public class UserVision {
private String microservice;
private Integer rating;
public String getMicroservice() {
return microservice;
}
public void setMicroservice(String microservice) {
this.microservice = microservice;
}
pu... | 19.458333 | 55 | 0.616702 |
bef48b161b0364253fb0d9dc58835de9144cc437 | 1,468 | package main.com.seaupnice;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import main.com.learn.StdIn;
public class Test1_1 {
public static void sort(Comparable[] a){
int N = a.length;
show(a);
for(int i = 0; i < N; i++){
int min = i;
for(int... | 28.230769 | 83 | 0.502725 |
31299033de2b5542a5552da819d2df236d0fe72a | 10,906 | /* Copyright (c) 2007, University of Oslo, Norway
* 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, thi... | 42.601563 | 102 | 0.600128 |
6197dfea8ea3d26e2f9a82f380d2e9f3ad2b9398 | 3,263 | package com.xlythe.engine.theme;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.RadioGroup;
import androidx.annotation.Nullable;
import a... | 32.63 | 106 | 0.586883 |
5ee4399522fe3e41056bb8d03246777cdd927b8c | 3,014 | /*
* 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... | 30.444444 | 91 | 0.624751 |
b93a2d76ab9f47d29c4fbb108d09e8789f7fd11f | 3,178 | package com.epam.jdi.uitests.testing.unittests.complex.table;
import com.epam.jdi.uitests.testing.unittests.InitTests;
import com.epam.jdi.uitests.testing.unittests.enums.Preconditions;
import com.epam.jdi.uitests.win.winnium.elements.complex.table.Table;
import com.epam.web.matcher.testng.Check;
import org.testng.ann... | 39.725 | 114 | 0.690057 |
69c66f6436b3b0c3e09ea37d896624287008ac4f | 717 | package com.github.ding.filter.impl;
import com.github.ding.config.model.WarningMessage;
import com.github.ding.config.model.Ding;
import com.github.ding.filter.DingFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @ClassName LogServerImpl
* @Author laixiaoxing
* @Dat... | 20.485714 | 100 | 0.722455 |
11b5a356a0d2ab339b2e3133caa3a61bacbb7f01 | 1,077 | package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.KplCsvceshi;
/**
* 客户信息Mapper接口
*
* @author ruoyi
* @date 2020-08-19
*/
public interface KplCsvceshiMapper
{
/**
* 查询客户信息
*
* @param id 客户信息ID
* @return 客户信息
*/
public KplCsvceshi selectKplC... | 17.370968 | 76 | 0.581244 |
8d1bbc7a24f606e242752865c4de660796cefbd3 | 6,526 | /*
* Copyright (c) 2008, 2015, 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 ... | 33.989583 | 116 | 0.647717 |
a18e5086c84eba5e1b46ae127e67248abbddc37c | 1,336 | package entities.cells;
public abstract class Cell {
private String id; //nonunique property;
private int health; // a positive integer;
private int positionRow; // a positive integer;
private int positionCol; // a positive integer;
public Cell(String id, int health, int positionRow, int position... | 22.644068 | 74 | 0.599551 |
2fce4a34f20ae0cf9e149ed88f6619fa5cae997f | 6,363 | /*! ******************************************************************************
*
* Hop : The Hop Orchestration Platform
*
* http://www.project-hop.org
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | 37.429412 | 133 | 0.635549 |
4d24aeda107dab32eee0e34e8b39467917fce314 | 5,542 | /*
* 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 ... | 35.525641 | 98 | 0.640924 |
a88fa6e9f359c61fbe1daa8de2e40caeec7fab21 | 1,518 | package com.dianping.paas.api.controller.interecptor;
import com.dianping.paas.core.config.ConfigManager;
import com.dianping.paas.api.util.IpUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.w... | 31.625 | 121 | 0.752964 |
2b9f1ac2089cd5f40592c51b8a38051fd2d9e9a0 | 4,989 | package timeflow.format.file;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import tim... | 22.885321 | 101 | 0.652836 |
847f9d55119bfee2a0372f387f4d160931b231ec | 7,154 | package task3;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapre... | 46.154839 | 129 | 0.800671 |
93b6d09a0d1f29c80585c1acbf835b4092de1b0e | 5,406 | // Copyright (C) 2009 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 ... | 34.433121 | 79 | 0.742693 |
21280af3ffc9a02f8cb200207c3f2ca6572cbc09 | 30 | public class TestObject {
}
| 7.5 | 25 | 0.7 |
d47012b23aecf274a38f5ad907173234932f5274 | 496 | package com.graphhopper.example;
public class Tuple2<A, B> {
private A a;
private B b;
public static Tuple2<Double, Double> tuple(Double a, Double b) {
Tuple2 tuple2 = new Tuple2();
tuple2.setA(a);
tuple2.setB(b);
return tuple2;
}
private void setA(A a) {
t... | 16 | 68 | 0.518145 |
ffc6c913c32caa495de2fb5a213063b6de24031e | 172 | package com.ylanjekar.sdk.hublib.world;
import android.util.Log;
public class World {
public static void world(String ss) {
Log.d("World", "World # " + ss);
}
}
| 17.2 | 39 | 0.662791 |
d9a9239aad6a007ad18afc60bfc51c21cec46249 | 4,912 | /*
* GIPO COPYRIGHT NOTICE, LICENSE AND DISCLAIMER.
*
* Copyright 2001 - 2005 by R.M.Simpson W.Zhao T.L.McCLuskey D Liu D. Kitchin
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notic... | 25.189744 | 77 | 0.698901 |
e0ffb0a9a4764639c6559d42fc432639d2230ff2 | 3,044 | package bot.discordGolden.main;
/**
* GoldenKj 2018
*
* @author GoldenKj
*/
import bot.discordGolden.ExpSystem.ExpSystem;
import bot.discordGolden.Util.SECRETS;
import bot.discordGolden.Util.STATIC;
import bot.discordGolden.commands.*;
import bot.discordGolden.listeners.WelcomeListener;
import bot.discordGolden.l... | 31.381443 | 86 | 0.645204 |
2f53eebb06ac6f75ba7b6880b19281a1f08ee161 | 151 | package tzatziki.util;
/**
* @author <a href="http://twitter.com/aloyer">@aloyer</a>
*/
public interface Consumer<T> {
void consume(T value);
}
| 16.777778 | 58 | 0.649007 |
32ae764dab954f95cf2fa0b4de3dbb9e3a56a44f | 10,464 | package br.ufsc.cultivar.repository.evaluate;
import br.ufsc.cultivar.model.evaluate.*;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.experimental.FieldDefaults;
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.namedpara... | 47.780822 | 152 | 0.517393 |
d76c14f30f3dc64b7f262dc78407edc436bee60a | 2,019 | /*
* Licensed to DuraSpace under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* DuraSpace licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file excep... | 34.220339 | 76 | 0.757306 |
b5e83c69fa85e958284cc0cb3d588a74be0c61a8 | 1,897 | /*******************************************************************************
* Copyright (c) ArSysOp 2018-2022
*
* RGM Sources are publicly available only for
* informational, review, analysis and consulting purposes.
*
* Definitions, terms and conditions for using RGM Sources are stated by ArSysOp Source ... | 36.480769 | 108 | 0.709014 |
98fe6de2a9785a7d9d1e33df9a8340b902771e77 | 1,350 | package mage.cards.o;
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.predicate.Predicates;
import mage.target.common.Tar... | 32.142857 | 141 | 0.722963 |
c9167b525663b81387869c2203f3bf883744bf6a | 23,397 | /*
* 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 ... | 41.337456 | 91 | 0.668419 |
51ed3edbd0d038a3691196ba4051f3873e86bd18 | 2,352 | /*
* Copyright (c) Jul 3, 2017 Corona IDE.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* "rom... | 33.6 | 104 | 0.68665 |
0b5a9b819404befb437e2e7162100e25f7672ae1 | 6,623 | //package gov.nasa.xpc.ex;
import gov.nasa.xpc.ViewType;
import gov.nasa.xpc.XPlaneConnect;
import java.io.IOException;
import java.net.SocketException;
import java.util.Arrays;
/**
* An example program demonstrating the basic features of the X-Plane Connect toolbox.
*
* @author Jason Watkins
* @version 1.0
* @... | 37 | 128 | 0.523328 |
e588bf0bec88c21f3f23049a6f8fb58432695f62 | 24,432 | package com.adyen.model.nexo;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/... | 30.887484 | 97 | 0.636501 |
87e05dcf557b97aeda78f989d36ae33b8900cd71 | 859 | package com.example.app;
import android.Manifest;
import android.support.test.rule.GrantPermissionRule;
import android.support.test.runner.AndroidJUnit4;
import com.instructure.espresso.ScreenshotTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Ass... | 25.264706 | 83 | 0.748545 |
9e60eb7c6890e00dc93c305375fbffa2a074f13e | 193 | package com.progra3.javaMST.back.application.exceptions;
public class InvalidVertexException extends IllegalArgumentException{
public InvalidVertexException(String s) {
super(s);
}
}
| 21.444444 | 69 | 0.797927 |
217d4b9a49f3953acc349121edffc8e585cc77f6 | 248 | package com.alura.aluraflix.domain.repository;
import com.alura.aluraflix.domain.model.Categoria;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CategoriaRepository extends JpaRepository<Categoria, Long> {
}
| 24.8 | 77 | 0.822581 |
9be3295f0d4b2ab0f1f900de35f6226d5e4df85a | 386 | package com.idurdyev.torgcrm.jhipster.repository;
import com.idurdyev.torgcrm.jhipster.domain.Manager;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
/**
* Spring Data JPA repository for the Manager entity.
*/
@SuppressWarnings("unused")
@Repository
public inte... | 22.705882 | 73 | 0.803109 |
4da56807184bb89446665e5537a00bce8563fd0f | 1,246 | package Chatr.Server;
import Chatr.Model.User;
import Chatr.Server.Database.Database;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
public abstract class Handler {
Database database;
List<Transmission> responses;
String senderID;
Handler() {
this.database = Database.getInsta... | 24.431373 | 98 | 0.728732 |
55fdc41e3165ca12e2f38dc8f40150b12697bb56 | 5,151 | /*
* Copyright 2019 WeBank
* 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, softw... | 20.604 | 75 | 0.637546 |
76c9e65ad1adcd200092860265977db767f3453f | 12,670 | /*
* 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
* distribut... | 46.580882 | 179 | 0.682952 |
cef110ab23b53f0e0941886cfb85475ca0afd0a1 | 5,260 | package cz.metacentrum.perun.core.api;
import cz.metacentrum.perun.core.api.User;
import cz.metacentrum.perun.core.api.UserExtSource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import ... | 29.886364 | 169 | 0.722624 |
8a4a88ef083c4dc0335702817048c3cc5f78fb82 | 627 | package com.mythtrad.proj3.test2;
/**
* @Author:Yerik Xiang
* @Date:2020/9/23 09:54
* @Desc:
*/
public class MyThread1 extends Thread {
private Object lock;
public MyThread1(Object lock) {
this.lock = lock;
}
@Override
public void run() {
try {
synchronized (lock) ... | 22.392857 | 83 | 0.539075 |
d7d4057e6ad451bc9ee98e0ebf1a2419124b81da | 1,220 | package org.ml_methods_group.evaluation.approaches.clustering;
import org.ml_methods_group.clustering.clusterers.CompositeClusterer;
import org.ml_methods_group.clustering.clusterers.HAC;
import org.ml_methods_group.common.Clusterer;
import org.ml_methods_group.common.CommonUtils;
import org.ml_methods_group.common.Wr... | 35.882353 | 111 | 0.752459 |
bfd626efc2b6275f7fccd8cdffbf3b2a6ac9f5dd | 3,929 | package com.hermes.model;
import java.io.Serializable;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.hermes.model.dao.BoardDao;
import com.hermes.model.dao.DaoSession;
import com.hermes.model.dao.ItemBoardDao;
import com.hermes.tools.Lo... | 21.949721 | 96 | 0.690506 |
c696dd80e938a88be009e3eeda7b66fb9b818777 | 477 | package com.rpc;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class StartUp {
public static final int port = 8080;
public static void main(String[] args) {
exportRpc();
}
/**
* 导出RPC接口
*/
private static void exportRpc() {
try {
ServerSocket ss = new Ser... | 16.448276 | 44 | 0.647799 |
194ed333e2f540093249aa699f691c8de9b6eb40 | 5,106 | /*
* Copyright 2020 Evgeniy Khyst
*
* 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... | 38.390977 | 102 | 0.782609 |
bc33052ae12cb8f6c64fe380000292ef0f02618f | 4,179 | package mobi.chouette.exchange.netex_stif.exporter;
import java.io.IOException;
import java.sql.Date;
import javax.naming.InitialContext;
import com.jamonapi.Monitor;
import com.jamonapi.MonitorFactory;
import lombok.extern.log4j.Log4j;
import mobi.chouette.common.Color;
import mobi.chouette.common.Constant;
import... | 37.3125 | 109 | 0.778894 |
c3ffd65a569cdbb10fb65ea18e9ca6df4b4846b2 | 121 | class X {
void test(boolean b) {
boolean b1 = b;
return a.b().foo(a, .class.getClassLoader(), b1, c);
}
} | 20.166667 | 58 | 0.545455 |
a223b656395b8914297535318eb9c09265f13fb0 | 7,246 | package com.slicky.ep.astronomy.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.supp... | 31.920705 | 106 | 0.616754 |
7162e3128d5bca876b0af2a1d55204bcfe683794 | 1,462 | /**
* 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... | 20.885714 | 63 | 0.695622 |
c62db822befd8c68d20cc9a680ea4006ab6fbe77 | 88 | package dip;
public interface IProtection {
double reduireDegats(double degats);
}
| 14.666667 | 40 | 0.761364 |
ce7df14a05cbef437fa34df1a9e27e167fa3627c | 511 | package com.bixuebihui.cache;
/**
* BaseList
* <p>
* WARNING! Automatically generated file!
* Do not edit!
* Code Generator by J.A.Carter
* Modified by Xing Wanxiang 2008
* (c) www.goldjetty.com
*/
import com.bixuebihui.BeanFactory;
import com.bixuebihui.jdbc.BaseDao;
import com.bixuebihui.jdbc.IDbHelper;
/**... | 21.291667 | 77 | 0.700587 |
528fa2547ca78e779676bc33fa0cc576e387898c | 14,634 | /*
*
* This file is part of the iText (R) project.
* Copyright (c) 1998-2016 iText Group NV
* Authors: Bruno Lowagie, Paulo Soares, et al.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free S... | 38.409449 | 130 | 0.651565 |
324bff8a008200a66c68de2e70b8faa929ca52ee | 5,492 | package edu.northsouth.application;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.google.... | 36.613333 | 135 | 0.66697 |
94ce5fe5330ed00021bc0722565350000ac58d8c | 303 | package com.github.TKnudsen.ComplexDataObject.data;
import com.github.TKnudsen.ComplexDataObject.data.complexDataObject.ComplexDataContainer;
public class DataContainers {
public static DataSchema getDataSchema(ComplexDataContainer dataContainer) {
return dataContainer.dataSchema;
}
}
| 27.545455 | 90 | 0.818482 |
5597ccdd8e7c57e13113944206914b941d5b5024 | 2,265 | package edu.washington.escience.myria.storage;
import javax.annotation.Nonnull;
import org.joda.time.DateTime;
/**
* An interface for objects that contain a table (2-D) of tuples that is readable.
*/
public interface ReadableTable extends TupleTable {
/**
* @param column the column of the desired value.
* ... | 29.415584 | 91 | 0.686093 |
79643f798025c42d57a5b430c049bea511e904d5 | 10,092 | package stoyanov.valentin.mycar.activities;
import android.app.DatePickerDialog;
import android.app.Notification;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.DatePicker;
import android.widget.... | 39.576471 | 122 | 0.650614 |
3a96257c4169dbe32dd268d8cf9d641d2bd0b3ab | 887 | package com.oi.hermes.customer.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.rest.webmvc.ResourceNotFoundException;
import org.springframework.stereotype.Service;
import com.oi.hermes.customer.dao.Custom... | 31.678571 | 84 | 0.797069 |
6b8cd374bf1b856812d52696b63a63d817e83ca6 | 784 | package hard;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import org.junit.Before;
import org.junit.Test;
public class LoginHandlerTest {
//Create a test file, testing LoginHandler.java.
@Before
public void setUp() throws Exception {
}
@Test
public void test() {
Account blah =... | 18.666667 | 59 | 0.700255 |
c53cd4708ecd51dcb3fc9450582d042a55afff18 | 2,891 | package com.microservices.gamification.service;
import com.microservices.gamification.client.MultiplicationResultAttemptClient;
import com.microservices.gamification.domain.Badge;
import com.microservices.gamification.domain.BadgeCard;
import com.microservices.gamification.domain.GameStats;
import com.microservices.ga... | 37.545455 | 130 | 0.75441 |
470f9ef149225331d9c07a51f47904dab5343841 | 3,170 | package cz.caver.vr.devices;
import java.util.EnumSet;
import org.lwjgl.openvr.VR;
/**
* Contains all allowed input button types.
* @author Jiri Kletecka <433728@mail.muni.cz>
*/
public enum DeviceButton {
SYSTEM, APPLICATION_MENU, GRIP, DPAD_LEFT, DPAD_UP, DPAD_RIGHT, DPAD_DOWN, A, AXIS0, AXIS1, AXIS2, AXIS3,... | 44.027778 | 167 | 0.671293 |
8374aaee701b550c3689057208b6618907c79457 | 10,059 | package com.builtbroken.test.wrapper;
import com.builtbroken.mc.lib.helper.MathUtility;
import com.builtbroken.mc.lib.data.item.ItemStackWrapper;
import com.builtbroken.mc.testing.junit.AbstractTest;
import com.builtbroken.mc.testing.junit.VoltzTestRunner;
import net.minecraft.block.Block;
import net.minecraft.init.Bl... | 40.39759 | 108 | 0.666269 |
784ed7c217d61128ceb493899b639aa3744ae354 | 196 | package org.folio.finc.select.exception;
public class FincSelectNotPermittedException extends RuntimeException {
public FincSelectNotPermittedException(String cause) {
super(cause);
}
}
| 21.777778 | 71 | 0.80102 |
e355156951aa263ea0f0aa6dd37ce3697a6efdf8 | 1,478 | package com.coderZsq;
public class Main {
public static void main(String[] args) {
/*
* 枚举类型(Enum Type)
*
* 如果一个变量的取值只可能是固定的几个值,可以考虑使用枚举类型
* 枚举由一组预定义的常量构成
* */
{
Season s = Season.WINTER;
// WINTER
System.out.println(... | 25.482759 | 45 | 0.382273 |
018e65336a624374842669bfdb8ebe4a8f60a6da | 489 | public class covered1
{
// this is a variable
int x=1;
//these are two, one line off the first
int y=2;
int z=3;
//this is part of static init
static int z0=0;
//another non-static
int a;
int b;
static boolean odd;
static
{
odd=(z0+1)%2==0;
}
covered1(int a, int b)
{
this.a=a*... | 12.868421 | 41 | 0.533742 |
71cc10f733844e73d01b20210977b9b30fd8a014 | 442 | package ma.wafa.cream.web.rest.mapper;
import ma.wafa.cream.domain.*;
import ma.wafa.cream.web.rest.dto.PerferenceDTO;
import org.mapstruct.*;
/**
* Mapper for the entity Perference and its DTO PerferenceDTO.
*/
@Mapper(componentModel = "spring", uses = {})
public interface PerferenceMapper {
PerferenceDTO pe... | 24.555556 | 70 | 0.773756 |
35f7f53973e83983d81fdf74b6579951b456aa0a | 2,782 | package com.eldarko.torch;
import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.WindowManager;
import android.widget.Toast;
public class MainActivity extends Activity
{
... | 23.777778 | 111 | 0.564702 |
12d134dcabd5be271c85e353816a97a2b5280dc5 | 5,791 | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.OutputStream; ... | 14.298765 | 52 | 0.505785 |
816bdcdbd366ff1ba2ab1d53c5343f8261aa67ac | 7,157 | /**
* 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... | 34.574879 | 117 | 0.701691 |
6c7415f8c43820f3580a32265ece8c8a3e2b584c | 3,053 | /*
* Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA contributors
*
* 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/... | 36.783133 | 211 | 0.682607 |
19b4f36db925e8c2b5a82ac0dc35cca000e7e2bc | 2,737 | package com.yue.demo.service.broadcast;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android... | 28.216495 | 76 | 0.630983 |
ce65bf799d4232363417645f301be85032bb70f4 | 4,908 | /*
* Copyright 2002-2005 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... | 40.229508 | 101 | 0.768134 |
67a9d37615b8baffe508e3789a1408d4be0f5faa | 3,743 | /*
* Copyright 2021 Ian Jones. 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 applicabl... | 24.788079 | 121 | 0.629442 |
680f7a20659d3411761d0cb5678ea3d13db680f8 | 1,525 | /*
* 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 com.obtbs.bus;
/**
*
* @author User
*/
public class Date {
private int month;
private int day... | 27.232143 | 85 | 0.539016 |
2468cef0ff10e8e47715e0fa367adda443d92369 | 287 | package jmetal.javarepository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import jmetal.javaclass.Result;
public interface ResultRepository extends JpaRepository<Result, Long> {
List<Result> findResultsByExperimentId(String experiment);
}
| 22.076923 | 71 | 0.829268 |
97196af0f899f34a4a0f814f288bd1b05cb893a3 | 3,127 | /*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the license at
* https://glassfish.dev.java.net/public/CDDLv1.0.html or
* glassfish/b... | 35.134831 | 79 | 0.67125 |
ee34db0505870991b43c627dff6a58cf6e5dce94 | 519 | package com.lfa.flowable.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
@Configuration
@E... | 28.833333 | 83 | 0.83815 |
c91e3384ee93e5cfc4d47395aba706153c758508 | 23,081 | package com.ycsoft.commons.helper;
import java.beans.IntrospectionException;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.i... | 26.621684 | 131 | 0.613015 |
20bafb21a8086bbd24fc9dc8a280e3a72e715357 | 5,558 | package com.example.rajtalekar.jogman10;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import a... | 37.302013 | 130 | 0.662648 |
5f4d1104f525944d7160c6153596b7ada785b83b | 2,206 | package shipgirl.misc;
import shipgirl.Haruna;
import org.json.JSONTokener;
import org.json.JSONObject;
import java.io.FileInputStream;
import java.io.InputStream;
public class HarunaConfig {
String DBLAuth = null;
public String Weebhook = null;
public String PostWeebhook = null;
public boolean Debu... | 35.580645 | 97 | 0.652312 |
baabcd9442b296ecc44434bbc8fa19411ecd20c2 | 5,903 | /*
* 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 ... | 41.865248 | 124 | 0.638828 |
b597912776e85924c29549388bc8d3e25e72dce3 | 2,931 | package com.prime.recipejungle.activities;
import android.content.Context;
import android.util.Log;
import com.prime.recipejungle.fragments.HomeFragment;
import com.prime.recipejungle.fragments.LoginFragment;
import com.prime.recipejungle.utils.Global;
import com.prime.recipejungle.utils.NotificationHelper;
import co... | 36.185185 | 119 | 0.574548 |
89b8645cb8d4465d1b296a98ffdba3f872541426 | 2,439 | /*
* Copyright 2014 Jordan S. Jones <jordansjones@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 32.092105 | 79 | 0.630586 |
d61e44dbb0f6f3a399b60219f18a9a834383dde7 | 2,762 |
package mage.cards.f;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.SetPlayerLifeSourceEffect;
impor... | 35.410256 | 178 | 0.722303 |
88de630e08d9e06bf9b0d355feab2d5d9d4f14d5 | 3,032 | package pl.domzal.junit.docker.rule;
import static org.junit.Assert.*;
import java.util.Map;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import pl.domzal.junit.docker.rule.ex.InvalidVolumeFrom;
@Category(test.category.Stable.class)
public c... | 36.095238 | 136 | 0.723945 |
ee43a689ceb0852efcc68142de01ab8283e78e74 | 512 | package com.darrenforsythe.boot.caching;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;
@Component
public class CacheLayer {
private static final Logger log = LoggerFactory.getLo... | 21.333333 | 77 | 0.763672 |
1dac8271c01252f1039a2571774ddd2b01622b6f | 765 | package com.smartshopping.request;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
public class ReviewUpdateRequest extends StringRequest {
final static private String URL="https://ctg1770.cafe24.com/SC/S_C_ReviewUpdate.php";
... | 29.423077 | 99 | 0.705882 |
0f301fec65839a2b5d106e4f2f61d2c576a3cefa | 1,265 | package com.stylefeng.guns.rest.common.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;... | 22.589286 | 57 | 0.698024 |
e643158f8e3cb03e03fbfc4d4d05281b4d18951a | 416 | package org.onetwo.boot.core.web.controller;
import java.util.Date;
import org.onetwo.common.spring.propeditor.JFishDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
public interface DateInitBinder {
@InitBinder
default public void initBinde... | 24.470588 | 65 | 0.817308 |
32b5d7582a5b21ba7b46623fc24b19642090036a | 2,569 | /*****************************************************************
* 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
* ... | 30.583333 | 120 | 0.6703 |
8a58c0d1b2a4685483c3164fb01619a4f99b20e9 | 16,370 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... | 15.399812 | 814 | 0.807453 |
23eb528f990dbba5031f946eea8c3ec4c6ecfc14 | 1,782 | package mit.cadlab.dome3.plugin.catalog.ui;
/**
* User: Sangmok Han
* Date: 2006. 2. 9.
*/
import java.util.regex.Matcher;
/** returns colorized token based on TokenDelimiter given to its constructor */
public class ColorizedTokenizer {
protected DelimiterList delimList;
protected Matcher matc... | 26.205882 | 83 | 0.536476 |
fccdcf849fb0055aec33801c3fd561ddc0543e3f | 561 | package iaf.perf.course.day3;
public class BrokenSingleton
{
private static Object lock = new Object();
private static BrokenSingleton _instance;
private BrokenSingleton() {/*Expensive startup code*/}
public static BrokenSingleton get() {
if (_instance == null) {
synchronized(lock) {
if (_in... | 20.777778 | 56 | 0.638146 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.