blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
003446ff3ebb6c5ed510234ac76059e9d1c462b6 | Java | TheIceCreamBear/TheDarknessBeyond | /src/com/joseph/thedarknessbeyond/gui/windows/StorageWindow.java | UTF-8 | 2,795 | 2.640625 | 3 | [] | no_license | package com.joseph.thedarknessbeyond.gui.windows;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.awt.image.ImageObserver;
import java.util.HashMap;
import com.joseph.thedarknessbeyond.engine.TheDark... | true |
3e8596709b779ccbc479dc225172b718229c8293 | Java | Draperx/ZJU-CS-3_1 | /程序设计方法学/解释器/mua3/src/src/mua/op/judge/If.java | UTF-8 | 1,535 | 2.578125 | 3 | [] | no_license | package src.mua.op.judge;
import src.mua.Expression;
import src.mua.dataType.Bool;
import src.mua.dataType.List;
import src.mua.dataType.None;
import src.mua.interpreter.NameSpace;
import src.mua.utils.ArgumentUtil;
import src.mua.utils.RunTimeUtil;
import java.util.ArrayList;
import java.util.Arrays;
/**
* @Method... | true |
72a90f539b7096d40d44a22fd0361d98b196f271 | Java | lakshmiguhan/8PMselenium | /src/test/java/com/TestNGScripts/WikiTestCase.java | UTF-8 | 2,075 | 2.578125 | 3 | [] | no_license | package com.TestNGScripts;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public c... | true |
bdab0d1b3982b9df8d21cbbeb1f84b0c4f342370 | Java | JuliaBorovets/ProTester | /backend/src/main/java/ua/project/protester/repository/OuterComponentRepository.java | UTF-8 | 12,581 | 1.859375 | 2 | [] | no_license | package ua.project.protester.repository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.BeanP... | true |
b26b347dd9962d1dc635df4bf6b2b84a338e0f93 | Java | jorgehiler/PracticaTeoria1 | /src/Modelo/AF.java | UTF-8 | 41,444 | 2.265625 | 2 | [] | no_license | package Modelo;
import Vista.FormularioPrincipal;
import controlador.controlador;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import static java.util.Collections.list;
impo... | true |
988976190a3eac6dff47eac7f244c9a7d84cc766 | Java | witnip/ChatUp | /ChatUp/app/src/main/java/com/witnip/chatup/Activities/PhoneNumberActivity.java | UTF-8 | 1,497 | 2.0625 | 2 | [] | no_license | package com.witnip.chatup.Activities;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.PhoneAuthProvider;
import com.witnip.chatup.R;
import com.witnip.chat... | true |
bff2abceab3c8253fb9419e747954383bf427a80 | Java | li-zhaoyang/MyLeet | /P98/Solution.java | UTF-8 | 578 | 3.25 | 3 | [] | no_license | class Solution {
public boolean isValidBST(TreeNode root) {
return helperValid(root, Long.MIN_VALUE, Long.MAX_VALUE);
}
private boolean helperValid(TreeNode root, long leftBound, long rightBound){
if(root == null) return true;
if((root.val >= rightBound) || (root.val <= leftBound) ) retu... | true |
57c171c14aa94a7a2390c97c79e3d7645f88e1ac | Java | wanlihua/Androidgit | /src/main/java/com/dtl/gemini/common/base/BaseFragment.java | UTF-8 | 13,324 | 1.734375 | 2 | [] | no_license | package com.dtl.gemini.common.base;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
impor... | true |
d2d98c09d4d082938151e93e24b394569cbad11e | Java | tingley/globalsight | /main6/envoy/src/java/com/globalsight/everest/webapp/applet/admin/graphicalworkflow/gui/planview/GLine.java | UTF-8 | 1,570 | 2.203125 | 2 | [] | no_license | /**
* Copyright 2009 Welocalize, 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 l... | true |
0ff8d1037cde7c67d78144c8fe5413ce1a84a3a0 | Java | Kirillbl9/FifthTask | /src/main/java/JDBC.java | UTF-8 | 1,170 | 2.703125 | 3 | [] | no_license | import com.sun.istack.internal.NotNull;
import java.sql.*;
public final class JDBC {
@NotNull
public static Connection con=null;
public static void main(@NotNull String[] args) throws SQLException {
try {
con=DriverManager.getConnection( "jdbc:postgresql://localhost:5432/postgres", "... | true |
2afcdf1ee9b22ccc984cbcea2d1c134a967911f0 | Java | tectronics/evergreen-base | /WebPalo/web-etl/test/src/com/tensegrity/webetlclient/modules/core/server/configuration/ETLServerConfiguratorTest.java | UTF-8 | 2,911 | 2.375 | 2 | [] | no_license | package com.tensegrity.webetlclient.modules.core.server.configuration;
import java.util.regex.Matcher;
import junit.framework.TestCase;
import com.tensegrity.webetlclient.modules.core.server.configuration.WebETLConfiguration.IETLServer;
public class ETLServerConfiguratorTest extends TestCase {
WebETLConfi... | true |
b74c845ee9b310b085bd89f2e2c0347f8b5a9475 | Java | ndw6152/javaCode | /src/randomStuff/BaseClass.java | UTF-8 | 880 | 3.375 | 3 | [] | no_license | package randomStuff;
/**
* Created by ndw6152 on 8/13/2018.
*/
class DerivedClass extends BaseClass {
@Override
public void doSomething() {
System.out.println("SOMETHING");
}
}
class DerivedOver extends BaseClass {
public void doSomething() {
System.out.println("Something bett... | true |
7689e5a59c9ca89a80673e4ef2afbe2f1ad90a62 | Java | TahmidU/RoomDesignerAPIV1 | /src/main/java/com/aarrd/room_designer/user/security/vertification/registration/OnRegistrationComplete.java | UTF-8 | 519 | 2 | 2 | [] | no_license | package com.aarrd.room_designer.user.security.vertification.registration;
import com.aarrd.room_designer.user.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;
@EqualsAndHashCode(callSuper = false)
public class OnRegistrationComplete extends ApplicationEve... | true |
e06c8b999cf11c99c024cc5d47935b70c5bc5c82 | Java | StuartApp/kafka-connect-field-and-time-partitioner | /src/main/java/com/canelmas/kafka/connect/FieldAndTimeBasedPartitioner.java | UTF-8 | 5,516 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 Can Elmas <canelm@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
46ea245baf0d42c458943b3e219917e693707962 | Java | YokoBurke/BakingApplication | /app/src/main/java/com/example/android/bakingapplication/utilities/RecipeAdapter.java | UTF-8 | 3,019 | 2.578125 | 3 | [] | no_license | package com.example.android.bakingapplication.utilities;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | true |
f31138cd215610e6d7c5e438f0d165b40e8bca9f | Java | CruseoGithub/pacman | /core/src/uas/lntv/pacmangame/Screens/GameScreen.java | UTF-8 | 10,180 | 2.71875 | 3 | [] | no_license | package uas.lntv.pacmangame.Screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import uas.lntv.pacmangame.Managers.Assets;
import uas.lntv.pacmangame.Maps.GameMap;
import uas.lntv.pacmangame.Maps.Tile;
import uas.lntv.pacmangame.PacManGame;
import uas.lntv.pacmangame.Scenes.ControllerButtons;
import... | true |
899ab4d4bf76dea919d77d1fdd03a068d942114a | Java | iTitus/advent-of-code | /src/main/java/io/github/ititus/aoc/aoc21/day07/Day07.java | UTF-8 | 2,896 | 3.203125 | 3 | [
"MIT"
] | permissive | package io.github.ititus.aoc.aoc21.day07;
import io.github.ititus.aoc.common.Aoc;
import io.github.ititus.aoc.common.AocInput;
import io.github.ititus.aoc.common.AocSolution;
import io.github.ititus.aoc.common.AocStringInput;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntList;
im... | true |
abf988849923e01f2d7a42161cdc96cd0aa3e6aa | Java | ClaRadu/java-jogl-primitive-s--wall | /joglcubes/objs/Text.java | UTF-8 | 1,886 | 2.78125 | 3 | [
"MIT"
] | permissive | // thanks to NeHe: http://nehe.gamedev.net/
package joglcubes.objs;
import com.jogamp.opengl.GLAutoDrawable;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import com.jogamp.opengl.util.awt.TextRenderer;
import java.text.DecimalFormat;
public class Text {
GLAutoDrawable drw;
private TextRenderer textRen... | true |
108ae81fd78c047443860ede1d3bc64c2dc29a64 | Java | ax003d/YiBo | /YiBo/src/com/shejiaomao/weibo/service/listener/EditMicroBlogEmotionClickListener.java | UTF-8 | 1,606 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.shejiaomao.weibo.service.listener;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.inputmethod.InputMethodManager;
import com.shejiaomao.weibo.service.adapter.EmotionsGridAdapter;
import com.sheji... | true |
29cc4a409cc58f30b0163cb1066984b308d5b1b5 | Java | Alleinx/CUMCM | /CUMCM2018_B/case2_error/Controller.java | UTF-8 | 760 | 2.65625 | 3 | [] | no_license |
public class Controller {
public int getSystemRunningTime() {
return systemRunningTime;
}
public void addSystemRunningTime(int time) {
systemRunningTime += time;
}
/* operationTime means the minimum cost value */
public boolean couldRun(int operationTime) {
return (TIMELIMIT - systemRunningTime) >= op... | true |
b076007f6ff828812f94bbb962d9dd27f851c149 | Java | SourceFramework/J2EE_B2C | /J2EE_B2C/J2EE_B2C_project/taotao-rest/src/main/java/com/taotao/rest/service/ItemCatService.java | UTF-8 | 329 | 1.757813 | 2 | [] | no_license | package com.taotao.rest.service;
import com.taotao.rest.pojo.CategoryResult;
/**
* 商品分类模块业务层
* @author mbc1996
*
*/
public interface ItemCatService {
/**
* 返回商品的所有分类信息,实现前台商品分类显示功能
* @return 自定义pojo
*/
public CategoryResult getItemCatList();
}
| true |
d0dd90b46d13eb175ec0cc3aeef9c354580f6264 | Java | nopenigita/huajuan-mybatis | /activiti01/src/test/java/com/itheima/test/ActivitiTest.java | UTF-8 | 770 | 2.328125 | 2 | [] | no_license | package com.itheima.test;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;
/**
* @author : Hiccup
* create at : 2020/9/16 8:52 下午
* description :
* remark : 测试Activiti所需要的25张表的生成
**/
public class ActivitiTest {
@Test
public void test... | true |
3c2c3b974071b5920860f415eeab723dfaaac4b4 | Java | pskorupinski/JavaStreamMineOperatorPlacer | /source/org/microcloud/manager/core/placer/placement/Full/steps/PlacementStepOne.java | UTF-8 | 6,869 | 2.078125 | 2 | [] | no_license | package org.microcloud.manager.core.placer.placement.Full.steps;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.microcloud.manager.core.model.clientquery.ClientQuery;
import org.microcloud.manager.core.model.datacenter.Host;
import org.microcloud.manager.core.model.datasourcedef.D... | true |
4b4de15937dc5be5f9c4c903eeeec2bc2dc3ea73 | Java | canvaser/App | /app/src/main/java/com/summer/app/ui/info/workdetail/fragment/WorkDetailsFrag.java | UTF-8 | 1,611 | 1.796875 | 2 | [] | no_license | package com.summer.app.ui.info.workdetail.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.summer.app.R;
import com.summer.app.ui.info.workdetail.ope.WorkDetailsDAOpe;
import com.summer.lib.constant.ValueConstant;
import com.summer.lib.base.ui.fragme... | true |
2d51914d81d9c192a8fa6e39be0057f4d2b11ab2 | Java | 1136200149/Geek | /src/main/java/com/geek/utils/ErrorMessageModel.java | UTF-8 | 448 | 2.421875 | 2 | [] | no_license | package com.geek.utils;
public class ErrorMessageModel {
private String field;
private String msg;
public ErrorMessageModel() {
}
public ErrorMessageModel(String field, String msg) {
this.field = field;
this.msg = msg;
}
public String getField() {
return field;
}
public void setField(String field) {
... | true |
6ed1c6ca83134f92c0a6938855ed3ba4ede80210 | Java | sherkergavin/test20171206 | /inas-all-webapp/src/main/java/com/inas/web/smcontroller/MessageTemplateController.java | UTF-8 | 2,619 | 2.046875 | 2 | [] | no_license | package com.inas.web.smcontroller;
import com.inas.model.Tree;
import com.inas.model.system.MessageTemplate;
import com.inas.service.system.MessageTemplateService;
import com.inas.util.JSONUtil;
import com.inas.util.TreeUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotat... | true |
5a359ac460742cb21420cda34b7d3c3c37096675 | Java | kwu78/Ontobuilder-Research-Environment | /src/main/java/ac/technion/schemamatching/experiments/pairwise/SSEnsembleExperiment.java | UTF-8 | 12,716 | 2.140625 | 2 | [] | no_license | package ac.technion.schemamatching.experiments.pairwise;
import java.util.ArrayList;
import java.util.Properties;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import ac.technion.iem.ontobuilder.matching.match.MatchInformation;
import ac.technion.schemamatching.experiments.OBExperimentRun... | true |
7d5d91d37980abf47052c7cef1bc2e2c2e1c6bce | Java | myxland/wms-cloud | /wms-saas/src/main/java/com/zlsrj/wms/saas/rest/TenantCustomerLinkmanRestController.java | UTF-8 | 12,298 | 1.96875 | 2 | [] | no_license | package com.zlsrj.wms.saas.rest;
import java.util.Date;
import java.util.stream.Collectors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Path... | true |
d490ad14d873c16e04ecf650e7f3b969564a5197 | Java | filipenyakaterina/TestAutomation.JavaTasks | /src/test/java/classes/container/PhoneList.java | UTF-8 | 1,204 | 3.109375 | 3 | [] | no_license | package classes.container;
import classes.entity.Address;
import classes.entity.Phone;
import java.util.ArrayList;
public class PhoneList extends Container<Phone> {
public PhoneList() {
super();
Add(new Phone(0, "Ivan","Ivanovich","Ivanov",new Address("Gikalo",1,2),13,145,12,13));
Add(new ... | true |
98ef40506cec50ccd376c6ef901730dbf73bed10 | Java | crnk-project/crnk-framework | /crnk-core/src/main/java/io/crnk/core/engine/error/ErrorResponseBuilder.java | UTF-8 | 756 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package io.crnk.core.engine.error;
import io.crnk.core.engine.document.ErrorData;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class ErrorResponseBuilder {
private Collection<ErrorData> data;
private int status;
public ErrorResponseBuilder setErrorData(Collection<ErrorDa... | true |
f68979a5935f30240787785b206e4ba23fb63732 | Java | tsotnep/secondTask | /src/Main.java | UTF-8 | 4,782 | 2.515625 | 3 | [] | no_license | import asm.AsmAnalyzer;
import asm.AsmLoader;
import asm.AsmReader;
import asm.InstrReader;
import org.antlr.v4.gui.Trees;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ParseTree;
import java.... | true |
147646141ccd760d64fa7888d81658efec586cc1 | Java | zihanbobo/alphadog | /profile-service-provider/src/main/java/com/moseeker/profile/config/AppConfig.java | UTF-8 | 4,397 | 1.945313 | 2 | [] | no_license | package com.moseeker.profile.config;
import com.moseeker.profile.service.impl.talentpoolmvhouse.constant.ProfileMoveConstant;
import com.rabbitmq.client.ConnectionFactory;
import org.springframework.amqp.core.*;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.core.AmqpAdmin;
impor... | true |
b82f73ed11c2de0d181aeb4d88787c20c2a8957a | Java | GregBrannon/EventBusCalculator | /EBCalculatorController.java | UTF-8 | 4,100 | 3.203125 | 3 | [] | no_license | package com.gdbrannon.study.eventbus.calculator;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
//*************************************************************
// Name : EBCalculatorController.java
// A... | true |
7c858d66f56b970fd74997bb26f7edc13145e028 | Java | WebPudge/design_patterns | /src/five/StatSingleton.java | UTF-8 | 370 | 2.71875 | 3 | [] | no_license | package five;
public class StatSingleton {
private static StatSingleton uniqueInstance = new StatSingleton();
private StatSingleton () {}
public static StatSingleton getInstance(){
return uniqueInstance;
}
// other useful methods here
public String getDescription() {
return "... | true |
23229e30650c0e3c2ae5c08bafbd9ae84ef227c5 | Java | bitwaves/first-wave | /ch.bitwave.parser.delphi/src/main/java/ch/bitwave/lang/delphi/mapping/DelphiASTPrinter.java | UTF-8 | 1,861 | 2.921875 | 3 | [] | no_license | package ch.bitwave.lang.delphi.mapping;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Stack;
import ch.bitwave.lang.delphi.ast.DelphiSyntaxAdapter;
import ch.bitwave.lang.delphi.ast.Node;
public class DelphiASTP... | true |
393fb1d0d0b74ca8e08ecfc1d50dd19227d2fbcb | Java | AlphaMediaConsultant/rutilahu | /app/src/main/java/com/alphamedia/rutilahu/DataPenerimaRealmIO.java | UTF-8 | 13,255 | 1.695313 | 2 | [
"MIT"
] | permissive | package com.alphamedia.rutilahu;
import android.app.AlertDialog;
import android.app.LoaderManager;
import android.content.AsyncTaskLoader;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Loader;
import android.graphics.drawable.Drawable;
imp... | true |
5ffe2b3049902774bc72112b4f09685f2486a3ca | Java | MorvanL/RasendeRoboter_PC2R | /PC2R_Projet_Nea_Lassauzay/serveur/src/app/Main.java | UTF-8 | 653 | 2.96875 | 3 | [] | no_license | package app;
import java.io.IOException;
import java.net.UnknownHostException;
import server.ThreadPooledServer;
import util.Logger;
public class Main {
public static void main(String[] args) throws IOException {
// Address must be specify
if (args.length == 1) {
try {
// Create and launch server
Thr... | true |
c8c91c0ba6b1257018284502b92a9309488c3056 | Java | 121-cloud/srv-auth | /src/main/java/otocloud/auth/verticle/UserComponent.java | UTF-8 | 2,464 | 2.03125 | 2 | [] | no_license | package otocloud.auth.verticle;
import com.google.inject.Inject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import otocloud.auth.handler.*;
import otocloud.auth.handler.messagechecker.UserCreationChecker;
import otocloud.framework.core.OtoCloudComponentImpl;
import otoclou... | true |
685b3517bd20223cea397be74f5b990dabd9ddeb | Java | DefiantBurger/SkyblockItems | /Dependencies/work/decompile-00fabbe5/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructureRuleTestType.java | UTF-8 | 1,345 | 1.8125 | 2 | [] | no_license | package net.minecraft.world.level.levelgen.structure.templatesystem;
import com.mojang.serialization.Codec;
import net.minecraft.core.IRegistry;
public interface DefinedStructureRuleTestType<P extends DefinedStructureRuleTest> {
DefinedStructureRuleTestType<DefinedStructureTestTrue> ALWAYS_TRUE_TEST = a("always_... | true |
baeff60d35e4c63e45b3a960655457dd211af621 | Java | cobaltblueocean/OG-Platform | /sesame/sesame-function/src/main/java/com/opengamma/sesame/component/RetrievalPeriod.java | UTF-8 | 8,050 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.sesame.component;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import org.joda.beans.Bean;
import org.joda.beans.BeanB... | true |
c9cf8b3b544fc521ae33ded4d60f588f82260652 | Java | SrinathKushnoore/AssignmentWork | /src/test/java/TestOrganization/ForeclosuresTest/Test1.java | UTF-8 | 2,156 | 2.390625 | 2 | [] | no_license | package TestOrganization.ForeclosuresTest;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.sele... | true |
753260d0af4513241288fd4777bb8f6e8e980645 | Java | Poorvankbhatia/Leetcode | /src/string/hard/ClosestPalindrome.java | UTF-8 | 2,557 | 3.96875 | 4 | [] | no_license | /*
Given an integer n, find the closest integer (not including itself), which is a palindrome.
The 'closest' is defined as absolute difference minimized between two integers.
Example 1:
Input: "123"
Output: "121"
Note:
The input n is a positive integer represented by string, whose length will not exceed 18.
If there... | true |
daa2f17fd33d098e09528c39bdf06e0938e9ab79 | Java | PatrikBrosell/EDAF10 | /ComputerProject/src/operations/Halt.java | UTF-8 | 267 | 2.328125 | 2 | [] | no_license | package operations;
import computer.Memory;
import computer.ProgramCounter;
public class Halt extends Operation {
public Halt() {
}
protected void run(Memory memory, ProgramCounter pc) {
pc.setIndex(-1);
}
public String toString() {
return "HLT";
}
}
| true |
984e910309a30f0356fda05947284762f56049ae | Java | Biocodings/kourami | /src/Node.java | UTF-8 | 2,623 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | /*
Part of Kourami HLA typer/assembler
(c) 2017 by Heewook Lee, Carl Kingsford, and Carnegie Mellon University.
See LICENSE for licensing.
*/
//import java.util.HashSet;
public class Node{
public Node(char b, int ci){
this.base = Character.toUpperCase(b);
this.colIndex = ci;
this.iBase = this.base2Ind... | true |
25cbb8dcd7dd5616c5a4cd56be30656607838a75 | Java | MaxCE24/SuiviProduction | /src/net/atos/suivi_production/forms/CreationDemandeDAchatForm.java | ISO-8859-1 | 14,310 | 2.125 | 2 | [] | no_license | package net.atos.suivi_production.forms;
import java.io.IOException;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import j... | true |
0338392f1adeaada0ceba158e08f9332d3e36166 | Java | Mr1Ng/2018-07-09-10-17-19-1531131439 | /src/main/java/practice04/Student.java | GB18030 | 545 | 3.609375 | 4 | [] | no_license | package practice04;
import practice04.Person;
public class Student extends Person{
private int klass;
public Student(String name,int age,int klass) {
super(name,age);
this.klass = klass;
}
public int getKlass() {
return klass;
}
public void setKlass(int klass) {
this.klass = klass;
}
@Override
//Ը... | true |
49b0d2ddd81a4a814c2c7f0f8902893dae295e9a | Java | hanghaifeng1994/java | /java的老年大学项目/testing/trunk/testing-service/src/main/java/com/learnyeai/testing/web/TestingTestController.java | UTF-8 | 1,338 | 1.976563 | 2 | [] | no_license | package com.learnyeai.testing.web;
import com.learnyeai.learnai.context.CtxHeadUtil;
import com.learnyeai.learnai.support.BaseController;
import com.learnyeai.learnai.support.BaseService;
import com.learnyeai.learnai.support.IBusinessContext;
import com.learnyeai.testing.model.TestingTest;
import com.learnyeai.testin... | true |
52c7212628d7c1dc64d3e58575eb084bbba353b1 | Java | outkst/CS1530_Laboon_Chess | /src/main/java/chess/view/VideoPanel.java | UTF-8 | 1,724 | 2.546875 | 3 | [] | no_license | package chess;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*; // awt.* does not import Action or Event Listeners
import java.io.*;
import javax.imageio.*;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javaf... | true |
b7d11b5051c1ed2c1e9f240f9b25f200217ac255 | Java | Octogonapus/chart-fx | /chartfx-dataset/src/main/java/de/gsi/dataset/event/EventRateLimiter.java | UTF-8 | 5,983 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | package de.gsi.dataset.event;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import de.gsi.dataset.utils.DoubleCircularBuffer;
/**
* EventRateLimiter that acts as an {@link EventListener} and forwards the receiv... | true |
aa9473c647152c8fe0d5344dc33760ca6d353534 | Java | tigresdevelopers/proyecto_empresarial | /Domain/src/main/java/com/network/social/domain/entities/GrupoUsuarioId.java | UTF-8 | 1,839 | 2.4375 | 2 | [] | no_license | package com.network.social.domain.entities;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author :Alexander Chavez Simbron
* @date :19/10/2015
* @time :17:25 P.M
*/
@Embeddable
public class GrupoUsuarioId extends BaseBean {
private static final long serialVersion... | true |
2827a222ea2fea124fe120720c64fb1fb37dfcb5 | Java | praghantas/Feb2020Selenium | /src/main/java/SeleniumSessions/RIghtClickUsingByLocator.java | UTF-8 | 1,248 | 2.515625 | 3 | [] | no_license | package SeleniumSessions;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class RIghtClickUsingByLocator {
public static void ... | true |
9dfeab962f87f34ded57e3afb2896d52de46a7bc | Java | junhuac/Firejack-Platform | /platform/src/main/java/net/firejack/platform/service/registry/endpoint/RegistryEndpoint.java | UTF-8 | 59,450 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 ... | true |
27a41ad1393485b0cb0aebf4a6e8931502bab743 | Java | Svetus927/javahomework | /rest-sample/src/test/java/tests/TestBase.java | UTF-8 | 1,918 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package tests;
import application.ApplicationManager;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
/**
* Created on 11/1... | true |
6f4752d674a1f1a94d5e8ad8989749acab345c41 | Java | UncileMovieBrick/saas-boot | /src/main/java/com/gs/service/impl/MenuServiceImpl.java | UTF-8 | 443 | 1.53125 | 2 | [] | no_license | package com.gs.service.impl;
import com.gs.entity.Menu;
import com.gs.mapper.MenuMapper;
import com.gs.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 菜单表 服务实现类
* </p>
*
* @author gongsong
* @since 2020-11-10
*... | true |
7d4ef6a2d33cc097bb51260f73878a67ee9cd058 | Java | jimolonely/MyCost | /android-app/app/src/main/java/com/jimo/mycost/func/life/LifeItemSearchResult.java | UTF-8 | 1,734 | 2.46875 | 2 | [] | no_license | package com.jimo.mycost.func.life;
public class LifeItemSearchResult {
private String imgUrl;
private String title;
private String type;//对应主题的类型,比如电影有科幻,爱情等,书籍有文学,科学等
private String creators;//书的作者或电影导演
private String pubdate;//上映时间
private String rating;//豆瓣评分 7.5/10
private String remark... | true |
6a42dd1f885ed7775447108d7c4b7dc80136800a | Java | laurentkeil/lil-g3r | /src/com/mdl/parserSS/PickupType.java | UTF-8 | 14,021 | 1.5 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2014.01.14 at 0... | true |
9c1a570f7a0f1ed097d0134ed5513193fc7662cd | Java | thanhhungchu95/EncryptApp | /gos/app/encrypt/EncryptApp.java | UTF-8 | 3,298 | 2.90625 | 3 | [] | no_license | package gos.app.encrypt;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.DefaultComboBoxModel;
import java.awt.FlowLayout;
import java.awt.event.ItemListener;
import java.awt.event.ItemEvent;
import java.a... | true |
8a32bcfbaf7ae722a46374cf5944233b0c1fd848 | Java | Joncarre/Java-language | /Tecnología de la Programación/Juegos usando MVC/2. Versión con interfaz gráfica/main/java/es/ucm/fdi/tp/view/MessageViewer.java | UTF-8 | 888 | 2.546875 | 3 | [] | no_license | package main.java.es.ucm.fdi.tp.view;
import main.java.es.ucm.fdi.tp.base.model.GameAction;
import main.java.es.ucm.fdi.tp.base.model.GameState;
public abstract class MessageViewer<S extends GameState<S, A>, A extends GameAction<S, A>> extends GUIView<S, A> {
private static final long serialVersionUID = 1L;
/**
... | true |
dc4fa25016b92e4ddb1e914f0688317e872142c8 | Java | haodongLing/MyTalk | /common/src/main/java/com/hoadong/common/ui/recycler/RecyclerAdapter.java | UTF-8 | 7,613 | 2.484375 | 2 | [] | no_license | package com.hoadong.common.ui.recycler;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.util.AsyncListUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... | true |
f3c99517a3e91fe1a6e3d4098040d13bd2150e6e | Java | dhanusathya/springhibernate | /Student/src/main/java/com/sample/dao/StudentDAOImpl.java | UTF-8 | 1,983 | 2.671875 | 3 | [] | no_license | package com.sample.dao;
import java.util.List;
import com.sample.model.Employee;
import com.sample.model.Student;
public class StudentDAOImpl extends BaseDaoImpl implements StudentDAO {
public String addNewEmployee(Employee employee) {
String returnVal="failed";
if(null == employee.getEmp_name() || empl... | true |
5b99b0f13341747561ea9bbe4c557622678e30a6 | Java | codehaus-plexus/plexus-classworlds | /src/test/java/org/codehaus/plexus/classworlds/TestUtil.java | UTF-8 | 1,528 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package org.codehaus.plexus.classworlds;
/*
* Copyright 2001-2006 Codehaus 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-... | true |
81f29f9d0327835672d391ee64115129346ad453 | Java | pschmucker/Flexmanager | /src/test/java/flexcom/casehistory/ticket/dao/test/NoteDAOImplTest.java | UTF-8 | 5,613 | 2.578125 | 3 | [] | no_license | package flexcom.casehistory.ticket.dao.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.sp... | true |
fe4da07379c6bce8361c04100b9d31da17516eaf | Java | pro-nsk/testRepo | /src/test/java/SendMailTest.java | UTF-8 | 1,006 | 2.078125 | 2 | [] | no_license | import org.junit.Test;
public class SendMailTest {
@Test
public void sendMail() throws InterruptedException {
YandexMailPage yandexMailPage = new YandexMailPage();
YandexLoginPage yandexLoginPage = yandexMailPage.login();
yandexMailPage = yandexLoginPage.login("alexanderk@adjuggler.ru... | true |
dd623ce71d9fc0178c2cb7c145364e240e37d5ec | Java | prateekmathur1991/CodeBackup | /src/com/koldbyte/codebackup/plugins/codechef/CodechefPluginImpl.java | UTF-8 | 2,761 | 2.359375 | 2 | [] | no_license | package com.koldbyte.codebackup.plugins.codechef;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.koldbyte.codebackup.core.entities.Languages... | true |
5e6b0352b5016574bd45d980f73eb8bdb694b38e | Java | seymourzhang/Layer | /.svn/pristine/fd/fdbe739f6447018c2b91d474165da4481485157c.svn-base | UTF-8 | 2,423 | 1.820313 | 2 | [] | no_license | /**
*
* MTC-上海农汇信息科技有限公司
* Copyright © 2015 农汇 版权所有
*/
package com.mtc.common.util.constants;
/**
* @ClassName: Constants
* @Description:
* @Date 2015年9月10日 上午10:49:39
* @Author Yin Guo Xiang
*
*/
public class Constants {
public static final String APPLICATION_NAME = "惠购-惠购网-www.huiget.com";... | true |
31762b6fd148c08a668ff17253d0f14d922e154e | Java | CodingPlatelets/Spring | /springMvc/src/main/java/cn/edu/wut/edward/Dao/Impl/UserDaoImpl.java | UTF-8 | 335 | 1.921875 | 2 | [] | no_license | package cn.edu.wut.edward.Dao.Impl;
import cn.edu.wut.edward.Dao.UserDao;
import org.springframework.stereotype.Repository;
/**
* @author wenka
* @date 1/31/202118:23
*/
@Repository("userDao")
public class UserDaoImpl implements UserDao {
@Override
public void save() {
System.out.println("Hello wor... | true |
897163715c5ceea698898855c71aa1d35cb2f433 | Java | lixw1992/tomcat5 | /src/org/apache/catalina/authenticator/NonLoginAuthenticator.java | UTF-8 | 2,061 | 2.65625 | 3 | [] | no_license | package org.apache.catalina.authenticator;
import java.io.IOException;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.deploy.LoginConfig;
/**
* <b>Authenticator</b>和<b>Valve</b>实现类, 只检查不涉及用户身份验证的安全约束
*/
public final class NonLoginAuthenticato... | true |
ff1a50734d83cd4957876125f797320b8a65bd25 | Java | ohmylawer/jmrhz | /src/main/java/com/jmrhz/dictionary/controller/DictionaryController.java | UTF-8 | 1,831 | 1.984375 | 2 | [] | no_license | package com.jmrhz.dictionary.controller;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.Ge... | true |
ff5637952c1274678010833a0d906a5dbf66882b | Java | hutamaki/cg | /java/bfs/src/tree/BFS.java | UTF-8 | 323 | 2.75 | 3 | [] | no_license | package tree;
import java.util.Vector;
import tree.Node;
/**
* Created by pierre on 20/01/2017.
*/
public class BFS {
public <T> void sTrace(Tree<T> tree) {
int levels = tree.getMaze().size();
for (Vector<Node<T>> level : tree.getMaze()) {
for (Node<T> node : level) {
}
}
}
... | true |
4eed0b10595e98f410942de14de4f2649e459e3b | Java | ebourg/jsign | /jsign-core/src/main/java/net/jsign/PESigner.java | UTF-8 | 9,788 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2012 Emmanuel Bourg
*
* 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 ... | true |
109ac4f96c9887477867c462a0cbfe4257531c51 | Java | Vilkos/SANTEX | /src/main/java/com/santex/entity/Order.java | UTF-8 | 4,024 | 2.65625 | 3 | [] | no_license | package com.santex.entity;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import javax.persistence.Entity;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;... | true |
253feff4c3c9fc93d48e2eb38f8cfab2a361d732 | Java | Woojungmin/study | /study/src/study/chap09/instance_member_class/MainExample.java | UTF-8 | 523 | 3.03125 | 3 | [] | no_license | package study.chap09.instance_member_class;
public class MainExample {
public static void main(String[] args) {
OuterClass outer = new OuterClass();
//InnerClass: 인스턴스 멤버 클래스
OuterClass.InnerClass instanceClass = new OuterClass.InnerClass();
instanceClass = outer.new InnerClass();
}
//정적 클래스... | true |
8290881fc90994c230bd97da08bba51ba0ba3c77 | Java | DeuceSTM/DeuceSTM | /src/java/org/deuce/transaction/tl2/LockTable.java | UTF-8 | 3,371 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package org.deuce.transaction.tl2;
import java.util.concurrent.atomic.AtomicIntegerArray;
import org.deuce.transaction.TransactionException;
import org.deuce.transform.Exclude;
@Exclude
public class LockTable {
// Failure transaction
final private static TransactionException FAILURE_EXCEPTION = new Tr... | true |
a83917e22c8b27a4ec6030ac5892f32bd4989376 | Java | dbeaver/dbeaver | /plugins/org.jkiss.dbeaver.ext.exasol.ui/src/org/jkiss/dbeaver/ext/exasol/ui/editors/ExasolLockEditor.java | UTF-8 | 2,901 | 1.875 | 2 | [
"Apache-2.0",
"EPL-1.0",
"LGPL-2.0-or-later"
] | permissive | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2017 Andrew Khitrin (ahitrin@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | true |
ebd216796a0bfa5dcc32ab60f818fffb07062025 | Java | artiomstasiukevich/FridayIsComing | /src/main/java/com/alcoproj/model/UserCredentials.java | UTF-8 | 1,250 | 2.4375 | 2 | [] | no_license | package com.alcoproj.model;
import javax.persistence.*;
import org.hibernate.annotations.NaturalId;
@Entity
@Table(name = "usercredentials")
public class UserCredentials {
@Id
@Column(name = "credentials_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(name = "pa... | true |
c987fe8ecd6cd93bf625fe83f88227454045473b | Java | wgarcia1309/Liga-de-la-justicia | /LigaJusticia/src/ligajusticia/models/Personaje.java | UTF-8 | 1,791 | 3.234375 | 3 | [] | no_license |
package ligajusticia.models;
import java.util.ArrayList;
public abstract class Personaje {
private String nombre;
private ArrayList<Vehiculo> vehiculos;
private ArrayList<Encuentro> encuentros;
public Personaje(String nombre) {
this.nombre = nombre;
vehiculos=new ArrayList<Vehicul... | true |
fda75a7d226f97f3d576e55d5b96eb57870d40a6 | Java | maliamjad17/WSO2_IS_Deployment | /wso2/wso2/WEB-INF/classes/org/wso2/carbon/identity/scim/provider/resources/BulkResource.java | UTF-8 | 3,571 | 1.84375 | 2 | [] | no_license | /* */ package org.wso2.carbon.identity.scim.provider.resources;
/* */
/* */ import javax.ws.rs.HeaderParam;
/* */ import javax.ws.rs.POST;
/* */ import javax.ws.rs.Path;
/* */ import javax.ws.rs.core.Response;
/* */ import org.wso2.carbon.identity.scim.provider.impl.IdentitySCIMManager;
/* ... | true |
28cdd3df78c2696c2bd12f8b504e648ccbfd2767 | Java | jj-a/basicJava | /src/oop1122/SortTest.java | UTF-8 | 1,459 | 3.734375 | 4 | [] | no_license | package oop1122;
public class SortTest {
public static void main(String[] args) {
System.out.println("[ JJA - SortTest ]"+"\n");
// ASC 오름차순 (ascending sort) / DESC 내림차순 (descending sort)
// 정렬 유형: Insertion Sort (삽입정렬) / Selection Sort (선택정렬) / Bubble Sort (버블정렬) / Quick Sort (퀵정렬) / Shell Sort (쉘정... | true |
0c41236702b24158f3a9e9dd869632f004a3d5bf | Java | madsharm/search-target-case-study | /src/perfTest/java/edu/search/perf/SearchPerformanceTest.java | UTF-8 | 3,573 | 2.8125 | 3 | [] | no_license | package edu.search.perf;
import edu.search.app.search.Search;
import edu.search.engine.SearcherFactory;
import edu.search.vo.TimedSearchResult;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Assert;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import... | true |
9999ffe4a483b1beb0de60843e52106be1b4dcee | Java | nullbull/Study | /thinkinjava/src/main/java/IO/IOTest.java | UTF-8 | 2,086 | 3.40625 | 3 | [] | no_license | package main.java.IO;
import java.io.*;
public class IOTest {
public static void printStream() throws FileNotFoundException, IOException{
try (
FileOutputStream fileOutputStream = new FileOutputStream("tmp2.txt");
PrintStream printStream = new PrintStream(fileOutputStream);
... | true |
2972a29f37f4523574e61d75e0f11a8ac8dbb82b | Java | MatfOOP/OOP | /kolokvijumi/resenja/kol201516_Torta/src/torta/Recept.java | UTF-8 | 499 | 2.84375 | 3 | [
"MIT"
] | permissive | package torta;
public class Recept {
private Sastojak[] sastojci;
public Recept(Sastojak[] sastojci) {
this.sastojci = new Sastojak[sastojci.length];
for(int i = 0; i < sastojci.length; i++)
this.sastojci[i] = new Sastojak(sastojci[i]);
}
public Sastojak[] getSastojci() {
return sastojci;
}
@Overri... | true |
1364d4344b2a15774002cf22bcb2f7c198d5eb85 | Java | WiseHollow/LWJGL_FirstProject | /src/net/johnbrooks/fjg/drawables/effects/EffectType.java | UTF-8 | 1,097 | 2.515625 | 3 | [] | no_license | package net.johnbrooks.fjg.drawables.effects;
import net.johnbrooks.fjg.drawables.Draw;
import org.newdawn.slick.opengl.Texture;
/**
* Created by ieatl on 7/9/2017.
*/
public enum EffectType
{
EXPLOSION(
Draw.loadTexture("res/effects/explosion-large-01.png"),
Draw.loadTexture("res/effect... | true |
8f8b153ccb4cd30017e5ceccfcdc937fc5373b0c | Java | Rb518113/Zoopla_Framework | /src/main/java/com/amazon/utilitty/ExplicitWaitZoopla.java | UTF-8 | 485 | 2.015625 | 2 | [] | no_license | package com.amazon.utilitty;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.amazon.basePage.Basepage;
public class ExplicitWaitZoopla extends Basepage {
public static void explicitWait(WebElement ele... | true |
b7e76fb2e8a9970d9d920f1dad36db007b90074c | Java | venio-lusidity/soterium | /framework/src/main/java/com/lusidity/framework/security/RsaX.java | UTF-8 | 3,741 | 2.40625 | 2 | [] | no_license | /*
* Copyright 2018 lusidity 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 ... | true |
0c9847d981c35a76fa06dbb28e05a2d7318013f7 | Java | itheimazyh/MyDogHome | /mallplus-mbg/src/main/java/com/zscat/mallplus/build/BuildHomeResult.java | UTF-8 | 980 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package com.zscat.mallplus.build;
import com.zscat.mallplus.build.entity.BuildAdv;
import com.zscat.mallplus.build.entity.BuildNotice;
import com.zscat.mallplus.build.entity.BuildingCommunity;
import com.zscat.mallplus.build.entity.BuildingFloor;
import com.zscat.mallplus.oms.vo.ActivityVo;
import com.zscat.mallplus.... | true |
dd6b9503be92dbdbd92fc47eb44b83480412d37c | Java | exemplo12012/Baby-Near | /app/src/main/java/pi/iesb/br/babynear/ConectadaActivity.java | UTF-8 | 8,228 | 2 | 2 | [] | no_license | package pi.iesb.br.babynear;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothSocket;
import android.content.Context;
import... | true |
5fa1e9d47abeae4c7c376f209df91698621356c0 | Java | sogno12/pro_accountBook_back | /src/main/java/com/book/account/user/repository/impl/UserRepositoryImpl.java | UTF-8 | 2,966 | 2.078125 | 2 | [] | no_license | package com.book.account.user.repository.impl;
import static com.book.account.user.model.QUser.user;
import static com.book.account.auth.model.QUserAuth.userAuth;
import java.util.List;
import javax.persistence.EntityManager;
import com.book.account.user.model.consts.UserConst.Status;
import com.book.account.user.m... | true |
448aeb1d971de19d82034309c8a4702577d38f55 | Java | Ritam804/SplitTheBill | /app/src/main/java/setergeter/Booking_SetterGetter.java | UTF-8 | 3,716 | 2.25 | 2 | [] | no_license | package setergeter;
/**
* Created by ritam on 29/04/17.
*/
public class Booking_SetterGetter {
String EventId,EventName,VenueName,VenueAddress,ReferenceId,TableName,EventMonth,EventDate,EventTime,TableId,HostId;
String HostName,TotalNoOfSeat,NumberOfAvailableSeat,MaximumMount,GroupId;
public Booking_... | true |
e0b8279084e6059bb7c46150ed056ead486758c8 | Java | aniket7487/code | /BasicPrograms/src/com/basic/array/SecondLargest.java | UTF-8 | 559 | 3.53125 | 4 | [] | no_license | package com.basic.array;
import java.util.Scanner;
public class SecondLargest {
public static void main(String[] args) {
int secMax=0,max=0;
Scanner sc=new Scanner(System.in);
int noElement= sc.nextInt();
int arr[]=new int[noElement];
for(int i=0;i<noElement;i++) {
arr[i]=sc.nextInt();
}... | true |
ab8aaec0fb57701dc486470f596f7cacb93c1d13 | Java | dpacker123/inhetience | /src/comp/comp152/Main.java | UTF-8 | 689 | 2.8125 | 3 | [] | no_license | package comp.comp152;
import java.util.ArrayList;
import java.util.Random;
public class Main {
public static void main(String[] args) {
var inNetworkDoctors = new ArrayList<doctor>();
inNetworkDoctors.add(new doctor("Pricey University", 400));
inNetworkDoctors.add(new Surgeon("Childrens h... | true |
6973eccc3437b0f49c8e9596044136628c2a11f9 | Java | timipaul/shijin3_android-dev | /app/src/main/java/com/shijinsz/shijin/utils/DownloadAPK.java | UTF-8 | 6,066 | 2.0625 | 2 | [] | no_license | package com.shijinsz.shijin.utils;
/**
* Created by yrdan on 2018/11/20.
*/
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.AsyncTask;
import a... | true |
cce077a437d51dbde6976935880aee7e9d0f9d2f | Java | csdncyh/chenqian | /src/main/java/com/chenqian/interceptor/interceptor.java | UTF-8 | 2,721 | 2.375 | 2 | [] | no_license | package com.chenqian.interceptor;
import com.chenqian.controller.Result;
import com.chenqian.entity.User;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
i... | true |
74a811c0fcb16fe56eff6641c95e869b5bfaf8fc | Java | touchepass/javaProject | /CoVoiturage/src/DAO/DPersonneTresorier.java | UTF-8 | 3,707 | 2.6875 | 3 | [] | no_license | package DAO;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import Classe.CCategorie;
import Classe.CPersonneTresorier;
public class DPersonneTresorier extends DAO<CPersonneTresorier> {
public DPersonneTresorier() { }
@Override
public boolean create(CPersonne... | true |
78c6d7c84f9486a2949854a7e7443710fc8d29fe | Java | EdersonSouza02/WorkspaceAndroid | /workspace/Workspace/src/br/gov/sp/etec/primeiraaplicacao/MainActivity.java | UTF-8 | 1,261 | 2.3125 | 2 | [] | no_license |
package br.gov.sp.etec.primeiraaplicacao;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends Activity {
private EditText editTextNome;
private EditText editTextMo... | true |
657d1c013a8f1dcb1daeaaa35063831b9e3aa03b | Java | iligne42/Projet-de-Programmation | /TimeTrialVersion.java | UTF-8 | 1,291 | 2.375 | 2 | [] | no_license |
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.util.Duration;
import java.io.IOException;
public class TimeTrialVersion extends GameVersion {
public final int timeLimit;
public TimeTrialVersion(int length, int width, int nbFloors,int nbObstacles,int nbMonstres,int nbTeleport,i... | true |
7a7345a98b2ea700c3ac5b6b4b5e0b04228d5332 | Java | edmilson-teixeira/calculo-frete | /src/test/java/br/com/softplan/sienge/calculofrete/FreightCalculatorControllerTest.java | UTF-8 | 5,284 | 2.453125 | 2 | [] | no_license | package br.com.softplan.sienge.calculofrete;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context... | true |
f76754c075aacb1a37835c547cdabec437b33480 | Java | felleuch/formation_oct_2020 | /GestionException.java | UTF-8 | 1,849 | 3.140625 | 3 | [] | no_license | package com.formation;
import org.apache.log4j.Logger;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class GestionException {
final static Logger logger = Logger.getLogger(GestionException.class);
public static void main(String[] args) {
logger.info("Debut du prog... | true |
cd5dca5fb6d32907b1ccb5d9d4f75f94f07f651c | Java | TangerineSpecter/OrangeManageSystem | /src/main/java/com/tangerineSpecter/oms/system/service/BaseService.java | UTF-8 | 819 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.tangerinespecter.oms.system.service;
import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod;
import com.tangerinespecter.oms.common.query.QueryObject;
import java.io.Serializable;
import java.util.List;
/**
* @author 丢失的橘子
*/
public interface BaseService<Param extends Seria... | true |
69f85ad420edacd5d91db58b6196b951af5a953a | Java | zhangyan-1997/leetcode | /src/huaweiLC/No860.java | UTF-8 | 1,005 | 3.1875 | 3 | [] | no_license | package huaweiLC;
/**
* <h3>leetcode</h3>
* <p>柠檬水找零</p>
*
* @author : 张严
* @date : 2021-06-15 21:31
**/
public class No860 {
public boolean lemonadeChange(int[] bills) {
int exchange_5 = 0;
int exchange_10 = 0;
for (int i = 0; i < bills.length; i++) {
if(bills[i]==5) exch... | true |
95244f9fc7b367ead8fc5943864666514e8b2221 | Java | Eygen/Testing | /src/main/java/com/epam/zt/testing/action/PostUpdateAdminAction.java | UTF-8 | 2,134 | 2.46875 | 2 | [] | no_license | package com.epam.zt.testing.action;
import com.epam.zt.testing.model.Admin;
import com.epam.zt.testing.service.AdminService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static com.epam.zt.testing.action.ValidationUtil.validate;
public class PostUpdateAdminActi... | true |