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
b06f08ce63422b99b5f6c430fa038bf59fef0446
358
package com.mj.common.constant; /** * HttpConstants<br/> * <strong>All in lower case to put and get easy</strong> * * @author <a href="http://www.trinea.cn" target="_blank">Trinea</a> 2013-5-12 */ public class HttpConstants { public static final String EXPIRES = "expires"; public static final Stri...
25.571429
78
0.678771
6d86129dd74ab6eee2ceefbc737f7610c323fbb4
2,394
package eu.ase.reactstreams; import java.time.LocalDate; import java.util.List; import java.util.concurrent.Flow; import java.util.concurrent.Flow.Subscription; import java.util.concurrent.SubmissionPublisher; class JSONData { private final String headline; private final LocalDate date; private JSONData(Strin...
25.468085
107
0.683793
f7688cc3f61d37d70714f5058a9e5a29f7bf3af1
4,860
/* * Copyright 2018-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 appli...
40.165289
93
0.652469
62f1f914bddd2dc6b04d7cdc882850a09b68bc73
3,219
package edu.stanford.nlp.sempre.tables.serialize; import java.io.BufferedReader; import java.io.File; import java.io.PrintWriter; import java.util.*; import edu.stanford.nlp.sempre.*; import fig.basic.*; import fig.exec.Execution; public class DumpFilterer implements Runnable { public static class Options { @O...
35.373626
106
0.627213
2f65675563e040354c13517f48e0f833f0e5567f
19,682
package ru.sbtqa.tag.datajack.providers.properties; import com.mongodb.BasicDBObject; import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ru.sbtqa.tag.datajack.TestDataP...
44.130045
206
0.705619
422fb0064c8114a099ca962c3cabf1970b251d6f
1,746
/* * 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.745455
94
0.743986
bba93405c1b18522489743975498022cd60958be
26,002
/* * Copyright (C) 2019 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...
42.417618
100
0.663487
55356f5a5775cb93f500ef008ca49f1e72465d60
2,030
package ch.uzh.feedbag.backend.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import javax.persistence.*; import java.time.Instant; @Entity @Table(name="ActivityInterval") public class ActivityInterval extends BaseInterval { @Column(nullable=false) @Enumerated(EnumType.STRING) private ActivityType ...
27.808219
167
0.706404
ac7c22f56c15cc1207a2650925730930cc29bf5e
1,607
package com.comcast.pop.service.stream; import java.util.HashMap; import java.util.Map; /* Thinking about what else we may want here. Do we want immutable context instances? Maybe for later. For now, we are working to build a set of code that can be modified for various demos. */ public class MutableContext implem...
27.706897
106
0.661481
e974f82bf193fe7b54b98e9d729e5eae2610823e
1,751
package com.example.calculadora.tests; import org.junit.Assert; import org.junit.Test; import com.example.calculadora.Calculadora; public class CalculadoraRestaTest extends CalculadoraBaseTest{ /** * Test para restar dos números */ @Test public void testRestaDosNumeros(){ //Definimos los números a suma...
22.74026
63
0.703598
6a81c1ad718c0d0dcd0233f21f9dac6cd714d54d
22,241
/* * * 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"); y...
39.22575
119
0.632526
f88b4c4a209a95c6330b9cf25901068c05002a57
21,848
/* * Copyright (C) 2007 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...
37.030508
100
0.594608
702219787063891bbb6772946998d0d914cf19b4
358
package nl.corwur.cytoscape.neo4j.internal.graph; /** * This class specifies the interface for any object that is part of a graph. * A graph object is used as an intermediate data model to import data from Neo4j to Cytoscape. * A graph object can be processed by a visitor. */ public interface GraphObject { void...
32.545455
95
0.76257
6cb6de1cdc5c3ad86380ebc891ed319e43c5dfd5
674
package org.jfugue.bugs; import org.jfugue.pattern.Pattern; import org.jfugue.player.Player; public class Bug_2014_08_26_Sundar_Layers { public static void main(String[] args) { // Pattern pattern = new Pattern("V1 L0 C L1 E L2 G"); // new Player().play(pattern); Pattern pattern2 = ...
44.933333
335
0.633531
557099b165c54738dadcafad0ea50f464ec52002
1,069
/* * Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending */ package io.deephaven.db.v2.select; import org.jetbrains.annotations.Nullable; /** * This interface marks SelectFilters that return a result set that should be the full set for subsequent filters. * Said another way, subsequent filters need to...
32.393939
123
0.716558
104fc90d22793b1e6647978a7b24a9d69e22381c
1,613
package nasa.ui; import java.io.ByteArrayInputStream; import java.util.logging.Logger; import javafx.fxml.FXML; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.stage.Stage; import nasa.commons.core.LogsCenter; /** * Window showing the qr code to export NasaBook. */ public class...
22.71831
84
0.629262
c9680898bdaf98fd5b319b1f1e31e10b40e3b40d
6,378
package com.datapar.cambio.shared; import java.util.InputMismatchException; import java.util.Scanner; /** * Created by George Bonespirito on 18/04/2017. */ public class ConversorBrl { public ConversorBrl() { } public void main(String[] args) { Scanner ler = new Scanner(System.in); dou...
38.654545
84
0.38868
9f1653488d4dd65162932e9f0a3dfab4de7d6895
4,911
/* * WhichEntailsRule.java * --------------------------------- * Copyright (c) 2021 * RESOLVE Software Research Group * School of Computing * Clemson University * All rights reserved. * --------------------------------- * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which ...
38.669291
117
0.623498
7c1537643143d1d10ff96ca1b04f97df73bfdecf
689
package com.bridgeit.programs; import java.io.*; import com.bridgeit.utility.Utility; public class WordList { public static void main(String args[]) throws IOException { File file = new File("file.txt"); String string; int result; BufferedReader bufferedreader = new BufferedReader(new FileReader(fi...
24.607143
77
0.671988
c251d4c6b40c44e4ce5d6c0436cab8556dfff821
2,629
package com.klst.einvoice.ubl; import java.sql.Timestamp; import com.klst.ebXml.reflection.SCopyCtor; import com.klst.edoc.api.IPeriod; import com.klst.edoc.untdid.DateTimeFormats; import oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PeriodType; import oasis.names.specification.ubl.sc...
29.539326
94
0.732598
b399d8cb50b2920b9433a3a11b078e0184c8d563
380
module jfxtras.icalendaragenda { exports jfxtras.scene.control.agenda.icalendar; exports jfxtras.scene.control.agenda.icalendar.editors.deleters; exports jfxtras.scene.control.agenda.icalendar.editors.revisors; exports jfxtras.scene.control.agenda.icalendar.factories; requires transitive jfxt...
42.222222
69
0.784211
f33409c61ab95e203ea16b62a211200038ee4de8
791
package com.emt.morph.http; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import java.lang.annotation.Annotation; import java.util.Arrays; import java.util.Optional; public enum ClientHttpMethod { GET(GET.class), POST(POST.class), PUT(PUT.class), DELE...
23.969697
98
0.705436
8b142d820e32bf86c1d2119e19d542d33693a966
16,694
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.uff.dam.parser.service; import br.uff.dam.model.BaseEvent; import br.uff.dam.model.CheckedEvents; import br.uff.dam.model.Event; import br.uff.dam.model.NotProcessedEvent; import java.io.Reader; import java.i...
44.636364
112
0.613514
9f9f2c7026c0983d671a942e87f0441ae8aa8a47
243
package com.moviz.lib.comunication.holder; import com.moviz.lib.comunication.DeviceStatus; public class DeviceStatusPrinter extends EnumPrinter { public DeviceStatusPrinter() { reference = DeviceStatus.statuses; } }
24.3
55
0.736626
5521efa052dc18b003ac853289d9d11d628facf0
13,294
package com.piaopiao.annonation_compiler; import com.google.auto.service.AutoService; import com.piaopiao.annotations.BindView; import com.piaopiao.annotations.OnClick; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.P...
44.760943
146
0.571762
c36580f8ecb1e44ff8c0fc7ee960c360ce60a69d
7,874
package osp.leobert.android.plugin.pandora.action; import com.google.common.base.CaseFormat; import com.intellij.ide.IdeBundle; import com.intellij.ide.actions.CreateFileFromTemplateDialog; import com.intellij.ide.actions.JavaCreateTemplateInPackageAction; import com.intellij.openapi.command.WriteCommandAction; import...
36.967136
125
0.677546
62cdb74491a40705b2ed27110d8fafa091411157
4,503
package org.vaadin.alump; import com.vaadin.ui.Component; import com.vaadin.ui.Label; import junit.framework.Assert; import org.junit.Test; import org.vaadin.alump.columnlayout.ColumnLayout; import java.util.HashSet; import java.util.Iterator; import java.util.Set; // JUnit tests here public class ColumnLayoutTest {...
32.630435
116
0.611592
29ec41e90c45fec6a1b44586dfe42d7bc0b145fb
910
package ico.ico.ble.demo.uuid; import ico.ico.ble.BleSocket; /** * Created by root on 18-4-23. */ public class NbeeUUID implements BleSocket.BLeUUIDI { private static volatile NbeeUUID instance; public static NbeeUUID getInstance() { if (instance == null) { synchronized (NbeeUUID.cla...
20.681818
54
0.582418
fe10d11299279a3696e33e80ccf917fc4c68f73e
11,540
package com.sap.olingo.jpa.processor.core.query; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOExc...
37.346278
202
0.716031
1481313474e51e940140e24088cfe0a609401989
16,373
package com.alphawallet.app.repository; import static com.alphawallet.app.repository.TokensRealmSource.EVENT_CARDS; import static com.alphawallet.app.repository.TokensRealmSource.TICKER_DB; import static java.lang.Thread.sleep; import android.util.Log; import com.alphawallet.app.BuildConfig; import com.alphawallet....
34.253138
165
0.549136
d032650c9d6fecf3fd0a4d89322c68b9b4c46a2a
12,416
package me.danielschaefer.digitrecognition; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collec...
39.415873
166
0.571762
5a874312099b46feadb5d8984506bbb2a9b2b25d
1,730
package org.cockloft.vertx.router; import io.vertx.core.Vertx; import java.util.Iterator; public class RouteRunner { private Iterator<Route.RouteHandle> iterator; private RouteContext routeContext; private Vertx vertx; private Route route; public RouteRunner(Vertx vertx,Route route){ this....
30.892857
129
0.569942
a67ed63dc09f0a2938d1c59e2b69a8600043baf6
1,909
package vdb.mydb.jsp.action.catalog; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import vdb.metacat.DataSet; import vdb.metacat.Entity; import vdb.mydb.VdbManager; import vdb.mydb.jsp.CreateUMLImage; import vdb.mydb.vtl.action.ServletActionProxy; pu...
30.790323
71
0.687795
2a87958f906c1acbe67c92c7f5c565e561304551
606
package spencercjh.problems; import io.micronaut.test.extensions.junit5.annotation.MicronautTest; import org.junit.jupiter.api.Test; import javax.inject.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; @MicronautTest class LongestTurbulentSubarrayTest { @Inject private LongestTurbulentSubar...
25.25
87
0.750825
953c3b8a8ed51f613a137539e3bc6e923c6b9a35
4,402
package com.rohitdm97.coolrobot.services; import com.rohitdm97.coolrobot.external.distance.GooglePathResponse; import com.rohitdm97.coolrobot.path.Path; import com.rohitdm97.coolrobot.path.Point; import com.rohitdm97.coolrobot.path.PolyLine; import lombok.RequiredArgsConstructor; import java.util.ArrayList; import j...
34.124031
138
0.57701
b6d05777a24dd5301557f0c6e02dfa0a21be6562
658
package com.jivesoftware.robot.intellij.plugin.elements.stubindex.indexes; import com.intellij.psi.stubs.StringStubIndexExtension; import com.intellij.psi.stubs.StubIndexKey; import com.jivesoftware.robot.intellij.plugin.psi.RobotKeyword; import org.jetbrains.annotations.NotNull; /** * Created by charles on 6/21/14....
32.9
125
0.787234
1a6e8b89dce10b57cfba6e6f9412681bee327f79
284
package com.sheeranwan.learningspring.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.example.plusdemo.entity.User; /** * <p> * Mapper 接口 * </p> * * @author zhangbin * @since 2019-10-29 */ public interface UserMapper extends BaseMapper<User> { }
16.705882
55
0.721831
1c1e41a8fedf60d2d458e4e386951637c189c8ac
6,542
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
48.459259
171
0.693672
5e135ec091aa7ee6e1a282421e4210731368e8b8
3,923
/* * This file is generated by jOOQ. */ package com.kushtrimh.tomorr.dal.tables.records; import com.kushtrimh.tomorr.dal.tables.ArtistAppUser; import org.jooq.Field; import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; import javax.persistence.Column; import javax.persistence.En...
24.829114
118
0.556462
17ada853b2fe55810203d4414c34451c0d09a643
4,372
package com.example.cfb.googleplaytech.ui.activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import android.widget.FrameLayout; import com.example.cfb.googleplaytech.R; import com.example.cfb.googleplaytech.domain.AppInfo; import co...
36.433333
88
0.708371
c66134653119a1d6844e033ebe0f887c98602081
5,385
package com.oc.hawk.project.port.driven.persistence.po; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.oc.hawk.common.hibernate.BaseEntity; import com.oc.hawk.project.domain.model.buildjob.*; import com.oc.hawk.project.domain.model.codebase.git.GitCommitLogID; import com.oc.h...
37.657343
159
0.678923
54d863ddda53d092e16c47e3c33bd2452524e875
4,303
package com.fabpharos.levincraft.blocks; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.wo...
44.822917
193
0.728561
ff81a9d2628a6b5a29cb8a71f0bb445fe3e3a0b5
626
package fundamentals; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class DistinctList { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String inputNums = scan.nextLine(); String[] inputNumsToArr = inputNums.split(" "); List<Integer> li...
22.357143
69
0.688498
450fad38160335b337e37dba8dad0196b3c940e0
472
package io.github.wysohn.rapidframework3.testmodules; import com.google.inject.AbstractModule; import com.google.inject.Provides; import io.github.wysohn.rapidframework3.core.inject.annotations.PluginDirectory; import java.io.File; public class MockPluginDirectoryModule extends AbstractModule { @Provides @Pl...
26.222222
80
0.745763
170907f0700be1d7735de3e8387097e4df9f9f47
2,614
/* bcabcl * * Copyright (c) 2018 Tushar Girase 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 require...
32.675
112
0.743688
88614ddc386efe28c9765b1985fa155e438fa496
3,158
/* * 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 ...
35.483146
209
0.70741
bbd25bde4ccbc1e6705edd65fe953cfc10d5c507
779
package cz.GravelCZLP.PasswordHash; public class Test { public static String PasswordTotest = "P4ssw0rd1"; // if this is your password, go change it :D public static void main(String[] args) { TestHashv2(); } private static void TestHashv2() { System.out.println("Running Test of Password Hash v2!"); Sys...
33.869565
101
0.726573
0be5f387d549b2dbbf4cc04ec0f6e8aff30ecad6
3,247
/* * 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...
27.516949
83
0.698183
4352319f4bf17e1777347c3c1a67cfe49880e6e9
550
package com.stormsun.app.customview.step1.imageeditor.drawer; import android.graphics.Canvas; import android.view.View; import com.stormsun.app.customview.step1.imageeditor.AttributesTool; /** * Created by StormSun on 02,十一月,2016 */ public class LineDrawer extends RectDrawer { public LineDrawer(View view) { ...
23.913043
91
0.721818
ea1e01ea1d280768bc96fc81b44740ed5f0396a2
522
/* * 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 blockchain; /** * * @author ardroid */ public class Transaction { public String sender; public String recipien...
19.333333
79
0.659004
90b9ca5f03084b6133a280159887ba1dc3a100c1
1,454
//Given a linked list, swap every two adjacent nodes and return its head. // // You may not modify the values in the list's nodes, only nodes itself may be changed. // // // // Example: // // //Given 1->2->3->4, you should return the list as 2->1->4->3. // // package com.metalgeek.leetcode.editor.en; import com...
26.925926
88
0.620358
f4c63c5a3d40d264073eb7f4458838ab6867e201
5,554
package org.apache.dhval.wss; import org.apache.ws.security.WSConstants; import org.apache.ws.security.message.WSSecEncryptedKey; import org.apache.ws.security.saml.ext.SAMLCallback; import org.apache.ws.security.saml.ext.bean.ActionBean; import org.apache.ws.security.saml.ext.bean.AttributeBean; import org.apache.ws....
40.246377
101
0.684552
90005c987d1a696b7e13ee5e695d259e2a3cb29e
417
package com.ioc_anno.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; @Configuration @ComponentScan("com.ioc_anno") @Imp...
27.8
61
0.846523
276f5f9d18e3b742a97e02a3745700e25d054b27
581
package com.kingnez.watermark.camera; import android.app.Application; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; /** * Created by kingnez on 5/19/14. */ public class WatermarkCameraApp extends Application { @Override p...
25.26087
77
0.700516
8b9ac68b7e18b452a8bc95d5ff2cb32050734ca8
11,222
package io.compgen.ngsutils.bam; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.nio.channels.FileChannel; import java.util.ArrayDeque; import java.util.Deque; import java.util.HashMap; import java.util.Itera...
35.967949
130
0.470326
f2f88201dc37b92725a6fe77052d1ad4e8611544
389
package com.google.android.gms.internal.ads; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ public final class zzht extends IllegalStateException { private final zzhy zzafd; private final int zzagt; private final long zzahy; public zzht(zzhy zzhy, int i, long j) { this.z...
25.933333
69
0.660668
2c33b2b65d291273211e5622cfb5c25afcd76412
7,994
package io.github.gitbucket.markedj; import io.github.gitbucket.markedj.rule.FindFirstRule; import io.github.gitbucket.markedj.rule.FindAllRule; import io.github.gitbucket.markedj.rule.NoopRule; import io.github.gitbucket.markedj.rule.Rule; import java.util.HashMap; import java.util.Map; public class Grammer { ...
66.066116
277
0.515512
b995ae186f44b0d06bb5ab4513b5f4dbe6c33c95
1,055
package iwt2.cucumber; import iwt2.util.NeSPConfiguration; import java.util.ArrayList; import java.util.*; import cucumber.api.cli.Main; /** * Launchs Cucumber after generating the text fils with the scearios. * @author Javier * */ public class Launcher { /** * Test main. * @param args * @throws Throwab...
18.508772
69
0.676777
e5a0fe57c31b798a2e6e52fb3756236ea824e262
11,070
import static java.awt.event.KeyEvent.VK_ENTER; import javax.swing.JOptionPane; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author cesar */ public class Ventana ext...
48.76652
166
0.666305
494e6cf4dc989eef50427e9d28d2ce50c9345db3
1,772
package com.effectivemaven.centrepoint.model.plugin; /** * Copyright 2009 * * 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 * * Unle...
34.076923
120
0.71614
ee7451d1380b267e70c943db7ba43ce00b5ad84f
9,024
package com.github.longhorn.fastball.time; import com.google.common.base.Optional; import com.google.errorprone.annotations.Var; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import javax.annotation.Nullable; import java.text.ParseException; import java.time.LocalDate; impo...
36.534413
120
0.593307
a931d6a061fbbbc1a0708624b07bf0d3314a9791
2,610
import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelExec; import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; public class sshTest { public static void main(String[] args) throws JSchException, InterruptedException { // python 실행 test1(); System.out.pr...
20.714286
84
0.640613
171c5a546efb4afcea0968047d4fa0103529a8a9
2,098
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
33.83871
87
0.703051
ec27e70b53ab5045989fdfb2a54f9064ea0cc278
3,992
/******************************************************************************* * Copyright 2011, 2012, 2013 fanfou.com, Xiaoke, Zhang * * 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 *...
29.57037
81
0.642535
4f4a58127c41b85c5f1b751d5c6f208813587186
206
package com.liujun.dp; public class HtmlFilter implements Filter{ public String doFilter(String msg) { String result = msg.replace("<", "[").replace(">", "]"); return result; } }
20.6
64
0.606796
76a18bec2fa6ba08dea8ecde52f9c89a60b175a7
1,252
package utils; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; public class FileUtils { public static String readFromFileToString(String fileName) { File file = new File(fileName); StringBuilder stringBuilder = new StringBuil...
24.54902
82
0.686102
648d0e2a988f5c1ad555a28fa1f42d8e5d33b311
968
package com.javaedge.concurrency.example.lock; import java.util.concurrent.locks.StampedLock; /** * @author JavaEdge * @date 2021/4/23 */ class Point { private int x, y; final StampedLock stampedLock = new StampedLock(); /** * 计算到原点的距离 */ public int distanceFromOrigin() { // 1.乐...
22.511628
58
0.520661
13b847a80539b68a07d3a96c233fbcc1e53066c2
947
package br.com.citframework.log; import br.com.centralit.citcorpore.util.Enumerados.ParametroSistema; import br.com.centralit.citcorpore.util.ParametroUtil; public class LogFactory { public static String CIT_LOG = "CIT_LOG"; public static String LOG4J_LOG = "LOG4J_LOG"; public static String DB_LOG = "DB_...
25.594595
106
0.595565
f0b63ee1264b1c8cdf685166cafb4318781ffd54
1,827
package com.wildtigerrr.StoryOfCamelot.bin.enums.templates; import com.wildtigerrr.StoryOfCamelot.bin.enums.NameTranslation; import com.wildtigerrr.StoryOfCamelot.database.jpa.schema.FileLink; import com.wildtigerrr.StoryOfCamelot.database.jpa.schema.Location; import java.util.HashMap; public enum LocationTemplate {...
26.478261
111
0.639847
e6f88b674d8b75c603458590df878107b8a1b058
2,117
/* * Druid - a distributed column store. * Copyright 2012 - 2015 Metamarkets Group 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-...
28.608108
120
0.757676
00e7b1a77636b88f88cd1d8779b9a4a3e27a124a
4,743
/* * Copyright (c) 2022 Airbyte, Inc., all rights reserved. */ package io.airbyte.config.helpers; import com.google.api.gax.paging.Page; import com.google.cloud.storage.Blob; import com.google.cloud.storage.Blob.BlobSourceOption; import com.google.cloud.storage.Storage; import com.google.common.annotations.VisibleF...
36.206107
144
0.720008
8a9a672aa4c8882981173c0c6ccfc5cb25ffd62e
793
package edata.web.controller; import edata.service.InformationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping(ContactController.BASE_URL) public class Co...
22.657143
69
0.750315
d75e0cdfa69f752640d1cf71f9a326c948350dfd
2,563
package com.creditease.dbus.commons.log.processor.rule.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.creditease.dbus.commons.log.processor.parse.ParseResult; import com.creditease.dbus.commons.log.processor.parse.ParseRuleGrammar; impo...
35.597222
113
0.58174
472c6541280130b8f5cdce84c0d6b3338793c9d0
1,342
package com.ruoyi.employee.service; import java.util.List; import com.ruoyi.employee.domain.EmployeeEducationRecord; /** * 员工教育记录Service接口 * * @author vivi07 * @date 2020-04-04 */ public interface IEmployeeEducationRecordService { /** * 查询员工教育记录 * * @param id 员工教育记录ID * @return 员工教育记录 ...
21.645161
124
0.665425
4f6797e3e1a6a64dd02ab022df7c074faa93a584
1,906
package ch.zhaw.init.orwell_a.ui.fragments; import android.app.Activity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.LinearLayoutMana...
37.372549
90
0.742392
8755fa66b76994a127aeb86662696dd58524e3f0
1,260
package com.ingot.cloud.pms.mapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ingot.cloud.pms.api.model.domain.Oauth2RegisteredClient; import com.ingot.cloud.pms.api.model.domain.SysRoleOauthClient; import com.ingot.framework.stor...
29.302326
103
0.615079
c9085506a33bb2a94728925e787972b91286f591
489
/** * */ package net.jhashimoto.library; import java.time.LocalDate; import java.time.temporal.ChronoUnit; import lombok.Builder; import lombok.Value; /** * @author Junichi * */ @Value @Builder public class Lent { public static final long LENT_LIMIT_DAYS = 14; private final LocalDate startDate; public lon...
16.3
70
0.736196
c36f5dd20cf4dc75a400259db1ae51b1ec5a7d9d
14,763
/* * Jicofo, the Jitsi Conference Focus. * * Copyright @ 2015 Atlassian Pty 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 * ...
28.390385
80
0.640994
93640388b9b1190509c52e282d7d55b27415e350
1,546
package com.aprj.entities; import javax.persistence.*; /** * Created by southdom on 2017/4/19. */ @Entity @Table(name = "email_receivers") public class EmailReceivers { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private Integer emailId; private Integer personId;...
21.774648
66
0.570505
6a99254e87115464b6b8d0d12724c70a143c73c9
11,122
package com.example.appointmentapplication.SDMPackage; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import android.Manifest; import android.content.DialogInterface; import android.content.Intent...
39.024561
163
0.603578
63cb3544499c8a30e7a13e06ce1126c897ff3002
2,297
package com.raizlabs.universaladapter.sample.multiple; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.raizlabs.universaladapter.ListBasedAdapter; import com.raizlabs.universaladapter.ViewHolder; import com.raizlabs.universaladapter....
29.448718
91
0.668698
12c66b8944c12bcf3c966c280f6e3d2c4e1b6491
3,794
package com.webank.wecube.platform.auth.server.dto; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(JsonInclude.Include.NON_NULL) public class SimpleLocalUserDto implements Serializable { /** * */ pri...
21.314607
71
0.631523
91ff90d5036a3d4895920690efbc759b03acf4d0
953
package org.launchcode.mybrary.models; import javax.persistence.*; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @MappedSuperclass public abstract class Order { @Id @GeneratedValue(strategy = GenerationType.AUTO) protected int id; @NotNull @Size(min = 1, ...
19.854167
82
0.633788
510f34370615c0cb8d0116cd2d7655c6c1f02f61
692
package gestionprojet.controleur.outils; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.MouseEvent; public abstract class Outil implements MouseListener, MouseMotionListener{ public void associer(){ } public void liberer(){ } public void...
17.74359
75
0.706647
0b77b381e761909ea96e7a54c7c51c47f239a1aa
934
package be.seriousbusiness.brusselnieuws.rss.webservice.model.comparator; import java.util.Comparator; import be.seriousbusiness.brusselnieuws.rss.webservice.model.response.FeedMetaResponse; /** * Compares {@link FeedMetaResponse}s by category and translated name. * @author Serious Business * @author Stefan Borgh...
32.206897
106
0.801927
293b3fbad68c7c6e71eddd614a73bc51f5fdc6c3
2,762
/* * Copyright 2014 XPFriend Community. * * 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 ...
25.109091
95
0.671615
c9b101938ebefe09f17efbf542132157c28b43af
4,017
package com.zxg.datastructure.graph; import java.util.*; public class DirectedGraph<T> implements GraphInterface<T> { private Map<T, VertexInterface<T>> vertices; public DirectedGraph() { vertices = new LinkedHashMap<>(); } @Override public void addVertex(T vertexLabel) { ...
29.977612
95
0.564849
5dd096343f8cd173edc098495604d34b75e3c91e
16,842
/* * Copyright 2018, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
44.912
100
0.660017
21af71a4b5786b67680ea621f838ae559e6fe76e
170
package entity.footballBettingDatabase; public enum Months { January, February, March, April, May, June, July, August, September, October, November, December }
21.25
56
0.741176
f770ffb7aa9556098d062da3c742d412d4e8358e
1,162
package hr.tvz.pilipovic.studapp.quartz; import hr.tvz.pilipovic.studapp.entities.StudentDTO; import hr.tvz.pilipovic.studapp.services.StudentService; import org.quartz.JobExecutionException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.quartz.QuartzJobBean; im...
30.578947
159
0.708262
718dcdcd6e6194baea84e9c84c63b0fbb78db6e7
529
package com.github.JHXSMatthew.Commands; import com.github.JHXSMatthew.Core; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.plugin.Command; public class MaintainCommand extends Command{ public MaintainCommand(){ super("maintain"); ...
18.892857
80
0.731569
6efec81006e83752e5568babbbc33db9ae1ea43f
3,138
/* * Copyright © 2020 Richard de Jong * * 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 applic...
16.870968
78
0.528043
bf5f3c7b91e090da557092e070b2395884d61167
1,553
package com.meta1203.overload; import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.POST; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.s...
39.820513
158
0.773342
7ffaec42a3bf0ba362834e2a140b7ee5c77869ca
3,432
package cn.com.spdb.uds.core.rpc.handler.protocol; import java.io.File; import cn.com.spdb.uds.background.http.HttpResultCode; import cn.com.spdb.uds.background.socket.EtlConsoleHanlder; import cn.com.spdb.uds.background.socket.InterfaceConsoleCommand; import cn.com.spdb.uds.core.rpc.event.RpcAttrKey; import ...
42.9
100
0.744172
aab796b95fd62c20ae1d6ccc4a5cfadaff7ea082
2,494
package com.demo.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; i...
36.676471
130
0.761427
5e6f41b33bb5705fffecbf1a1da29ae6d91e5164
16,984
package cn.tradewin.angular.persist.model; import java.util.ArrayList; import java.util.List; public class DepartmentExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table department * * @mbggenerated Fri Mar 13 08:57:03 JST 2015 */ ...
29.692308
102
0.575071
d364889067b94dc74323db7b8e10d4e2865fc2ca
1,750
import java.util.Arrays; /** * Description: * <p> * 回溯算法: * K 个子集遍历全部数字, 选择是否将当前遍历到的数字撞进自己这个子集中. * <p> * Created By xxm */ public class Solution2 { public boolean canPartitionKSubsets(int[] nums, int k) { // 判断不合法 if (k > nums.length) return false; // nums 中元素和无法整除 k int sum...
26.119403
103
0.473714
c118578a94ae0b2f4f805a64f7d8b8a1b06c8f25
6,151
/* * $Id: SpanArea.java,v 1.3.2.3 2003/02/25 14:07:05 jeremias Exp $ * ============================================================================ * The Apache Software License, Version 1.1 * ============================================================================ * * Copyright (C) 1999-2...
37.736196
79
0.635994
6f4861fac7bda223ea65bd71d43f0816280f2f21
614
package com.github.rakickayakaterina.courseplanner.launcher; public class PathsToFiles { public static final String GENERATOR_FILE = "P:/SenlaProject/task4/2_3/id.txt"; public static final String STUDENTS_FILE = "P:/SenlaProject/task4/2_3/students.txt"; public static final String COURSES_FILE = "P:/SenlaProjec...
55.818182
89
0.783388
fa9c0feb06dd434556cda2e01e2a7a3e361a14e5
2,084
package com.jdriven.stateless.security; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.social.connect.Connection; import org.springframework.social.connect.ConnectionSignUp; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Tra...
34.733333
108
0.673704