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 |
|---|---|---|---|---|---|
a8aea10b6f48a3fda9a96f0ec58cf9afd34803be | 1,248 | package cs451;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class BestEffortBroadcast implements Broadcast, Observer {
private PerfectLinks pl;
private Observer observer;
private Host self;
private List<Host> hosts;
public BestEffortBroadcast(List<Host> hosts, Ho... | 27.733333 | 107 | 0.617788 |
18c7c1ef6cf5c42e1a71ef336198aee96890dfb7 | 6,253 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* 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 availabl... | 28.949074 | 86 | 0.68847 |
08afbe4191b4d2be810fb31960be5fcdbfb0d813 | 2,171 | /*
* Corona-Warn-App / cwa-verification
*
* (C) 2020, T-Systems International GmbH
*
* Deutsche Telekom AG and all other contributors /
* copyright owners license 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 m... | 34.460317 | 111 | 0.75403 |
5d9372b084a2978cb814dac4e5ad27262dbf9d6e | 88 | package com.makefire.anonymous.domain.user.repository;
public class UserRepository {
}
| 17.6 | 54 | 0.818182 |
9a3c2c7721f9e6257d842976b044b968daeb0aba | 5,657 | /* Import1: A Maze-Solving Game */
package studio.ignitionigloogames.twistedtrek.import1.spells;
import studio.ignitionigloogames.twistedtrek.import1.Import1;
import studio.ignitionigloogames.twistedtrek.import1.Messager;
import studio.ignitionigloogames.twistedtrek.import1.PreferencesManager;
import studio.ignitionig... | 31.082418 | 106 | 0.718048 |
f37b13cbe32e2373c4e932cbee7ffed1075d4b9c | 1,762 | package us.slemjet.leetcode.easy.from_301_to_350;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import us.slemjet.leetcode.easy.from_301_to_350.PowerOfThree;
import j... | 27.968254 | 61 | 0.637911 |
e4885fa84e08cd59321d648702f9144dfa57358f | 1,513 | package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.Iterator;
public class User {
String name;
String password;
String email;
String phoneNumber;
ArrayList<libraryItem> itemsCheckedOut;
public User(){}
public User(String name, String password, String email, String p... | 26.086207 | 88 | 0.635823 |
0d611307aa9c999722190cb31ec3807ff156d8c1 | 1,250 | package oasis.core;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Default exception type used by Oasis
*
* @author Nicholas Hamilton
*
*/
@SuppressWarnings("serial")
public class OasisException extends RuntimeException {
/**
* Constructor that takes a message
*
* @param st... | 21.929825 | 54 | 0.608 |
bfc807bf6075af3af5eaffb8c819f3f8aa6f6e68 | 7,396 | /*------------------------------------------------------------------------------
Copyright (c) CovertJaguar, 2011-2019
http://railcraft.info
This code is the property of CovertJaguar
and may only be used with explicit written
permission unless otherwise specified on the
license page at http://railcraft.info/wiki... | 42.022727 | 243 | 0.626825 |
66eebefdc860eff1068b0d9384bad781b1c12544 | 6,797 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 40.700599 | 98 | 0.770046 |
072ae4a4e922824f94543018f9cd519f56efa42a | 1,551 | package com.journaldev.parser.csv;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.apac... | 28.2 | 83 | 0.715023 |
80a498f4cb3c06e5fe69c7ad44e0a72770fe4cf5 | 458 | package edu.mines.model;
import com.amazonaws.auth.policy.Resource;
import org.apache.commons.collections4.Equator;
public class ResourceEquator implements Equator<Resource> {
@Override
//TODO regex match on resource name
public boolean equate(Resource resource, Resource t1) {
return resource.get... | 25.444444 | 59 | 0.709607 |
525f6c77b1652dbd1b32bf27d1c710a6c2cd53a7 | 228 | // BSD License (http://lemurproject.org/galago-license)
package org.lemurproject.galago.core.index.source;
/**
*
* @author jfoley
*/
public interface BooleanSource extends DiskSource {
public boolean indicator(long id);
}
| 20.727273 | 55 | 0.745614 |
09238925b3079e1b92ed73e93fc78f08ff72f9cb | 1,676 | package com.lickhunter.web.configs;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.spr... | 38.090909 | 119 | 0.754177 |
b06d55d101f091161898fd1b17d3d08236955ba4 | 20,406 | /*
* XML Type: CT_RadarSer
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/chart
* Java type: org.openxmlformats.schemas.drawingml.x2006.chart.CTRadarSer
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.chart.impl;
import javax.xml.namespace.QName;... | 33.728926 | 162 | 0.629668 |
53b9ed0683076eda0f7480ed58534c5e06e9a0c1 | 6,387 | package org.enodeframework.eventing;
import org.enodeframework.common.function.Action1;
import org.enodeframework.common.io.Task;
import org.enodeframework.messaging.IMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.concurrent.CompletableFuture;
import java.uti... | 40.942308 | 189 | 0.591044 |
9fe0825accc588a6de6b07e63ba17f038e55987e | 35,449 | /*
* Copyright [2013-2021], 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 app... | 42.658243 | 168 | 0.602781 |
fb0b50371ebcc5e5cba668f5dc45991dd8c65ef3 | 3,061 | /*
* DISCLAIMER
*
* Copyright 2016 ArangoDB GmbH, Cologne, Germany
*
* 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
*
*... | 22.674074 | 88 | 0.633126 |
de22c5a1cfe66f484fd807fb79b428be727c1c81 | 4,422 | package es.upv.indigodc.location;
import alien4cloud.deployment.matching.services.nodes.MatchingConfigurations;
import alien4cloud.deployment.matching.services.nodes.MatchingConfigurationsParser;
import alien4cloud.model.deployment.matching.MatchingConfiguration;
import alien4cloud.model.orchestrators.locations.Locati... | 35.376 | 99 | 0.749435 |
2c0bf10ee588025dcf0fc2f0eec37ab960ec410f | 291 | package com.it666.jdbc.domain;
public class User {
String name1;
String pwd;
public String getName1() {
return name1;
}
public void setName1(String name1) {
this.name1 = name1;
}
public String getPwd() {
return pwd;
}
public void setPwd(String pwd) {
this.pwd = pwd;
}
}
| 14.55 | 37 | 0.67354 |
4d12f07d21efb675dbe81a8e6919dde671f3933c | 3,944 | package io.swagger.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Objects;
import java.util.UUID;
/**
... | 24.805031 | 130 | 0.610041 |
0dc0070d4f153364ced76c89bd55ab0ab97f9509 | 1,149 | package ru.hh.oauth.subscribe.apis.service;
import ru.hh.oauth.subscribe.core.builder.api.DefaultApi20;
import ru.hh.oauth.subscribe.core.model.AbstractRequest;
import ru.hh.oauth.subscribe.core.model.OAuthConfig;
import ru.hh.oauth.subscribe.core.model.OAuthConstants;
import ru.hh.oauth.subscribe.core.model.Token;
im... | 37.064516 | 106 | 0.753699 |
17f7af62f757cc065fffe1a0face40931f1d5981 | 1,769 | /*-
* #%L
* FXFileChooser
* %%
* Copyright (C) 2017 - 2019 Oliver Loeffler, Raumzeitfalle.net
* %%
* 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/lice... | 27.215385 | 85 | 0.630865 |
cc36566e1ed0fb51c6bd8316ff37c5d7c6329d18 | 518 | package org.opencb.opencga.storage.core.variant.adaptors.iterators;
import org.opencb.biodata.models.variant.Variant;
import java.util.function.UnaryOperator;
public class MapperVariantDBIterator extends DelegatedVariantDBIterator {
private final UnaryOperator<Variant> map;
MapperVariantDBIterator(VariantD... | 24.666667 | 86 | 0.735521 |
6330fae78c16c60d45aed22f721a2b8952ad9276 | 898 | package pl.edu.utp;
import java.sql.Timestamp;
public class Cars {
private String marka;
private String model;
private int cena;
private String typNadwozia;
private String kolor;
private Timestamp czas;
private int id;
public Cars(int Id, String Marka, String Model, int Cena, String TypNadwo... | 16.035714 | 110 | 0.642539 |
b342867424ed00d9a9570ed297ec1b184f35880c | 626 | package io.bootique.job.runnable;
import java.util.Map;
import io.bootique.job.Job;
public interface RunnableJobFactory {
/**
* Creates a {@link RunnableJob} object that combines job instance with a
* set of parameters.
*
* @param job
* A job instance to run when the returned {@link RunnableJ... | 27.217391 | 77 | 0.664537 |
3856c5385aab539ac02f7b2eb44926eb3bc9eaea | 21,245 | /*
* Copyright 2017 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 in... | 51.440678 | 277 | 0.662132 |
8803c20c93b1adf9ccc9347d5c915d19dea87598 | 18,174 | /*
* Copyright 2015-present Facebook, 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... | 39.422993 | 100 | 0.665126 |
703c05e28446587926c850d045beaed688c99581 | 1,094 | package com.emc.mongoose.api.model.item;
import com.github.akurilov.commons.io.Input;
import com.github.akurilov.commons.system.SizeInBytes;
import java.io.IOException;
import java.util.List;
public final class NewDataItemInput<D extends DataItem>
extends NewItemInput<D>
implements Input<D> {
private final SizeIn... | 23.782609 | 91 | 0.731261 |
ca4980823d14ee54a487f7c339f566f495f7ad61 | 542 | /*
* Copyright (c) 2021 Mohit Saini, Under MIT License. Use is subject to license terms.
*
*/
package mscalculator.style;
import java.awt.Font;
import java.awt.Dimension;
/**
* Style interface help program to set the Style and Scale
* of the frame, buttons and their fonts used in this Calculator.
*/
public int... | 24.636364 | 86 | 0.714022 |
9be38c0325bb1320e531799943c7b40e1f71730a | 1,503 | import support.Prime;
import support.Problem;
import java.math.BigInteger;
/**
* Created by Mark on 7/21/16.
*
* https://projecteuler.net/problem=26
*/
public class Problem026 extends Problem {
@Override
public long solveProblem() {
long longestRecurringSequenceLength = -1;
long longestRe... | 30.673469 | 116 | 0.606786 |
3faa964929d41b5caf71ff5041fba691de20208c | 9,981 | package ca.edchipman.silverstripedt.ss_2_3.project;
import java.io.IOException;
import java.io.InputStream;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Fil... | 63.573248 | 211 | 0.753432 |
d0b3c5cae989b43867bef5af6e3fd3e3d18d0d01 | 1,733 | package CodingNinjas.LanguageToolsAndTimeComplexity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
class solution {
public static ArrayList<Integer> longestSubsequence(int[] arr) {
Map<Integer, Boolean> isVisited = new HashMap<>();
int currentStart = arr[0], currentLength = 0,... | 29.372881 | 107 | 0.61858 |
09269446219d0e4ce09b7c5000c5fecbe739f625 | 1,774 | /*
* Copyright 2021 Apollo 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 applicable law or agreed to i... | 24.638889 | 75 | 0.696731 |
6d1a62b683aa151dddfd663b5297ed5df8a8d49c | 2,936 | package com.github.vladislavgoltjajev.personalcode.locale.latvia;
import com.github.vladislavgoltjajev.personalcode.exception.PersonalCodeException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.LocalDate;
import static org.assertj.core.api.Assertions.assertThat;
import... | 38.631579 | 102 | 0.690736 |
2ef4db39a7981cad0c994f2ddfa4b99c26b717b4 | 4,806 | /*
* @author Gabriel Oexle
* 2015.
*/
package peanutencryption.peanutencryption.SQL;
import java.io.Serializable;
import java.sql.Timestamp;
import java.text.MessageFormat;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import andro... | 29.850932 | 151 | 0.616729 |
bed6a1c59b80c4f1b14e3dcfe2f096f96d9823d8 | 189 | package models;
import javax.persistence.*;
@Entity
public class ExistingPerson {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public String email;
public String password;
}
| 18.9 | 49 | 0.767196 |
6c98d48e93e3f856d3c44b855e58c25bab7b181e | 1,830 |
package mage.cards.p;
import mage.abilities.Ability;
import mage.abilities.condition.common.KickedCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.DrawDiscardControllerEffect;
import mage.abilities.effects.common.discard.DiscardTargetEffect;
import mage.abiliti... | 31.016949 | 87 | 0.700546 |
dfead7cb76dea0c17e829329f66a1f152e47094f | 651 | package dev.victorbrugnolo.webcrawler;
import dev.victorbrugnolo.webcrawler.configuration.BeanConfiguration;
import dev.victorbrugnolo.webcrawler.configuration.EnvironmentAccessor;
import dev.victorbrugnolo.webcrawler.services.impl.HttpServiceImpl;
import dev.victorbrugnolo.webcrawler.utils.Logger;
public class Main ... | 34.263158 | 85 | 0.798771 |
6d323f15102aa5bb14ac3ce748f442e3694216a8 | 3,486 | package net.conjur.api;
import net.conjur.util.Args;
import java.io.Serializable;
import java.net.URI;
/**
* An <code>Endpoints</code> instance provides endpoint URIs for the various conjur services.
*/
public class Endpoints implements Serializable {
<<<<<<< HEAD
=======
>>>>>>> upstream/master
private final... | 37.085106 | 158 | 0.683305 |
e9cc5118016623a322f980f0051c99372a64c038 | 7,696 | package com.skcc.cloudz.zcp.portal.alert.alerts.service;
import java.util.Arrays;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.s... | 30.784 | 112 | 0.737916 |
9318dea4479d6acac4e1469229c7e6c7f8c1a60a | 14,669 | /*
Copyright 2016 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 34.273364 | 148 | 0.668007 |
b331bb68e3e48539f2764a1376ca6bf2ef1f3494 | 1,941 | /**
* Copyright 2008-2014 Jordi Hernández Sellés, Ibrahim Chaehoi
*
* 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 r... | 30.809524 | 104 | 0.72849 |
aa646d9f770531be3823d7c91e606e5bdb9d80bc | 1,117 | package com.qjx.qmall.order.web;
import com.alipay.api.AlipayApiException;
import com.qjx.qmall.order.config.AlipayTemplate;
import com.qjx.qmall.order.service.OrderService;
import com.qjx.qmall.order.vo.PayVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;... | 24.282609 | 92 | 0.767234 |
03e71cff044d88e81ff05b37624f1e2a7f36bfce | 1,002 | package mcjty.rftools;
import net.minecraft.util.math.BlockPos;
/**
* This class holds information on client-side only which are global to the mod.
*/
public class ClientInfo {
private BlockPos selectedTE = null;
private BlockPos destinationTE = null;
private BlockPos hilightedBlock = null;
private... | 22.266667 | 80 | 0.677645 |
478be922f8bdf948df8b4aa52f5abe2b9e5edd07 | 689 | package com.jikezhiji.domain;
import org.springframework.data.domain.Persistable;
import java.io.Serializable;
/**
* Created by E355 on 2016/8/25.
*/
public class AggregateRoot<ID extends Serializable> implements Persistable<ID> {
public static final String VERSION = "version";
private ID id;
private ... | 18.131579 | 80 | 0.626996 |
e156ed863d6a0ad43205c207bf89e74335a60e5e | 924 | package org.myrobotlab.service.interfaces;
import org.myrobotlab.framework.interfaces.ServiceInterface;
public interface VideoProcessor extends ServiceInterface {
default boolean publishCapturing(Boolean b){
return b;
}
/**
* This is where video is processed.
* In OpenCV a frame is g... | 24.315789 | 71 | 0.6829 |
d699cc5a11bdbd9cc6dc3a8cbc65871b031d18ff | 500 | package T13DesignPatterns.lab.Singleton;
public class Main {
public static void main(String[] args) {
SingletonDataContainer instance = SingletonDataContainer.getInstance();
instance.addPopulation("Sofia", 120000);
instance.addPopulation("Varna", 90000);
System.out.println(instanc... | 29.411765 | 80 | 0.712 |
9279b2b4f483558a1aae66cad8e420d374e011de | 2,394 | package com.mariosangiorgio.ratemyapp;
import android.content.Context;
import android.content.SharedPreferences;
public class SharedPreferencesManager implements PreferencesManager{
private final static String SHARED_PREFERENCES_ID = "RateMyApp";
private final static String ALERT_ENABLED = "alertEnabled";
... | 34.2 | 91 | 0.707185 |
8f5ae991d0f68edee1f66241895d1970793edd08 | 9,143 | //import io.ipfs.api.Pair;
import io.ipfs.api.Peer;
import io.ipfs.multihash.Multihash;
import org.javatuples.Pair;
import org.javatuples.Quartet;
import org.javatuples.Quintet;
import org.javatuples.Triplet;
import org.nd4j.linalg.api.ops.custom.Tri;
import org.web3j.abi.datatypes.Int;
import javax.crypto.SecretKey;
... | 55.412121 | 200 | 0.745707 |
2949a0c6ec1f03c279493ef74f6d5c25271435a6 | 1,060 | package com.ack.adventureandconquer.game.creature.npc.swimmer;
import com.ack.adventureandconquer.game.creature.npc.IsNpcType;
import com.ack.adventureandconquer.game.creature.npc.Npc;
import com.ack.adventureandconquer.game.creature.npc.NpcFactory;
import java.util.List;
/**
* Created by saskyrar on 18/01/15.
*/
... | 23.043478 | 85 | 0.691509 |
861c9d16f8037f34087eceedb6b0d7b0fb30c208 | 598 | package com.test.cglib.jdk;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class InvocationHandlerImpl implements InvocationHandler {
private final Object subject;
public InvocationHandlerImpl(Object subject) {
this.subject = subject;
}
@Override
publ... | 26 | 87 | 0.66388 |
213775ae5d2348fd16b709ac7a1a83fb9abd53d1 | 282 | package io.seata.sample.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.seata.sample.entity.AccountTbl;
/**
* <p>
* Mapper 接口
* </p>
*
* @author jsonyao
* @since 2021-04-27
*/
public interface AccountTblMapper extends BaseMapper<AccountTbl> {
}
| 16.588235 | 66 | 0.719858 |
6a097417cc5cb21b94668c03bea49f85824ea1a6 | 4,585 | package one.empty3.feature.selection;
import one.empty3.feature.PixM;
import one.empty3.io.ProcessFile;
import one.empty3.library.ITexture;
import one.empty3.library.Lumiere;
import one.empty3.library.Point3D;
import one.empty3.library.Scene;
import one.empty3.library.core.nurbs.ParametricCurve;
import one.empty3.fe... | 29.772727 | 135 | 0.521483 |
9c09cbd6b30d69634f8f3ae4accebb5c9ea72057 | 4,057 | package com.orientechnologies.orient.client.remote.message;
import com.orientechnologies.common.exception.OErrorCode;
import com.orientechnologies.orient.client.remote.ORemotePushHandler;
import com.orientechnologies.orient.client.remote.message.live.OLiveQueryResult;
import com.orientechnologies.orient.core.serializa... | 30.051852 | 108 | 0.722209 |
b2d698dc54734c7bdb11bee6061caeaa4b5ee212 | 255 | package com.socrata.datasync.config.userpreferences;
public class UserPreferencesUtil {
static String prefixDomain(String s) {
if(s.contains("//")) {
return s;
} else {
return "https://" + s;
}
}
}
| 21.25 | 52 | 0.552941 |
4f3711b913daa0f8e9e174c377f6999e97d4332a | 1,643 | package com.google.musicanalysis.site;
import com.google.musicanalysis.util.Secrets;
import java.io.IOException;
import java.net.URI;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.google.musicanalysis.util.Constants;
import javax.servlet.annotation.WebServlet;
@WebServlet("/api/oauth/cal... | 26.5 | 96 | 0.72185 |
6cc959946ad5c98c63c898fbe5f7dde8ada54723 | 451,857 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// services/network/public/mojom/network_cont... | 42.26913 | 298 | 0.637633 |
3d0ea586eab213d4a3deea6080575fa73e80d1d0 | 12,722 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 52.570248 | 191 | 0.741157 |
05badeeeb482449e74b8c2d507a86e96dccf61dc | 1,029 | package com.loopperfect.buckaroo.serialization;
import com.google.common.base.Preconditions;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.loopperfect.buckaroo.Identifier;
import jav... | 35.482759 | 145 | 0.752187 |
c612671e8ee236f710876be1a5989b65089c62d4 | 5,886 | package com.flkoliv.subtitles.beans;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import com.flkoliv.subtitles.dao.DaoFactory;
import com.flkoliv.subtitles.dao.FilmDao;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.F... | 25.703057 | 97 | 0.648488 |
a5dc7e7b199a800b0834d3763c40a1cf24690ca2 | 651 | package org.jojo.flow.model.api;
import java.util.List;
/**
* This interface represents a data bundle, i.e. a constant-sized array of {@link IData} with possibly
* different types.
*
* @author Jonathan Schenkenberger
* @version 1.0
*/
public interface IDataBundle extends IRecursiveCheckable {
/**
... | 27.125 | 103 | 0.688172 |
a32bc36cae602170dcc2082558be9487324346ec | 2,843 | /*
* Copyright (c) 2020, Fraunhofer AISEC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 29.614583 | 79 | 0.614492 |
97803b82d64fd5d64fa35b987fbe94029a153392 | 528 | package com.loxmeetsbagel.api.user.repository;
import com.loxmeetsbagel.api.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
public interface UserReposito... | 35.2 | 87 | 0.80303 |
16fc6f03e93a6d77be0d08b9621ea565ffdeacdc | 6,899 | package benchmark.rdfsreasoning.dataset;
import benchmark.eldlreasoning.compression.CompressionTests;
import org.apache.jena.graph.Node;
import org.apache.jena.graph.Node_Literal;
import org.apache.jena.sparql.util.NodeUtils;
import org.apache.jena.vocabulary.RDF;
import org.apache.jena.vocabulary.RDFS;
import org.ecl... | 40.822485 | 125 | 0.649804 |
82424b8db75907d9182c3f525930efec6afabba0 | 1,422 | package com.github.artfultom.spacex.request;
import com.github.artfultom.spacex.SpaceXClient;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.util.EntityUtils;
import java.io.IOException;
import java.... | 30.255319 | 95 | 0.639944 |
684a5e2d224d616590a64a4d79ca3d5175d3ce1e | 1,248 | package com.mapper;
import com.model.Uxinxi;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Mapper
public interface UxinxiMapper {
/**
* This method was generated by MyBatis Generator. This method ... | 29.714286 | 159 | 0.758013 |
6b5d63928899abd7d727e9a982542fd0fe720e15 | 759 | package test.general;
/**
* In this example, the constructor for class A passes the new instance of A to B.doSomething.<br>
* As a result, the instance of A—and all of its fields—escapes the scope of the constructor.
*/
public class EscapeAnalysis {
public static void main(final String args[]) {
new A(... | 20.513514 | 98 | 0.632411 |
1c1a569c88d5fe3a4ec61f159c33c16655bee94f | 3,917 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.18 at 02:29... | 25.601307 | 141 | 0.60531 |
ee25aee4ca923191a8819f0c23efa32c63865bf1 | 20,042 | package org.springframework.security.web.authentication.rememberme;
import java.lang.reflect.Method;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impo... | 41.238683 | 155 | 0.685461 |
bb392f91ba70ad702d72bf977040f7e21ed93a09 | 383 | public String read(String url) throws IOException {
URL myurl = new URL(url);
BufferedReader in = new BufferedReader(new InputStreamReader(myurl.openStream()));
StringBuffer sb = new StringBuffer();
String inputLine;
while ((inputLine = in.readLine()) != null) sb.append(input... | 38.3 | 90 | 0.624021 |
29e0afa67d6408061e072038d6c590ee5f5afaba | 322 | package com.blog.service;
import com.blog.bean.Theme;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ThemeService {
int addTheme(Theme theme);
int deleteThemeById(int id);
int updateTheme(Theme theme);
List<Theme> getThemes();
Theme getThemeById(int id);
... | 16.1 | 43 | 0.723602 |
fb7f8516c956e16f5c19d3c2e46b30a687cb53b5 | 717 | package language.tree.expression;
import org.objectweb.asm.MethodVisitor;
import language.compiler.SymbolTable;
import language.compiler.Token;
public class ArraySizeExpression extends Expression {
public final Expression array;
public ArraySizeExpression(Token firstToken, Expression param) {
super(firstToken... | 23.129032 | 84 | 0.771269 |
0b83376be98d4109dfd6f0a675573ffbff284d90 | 4,370 | package cn.micro.biz.commons.trace;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import lombok.extern.slf4j.Slf4j;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
impor... | 33.615385 | 149 | 0.556064 |
ef9fb63268498fdc4fb72d43e6c0adefadf4bade | 6,590 | package Source;
import java.util.Scanner;
public class MainMenu {
// DECLARAR VARIABLES GLOBALES
private int statusCount, alertCode;
private String[] menus, names;
private String rPlayer;
private int[][] status;
private Scanner input;
// INICIALIZAR VARIABLES
public MainMenu() {
rPlayer = "Jugado... | 27.231405 | 113 | 0.579059 |
76015d6a423b25ba774af4405a69f8559575f85e | 1,199 | package com.example.administrator.newmovie.CustomView;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.example.administrator.newmovie.R;
/**
* Created by Administrator on 2017/10/11.... | 24.469388 | 76 | 0.688073 |
f2248f24987e803de6060ee86cd2b394153cdc39 | 4,873 | /*
* Copyright 2018-2022 adorsys GmbH & Co KG
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. This progra... | 41.29661 | 92 | 0.712703 |
ccb5903effe4291a543958090132a3fb3e38bba5 | 1,940 | package net.mishna;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.Window;
import net.mishna.utils.DBAdapter;
public class SplashScreen extends Activity {
// TODO : add the app initilize h... | 25.866667 | 122 | 0.581959 |
04e7dfdc9d61c94cff565a42c5761625d11fb941 | 5,561 | package ru.otus.nio;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import org.slf4j.Lo... | 35.420382 | 100 | 0.596655 |
9615f3dcaa9baf00a8e9457ed958f655a7229353 | 1,498 | package org.frameworkset.tran.es;
/**
* Copyright 2008 biaoping.yin
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 30.571429 | 94 | 0.764352 |
7165c2eb6fb7bdd6d7ac4c2ee7ac4ebe7ea73032 | 21,247 | /*
* Copyright (c) 2021 Titan Robotics Club (http://www.titanrobotics.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | 61.585507 | 198 | 0.655528 |
459420b74e3f2c50994a7ffd6e6cbfbf3cd242c2 | 1,755 | package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import net.minecraft.util.BlockPos;
public class S28PacketEffect implements Packet<INetHandlerPlayClient> {
... | 29.745763 | 104 | 0.747009 |
ec9afa989bb44641972cfbc31d077fa32a79e2f0 | 3,973 | package com.mark.test.framework.server.client;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
/**
* Created by mark .
* Data : ... | 32.040323 | 266 | 0.555248 |
37a5798e8c4bc7e8884ab2cb3f08b98e348f3ee9 | 1,884 | /*
* Copyright (C) 2020 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 29.904762 | 138 | 0.727707 |
a4086824a78e6b2c397b961ce8a52557b5bd72ae | 954 | package com.github.jacal.demo.groups.domain;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEn... | 25.105263 | 64 | 0.759958 |
1c9b7c2876b240a20b3f6f246a5ae51cec85ec69 | 4,501 | /**
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 requir... | 31.697183 | 102 | 0.714064 |
6c1e5b409427b237fe09d5bc85b6bf4089ae3c31 | 6,416 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 35.252747 | 114 | 0.63404 |
82c19a7b69327ad22288c5b08a471ab860f94617 | 1,545 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos.Rpc.proto
package POGOProtos.Rpc;
public interface GymDisplayProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Rpc.GymDisplayProto)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated ... | 26.637931 | 81 | 0.688026 |
c01577087df7175768e91eab9621d13310c0e0e4 | 2,151 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.smartdashboard.S... | 26.8875 | 87 | 0.689447 |
f45f03166521187cf0d9e3e83e5fce21630c38e6 | 3,668 | package people.source.webcrawler;
import edu.uci.ics.crawler4j.crawler.CrawlConfig;
import edu.uci.ics.crawler4j.crawler.CrawlController;
import edu.uci.ics.crawler4j.crawler.WebCrawler;
import edu.uci.ics.crawler4j.fetcher.PageFetcher;
import edu.uci.ics.crawler4j.robotstxt.RobotstxtConfig;
import edu.uci.ics.crawler... | 28.88189 | 89 | 0.698201 |
6734329b826a52ca984002b6912d0e470f20af5e | 12,423 | package org.carlspring.cloud.storage.s3fs;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.time.Duration;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
import software.amazo... | 34.412742 | 154 | 0.658617 |
447e55eb8f0fb27467e7e0a7ee8ccd8a97432f12 | 3,538 | package io.home.pi.web.controller;
import io.home.pi.persistence.model.TokenLog;
import io.home.pi.persistence.model.User;
import io.home.pi.persistence.service.TokenLogService;
import io.home.pi.persistence.service.UserService;
import io.home.pi.service.UserAuthService;
import io.home.pi.service.UserRegService;
impor... | 38.456522 | 129 | 0.710854 |
346b2939cae2555ebf3516f8830a0bf182520f8e | 4,200 | package de.bmoth.modelchecker.ltl;
import de.bmoth.TestParser;
import de.bmoth.modelchecker.ModelCheckingResult;
import de.bmoth.modelchecker.esmc.ExplicitStateModelChecker;
import de.bmoth.parser.ast.nodes.MachineNode;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.A... | 31.111111 | 64 | 0.554524 |
367c694fc6bf9140ea31fc7f44332435b0307047 | 586 | package dev.hephaestus.glowcase.client.gui.screen.ingame;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.LiteralText;
public abstract class GlowcaseScreen extends Screen {
protected GlowcaseScreen() {
super(LiteralText.EMPTY);
}
@Overr... | 24.416667 | 80 | 0.766212 |
810d8d6498ed666d132460c0c28a5505a1ab368d | 427 | package com.salesmanager.core.model.shoppingcart;
import com.salesmanager.core.model.catalog.product.attribute.ReadableProductOptionValue;
public class ReadableShoppingCartAttributeOptionValue extends ReadableProductOptionValue {
/**
*
*/
private static final long serialVersionUID = 1L;
private String name;
... | 21.35 | 90 | 0.775176 |
7260589905fc6037dd559825ce06b60fe5fc2cb2 | 78,832 | // Generated from /home/vlad/Code/jvaas-platform/jvaas-postgresql/src/main/resources/antlr/SQLParser.g4 by ANTLR 4.8
package io.jvaas.sql.postgresql.gen;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link SQLParser}.
*
* ... | 34.289691 | 116 | 0.737505 |
806d5f913480514d4e7057a9eb5955ab8c382d24 | 287 | package org.fintx.accounting.util;
import org.fintx.util.UniqueId;
public final class Ids {
private Ids() {
throw new RuntimeException("Not allowed to create Ids instance");
}
public static String getId() {
return UniqueId.get().toBase64String();
}
}
| 19.133333 | 73 | 0.665505 |
4c0b22ba4dac3a4efdf7f0035068663c04587a23 | 1,098 | package com.simibubi.create.foundation.utility.outliner;
import com.mojang.blaze3d.vertex.PoseStack;
import com.simibubi.create.foundation.render.SuperRenderTypeBuffer;
import net.minecraft.util.Mth;
import net.minecraft.world.phys.AABB;
public class ChasingAABBOutline extends AABBOutline {
AABB targetBB;
AABB pr... | 25.534884 | 84 | 0.735883 |
984ad3d3983120421230fe28306a7a498f4e81b1 | 381 | package symbolicexecution.exceptions;
@SuppressWarnings("serial")
public class ReferenceNotFoundException extends RuntimeException {
private final String ref;
public ReferenceNotFoundException(String reference) {
super("Reference String \"" + reference + "\" was not found.\n");
this.ref = reference;
... | 23.8125 | 68 | 0.71916 |
94f81caabcc1715e3c0f2323f0e2f6179ff4c905 | 370 | /**
* Базовые алгоритмы
*/
open module xyz.cofe.ecolls {
requires java.base;
requires transitive java.logging;
exports xyz.cofe.ecolls;
exports xyz.cofe.collection.graph;
exports xyz.cofe.collection;
exports xyz.cofe.fn;
exports xyz.cofe.iter;
exports xyz.cofe.num;
ex... | 23.125 | 39 | 0.656757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.