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
2ea315a50e6a79889b08dd1493bdf930e343da0e
2,243
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.components.language; import androidx.annotation.VisibleForTesting; import org.chromium.base.annotations.NativeMethods; /** * A br...
39.350877
94
0.727151
d191437a2ed3a1f3885f7e50cedbf00699ff0317
6,649
package com.dumas.pedestal.common.util.security; import java.nio.charset.StandardCharsets; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.util.logging.Level; import java.util.logging.Logger; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypt...
34.994737
132
0.61528
29f5fa71eeae48075ee4eeb8f28a13ac9f0b7ca7
2,957
package com.xamoom.android.xamoomcontentblocks; import android.util.SparseArray; import com.xamoom.android.xamoomsdk.APIListCallback; import com.xamoom.android.xamoomsdk.EnduserApi; import com.xamoom.android.xamoomsdk.Enums.ContentFlags; import com.xamoom.android.xamoomsdk.Enums.ContentSortFlags; import com.xamoom.an...
34.788235
109
0.708488
5b3caf2ea4afeb9f8e52882eae630bc80ec090ce
5,632
/* * Copyright 2021 Jeremy KUHN * * 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 i...
42.345865
204
0.719105
670c93b5c84f5eb68563760ee46784b790d17f27
6,700
/** */ package at.jku.isse.mde.betting.manager.impl; import at.jku.isse.mde.betting.manager.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse...
22.483221
152
0.658955
7b7fb8392c0d472656bbe5a6722f00a99d7df46d
2,438
package pruebas; import static org.hamcrest.Matchers.containsString; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatch...
42.77193
312
0.783019
68713fe2e0938baae6546edce673e51643a04404
2,731
/** * 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...
48.767857
117
0.755035
6198ba3de0f022f0e448f5a0b485bab6af3d4328
258
package edu.wis.jtlv.new_tb.parsing; public class TC045 extends ParsingTestCase { public TC045(String name) { super(name); } public static final String name = "semaphore"; public static final String file = "testcases/legacy/ctl-ltl/semaphore.smv"; }
23.454545
76
0.751938
668d150fee89e7cfe04040056d22a858d830dd06
1,697
package m.tri.facedetectcamera.utils; import android.bluetooth.BluetoothDevice; import org.json.JSONObject; import java.io.Serializable; import java.util.ArrayList; /** * Created by Eric on 2017/12/21. */ public interface ActionCallback extends Serializable { interface Int extends ActionCallback { v...
22.932432
71
0.630524
795e4f8786128b403be042077a3d51f7709cdba3
4,499
package com.example.masoomsabri.inventoryapp.adapters; /** * Created by masoomsabri on 7/4/16. */ import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.support.v4.widget.CursorAdapter; import andro...
46.381443
106
0.695043
fcd8a22e6ca7614894a5dbe472480891ceecac9a
491
package com.helloandroid.dagger.component; import android.app.Activity; import com.helloandroid.dagger.module.AppModule; import com.helloandroid.dagger.module.NetModule; import javax.inject.Singleton; import dagger.Component; /** * Created by scott on 16/8/31. */ @Singleton @Component(modules = {AppModule.class...
20.458333
56
0.759674
d04c87a4fb75f9058471b7f8cb9cfb02c58e9831
2,239
package org.motechproject.messagecampaign.dao; import org.motechproject.mds.annotations.Lookup; import org.motechproject.mds.annotations.LookupField; import org.motechproject.mds.service.MotechDataService; import org.motechproject.messagecampaign.domain.campaign.CampaignEnrollment; import org.motechproject.messagecamp...
39.982143
112
0.72845
829c5efb53ecea3febfbffb25899701174530b84
314
package com.autocar.intelligent.hardware.dao.groovy; import org.junit.Test; import static org.junit.Assert.*; /** * Created with IntelliJ IDEA. * Created by weiguobing on 2019/1/28. 上午8:09 * email : */ public class HardwareUploadMapperTest { @Test public void getList() throws Exception { } }
18.470588
52
0.703822
41a2085b8981ec15ebffb9e2c2094b0676c303d5
6,960
// 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 appl...
44.050633
100
0.715086
927b57d429b8852a7e22567526e95fe6e945d6cd
1,540
package org.d3ifcool.finpro.core.models; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class KategoriJudul implements Parcelable { @Expose @SerializedName("kategori_id") private int id; @E...
22.318841
87
0.642857
95658204e5150515a1c6964cff1816ad819ddc4b
3,536
package com.orange.dao.imp; import java.sql.SQLException; import java.util.List; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanHandler; import org.apache.commons.dbutils.handlers.BeanListHandler; import org.apache.commons.dbutils.handlers.ScalarHandler; import com.oran...
38.857143
405
0.752262
c5b1c4eeaa65e821697336dc55d71d0ce3afd32e
974
package ca.ciralabs; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.Date; class Token { private String token; private boolean success; private boolean authorized; private String expiry; private int userType; Token(Stri...
21.644444
149
0.651951
85eb88aa060f0669ef5ea454e1ad4a9393a76cca
11,363
package com.solar.cms.service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.nebula.commo...
33.031977
149
0.756754
585152204c27a22cb501fec3ca8979166a7fd27d
454
package algo.tzashinorpu.FirstRound.Chapter10; import java.util.Arrays; public class LeetCode_3_455_1 { public int findContentChildren(int[] g, int[] s) { int n = 0; Arrays.sort(g); Arrays.sort(s); int i = 0; int j = 0; while (i < s.length && j < g.length) { ...
20.636364
54
0.436123
ac75ef9f2068897eb9e8e59894b5f376be26abf8
1,966
/* * Copyright (C) 2015 Noorq, 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...
33.322034
102
0.749746
b3273dc7381d76de461f199fd499cae54fe51336
1,692
package uk.ac.chester.core.inspection; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.MethodDeclaration; import uk.ac.chester.core.intellij.APILogger; import uk.ac.chester.core.logging.LogHandler; import java.util.ArrayList; impor...
33.176471
110
0.699173
29014d773857d93b562c7f32823e916aa4d69a7e
8,620
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
36.837607
118
0.629118
c786e3281d03632ec810e78e404a9851f73d76b0
4,329
/* * Copyright 2018 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 app...
40.839623
142
0.66505
eafb932493f1796807ff70d8cda6cae3c8fc16d1
11,754
package ooga.model.database.parser; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.FileReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import ooga.controller.ModelController; import ooga.model.commands.AvailableCommands; import ooga.model.d...
38.411765
103
0.691339
34bb4ddd531982937743cb93784469a4f4bfdcba
343
package com.dong.genadmin.manual.mapper; import com.dong.genadmin.generator.model.SysConfig; import java.util.List; /** * @Classname MSysConfigMapper * @Description TODO * @Date 2019/10/3 10:54 * @Created by dong */ public interface MSysConfigMapper { List<SysConfig> findPage(); List<SysConfig> findBy...
18.052632
51
0.731778
d2397e76347004c34e72ddd3c471c7e4247c46c0
876
package ru.fizteh.fivt.students.standy66.shell; import java.io.FileInputStream; import java.io.IOException; import java.util.Scanner; /** * Created by astepanov on 21.09.14. */ public class CatAction extends Action { public CatAction(String[] args) { super(args); } @Override public boolean ...
26.545455
92
0.567352
eefec860a485db57e6bb5332767848191ab31240
1,251
package com.carson.commands.main.hangman; import com.carson.commandManagers.Command; import sx.blah.discord.api.IDiscordClient; import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent; public class CommandHangmanOne extends Command { private HangmanObject h; public CommandHangmanOn...
25.02
114
0.705835
4da2271af825c151b03175cf9b06ba89f3251bfc
2,519
/* * Copyright 2015-2020 Emmanuel Keller / QWAZR * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by app...
33.586667
94
0.715363
de086a3e204f1383968248931d906eb22ceb4cf1
1,057
package org.com.clusterworker.core.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.com.clusterworker.core.item.ItemProducer; import org.quartz.CronExpression; /** * Annotation to c...
25.166667
96
0.66982
bd1f248535126f26849ad92967c66f2aa5ca78a3
828
package cn.csbe.web.cms.offerings.service.impl; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import cn.csbe.web.cms.common.DateUtils; import cn.csbe.web.cms.common.service.impl.BaseService; import cn.csbe.web.cms.offerings.bean.O...
25.875
84
0.805556
116fd807907681ae88efd94bb985626dd3bd6968
1,629
package com.ctrl.web.servlet; import java.io.IOException; import java.util.Iterator; import java.util.concurrent.ConcurrentLinkedQueue; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.s...
28.578947
111
0.760589
cf97f2de40c8803f07caa3164db9418b31ab0a3d
1,343
package io.sofastack.cloud.mq.kafka.impl; import io.sofastack.cloud.mq.kafka.service.MailService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.mail.SimpleMail...
27.408163
83
0.683544
99d20e32d6ffa08f64b9c66093cb5c374d6202c4
1,583
package com.fundgroup.backend.security; import com.fundgroup.backend.dao.UserAuthorityDao; import com.fundgroup.backend.entity.UserAuthority; import com.fundgroup.backend.utils.messageUtils.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.Authentication; ...
29.314815
102
0.753001
9fb15f2a18cdfdd019b285cf945df987c8166f94
965
package com.gempukku.swccgo.logic.timing.results; import com.gempukku.swccgo.game.SwccgGame; import com.gempukku.swccgo.logic.timing.EffectResult; /** * The effect result that is emitted when battle destiny draws are complete for both players. */ public class BattleDestinyDrawsCompleteForBothPlayersResult extends E...
33.275862
104
0.743005
eccb9b2d684ada20de540756b4d3513bbc04e217
837
package com.itacademy.entities; import lombok.Data; import javax.persistence.*; import java.sql.Timestamp; @Entity @Table(name = "comment") @Data public class Comment { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; /* @Column private String author; */ @Column(nul...
19.465116
55
0.663082
cb3df544c2dfbcf9592349ccfa27a493afb5a2b6
4,064
/* * Copyright 2015 Adaptris Ltd. * * 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...
34.440678
108
0.749754
11faee61514b6415196b0bce7ff008b38b864d5c
592
/* * Copyright (C) 2004 Joe Walnes. * Copyright (C) 2006, 2007 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * * Created on 07. March 2004 b...
24.666667
76
0.75
1aba778fa3bf0ad8527e1483a50925306c11d9d2
6,579
/**************************************************************************** * Copyright (c) 2005, 2010 Jan S. Rellermeyer, Systems Group, * Department of Computer Science, ETH Zurich and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse ...
32.092683
138
0.646451
4fdc54738439c52b95dd15af316ba5ec3c818bd6
1,280
package mage.abilities.effects.common; import mage.abilities.Ability; import mage.abilities.condition.common.SourceTappedCondition; import mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect; import mage.constants.Duration; import mage.game.Game; import mage.game.events.GameEvent; /** * * @author Lo...
31.219512
113
0.749219
868fce0c5c6b4fbe0d70fe8465928801f31cd9e6
4,551
package com.google.common.reflect; import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import java.lang.reflect.GenericArrayType; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariab...
37.925
213
0.659416
8d54791962ea1ac36df6d982dee887c869066a9a
244
package hydrogen.kata.migrations; import org.springframework.data.mongodb.repository.MongoRepository; public interface MigrationRepository extends MongoRepository<DatabaseMigration, String> { DatabaseMigration findByName(String name); }
27.111111
89
0.840164
82e1210c2acf3449b94252e3c519bac43f3998ef
962
package com.qa.ims.persistence.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DaoConnect { private String jdbcConnectionUrl = "jdbc:mysql://34.65.200.246:3306/ims"; private String username; private String password; public String getJdbcConnectionUr...
23.463415
78
0.765073
5abf0dde585bedfb5f3f401eb90cd25b6bcd84cc
11,269
package com.example.triptourguide; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayA...
38.858621
149
0.635904
a308f5938fec6857ac6ef1f77f2948042871d97f
177
package com.bandwidth.webrtc.signaling; public class NullSessionException extends Exception { public NullSessionException(String message) { super(message); } }
22.125
53
0.745763
945b6290bfe33c16d82b6538862f5e3c6557a0fc
666
/* * 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 edu.pse.beast.datatypes.booleanExpAST.otherValuedNodes.integerValuedNodes; import edu.pse.beast.datatypes.booleanExpAST.otherV...
28.956522
82
0.783784
0d0df5ca894ee69bcdd60b050c8cecab7ad89075
2,865
package gz.scau.zhonghaowei.xiaoshoukuaisuan.View; import android.annotation.SuppressLint; import android.content.Context; import android.widget.TextView; import com.github.mikephil.charting.charts.Chart; import com.github.mikephil.charting.charts.LineChart; import com.github.mikephil.charting.components.MarkerView; ...
36.265823
88
0.650262
153ae2922f7aae78f43d28469ec231e4356a3b6b
2,414
package com.eatthepath.jvptree; import org.junit.jupiter.api.Test; import java.util.*; import static org.junit.jupiter.api.Assertions.*; public class MetaIteratorTest { @Test void testHasNextAndNext() { { final MetaIterator<Object> emptyIterator = new MetaIterator<>(Collections.emptyLis...
36.029851
118
0.644159
9de3371047157cceb0ac68a530dc7b44137ace55
7,434
/* * 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 ...
42
141
0.677832
1fedb05fed289c07e4b6502511033a9bcd31f753
1,556
package org.sahagin.runlib.external; public enum Locale { DEFAULT("default", "DEFAULT"), AR_SA("ar", "SA"), DE_DE("de", "DE"), EN_US("en", "US"), ES_ES("es", "ES"), FR_FR("fr", "FR"), IT_IT("it", "IT"), JA_JP("ja", "JP"), KO_KR("ko", "KR"), SV_SE("sv", "SE"), ZH_C...
19.948718
66
0.537275
398078515c385b589f0e5a8c0fc73383e7ddd9aa
516
import java.util.Scanner; public class SumOfOddNumbers { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int sum = 0; int iCounter = 0; for (int i = 1; i <= 100; i = i + 2) { System....
27.157895
53
0.478682
4c1df90fbf887bab03cb3ba9092e9ea4ab5d8cb4
132
package com.pagoda.thread; public class RunTest implements Runnable { public void run() { System.out.println("RunTest"); } }
13.2
42
0.712121
25a393aa13ffa4cea02ef78095fb311341d4ccfb
16,403
package fr.barbicane.maston.topology; import static fr.barbicane.maston.error.KafkaErrorToHeaderBuilder.ERROR_DESERIALIZATION_CODE; import static fr.barbicane.maston.error.KafkaErrorToHeaderBuilder.ERROR_DESERIALIZATION_MESSAGE; import static fr.barbicane.maston.error.KafkaErrorToHeaderBuilder.HEADER_ERROR_APPLICATION...
43.39418
111
0.749741
c64b1a44cb12475b19ec0f345b5cb0b384742539
3,117
package Chapter01.P20_ConcatenateSameStringNTimes.src.modern.challenge; import java.util.Collections; import java.util.concurrent.TimeUnit; import static java.util.stream.Collectors.joining; import java.util.stream.Stream; public class Main { private static final String TEXT = "hello"; public static void ma...
37.554217
95
0.647417
5910965d2ec6a46df3733e8492cd3e44372bb8d2
6,489
package com.qianshanding.framework.commons.monitor.monitor; import com.alibaba.fastjson.JSON; import lombok.extern.log4j.Log4j2; import org.apache.commons.lang3.StringUtils; import javax.management.ObjectName; import javax.management.openmbean.CompositeDataSupport; import java.lang.management.GarbageCollectorMXBean; ...
33.107143
118
0.602712
a8ea5e33a6b4db9f4a0fa65f2b30aaf9da1b3e18
249
package model.battlefield.lighting; import java.awt.Color; /** * */ public abstract class Lighting { public Color color; public double intensity = 1; public Lighting(Color color) { this.color = color; } }
15.5625
36
0.610442
5bb98dbec54bcf0e6c6d1966d1f94456db3e5711
784
package com.arksana.filijet.data; import android.database.Cursor; import androidx.paging.DataSource; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.Query; import androidx.room.Update; import java.util.List; @Dao public interface FilmDAO { ...
20.631579
55
0.659439
8be44f4ea07ae7da11ca4f795e0a99ee144962e3
307
package com.home.commonBase.constlist.generate; /** 聊天数据类型(generated by shine) */ public class ChatType { /** 文本 */ public static final int Text=1; /** 声音 */ public static final int Sound=2; /** 图片 */ public static final int Image=3; /** 长度 */ public static int size=4; }
16.157895
48
0.609121
dd94d6f92557d78140a3bba4d05830ba09a02f1d
431
package com.rest.template.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @ComponentScan("com.rest.template") public class RestTemplateDemoApplication { p...
28.733333
68
0.835267
f31e34e579f944fb89564772454833c70ab6a98f
2,254
package io.searchbox.core.search.facet; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * @author ferhat */ public class TermsStatsFacet extends Facet { public static final String TYPE = "terms_stats"; private Long missing; private List<TermsStats> termsStatsList; pub...
25.613636
121
0.555901
bfc6f34573a76192ac4854331120fac74d05149f
2,010
package io.github.kavahub.learnjava; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; /** * ...
26.447368
135
0.669652
cd7c3ccf7faf3ec7300701d4fb4531983d5270cf
662
package org.axe.jetty; import java.util.EnumSet; import javax.servlet.DispatcherType; import org.eclipse.jetty.servlet.FilterHolder; public final class JettyServletFilter { private FilterHolder holder; private String pathSpec; private EnumSet<DispatcherType> dispatches; public JettyServletFilter(FilterHol...
20.060606
102
0.767372
3539bece53c9aeb99882156966163e61d0584d3b
4,979
package org.hl7.fhir.tools.implementations.java; /* Copyright (c) 2011+, HL7, Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyrig...
40.153226
102
0.654348
a678db72c7d98b7155315ff93699a14b93b984dd
2,907
package com.boot.controller; import com.alibaba.fastjson.JSON; import com.boot.constant.Constant; import com.boot.pojo.*; import com.boot.service.ArticleService; import com.boot.service.CategoryService; import com.github.pagehelper.PageHelper; import io.swagger.annotations.Api; import org.springframework.beans.factory...
25.725664
90
0.731338
2d50bd7af882ab72d9127aaccbe3d57cffc90b93
10,285
/* * Copyright (c) 2021 Aaron Coburn and individual contributors * * 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 require...
46.121076
117
0.686437
d3459f2062e4c7fa059190952457c68dc8260c8a
216,701
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: dstore/engine/procedures/im_GetNodeCharacteristics_Pu.proto package io.dstore.engine.procedures; public final class ImGetNodeCharacteristicsPu { private ImGetNodeCharacteristicsPu() {} public static void registerAllExtensions( com.google...
39.017105
246
0.623301
4e807d1bc3d649d2493b189a4cd6cfb9441002a9
985
package storm.trident.state; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import com.alibaba.fastjson.JSON; public class JSONOpaqueSerializer implements Serializer<OpaqueValue> { @Override public byte[] serialize(OpaqueValue obj) { List toSer = new...
26.621622
84
0.615228
d855e67d065b9ef657845c82a08e23fe6276e782
477
package willem.base.thread.threadPool; import org.junit.jupiter.api.Test; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.TimeUnit; /** * @Author weiyu005 * @Description * @Date 2018/12/29 17:47 */ public class ForkJoinPoolDemo { private ForkJoinPool pool = new ForkJoinPool(4); @Test...
21.681818
52
0.725367
d337e8fe3eb2f952a5c9a40cfe765154a301911a
1,274
package org.folio.circulation.support.logging; import java.lang.invoke.MethodHandles; import org.folio.circulation.support.http.client.Response; import org.folio.circulation.support.results.Result; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class LogHelper { private static final Logger log = L...
31.073171
98
0.666405
4c34c9457d649c786055d13f0f2fff2b695f38ba
10,293
/* Copyright 2021 Fausto Spoto 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 di...
52.248731
221
0.799184
4b9253b08fafc3ac5ea017a7ea83e960a06fae9a
2,806
/* * 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 caecae.pi3.servlet.clientes; import caecae.pi3.exception.DaoException; import caecae.pi3.model.Cliente; import caecae.pi3.serv...
35.518987
103
0.674269
6a9f00c25f4ff336b0745b76abbf7fa3a748eb00
593
/** * Leetcode - two_sum */ package com.duol.leetcode.y20.m12.d25.no1.two_sum; import java.util.*; import com.duol.common.*; /** * hash法 */ class Solution2 implements Solution { public int[] twoSum(int[] nums, int target){ Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < nums....
21.962963
63
0.50253
7244625915d060664339cdf6eff59f6636797b12
1,924
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
29.151515
100
0.695426
ed0745191feb6426755e5807205d2737ef51495f
3,132
package com.github.pedron98.model; import java.io.Serializable; import java.time.LocalTime; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import...
22.212766
89
0.703384
f717e6dac0af1e564fe5da064fd66542197e5e06
825
package nowcoder; import java.util.Arrays; /** * 给定一个数组A[0,1,...,n-1],请构建一个数组B[0,1,...,n-1],其中B中的元素B[i]=A[0]*A[1]*...*A[i-1]*A[i+1]*...*A[n-1]。不能使用除法。 */ public class BuildingAProductArray { public int[] multiply(int[] A) { if (A == null || A.length == 0) return A; int len = A.length; in...
25
104
0.455758
d879dfb4d2dffce63ef02e5b4da2f724cdbdc7cb
3,200
package com.mokelab.http.rx; import java.io.IOException; import java.util.Map; import java.util.Set; import io.reactivex.Single; import io.reactivex.SingleEmitter; import io.reactivex.SingleOnSubscribe; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import o...
32.989691
117
0.55
bf0e838105338cabb96b652af51fe4c592236845
3,395
/* ************************************************************************ LEBAH PORTAL FRAMEWORK, http://lebah.sf.net Copyright (C) 2007 Shamsul Bahrin but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for mo...
29.017094
141
0.615611
4152f3bc6856c0ee7b348a0118a960e90903df6a
3,557
package pt.ist.socialsoftware.mono2micro.dto; import pt.ist.socialsoftware.mono2micro.domain.Decomposition; import java.util.ArrayList; import java.util.List; public class AnalysisDto { private Decomposition decomposition1; private Decomposition decomposition2; private int truePositive; private int t...
22.656051
65
0.660107
2bb4362950123246669530b04d21d0b89e1aeb26
1,178
package com.sf.xts.api.sdk.marketdata.subscriptionRequest; import java.util.Arrays; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.sf.xts.api.sdk.marketdata.Instrument; public class UnsubscribeResult { @SerializedName("xtsMessageCode") @Expose pr...
20.666667
62
0.713073
1a5348910de79da35ac9de03798eab26e7652ee3
1,597
package com.wy.dynamicdb; import java.lang.reflect.Method; import java.util.Objects; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; import o...
27.067797
94
0.751409
3d10fe2ea9974a36ad703962448ecbeb1e83fcff
3,277
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.12....
26.216
122
0.613671
60aaec0ba1e76817203ddd4ab97785f6cb48e97d
249
package pe.edu.cibertec.converter; import pe.edu.cibertec.dominio.Producto; import pe.edu.cibertec.dto.ProductoDto; /** * Created by CHRISTIAN on 24/05/2018. */ public interface ProductoConverter extends ConverterBase<Producto, ProductoDto> { }
22.636364
81
0.783133
26e9c8127e18b05041cebcb7e860fe64374ff53a
5,917
/* * 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.983784
101
0.739733
4dee47ac2dc6b588cabdf0ce677218bcf8754016
15,355
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package org.appcelerator.titanium; import java.util.concurrent.atomic.AtomicInteg...
29.873541
144
0.729665
61e798d9be60024013babaf9c192da3f797f997f
7,823
package org.javacord.api.entity.message; import org.javacord.api.entity.message.embed.EmbedBuilder; import java.io.File; import java.io.InputStream; import java.util.concurrent.CompletableFuture; /** * This class represents an entity which can receive messages. */ public interface Messageable { /** * Sen...
32.460581
115
0.586348
f5a6f3121a2d17940678e87527c10a7cd589e1db
2,191
/* * Copyright (c) 2010-2021 Haifeng Li. All rights reserved. * * Smile is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Smi...
24.617978
83
0.581926
047f3adb9b15dbf8bef01bb141f93772670631a2
2,852
package lee.t.code; import org.junit.Assert; import org.junit.Test; /** * 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。 * <p> * 返回被除数 dividend 除以除数 divisor 得到的商。 * <p> * 整数除法的结果应当截去(truncate)其小数部分,例如:truncate(8.345) = 8 以及 truncate(-2.7335) = -2 * <p> * 来源:力扣(LeetCode) * 链接:https://leetcode-cn.co...
25.464286
88
0.473703
d1e8970d5a47679906ec4222c88b8f254b20dc16
2,426
/* * 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 co.edu.uniandes.csw.cortos.persistence; import co.edu.uniandes.csw.cortos.entities.CalificacionEntity; import java.util.List; ...
30.708861
102
0.67601
3feb709db27c0bf2a0e6af2e4f4a47ac273ef90f
691
package com.akseltorgard.steganography; import android.app.Dialog; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; public class AboutDialogFragment extends DialogFragment { public stat...
28.791667
89
0.723589
63842cd7e6db2c155ef9741808a702c7410fd56f
1,116
package com.sparrow.data.tools.compress; 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 org.apache.commons.compress.archivers.zip.ZipArchiveEnt...
29.368421
72
0.772401
0ab2967b3464f27a082086a07bc3f24e227fc936
2,457
import org.junit.Test; import java.util.Stack; import java.util.StringTokenizer; /** * Created by earayu on 2017/6/26. */ public class test { @Test public void test1() { System.out.println(infix2Pos("(a.b)|c")); } public static String infix2Pos(String exp) { StringBuffer po...
31.5
90
0.485144
76253bb2d34a248f2590c36fd09326c44755bfb6
4,435
package twincat.app.common; import java.awt.Color; import java.awt.Component; import javax.swing.ImageIcon; import javax.swing.JTree; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeCellRenderer; import twincat.Resources; import twincat.Utilities; import twincat.constant.DefaultCol...
34.648438
156
0.669222
11bda460fd7160a0b02b6e7208911a356d9cabf1
1,835
/* * 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 ua.nure.rumiantsev.SummaryTask4.Utils; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; i...
32.192982
81
0.680654
bd4737c81491dd5efc0202b728892c3821491817
428
package imageserver.beans; import java.io.Serializable; public class DatabaseQuery implements Serializable { private String query; public String getQuery() { return query; } public void setQuery(String query) { this.query = query; } @Override public String toString() ...
16.461538
52
0.565421
c1b762dc6bcf1d13f7cbaff5b42a3ce76dac81c1
5,145
package joshie.harvest.crops.render; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import joshie.harvest.api.HFApi; import joshie.harvest.api.calendar.Season; import joshie.harvest.core.base.render.BakedHF; import joshie.harvest.core.helpers.MCClientHelper; import joshie.harvest.core.u...
48.084112
160
0.743635
0460adb73dd3f4f75891d8a7a7118946d06cc728
4,407
// // Copyright (C) 2019 Carbonacat // // 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 i...
32.404412
108
0.638983
c67559969fee2997bd4d386634642c40dea5f8a3
4,000
package com.airfranceklm.amt.sidecar.filters; import com.airfranceklm.amt.sidecar.CommonExpressions; import com.airfranceklm.amt.sidecar.elements.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; public class StringAlgorithmsCreators { private stat...
38.461538
124
0.62625
6f746d0ba2cafd186feae798a5c417a840ce2053
7,297
package org.raven.compiler; import org.raven.antlr.Modifier; import org.raven.antlr.Operator; import org.raven.antlr.RParser; import org.raven.antlr.RavenTree; import org.raven.antlr.ast.*; import org.raven.error.Errors; import org.raven.util.Settings; import java.io.File; import java.io.FileOutputStream; import java...
35.769608
132
0.559408
0b1c3b261e750c0d704030e184bf86859c1beb5d
652
package com._1n5aN1aC.tacotek.items; import java.util.List; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; pu...
27.166667
100
0.766871
3e6dbdd23061e96b20f1b0b3ad5d5cd510478576
1,930
/******************************************************************************* * Copyright (c) 2011, 2012 Oracle and/or its affiliates. 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 v. 1...
47.073171
126
0.681347
6df65313ed45795e4d4fb7eae334ce9a8173338c
3,132
package de.tuberlin.amos.ws17.swit.application; import de.tuberlin.amos.ws17.swit.transform.Transform; import de.tuberlin.amos.ws17.swit.transform.TransformInterpolation; import org.apache.commons.math3.geometry.euclidean.threed.Rotation; import org.apache.commons.math3.geometry.euclidean.threed.RotationConvention; im...
37.73494
129
0.730204