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
6b44f2a0e0c35d659bf0f1250bfc90fc7ee1cd4f
177
package generics.three; /** * Abstract base class for implementations of an interface * * @param <T> */ public abstract class AbstractImplementationII<T> { }
13.615385
59
0.666667
3cac17219a1e9706431de3a3490fddc41e11ac18
15,886
/*- * ============LICENSE_START======================================================= * SDC * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ===================================================================...
51.245161
160
0.726111
3b5395c5c5f69f4dff8425d6279546cb32abf102
527
package videogame; public abstract class Entity { protected String name; protected int lifePoints = 0; public Entity(String name, int lifePoints) { assert(lifePoints >= 0); this.name = name; this.lifePoints = lifePoints; } public final boolean isAlive() { return lifePoints > 0; } public final int ...
19.518519
58
0.741935
74b627ebc55ad912092bba5060f095150e72b4bc
3,438
package jnc.foreign; import jnc.foreign.byref.IntByReference; import jnc.foreign.typedef.size_t; import jnc.foreign.typedef.uintptr_t; import org.junit.jupiter.api.Test; import java.nio.charset.StandardCharsets; import java.util.concurrent.atomic.AtomicBoolean; import static org.junit.jupiter.api.Assertions.*; publ...
28.413223
106
0.633217
a2546bf897297a0c8d33f6eb6d53441261b76518
7,349
/** * Project Name:Android_Car_Example * File Name:AMapUtil.java * Package Name:com.amap.api.car.example * Date:2015年4月7日下午3:43:05 */ package com.ruitukeji.zwbh.utils.amap; import android.graphics.Color; import android.util.Log; import com.amap.api.maps2d.AMap; import com.amap.api.maps2d.model.BitmapDescriptor...
38.883598
130
0.619404
bf535800a93825e5f48b9f519d0401209ac42966
1,980
package patterns.abstractfactory.fluffycat; import java.util.Calendar; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * http://www.fluffycat.com/Java-Design-Patterns/Abstract-Factory/ */ public class TestAbstractSoupFactory { private static Logger logger = LoggerFactory.getLogger(TestAbs...
38.823529
129
0.717677
ab512e0e9b75723003871c462fe0bb4a5f36120f
2,210
/* * Copyright 2006-2021 WebPKI.org (http://webpki.org). * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
29.078947
106
0.599095
09e068423f855d8ee3f1a88fce0c06b25f4ae6dc
639
package utils; public class ProbabilityItemCharger implements ProbabilityItem { private int relativeProb; private String chargerType; public ProbabilityItemCharger(String chargerType, Double relativeProbabilityPercent) { super(); relativeProbabilityPercent *= 100; this.relativeProb = relativePro...
19.96875
90
0.732394
36b36690e887ce19808c18301e5e9e44bbfe084d
3,185
package me.efnilite.skematic.elements.expressions; import ch.njol.skript.Skript; import ch.njol.skript.classes.Changer; import ch.njol.skript.doc.Description; import ch.njol.skript.doc.Examples; import ch.njol.skript.doc.Name; import ch.njol.skript.doc.Since; import ch.njol.skript.lang.Expression; import ch.njol.skrip...
29.220183
158
0.681633
614685bae281b88c28f6d845305102b5b2f30e42
192
@lombok.Builder public class BuilderWithDeprecatedField { private String bar; @Deprecated private String foo; @Deprecated @lombok.Singular private java.util.List<String> xyzs; }
16
41
0.755208
f3794a359e6afbc6c41ef83f367595bce2e050f1
546
package com.qunar.im.base.structs; /** * Created by hubin on 2018/3/7. */ public class NewMessageStatus { public final static int STATUS_FAILED = 0; public final static int STATUS_SUCCESS =1; public final static int STATUS_PROCESSION = 2; public final static int STATUS_DELIVERY = 8; public fina...
28.736842
64
0.74359
9e0568bfe039cec2461b9f81c1f5814e9ccbeaf4
284
package me.jbduncan; public record PrefixExpression(TokenType operator, Expression right) implements Expression { @Override public void print(StringBuilder builder) { builder.append("(").append(operator.punctuator()); right.print(builder); builder.append(")"); } }
25.818182
92
0.728873
7f96d6856bb13bcf7c62da999c6ec8b7dd81d9dc
1,581
package raptor.spark.demo.hive; import org.apache.spark.sql.SparkSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HiveMain { private static final Logger logger = LoggerFactory.getLogger(HiveMain.class); public static void clean(SparkSession spark) { logger.info("cleaning ...")...
27.736842
103
0.647059
bf4962d8108cbe5964ac309897ce4901757bb6bd
2,446
package com.lovecyy.sso.service.impl; import com.lovecyy.sso.common.dto.HpUser; import com.lovecyy.sso.common.mapper.HpUserMapper; import com.lovecyy.sso.common.service.HpUserService; import com.lovecyy.sso.common.utils.MapperUtils; import com.lovecyy.sso.service.LoginService; import com.lovecyy.sso.service.redis.serv...
31.358974
96
0.632052
277b772a62a773b310a9c025f0c4fcaf1252e364
7,311
package io.github.lzmz.meetups.config; import io.github.lzmz.meetups.exceptions.ApiError; import io.swagger.v3.core.converter.AnnotatedType; import io.swagger.v3.core.converter.ModelConverters; import io.swagger.v3.core.converter.ResolvedSchema; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.mode...
39.95082
147
0.699494
5395ec91ba12c606b83ea0002b8a1efd5990fa5b
2,053
/* * Copyright 2013 Hippo B.V. (http://www.onehippo.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 app...
37.327273
115
0.786654
6b563301fb4d78d16fece1d9a9c4b5e39d177c74
689
package org.iipg.hurricane.db.schema; public class Relation { public String getName() { return name; } public void setName(String name) { this.name = name; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getFrom() { return from; } pub...
16.804878
37
0.679245
726c99c0fe1496c2f51ebefb3e7c5cf50df5d944
899
package com.example.administrator.viewfrag; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.administrator.ustc_health.R; import com.example.admi...
32.107143
123
0.785317
52b07b9982e247deb42b43b3afc0cb93a0d5f91f
941
package com.zedeff.twittererer; import android.app.Application; import com.zedeff.twittererer.services.TwitterService; import com.zedeff.twittererer.services.TwitterServiceImpl; import com.twitter.sdk.android.Twitter; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; import rx.Scheduler; ...
21.883721
86
0.742827
3f502f6c4446ef4fa1ceb95cec1815c856b89966
119
package com.whiletrue.ct4j.tasks; // TODO: ??? public enum TaskType { Single, RepeatableTask, Internal }
11.9
33
0.655462
71d6a9e3236ac012acd5c404ebffc18399cd93d8
9,356
/* * (C) Copyright 2018 Nuxeo (http://nuxeo.com/) and others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
42.527273
119
0.672617
5ba9c7aba8bb618a181cb87228cc84afd90f0305
1,739
package simulationDrivers; import java.util.ResourceBundle; import cellManager.Grid; import javafx.scene.chart.XYChart; /** * @author Diane Hu Graph subclass that creates a graph object for the game of * life simulation. Depends on javafx chart imports. Used in simulation * subclas for this simul...
25.573529
96
0.714779
79c71231fd6b7bb12a235009d3d424f2002a93a5
2,902
/* * 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.danielgiraldo.mercancia.controllers; import com.danielgiraldo.mercancia.models.entity.Cargo; import com.danielgira...
36.275
80
0.715713
be27700125e401785bdda67b3c7cdf3f740f6c49
753
package app.simone.multiplayer.model; import android.os.Bundle; import com.facebook.AccessToken; import com.facebook.GraphRequest; import com.facebook.HttpMethod; /** * Created by nicola on 28/08/2017. */ public class RealGraphRequestWrapper extends AbstractGraphRequestWrapper { public RealGraphRequestWrappe...
26.892857
74
0.618858
e70a9de58ade810b48bd5875c89a0b3aa6208014
1,105
package prob163.missing.ranges; import java.util.ArrayList; import java.util.List; /** * Created by yanya04 on 1/14/2018. */ public class Solution { /* range: [0~99] case: ... 96,98,99 */ public List<String> findMissingRanges(int[] nums, int lower, int upper) { List<String> re...
24.021739
87
0.495928
ed3f7b4e7646d5511200b06a6d5b13d4557cac9b
5,099
package gov.va.med.imaging.vistaimagingdatasource; import gov.va.med.RoutingToken; import gov.va.med.URNFactory; import gov.va.med.imaging.ImageURN; import gov.va.med.imaging.artifactsource.ResolvedArtifactSource; import gov.va.med.imaging.core.interfaces.exceptions.ConnectionException; import gov.va.med.imaging.core....
34.687075
160
0.731516
03a7f84540b6d81e0f526a020e021d50b4aa48c4
828
package org.deeplearning4j.nn.updater; import org.deeplearning4j.nn.api.Layer; import org.deeplearning4j.nn.gradient.Gradient; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.learning.AdaGrad; import org.nd4j.linalg.learning.GradientUpdater; /** * Ada grad updater * * @author Adam Gibson */ p...
23
82
0.68599
4c91ef45662b4c3d49ae3ccd2637a780fdebbd66
2,202
/* * 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...
33.363636
118
0.702997
d82b2748378cc9125a4417cb8ee9a899d9d4cfab
1,678
package fullcontact.contacts.api; import java.util.HashMap; public class ContactsAPIClient { private HashMap<String, Object> config; private Contacts _contacts; private OAuth _oauth; private Tags _tags; private Teams _teams; private Webhooks _webhooks; private Account _account; public...
27.508197
106
0.639452
e2488dd6bd41965876934d58804bf081d10635b8
913
package org.estatio.module.invoicegroup.dom; import javax.inject.Inject; import org.apache.isis.applib.annotation.Action; import org.apache.isis.applib.annotation.Mixin; import org.apache.isis.applib.annotation.SemanticsOf; import org.estatio.module.asset.dom.Property; @Mixin(method = "act") public class InvoiceGro...
26.085714
90
0.752464
d46b5198c96de779f0f07711fa1b9cc500dd861b
1,128
package ru.job4j.profession; /** * Created by pro on 30.04.2017. */ public class Doctor extends Profession { /** * Specialization of doctor. */ private String specialization; /** * Constructor of doctor. * @param age - age * @param education - education * @param name - ...
27.512195
94
0.599291
f6024961b6d1d5957e006bc451a7d25d3824155a
1,587
package tesi.progettoAppalti; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import javax.xml.XMLConstants; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import javax.xml.vali...
27.842105
84
0.732829
2e255cb6d9f809bb9e2c006943b74d92e2f0f0eb
664
package org.lumi.chaptertwo.jintro; import java.util.Scanner; /** * Created by John Tsantilis (A.K.A lumi) on 30/1/2017. */ public class Arithmetic { public static void main(String[] args) { int num1; int num2; Scanner input = new Scanner(System.in); System.out.println("Enter f...
22.896552
66
0.579819
417ee48dee93337e639fd43e29463968b1f12322
1,840
package html2adoc.table; import static org.junit.Assert.assertEquals; import org.junit.Test; import html2adoc.Html2Adoc; public class TableTest { @Test public void testTable() throws Exception { String html = "" + // "<table width=\"80%\" border=\"1\" align=\"center\" cellpadding=\"4\" cellspacing=...
25.915493
102
0.382609
75c700d6a01f2cdd55c5fec5562ae7e5fc6cfe33
4,228
class zRuuks { public kLFGDiLBTshu b (int[] UVGmqiXmvZSeAA, boolean[][][] l8uh, boolean A) { true.h(); void[][][] ZnOOWzB4RD; boolean[] EyF1x5T = !!5550967[ !-75754668.NQwl9RD] = IyJkCxRy().Me3JHQQ4OF4d; int gwtc_5oEq; } public static void CCM_4bkIweT (String[] Qr) { ...
35.529412
175
0.460974
c6d21744e35978c25481d6ab57a95d61ff90b6bd
3,574
package cn.cici.frigate.i18n.manager.service; import cn.cici.frigate.i18n.manager.cache.StatusCodeCache; import cn.cici.frigate.i18n.manager.controller.vo.req.ReqServiceLangVo; import cn.cici.frigate.i18n.manager.jpa.entity.CodeMessage; import cn.cici.frigate.i18n.manager.jpa.entity.ServiceLang; import cn.cici.frigate...
38.021277
131
0.685786
70245d473a3e309948149e62f1a9dc4b2855c125
10,824
package cc.bitky.clusterdeviceplatform.server.server.repo; import org.springframework.stereotype.Repository; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import ja...
35.488525
146
0.64588
bed96b342233b57014ca864f2239420bc58680a4
5,075
package com.minerarcana.naming.capability; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.minerarcana.naming.Naming; import com.minerarcana.naming.api.capability.INamer; import com.minerarcana.naming.content.NamingCriteriaTriggers; import com.minerarcana.naming.content.NamingE...
32.324841
131
0.675665
d6301c6cd0f84c3cf1ee5dc2e2ef6c2ad6badf07
2,447
package im.actor.core.entity.encryption; import java.io.IOException; import java.util.ArrayList; import java.util.List; import im.actor.runtime.bser.BserObject; import im.actor.runtime.bser.BserValues; import im.actor.runtime.bser.BserWriter; import im.actor.runtime.function.Function; import im.actor.runtime.storage....
30.5875
126
0.63915
4d4d3223f9e86e724089ab3bd78aecabdb9dafee
2,644
package com.devonfw.application.mtsj.ordermanagement.common.api.to; import com.devonfw.application.mtsj.general.common.api.to.AbstractEtoString; import com.devonfw.application.mtsj.ordermanagement.common.api.OrderLine; /** * Entity transport object of OrderLine */ public class OrderLineEto extends AbstractEtoString...
20.030303
85
0.620272
4e85db17ce0223336d4476d646b2bd9bd2b943cd
925
import java.util.logging.Level; import java.util.logging.Logger; /* Entry point for Linky 1. setup application window size. 2. setup application position. 3. Setup logging. */ public class Linky { public static Level defaultLevel = Level.INFO; public static String logLevel = System.getProperty("logL...
25.694444
74
0.696216
6135c315556719ba28714464a08d83b6269e11c9
3,336
package com.myapp.parstagram; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; import androidx.anno...
34.040816
160
0.657674
3f938f586fb56ebd29c511c453e8874a1ab513e8
18,583
package com.ternsip.structpro.universe.world; import com.ternsip.structpro.logic.Configurator; import com.ternsip.structpro.structure.Posture; import com.ternsip.structpro.structure.Volume; import com.ternsip.structpro.universe.biomes.UBiome; import com.ternsip.structpro.universe.blocks.*; import com.ternsip.structpro...
35.531549
157
0.554701
420fb0086446de11b8e2adc9e1a84391d7c3471f
534
/* * 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 org.redkale.oss.sys; import javax.annotation.Resource; import org.redkale.source.DataSource; import org.redkale.util....
24.272727
80
0.717228
347f3d681d3a8a3628f863a617a072c236acad8a
3,556
/* * jGnash, a personal finance application * Copyright (C) 2001-2018 Craig Cavanaugh * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your opti...
33.233645
80
0.696007
50e3a66b4774cce131b5631eaa02b876d44e971f
1,636
package com.dealalert.webapp.models; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "alerts") public class Alert { @Id String id; String username; String email; String itemId; double alertPrice; boolean...
19.95122
99
0.602689
7f0afe36bb848aff49463ba50a90011d032a81b8
8,305
package edu.ucue.databasequery.db; import edu.ucue.databasequery.db.exceptions.AddBodyException; import edu.ucue.databasequery.db.exceptions.AddHeaderException; import edu.ucue.databasequery.db.exceptions.QueryException; import edu.ucue.databasequery.db.exceptions.CloseConnectionException; import java.sql.Connec...
35.643777
114
0.598916
e116d403865382d1ea4ad6e4cb746eac886fe969
1,078
package ir.pitok.cafe.models.pojo.dataModels; import com.google.gson.annotations.SerializedName; public class PaymentDataModel { @SerializedName("message") private String message; @SerializedName("total_amounts") private int totalAmounts; @SerializedName("discount_amount") private int disco...
21.137255
55
0.67718
571bdbc18979d55bd8d690814dfc80e27d164eb8
2,766
/* ### * IP: GHIDRA * * 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 writin...
28.8125
107
0.716558
b5da6fcf813e8533a787a517634491d85d7c4a75
1,328
package com.kii.android.sdk.tutorial; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.ProgressBar; public class ProgressFragment extends Fragment { private Pro...
27.102041
77
0.618223
9ff01b61e574638f98c096da3e887c682153805e
80
/** * Redis Sentinel connection API. */ package io.lettuce.core.sentinel.api;
16
37
0.7125
48ba7988ab62b1cde1a1d578873dd02f1cd90858
2,261
package org.javainaction.stack; import java.util.LinkedList; /** * Write a stack such that every time we call get min or get max functions on it * It shall return min and maximum out of the entire stack * [2, 4, 1, 3, 2] * * getMin should return 1 * getMax should return 4 * * insert(5) * insert(-1) * getMin...
27.573171
114
0.553295
83e68ed9be28739d70a6f12aac185999f4d9cd94
7,299
package com.texasgamer.zephyr; import android.app.Activity; import android.app.Application; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleObserver; import androidx.life...
33.635945
150
0.73695
e04b611014c60351067f03be9d517edd15efc48a
13,813
/* * (C) Copyright 2018-2021, by Christoph Grüne, Daniel Mock, Oliver Feith 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...
36.639257
100
0.58901
faff1afc222ecffbb0bad760daa58d0b2b5ed617
4,154
package main.java.net.rabbitfighter.engine; public class Matrix4f { private float[][] m; public Matrix4f() { m = new float[4][4]; } public Matrix4f initIdentity() { m[0][0] = 1; m[0][1] = 0; m[0][2] = 0; m[0][3] = 0; m[1][0] = 0; m[1][1] = 1; m[1][2] = 0; m[1][3] = 0; m[2][0] = 0; m[2][1] =...
18.462222
113
0.448724
35b980e81e794e64fb03cc3980c214e3095fe95d
4,445
package vdsMain.model; import bitcoin.UInt256; import generic.exceptions.VerificationException; import generic.io.StreamWriter; import generic.serialized.SeriableData; import net.bither.bitherj.utils.Utils; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class PartialMerkleTree ...
33.421053
114
0.544432
29059c71e16eaadbfeff7b0adc683475ea3a9c5a
2,349
/* * Copyright 2014-2019 Netflix, 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 agr...
36.138462
99
0.709664
af4f7b82933aaeb97b8f19b412b9e3f9f50ac186
1,624
package net.java.jsf.extjs.model; /* extjsf: models (store) */ import net.java.jsf.extjs.model.store.ModelsStoreAccess; /* extjsf: support */ import net.java.jsf.extjs.support.EX; import static net.java.jsf.extjs.support.SpringPoint.bean; /** * Entry point to access the model attached to the user * request to t...
21.653333
63
0.695197
8bf2455233261c3201bf153ebadedc94d0e34d27
2,897
package com.kore.ai.widgetsdk.adapters; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.kora.ai....
31.150538
105
0.699689
87618c30d08f1c01684a12cb299e9dcd3a3a3950
1,594
/* * #%L * prolobjectlink-jpi-ip * %% * Copyright (C) 2019 Prolobjectlink 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/licens...
29.518519
76
0.730238
43094c72f1db8f67fbe70355be19c9d6a24d702a
787
public class Car { private String name; private boolean especial; private double price; private Buyer car00; public Car(String name, double price) { this.name = name; this.price = price; } public String getName() { return name; } public void setName(String ...
17.886364
47
0.573062
c3ee35df5c0e5b9af45ea1f085b37d58a32294d4
2,525
package allow.simulator.netlogo.commands; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; import org.nlogo.api.Argument; import org.nlogo.api.Context; import org.nlogo.api.DefaultReporter; import org.nlogo.api.ExtensionException; import org....
30.421687
98
0.726337
bd437b2ff23e386783b07ba797f972db0c503d21
10,118
package com.broker.itest.jms.selector; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import javax.jms.InvalidSelectorException; import javax.jms.JMSException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; import com.broker.itest.testcase.QueueConnec...
28.26257
142
0.686796
240cea07a58a26cd57a416496908f4587d123a16
1,078
package com.github.rtoshiro.example.fvvapplication; import android.app.Activity; import android.content.res.Configuration; import android.net.Uri; import android.os.Bundle; import com.github.rtoshiro.view.video.FullscreenVideoLayout; import java.io.IOException; public class MainActivity extends Activity { Full...
26.292683
86
0.70872
55c95ca1f6ac771c8b66168d0168654940ddb450
1,177
package adris.altoclef.tasks.resources.wood; import adris.altoclef.TaskCatalogue; import adris.altoclef.tasks.resources.CraftWithMatchingPlanksTask; import adris.altoclef.util.CraftingRecipe; import adris.altoclef.util.ItemTarget; import adris.altoclef.util.ItemUtil; import net.minecraft.item.Item; public class Colle...
42.035714
128
0.742566
933032a3103af841ee6fb889d8f3b4a297f3420c
3,952
/* * JBoss, Home of Professional Open Source * Copyright 2009 Red Hat Inc. and/or its affiliates and other * contributors as indicated by the @author tags. All rights reserved. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * This is free software; you can redistri...
28.228571
89
0.695344
bd65d94e5636be4ab46f24e3341102f37732e5ab
2,300
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang...
23.469388
150
0.629565
81278fb510a4c3736cd0019b9a319f77efec30c1
2,447
package core.commands.albums; import core.commands.Context; import core.commands.abstracts.ConcurrentCommand; import core.commands.utils.CommandCategory; import core.commands.utils.CommandUtil; import core.exceptions.LastFmException; import core.parsers.ArtistAlbumParser; import core.parsers.Parser; import core.parser...
30.209877
186
0.727421
0a769d31dc2c86bdc8803e5f6dc534a6cd95571b
1,116
package com.xyzniu.fpsgame.listener; import android.content.Context; import android.opengl.GLSurfaceView; import android.view.MotionEvent; import android.view.View; import com.xyzniu.fpsgame.manager.BulletManager; import static com.xyzniu.fpsgame.util.SoundHelper.*; public class ShootTouchListener implements View.On...
27.9
81
0.584229
9eebdfd5fa3db268d9b92e35dab21739e6c6a9c5
5,494
/** */ package cz.cuni.mff.d3s.deeco.model.architecture.impl; import cz.cuni.mff.d3s.deeco.model.architecture.api.Architecture; import cz.cuni.mff.d3s.deeco.model.architecture.api.ComponentInstance; import cz.cuni.mff.d3s.deeco.model.architecture.api.EnsembleInstance; import cz.cuni.mff.d3s.deeco.model.architecture....
28.764398
157
0.713142
b830e11b6d2f929f879fcab5614e8afb3bafc006
10,125
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.tagmanager; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.cont...
45.608108
138
0.58637
dd8f06c09f14908f177fe8e010dd08880d9f1140
8,333
/* * Copyright 2002-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 ap...
38.224771
102
0.773311
58ac9d7dc4742badd5b42ecfa9433a4ff99458cc
947
package com.pzhu.novel.mbg.mapper; import com.pzhu.novel.mbg.model.NovelShelfRow; import com.pzhu.novel.mbg.model.NovelShelfRowExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface NovelShelfRowMapper { long countByExample(NovelShelfRowExample example); int deleteByExam...
31.566667
120
0.794087
3121c68433bedb04887810bda31e2d783d1a663e
2,102
package com.Da_Technomancer.essentials; import net.minecraft.block.BlockState; import net.minecraft.fluid.Fluids; import net.minecraft.fluid.IFluidState; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockReader; import net.minecraft.world.World; impo...
27.298701
140
0.748811
149b8d3cb0403d19f5c66c259c984ceb63bc81c2
840
//I worked on this homework with Mahalakshmi Srinivasan /** * An implementation of a Generic Tuple * @author Alexander Saad-Falcon * @version 1.0 * @param <T> The data type held in the Generic Tuple */ public class GenericTuple<T> implements Tuple<T> { /** * The first element in the Tuple */ priv...
21.538462
65
0.604762
3efed985a8b25e9d1c2ac83bd729dccd3933dbab
2,757
package jp.comfycolor.hibicomi.scraping.comic.free; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import jp.comfycolor.hibicomi.bean.info.BookInfoBean; import jp.comfycolor.hibicomi.bean.setting.Sc...
29.329787
104
0.693145
d4458087f0b6d0ffb451d40175e0da8291ec93e1
37,278
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.security; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import org.fudgemsg.FudgeMsgEnvelope; import com.o...
41.42
157
0.715355
7c497a97533e77722037b4e532898404f691b60a
2,696
package com.akb.uts.tugas_akb; //20 Mei 2019 //10116145 //Adhitya Krismo Syam //AKB-4 / IF 4 2016 import android.content.Context; import android.graphics.Color; //import android.support.annotation.NonNull; import android.support.v4.view.PagerAdapter; import android.view.LayoutInflater; import android.view.Vie...
28.680851
95
0.631306
7ebbb5c7a68793dbc5179b8d72770c2e95e823cc
7,092
/* * 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 retailordermanagementsystem; /** * * @author user */ public class WelcomePage extends javax.swing.JPanel { ...
51.766423
149
0.66018
a3488acbc2c6dba921d224200569717617fa9963
2,115
package org.codeforamerica.shiba; import static org.codeforamerica.shiba.County.*; import java.util.List; import java.util.Set; import lombok.Data; import lombok.EqualsAndHashCode; import org.codeforamerica.shiba.mnit.RoutingDestination; @Data @EqualsAndHashCode(callSuper = true) public class TribalNationRoutingDest...
37.105263
107
0.765012
f96d70744d544dd2ab0ce6325851527497462d6b
1,119
package com.demo.widget.twitter.appwidget.controls; import java.util.ArrayList; import android.appwidget.AppWidgetManager; import android.content.Intent; import android.util.Log; import android.widget.RemoteViewsService; import com.demo.widget.twitter.database.DatabaseManager; import com.demo.widget.twitter.helpers....
30.243243
73
0.796247
f00aeda082b0953b3ada82c82adb338fc8098d80
25,598
/* * Copyright (C) 2013 RoboVM AB * * 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 ...
39.996875
115
0.469021
93a0b135fd865ed9f3045d5fee3cddaba9ee5cdd
4,209
/* * Copyright © 2016 Tinkoff Bank * * 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 ...
28.828767
83
0.65645
2ad8f939dfd51a2677f9a8e2fd9033632920d8a5
469
/* * Copyright (c) 2018-2021 Karlatemp. All rights reserved. * @author Karlatemp <karlatemp@vip.qq.com> <https://github.com/Karlatemp> * * MXLib/MXLib.mxlib-command.test/package-info.java * * Use of this source code is governed by the MIT license that can be found via the following link. * * https://github.com/...
31.266667
99
0.746269
923af29236ec49375f606945cc7b5bcf8e063ed6
6,120
/* * Grapht, an open source dependency injector. * Copyright 2014-2017 various contributors (see CONTRIBUTORS.txt) * Copyright 2010-2014 Regents of the University of Minnesota * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (th...
30.753769
137
0.662255
6e845e45f02de5ddbec99fa637781d75018fd823
1,719
package jdimeo.triplea.tiles; import java.awt.Color; import java.io.IOException; import java.nio.file.Path; import java.util.HashMap; import java.util.Map; import java.util.concurrent.Callable; import javax.imageio.ImageIO; import lombok.val; import picocli.CommandLine.Command; import picocli.CommandLine.Parameters;...
30.696429
164
0.647469
6414f2def51bfcc8305db20f5ef683803dc0d40e
1,849
package com.dr4kk0nnys.tic_tac_toe.controllers; import java.util.Arrays; import java.util.function.Function; import com.dr4kk0nnys.tic_tac_toe.models.*; public class Board { private BoardTable board = new BoardTable(); public String[] getBoard() { return board.getBoard(); } private boolean...
25.680556
81
0.53921
77ab646dfa407f2c5eb86a2bebe11f2510f54e9b
234
package fr.jdr.spring.repositories; import org.springframework.data.mongodb.repository.MongoRepository; import fr.jdr.spring.models.ModelSheet; public interface ModelSheetRepository extends MongoRepository<ModelSheet, String> { }
23.4
83
0.837607
0805fb2e695ef9d9bb9b468bd51f61484667991a
358
import javax.swing.text.*; public class NoWrapParagraphView extends ParagraphView { public NoWrapParagraphView(Element elem) { super(elem); } public void layout(int width, int height) { super.layout(Short.MAX_VALUE, height); } public float getMinimumSpan(int axis) { return...
23.866667
56
0.675978
7be0957c455b71074da3053e4bc63ef88927ec9b
549
package stqa.ptf.sandbox; import org.testng.Assert; import org.testng.annotations.Test; public class PrimesTests { @Test public void testPrime() { Assert.assertTrue(Primes.isPrime(Integer.MAX_VALUE)); } @Test public void testNoPrime() { Assert.assertFalse(Primes.isPrime(Integer.MAX_VALUE - 2)); }...
19.607143
62
0.70674
723dca84b1fc02c5be0bb067a90a28639c5fdc9f
5,294
/* * 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 ...
32.478528
169
0.59388
3dd39436a8b4cc159933777a4ae203d42565006f
3,680
/* * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
37.938144
91
0.580978
270968bc4bb2a06a9c33295e71617d027a656037
3,249
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package templates; import xeed.Character; import xeed.ExtendedSheetData; /** * * @author Erik */ public class ExtendedSheetButtonPanel extends javax.swing.JPanel { public Character character; ...
39.144578
119
0.654047
ac6af2b5f3f13b269a4cb3e8beca87204a129c08
4,660
/* * Ferox, a graphics and game library in Java * * Copyright (c) 2012, Michael Ludwig * 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 t...
50.107527
110
0.730687
8ca52f0e10b1d4e10b07090a3b4e301391ff0c70
870
package com.liyun.qa.edu.java_algorithms.leetcode.easy; import org.assertj.core.api.Assertions; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; /** * <a href="https://leetcode-cn.com/problems/reverse-integer/">7. 整数反转</a> * * @author Li Yun * @date 2020/8/15 11:11 */ public class ...
22.894737
74
0.65977
cc6ae937c816f8653d4eaffb8badb4f6a485025e
3,733
package fr.syrows.smartcommands; import com.google.gson.JsonObject; import com.google.gson.reflect.TypeToken; import fr.syrows.smartcommands.commands.CommandContents; import fr.syrows.smartcommands.commands.CommandExecutor; import fr.syrows.smartcommands.commands.issuers.IssuerType; import java.lang.reflect.T...
27.858209
108
0.624431
af095cef83761b800ca722de02bc4cb0be2f8845
136
package creationalpatterns.abstractFactory.example; /** * Created by Oscar on 23/04/2017. */ public class EnginolaCPU extends CPU {}
19.428571
51
0.757353
3c7e58e1e4c487333bcde4dbf245422e74b92c6b
2,279
/* * Copyright 2016-2018 shardingsphere.io. * <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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
36.758065
148
0.753839
62debb006c9b70a5f6c08d83375c1514b179fe09
256
package com.whoiszxl.common.service; import com.whoiszxl.common.pojo.ZxlBanner; import java.util.List; /** * <p> * 首页轮播表 服务类 * </p> * * @author whoiszxl * @since 2019-08-08 */ public interface BannerService { List<ZxlBanner> bannerList(); }
13.473684
42
0.675781
22d3cf627364d820d2c3573a060bb517b6b6c074
6,167
/* * Copyright (c) 2018 Nova Ordis LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
30.230392
126
0.448516