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
80d7aeb23cced035e18ff2aa31a7f540a5a315de
309
package com.newMedia.service; import com.newMedia.dto.BuyInfo; public interface BuyPService { // 购买商品 BuyInfo buyProduct(int productId, Long buyerPhone, String buyerOpenid, String buyerMessage, int receiveMethod, int payMethod); // 给商品添加评价 TODO int addComment(); // 获取当前已购买的商品 }
20.6
130
0.718447
dba09959131c3880c75397c867b1bdeb3c1df835
1,294
package com.reading.start.presentation.mvp.holders; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.TextView; public class ChildInformationViewHolder { private View mActionBar; private RecyclerView mRecyclerView; private Im...
21.566667
97
0.653787
e13d4941d7dfcdd77850702192c788c97442e700
4,126
package com.qsd.bookstore.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.sp...
28.853147
82
0.75618
fda1db0388be6068efac69c12ff475d7850033da
7,579
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
45.933333
566
0.740599
c1627e60c9c09559310a72aac1984740feeb8944
2,705
package fr.insee.arc.utils.files; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.file.CopyOption; import java.nio.file.Files; import java.nio.file.Path; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import fr.insee.arc.utils.uti...
28.177083
108
0.680591
9e20747146e49af8cb280fa313b6292b7cfa6929
2,408
package com.spinyowl.spinygui.core.system.event.listener; import static com.spinyowl.spinygui.core.node.NodeBuilder.frame; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.spinyowl.spinygui.core.event.WindowIconifyEvent; import co...
31.272727
93
0.739618
46f3a3d1fbe008a6d900c80e358f45f21e8142d8
3,737
package club.imemory.app.http; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import club.imemory.app.listener.HttpCallbackListener; import okhttp3.Authenticator; import okhttp3.Callback; ...
31.141667
99
0.548568
8433fc171fd141c36dd18e5bb3f9feeb34660353
9,307
package com.bv.eidss.web; import java.io.IOException; import java.io.InputStream; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Locale; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import android.util.Xml; import com.bv.eidss....
43.694836
148
0.573654
ce0a8aadbdfe6e37597972b987b1b3bf9fa3f161
3,651
/* * Copyright (C) 2014 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 agree...
38.03125
122
0.691865
cc46a28058df1155d1a5e643624bb77b7968877e
576
package PocketGems; public class StrStr { public int strStr(String haystack, String needle) { int l1 = haystack.length(), l2 = needle.length(); if (l1 < l2) { return -1; } else if (l2 == 0) { return 0; } int threshold = l1 - l2; for (in...
22.153846
61
0.482639
8350ebe5825f043c70589f954ab04fe1b035bc06
2,635
import java.io.File; import java.util.Scanner; class Valg{ public static void main(String[] args) throws Exception{ Scanner filLeser = new Scanner(new File("stemmer.txt")); String[] valg = new String[456]; int[] stemmer = new int[4]; //Lagre alle stemmer i en string array for(int i = 0...
41.825397
86
0.63833
a62e40d62b687d02dd9e7fd5070e731ad4042cff
5,221
package com.purbon.kafka.topology.backend; import com.purbon.kafka.topology.BackendController.Mode; import com.purbon.kafka.topology.model.cluster.ServiceAccount; import com.purbon.kafka.topology.roles.TopologyAclBinding; import com.purbon.kafka.topology.utils.JSON; import java.io.*; import java.io.BufferedReader; imp...
29.005556
107
0.623444
28ff06906b2c9928ba3dbf4cbd1f0f4979c58caf
1,045
package tyrfing.common.struct; public class Grid<T> { private T grid[][]; private int width; private int height; @SuppressWarnings("unchecked") public Grid(int width, int height) { this.width = width; this.height = height; this.grid = (T[][]) new Object[width][height]; } public int getWidth() ...
13.397436
48
0.566507
f78469cd81c6d1763884f4f21c236196369c221f
878
package edu.fiuba.algo3.controllers; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.Pane; import java.net.URL; import java.util.ResourceBundle; public class ControladorFotoDeCiudad implements Initializable ...
24.388889
72
0.719818
bb267a4a23c4e92e67978561dc0a695bdc78add5
1,027
package cn.abelib.biz.vo; import java.math.BigDecimal; import java.util.List; /** * * @author abel * @date 2017/9/11 */ public class CartVo { private List<CartProductVo> cartProductVoList; private BigDecimal cartTotal; private Boolean allChecked; private String imageHost; public List<CartProd...
20.959184
77
0.672833
2493bba89fb42edfb1cd7b1024845cfc360fea0c
1,048
package com.example.criminalintent.Database; import android.content.Context; import android.database.DatabaseErrorHandler; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.example.crimin...
28.324324
238
0.758588
e8aed7a9481ef20fdd4ea919b35e24cd070af3bd
2,719
/** * * Copyright 2017 Florian Erhard * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
21.752
82
0.716072
f93bdee462605ef25d9bdfc88e1ca95041a80827
887
package pl.roentgen.util.model; import javafx.scene.paint.Paint; public class Point { private int id; private int x; private int y; private boolean visible; private Paint fill; public Point(int x, int y) { this.x = x; this.y = y; } public int getX() { ret...
14.306452
45
0.520857
52c17a7afb2e83e0e74e83b163ccb4e7e79ffa8e
6,264
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.eas.designer.explorer.files.wizard; import com.eas.designer.application.indexer.IndexerQuery; import com.eas.util.StringUtils; import java.awt.Component; import java.io.IOException; import java.text.MessageF...
34.229508
208
0.653097
45b9ba6294db843383abfd15795dbfd1713e374b
343
package com.richard.printer.enumerate; /** * author Richard * date 2020/8/18 10:49 * version V1.0 * description: 打印机相关错误码 */ public enum ErrorCode { OpenPortFailed, OpenPortSuccess, ClosePortFailed, ClosePortSuccess, WriteDataFailed, WriteDataSuccess, ReadDataSuccess, ReadDataFaile...
17.15
38
0.702624
7670eec4faa670b4aad8f9011d7c900f66c0dbd9
5,400
/* *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. licenses this file to you under the Apache License, *Version 2.0 (the "License"); you may not use this file except *in compliance with the License. *You may obtain a copy of the License at * *http://www.apache.org/lic...
38.848921
147
0.649259
f4ae876c44678f4e1aba4089416e1e743635223e
169
/** * Simple convenient creation of plots. * * For examples see the demo package net.finmath.plots.demo. * * @author Christian Fries */ package net.finmath.plots;
18.777778
60
0.710059
49e178f9ea555b3367dcaba711c2270ba4025768
520
package org.owasp.appsensor.rpc.thrift; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class AppSensorApiServer { public static void main(String[] args) { @SuppressWarnings("resource") AbstractApplica...
28.888889
100
0.805769
c9d0eaed08dc25ec21f234d72ead956e632a4609
3,400
/* * smart-doc * * Copyright (C) 2016-2021 smart-doc * * 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 ...
33.009709
101
0.650294
aa160c4ffe6c9e8c9110810a37c50ad6cc55c13c
9,500
/* * Copyright 2015 SIB Visions GmbH * * 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 ...
39.583333
165
0.723895
3089fe0d2fcb65c4ff4a593e98fb6002b5d0054d
74
package com.kaznowski.hugh.raftservice; public enum RaftMessageType { }
12.333333
39
0.797297
3484bfd2a19294df55d7c5a73566819e1966e89e
184
package com.avatech.edi.mdm.bo; /** * @author Fancy * @date 2018/9/6 */ public interface IMDMMasterData { String getUniqueKey(); void setUniqueKey(String uniqueKey); }
14.153846
40
0.673913
f01051c8475160c4d5ebd10ca3f8f4feb62fdbdc
13,112
package abdi.andreas.grideous.game; import android.content.Context; import android.content.res.Resources; import android.graphics.Point; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; import java.util.Random; import abdi.andreas.grideous.R; import abdi.andreas.grideous.en...
30.004577
97
0.527608
dba08548db50205328f75a8678f9d408fa7e3f62
789
package com.eshop.cart.entity; import java.util.HashMap; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "cart") public class Cart { @Id private String cartId; private HashMap<String, Long> productsInCart; private String cartS...
19.725
70
0.751584
aebef97eaf6acf9c1cb00113d0a8539a7d563726
2,505
package com.ruoyi.system.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.ruoyi.system.mapper.HyMaintenanceunitMapper; import com.ruoyi.system.do...
25.05
99
0.700998
6982400b66b8df54c474dcd0cb97de7a387efdef
3,330
/* * The MIT License (MIT) * * Copyright (c) 2021 Roger L. Whitcomb. * * 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 * t...
31.714286
106
0.663664
e09647a883655782308e8ebc7eb8447158ac7e68
542
package GFG.Dynamic; import java.util.HashMap; class Solution { HashMap<Integer,Integer>memo=null; Solution(){ this.memo=new HashMap<Integer,Integer>(); } public int fib(int n) { if(memo.containsKey(n)){ return memo.get(n); } else if(n==2 ||n==1) ret...
20.074074
49
0.527675
64bb2308bfbb3fe11ac045f6d307d9c9619501ef
4,438
package com.thestudygroup.celebrityquiz.adapter; import android.content.Context; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; import android.widget.RadioButton; import android...
39.981982
130
0.661334
5041b9d0c599f74732ef24f909fe9b1dfe851c3e
16,662
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.491498
810
0.803745
f9213ff962380cc94447831af27e4b0a623da99c
2,722
package org.pipecraft.infra.io; /** * Encapsulates file writing settings, with defaults. * * @author Eyal Schneider */ public class FileWriteOptions { private boolean isAppend = false; private int bufferSize = 8192; private Compression compression = Compression.NONE; private int compressionLevel; privat...
24.303571
121
0.682586
b6468514d55edc88908b679763808f13c8c67b6c
2,389
package code.elif.controller; import code.elif.model.TodoData; import code.elif.model.TodoItem; import code.elif.service.TodoService; import code.elif.util.AttributeNames; import code.elif.util.Mappings; import code.elif.util.Views; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation....
30.240506
99
0.696107
6da0bc31fd02dd710b8e171012e0501a0791b33b
3,685
package com.android.example.templatechooser.ui.list; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MutableLiveData; import android.arch.lifecycle.Observer; import android.arch.lifecycle.ViewModel; import android.support.annotation.Nullable; import android.support.annotation.VisibleForTesting; ...
29.246032
93
0.6
bd2bd0cd149d2062c2343534d84473bdccbde8e2
195
package com.dragovorn.mccw.exceptions; public class SchematicNotFoundException extends RuntimeException { public SchematicNotFoundException(String message) { super(message); } }
24.375
66
0.769231
7c98435e3e7e9a22f1d35b49c18e3492a1024250
3,810
package eu.diversify.ffbpg.evolution; import eu.diversify.ffbpg.BPGraph; import eu.diversify.ffbpg.Platform; import eu.diversify.ffbpg.evolution.platforms.PlatformEvolutionOperator; import eu.diversify.ffbpg.random.RandomUtils; import java.util.ArrayList; import java.util.Collections; import java.util.Hashtable; impor...
39.278351
154
0.644619
fa1ecf6eb134e0d683a73754366d489336013a1e
510
package no.nav.vedtak.felles.integrasjon.jms.precond; import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat; import org.junit.jupiter.api.Test; public class AlwaysTruePreconditionCheckerTest { @Test public void test_isFulfilled() { var checker = new AlwaysTruePreconditionChecker(...
28.333333
74
0.739216
880a6637b180c00a9e8e3596dbd342ed150fd029
911
package com.dihanov.musiq.ui.detail.detail_fragments.detail_fragments_top_tracks; import com.dihanov.musiq.interfaces.HorizontalBarChartGettable; import com.dihanov.musiq.models.Artist; import com.dihanov.musiq.ui.BasePresenter; import com.dihanov.musiq.ui.BaseView; import com.dihanov.musiq.ui.detail.ArtistDetails; im...
33.740741
108
0.803513
dce57cf8c9afdd7a7a6a2c6f1befd05d4dd2917d
1,948
/* * 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.iso.Users.Login; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import jav...
34.175439
83
0.662731
0e599f4c6f44ac165f73eb6044f4abecd21e91cd
2,011
package timus; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Timus_2002 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Map<String, String> users = new HashMap<>(); Map<String, Boolean> logging = new HashMap<>(); ...
38.673077
71
0.438588
e3b68a51408dc79b04b0ccd01334595917905a2b
360
/* Copyright (C) 2006 Versant Inc. http://www.db4o.com */ package com.db4o.cs.internal; import com.db4o.foundation.*; import com.db4o.internal.*; /** * @exclude */ public class DebugCS { public static ClientObjectContainer clientStream; public static LocalObjectContainer serverStream; public ...
18.947368
60
0.711111
e9d02f2ed206fd049948a37ee6ce84627b41e427
679
package org.loadtest4j.drivers.jmeter.util; import java.util.Arrays; import java.util.List; import java.util.function.Consumer; public final class Consumers { private Consumers() {} public static <T> Consumer<T> compose(Consumer<T>... consumers) { return new ConsumerChain<>(Arrays.asList(consumers));...
24.25
69
0.642121
37ac28f5181e9e63aafc549daed6d2fc5e7709b5
1,974
package com.example.boundserviceexample; import androidx.appcompat.app.AppCompatActivity; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.view.View; import android.widget.Button; import a...
28.2
86
0.643364
22f65cd1998959fb00b0473e1eeb8342e489f99e
986
package org.checkerframework.checker.test.junit; // Test case for issue 723. // https://github.com/typetools/checker-framework/issues/723 // This exists to just run the I18nFormatterLubGlbChecker. import org.checkerframework.checker.testchecker.lubglb.I18nFormatterLubGlbChecker; import org.checkerframework.framework....
32.866667
91
0.764706
69720aeda0a919b738656be9a5d6abef221ffb56
657
package com.imwyw.spbatis.controller; import com.imwyw.spbatis.dao.ConfigDao; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * @author wangy...
22.655172
62
0.753425
dab37a86fd19aa0ae22fed0831566edea7a5d8a4
2,313
package org.usfirst.frc4946.AlphaDogs2015Robot.commands.autonomous; import org.usfirst.frc4946.AlphaDogs2015Robot.RobotConstants; import org.usfirst.frc4946.AlphaDogs2015Robot.commands.elevator.ElevatorMoveToPosition; import org.usfirst.frc4946.AlphaDogs2015Robot.commands.elevator.SetElevatorMode; import org.usfirst.f...
39.87931
147
0.821876
156cbdf196109df000b9b62f89c03a1d7f0c0a77
579
package com.bitcoin.indexer; import com.bitcoin.indexer.blockchain.domain.Block; import com.bitcoin.indexer.repository.BlockRepository; import io.reactivex.Maybe; import io.reactivex.Single; public class FakeBlockRepo implements BlockRepository { @Override public Single<Block> saveBlock(Block block) { return Sin...
19.3
55
0.761658
9f6d177355302c2954fa094231707a8dd52c0ad6
545
package com.vigorous.asynchronized.network.api; import com.vigorous.asynchronized.network.data.request.ExampleRequestParam; import com.vigorous.asynchronized.network.data.response.ExampleEntity; import io.reactivex.Observable; import retrofit2.http.Body; import retrofit2.http.POST; /** * service统一接口数据 */ public i...
22.708333
77
0.755963
58f111e0963692bb120f937f6f55a882e42cbef9
293
package dreme.macros; import dreme.Environment; import dreme.Identifier; import dreme.SchemeObject; public class SetMacro extends BindingMacro { protected void bind(Environment environment, Identifier identifier, SchemeObject value) { environment.set(identifier, value); } }
24.416667
93
0.774744
cd771ee85ecb4c0dba4225143f187a3374fec385
11,373
/* * Copyright 2021 Andreas Textor * * 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 ...
43.079545
112
0.651631
54d793a71bde85f32edd46d05cbd01b68a132b0b
1,289
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 留学缴费-订单状态模型 * * @author auto create * @since 1.0, 2021-08-16 15:52:31 */ public class TuitionISVOrderStatusDTO extends AlipayObject { private static final long serialVersionUID...
18.681159
68
0.680372
65042ee12913423d607a8fce7d1b546dd5f948bb
1,645
/*- * #%L * Proof Utility Library * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2014 - 2017 Live Ontologies 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:/...
22.22973
75
0.706991
994bd1552f1913490c7c355de717fd552ca98ba2
936
package com.zxcs.printtemplate.model; import lombok.Data; import lombok.ToString; import java.io.Serializable; import java.util.Date; /** * 打印模板-文档表 * Created by zfh on 2018/12/12 */ @Data @ToString public class PrinterTemplateDocumentDO implements Serializable { private static final long serialVersionUID = ...
13.565217
70
0.558761
98d52f1122da5acc221a25ce946e363c938c0d78
5,400
package org.apache.lucene.index; /** * 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, Versi...
28.877005
96
0.59
86f41a35112d6553b1ec402bbbb12e8c34abd7d3
704
/** @author Farheen Bano Reference- https://www.geeksforgeeks.org/unbounded-knapsack-repetition-items-allowed/ */ import java.io.*; import java.util.*; import java.lang.*; class Solution{ static int knapSack(int N, int W, int val[], int wt[]) { int dp[][]=new int[N+1][W+1]; for(int ...
22.709677
77
0.410511
26f4201f2ba1f4fe34fd82de0b7b10c2caf6c2f9
2,229
/* * Copyright (C) 2014 Bob Browning * * 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...
36.540984
126
0.723643
f52c2c83643e99ba8e1e9dae3c8459c3a4471adf
451
import java.io.*; class SumDigit{ public static void main(String[] args) throws IOException { int r, sum=0,num; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a Number:"); num=Integer.parseInt(br.readLine()); while(num>0){ ...
30.066667
79
0.567627
932f8bf152c0f5f76fbd97e1a01f3806fbd40f04
1,078
import java.util.*; public class Main { public static void main(String[] args) { GenericTreeImplementation tree= new GenericTreeImplementation(); } } class GenericTreeImplementation { class Node { int d; ArrayList<Node> child; Node(int d) { this.d = d; child...
24.5
82
0.526902
2367317b49b485156c797d6dc9aedbac5945bfa0
2,994
package greeter; import static org.junit.Assert.assertEquals; import greeter.api.Greeter; import java.io.File; import java.util.ServiceLoader; import org.apache.commons.io.FileUtils; import org.jboss.modules.LocalModuleLoader; import org.jboss.modules.Module; import org.jboss.modules.ModuleClassLoader; import org.jb...
41.013699
160
0.751837
e92a89327547c1c31c9c8ee8d31fec0c0cd493c1
727
/* * Copyright 2021 Marcin Bukowiecki. * Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package io.vacuum.livetemplates; import com.intellij.codeInsight.template.TemplateActionContext; import com.intellij.codeInsight.template.TemplateContextType; import org....
27.961538
103
0.753783
3d6939f5c98e0484a88fc163e95c0be5342bbc84
8,144
/* * Copyright © 2018-2021 VMware, Inc. All Rights Reserved. * SPDX-License-Identifier: BSD-2 */ package com.vmware.dcm.backend.ortools; import com.google.ortools.sat.CpModel; import com.google.ortools.sat.CpSolver; import com.google.ortools.sat.CpSolverStatus; import com.google.ortools.sat.IntVar; import com.goog...
42.638743
114
0.645138
e47eb354fd3d201470c5fd74b70758ac7340f7c7
521
package bot.config; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import bot.clients.GuildWars2ApiClient; import bot.services.gw2.AccountService; @Configuration @EnableFeignClients(basePa...
26.05
71
0.833013
2c891a77c613b7e07619ba735e3fd6e693600d25
18,550
/* * Copyright 2016-2018 Axioma srl. * * 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.538462
147
0.755633
a3ae0fed9381dc515c5987835d4f33f406671e03
935
package io.irontest.auth; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; public class AuthR...
44.52381
106
0.75615
091acf13d6647925daf2a5164320bd2edba8bf30
1,406
/** * */ package chapter_1; /** * Question 1.6: Implement a method to perform basic string compression using * the counts of repeated characters. For example, the string aabcccccaaa would * become a2b1c5a3. If the "compressed" string would not become smaller than the * original string, your method should return ...
30.565217
80
0.618777
bd0f8fcadafb914e2363c4de61d0b03bc398cb79
2,859
package mage.cards.b; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.Mode; import mage.abilities.SpellAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.cost.CostModificationEffectImpl; import mage.abilities.keyword.FlyingAbility; import mage.card...
31.417582
110
0.684155
7ef93ae5d4981e591af9956cb65cdb91dc40f558
2,430
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
25.3125
75
0.730041
ff45436cefbf84d5e8c0c5c8361fccd2169582e9
5,564
package com.instructure.loginapi.login.adapter; import android.app.Activity; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Filter; import android.widget.Filterable; import android.widg...
36.12987
206
0.601186
67527d864da58272b4aff9af27f418dd9bb3581c
1,093
package com.yunpan.service.impl; import java.util.List; import com.yunpan.dao.IDiskInfoDao; import com.yunpan.dao.impl.DiskInfoDaoImpl; import com.yunpan.entity.DiskInfo; import com.yunpan.service.IDiskInfoService; /** * 网盘操作类 * @author pamgo * @version v1.0 */ public class DiskInfoServiceImpl implements IDiskIn...
20.240741
67
0.732845
7de842b67bfad5c6134df7e279edf8568d76724c
15,810
package com.wanhive.iot.dao; import java.math.BigInteger; import java.security.SecureRandom; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.NoSuc...
32.530864
310
0.66907
b82b309ca0096f3826a4d6009a727376bf5ae9be
1,341
package org.dvare.expression.operation.logical; import org.dvare.annotations.Operation; import org.dvare.binding.data.InstancesBinding; import org.dvare.binding.model.ContextsBinding; import org.dvare.exceptions.interpreter.InterpretException; import org.dvare.exceptions.parser.ExpressionParseException; import org.dva...
31.928571
135
0.767338
5420e6ba8f4afaa753e74cb4b6fe277fcf0d21b6
289
package com.kagito.service.impl; import com.kagito.service.DemoService; /** * 告诉spring这是一个需要被管理的bean(放入spring容器) */ public class DemoServiceImpl implements DemoService { @Override public String sayHello(String name) { System.out.println("Hello, " + name); return "success"; } }
19.266667
53
0.743945
089fc5c4f19e7e904b21325f3b05a85429f821e6
5,233
/* * 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 * distributed u...
22.080169
85
0.737818
097c7a14d6bf0cf4c789c28d1884ae2b76ba63e0
489
package com.mindata.blockchain.core.repository; import com.mindata.blockchain.core.model.MessageEntity; /** * @author wuweifeng wrote on 2017/10/25. */ public interface MessageRepository extends BaseRepository<MessageEntity> { /** * 删除一条记录 * @param messageId messageId */ void deleteByMessage...
22.227273
74
0.693252
302a54bc54347d7a6d1d74a5f3ce9ce4c642168b
8,628
/** * 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.282297
128
0.733774
4e900b08f5b51c0e57af7aaa9a44fa452dae7678
588
package leetcode_explore.trees.recurcive; import java.util.ArrayList; import java.util.List; public class PostOrderTraversal { private List<Integer> postOrderList = new ArrayList<>(); public List<Integer> postorderTraversal(TreeNode root) { if (root != null) { postorderTraversal(root.lef...
22.615385
60
0.644558
3c5e3c4e956edd5e7b700d242efbb7b8330771bf
5,686
/* * (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de. * * Created on 15.02.2004 */ package net.finmath.montecarlo.interestrate.products; import java.util.Set; import net.finmath.exception.CalculationException; import net.finmath.montecarlo.RandomVariable; import net.finmath.montecarlo...
35.761006
166
0.745339
5d74d6693d20ac48e6e7a1208f25943aed5fb000
137
package cat.nyaa.ecore; public enum TransactionStatus { SUCCESS, INSUFFICIENT_BALANCE, UPSTREAM_FAILURE, UNKNOWN_ERROR }
17.125
31
0.744526
c6b5a4ffa107e0f99c4baad5d014b162fe2e0a20
7,867
/* * Copyright 2018 The Bazel Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
41.405263
100
0.739926
1f5ca72f47b5e8b458f3366ae49a8cf956f09def
847
package com.google.android.gms.drive.internal; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import java.util.List; public class CancelPendingActionsRequest implements SafeParcelable { public static final Creator<CancelPend...
28.233333
81
0.724911
d4921a5c8d4e73374b216abd14745ea30d1c0943
793
package com.fafabtc.data.model.vo; import java.util.List; /** * Created by jastrelax on 2018/1/14. */ public class AssetsStatisticsHolder { private AssetsStatisticsHeader assetsStatisticsHeader; private List<AssetsStatistics> assetsStatisticsList; public AssetsStatisticsHeader getAssetsStatisticsHea...
25.580645
90
0.761665
fc27e7f6e1fa44c7dfb4735da3a01eae97a76dd5
827
package io.molr.mole.server.main; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Import; import io.molr.mole.core.conf.LocalSuperMoleConfiguration; import io.molr.mole.server.conf.SingleMoleRestServi...
34.458333
111
0.779927
7072506961bc708f535d8708cd8012e45ccd38d7
252
package net.cpollet.gallery.domain.albums; import java.util.List; public interface Albums { Album create(AlbumName name); Album findById(long id); Album loadById(long id); List<Album> findAll(); List<CachedAlbum> loadAll(); }
15.75
42
0.694444
7619cc14758cc2797482b0ba3eba9ede80009b4d
11,710
/* * 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 ...
52.044444
185
0.707942
066cb07ba886f06e2a7f876cfed5957772f2659c
998
package fi.evident.carpenter.utils; import org.junit.Test; import static fi.evident.carpenter.utils.CollectionUtils.concat; import static fi.evident.carpenter.utils.CollectionUtils.map; import static java.util.Arrays.asList; import static java.util.Collections.emptyList; import static org.hamcrest.CoreMatchers.is; im...
36.962963
131
0.666333
fbd839c67eafe6a2eff4ff0bcaefce75a4232680
1,328
package io.github.takzhanov.umbrella.hw02; import org.junit.Assert; import org.junit.Test; import static io.github.takzhanov.umbrella.hw02.ObjectSizeAnalyzer.getDeepObjectSize; import static io.github.takzhanov.umbrella.hw02.ObjectSizeAnalyzer.getObjectSize; //тесты работают только с агентом в опциях //-javaagent:ta...
28.869565
96
0.6875
431f93f668c456995348c033b4a2e72562f5df54
73
public aspect SimpleAspect { before(): staticinitialization(*) { } }
14.6
36
0.684932
ea5fefc55fde5a0f511b17bf2765e2c9a6b8329f
12,597
/* * Copyright 2014-2020 Rudy De Busscher (https://www.atbash.be) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
48.637066
227
0.784314
15009a0429bb3bc316a4f1f32cf0c16b57fe12da
568
package com.builtbroken.mc.prefab.gui.components; import com.builtbroken.mc.lib.transform.vector.Point; /** * Created by robert on 4/23/2015. */ public class GuiCButton extends GuiComponent { public Point size; public String name; public GuiCButton(){} public GuiCButton(Point pos) { su...
17.212121
57
0.612676
1cd806751a4ad399a2cf0edfba0e29190ed24e82
361
package me.zeroX150.cornos.features.module.impl.external; import me.zeroX150.cornos.features.module.Module; import me.zeroX150.cornos.features.module.ModuleType; public class AntiPacketKick extends Module { public AntiPacketKick() { super("AntiPacketKick", "Prevents you from being affected by chunk bans o...
32.818182
113
0.772853
8ea826d3e4a907d3af5ea9af463aba4c4296b841
2,877
/* Copyright 2013 the original author or authors. Licensed under the Apache License, Version 2.0 the "License"; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
31.966667
107
0.664581
78299716dcdb8f451af4e3d18009c3298c50da58
1,945
package java.net; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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....
29.469697
205
0.713625
4c2df00b0e6b59b214473b7368d333b7b4659690
2,741
package de.tum.in.www1.artemis.repository; import static org.springframework.data.jpa.repository.EntityGraph.EntityGraphType.LOAD; import java.time.ZonedDateTime; import java.util.List; import java.util.Optional; import java.util.Set; import org.springframework.data.jpa.repository.EntityGraph; import org.springframe...
48.946429
337
0.772711
224e7f8071b8c41fec9bf34def9c5004d5f8c684
1,418
package org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.jenkinsci.plugins.ParameterizedRemoteTrigger.BasicBuildContext; import org.jenkinsci.plugins.tokenmacro.MacroEvaluationException; import org.jenkinsci.plugins.token...
31.511111
125
0.685472
be98bc64d82553120f73cb085c14851ed64a6b67
5,853
package com.microsoft.azure.practices.nvadaemon.config; import static org.mockito.Mockito.*; import com.microsoft.azure.management.network.NetworkInterface; import com.microsoft.azure.practices.nvadaemon.AzureClient; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.net.InetSock...
41.510638
92
0.700495
cfa01eebe16969ea4732a2fa811511c6d7815319
9,909
package com.nascentdigital.pipeline; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; public class MaxTest extends PipelineTest { // region empty source @Test public void emptySource_shouldRetur...
21.971175
62
0.474316
0eff148c2343d04e7c9d9cb06af007be9439a313
1,974
package com.tlh.uncode.schedule.core; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.UndeclaredThrowableException; import java.util.concurrent.atomic.AtomicInteger; import com.tlh.uncode.schedule.manager.ConsoleManager; import com.tlh.uncode.schedule.mana...
27.416667
92
0.747214