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
6aa8a0c8f6f3008a9ecf2d9219563340ee19b66b
4,607
/* This question is from https://leetcode.com/problems/serialize-and-deserialize-bst/ Difficulty: medium Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed...
32.443662
307
0.54135
4f12fd1fab124db59e5a1c44c6237d01e59bb54c
3,445
/* * Copyright (c) Open Source Strategies, Inc. * * Opentaps 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. * * Opentap...
39.597701
138
0.724819
7cbcb251e4b1a7afb3f2441bb81cff5579d190ec
1,130
/** * © Nowina Solutions, 2015-2015 * * Concédée sous licence EUPL, version 1.1 ou – dès leur approbation par la Commission européenne - versions ultérieures de l’EUPL (la «Licence»). * Vous ne pouvez utiliser la présente œuvre que conformément à la Licence. * Vous pouvez obtenir une copie de la Licence à...
33.235294
151
0.755752
24d633d6c00932776d2bc9781a540b80177e0484
3,050
package org.geoladris.config.providers; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.File; im...
28.773585
85
0.730492
4199c8751cc461114e82d8b86269a983221eefa5
1,263
package com.cq.szyk.mapfluxcommon.expetion; import com.cq.szyk.mapfluxcommon.response.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotat...
30.804878
85
0.720507
5618b253c3568414fd224680e8b88d3963d2368e
1,088
package com.ovit.nswy.member.service; import com.github.pagehelper.PageInfo; import com.ovit.nswy.member.model.request.GetUserQuery; import com.ovit.nswy.member.model.request.ListFollowQuery; import com.ovit.nswy.member.model.request.UserQuery; import com.ovit.nswy.member.model.response.FansDTO; import com.ovit.nswy.m...
30.222222
71
0.788603
05dac49d775e5f4d1c57d2b60620c4360ee651e1
3,325
package it.unicam.ids.c3.corriere; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation...
32.281553
106
0.768722
9cb2f58e8b36ea5b61c0c83c52c650cc6e4c570f
2,455
package kr.co.wkim.address.config; import java.util.Collection; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.data.redis.connection.MessageListener; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory...
29.22619
89
0.766599
8d91778ba7861b17d94d53ed7a2966500194abb5
893
package com.halo.shardingjdbc.module.deptment.controller; import com.halo.shardingjdbc.module.deptment.entity.TDeptment; import com.halo.shardingjdbc.module.deptment.service.TDeptmentService; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; impor...
24.135135
70
0.727884
b0cecf78b95fce3a8c4d854a4c26b65e9e04644e
9,542
/* * Copyright (c) 2015. OPPO Co., Ltd. */ package com.k2.mobile.app.utils; import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * @Title DateUtil.java * @Package com.oppo.mo.utils * ...
24.784416
89
0.626598
0062ebfc76b3aaa5ed2996ae0083e106579c7cc3
7,022
package slimeknights.tconstruct.library.tools.helper; import lombok.Getter; import lombok.RequiredArgsConstructor; import net.minecraft.ChatFormatting; import net.minecraft.client.Minecraft; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Style; import net.minecraft.network.chat.TextColo...
32.063927
159
0.711051
886056a960649e0935ddd80afa96909eaf55b380
172
package Interface; public class EmiteCachorro implements EmiteSom { @Override public void emitirSom() { System.out.println("A cachorro diz Au AU"); } }
17.2
49
0.680233
79d5dfb6ebace9c2857084a1a3ebf770152f2dcf
1,189
package org.apereo.cas.uma.web.controllers.permission; import org.apereo.cas.uma.web.controllers.BaseUmaEndpointControllerTests; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.springframework.http.HttpStatus; import java.util.Map; import static org.junit.jupiter.a...
34.970588
120
0.75778
b87979b580f09d2256ad1ca205a8e6cd9c294b18
1,315
/* * @author Jon Deering Copyright 2011 Saint Louis University. Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0 Unless required by applicab...
23.909091
137
0.604563
bdf56ed4bc0430df75902d97ca469ee23324d6c8
4,116
package br.fapema.morholt.android.initial.load; import java.util.ArrayList; import java.util.Collection; import java.util.List; import br.fapema.morholt.android.R; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.widget.ListVie...
38.111111
137
0.75826
b2d5ba633be43b34f32ae5d18a66f154d629221a
1,356
package state_manager; import java.util.ArrayList; import cell.SugarCell; import grid.Grid; import grid.Location; import simulation_objects.SugarAgent; public class SugarStateManager extends StateManager{ public static final String SIMULATION_NAME = "Sugar"; public SugarStateManager(Grid initialState) { supe...
26.588235
123
0.733038
42111ed0a3053abbe04612fb667cddf8a1f018ec
3,742
package uk.gov.hmcts.reform.sscscorbackend.thirdparty.ccd; import static java.util.Arrays.asList; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import static org.mockito.Mockito.*; import java.util.List; import org.junit.Before; import org.junit.Test; import uk.gov.h...
34.648148
125
0.656601
26eb16100ae7c55c268d5740e611b527c7ec69dc
2,825
/* * 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 required by ap...
29.123711
96
0.689912
1930d2e40b381651c68edaab453f0fceed49423c
309
package ru.textanalysis.tawt.awf.rule; import ru.textanalysis.tawt.ms.model.sp.Word; public interface AwfRules { void init(); boolean establishRelation(Word main, Word dep); boolean establishRelation(int i, Word main, Word rightWord); boolean establishRelationForPretext(Word pretext, Word word); }
20.6
62
0.779935
aa14e36484a895c21cc7bb0c40cc7463399b384b
5,337
package org.firstinspires.ftc.teamcode.ServoTestPractice; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.util.ElapsedTime; import org.firstinspires.ftc.teamcode.SubSystems.Robot; import java.io.IOException; @TeleOp(nam...
38.956204
79
0.588158
bc38401ee0c3c9c9728bb2158eb374224d66953d
90
package org.eclipse.dataspaceconnector.spi.iam; public interface RegistrationService { }
18
47
0.833333
de602b19786f83300140e3b657b3d9ff25d505b1
2,740
package org.loadtest4j.drivers.jmeter.util; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.JarURLConnection; import java.net.URL; import java.util.Enumeration; impor...
38.591549
103
0.579197
dac185155420e53724a6af0ff4642fa16d5e150e
2,992
package org.jnet.core.helper; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import sun.reflect.ReflectionFactory; import com.google.common.collect.ImmutableMap; public class PojoHel...
36.048193
118
0.696858
929fd428a16cb26dfe3d9e360978f9eada4f4a1c
2,101
package bu.dsp.fgraph; import java.time.Duration; import java.util.TreeSet; import javax.annotation.Nonnull; import org.apache.flink.api.common.typeinfo.TypeHint; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.statefun.sdk.Context; import org.apache.flink.statefun.sdk.StatefulFu...
32.828125
91
0.732984
915b946535a8cc2b3834bad31da1eb976a0206c2
5,791
/* * 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 br.senac.tads3.pi03b.projetoautomata.servlets; import br.senac.tads3.pi03b.projetoautomata.dao.ProdutoDAO; import br.s...
45.242188
123
0.634605
fe27ec40ed6b428dff6c742e4fcf9c908a1dfeec
931
package sanjurjo7.lucre; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import n...
27.382353
70
0.754028
f5b63adc30c51a5a987570edb53677b664ff2fc8
784
package edu.nccu.cs.recorder.util; import java.nio.ByteBuffer; import java.util.Arrays; public class ByteUtils { public static byte[] getBytesFromLong(final long i) { ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES); buffer.putLong(i); return buffer.array(); } public static byt...
30.153846
82
0.664541
5b98444fe2755e7c22d4e17de4d2ccfefbdb9bd8
665
package com.yapp.yongyong.domain.user.mapper; import com.yapp.yongyong.domain.user.dto.UserDto; import com.yapp.yongyong.domain.user.entity.User; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.factory.Mappers; @Mapper public interface UserMapper { UserMapper INSTANCE = Mappers.get...
33.25
66
0.730827
74fa50e85c7ef2aa99253db5997b85cddb4f0ff4
33,571
/* * (C) Copyright IBM Corp. 2020. * * 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 w...
59.208113
256
0.792619
375928190a4d56ae9d1cb2aa937be5b6b3c19f22
2,029
package org.drools.eclipse.editors.rete.model; import org.drools.reteoo.BaseVertex; /** * A connection between two distinct vertices. */ public class Connection extends ModelElement { private boolean isConnected; private BaseVertex source; private BaseVertex target; /** * Creating a con...
25.3625
99
0.590439
5c0c35eaced144f72d2e47ae99e05770b5e6d88d
2,261
package me.stuarthicks.xquery.stubbing; import java.util.Arrays; import java.util.List; import net.sf.saxon.expr.XPathContext; import net.sf.saxon.lib.ExtensionFunctionCall; import net.sf.saxon.om.Sequence; import net.sf.saxon.trans.XPathException; import net.sf.saxon.value.FloatValue; import net.sf.saxon.value.Int64...
30.972603
98
0.651924
ed16553ef984d134219a8b5b3529d7ad57cd7351
438
package hw04.model; import hw04.model.IViewUpdateAdapter; /** * Interface that goes from the model to the view that enables the model conduct update tasks to view */ public interface IViewUpdateAdapter { /** * The method that tells the view to update */ public void update(); /** * No-op "null" adapter ...
19.909091
101
0.707763
d3e6fae58a668384e629f4e9281671009883a23b
971
package layer.conv.block; import layer.conv.InputLayer; public class InputBlock extends Block{ public InputBlock(int numFilters, int width, int height, Block prevBlock) { super(numFilters, width, height, prevBlock); // TODO Auto-generated constructor stub System.out.println("Creating IPL " + numBlocks + ":...
25.552632
138
0.632338
e122dd7258d5213a83a3008e67bd4ce6ec5f39df
393
// 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.exoplayer2.metadata; // Referenced classes of package com.google.android.exoplayer2.metadata: // Metadata public interface ...
24.5625
72
0.773537
a9786ece72a34d1c06d86c8c73b82906c5c9dd07
2,878
package gameClient; import api.*; import gameClient.util.Point3D; import org.json.JSONObject; /** * This class representing an agent, containing helpful information that we "take" from the game server about the agent such as: * agent ID * agent speed * update the agent with new information as speed * and so on ...
19.445946
128
0.622307
b4e51cef86468455a83ab994c6d7efa4bb0c00b7
4,525
package org.ofdrw.core.compositeObj; import org.dom4j.Element; import org.ofdrw.core.OFDElement; import org.ofdrw.core.basicStructure.pageObj.layer.PageBlockType; import org.ofdrw.core.basicStructure.pageObj.layer.block.CT_PageBlock; import org.ofdrw.core.basicType.ST_ID; import org.ofdrw.core.basicType.ST_RefID; imp...
21.244131
76
0.548729
ef46c81996b64c7c915eb35b8849702f1d523979
4,801
package com.prestonlee; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Random; import weka.classifiers.Evaluation; import weka.classifiers.bayes.NaiveBayes; import ...
30.775641
137
0.746511
0f0714ec489aa9b0107e6f6adff3aa1d9cba87b5
8,556
/** * This class runs a Kennel * * @author Lynda Thomas and Chris Loftus * @version 1.2 (23rd February 2018) */ import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class KennelDemo { private String filename; // holds th...
38.890909
120
0.472534
372b04ec4672c1d346a77b6f56bec4d17a585fa7
2,903
package ecfv5.gov.niem.release.niem.codes.fbi_ncic._4; import javax.xml.bind.annotation.XmlRegistry; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the ecfv5.gov.niem.release.niem.codes.fbi_ncic._4 package. * <p>An ObjectFactory allows y...
22.503876
159
0.61247
da0c113b1bd73244ea95705a50d0043ae3caa736
3,674
package com.example.providertest; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; /** * Created by DysaniazzZ on 2016/01/24. * 第七章:测试内容提供...
44.26506
156
0.599619
8d77de15fda0b1dea9fdf7038bdcce95590ca4c7
7,461
package com.example.latte_core.fragments; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.util.Log; im...
25.90625
122
0.692132
d5d9f70750587ea20b61a8028e8e7d38a538d755
430
package se.natusoft.osgi.aps.util; /** * Utility to make a value thread synchronized. * * @param <T> Value type. */ public class SyncedValue<T> { private T value; public SyncedValue() {} public SyncedValue(T value) { this.value = value; } public synchronized void setValue(T value) {...
16.538462
48
0.609302
f428ab62ac5686808cfca2ba9421aa81467b1882
7,941
package com.quorum.tessera.config.migration; import com.quorum.tessera.cli.CliAdapter; import com.quorum.tessera.cli.CliResult; import com.quorum.tessera.cli.CliType; import com.quorum.tessera.config.Config; import com.quorum.tessera.config.KeyConfiguration; import com.quorum.tessera.config.builder.ConfigBuilder; impo...
44.61236
142
0.68606
57248c7ba922359204a9f0574b224433c8255627
3,921
/* * 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...
35.008929
101
0.7266
a67f8fc58113e307e897578fc7d2f971a3668a77
4,847
package asl.sensor.gui; import asl.sensor.ExperimentFactory; import asl.sensor.experiment.SpectralAnalysisExperiment; import asl.sensor.input.DataStore; import java.awt.Color; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import javax.swing....
32.099338
91
0.711574
815e977b69b35882c6b61a45f55adc81a07a639e
8,063
package com.yugabyte.hibernatedemo.server; import com.google.gson.Gson; import com.sun.net.httpserver.Headers; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpServer; import com.yugabyte.hibernatedemo.Exceptions.ResourceNotFoundException; import com.yugabyte.hibernatedemo.model.Product; i...
40.114428
134
0.661912
d8835c0ce73c896b43f75e8986520ed588fbc207
1,106
package com.zzjson.order.repository; import com.zzjson.order.dataobject.OrderMaster; import com.zzjson.order.enums.OrderStatus; import com.zzjson.order.enums.PayStatus; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import java.math.BigDecimal; import java.sql.Date; public clas...
35.677419
76
0.725136
0c8b84a459954ff320a6ea0a7dc6e3a84e81881a
848
package kdu_jni; public class Jp2_locator { static { System.loadLibrary("kdu_jni"); Native_init_class(); } private static native void Native_init_class(); protected long _native_ptr = 0; protected Jp2_locator(long ptr) { _native_ptr = ptr; } public native void Native_destroy(); public void ...
28.266667
65
0.713443
f25cba2829f034dedb0ba2b7144f1108ecd6ddf2
2,594
/* * 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 ...
36.027778
121
0.639938
2e1b33f0f9a88b28c072b57342e561e140aa92a3
348
/* * 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 Main; import Components.Cell; /** * * @author Sandun Rajitha */ public class GanttChart { public GanttChart(Cell cell...
15.130435
79
0.666667
a0fed16aeb6a03cb2ae7c0c3061786ba8644c698
382
package cana.codelessautomation.api.resources.notification.service.mappers; import cana.codelessautomation.api.resources.notification.service.repositories.daos.NotificationDao; import cana.codelessautomation.api.resources.schedule.service.dtos.CreateScheduleDto; public interface NotificationMapper { NotificationD...
42.444444
100
0.871728
70064b8b71a3287e4c4e6cd8926cda51c081d9e2
1,763
package com.lgy.common.utils.xml; import javax.xml.bind.JAXBContext; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; import java.io.StringReader; import java.io.StringWriter; /** * Jaxb2工具类 * * @author LGy * @create 2017年10月23日 */ public class JaxbUtil { /** * JavaBean转换成xml ...
23.824324
75
0.587635
f9525e2772801047a8a1eda2c72678b0345097ef
951
package ch.heigvd.res.chill.domain.RobelT; import ch.heigvd.res.chill.domain.Bartender; import ch.heigvd.res.chill.protocol.OrderRequest; import ch.heigvd.res.chill.protocol.OrderResponse; import org.junit.jupiter.api.Test; import java.math.BigDecimal; import static org.junit.jupiter.api.Assertions.assertEquals; cl...
30.677419
76
0.761304
64984fed5ba92d86b127fe974bcc0ad513576167
4,882
/* * 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 ...
36.984848
96
0.676977
f6c38cb69e5e9f49735bc1553d1073641ee0a53f
818
package com.alibaba.alink.params.dataproc.format; import org.apache.flink.ml.api.misc.param.ParamInfo; import org.apache.flink.ml.api.misc.param.ParamInfoFactory; import org.apache.flink.ml.api.misc.param.WithParams; public interface HasKvValDelimiterDefaultAsColon<T> extends WithParams<T> { /** * @cn-name 分隔符 *...
30.296296
108
0.764059
e352ca1203da34ffee743b7996e36b95db858e1f
1,339
/* * Copyright 2015 XXX * * 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 writ...
28.489362
89
0.719193
8f45de5bf9c9313c5fb1efe076b51065bf205954
1,192
package interpreter.ast; import interpreter.ast.visitor.NodeVisitor; import interpreter.lexer.Token; /** * Created by Thomas on 2-3-2015. */ public class Literal extends Expression { private final int literalType; private final Object value; public Literal(int lineIndex, int columnIndex, int literalT...
20.551724
83
0.608221
dc14acef7a99d18d2743ec886591789a5e6d7277
1,941
/* * Copyright © 2017 M.E Xezonaki in the context of her MSc Thesis, * Department of Informatics and Telecommunications, UoA. * All rights reserved. */ package sqmf.impl; /** * The class modelling a node of the domain. * * @author Marievi Xezonaki */ public class DomainNode { private int nodeID = -1; p...
21.32967
76
0.597115
24bcbfc04154fd660ee37809fa49fc66c55c5979
4,108
package rsb.service; import lombok.extern.slf4j.Slf4j; import rsb.script.Script; import rsb.script.ScriptManifest; import java.io.File; import java.io.IOException; import java.net.URL; import java.util.Enumeration; import java.util.LinkedList; import java.util.List; import java.util.jar.JarEntry; import java.util.jar...
27.57047
104
0.666991
b6aaff4adaec90426aac31eead67eb888b2a80ae
316
package se.foodload.repository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import se.foodload.domain.ItemCategory; public interface ItemCategoryRepository extends JpaRepository<ItemCategory, Long> { public Optional<ItemCategory> findByName(String itemCategory); }
24.307692
83
0.835443
53720b348a12c8ca65c0d27b9a0a5e91b4e3eb30
4,724
package com.mygdx.game.Modele; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.utils.Array; import com.mygdx.game.Controleur.MTCGame; public class DecorDecharge implements DecorDef { private Texture sky; priva...
50.795699
143
0.756351
741096681877ecde866bd1854ff7e52e4fe871b4
200
package se.liu.ida.hefquin.engine.queryproc.impl.optimizer.randomized; public interface EquilibriumConditionForSimulatedAnnealing { boolean isEquilibrium(int currentGeneration, int subplanCount); }
28.571429
70
0.855
ced8072c369761f4b0c449dc755b991c0ca5c7a4
2,913
/* * Copyright 2021, Yahoo Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE file in project root for terms. */ package com.yahoo.elide.datastores.aggregation.metadata; import static org.apache.commons.lang3.StringUtils.isBlank; import com.yahoo.elide.core.request.Argument; import com.yahoo.elid...
40.458333
120
0.66392
c2be52b36ec52366c4cdce1e260227cdc34bd6f4
668
package com.onthegomap.flatmap.worker; import static org.junit.jupiter.api.Assertions.assertThrows; import com.onthegomap.flatmap.stats.Stats; import java.util.concurrent.atomic.AtomicInteger; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; public class WorkerTest { @Test @Timeout(10) ...
25.692308
66
0.693114
bcfb96d04bf42fac3a142fb6de4ae73e67af2b7a
1,287
package sg.edu.nus.comp.cs3219.viz.common.util.Serializer; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import java.io.IOException; import sg.edu.nus.comp.cs3219.viz.common.entity.record.Conferenc...
40.21875
112
0.730381
04f5d59dc27b15a5a8cc6efe5a195218868530c1
12,449
/** * * Copyright (c) 2014 CoderKiss * * CoderKiss[AT]gmail.com * */ package com.kisstools.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; impor...
20.852596
76
0.649289
b4dc0acfad2ff79d139388eefb9c50e70c22d199
879
package me.mattstudios.msg.commonmark.node.triumph; import me.mattstudios.msg.commonmark.node.Node; import me.mattstudios.msg.commonmark.node.Visitor; import org.jetbrains.annotations.NotNull; public class Color extends Node { @NotNull private String literal; private final boolean legacy; public Col...
21.439024
71
0.664391
69bd53d49532ceb440624493852d347d60933a7d
42,495
import java.util.ArrayList; /** * Write a description of class Main here. * * @author (your name) * @version (a version number or a date) */ public class CombatSim{ public static void main(String[] args){ SimSetup setup = new SimSetup(); endSetup(setup); ArrayLi...
85.331325
264
0.726627
a1af5e613d3ab30c60e9d7b8be5d763578cb7582
1,068
package ch03.timers; import ch03.model.ScopeInstance; /** * @author Tom Baeyens */ public class Timer { protected String name; protected ScopeInstance scopeInstance; protected TimerHandler timerHandler; protected String time; protected boolean cancelOnScopeEnd; public ScopeInstance getScopeInstance()...
19.418182
61
0.71161
5190956014020b5c666da3ced40324af255665e3
463
package demo.sa.order.model; import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.util.List; @Data @Document(collection = "orders") public class OrderEntity { @Id private String orderId; private List<Address> addres...
21.045455
62
0.75378
e6635d27546b7a36e088ab8bd345fbb247e87f79
5,002
package javaanpr.recognizer; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.util.Collections; import java.util.Comparator; import java.util.Vector; import javaanpr.imageanalysis.Char; public abstract class CharacterRecognizer { /...
33.797297
114
0.471212
83f96423966dee3c184d85bdfce249a6d1f3aa74
2,872
package com.kneelawk.kfractal.generator.validation; import com.google.common.collect.ImmutableSet; import com.kneelawk.kfractal.generator.api.ir.*; import com.kneelawk.kfractal.generator.api.ir.attribute.IGlobalAttribute; import com.kneelawk.kfractal.generator.api.ir.instruction.Return; import com.kneelawk.kfractal.ge...
42.235294
117
0.758357
3f02a2d7d715ca723fdff45e2cd9ae233b92fd44
1,863
/* * Copyright (c) 2017 LingoChamp Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
26.239437
76
0.661299
82a9ce588bfc2653b2e51e9b1a3e9f19360b2660
1,014
package edu.purdue.comradesgui.src.javafx; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.stage.Stage; public class FXChessOptions extends Application { private FXComradesGUI comradesGUI; public FXChessOptions(...
23.045455
65
0.776134
3cac4d4ac3b4ac54708ce478af26028edd25a3fe
216
package edu.carleton.COMP2601; /** * Created by haamedsultani (100884545) on 2017-01-24. */ public interface GameObserver { public void update(int[][] model, int gameState, int playerTurn, int cellNumber); }
21.6
85
0.722222
b8d1854f442c7e4e3a35164024394bfc41ab090c
6,970
package com.monezhao.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.monezhao.bean.sys.SysCodeInfo; import com.monezhao.common.Constants; import com.monezhao.common.base.BaseServiceImpl; import com.monezhao.common.excepti...
34.50495
108
0.636442
1a64d6964fec2b1bca942fc7f79e1b1377e118e0
736
package shortestpath.util; /** * Represents all cardinal and ordinal directions * * @author Jake */ public enum Direction { UP(0, -1, false), DOWN(0, 1, false), LEFT(-1, 0, false), RIGHT(1, 0, false), UP_RIGHT(1, -1, true), DOWN_RIGHT(1, 1, true), DOWN_LEFT(-1, 1, true), UP_LEFT(-1...
17.52381
57
0.561141
0e3cf6ee559e28021d54acf6a63f27ae765b464e
1,995
/** * Hydrogenium * * Copyright (c) 2013 Ean Jee * * @author Ean Jee (yanjieanjee@gmail.com) */ package hydrogenium.server.console; import hydrogenium.util.InputHandler; import hydrogenium.util.InputListener; import hydrogenium.server.core.ServerCore; public class HydrogeniumServerConsole implements InputListe...
22.166667
69
0.534837
f8e9bf5ce23c299c7ae3044c4b2ea32af565d733
1,514
package me.whizvox.wsite.hash; import me.whizvox.wsite.util.Utils; import java.text.MessageFormat; import java.util.Arrays; public class Hash { public byte[] hashedPassword; public byte[] salt; public String compileAsHexString() { byte[] full = new byte[hashedPassword.length + salt.length]; System.ar...
30.897959
116
0.696169
32fd3feacccfcc034519023c134f49609d4bbec6
495
package ru.stqa.pft.sandbox; import org.testng.Assert; import org.testng.annotations.Test; public class EquationsTest { @Test public void test0 () { Equations e = new Equations(1,2,3); Assert.assertEquals(e.rootNumber(),0); } @Test public void test1 () { Equations e = new Equations(1,2,1); ...
14.558824
42
0.646465
1cc2872cd0b0e87df75f37a8e7ea4a67449c06ce
411
package moka.basic.service; /** * Created by moka on 2017/3/6 0006. */ public interface BasicService { <T> T convertBusinessValue(Object resource, Class<T> target, String... ignoreProperties); <T> T convertBusinessValue(Object resource, Object target, String... ignoreProperties); <T> T convertBusiness...
27.4
112
0.73236
3989164eecb292018ae265234e42b1abc4e79bf2
1,294
/* ### * 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...
25.88
75
0.728748
b31a1e48e9c94b0eb67e321a5d46a791aa615bee
1,448
// Displays list of payment options // - credit card, check or cash // Displays fee for using each - 5%, 2% or 0% import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DebugFOurteen2 extends JFrame implements ItemListener { FlowLayout flow = new FlowLayout(); JComboBox<S...
28.392157
70
0.607735
6033797dc0f679413a204fc4c9aa86730be2f712
1,352
package br.com.cesarcastro.pulsemkt.model; import com.google.gson.annotations.Expose; public class Address { @Expose private Integer addressId; @Expose private String address; @Expose private String number; @Expose private String complement; @Expose private String city; @Expose private String state; p...
18.026667
113
0.715976
d2e2cafe2d8cb6a47c57b19a3aad3e551be250a5
29,637
package org.folio.service.orders.flows.open; import io.vertx.core.json.JsonObject; import one.util.streamex.StreamEx; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.folio.completablefuture.FolioVertxCompletableFuture; import o...
51.994737
184
0.752843
fb7c655df7da6a9bb1d30e06d472e88a34a2937b
4,348
package com.example.plenti_full; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import com.example.plenti_full.Javabeans.Favorite; import com.example.plenti_full.Javab...
24.022099
78
0.613155
629ada7af13b2e5999ad17c59ea22346677d2479
101
/** * View Models used by Spring MVC REST controllers. */ package msb.shortcut.master.web.rest.vm;
20.2
51
0.722772
6225c5c457861b9a5bf8c45cd6294362970b8b8c
2,352
package com.qianyuan.casedetail.utils; import android.app.DownloadManager; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Environment; import com.lzy.okgo.OkGo; import com.qianyuan.casedetail.application.MyApplication; i...
31.783784
104
0.608844
bd6dd2cde9f5e8fd828ab0023ad36f7005cb1493
773
package algorythms; import java.util.ArrayList; public class HukumkaSort implements Algorythm { @Override public ArrayList<Integer> sort(ArrayList<Integer> data) { int i = 1; int j = 2; int temp; while (i < data.size()) {//n-1 if (data.get(i - 1) < data.get(i)) {//...
24.935484
61
0.368693
dad51c4769dcd8abad3efc4d99f48f5f266d4bd7
2,630
package org.oddjob.arooa.design.designer; import org.oddjob.arooa.design.DesignNotifier; import org.oddjob.arooa.design.actions.ActionContributor; import org.oddjob.arooa.design.actions.ConfigurableMenus; import org.oddjob.arooa.design.view.SwingFormView; import org.oddjob.arooa.design.view.ViewHelper; import org.oddj...
23.274336
72
0.722814
b7c908842d26cba3092e9f65fe16842570385ede
2,579
package org.grejpfrut.tiller.demo; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import org.grejpfrut.tiller.builders.ArticleBuilder; import org.grejpfrut.tiller.entities.Article; import org.grejpfrut.tiller.entities.Paragraph; import org.grejpfrut.tiller.en...
28.032609
70
0.64366
479c335f4b51eedd6ded7486b64a61324fd89913
47,066
package aceim.protocol.snuk182.icq.inner.dataprocessing; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import j...
30.621991
185
0.643288
4a81ae0b90d04cc944f360712fa4c25efb7189bc
7,762
/******************************************************************************* * Copyright (c) 2019 Infostretch Corporation * * 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 with...
39.20202
149
0.701366
da23a3cbcdd4f7310c10fe607399c200c6f7a6ee
2,462
/* * Copyright 2017 Pete Cornish * * 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 ...
30.395062
111
0.690902
80627c8291bd494bb14c41f8f928942fe354b10c
8,432
/* * * Vear 2017-2018 * 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, modify, merge, publish, distribute, subli...
38.153846
194
0.639943
9b958cb9b04ed55e7de4cc32396313e039d71c03
4,899
package com.memrekobak.mqttcontrolapp; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view....
28.988166
88
0.595632
261614560aa26462a5eaf673ff759e21cacc9557
1,306
package org.archive.url; import java.net.URISyntaxException; import junit.framework.TestCase; public class WaybackURLKeyMakerTest extends TestCase { public void testMakeKey() throws URISyntaxException { WaybackURLKeyMaker km = new WaybackURLKeyMaker(); assertEquals("-", km.makeKey(null)); assertEquals("-", k...
45.034483
94
0.704441
17929c8b985bdba556c717197ee772dbf34b876b
833
package org.highmed.dsf.fhir.spring.config; import org.highmed.dsf.fhir.help.ExceptionHandler; import org.highmed.dsf.fhir.help.ParameterConverter; import org.highmed.dsf.fhir.help.ResponseGenerator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; impo...
24.5
68
0.817527
5438e1f0d42066b2fbbafb8b303c2a419ff028ca
5,751
/* * Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/ * * 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 * * Unl...
23.764463
177
0.657451
556e1dbab0c281ef9906ce073ceb5cae9659987f
1,719
package com.crypteron.cipherobject.sample; import java.io.IOException; import java.math.BigInteger; import org.codehaus.jackson.JsonGenerationException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.jackson.map.ObjectMapper; import com.crypteron.Opt; import com.crypteron.Secure; public c...
20.223529
74
0.67772