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
5526064aaa27ff86b6c82ee9f381047a6c650036
863
package main; import algorithm.BellmanAlgorithm; import file.TextFile; import graph.Graph; import graph.Vertex; public class Test10 { public Test10() { String filePath = "res/graph10.txt"; TextFile file = new TextFile(filePath); Graph graph = new Graph(file.read()); boolean[][] va...
26.151515
69
0.550406
51e1954aa950da298f9fe3b4441a0fe81a608673
1,118
/** * Title ApiRestrictions.java * Description api限制说明 * @author danyuan * @date Oct 18, 2020 * @version 1.0.0 * site: www.danyuanblog.com */ package com.danyuanblog.framework.popularmvc.dto; import java.io.Serializable; import com.danyuanblog.framework.popularmvc.encrypt.DataEncryptHandler; impo...
18.633333
72
0.66458
ade379a966897d612e6d4883772e2d548f51d9b0
8,271
/* * Copyright (C) 2018 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...
38.830986
99
0.640672
d05075994cc4cc8c45aa458216bb44bba52940fc
9,494
package io.zero88.qwe.crypto; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.security.KeyStore; import java.security.KeyStoreException; import ...
33.786477
129
0.660838
1e0313a516f92c7c220058c6c51178e4ef43a478
9,474
/* * 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 ...
41.552632
120
0.730526
669e4cf61e790f75258885c98fcfb20aa65c5b3c
7,547
/* * Copyright (c) 2012 ZES Inc. All rights reserved. * This software is the confidential and proprietary information of ZES Inc. * You shall not disclose such Confidential Information and shall use it * only in accordance with the terms of the license agreement you entered into * with ZES Inc. (http://www.zesinc....
19.451031
79
0.581158
14a3d4f08efa770369a7e1f302635f3e660a5b53
31,249
/* * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package jdk.vm.ci.hotspot; import static jdk.vm.ci.hotspot.CompilerToVM.compilerToVM; import static jdk.vm.ci...
38.674505
187
0.630836
f43b2594575af81ce8ffc0a7ae64046e9ed81547
13,763
/******************************************************************************* * Copyright © 2019 by California Community Colleges Chancellor's Office * * 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 * o...
52.530534
135
0.72506
abf3a24b7c99a798c086dfb8408248a078d491a3
3,357
// SPDX-License-Identifier: MIT package com.mercedesbenz.sechub.docgen; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; ...
34.608247
118
0.613047
b5f02cd44cc096ead4086edb9505016f7faf6d16
4,975
package com.safie.rtp.packet; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; public class ReceiverReportPacket extends AbstractReportPacket { // constructors --------------------------------------------------------------------------------------------------- public ReceiverReportPacket() { ...
38.867188
119
0.552764
6ef99e0b4bc8a8005cea4b60ada62414f514e4dc
3,107
package uk.gov.hmcts.reform.pcq.commons.model; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.io.Serializable; /** * This is the object representing the REST model for the PcqAnswers entity in the submit Answers API. * ...
26.330508
117
0.755069
cbe6b1ce119aaea5b0202b6e86dbaff5b218d829
3,002
package org.javers.core.snapshot; import org.javers.common.validation.Validate; import org.javers.core.commit.CommitMetadata; import org.javers.core.graph.*; import org.javers.core.metamodel.object.CdoSnapshot; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.Set; /** *...
41.694444
126
0.731512
6488adf5e98ca15b83925ea2e1e3d64e9f101181
2,712
/* * Copyright (c) 2008-2011 Ivan Khalopik. * * 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...
32.674699
96
0.703171
396320530288da240ea8120f7de33b1f143b7ee9
3,415
/*Copyright 2014 Hassan Radi 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 dis...
41.646341
146
0.646266
7170115028238f631fd88ec81f6950fefefe2c96
2,146
/* * 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 so4308554; /** * * @author André */ import java.io.BufferedReader; import java.io.IOException; import java....
32.515152
137
0.564306
22132231fcba9db030da855ef801ee62a9c86e3d
4,392
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
41.433962
190
0.789162
5d38b4cd2563ddb3794a86af77c44e33a386ed94
2,908
/** * */ package org.irods.jargon.core.transfer; import java.io.UnsupportedEncodingException; import java.security.SecureRandom; import javax.crypto.Cipher; import org.irods.jargon.core.connection.NegotiatedClientServerConfiguration; import org.irods.jargon.core.connection.PipelineConfiguration; import org.irods.j...
30.291667
95
0.780949
b653e6f2d1cf6b7fe534c82c065f9c9031e2c12f
2,018
package com.mycompany.propertytycoon.gui.game; import com.mycompany.propertytycoon.boardpieces.Property; import com.mycompany.propertytycoon.gui.utils.StageManager; import com.mycompany.propertytycoon.gui.utils.View; import java.net.URL; import java.util.List; import java.util.ResourceBundle; import javafx.collections...
30.119403
100
0.666006
c0afbd03cabd66fe2901397f9d9c79213fcbbc9f
1,086
package workload; import java.io.IOException; import main.Main; import org.junit.Assert; import org.junit.Test; import com.amazonaws.services.s3.AmazonS3Client; import com.amazonaws.services.s3.model.ObjectListing; public class WorkloadGeneratorIntegrationTest { @Test public void test_generateTask() throws IOEx...
27.846154
104
0.758748
52bf7815c8d54282882ab8f84127f797541795e1
214
package com.artezio.javax.jpa.abac.testServices; import javax.enterprise.context.ApplicationScoped; @ApplicationScoped public class CdiTestService { public String getValue() { return "one"; } }
16.461538
50
0.733645
1ede0a9bb580aeb50f6424e7dc522d12bed2da72
10,805
package com.bazl.dna.mix.service.impl; import com.bazl.dna.mix.model.vo.SingleSampleGeneVo; import com.bazl.dna.exception.DnaRuntimeException; import com.bazl.dna.mix.constants.Constants; import com.bazl.dna.mix.dao.DictCountDAO; import com.bazl.dna.mix.dao.QualtyPersonnelDAO; import com.bazl.dna.mix.dao.SingleSampleG...
29.76584
118
0.624341
b6d66843d38936e3effc54ba8a718293230945a6
1,936
package java_decisions; /** * Demonstrates the relational operators. */ class Example1_RelationalOperators { /** * Main Method. This is where the program begins. */ public static void main(String[] args) { int value1 = 10; int value2 = 15; int value3 = 15; bool...
53.777778
181
0.638946
d455ffb57a4e9d115d4a786cc249aa8447b7f460
7,394
package kro.kr.rhya_network.dr_talk.application; import android.app.Application; import androidx.appcompat.app.AppCompatDelegate; import java.util.ArrayList; import kro.kr.rhya_network.dr_talk.data.DrInfo; import kro.kr.rhya_network.dr_talk.data.DrListItem; public class RhyaApplication extends Application { pu...
31.46383
91
0.495131
fbe2ed6ef1c660a2a22c8bfe806e46767ff22d2c
2,390
/* * Copyright 2021 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 a...
37.936508
131
0.704184
2e612995e2ab3121a8a40bfde90805c66ba2394f
248
// "Replace lambda expression with 'Pattern.negate()'" "true" import java.util.function.Predicate; public class Main { void foo(Predicate<? super String> p) {} void bar(Predicate<? super String> p1) { foo(t -> !<caret>p1.test(t)); } }
20.666667
61
0.657258
d6eba714e18c814b65dc2d464fd6c795b037ba74
1,569
package hr.vsite.hive.dao; import java.util.Collections; import java.util.List; import java.util.UUID; import hr.vsite.hive.sensors.Sensor; import hr.vsite.hive.sensors.SensorFilter; import hr.vsite.hive.ticks.CounterTick; import hr.vsite.hive.ticks.Tick; import hr.vsite.hive.ticks.TickFilter; import hr.vsite.hive.ti...
22.73913
116
0.752709
f6514acd2022dd3eca0a84a6a1488abf97db8a98
790
package uk.gov.dvsa.motr.ui.page; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import uk.gov.dvsa.motr.ui.base.Page; public class PhoneNumberEntryPage extends Page { @FindBy(id = "phoneNumber") private WebElement phoneNumberField; @FindBy(id = "continue") privat...
21.351351
61
0.683544
7a4c773d2fe7ce0f7a3b8ff61f19ef6ce051e96d
1,862
package com.github.inarabr.validation; import com.github.inarabr.conditions.Exists; import com.github.inarabr.validation.testobjects.AnotherBean; import com.github.inarabr.validation.testobjects.SomeBean; import org.junit.Test; import java.util.Set; import static com.github.inarabr.validation.FieldCondition.field; i...
38.791667
127
0.758324
5f3cabb82c2c5948cdc2e46ec289c78cc96ef570
5,127
/* */ package org.apache.fontbox.cff; /* */ /* */ import java.io.EOFException; /* */ import java.io.IOException; /* */ import org.apache.fontbox.util.Charsets; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* ...
22.388646
91
0.356349
fe084258cc125e94ec4d6fe50e49529d009dad45
389
public class kangaroo { static String kangaroo(int x1, int v1, int x2, int v2) { //If the second kangaroo moves slow than the first there is a chance the first can reach it if (v1 > v2) { boolean willIntersect = (x1 - x2) % (v2 - v1) == 0; if (willIntersect) { ...
27.785714
99
0.508997
5b45c9db6f48beebc24e82d7031c950cef45f8c6
8,400
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses ...
14.023372
810
0.787143
008f4f29b664fa52213a1bf1f57b0b22e363c60f
1,420
package com.rahul.algorithms.sorting.big_sorting; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; /** * Created by mrahul on 07-May-17. * * This almost feels like cheating */ public class Sol...
31.555556
81
0.610563
d9703408d22d04fae88f1a304b8ca0c34b4da005
1,865
package androidcourse.android.jonaswu.yahoo.com.todolists; import android.content.Context; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.EditText; import android.widget.TextView; impor...
24.220779
81
0.655228
f6df1cd71a1f82e67a46e3f31369dd0c3c1f159a
836
package app.graph; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * @author Brian Stamm * */ public class Node { private int value; private List<Node> neighbors; private boolean visited; public Node(int value){ this.value = value; this.visited = false; neighbors = ...
16.076923
54
0.708134
b16522be7ad66b19817fb3c64cd5527708d36a4d
865
package com.example.lib_network.okhttp.listener; public class DisposeDataHandler { private DisposeDataListener mListener; private Class<?> mClass; private String mSource;//文件下载保存路径 public DisposeDataHandler(DisposeDataListener mListener) { this.mListener = mListener; } public DisposeD...
24.714286
95
0.668208
220ba26674e249d75c68f49e8577ecc9ee35e886
2,157
/** * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under * the terms of the Healthcare Disclaimer located at http://openmrs.org/license....
35.95
107
0.744089
fec695f6d531b3fb8a92753a5d3b1dfd0dda31a1
2,409
package org.terasology.game.types; import com.google.common.base.Objects; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import org.terasology.asset.AssetUri; import java.io.IOException; import java.util.Locale; /** * A URI to identify a game ...
26.184783
116
0.635949
35f575fe0ca163fa66ea725cf2f77b912c3379de
1,461
package com.hsj.egameserver.server; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.sql.DataSource; import java.sql.Connection; import j...
25.631579
123
0.651608
924a1500110c89db873c5f1a2366a9349e0634f6
157
package cn.com.saints.spec; /** * Created by MyLady on 07/12/2017. */ public class VideoRecordSource { public static final int SchoolPlatform = 0; }
15.7
47
0.700637
a1bbf1219544ec3e634c9f6cda8f4e3015e9bb0d
966
// Generated by protoc-gen-javastream. DO NOT MODIFY. // source: frameworks/base/core/proto/android/service/print.proto package android.service.print; /** @hide */ // message PrinterCapabilitiesProto public final class PrinterCapabilitiesProto { // optional .android.service.print.MarginsProto min_margins = 1; ...
35.777778
88
0.773292
a1a01d8a72829c43ad9d03b36a60356c8dd2fac6
7,339
package datawave.query.attributes; import java.nio.ByteBuffer; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import com.google.common.base.Function; import com.google.com...
41.230337
143
0.576645
0c7daa4b530426aef501f9d0982934776a883368
1,849
package eu.eventstorm.sql.type.common; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import eu....
27.597015
129
0.698215
a69316689e523bc7b511211220fd4939fe37f1fd
10,249
package com.example.lanusiv.myapplication; import android.annotation.SuppressLint; import android.app.Activity; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.os.Bund...
24.058685
96
0.652161
c3c03676d5eaec3403d4482a43360974caa75530
206
package org.vitrivr.cineast.core.data.providers.primitive; public interface LongProvider { default long getLong(){ throw new UnsupportedOperationException("No long value specified"); } }
20.6
71
0.737864
cf4fa850ff743640dff723437ae78ed6b4720be8
4,558
package com.reason.dune; import com.intellij.execution.*; import com.intellij.execution.configurations.*; import com.intellij.execution.process.*; import com.intellij.openapi.project.*; import com.intellij.openapi.projectRoots.*; import com.intellij.openapi.util.*; import com.reason.*; import org.jetbrains.annotations...
39.634783
168
0.571961
7171ec874c72de5d7f740bebf798539815fc3f01
1,473
package com.baoaccount.db; import java.util.Date; import cn.bmob.v3.BmobObject; import cn.bmob.v3.BmobUser; public class d_jieyu extends BmobObject { private Double j_money_in; private Double j_money_out; public Double getJ_money_out() { return j_money_out; } public void setJ_money_out(...
19.381579
58
0.642227
c881987e989de34d428982382593eda2ffd23f01
2,230
package nickle.scheduler.client.actor; import akka.actor.AbstractActor; import akka.actor.Props; import akka.routing.Router; import lombok.extern.slf4j.Slf4j; import nickle.scheduler.client.core.SafeJob; import nickle.scheduler.client.core.SchedulerJob; import nickle.scheduler.common.akka.ActorFuture; import nickle.s...
31.408451
118
0.71704
0d840e2b1e420de9ae369374406c05c10e85aa88
4,322
package mn.sict.krono.controller; import java.util.ArrayList; import java.util.List; import mn.sict.krono.renders.ImageDetection; import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.MatOfPoint; import org.opencv.core.MatOfPoint2f; import org.opencv.core.Point; import org.opencv.core.Rect; i...
36.627119
141
0.569644
49179ab06c0ab1c00a4759d266f4bb4c88bb2087
403
package fundamentos; public class TipoStringEquals { public static void main(String[] args) { String s1 = "2"; String s2 = new String("2"); System.out.println("2" == "2"); System.out.println(s1 == "2"); System.out.println(s2 == "2"); System.out.println(); System.out.println("2".equals("2"))...
19.190476
41
0.615385
3aa6592161662448903816bfede79c44078f672b
2,277
package eu.hansolo.steelseries.gauges; /** * * @author hansolo */ public interface Lcd { public boolean isValueCoupled(); public void setValueCoupled(final boolean VALUE_COUPLED); public double getLcdValue(); public void setLcdValue(final double VALUE); public void setLcdValueAnimated(fi...
28.111111
98
0.750549
8b7a9260ddb1eb5989dc76772a910af79e95aa0a
2,450
package seedu.address.model.test; import java.text.DecimalFormat; import java.util.Date; import java.util.List; import java.util.function.Supplier; import javafx.animation.Animation; import javafx.animation.KeyFrame; import javafx.animation.Timeline; import javafx.beans.property.SimpleDoubleProperty; import javafx.co...
28.488372
104
0.715102
9544d9c77d3b59b4768ef25f92f9ffa1951fac9e
1,291
package com.hencoder.hencoderpracticedraw1.practice; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.View; public class Practice4DrawPointView extends View { Paint roun...
29.340909
100
0.703331
6a1cd7ed1bdd9a5191dd385543934a191a5d7ec5
4,380
package com.example.vishal.project1; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.v...
32.932331
127
0.575114
1e405836188894e61d953f2f9080ebd78f5ea5be
2,132
/* * Copyright (C) 2018 The Harbby 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...
25.686747
127
0.676829
b41cb1af638fa279b7c53092bbb61e7ca4db9114
7,768
//////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 2002-2011 Prof. William H. Green (whgreen@mit.edu) and the // RMG Team (rmg_dev@mit.edu) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of ...
27.742857
111
0.661946
81e7cc8a682a3dec8beee065cc0c252db77ebe27
4,650
package com.coin.exchange.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PointF; import android.text.TextUtils; import android.util.AttributeSet; import android.view.View...
28.703704
103
0.611613
08820ff74dc593c344de848b2d7b8802c7a5940f
1,972
package com.yjl.distributed.mq.config.config; import java.util.concurrent.TimeUnit; import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.context.properties.ConfigurationProperties; import org...
30.338462
99
0.688134
990d9db1fcb560daf12931749b3ad5baa0099cf0
507
package com.service.impl; import com.hello.HelloService; import com.hello.model.User; import com.small.rpc.annotation.RpcService; import lombok.extern.slf4j.Slf4j; @RpcService(HelloService.class) @Slf4j public class HelloServiceImpl implements HelloService { public String hello(String name) { return "Hel...
21.125
55
0.666667
61237e44a583aa8c4c5da1ed8bac53b713f7cf25
2,163
/* * 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 ...
33.276923
91
0.729542
76909280a6f885f492b39ed250fd066bd6338418
17,895
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class insert_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFact...
57.540193
248
0.579715
bc777c898791fa4bb45280e353f64bea413c3dc8
725
package xc.lib.common.httpclient.test; import xc.lib.common.httpclient.CallBack; import xc.lib.common.httpclient.Cancelable; import xc.lib.common.httpclient.annations.Field; import xc.lib.common.httpclient.annations.FileParm; import xc.lib.common.httpclient.annations.Get; import xc.lib.common.httpclient.annations.Head...
25.892857
54
0.703448
ba197fbbd13f5c4ef9cb48ad9d6ee50fbfaca536
4,383
package com.example.andperfms336.http; import android.util.Log; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.Iterator; import ja...
24.903409
73
0.681269
108bbb0af99c472b447c3038015630d01c0e16fb
4,400
/******************************************************************************* * 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...
24.309392
115
0.681591
1cd7346b25e7596f7c690101e37a406f8cf1ed19
345
import org.junit.Test; import static org.junit.Assert.*; public class SimpleParenthesesTest { @Test public void testSimpleExpressionWithParens() { Evaluator instance = new Evaluator(); final String expression = "(2+3)*4"; final int result = 20; assertEquals( instance.eval( expression...
20.294118
57
0.663768
5a40d1df5a375a49063c0510b4d6f42558c1dee4
1,256
package com.example.alber.ejercicios; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.MultiAutoCompleteTextView; public class MautoCompleteActivity extends AppCompatActivity { MultiAutoCompleteTextView multiAutoCompleteTextView; ...
43.310345
96
0.69586
d1568cbfadf158f59589514ed36b29a15b1e268e
6,624
package org.apidb.apicomplexa.wsfplugin.motifsearch; import java.util.HashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.log4j.Logger; import org.gusdb.wdk.model.WdkModelException; import org.gusdb.wsf.plugin.PluginModelException; import org.gusdb.wsf.plug...
36
117
0.611866
ce6400f514bd574d3c7fb3d310ad0a2ca01baac4
2,371
package gui; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Graphics; import java.awt.Toolkit; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import j...
30.397436
112
0.773935
2e9152c9fb36179cb689543b42f2c30016293f47
2,531
/** * Tencent is pleased to support the open source community by making Tseer available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a...
33.746667
125
0.742789
a1cd0ccf7b1ef3b0c923f3a847a2272e39937cba
3,415
package net.videosc.views; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.Typeface; import android.os.Build; import android.util.AttributeSet; import android.util.Log; import android.view....
27.32
139
0.713909
2f18cd363b53c207f5bc02ad3c6dd37a83182aaf
649
package com.chuhelan.netex.service; import com.chuhelan.netex.domain.Order; import com.chuhelan.netex.domain.OrderUser; import com.chuhelan.netex.domain.User; public interface OrderService { public Order getOrder(String id); public void deleteOrder(String id); public void assignCourier(String oid, Integer...
36.055556
122
0.768875
ddb9bff132cae1aaeb1bc59da799e55e2d8fd8a4
3,237
package com.citymatch.Domain.Models; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.citymatch.R; import com.nostra13.universalimageloader.core.ImageLoader; import java.util.HashMap; import java.u...
18.929825
85
0.566883
35e2c61ddf89298836271dc85bf68e9cd0e31522
3,079
package com.github.games647.craftapi.model.skin; import java.net.MalformedURLException; import java.net.URL; import java.util.Collections; import java.util.Map; import java.util.Objects; import java.util.Optional; /** * Decoded data of one of the texture types. */ public class Texture { private static final St...
25.237705
88
0.580708
78e10e7dc6e21ef9f8ab6d1ed61d1f56a6047d0e
1,956
package irmaANALYSIS; import java.util.ArrayList; import javafx.event.EventHandler; import javafx.scene.Group; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.scene.paint.Color; import javafx.scene.shape.Line; import javafx.scene.shape.Rectangle; public class timelineScale { G...
25.076923
67
0.689673
563dd6512c68826c4407eec8d0a0134f5b39d42c
9,244
package de.gg.game.ui.dialogs; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.badlogic.gdx.scenes.scene2d.ui.ImageButton; import com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin;...
32.780142
74
0.717979
7f8fa6359e691dcb8e6ecab8ce68a48aa8693d04
1,090
import java.io.Serializable; /* * 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. */ /** * * @author Lucas */ public class Usuario implements Serializable { private st...
20.961538
80
0.573394
86ff8d7d4925603dec110df6b6b7d4652e1ea636
948
package com.devskiller.jfairy.producer.person.locale.zh; import com.devskiller.jfairy.producer.person.locale.AbstractAddress; /** * com.devskiller.jfairy.producer.person.locale.zh.ZhAddress * * @author lhfcws * @since 2017/3/2 */ public class ZhAddress extends AbstractAddress { private static final String CITY...
26.333333
111
0.731013
b3b990017dead5c85a86c13c1f541d2af227a5a4
4,684
package ir.elenoon; import java.io.IOException; import java.util.Map; import org.graylog2.plugin.alarms.AlertCondition.CheckResult; import org.graylog2.plugin.alarms.callbacks.AlarmCallback; import org.graylog2.plugin.alarms.callbacks.AlarmCallbackConfigurationException; import org.graylog2.plugin.alarms.callbacks.Al...
34.441176
218
0.723527
969a130b0b46c889eb94ae49afb9b7a3d7d1ff8d
481
package com.example.apicommons.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * @author: liubiao * @date: 2021/10/9 11:35 * @Description: */ @Data @AllArgsConstructor @NoArgsConstructor public class Payment implements Serializable {...
15.516129
46
0.706861
ffcc68f5a8e4afdf154b3ca38775e141ac58c759
240
package model.DAO; import java.util.List; import model.VO.AdminVO; public interface AdminInterDAO { public void removerById(AdminVO adminvo); public void editar(AdminVO adminVo); public List<AdminVO> listar(); }
18.461538
46
0.704167
76a02c697f3627afab47a3610b3def7a42dd3749
5,041
/* * Copyright (C) 2009 The Guava 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 agre...
34.765517
99
0.680619
087ac46241a160c4aad1015224840d31ece47ebb
5,093
/* * 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 ...
30.315476
99
0.678382
e3562f04e361750ee230291139dd25d4ef5b1a42
726
package tt.analysis; import java.util.Arrays; import java.util.Collection; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @RunWith(Parameterized.class) public class MatchAnalyserTest { @Parameterized.Parameters public static Collection<Ma...
24.2
98
0.778237
dce24ab0d370fab583a7228eae11d311eda0463e
6,559
package ca.payments.example.restclient.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class ExampleResponseModel { private String branchClassification; private String branchDomicile; private String civicAddress; private String cr...
30.649533
92
0.666413
9638d5224c499447f3e7ad308c512d677b50ffa6
1,229
/** Ben F Rayfield offers this software opensource MIT license */ package immutable.util; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import mutable.util.Files; public class HashUtil{ public sta...
34.138889
88
0.74288
094edaf84d2f2c5ca71256b66fb5455654eaf498
18,590
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses...
13.609078
813
0.78908
0a7b4d69eeabc92c054f30362e642a6ec747ee5f
571
package com.tencent.qcloud.ugckit.component.swipemenu; public interface OnSwipeMenuItemClickListener { /** * Invoke when the menu item is clicked. * * @param closeable closeable. * @param adapterPosition adapterPosition. * @param menuPosition menuPosition. * @param direction...
38.066667
133
0.730298
99da95086c2488ec7a57cbf882f2ab84a52a8cd9
1,168
package org.forgeide.service; import javax.ejb.Stateless; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.forgeide.controller.GitHubRegistrationController; /** * GitHub related RESTful services * * @author Shan...
20.491228
94
0.684075
81d22505438fd1e5c25d9abc34042446143a11e1
6,510
package com.pseudonymous.appmea.network; import android.util.Log; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.text.DateFormat; import java...
34.263158
98
0.561444
807b646c3831d91f7600741841be26f62b5894b2
1,774
package com.ptsmods.morecommands.mixin.compat.compat17plus; import com.ptsmods.morecommands.MoreCommands; import net.minecraft.block.BlockState; import net.minecraft.block.entity.HopperBlockEntity; import net.minecraft.inventory.Inventory; import net.minecraft.item.ItemStack; import net.minecraft.util.math.BlockPos; i...
63.357143
323
0.810034
8b5587e440ba1c7b8689cd641c68bffc4dc63a76
4,694
package org.intercomics.controller; import java.net.URI; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.intercomics.domain.BoardVO; imp...
32.150685
115
0.763102
5de86b1cbb33805b6031fc671197e072254918f6
208
import java.io.*; public class UseDatabase { static public void main(String a[]) throws IOException { // (new Database()).run(new Personal()); (new Database()).run(new Student()); } }
23.111111
60
0.610577
342543b5e797e52e8bc79d4f45ac7ad884442d0f
361
package com.dianrong.common.uniauth.cas.exp; import javax.security.auth.login.AccountException; public class MultiUsersFoundException extends AccountException { private static final long serialVersionUID = -1716258367838958640L; public MultiUsersFoundException() { super(); } public MultiUsersFoundExcep...
21.235294
69
0.772853
31d2fd0885b31feeb2c49697ec0734333be7f443
34,063
package com.wincom.mstar.domain; import java.util.ArrayList; import java.util.List; public class CDIObjectExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table nfjd502.dbo.CDIObject * * @mbggenerated Thu Mar 02 11:23:21 CST 2017 */ ...
33.99501
102
0.607521
4e9602e9a862cab00d06dd424551bc216de7e92f
437
package util.function; import java.util.Objects; @FunctionalInterface public interface BiBiBiConsumer<A, B, C, D> { void accept(A a, B b, C c, D d); default BiBiBiConsumer<A, B, C, D> andThen(BiBiBiConsumer<? super A, ? super B, ? super C, ? super D> after) { Objects.requireNonNull(after); re...
25.705882
114
0.572082
5264bd5b3058456a37c48f5a7d3a3b2c557ca70e
6,673
/* Copyright 2011-2012 Space Applications Services * Licensed to CS Communication & Systèmes (CS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * CS licenses this file to You under the Apache License, V...
53.814516
210
0.692192
b84b48ca836deb918872ed3b2e50b7a905e2136c
4,213
/* * JBoss, Home of Professional Open Source * * Copyright 2013 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/lic...
20.254808
75
0.654166
bd8587b8665203a2242eece384be9dc53f36477f
978
package com.itjiayan.beiwanglu; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.plugins.Page; import com.itjiayan.model.Note; import com.itjiayan.service.INoteService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.spri...
25.076923
111
0.690184
a5107718fbc2130a533734084220c65fbbcdb587
4,298
package fun.play.alog.search; import org.apache.commons.lang.RandomStringUtils; import org.junit.Assert; public class RBTree<K extends Comparable<K>, V> { class Node{//144B K key; V val; int color; Node left; Node right; int size; public Node(K key,V val,int size, int color) { this.key = key; ...
23.486339
88
0.570265
b4c5f7aa7d2d4a038a9ca3934f60549f21b8a873
7,892
package by.fabric.kewbr.talking_crocodile.Database; import android.content.Context; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import j...
30.237548
116
0.577927
98a7368c4f49679dadb8148381b0ce38211ef206
1,659
package io.agora.contract.utils; /** * 作者:尚硅谷-杨光福 on 2016/7/22 09:21 * 微信:yangguangfu520 * QQ号:541433511 * 作用:常量类,配置网络地址 */ public class Constants { /** * 网络视频的联网地址 */ public static final String NET_URL = "http://api.m.mtime.cn/PageSubArea/TrailerList.api"; /** * 搜索的路径 */ pu...
39.5
253
0.714286