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
fb2f4b017ae1dc212b839f892b7c939254ef024a
546
package net.lecousin.compression.lzma; import java.util.Arrays; abstract class RangeCoder { protected RangeCoder() { // nothing to do } static final int SHIFT_BITS = 8; static final int TOP_MASK = 0xFF000000; static final int BIT_MODEL_TOTAL_BITS = 11; static final int BIT_MODEL_TOTAL = 1 << B...
24.818182
65
0.701465
7cb12753288f7d946ae9abeb9d2a4d7ac367f786
2,114
package paxi.maokitty.verify; import com.netflix.hystrix.HystrixCommandKey; import com.netflix.hystrix.strategy.HystrixPlugins; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import paxi.maokitty.verify.command.AssignkeySilentCommand; import paxi.maokitty.verify.command.DefaultSettingSilentCommand; import pa...
37.75
118
0.702933
9fdc9c3fbcc7db64dab51a682496c8f7b3f94a66
218
package br.com.asyncawait.core.models; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public final class Message<T> { private final Pid sender; private final T content; }
18.166667
38
0.775229
0cbc344eebf7f23221ade873726c0ebaf950a025
2,299
/* * 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 chapter1; import java.util.Date; import java.util.concurrent.Phaser; import java.util.concurrent.TimeUnit; /** * * @author ...
31.493151
119
0.608525
f482fd68c092f033bedcb0c0076d169dd2c7ac79
1,959
Partition Array根据pivot把array分成两半。 从array两边开始缩进。while loop到遍历完。非常直白的implement。 注意low/high,或者叫start/end不要越边界 O(n) Quick sort的基础。 ``` /* Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that: All elements < k are moved to th...
26.12
110
0.570189
422b72beb1c1454148fa1905091040b7889d3ae1
1,046
package com.kiroule.vaadin.demo.ui.view.storefront; import com.kiroule.vaadin.demo.ui.components.OrdersGrid; import com.vaadin.annotations.AutoGenerated; import com.vaadin.annotations.DesignRoot; import com.vaadin.ui.Button; import com.vaadin.ui.CheckBox; import com.vaadin.ui.Panel; import com.vaadin.ui.TextFi...
29.055556
74
0.763862
0bd1087753678fae85f802eceb7f67eb68e7edf4
3,838
package club.codecloud.base.util.security; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.spec.SecretKeySpec; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.security.Key; import java.security.SecureRandom; import java.util.Base64; ...
25.932432
84
0.547681
0253c2eb1146f3c38c7daac20faa4878156701a4
687
package com.sudwood.advancedutilities.items; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemRubber extends Item { private int type; public ItemRubber(int type) { super(); ...
23.689655
84
0.733624
a5c90d2e8f2a73a00833fb254413b5e50a28eba3
439
package pkj.no.tellstick.device.iface; import pkj.no.tellstick.device.TellstickException; /** * A generic device. * @author peec * */ public interface Device{ /** * Turns on the device. * @return */ public void on() throws TellstickException; /** * Turns off the device. */ public void off() ...
13.30303
50
0.644647
fb41edc72f54db99e02b3c4777196291c5770b59
1,009
package org.springframework.samples.petclinic.care; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; public class CareService { @Autowired private CareProvisionRepository careProvisionRepository; public List<CareProvision> CareProvision(){ return careProvision...
22.422222
108
0.719524
ff6db5db16940879c9837a02f0217c72cd395a91
32,343
// THIS SOURCE CODE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF ANY KIND, AND ITS AUTHOR AND THE JOURNAL OF MACHINE LEARNING RESEARCH (JMLR) AND JMLR'S PUBLISHERS AND DISTRIBUTORS, DISCLAIM ANY AND ALL WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, A...
33.796238
815
0.638067
247cf0135d9d6eeb5b832c785edc60cb8afea9cc
350
package de.autoDrive.NetworkServer.rest.dto_v1; import java.util.ArrayList; import java.util.List; public class RoutesResponseDtos { private List<RouteDto> routes = new ArrayList<>(); public List<RouteDto> getRoutes() { return routes; } public void setRoutes(List<RouteDto> routes) { ...
20.588235
54
0.685714
f75ab273d8fa2da3ddb3b446504b9aee392e4ba0
2,897
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE package org.bytedeco.systems.windows; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.systems.global.windows.*; @Properties(inher...
61.638298
129
0.764929
02dbbc1d33d5b7c4819a4294cdb87dffee2d5789
1,115
package org.chuanshen.devladder.service; import org.chuanshen.devladder.mapper.PositionMapper; import org.chuanshen.devladder.model.Position; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * @Auther: Chu...
25.930233
68
0.730942
d3a0f52ad8cc2892038208a23346b0691611c0b4
748
package com.vivi.gulimall.product; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud...
32.521739
78
0.858289
b5d00995151c5f23c090b138ea64ba36b48d051e
1,877
/** * Copyright 2019 Airbnb. Licensed under Apache-2.0. See LICENSE in the project root for license * information. */ package com.airbnb.dynein.scheduler; import com.airbnb.dynein.common.job.JobSpecTransformer; import com.airbnb.dynein.common.token.TokenManager; import com.airbnb.dynein.scheduler.Schedule.JobStatus...
28.439394
96
0.770911
535d7d9b0f1301d6e03823c054e825853286c52d
2,677
package br.com.investira.access.services; import javax.servlet.http.HttpServletResponse; import br.com.dbsoft.crud.DBSCrud; import br.com.dbsoft.error.DBSIOException; import br.com.dbsoft.message.IDBSMessage; import br.com.dbsoft.message.IDBSMessages; import br.com.dbsoft.service.DBSBaseService; import br.com.dbsoft....
32.253012
105
0.714606
ea33ebf764f1f50c6f7895bfb471bd7b431dc2cb
5,374
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
31.798817
96
0.625605
9104781a4ae373101441a0856de22bc88c6ef8f0
562
package uk.gov.hmcts.reform.fpl.model; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Data; import uk.gov.hmcts.reform.fpl.model.common.DocumentReference; @Data @Builder(toBuilder = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class PlacementConfidentialDocument {...
25.545455
62
0.775801
31f652ba4b302132923f299c1cdfe21a86ed2134
1,618
/******************************************************************************* * Copyright (c) 2017 Sierra Wireless and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 whic...
33.708333
81
0.659456
126b0c5378761deb92248f9a770f9b52ea2f621d
623
package pl.kbeliczynski.salonik_bella.user; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class UserRoleEndpoint { private U...
27.086957
68
0.772071
e382be351c1cd71b35f2ab38332fab3e15287989
24,818
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
50.960986
138
0.569707
24f5686cc442aa317461894bdb58cd823a3ec9e6
1,318
package com.tapiadevelopmentinc.firstgame; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; public class KeyInput extends KeyAdapter { private Handler handler; public KeyInput(Handler handler) { this.handler = handler; } public void keyPressed(KeyEvent e){ int key = e.getKeyCo...
28.652174
53
0.64871
a49da967c57f5cfbfe786a2143a29796cf78270b
1,246
package edu.gwu.algorithms.dp.boxStack; import java.util.HashSet; //import java.util.List; import java.util.List; public class StackCreator { List<Box> rotatedBoxes; public StackCreator(List<Box> b){ rotatedBoxes = b; } public void stack(){ int[] height = new int[rotatedBoxes.size()]; HashSet<Integer> stacks...
27.086957
78
0.609952
948369fac33a77dcb222e7093fb3081159aa5d00
412
package com.lqg.service.impl; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.lqg.base.DaoSupportImpl; import com.lqg.model.UploadFile; import com.lqg.service.UploadFileService; @Service(value = "uploadFileService") @Transactional public clas...
27.466667
99
0.84466
8661a1ab9c85528e4cc7f2f049dfadad72ab1589
302
package pw.mr03.mapper; import org.springframework.stereotype.Repository; import pw.mr03.domain.dto.GetAdmin; import pw.mr03.entity.Admin; /** * Created by Administrator on 2017/12/29. */ @Repository public interface AdminMapper { boolean insertAdmin(Admin admin); GetAdmin getAdmin(); }
17.764706
49
0.751656
923fbcc9c64e92b6bd19f33d66376ad50408fe2f
1,362
package com.qxczh.common.dto; import java.io.Serializable; public class UploadResult implements Serializable{ /** * 0表示成功 ,其余失败 */ private Integer code; /** * 错误消息 */ private String msg; private Data data; public Integer getCode() { return code; } public...
15.303371
51
0.489721
75832754dbc703495321040816dba700235216fa
933
package com.bridgefy.samples.twitter; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.NetworkInfo; import android.net.wifi.WifiManager; import androidx.localbroadcastmanager.content.LocalBroadcastManager; import android.util.Log; /** * @auth...
31.1
85
0.732047
af08d85b0ddaf4f3d9f707cf4ebac74956390595
16,551
package org.abc.dash; import java.lang.Thread.UncaughtExceptionHandler; import java.lang.reflect.Array; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; i...
36.536424
115
0.705516
5212a78e07ce061dfaad4c76b48b00aa80a4b7f3
3,143
package com.amsavarthan.hify.adapters; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.util.SparseArray; import android.view.View; import android.view.ViewGroup; import com.amsavarthan.hify.models.DrawerItem; import java.util.HashMap; import java.util.List; im...
26.191667
109
0.629017
2ea99b8361f2cf4a86ff83a23eef5ea5b13160d0
3,457
public class BankAccount { // There are two static variables that apply to all instances of BankAccount private static double interestRate = 0.0375; private static int masterAccountNumber = 1000; // Instance variables private double balance; private String name; private int accountNumber; ...
24.34507
98
0.538617
e32908cda072dc1a0f034cf553f872582cde4fd8
5,763
package com.samourai.whirlpool.client.tx0; import com.samourai.wallet.SamouraiWallet; import com.samourai.wallet.api.backend.beans.UnspentResponse; import com.samourai.wallet.segwit.SegwitAddress; import com.samourai.wallet.segwit.bech32.Bech32Util; import com.samourai.wallet.send.MyTransactionInput; import com.samour...
45.023438
275
0.658685
b145e5c447f99965df017dcbcc3322a1aacfc12a
25,712
package com.oliwen.util.mail; import java.io.File; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import javax.mail.internet.MimeUtility; import org.apache.commons.mail.EmailAttachment; import org.apache.commons.mail.HtmlEmail; /** * @descript (邮件发送器) * @author 李海涛 ...
38.548726
171
0.37325
7bc271ceb3d721eb669ae4227f54296b3d177c7d
2,619
package com.springboot.bcode.api; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.a...
31.939024
74
0.655594
609b86ae1fff02dc58113f969674e8f5e0542793
610
package io.fairyproject.bukkit.plugin; import io.fairyproject.bukkit.FairyBukkitPlatform; import org.bukkit.plugin.java.JavaPlugin; public class FairyInternalPlugin extends JavaPlugin { @Override public void onLoad() { FairyBukkitPlatform.PLUGIN = this; FairyBukkitPlatform.INSTANCE = new Fair...
22.592593
85
0.704918
315451aa5b77021103c1be4014322580913b994a
2,782
package com.async.demo.service; import com.async.demo.exception.RestException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http...
37.093333
100
0.722861
798e31374abd088176e3526499d3e7dde0d145c2
225
package cn.appsys.service.appcategory; import java.util.List; import cn.appsys.pojo.AppCategory; public interface AppCategoryService { public List<AppCategory> getAppCategoryListByParentId(Integer parentId); }
20.454545
74
0.786667
eb5b2a48a9ff1e015fccc8a782287bb12cbf57d3
402
package me.bristermitten.privatemines.listeners; import me.bristermitten.privatemines.util.Util; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; public class UserLeaveEvent implements Listener { @EventHandler public void onLeave(PlayerQu...
26.8
56
0.791045
98e50b7beddbb42004c30035bb4298bb554b30c6
1,526
package com.lijun.demo1.task5; import android.opengl.GLES20; import android.opengl.GLSurfaceView; import javax.microedition.khronos.opengles.GL10; /** * Creator: yiming * FuncDesc: 渲染器类MyGLRenderer (openGL画笔) * copyright ©2018-2020 Ququ Technology Corporation. All rights reserved. */ public class MyGLRenderer i...
31.142857
92
0.688729
4f64d71fb6ef4a41d2d495f4181b781f562d0ffe
7,782
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang...
28.298182
396
0.642894
4c93edcfd7fe556c288c0e3ba9b2ad9f9c283250
3,342
package de.sswis.controller; import de.sswis.exceptions.DuplicateObjectNameException; import de.sswis.model.*; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; public class Mod...
37.977273
91
0.722322
a23ff932985ffcf32c5db783f5ef2e597ef761f3
443
package org.apereo.cas.consent; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; /** * This is {@link AllTestsSuite}. * * @author Misagh Moayyed * @since 6.0.0-RC3 */ @SelectClasses({ JpaConsentRepositoryTests.class, PostgresJpaConsentRepositoryTests.class, ...
21.095238
50
0.76298
c91e78ee3d507e9b2597a41db5edc2df54c82fa4
1,196
package com.home.shine.dataEx.watch; import com.home.shine.support.collection.IntObjectMap; /** 线程观测总数据 */ public class ThreadWatchAllData { /** 是否生效中 */ public boolean enabled=true; /** 观测索引 */ public int index; /** 观测线程总数 */ public int total; /** 当前回归数据 */ public int num; /** 时间次数 */ publi...
19.290323
104
0.642977
b07d011daff945be920058ef8801a2e86f8d4277
7,775
package zmaster587.advancedRocketry.util; import org.lwjgl.Sys; import zmaster587.advancedRocketry.AdvancedRocketry; import zmaster587.advancedRocketry.api.dimension.solar.StellarBody; public class AstronomicalBodyHelper { /** * Returns the size multiplier for a body at the input distance, relative to either 1AU o...
54.370629
185
0.767203
8e98013c47c43246ccb3cbdb6a5636383bdd0ebe
738
package cf.kuiprux.spbeat.util; import java.util.concurrent.*; import java.util.function.Supplier; public class AsyncTask<T> { private final static ExecutorService executor; static { executor = Executors.newCachedThreadPool(); } private AsyncCallable<T> supplier; public AsyncTask(Async...
21.705882
74
0.650407
9c6ffd5da07a9b58dfb0954cf22ae14536f7943b
1,857
/** * Copyright (C) 2010 Asterios Raptis * * 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 ...
28.136364
98
0.752289
8520365bbc8f05541387f6f62faa7591a56cc4c6
3,766
package com.ggx.pay.core.util; import java.net.SocketTimeoutException; import java.security.SecureRandom; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.Map; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ss...
25.972414
106
0.704461
c99e640412be26e707f05a21f216f6d9c6e025af
12,547
package com.vaklinov.zcashui; import java.awt.Component; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InterruptedIOException; import j...
41.137705
175
0.647565
9caca17dfd1eac061e062fa73c1669d0833b56cf
1,018
package org.plytimebandit.web.webbootflux.handler; import org.plytimebandit.web.webbootflux.data.Foo; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.BodyInserters; import org.springframework.web.reactive.function.server.Serve...
32.83871
71
0.74558
f98817d5b4ac259edeac81571b06833b162a8dfb
2,906
package ca.uhn.fhir.testmodel; import java.util.ArrayList; import java.util.List; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.model.api.IElement; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.Descriptio...
23.626016
125
0.704061
8b80a9b0bb428637b927cca900c6404ada8b90c3
387
package tom.jiafei; public class PrimNumber { public void getPrimnumber(int n) { int sum=0,i,j; for(i=1;i<=n;i++) { for(j=2;j<=i/2;j++) { if(i%j==0) break; } if(j>i/2) System.out.print(" "+i); } } public static void main(String args[]) { P...
20.368421
38
0.490956
f623811350b98b68563e53579dffc4c2ecd19d41
481
package com.r4intellij.debugger.frame; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class RValueModifierHandlerImplTest { @Test public void ordinary() { final RValueModifierHandlerImpl handler = new RValueModifierHandlerImpl(); ...
25.315789
82
0.748441
5a1739b569c2ef96784ad14a2527c394337648ac
5,888
package com.simpleharmonics.kismis.classes; import android.app.Activity; import android.content.Context; import android.util.Log; import android.widget.Toast; import com.google.android.gms.common.util.Hex; import com.google.firebase.auth.FirebaseUser; import java.io.File; import java.io.IOException; import java.nio....
38.993377
118
0.634171
b3440178d5fde7fdc612a2ae59fb96c5a0b4acf8
2,342
package ajedrez; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.event.ActionListener; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextAre...
26.022222
90
0.766012
86e784c5ab9b42b1cffcc1ff8513362f8a7f5507
1,603
package org.rabix.engine.rest.api.impl; import java.util.Collections; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import org.rabix.bindings.model.Job; import org.rabix.engine.rest.api.JobHTTPService; import org.rabix.engine.rest.service.JobServiceException; import org.rabix.engine.rest...
21.092105
59
0.668122
9e719532d7f77523cb65bf4f6d4b331ca6df9a85
3,975
package ie.dit.giantbombapp.view.activities; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.Menu; import android.view...
29.227941
141
0.633711
8dc6d33d5ab8c8f20f24ff468083edc725b10299
4,710
package spoon.test.executable; import org.junit.Assert; import org.junit.Test; import spoon.Launcher; import spoon.reflect.code.CtAbstractInvocation; import spoon.reflect.code.CtBlock; import spoon.reflect.code.CtConstructorCall; import spoon.reflect.code.CtInvocation; import spoon.reflect.code.CtLiteral; import spoon...
37.380952
132
0.790021
43b82a413648e2139d2860f3c10b8015aa97c3bb
1,896
/* * Copyright © 2017 camunda services GmbH (info@camunda.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 ...
35.773585
100
0.771624
c0c41f71b8fc5216b17f884b1174da89e0c6812c
606
package com.securemessaging.sm; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.securemessaging.client.ClientRequestHandler; import lombok.Data; @Data @JsonIgnoreProperties(ignoreUnknown = true) /** * Session is a domain object for capturing the reply to login and recieve the authentication ...
20.896552
100
0.739274
d64a68eda5ec79870b16db343715589ba4d7180b
2,956
/* * The MIT License (MIT) * * Copyright (c) 2019 Tyler Bucher * * 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,...
41.055556
120
0.691813
55a014d0ae75418471486b096348e301b29a4f54
873
package com.yarolegovich.mp.io; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import androidx.annotation.Nullable; /** * Created by yarolegovich on 16.05.2016. */ public class SharedPrefsStorageFactory implements StorageModule.Factory { pr...
30.103448
88
0.733104
a311ded60b3718bd550e1a918bee4a99ade0a90c
6,339
/** * The MIT License (MIT) * * MSUSEL Quamoco Implementation * Copyright (c) 2015-2017 Montana State University, Gianforte School of Computing, * Software Engineering Laboratory * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
24.474903
83
0.571226
c92d472774cc73c781a41f4e2d47f5f7c6eeb6c3
1,839
package com.co.almundo.prueba.callcenter.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColum...
18.958763
67
0.723763
2154930a59addfce5eae78efdc2c5fb070799a30
14,048
package org.apache.poi.hssf.record; import org.apache.poi.hssf.model.HSSFFormulaParser; import org.apache.poi.hssf.record.CFRuleRecord; import org.apache.poi.hssf.record.RecordInputStream; import org.apache.poi.hssf.record.StandardRecord; import org.apache.poi.hssf.record.cf.BorderFormatting; import org.apache.poi.hss...
33.769231
190
0.725797
28f2105537cd65f1ca4b5f0b12632e04b531832c
268
package com.huanchengfly.tieba.post.interfaces; import android.graphics.Bitmap; import android.webkit.WebView; public interface WebViewListener { void onPageFinished(WebView view, String url); void onPageStarted(WebView view, String url, Bitmap favicon); }
24.363636
65
0.791045
68e48ff206afd7b83bbbdb5bedcac4eeaad5e760
554
package noppes.npcs.api.event; import noppes.npcs.api.handler.IFactionHandler; import noppes.npcs.api.handler.IRecipeHandler; public class HandlerEvent { public static class RecipesLoadedEvent extends CustomNPCsEvent{ public final IRecipeHandler handler; public RecipesLoadedEvent(IRecipeHandler handler) { ...
23.083333
65
0.788809
6d970b8a3772a9be465f3cac099f79422697daeb
331
package xyz.einandartun.movieshelf.viewholders; import android.support.v7.widget.RecyclerView; import android.view.View; /** * Created by einandartun on 12/31/17. */ public class ItemMovieReviewViewHolder extends RecyclerView.ViewHolder { public ItemMovieReviewViewHolder(View itemView) { super(itemView...
22.066667
72
0.761329
78d1690b054f9543012d65d20135ea35d99ed3b2
24,714
package edu.wofford.wocoin; import java.io.*; import java.sql.*; import java.security.NoSuchAlgorithmException; import java.lang.InterruptedException; import java.util.ResourceBundle; import java.util.concurrent.ExecutionException; import javax.crypto.Cipher; import org.apache.commons.beanutils.converters.SqlDateConve...
36.078832
168
0.55066
c312fe9460886c06bc9eacf9207a2e71b5cc2a36
605
package org.csuc.typesafe.server; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertNotNull; public class ServerConfigTest { private static Logger logger = LogManager.getLogger(ServerConfig...
26.304348
96
0.757025
9f86e4c75cb7ff544ea2b7ebd2603d889b25c7d4
3,917
/* * Copyright 2015, TopicQuests * * 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.584507
111
0.696196
172df3892a417aaf09c1fc448d9394b0271d0341
1,871
/* * SchemaListModel.java * * Created on Fri Feb 20 13:58:56 EST 2004 * * Copyright (c) 2004 Spallation Neutron Source * Oak Ridge National Laboratory * Oak Ridge, TN 37830 */ package xal.app.dbbrowser; import javax.swing.*; /** * SchemaListModel * * @author tap */ public class SchemaListModel extends ...
22.817073
69
0.691074
6b588f9a83498c80a5a7243b37b53304d8af7731
1,765
package org.kie.services.client.serialization.jaxb; import java.io.ByteArrayInputStream; import java.io.StringWriter; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; import org.kie.services.client.serialization.jaxb.impl.Ja...
36.770833
96
0.753541
73ac0e4002c7853c709b6c4421e73c08ee6a76dc
813
package threads.server.model; import android.app.Application; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LiveData; import java.util.List; import threads.server.core.peers.PEERS; import threads.server.core.peers.User; import threads.server.core.peers.Use...
27.1
72
0.758918
d324f02ab30be358d5d8fbf612803fd358e669ef
3,537
package com.webcheckers.ui; import com.webcheckers.application.GameManager; import com.webcheckers.application.PlayerLobby; import com.webcheckers.model.Player; import spark.Request; import spark.Response; import spark.Route; import spark.Session; import java.util.logging.Logger; import static com.webcheckers.ui.Get...
35.37
100
0.681934
1ee6ce71a469bc3d2c2684e3fa14fc7aa0e94a98
6,983
/* * Copyright 2015-present Open Networking Foundation * * 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...
25.485401
102
0.645997
cea2f32ff6bb38d5689eec3b9ecd63d42ff78ef9
4,085
/* * Copyright (C) 2006-2021 Talend Inc. - www.talend.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 applicabl...
38.537736
130
0.640636
c50fdd4e5c4f3195ae824850e75ac6a8ac7cf7ab
973
package com.example.demo.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.web.bind.an...
29.484848
94
0.73073
6d2888aa506aab1ac3d4215964f42bf2e7a8b739
248
package org.bidtime.activiti.server.provider.service.LeaveApply.dao; import org.bidtime.activiti.server.api.po.LeaveApply; public interface LeaveApplyMapper { void save(LeaveApply apply); LeaveApply get(int id); void update(LeaveApply app); }
24.8
68
0.802419
148878a846cf57a329c4bbe4f96a73aeb47846bf
538
import java.lang.*; import java.util.*; class Solution { public int solution(String S) { if (S.length() == 0) { return 1; } int openingBraces = 0; for (char letter : S.toCharArray()) { if (letter == '(') { openingBraces++; ...
22.416667
45
0.384758
6ff47254fd35806779c7dcde27319494621cb14c
836
package com.withertech.tim_wim_holes.mixin.client.tardis.models.exterior; import net.minecraft.client.renderer.model.ModelRenderer; import net.tardis.mod.client.models.exteriors.ExteriorModel; import net.tardis.mod.client.models.exteriors.PoliceBoxExteriorModel; import org.spongepowered.asm.mixin.Final; import org.spo...
34.833333
73
0.815789
a6209a5e26582d14791351e9e41ed7536f3f6bb6
535
package com.crosshairengine.firstgame.engine.Abstract_classes; import android.graphics.Bitmap; import android.graphics.Canvas; import java.util.Vector; /** * Created by CrossHairEngine team on 5/1/2017. */ // Tile is static should be part of the Map // Tile is needed, so it get to be defined in engine // public a...
21.4
62
0.704673
389037d374bac8357d6f0039c2553630656a9185
864
package com.allen.springframework.filter; import org.springframework.util.StringUtils; import org.springframework.web.filter.OncePerRequestFilter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impor...
36
157
0.769676
a2d114c99681526b619f7d88cec381dd587ac817
4,163
package org.opencv.ml; import org.opencv.core.Mat; public class CvSVM extends CvStatModel { public static final int f207C = 0; public static final int COEF = 4; public static final int C_SVC = 100; public static final int DEGREE = 5; public static final int EPS_SVR = 103; public static final i...
37.845455
277
0.714629
76c3329f2128f56d74b116a6b07270bcb7b4e404
235
package rpc; /** * Created by Administrator on 2017/10/7. */ /** *服务提供者实现类 */ public class HelloServiceImpl implements HelloService{ @Override public String sayHello(String name) { return "Hello " + name; } }
14.6875
54
0.642553
e53e8e45437c52a3c280924f852c991368295cee
662
package com.loserico.java8.stream.grouping; import com.loserico.java8.stream.grouping.model.Person; import com.loserico.java8.stream.grouping.model.Pet; import java.util.Arrays; import java.util.List; public abstract class AbstractGroup { protected static List<Person> buildPersonsList() { Person person1 = new P...
33.1
77
0.703927
2c8064ca74dc6ea6461b94afeb100110d4e1a7f1
1,714
package io.memoria.reactive.core.eventsourcing; import io.memoria.reactive.core.db.RDB; import io.memoria.reactive.core.db.Read; import io.memoria.reactive.core.db.Sub; import io.memoria.reactive.core.id.Id; import io.vavr.collection.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import reactor.core.pu...
41.804878
112
0.655193
8bf06db1474fde1753e16a96b24161f28197254f
936
/** * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending */ package io.deephaven.javascript.proto.dhinternal.grpcweb.client; import io.deephaven.javascript.proto.dhinternal.grpcweb.transports.transport.TransportFactory; import jsinterop.annotations.JsOverlay; import jsinterop.annotations.JsPackage; impor...
26
94
0.747863
25b6f446b9b37d9f93ecd031e75e2f66b507a494
444
package de.bennetgallein; import java.util.ArrayList; import de.bennetgallein.neuron.Input; import de.bennetgallein.neuron.Neuron; public class Main { public static void main(String[] args) { Input i = new Input(-2, 0); Input i2 = new Input(-2, 0); ArrayList<Input> inputs = new ArrayList<Inp...
20.181818
52
0.648649
78d92cb74311167f295b82d81d04c1cc3116d782
1,474
/** * Copyright 2005-2015 Red Hat, Inc. * * Red Hat 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/licenses/LICENSE-2.0 * * Unless r...
38.789474
105
0.774763
cec71d24baef2cab836f88e68c28bc2d82f16d9c
2,515
/* * 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.670732
82
0.717296
7e4c93e113c60ade80153b9cd3dcebc6b017aec7
10,501
package net.anotheria.moskito.core.util.storage; import net.anotheria.moskito.core.inspection.CreationInfo; import net.anotheria.moskito.core.inspection.Inspectable; import net.anotheria.moskito.core.producers.IStatsProducer; import net.anotheria.moskito.core.registry.IProducerRegistry; import net.anotheria.moskito.co...
24.195853
116
0.680888
76b1fb4708148839cae0553cba5af11132ff3c03
3,276
/* * 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 ...
31.805825
97
0.706044
2ce58173d930f2e1b770bf6ce365e68e01c9c5f7
2,254
package com.oblong.gjgwms.service.impl; import java.util.UUID; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.oblong.gjgwms.dao.DistributeMapper; import com.oblong.gjgwms.dao.Distribute_detailMapper; import com.oblong.gjgwms.dao.InventoryMappe...
32.666667
101
0.800799
a7c43f3862f6f5fcd4e1d7104c6a9a03f242f110
2,532
package com.project.convertedCode.globalNamespace.functions; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import com.runtimeconverter.runtime.RuntimeEnv; import com.runtimeconverter.runtime.passByReference.RuntimeArgsWithReferences; import com.runtimeconverter.runtime.ZVal; import com.runtimeconverter...
38.363636
96
0.711295
a93c14e67f6a50f4b44f9fdc40080b092a8a5dbc
1,763
package org.mike; import org.restlet.Client; import org.restlet.Context; import org.restlet.data.ChallengeScheme; import org.restlet.data.Protocol; import org.restlet.resource.ClientResource; import org.restlet.resource.ResourceException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class TryThreeJ...
28.435484
83
0.698242
be79e5462b60eb7994cdb2fc19002926b734c9f5
717
/* * This file is part of alloy2smt. * Copyright (C) 2018-2019 The University of Iowa * * @author Mudathir Mohamed, Paul Meng * */ package edu.uiowa.smt.smtAst; abstract public class Declaration extends SmtAst { private final String name; private final Sort sort; pr...
17.925
50
0.587169
d6b8ebe8e28da68746f81f63c132be0d82563a80
307
package net.mehmetatas.devdb.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.FORBIDDEN) public class Forbidden extends DevDbException { public Forbidden(String message) { super(message); } }
25.583333
62
0.788274
03f905f0421d009cca2b263d14a032afa6f3788d
14,879
/* * Kodkod -- Copyright (c) 2005-present, Emina Torlak * * 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, m...
32.4869
90
0.668728
0af719d4f0095688386e9f4b722f216cfda5befa
378
package tools.datasync.dao.jdbc; import tools.datasync.api.msg.SyncEntityMessage; import tools.datasync.utils.SqlGenUtil; public class InsertSqlCreator implements SqlCreator { public String createSQL(String entityName, SyncEntityMessage syncEntityMsg, String keyColumn) { String sql = SqlGenUtil.getInsertSt...
25.2
79
0.796296
2e4068483903d0814235938c4d16176347d1a00e
52,325
package com.example.NCEPU.Student.Predict; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.app.ProgressDialog; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Message; i...
40.405405
102
0.447033