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
138c91d341ee80a279ef6721d608cb0f50c26d32
27,459
/* * Copyright 2018 Key Bridge. * * 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...
44.721498
437
0.739685
8ca6fe6d426eae20c50b97c4842925c61bc93227
1,811
import edu.princeton.cs.introcs.StdRandom; import java.security.Key; /** * Created by hug. */ public class ExperimentHelper { /** Returns the internal path length for an optimum binary search tree of * size N. Examples: * N = 1, OIPL: 0 * N = 2, OIPL: 1 * N = 3, OIPL: 2 ...
27.029851
78
0.515737
3124d18c2b28cd86d312976015a676f6eb74207c
980
package cn.linter.learning.auth.controller; import cn.linter.learning.auth.client.UserClient; import cn.linter.learning.auth.entity.User; import cn.linter.learning.common.entity.Result; import cn.linter.learning.common.utils.JwtUtil; import org.springframework.web.bind.annotation.*; /** * 用户控制器 * * @author wangxia...
25.789474
79
0.717347
8d7a4c21097c961a2d9431d991dabbd685686b61
592
package com.javase.gui.listen; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class WindowAdapterListen extends Frame { /** * */ private static final long serialVersionUID = 1L; WindowAdapterListen() { addWindowListener(new WindowAdapter() { public ...
19.733333
49
0.709459
4cb58f7066ea270bc516cf805fcaf6677a31ee77
10,424
/* * Copyright (c) 2002-2021, City of Paris * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the f...
38.464945
347
0.626727
62a8977d6984991ff63cb0393f4a43bf2dbdc875
518
package com.free.zhou.newsinfo.model; import com.free.zhou.api.Api; import com.free.zhou.newsinfo.bean.NewsInfo; import com.free.zhou.newsinfo.contract.NewsInfoContract; import com.jaydenxiao.common.baserx.RxSchedulers; import rx.Observable; /** * Created by zskzh on 2017/5/13. */ public class NewsModel implement...
24.666667
90
0.756757
bbe833d72f8953524d37266ed4a5cdd8ab809deb
2,273
package com.dsa.maths; import java.util.HashMap; import java.util.Map; import java.util.Scanner; /** * Fibonacci Series using Linear approach * * @author sumitkumar * */ public class Fibonacci { private static Map<Integer, Integer> memory = new HashMap<Integer, Integer>(); static { memory.put(0, 0); mem...
19.765217
83
0.598328
9d0d39458abc5499c96379158fce394f2457f573
141
package game.Town.villagers; public enum VILLAGER_ROLES { BUILDER, GATHERER, FOODGATHERER, WOODGATHERER, STONEGATHERER, WATERGATHERER }
23.5
79
0.801418
63ab7a3682293db01c2e00bd8c16d625e83b366a
1,919
package io.sentry.environment; import io.sentry.BaseTest; import org.testng.annotations.AfterMethod; import org.testng.annotations.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; public class SentryEnvironmentTest extends BaseTest { @AfterMethod public void ...
29.984375
82
0.732673
409ff68f08ee8212dd8357135ac7b68753e500c3
1,367
package com.jackvanlightly.rabbittesttool.model; import com.jackvanlightly.rabbittesttool.clients.MessagePayload; public class Violation { private ViolationType violationType; private MessagePayload messagePayload; private MessagePayload priorMessagePayload; public Violation(ViolationType violationTy...
30.377778
118
0.746159
fa6b717232aa16a5f1ef43ac781488b9293e5d78
856
package test; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Collections; import java.util.Enumeration; import java.util.Hashtable; import java.util.LinkedList; public class Test { public static void main(String[] args) { String s = "Hello World"; byte[] b = null; Str...
26.75
65
0.682243
53712b002b4369da1992266cdcff5788d9debf04
1,851
/* * Copyright © Yan Zhenjie. 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 applicabl...
30.344262
83
0.670989
bfa0679fedc64d55ed7496ef787a8df18837debf
3,382
package team.hollow.neutronia.client.entity.render.model.model; import net.minecraft.client.model.Cuboid; import net.minecraft.client.render.entity.model.EntityModel; import net.minecraft.entity.LivingEntity; /** * ModelOlDiggy - Undefined * Created using Tabula 7.0.0 */ public class ModelOlDiggy<T extends LivingE...
39.325581
93
0.604672
c95fa4150ea4880729885403b92b67e0e1236ff2
382
package com.android21buttons.fragmenttestrule.sample; import android.app.Activity; import android.os.Bundle; import android.support.annotation.Nullable; public class MainActivity extends Activity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceSt...
25.466667
66
0.772251
080954c2740542d44b2cff8bf570c03b5061004e
1,230
package com.iddej.gingerbread2.util.floatingpoint; public class Vector3F { public double x, y, z; public Vector3F(final double x, final double y, final double z) { this.x = x; this.y = y; this.z = z; } public Vector3F add(final Vector3F other) { return new Vector3F(this.x + other.x, this.y + other.y, thi...
28.604651
94
0.649593
76503d5950c8230ff676ccda37e80db93d2e086b
21,869
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
41.418561
120
0.64205
ae3fdd26db39ceb1047d79a43883f4b41ea2ef85
3,923
package llc.ufwa.widget; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import android.content.Context; import android.view.GestureDetector; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; /** ...
28.427536
108
0.474127
6bbd84076e427562279052995ae41e4df503e79d
3,337
/* * Copyright (C) 2017 Stormpath, 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 ...
39.258824
117
0.691639
84fec1675e1a900ba6e9f08cdde7b0f03ce04b6f
16,607
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2018 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.components.runtime.util; import android.content.Context; import android.util.Log; import com.google.appi...
34.597917
116
0.615222
74f2ec8909038faabe20edb6d8448becc258d3a4
4,832
/* * Copyright (C) 2013-2015 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 ag...
42.017391
237
0.708609
8affcafc78b40b25fd7ba06d688e183aa0bfe4b4
31,054
/* * Copyright [2007] [University Corporation for Advanced Internet Development, 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...
43.615169
121
0.654763
b02a70fe5ecc5aa28ceba36c1057249ac816bee3
1,890
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
35.660377
112
0.743915
d648c78ffbb513562fd13844571248f188de0472
2,320
package email.com.gmail.cosmoconsole.forge.photoniccraft.client.network; import email.com.gmail.cosmoconsole.forge.photoniccraft.common.entity.EntityGammaEffect; import email.com.gmail.cosmoconsole.forge.photoniccraft.util.PhotonicUtils; import io.netty.buffer.ByteBuf; import net.minecraft.client.Minecraft; impo...
29.74359
95
0.717672
2d6c52cc858dbac3884a901c402535dd3797b4cb
1,174
package com.ace.security; import java.util.Collection; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.security.core.userdetails.UserDetails; import com.ace.entity.User; public class AdminUserDetails extends Use...
19.898305
73
0.76661
56776714e44e59ac6909c0cbfe20ccbad236f448
332
package dev.liquidnetwork.liquidpractice.util.bootstrap; import dev.liquidnetwork.liquidpractice.LiquidPractice; import org.bukkit.event.Listener; public class BootstrappedListener extends Bootstrapped implements Listener { public BootstrappedListener(LiquidPractice LiquidPractice) { super(LiquidPractice...
25.538462
76
0.810241
3f80e8e68dd183552925cbd772aeec255c2e9188
7,035
/* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
33.028169
118
0.604975
5a4c87709faa89d55b4716c22cfed87aa53d215f
2,404
package com.example.herosoft.springclouddemo.product.messages; import com.alibaba.fastjson.JSONObject; import com.example.herosoft.springclouddemo.common.domain.model.TxMessage; import com.example.herosoft.springclouddemo.product.service.StockService; import lombok.extern.slf4j.Slf4j; import org.apache.rocketmq.spring...
33.859155
88
0.767471
cd9e8d31c11f661ed69d69010f750fe7fd6700bb
2,156
/* * JEF - Copyright 2009-2010 Jiyi (mr.jiyi@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
19.779817
75
0.658163
661547906e465896e7e05f558ea4745c00faf52c
3,405
package de.hterhors.semanticmr.candidateretrieval.helper; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; import java.ut...
29.353448
97
0.727166
019aa9b9b753ad5690793a83775bd9d20da02985
2,966
package org.apache.helix.testutil; /* * 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, ...
29.66
98
0.687458
62097a2a0517da89df6a42402badd32176392111
3,779
package com.lambda.essentialism.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; import javax.persistence.*; import org.springfr...
27.583942
126
0.699391
0c92ac8320edfb8b9f53ca6f3b2833e84a07b237
1,272
package dbcache.persist.service; import dbcache.conf.impl.CacheConfig; import dbcache.CacheObject; import dbcache.IEntity; import dbcache.cache.CacheUnit; import dbcache.dbaccess.DbAccessService; import java.util.concurrent.ExecutorService; /** * 实体入库服务接口 * @author Jake * @date 2014年8月13日上午12:24:45 */ public int...
18.434783
44
0.711478
3b1aeeded9ceb30b4276847375ea6a2c0393123e
4,135
/* * The MIT License (MIT) * * Copyright (c) 2017 Piasy * * 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, ...
40.539216
95
0.736155
06855bb47578c41d8d7bb224accda799062cf703
450
package se.arbetsformedlingen.venice.model; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class WebserviceLoad { private List<WebserviceValue> series = new ArrayList<>(); public WebserviceLoad(WebserviceValue... timeValues) { Collections.addAll(series, timeVa...
23.684211
61
0.715556
a5a6ee95efe379a6450e95aa387c00a47953d922
535
package com.jcohy.sample.algorithm.SimpleQuestion; public class Global { // tag::code[] /** * 题目: 一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下, * 求它在 第10次落地时,共经过多少米? 第10次反弹多高? * * @param args */ public static void main(String[] args) { double height = 100; double sum = 0; ...
22.291667
58
0.502804
1a89855dca0069fcd03c1025a4d999408184cfd1
22,262
/*! ****************************************************************************** * * Hop : The Hop Orchestration Platform * * http://www.project-hop.org * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
32.786451
137
0.634983
5c57be6333e8a1bb2eb072b4421f931965487be4
3,327
package com.atguigu.gmall.pms.controller; import com.atguigu.gmall.common.bean.PageParamVo; import com.atguigu.gmall.common.bean.PageResultVo; import com.atguigu.gmall.common.bean.ResponseVo; import com.atguigu.gmall.pms.entity.AttrGroupEntity; import com.atguigu.gmall.pms.service.AttrGroupService; import com.atguigu....
27.725
111
0.665164
3745bc2bcda8e29f47672cd1c49fe6d915b21b5b
4,042
/* * Copyright 2014, AetherWorks LLC. */ package com.aetherworks.example.jersey2.api; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.when; import javax.ws.rs.core.Application; import javax.ws.rs.core.GenericType; import javax.ws.rs.core.MediaType; import javax.ws.rs.core...
33.966387
117
0.731569
921c086a5bb05ef7e5bcbfad91acdc0f6a4362da
4,375
package com.gizwits.opensource.appkit.sharingdevice; import com.gizwits.gizwifisdk.api.GizDeviceSharing; import com.gizwits.gizwifisdk.enumration.GizDeviceSharingWay; import com.gizwits.gizwifisdk.enumration.GizUserAccountType; import com.gizwits.gizwifisdk.enumration.GizWifiErrorCode; import com.gizwits.gizwifisdk.li...
26.676829
106
0.746514
e531eac14c1c99544930630b6cf0af241d8cd8c9
2,053
/* * Copyright 2019-2020 David MacCormack * * 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...
29.328571
80
0.649781
7d332308754d5d1a54e9116d40079928026306d2
5,042
package mediajs.budgetbook.objects.entity; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import mediajs.budgetbook.objects.trans.StoreTO; /** * ...
28.167598
118
0.687029
5ce91b3fd829f8f14418744210e43f6f85cda716
1,485
package com.linepro.modellbahn.converter.request.transcriber; import static com.linepro.modellbahn.persistence.util.ProxyUtils.isAvailable; import java.util.Optional; import com.linepro.modellbahn.converter.Transcriber; import com.linepro.modellbahn.entity.DecoderTypCv; import com.linepro.modellbahn.repository.looku...
39.078947
123
0.727273
26574e241dada78d101a533959b3cadf4235b747
5,441
package com.vission.mf.base.util; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.springframework.context.i18n.LocaleContextHolder; imp...
21.677291
78
0.658151
44ba8f5dc660b0d1a0978caeca652871f6fb5785
2,955
/******************************************************************************* * Copyright 2012 University of Southern California * * 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 * ...
45.461538
119
0.716751
c37056cac1a408a7e1abb17d96b26c04a5ad1d6a
10,857
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.248031
810
0.80934
da368bef56fbd7f91a0845081014ab8a0efad290
332
package com.ltts.movieapp.service; import java.util.List; import org.springframework.stereotype.Service; import com.ltts.movieapp.model.Customer; @Service public interface CustomerService { void save(Customer email); public Customer findByEmailAndMobile(String email, String mobile); public List<Customer> fin...
17.473684
67
0.789157
1b05b488253055fda4d98aaf72e6a7c94aa6a8a2
4,688
package com.jxtech.common; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import com.jxtech.app.jxvars.JxVars; import com.jxtech.app.jxvars.JxVarsFactory; import com.jxtech.util.JsonUtil; import com.jxtech.util.StrUtil; /** * Spring 中的参数配置,可以读取 * * @author wmzsoft@gmail.com * @date...
26.788571
110
0.650384
e8c3c1b7bace263d63a7c43e09adf3ac3cfa942c
1,051
package terminal; import java.io.File; import java.util.Scanner; public class Terminal { private File curr; private CommandSearch commandSearch = new CommandSearch(); public Terminal() { String os = System.getProperty("os.name"); System.out.println(os); String message = System.get...
29.194444
67
0.536632
c902f37cc017079781881a078fc41925fe74e352
4,838
/* * Copyright (c) CP4J Project */ package com.vb.tasks; import com.vb.datastructure.StringBoard; import com.vb.datastructure.cell2d.Cell2D; import com.vb.datastructure.cell2d.CellIterationOrder; import com.vb.datastructure.cell2d.Direction; import com.vb.io.FastScanner; import com.vb.io.FastWriter; import com.vb.l...
31.828947
93
0.600661
39718047c5fd50dc195ad5e0e601356a45536049
3,259
package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.ControlMode; import com.ctre.phoenix.motorcontrol.FeedbackDevice; import com.ctre.phoenix.motorcontrol.NeutralMode; import com.ctre.phoenix.motorcontrol.can.TalonSRX; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj2.command.Sub...
33.255102
87
0.629027
11c9574da87be6d0f9ad1d8b24131ec21d185493
1,158
package chapter8; import javax.management.ValueExp; import java.util.function.IntPredicate; import java.util.function.IntUnaryOperator; import java.util.stream.IntStream; public class StreamTest { public static void main(String[] args) { IntStream build = IntStream.builder() .add(12) ...
31.297297
64
0.549223
871c54493a1fb6a2baa16374db15d929f2fc84dd
722
package com.huaying.hqwmall.order.config; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.annotation.MapperScan; import org.springframework.context.annotation.Bean; im...
24.066667
72
0.770083
1e6b58ed3fdb1edbbf969b42f13d693329c1db36
34,858
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/...
39.656428
109
0.624907
2bc8454dd35d1180ff9e71b6ed30d77203da3ca0
1,115
package com.wenj91.fastgql.core.sql; import lombok.Data; @Data public class SelectColumn { private final String tableAlias; private final Column column; private final String resultAlias; private final String func; SelectColumn(Table table, Column column, String resultAlias, String func) { this.tableAli...
23.723404
77
0.661883
8d4e269a522a27a60c460308cc5346916d36f830
4,162
package cz.xtf.http; import java.nio.file.Path; import java.util.concurrent.TimeUnit; import org.apache.http.client.ClientProtocolException; import org.apache.http.entity.ContentType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import cz.xtf.TestConfiguration; public class HttpUtil { private static f...
43.354167
159
0.763335
bcdab14961691a1e0f0da0127e10cf738b322a36
1,270
package carstore.models; /** * Model of a car. * * @author Evgeny Khodzitskiy (evgeny.hodz@gmail.com) * @since 25.08.2017 */ public class Model { /** * Id of model. */ private int id; /** * Car brand. For example, "Skoda". */ private Brand brand; /** * Car model. For e...
15.301205
53
0.474803
900b451a50410ed0681d925543dd148b43940a4a
491
import java.util.Scanner; public class TheSumOfSetOfNumbers { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int sum = 0; int number = 1; int limit; System.out.print("Until what? "); limit = Integer.parseInt(reader.nextLi...
20.458333
52
0.511202
48a63ad5f0a8ecea0c50c4eefa6d42a8b6fee496
715
package nl.itz_kiwisap.spigot.fruitlabjoinme.object; import java.util.UUID; import net.md_5.bungee.api.connection.ProxiedPlayer; public class Player { private ProxiedPlayer player; private String name; private UUID uuid; private int joinme; public Player(ProxiedPlayer player, int joinme) { th...
26.481481
61
0.71049
64f3cf909df7c77c72a5990128c64d94cec7b958
1,855
// // $Id$ package client.person; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.AbsolutePanel; import com.threerings.orth.data.MediaDescSize; import com.threerings.gwt.ui.CenteredBox; import com.threerings.gwt.ui.InlinePanel; import com.threerings.msoy.person.gwt.Gallery; import com.t...
33.727273
100
0.723989
d225d53d92fee14133f3e11abf9eb443a17f11ee
444
/** * Copyright 2016 West Coast Informatics, LLC */ package com.wci.umls.server.model.content; import com.wci.umls.server.helpers.HasRelationships; /** * Represents a terminology component with relationships. * @param <T> the relationship type */ public interface ComponentHasRelationships<T extends Relationship<...
29.6
134
0.77027
491569f2b32d9900253563499e6d7c76ce88cc32
2,534
/* * JSimpleToggleButton.java * * Created on Aug 28, 2007, 11:46:12 AM * * To change this template, choose Tools | Templates * and open the template in the editor. */ package mbarix4j.swing; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.MouseAdapter; import java....
24.365385
74
0.592739
17bf4dda8a1acd0e5b20eadc22e1d733995c15cd
2,810
package com.example.suche.travelify.Model; import android.util.Log; /** * Created by Shashwat Uttam on 4/4/2017. */ public class BasicLocation { private String mtitle; private String mdescription; private String maddress; private double mrating; private String mplaceid; private String mphon...
24.434783
119
0.579359
e9d74608ecfa86a25fbd452cff665bf0c4f5741d
950
package com.keqi.c1; import java.nio.ByteBuffer; public class TestByteBufferRead { /* 针对于这个缓存了网络数据的数组,有很多操作方法,需要好好熟悉下 */ public static void main(String[] args) { ByteBuffer buffer = ByteBuffer.allocate(10); buffer.put(new byte[]{'a','b','c','d'}); buffer.flip(); // 从头开始读 byte[] a = new byte[4]; ...
17.592593
68
0.641053
660fa8aeda308c819e6b03b42b4bb7177559f4e1
3,229
package com.hlytec.cloud.biz.knowledge.controller; import java.util.List; import com.hlytec.cloud.biz.knowledge.model.vo.QueryKnowledgeVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; impor...
37.988235
112
0.756271
46bffb776c7ff1ad85bbeb0be3f05327cc36a377
4,818
package org.joget.cardano.lib; import org.joget.cardano.service.PluginUtil; import org.joget.cardano.service.BackendUtil; import com.bloxbean.cardano.client.backend.api.AddressService; import com.bloxbean.cardano.client.backend.api.BackendService; import com.bloxbean.cardano.client.backend.model.AddressContent; import...
36.5
170
0.644043
241db6df7bba4344bf9000b87b5baddd917b432c
965
package com.azhuoinfo.cqurity.view.scrollview; import android.view.View; import android.view.animation.Animation; import android.view.animation.Transformation; public class BackAnimimation extends Animation { int targetHeight; int originalHeight; int extraHeight; View view; boolean down; protected BackAnimima...
23.536585
79
0.761658
bac5926e17da46c3cebd519e299e1560193d2d5e
2,786
/* * Copyright 2000-2010 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
30.615385
85
0.758435
caf1fdb62b3040ed847e00e5c1121bdea26474a7
263
package compile.parse; /** * Used to distinguish between instances of {@link compile.term.ApplyTerm} * expressing function invocation, collection indexing, and * structure addressing. */ public enum ApplyFlavor { FuncApp, CollIndex, StructAddr }
18.785714
74
0.73384
8df95411a5a71d2952a66b7a0cd544dc309061e3
4,356
/* * Copyright 2012-2018 ISP RAS (http://www.ispras.ru) * * 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 ...
28.847682
100
0.639578
d151d2bdcd06e6ea9e44dcf65e4a596c6b5058a8
1,212
package com.hackpro.authserver.domain; import java.util.List; import java.util.Set; import org.springframework.data.cassandra.core.mapping.Column; import org.springframework.data.cassandra.core.mapping.PrimaryKey; import org.springframework.data.cassandra.core.mapping.Table; import lombok.Data; /** * * @author v...
20.896552
66
0.787129
bc0bbfdf61fbc4186e58464be5b352b6f1ad2960
1,308
package org.obolibrary.robot.exceptions; /** Template row cannot be parsed. */ public class RowParseException extends Exception { private static final long serialVersionUID = -646778731149993824L; public int rowNum = -1; public int colNum = -1; public String ruleID; public String ruleName; public String c...
23.781818
99
0.649083
d363ab55bb3197549386c42f137b1ed2254c8035
1,707
package pattern.creational.singleton.a; /** * 单件模式:巧克力工厂 * * @author leishiguang * date 2018/8/9 20:37 * @version v1.0 */ class ChocolateBoiler { private boolean empty; private boolean boiled; private volatile static ChocolateBoiler uniqueInstance; private ChocolateBoiler() { empty = tr...
23.383562
69
0.495606
1392189d2120a1064f2340ab9908c3fe05cfc6dc
522
import com.strategyobject.substrateclient.rpc.annotation.RpcEncoder; import com.strategyobject.substrateclient.rpc.annotation.Scale; @RpcEncoder public class RpcEncodableWithoutGetter<T> { public int a; @Scale public int b; public T c; public int getB() { return b; } public T ge...
15.818182
68
0.584291
6ef3d95fb5a5331fd53360c06b670f7fb6980a6c
4,050
package com.pg85.otg.forge.gui.dimensions; import java.util.ArrayList; import com.pg85.otg.OTG; import com.pg85.otg.forge.ForgeEngine; import com.pg85.otg.forge.ForgeWorld; import com.pg85.otg.forge.gui.IGuiListEntry; import com.pg85.otg.forge.gui.dimensions.OTGGuiDimensionSettingsList; import com.pg85.otg.forge.preg...
35.840708
207
0.709877
5f8704165cdf5f63b1c52ff71868dd92ba873f3a
688
package com.bgmagar.mapper; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.jdbc.core.RowMapper; import com.bgmagar.domain.Product; public class ProductMapper implements RowMapper<Product> { @Override public Product mapRow(ResultSet rs, int rowNum) throws SQLException { Pro...
24.571429
70
0.757267
1183bc79f6ffb4aa42f47c9676a8f944e3cea766
3,006
package uk.gov.ea.wastecarrier.services; import com.opencsv.CSVReader; import uk.gov.ea.wastecarrier.services.core.Entity; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import...
31.978723
111
0.598802
508c0de2b3b7e5d6aa5f5348c091f4bb63696427
757
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ package com.microsoft.azure.toolkit.intellij.common; import com.microsoft.azure.toolkit.lib.common.form.AzureFormInput; import com.microsoft.azure.toolkit...
29.115385
95
0.745046
6f18e2078679416c031a4cc5433b4b29617c74ef
1,956
/** * * 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...
29.636364
114
0.771472
e0243a757ca52cc199e7d04cb9f7f789775e860f
715
package org.practice.app.operation.raw; public class SingleUndefinedOperation implements UndefinedOperation{ private final char VALUE; public SingleUndefinedOperation(char value) { VALUE = value; } @Override public char getValue() { return VALUE; } @Override public bo...
20.428571
70
0.60979
6120de2ca47a3a2b888f517388b379c6d3d7128f
7,904
package com.funnyboyroks.three.LinkedList; import java.util.*; import java.util.stream.Collectors; /** * A full implementation of the {@link java.util.Queue} interface * @param <T> The type of data for the class to store. */ public class Queue<T> implements java.util.Queue<T> { public static void main(String[...
25.830065
97
0.518598
6955dff2f9d632d36e52ed39330c4ccc4d545082
1,160
// A binary chop (sometimes called the more prosaic binary search) finds the position of value in a // sorted array of values. It achieves some efficiency by halving the number of items under consideration // each time it probes the values: in the first pass it determines whether the required value is in the top // or ...
55.238095
109
0.764655
d21b8b6bd9327a8c167ca56b9ddf3639d1464f23
9,941
package dev.clojurephant.plugin.common.internal; import static us.bpsm.edn.Keyword.newKeyword; import java.io.File; import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.stream.Collectors; import...
44.182222
127
0.714013
9c24318ea2eb3c4148c9b1f0a3b510d3a8524cc7
192
package com.windf.study.gof.factory.factorymethod; public class ProductBFactory implements Factory { @Override public Product createProduct() { return new ProductB(); } }
21.333333
50
0.713542
d02c3b93ac1b5944912799f8c735e5221433aced
3,702
package org.codepath.instagram; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflate...
36.653465
136
0.661534
305091fa9b4ea441bab40ceae8aec944bb71bcb9
8,950
/* * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of ...
45.431472
199
0.704246
c90b313e4b8f00ae14505db19eedd75a4b3f6522
2,563
/* * Copyright 2020, Verizon Media. * Licensed under the terms of the Apache 2.0 license. * Please see LICENSE file in the project root for terms. */ package com.yahoo.oak; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; impo...
28.164835
67
0.663285
24bc681b26bb5b1d6d5f858e8e3a11093f041ee6
1,429
package com.sap.olingo.jpa.processor.core.testmodel; import javax.persistence.Column; import javax.persistence.Embeddable; @Embeddable public class InstanceRestrictionKey { @Column(name = "\"UserName\"", length = 60) private String username; @Column(name = "\"SequenceNumber\"") private Integer s...
29.163265
90
0.654304
add14dab95f4db4820caf8c03dcd633d03b72e72
640
package com.ncme.springboot.mapper; import org.apache.ibatis.annotations.Param; import com.ncme.springboot.model.PeixunOrg; public interface PeixunOrgMapper { int deleteByPrimaryKey(Integer id); int insert(PeixunOrg record); int insertSelective(PeixunOrg record); PeixunOrg selectByPri...
22.068966
55
0.714063
1bb572339fc75f44f14fec6b83dfef4c79c8ae6c
7,464
/* * Copyright 2021 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
27.850746
121
0.696008
5c8a95e56e98ed919ce104adcf6d8f848795b159
2,249
package org.gislers.chinook.persistence.dao.impl; import org.gislers.chinook.entities.CustomerEntity; import org.gislers.chinook.entities.EmployeeEntity; import org.gislers.chinook.entities.InvoiceEntity; import org.gislers.chinook.persistence.dao.CustomerDao; import org.gislers.chinook.persistence.dao.EmployeeDao; im...
27.096386
74
0.675856
ac30f44e47baf6f05818c042f077f9c90339712f
6,456
package com.joymain.jecs.fi.model; // Generated 2010-1-14 14:33:37 by Hibernate Tools 3.1.0.beta4 import java.math.BigDecimal; import com.joymain.jecs.pm.model.JpmProductSaleNew; /** * @struts.form include-all="true" extends="BaseForm" * @hibernate.class * table="JFI_SUN_MEMBER_ORDER_LIST" * */ p...
28.693333
161
0.553439
4aa8135105cfb2844895525069fc6af474345d59
1,174
package com.rill.rest; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Scanner; import org.apache.commons.lang3.StringUtils; import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; impo...
28.634146
83
0.698467
9ab7ba5ffd0579ed4b58d26d05c5fb9f8023b482
157
public class TokenIsNotNumber extends Exception { public TokenIsNotNumber(String str_) { super(); str = str_; } public String str; }
14.272727
47
0.649682
83c512f6c24f3b493a6d6ad05514d3dcf51b2ee0
9,784
/* JAT: Java Astrodynamics Toolkit * * Copyright (c) 2003 The JAT Project. All rights reserved. * * This file is part of JAT. JAT is free software; you can * redistribute it and/or modify it under the terms of the * NASA Open Source Agreement, version 1.3 or later. * * This program is distributed in the hope...
34.942857
107
0.658422
ef3ef1331a92ba6ec552cef11f8f32271ed55360
3,005
package com.tencent.qcloud.cosv4_14313.model; import android.test.AndroidTestCase; import org.junit.Test; /** * Created by bradyxiao on 2018/1/23. */ public class GetObjectMetadataRequestTest extends AndroidTestCase { @Test public void setHeaders() throws Exception { } @Test public void setBod...
46.953125
144
0.599002
a6a6d9a4a5727e9e15114d30db4a7e572d98c6e4
302
package com.patrick.maaltijdapp.controller.callbacks; /** * Created by Patrick on 21/01/2018. */ /** * Occurs after a token has expired or is invalid. **/ public interface InvalidTokenCallback { /** * Occurs after a token has expired or is invalid. **/ void onTokenInvalid(); }
17.764706
54
0.668874
a436f4c66cd62f2dc1a3bc6b88d2e656e8af87c5
485
package softuni.artgallery.error; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; import softuni.artgallery.constants.common.CommonConstants; @ResponseStatus(code=HttpStatus.CONFLICT,reason = CommonConstants.INVALID_INPUT) public class UserRegistrationExcepti...
30.3125
80
0.806186
3b9a483d92940220803e709027db79aa6e278dae
1,363
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2021 the original authors 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 ma...
30.288889
75
0.749817
6405c5f42bf2f117de46538683508ab0d4cfa046
8,359
package com.rw.calcx; import javafx.animation.PauseTransition; import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.image.Imag...
36.986726
112
0.620409
bcd8fe116094b29c02e27d9cde7e7996ba8c3895
224
package ijaux.hypergeom; /* * This interface defines implementations of distances and metrics */ public interface MetricSpace<VectorType> { double distance(VectorType a, VectorType b); double norm(VectorType a); }
17.230769
66
0.758929