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 |
|---|---|---|---|---|---|
ac011fa8deb1815fdbe5d7f2e3fd0c810a6c14be | 3,151 | /*
* 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 ... | 27.640351 | 77 | 0.684862 |
daf9e359efd3616a7730e894b3489877c7ad7984 | 4,970 | package com.ubiqlog.vis.ui;
import java.util.Date;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Handler;
import android.view.View.OnClickListener;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.u... | 35.248227 | 184 | 0.791952 |
00328f7cf33e997832d3e9e28ae29f5b0f8c6081 | 337 | package com.zzptc.sky.netnews.mvp.view;
import com.zzptc.sky.netnews.greendao.NewsChannelTable;
import com.zzptc.sky.netnews.mvp.view.base.BaseView;
import java.util.List;
/**
* Created by Hu Zhilin on 2016/10/31.
*/
public interface NewsView extends BaseView {
void initViewPager(List<NewsChannelTable> newsC... | 21.0625 | 65 | 0.771513 |
6645e5db7de5a9dc02f00f12cd145698ddf564d1 | 4,925 | package me.markoutte.process.impl;
import me.markoutte.algorithm.Maths;
import me.markoutte.ds.Channel;
import me.markoutte.ds.Color;
import me.markoutte.image.Image;
import me.markoutte.image.Pixel;
import me.markoutte.image.RectImage;
import me.markoutte.process.ImageProcessing;
import java.util.Properties;
import... | 30.78125 | 109 | 0.507817 |
b2686c7b7f1555524f677802e6888a6c6ae19e47 | 354 | import java.jang.String;
/**
* @author Dmitry Batkovich <dmitry.batkovich@jetbrains.com>
*/
class FileIndex {
}
class ProjectFileIndex extends FileIndex {
public static ProjectFileIndex getInstance(Project p) {
return null;
}
}
interface Project {}
public class TestCompletion {
public void method() {... | 14.16 | 60 | 0.70339 |
bfa05784a37461c1614720a8be3922f64655ddad | 2,752 | package salvo.jesus.graph;
import java.io.Serializable;
/**
* This interface defines a factory for creting Vertices and Edges
* in a <tt>Graph</tt>. By default, each of the following
* classes that implement the <tt>Graph</tt> interface uses a different
* <tt>GraphFactory</tt> as shown below:
* <p>
* <table bor... | 36.210526 | 97 | 0.648983 |
6479b62f8e21c0668d1681e8a255ec15f8096baf | 2,806 | package com.py.py.security;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;
import org.spri... | 32.252874 | 140 | 0.808981 |
33bfc588eb8fb2092b0ee4074c4e0cf80890a514 | 10,215 | package pnet.data.api.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import at.porscheinformatik.happyrest.RestCallFactory;
import at.porscheinformatik.happyrest.RestLoggerAdapter;
import at.porscheinformatik.happyrest.SystemRestLoggerAdapter;
import at.porscheinformatik.happyrest.slf4j.Slf4jRestLoggerAdap... | 29.185714 | 115 | 0.711209 |
fad6211fd66886c9f08958758f3ad707606afb78 | 246 | package datastructure;
import java.util.*;
public class Free {
public static void main(String[] args) {
List<Integer> ll=new LinkedList<>();
for(int i=0;i<100;i++) {
ll.add(i);
}
ll.set(45, 0);
System.out.println(ll);
}
}
| 12.3 | 41 | 0.609756 |
48c705cc6ab63c7555de03ed92aee5f5441b2cee | 2,140 | package de.aservo.confapi.commons.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.EqualsExclude;
import org.apache.commons.lang3.builder.HashCodeExclude;
import org.codehaus.jackson.annotate.JsonIgnore;
import javax.xml.b... | 22.291667 | 201 | 0.645327 |
9a9962eb3b330e6541d097b49d3805d0efcef5e7 | 4,407 | /**
* The MIT License
* Copyright © 2017 WebFolder OÜ
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | 27.716981 | 97 | 0.682777 |
2362fcb0081f3cff57c9e30d5fcfb0bcc2a0fa80 | 854 | package com.qiniu.api.fop;
import com.qiniu.api.net.CallRet;
import com.qiniu.api.net.Client;
import com.qiniu.api.auth.AuthException;
import com.qiniu.api.auth.digest.*;
import com.qiniu.api.rs.*;
public class ImageExif {
/**
* Makes a request url that we can get the image's exif.
*
* @param url
* T... | 25.117647 | 70 | 0.697892 |
2a2a40e08cf6b5b70d5d8f9ac7eae94319a052c6 | 396 | package env.wis.jtlv.regression.fds;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllFDSTests {
public static Test suite() {
TestSuite fds_suite = new TestSuite("Tests suite for FDS.");
// adding sub testing suites
// fds_suite.addTest(....suite());
// adding the actual test... | 19.8 | 62 | 0.727273 |
328b4f83fec3aecc02dd9fe79f52ee8a7d801771 | 833 | package samurayrus.vk_widget_servers;
import java.io.IOException;
import java.util.Date;
import java.util.TimerTask;
import samurayrus.vk_widget_servers.log.LoggerFile;
/** Класс Таймер. Каждые n секунд вызывает {@link ServerManager#newConnectAndPushInfoInVkApi}*/
public class SendTimer extends TimerTask {
@Overr... | 33.32 | 96 | 0.67587 |
1e92e75e62dc3c577161ad46708472875c39f854 | 170,898 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.generichandlers;
/**
* OpenMetadataAPIMapper provides property name mapping for the generic builder, handler and converter.
* It includes identifiers for all of the types th... | 72.629834 | 184 | 0.68143 |
2dbc690561a0b300c6b3946e89c42bd2949e76d7 | 8,111 | package patient;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import dataBase.ConnexionOracle;
/***
* Une classe qui represente un patient de maniere generale (soit les informations generales sur le patien... | 27.218121 | 147 | 0.665763 |
3b6bcdb531dc34e99c6cd5c049780a96cad497ad | 1,783 | package com.example.kafka.streams;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.Topology;
import org.apache.kafka.streams.TopologyDescription;
import org.slf4j.Logger;
im... | 31.839286 | 94 | 0.705552 |
f47d73f665b8139f8b9bce34e27d13fc47d84efd | 2,971 | package main;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
@Component
public class MyRunner implements CommandLineRunner{
//@Autowired
//private EntityManager em;
@Override
public void run(String... args) throws Exception {
/*
// TODO Auto-generated me... | 39.092105 | 509 | 0.684281 |
90c4170ebc33c81b9ed0ebc3626f4ad5e89b2b7c | 652 | package array;
/**
* Problem link: https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/
* <p>
* Time complexity: O(n)
* <p>
* Space complexity: O(1)
*/
public class _167 {
public int[] twoSum(int[] numbers, int target) {
int start = 0;
int last = numbers.length - 1;
whi... | 21.733333 | 83 | 0.460123 |
70d1723bf7a9590d3c3cf32bdf803d4cdf946ec3 | 9,899 | /*
*
* Copyright (c) 2007 ANDRE Sébastien (divxdede). All rights reserved.
* DefaultBusyModel.java is a part of this JBusyComponent library
* ====================================================================
*
* JBusyComponent library is free software; you can redistribute it and/or
* modify it under the t... | 36.393382 | 147 | 0.615315 |
0545fdf18880a9e76739a3ba7eb16fa49868eedd | 1,477 | package com.google.android.apps.picview.data.parser;
import java.util.HashMap;
import java.util.Map;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class PicasaTagSaxHandler extends DefaultHandler{
private Map<String,String> tags = new HashMap<Strin... | 24.616667 | 79 | 0.69736 |
706e073dd14a6c60bb832daa87f0b498f7e21023 | 5,204 | package com.xkcoding.orm.mybatis.MapperAndPage.mapper;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.SecureUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xkcoding.orm.mybatis.M... | 32.123457 | 289 | 0.632014 |
0b93f224fb923b49014b8b0a55f77543de8f36ae | 5,100 | package com.unnamed.b.atv.sample.activity;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import java.util.SortedMap;
import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;
//import org.apache.commons.math3.linear.Array2DRowRealMatrix;
//import org.apache.comm... | 26.984127 | 71 | 0.567451 |
f6ba11f485424f5e681b5b94bc20da2bb0f79250 | 6,665 | package org.ethereum.jsontestsuite;
import org.json.simple.parser.ParseException;
import org.junit.FixMethodOrder;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static org.... | 39.205882 | 107 | 0.703226 |
8d3aac5aafc919c952722dbea8e74d8ab0b7f176 | 378 | package utils;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
public class FileUtils {
public List<String> readFileAsList(String path) throws IOException {
List<String> lines = Files.readAllLines(Paths.get(path), ... | 23.625 | 91 | 0.732804 |
79c2f4fa353f7effe4acb69653670ea5666087d9 | 3,383 | package org.hamgen;
import org.hamgen.integrationtest.schemapackage.Company;
import org.hamgen.integrationtest.schemapackage.Employee;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.StringDescription;
import org.hamgen.builder.CompanyBuilder;
import org.hamgen.builder.Employe... | 46.342466 | 194 | 0.72214 |
b3af2e50fca23fe4082946ea115ca3c34179e9ea | 686 | package com.bitdubai.fermat_cbp_api.layer.network_service.transaction_transmission.exceptions;
import com.bitdubai.fermat_cbp_api.all_definition.exceptions.CBPException;
/**
* Created by Gabriel Araujo on 05/12/15.
*/
public class CantInitializeCommunicationNetworkServiceConnectionManagerException extends CBPExcept... | 45.733333 | 176 | 0.826531 |
67eca65b26273d843ed6d1af6ea031923dbfd5d5 | 1,425 | package jet.opengl.demos.nvidia.hbaoplus;
/**
* [Optional] Input viewport.<p>
* Remarks:<ul>
* <li> The Viewport defines a sub-area of the input & output full-resolution textures to be sourced and rendered to.
* Only the depth pixels within the viewport sub-area contribute to the RenderAO output.
* <li> The View... | 38.513514 | 120 | 0.698947 |
1c825531a7ff9bc85bb6f8b49e0b67ca3bc0e4fb | 585 | package projectTests;
import models.User;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class DeleteContact extends TestBase{
@BeforeMethod
public void precondition() {
if(app.helperUser().isLogged()) {
app.helperUser().login(new User().withEmail("s... | 21.666667 | 99 | 0.659829 |
c317459d64e89bb0f158d129cb707c118a9f7e63 | 8,253 | package com.xeed.cheapnsale.activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.design.wid... | 35.119149 | 191 | 0.703986 |
7a660439a308447d80beac8cd3435a0075a2f2c9 | 3,080 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.core.clients.versioncontrol.engines.internal;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
im... | 31.752577 | 97 | 0.649026 |
070c7bcfde0b66fd5437982a66dd59acaf19160d | 555 | package ru.lj.alamar.brainiac;
import java.util.Random;
/**
*
* @author ilyak
*
* http://www.javamex.com/tutorials/random_numbers/java_util_random_subclassing.shtml
*/
public class XorShiftRandom extends Random {
private long acc;
public XorShiftRandom(long seed) {
this.acc = seed;
}
pr... | 19.137931 | 85 | 0.556757 |
c334ae51d16ce3922486f1d6752de82d8bfe3303 | 1,224 | package de.bluewolf.wolfbot.commands;
import de.bluewolf.wolfbot.settings.BotSettings;
import de.bluewolf.wolfbot.settings.Permissions;
import de.bluewolf.wolfbot.utils.CustomMsg;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import java.awt.*;
import java.sq... | 26.042553 | 118 | 0.672386 |
3c40c114ac7388a69d91e20956636757af8bc32b | 938 | package com.github.ladicek.oaken_ocean.core.timeout;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
public class ScheduledExecutorTimeoutWatcher implements TimeoutWatcher {
private final ScheduledExecutorService executor;
... | 31.266667 | 138 | 0.682303 |
cb30c3ad2bbe1fed17e557fc4b39ef541fe94ada | 1,814 | import java.util.*;
public class MaxSubarray {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int tests = stdin.nextInt();
for(int i = 0; i < tests; i++) {
int elementCount = stdin.nextInt();
int[] arr = new int[elementCount];
... | 28.34375 | 71 | 0.464168 |
eb3b06a2db09e7c90485fa0deabd003626ea98ab | 678 |
// Complete the reverse function below.
/*
* For your reference:
*
* DoublyLinkedListNode {
* int data;
* DoublyLinkedListNode next;
* DoublyLinkedListNode prev;
* }
*
*/
static DoublyLinkedListNode reverse(DoublyLinkedListNode head) {
Doub... | 21.1875 | 68 | 0.514749 |
f3d7d8cea7715fb467c1827cac134f90427df3e8 | 1,250 | package com.mybatis;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import com.vo.House;
import com.vo.Orderdetail;
import com.vo.Orders;
public class HouseDaoMapperImpl implements HouseDaoMapperInf {
private SqlSession session;
public HouseDaoMapperImpl(SqlSession session) {
super();
t... | 23.148148 | 74 | 0.7728 |
830c448a18e2999d40065493e375f1028b8c92bd | 3,146 | package se.gustavkarlsson.rocketchat.jira_trigger.configuration;
import com.moandjiezana.toml.Toml;
import org.joda.time.Instant;
import org.joda.time.ReadableInstant;
import org.joda.time.format.DateTimeFormatter;
import org.junit.Before;
import org.junit.Test;
import se.gustavkarlsson.rocketchat.jira_trigger.test.To... | 32.102041 | 96 | 0.787031 |
48bbc7742e58db4d033939644f10aaa682ce5616 | 3,337 | package spiffe.provider;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.X509ExtendedTrustManager;
import java.net.Socket;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import static spiffe.provider.CertificateUtils.checkSpiffeId;
import static spiffe.provider.Certifi... | 35.5 | 127 | 0.728199 |
752c0940b7455dfb93183958f49f545feb54d420 | 319 | package com.techprimers.testing;
public class FizzBuzz {
public String play(int number) {
if (number == 0) throw new IllegalArgumentException("Number must not be 0");
if (number % 3 == 0) return "Fizz";
if (number % 5 == 0) return "Buzz";
return String.valueOf(number);
}
}
| 21.266667 | 84 | 0.60815 |
01a8fb6f814b3681d10791f896e0d7884e8eab56 | 3,175 | package com.examination.controller;
import com.examination.component.AdminAuth;
import com.examination.component.LoginAuth;
import com.examination.controller.common.BaseController;
import com.examination.controller.common.ResultEnum;
import com.examination.entity.Admin;
import com.examination.entity.Result;
import com... | 34.89011 | 106 | 0.661732 |
359735db94f06143db6332ce29c6e4d4c8aa7024 | 1,241 | package org.mockenize.provider.mapper;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Compo... | 33.540541 | 90 | 0.782434 |
6164967cdb7c8c75ea24faf145c442de6d9de207 | 1,678 | /*
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.source.oracle_strict_encrypt;
import com.fasterxml.jackson.databind.node.ArrayNode;
import io.airbyte.commons.json.Jsons;
import io.airbyte.integrations.base.IntegrationRunner;
import io.airbyte.integrations.base.Source;
... | 39.023256 | 111 | 0.782479 |
9ac1b8f9482ce2b1864b186c9505663784870331 | 2,486 | /*
* Copyright 2011-2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... | 25.895833 | 99 | 0.716412 |
5a5b11581f427fe8e9d2e2fc4417bf179542f0e8 | 5,607 | package com.veken0m.bitcoinium;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.... | 38.9375 | 118 | 0.724808 |
d7a4820441facee2534f35ec237f0dc7ab3c9bd9 | 352 | package com.mars.junit;
import com.mars.mybatis.init.InitJdbc;
/**
* junit
*/
public abstract class MarsJunit {
/**
* 加载项目启动的必要数据
* @param packName
*/
public void init(String packName){
MarsJunitStart.start(new InitJdbc(),packName,this,null);
}
/**
* 单测开始前
*/
p... | 15.304348 | 64 | 0.599432 |
f49ce8464246c66d2fbab45692325608de577ef0 | 7,798 | package com.godcheese.tile.database;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
/**
* @author godcheese [godcheese@outlook.com]
* @date 2018-04-21
*/
public class SqlGenerateProperties {
/**
* 数据库类型,用语解析sql语句
*/
... | 24.522013 | 93 | 0.594127 |
101d45b268e80591e1fef601f45bed17b9d1933a | 3,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 may ... | 39.4625 | 91 | 0.764333 |
5c4524e33bd0670f3009c47d43731fb81b8dc52c | 45 | empty body declaration empty body declaration | 45 | 45 | 0.888889 |
e64697cfb9317c1f800beccd993d32d21e48e67f | 1,162 | import CGAL.Kernel.Point_3;
import CGAL.Kernel.Weighted_point_3;
import CGAL.Triangulation_3.Regular_triangulation_3;
import java.util.Vector;
public class regular_3 {
public static void main(String arg[]){
// generate points on a 3D grid
Vector<Weighted_point_3> P=new Vector<Weighted_point_3>();
int ... | 26.409091 | 79 | 0.610155 |
b9edae2126737e4f388783f47f1802381711139f | 1,135 | package com.teste.weecode.rows;
public class UsuarioRow {
private Long idUsuario;
private String nome;
private Long idPerfilAdm;
private String tituloPerfilAdm;
private String idAreaPadrao;
private String token;
public UsuarioRow() {
}
public UsuarioRow(String token) {
this.token = token;
}
publ... | 16.940299 | 57 | 0.727753 |
07b0902fb59a204f6e247302104b23e0d92bde8d | 44,642 | /*
* Copyright (c) 2015-2020 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 53.527578 | 198 | 0.686573 |
a213e36dd4d81a0b43a12bd0701882c08406024a | 348 | package org.elasticsoftware.elasticactors.tracing;
import org.elasticsoftware.elasticactors.tracing.MessagingContextManager.MessagingScope;
import javax.annotation.Nullable;
public interface LogContextProcessor {
void process(@Nullable MessagingScope current, @Nullable MessagingScope next);
boolean isLogCo... | 26.769231 | 88 | 0.836207 |
c16c9b885b3641ac8405fa640d2ac3ffcb31c2bd | 931 | /*
* Copyright (c) 2013, 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... | 25.162162 | 74 | 0.708915 |
0c994199e6e9288b309de58538ec34adbd3e65a4 | 947 | package io.fabric8.knative.client.demo;
import io.fabric8.knative.client.KnativeClient;
import io.fabric8.knative.serving.v1.Service;
import io.fabric8.knative.serving.v1.ServiceBuilder;
import io.fabric8.kubernetes.api.model.ContainerBuilder;
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabr... | 36.423077 | 89 | 0.662091 |
b7e950187ef5a2594be82ab357c25068035baa3d | 3,831 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* 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 a... | 34.205357 | 120 | 0.599843 |
4c3b9200b755dbe0acf07ed37ab854f8628bec03 | 1,773 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package one;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import ... | 27.276923 | 79 | 0.680767 |
4e0042ec8bb41ff41e98b9ab4dd2b301d3a49de2 | 952 |
package com.docuware.dev.schema._public.services.platform;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImportEntryVer... | 23.219512 | 70 | 0.702731 |
36f0bb2b44767461e75c641ea981f55110c73459 | 1,393 | package com.dw.lib;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public... | 30.955556 | 100 | 0.765255 |
ed8a6650194f40baa1c445bebc72faeaf463e392 | 371 | package fr.pizzeria.exception;
public class UpdatPizzaException extends StockageException {
public UpdatPizzaException() {
super();
}
public UpdatPizzaException(String message, Throwable cause) {
super(message, cause);
}
public UpdatPizzaException(String message) {
super(message);
}
public UpdatPizzaE... | 16.863636 | 62 | 0.749326 |
bd53058c6f1015e3e5f3e1cd34c96a258132b331 | 3,273 | package io.renren.modules.sys.controller;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.renren.common.validator.ValidatorUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 28.46087 | 80 | 0.717385 |
2ca2d34ea8a5cd55a0f2e3c7ae63e4978e0542b5 | 1,332 | /*
* 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 upv.edu.poo.TextFileGenerator;
import java.io.FileNotFoundException;
import java.util.Formatter;
/**
*
* @author HARDCORE
... | 26.117647 | 79 | 0.61036 |
6a2bf1daa66f88cc7c44ae5a559260e7299603dd | 4,906 | /*
* 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 ... | 40.545455 | 102 | 0.665512 |
ce334b093026ee53d29907537ff33f3b178a747d | 2,670 | /**
*
* Generated by JaxbToStjsAssimilater.
* Assimilation Date: Thu Sep 12 10:06:02 CDT 2019
*
**/
package s3000l;
import org.cassproject.schema.general.EcRemoteLinkedData;
import org.stjs.javascript.Array;
import s6000t.SubtaskTrainingLevelDecision;
public class PeriodicTimeLimit extends EcRemoteLinkedData {
... | 23.421053 | 74 | 0.652434 |
ad0f3b613c731927aca9c4dc68686be6de9a3aeb | 13,515 | /*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2021 Nordix Foundation.
* Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
* ===========================================... | 36.136364 | 119 | 0.598002 |
42c40bb0598efb74c52ea9d7789b046ee43b7dda | 657 | package pcd.pinballs.worker;
public abstract class Worker extends Thread {
public Worker(int index) {
super();
this.setName("Worker " + index);
}
protected void log(long millis, String message) {
this.log(message);
if (millis > 0) {
try {
Thread... | 24.333333 | 65 | 0.525114 |
b0b0904aa68483fc05a07906ad0aab4277e08d15 | 1,723 | package ariketa3;
import java.util.Arrays;
public class MergeSortClass {
public static int[] mergeSort(int[] arr) {
return sortuTxikitikHandira(arr, 0, arr.length-1);
}
public static int[] sortuTxikitikHandira( int[] arr,int lehena,int azkena) {
int nElem=azkena-lehena+1;
if (nElem>1) {
... | 22.089744 | 93 | 0.616947 |
fcffa18283fe29f5f95f37024554a1dbdac1e7a6 | 3,440 | /*
* Copyright (c) 2015 SONATA-NFV, UCL, NOKIA, NCSR Demokritos 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
*
... | 36.210526 | 100 | 0.727326 |
ee4d56cf422c5554275aab0f28c7a3c834cf3ed9 | 716 | package com.zdcf.mum;
import java.util.*;
public class MainItemTesst {
public static void main(String[] args) {
Item t1 = new Item("Chilli", 100.0, new Date(2016, 12, 24));
Item t2 = new Item("Rice", 50.0, new Date(2015, 12, 24));
Item t3 = new Item("Beef", 80.0, new Date(2016, 10, 24));
Item t4 =... | 24.689655 | 63 | 0.604749 |
282037cefa50800076fbb7833f87eb87ccec4a16 | 1,394 | package de.patrickmetz.clear_8.emulator;
import de.patrickmetz.clear_8.emulator.events.EmulatorEventListener;
import de.patrickmetz.clear_8.emulator.input.Keyboard;
import de.patrickmetz.clear_8.gui.output.Display;
/**
* The emulator is basically an endless loop. It continuously interprets
* commands from a given g... | 29.659574 | 79 | 0.623386 |
e0e72ecea8eded41c5de50e211d8572af1460484 | 6,362 | package com.qixun.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURL... | 34.204301 | 87 | 0.523892 |
f7d33970273f2ef1600372eda83ef9ab2921091d | 7,279 | // This file is part of PDQ (https://github.com/ProofDrivenQuerying/pdq) which is released under the MIT license.
// See accompanying LICENSE for copyright notice and full details.
package uk.ac.ox.cs.pdq.planner;
import com.google.common.eventbus.EventBus;
import uk.ac.ox.cs.pdq.cost.estimators.CostEstimator;
... | 48.526667 | 114 | 0.752988 |
8f5d19211d1ba606dd54032e4e0b7eef36a40c48 | 5,133 | package org.apache.solr.request.uninverted;
import java.io.IOException;
import org.apache.lucene.index.IndexReader;
import org.apache.solr.request.BlockBufferPool;
import org.apache.solr.request.BlockBufferPool.BlockArray;
import org.apache.solr.schema.FieldType;
public class RamTermNumValue {
private s... | 27.303191 | 169 | 0.725307 |
514dd28d6ce5822943e63fb99c391f10c90ae9da | 192 | /**
* CSV parsers and their factories providing the core functionality.
*
* @author Abdelmonaim Remani
* @version 0.1.0
* @since 0.1.0
*/
package com.polymathiccoder.yap4j.csv;
| 21.333333 | 69 | 0.677083 |
c5540ff51876e3ce597605859938a06513a19336 | 4,580 | /*
* Copyright 2019 NexCloud Co.,Ltd.
*
* 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 ... | 63.611111 | 151 | 0.812664 |
55b25ab25abd5ccb900ec118a9dd8a05cdfccbf6 | 5,947 | package org.innovateuk.ifs.publiccontent.controller;
import org.innovateuk.ifs.competition.publiccontent.resource.PublicContentResource;
import org.innovateuk.ifs.competition.service.CompetitionRestService;
import org.innovateuk.ifs.competitionsetup.core.service.CompetitionSetupService;
import org.innovateuk.ifs.contr... | 49.14876 | 151 | 0.759711 |
993337cab49338549f30036a4071eb16482775f0 | 468 | /*L
* Copyright Moxie Informatics.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/calims/LICENSE.txt for details.
*/
/**
*
*/
package gov.nih.nci.calims2.ui.inventory.characteristics;
import gov.nih.nci.calims2.domain.inventory.characteristics.Characteristics;
import ... | 20.347826 | 76 | 0.747863 |
1b377085f2b1f87875f26e3cbde98fd491604838 | 9,271 | package com.example.zo.diara;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
impo... | 37.840816 | 121 | 0.565311 |
7abfaaa3d2490e92409975941351a4a443e5c404 | 108 | package net.osnixer.automessage.object.interfaces;
public interface Hoverable {
String getHover();
}
| 13.5 | 50 | 0.759259 |
94fd71326e6dee4b736ae7916a4a37b3cce96ee1 | 5,817 | package com.emprestimo.app.processor.options;
import com.emprestimo.app.Script.options.EmpregadorSQL;
import com.emprestimo.app.dto.contato.ContatoDto;
import com.emprestimo.app.dto.dadosbancario.DadosBancarioDto;
import com.emprestimo.app.dto.endereco.EnderecoDto;
import com.emprestimo.app.dto.options.EmpregadorDto;... | 39.842466 | 98 | 0.607873 |
22e6c87bbf6def3c1fc6b44528f17f49d11ee6c2 | 4,687 | /*
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.884354 | 100 | 0.725197 |
306229952555b23558259390f5286debc0a69939 | 5,298 | package com.gl.vn.me.ko.pies.platform.server.rest;
import static com.google.common.base.Preconditions.checkNotNull;
import com.gl.vn.me.ko.pies.base.constant.Constant;
import com.gl.vn.me.ko.pies.base.constant.Message;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.ServerSocketChannel;
impo... | 42.725806 | 110 | 0.784069 |
c768267c572fbbfc0ae0768de75599f59c9ade1c | 117 | package org.minimalj.example.library.model;
public class ExampleFormats {
public static final int NAME = 30;
}
| 13 | 43 | 0.752137 |
e1aa88f46dcda9bdcae530e04fea56883d9041d7 | 982 | /*
* Copyright 2013 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... | 18.528302 | 75 | 0.674134 |
d53742f8665e96e646fef7ac1b0377131159257d | 5,311 | package gg.eris.uhc.customcraft.craft.vocation.duelist.craft;
import gg.eris.commons.bukkit.player.ErisPlayer;
import gg.eris.commons.bukkit.text.TextController;
import gg.eris.commons.bukkit.text.TextType;
import gg.eris.commons.bukkit.util.CC;
import gg.eris.commons.bukkit.util.DataUtil;
import gg.eris.commons.bukki... | 32.582822 | 96 | 0.682734 |
55528705745655d31976b9277c91cd03f4b9d90f | 3,142 | package searching;
/**
* Sparse Vector represents a dimensional mathematical vector. Vectors are mutable:
* their values can be changed after they are created.
*
* Initialization: O(1)
* Operations: Where n is the number of items.
* dot, scale, plus, toString: O(n)
* put, get: O(log n)
* nnz, dime... | 27.561404 | 101 | 0.598027 |
fd8343bd801e2cea07dccdbd18bf8d67412d3969 | 3,407 | package com.lamfire.utils;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
public class ObjectFactory<T> {
private Class<T> claxx;
public ObjectFactory(Class<T> clazz) {
this.claxx = clazz;
}
public T newInstance(... | 45.426667 | 120 | 0.535368 |
16506549002744d1c383739029f767ddcf73ab2c | 9,960 | package cn.edu.cug.cs.gtl.geom;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Arrays;
/**
* Created by ZhenwenHe on 2016/12/8.
* 2017/02/12 finished and checked
*/
public class VectorImpl implements Vector {
private static final long serialVersionUID = 1L;
... | 26.210526 | 82 | 0.544779 |
f86ebb513c335173264f7b76d90d645288331596 | 86 | package com.csci.grammar;
public class ListDef extends java.util.LinkedList<Def> { }
| 21.5 | 58 | 0.77907 |
31c0ae8cc3dc8b4e4ca44d038fe6bdd5a857d07f | 4,636 | /*
* Licensed to Elasticsearch 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 fi... | 37.387097 | 115 | 0.686152 |
e2bfabc63775544a7e743fbbc25aca40fc9138b6 | 3,125 | /*
* Copyright (c) 2008, Rickard Öberg. 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 applicable l... | 33.244681 | 158 | 0.6816 |
94e7908f1008f82db81d6a2e463493eb5448dd0a | 377 | package org.edmcouncil.spec.fibo.weasel.model.property;
import org.edmcouncil.spec.fibo.config.configuration.model.PairImpl;
/**
* @author Patrycja Miazek (patrycja.miazek@makolab.com)
*/
public class OwlDirectedSubClassesProperty extends PropertyValueAbstract<PairImpl> {
@Override
public String toString() {
... | 25.133333 | 84 | 0.769231 |
088a5083051801719764819752a12f48d8015682 | 5,136 | /**
* Copyright (c) 2009-2019, Yegor Bugayenko
* 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 of con... | 35.178082 | 74 | 0.624221 |
7b9d2573d9117c48f4648c8e64a53a899db2fa6f | 1,914 | package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
SinglyLinkedList <Mahasiswa> dataNilai = new SinglyLinkedList<>();
int pilih=4;
//to do
/*Lengkapi member main*/
Scanner in = new Scanner(System.in);
do{
... | 32.440678 | 82 | 0.505747 |
f1e70f821e233f5907e32da4c69ff74a4f7c3c8b | 2,030 | /* 1: */ package com.jgoodies.looks.plastic.theme;
/* 2: */
/* 3: */ import com.jgoodies.looks.plastic.PlasticLookAndFeel;
/* 4: */ import javax.swing.plaf.ColorUIResource;
/* 5: */
/* 6: */ public class SkyKrupp
/* 7: */ extends AbstractSkyTheme
/* 8: */ {
/* 9: */ public Strin... | 35 | 120 | 0.540394 |
908137c29ee1028e60f8092177330bb9f62ca7a6 | 201 | package com.redheads.arla.entities;
// https://www.atlassian.com/incident-management/kpis/severity-levels
// The different message severities
public enum MessageType { INFO, MINOR, MAJOR, CRITICAL }
| 33.5 | 69 | 0.78607 |
af6e7e0b9c45642ba7307b23ee9e58e1ab28d57c | 1,714 | package io.github.phantomstr.testing.tool.config;
import org.apache.commons.configuration2.Configuration;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import static org.testng.AssertJUnit.assertFalse;
public class ConfigProviderTest {
... | 41.804878 | 99 | 0.726954 |
59c9a97953195aec2fb721cb3e927f9e20215921 | 7,664 | /*
* (C) Copyright 2016-2018, by Dimitrios Michail and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* See the CONTRIBUTORS.md file distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the... | 31.80083 | 100 | 0.594076 |
6c2c3f80535a5cf7e4b3bd535f90ffcc384de1f7 | 4,604 | package de.ipk_gatersleben.bit.bi.bridge.brapicomp.testing.runner;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.ipk_gatersleben.bit.bi.bridge.brapicomp.testing.config.Fo... | 37.737705 | 132 | 0.643354 |
64cd98e23832e14b96f84b5c6984dbb82b8577bd | 2,720 | package forms;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Locale;
import java.util.Optional;
import org.junit.Test;
import services.LocalizedStrings;
import services.question.types.IdQuestionDefinition;
import services.question.types.QuestionDefinition;
import services.question.types.Q... | 32.380952 | 86 | 0.699632 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.