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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0e3b097898e05b4c1acabc58f22c4bcfb897acc1 | Java | arielt/HackerRank | /TheMaximumSubarray.java | UTF-8 | 1,553 | 3.328125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/*
* https://www.hackerrank.com/challenges/maxsubarray
*/
public class Solution {
public static int maxSubArray(int arr[]) {
int maxNonNegative = arr[0];
int sum = 0;
for (int i=0; i ... | true |
bc046be9506184a946413e29480291a28c109139 | Java | auengine/ing-concurency | /src/main/java/com/ing/anvil/exam/impl/TextMessage.java | UTF-8 | 270 | 2.21875 | 2 | [] | no_license | package com.ing.anvil.exam.impl;
import com.ing.anvil.exam.IMessage;
public class TextMessage implements IMessage
{
private String text;
public TextMessage(String text){
this.text=text;
}
public String toString()
{
return text;
}
}
| true |
e760128c9699e256ffe108cb9e0bd6c78cbb6c33 | Java | shabic/AndroidManifestParse | /src/com/shabi/androidmanifest/Parser.java | UTF-8 | 922 | 2.40625 | 2 | [] | no_license | package com.shabi.androidmanifest;
import com.shabi.androidmanifest.data.ResourceIdChunk;
import com.shabi.androidmanifest.data.StringChunk;
import com.shabi.androidmanifest.data.XmlContentChunk;
public class Parser {
int magicNumber;
int fileSize;
StringChunk mStringChunk;
ResourceIdChunk... | true |
59cd1f2e4c89fd184cc75c705b3a1b1cf8b96510 | Java | sanath-25/WareHouse_WebApplication | /src/sample/com/trial1/Customer.java | UTF-8 | 837 | 2.671875 | 3 | [] | no_license | package sample.com.trial1;
public class Customer {
private int customerID;
private String firstName;
private String lastName;
private String contactName;
private int personalID;
public Customer() {
customerID = 00;
firstName = "default";
lastName = "default";
contactName = "default";
}
public Customer(int... | true |
c0b1a9e33105f9f456cb2d320f6d6ec6a8b9686b | Java | jam0cam/AndroidExample | /app/src/main/java/com/jitse/example/fireworks/FireWorks2Activity.java | UTF-8 | 4,442 | 2.265625 | 2 | [] | no_license | package com.jitse.example.fireworks;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
... | true |
4360cf7833f441b01c6f256925fbe6b5877cf1b2 | Java | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/arc049/B/950556.java | UTF-8 | 2,519 | 3.125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class Main {
static BufferedReader in;
static PrintWriter out;
static StringTokenizer tok;
void solve() throws IOException {
int N = ni();
int[] x = new int[N];
int[] y = new int[N];
int[] c = new int[N];
... | true |
42aa954a875c00cc047ed323a6341016c42e3761 | Java | huangzhencode/SpringBoot-Union | /spring-boot-01-cache/src/main/java/com/java/config/MyRedisConfig.java | UTF-8 | 1,561 | 1.875 | 2 | [] | no_license | //package com.java.config;
//
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.redis.cache.RedisCacheConfiguration;
//import org.springframework.data.redis.cache.RedisCacheManager;
//import org.springframework.data.... | true |
dda2ba9ff0dbf5ea1f72403f1147ae02d1b2fe2f | Java | wmkpro/ruiton | /src/main/java/com/ruiton/dao/BaseDao.java | UTF-8 | 307 | 1.976563 | 2 | [] | no_license | /**
*
*/
package com.ruiton.dao;
import java.util.List;
import java.util.Map;
/**
* @author minkeWei
*
*/
public interface BaseDao<T> {
List<T> getList(T t);
Long getCount(T t);
Long add(T t);
Long updateByUqKey(T t);
T get(T t);
int del(T t);
List<Map<String, Object>> getMapList(T t);
}
| true |
3a525eca380df2564030a952207b1938bf8f348b | Java | polypheny/Polypheny-DB | /plugins/sql-language/src/main/java/org/polypheny/db/sql/language/SqlDataTypeSpec.java | UTF-8 | 14,395 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-2023 The Polypheny 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 applicable law or... | true |
d9826f36ec033430799208cd58e303fe03e306b6 | Java | Tellfisk/assignmentB | /src/main/java/com/poll/B/Messages/Producer.java | UTF-8 | 1,231 | 2.453125 | 2 | [] | no_license | package com.poll.B.Messages;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.poll.B.VoteDistribution;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOExce... | true |
a5ddba70996f629d31ea1d92c69c6a051e5b4bf9 | Java | jay1260/FirstProject | /src/main/java/com/hclass/project1/trainer/TrainerDAO.java | UTF-8 | 1,260 | 2.140625 | 2 | [] | no_license | package com.hclass.project1.trainer;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.hclass.project1.util.Pager;
@Repository
public class TrainerDAO {
@Autowired
privat... | true |
b06e21aa1f2792f9a3418e22762458d285a55e13 | Java | SSEHUB/EASyProducer | /Tools/EASy-ANT/EASyLoader/src/de/uni_hildesheim/sse/easy/loader/AutomatedGenerator.java | UTF-8 | 2,398 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package de.uni_hildesheim.sse.easy.loader;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* Start the automated generation of the generator class.
* @author pastuschek
*
*/
public class AutomatedGenerator {
private static final File FEATURE_PATH = determineDir("easy.features.... | true |
e91462e80c2696388c9d57620f06445158718c77 | Java | Princeon/kie-wb-common | /kie-wb-common-forms/kie-wb-common-forms-editor/kie-wb-common-forms-editor-client/src/main/java/org/kie/workbench/common/forms/editor/client/editor/dataHolder/util/DataHolderComparator.java | UTF-8 | 1,764 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
e36f82e21bed0323ddcd41a15a1b2eb21734e79b | Java | meir-debug/TellRan_Test | /src/test/java/Tel_Ran_TopMenuTest.java | UTF-8 | 551 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | import org.testng.Assert;
import org.testng.annotations.Test;
public class Tel_Ran_TopMenuTest extends TestBase {
@Test
public void testTopMenu() throws InterruptedException {
openSite("https://www.tel-ran.com/");
pause(5000);
String menuTitle = getMenuTitle(2);
clickOnMenuBy... | true |
c9ff319c8515d4e5be99aff95c3bd0856b1bfff3 | Java | mc921006/java | /20190319_004_ServerJave/src/ServerJave.java | UHC | 1,135 | 3.296875 | 3 | [] | no_license | import java.util.*;
import java.io.*;
import java.net.*;
public class ServerJave {
public static void main(String[] args) {
Scanner aScanner = new Scanner(System.in);
ServerSocket RSocket = null; // ԱŰ
Socket CSocket = null;
BufferedReader MSGRead = null;
String Message;
System.out.println(" ");
try {
... | true |
4c72fcad62e3987b11907373aaad938f778a6441 | Java | mim-solutions/java-ffm-predictor | /src/main/java/FeatureValue.java | UTF-8 | 348 | 2.9375 | 3 | [
"MIT"
] | permissive | public class FeatureValue {
public String featureName;
public Object featureValue;
public FeatureValue(String featureName, Object featureValue) {
this.featureName = featureName;
this.featureValue = featureValue;
}
public String toString() {
return featureName + "_" + featur... | true |
caafc7b604895672b8418b4d522d1308d9059a08 | Java | Azure/azure-sdk-for-java | /sdk/dynatrace/azure-resourcemanager-dynatrace/src/samples/java/com/azure/resourcemanager/dynatrace/generated/SingleSignOnListSamples.java | UTF-8 | 1,361 | 1.921875 | 2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.dynatrace.generated;
/** Samples for SingleSignOn List. */
public final class SingleSignOnListSamples {
/*
* x-ms-origi... | true |
24b3a8346e45fcb66040c508b7ec41a55d613528 | Java | PeterJames12/JavaCourser | /src/main/java/company/boss/Boss.java | UTF-8 | 1,976 | 3.296875 | 3 | [] | no_license | package company.boss;
import company.employee.Alex;
import company.employee.Anton;
import company.employee.Jackie;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* @author Igor Gnes on 3/2/17.
*/
public class Boss {
private String name;
private int salary;
p... | true |
d26c004333b297f4a40a15903d3e35f9bc8186d0 | Java | oskarpicus/ISS | /Proiect/Server/src/main/java/service/BugService.java | UTF-8 | 3,104 | 2.796875 | 3 | [] | no_license | package service;
import domain.Bug;
import domain.Severity;
import domain.Tester;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import repository.BugRepository;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.StreamSup... | true |
d8c49ff6f1fd4046e6593cb1454cad43c7084fcc | Java | Luff-yan/Luff-yan.github.io | /code/JAVA/project-3/src/main/java/com/cn/modules/project/service/ProjectService.java | UTF-8 | 454 | 1.617188 | 2 | [] | no_license | package com.cn.modules.project.service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cn.common.utils.PageInfo;
import com.cn.modules.project.entity.ProjectEntity;
import com.cn.modules.project.entity.response.ResProjectEntity;
public interface ProjectService extends I... | true |
8ea42767aeb3647b19d0fadb7febb1d14fd4409a | Java | reportportal/client-java | /src/test/java/com/epam/reportportal/service/launch/lock/LockSocketRunner.java | UTF-8 | 1,651 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 EPAM Systems
*
* 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 ... | true |
10b485a045db9d3f9bb3ce5464268acd5c6b68b8 | Java | campbe13/Java110-2020 | /lectures/Lecture18Array1.java | UTF-8 | 2,254 | 4.3125 | 4 | [
"MIT"
] | permissive | import java.util.Scanner;
/**
* Lecture 18
*
* variables vs arrays
*
* Arrays
*
*
* @author PMCampbell
* @version Fall 2020
**/
public class Lecture18Array1 {
public static void main(String[] args) {
useVariables();
useArray();
useArrayFor();
}
/**
* sum three ints
*
* @author... | true |
26a30f10c24b64c3a552bff653dea1771777b105 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/micolous_metrodroid/src/main/java/au/id/micolous/metrodroid/transit/manly_fast_ferry/ManlyFastFerryTrip.java | UTF-8 | 1,115 | 1.96875 | 2 | [] | no_license | // isComment
package au.id.micolous.metrodroid.transit.manly_fast_ferry;
import android.os.Parcel;
import android.os.Parcelable;
import au.id.micolous.metrodroid.transit.erg.ErgTrip;
import au.id.micolous.metrodroid.transit.erg.record.ErgPurseRecord;
import java.util.GregorianCalendar;
/**
* isComment
*/
public cla... | true |
500fad59ef079e90b13fc3f8b94470237a125a93 | Java | haducloc/appslandia-plum | /src/main/java/com/appslandia/plum/base/DynFilterRegister.java | UTF-8 | 4,653 | 1.820313 | 2 | [
"MIT"
] | permissive | // The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
... | true |
b16e8948c5da0282437b51cf6a1f1542dd81ae19 | Java | wheals/oldstuff | /sockets/MessageClient.java | UTF-8 | 1,032 | 3.140625 | 3 | [] | no_license | import java.io.*;
import java.net.*;
import java.util.Scanner;
public class MessageClient
{
public static void main(String args[])
{
try
{
Scanner scan = new Scanner(System.in);
Socket client = new Socket("localhost", 4608);
Scanner in = new Scann... | true |
a3f50156b22878e00422ef2878c3c8dc08cb8709 | Java | treejames/zeroServer | /zero-api/src/main/java/com/thirtygames/zero/api/controller/meta/StageMetaController.java | UTF-8 | 1,736 | 1.96875 | 2 | [] | no_license | package com.thirtygames.zero.api.controller.meta;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.a... | true |
0bb4485f3122624ecd0dc83f8e352e9ec12ace3c | Java | a619668402/LuxShareAPP | /Utils/src/main/java/com/luxshare/utils/MainActivity.java | UTF-8 | 935 | 2.15625 | 2 | [] | no_license | package com.luxshare.utils;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.luxshare.utils.utils.SystemUtils;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(... | true |
052947e7176e5ca3fb783b718f0347f8221237f5 | Java | AmerPecuj/cdio-del-3 | /34_del3/src/game/GameController.java | UTF-8 | 488 | 2.53125 | 3 | [] | no_license | package game;
import java.util.*;
import desktop_resources.GUI;
import fields.*;
import spillere.*;
public class GameController {
// Variable
GameBoard board;
PlayerFactory pf;
CarFactory cf;
Spiller[] spillere;
// Constructor
public GameController() {
board = new GameBoard();
board.createBoard();
... | true |
88be14b906cc31f06a8796932d77fac77428b5b3 | Java | jbb-project/jbb | /domain-services/jbb-frontend/src/main/java/org/jbb/frontend/impl/ucp/sync/UcpInstallUpdateEventHandler.java | UTF-8 | 2,464 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.frontend.impl.ucp.sync... | true |
dbc35487f06887d298fe4c81b2d2e25f36662d4d | Java | zhang7324199/MapleStory | /src/main/java/handling/netty/MaplePacketEncoder.java | UTF-8 | 3,564 | 2.34375 | 2 | [] | no_license | package handling.netty;
import client.MapleClient;
import configs.OpcodeConfig;
import configs.ServerConfig;
import handling.opcode.SendPacketOpcode;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import org.apache.logging.log4j.LogMan... | true |
6107a14daa27a1cdc2a6f6ff0a730b849749413a | Java | RoriCremer/gatk | /src/test/java/org/broadinstitute/hellbender/tools/funcotator/dataSources/gencode/DataProviderForExampleGencodeGtfGene.java | UTF-8 | 28,529 | 2.109375 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.broadinstitute.hellbender.tools.funcotator.dataSources.gencode;
import htsjdk.tribble.annotation.Strand;
import org.broadinstitute.hellbender.tools.funcotator.FuncotatorTestConstants;
import org.broadinstitute.hellbender.utils.codecs.gencode.*;
import java.util.Collections;
/**
* A class to hold a metho... | true |
35f0028547f1d59e5dc83b4a92133660f0d540c2 | Java | jinhang/KeeWebFrame | /main/webapp/src/main/java/com/kee/common/dhtmlx/ComboValueGeneratorGetComboValue.java | UTF-8 | 1,646 | 2.4375 | 2 | [] | no_license | package com.kee.common.dhtmlx;
import java.util.Map;
import org.apache.log4j.Logger;
import com.kee.engine.wrapper.model.Msg;
import com.wfos.engine.transfer.Tasks;
/**
* 生成前台下拉框数据
*
*/
public class ComboValueGeneratorGetComboValue extends Tasks{
private Logger logger = Logger.getLogger(this.get... | true |
6a89cbb874ae479b117cd9764908e6710e2351b1 | Java | invokeG/WebChatV1.0 | /src/dao/UserDao.java | GB18030 | 13,680 | 2.453125 | 2 | [] | no_license | package dao;
import java.io.*;
import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Vector;
import ov.Moment;
import ov.Myfriend;
import ov.User;
import util.DatabaseUtil;
/**
* Userݿ
* @aut... | true |
23966b86d07c422be30284e1267c1d8cdff70315 | Java | FlorenciaEspinosa/firstProjectTogether | /src/main/java/steps/LoginSteps.java | UTF-8 | 1,999 | 2.71875 | 3 | [] | no_license | package steps;
import impl.LoginImpl;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
public class LoginSteps {
@Given("I navigate to Employee Management")
public void i_navigate_to_Employee_Management() {
LoginImpl loginimpl = new LoginImpl(); //CR... | true |
bf520ad82d5b64ee757650a708e710f9969106b8 | Java | KangZhiDong/DataToolsPlatform | /org.eclipse.datatools.connectivity.ui.dse/src/org/eclipse/datatools/connectivity/ui/dse/views/DataSourceExplorerView.java | UTF-8 | 3,830 | 1.617188 | 2 | [
"Apache-2.0",
"EPL-1.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2006-2009 Sybase, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | true |
b5416ac47833f74022396b39c53bdea06c734b0a | Java | tgqc/QView | /QView-suite/MQProject/src/org/qview/data/mqmodel/WMQChannel.java | UTF-8 | 942 | 2.15625 | 2 | [
"MIT"
] | permissive | /*
* WMQChannel.java
*
* Created on March 30, 2006, 6:08 PM
*
*/
package org.qview.data.mqmodel;
import java.io.Serializable;
import org.qview.data.ObjectRepository;
/**
*
*/
public class WMQChannel extends WMQObject implements Serializable{
/**
* Creates a new instance of WMQChannel
*/
... | true |
202f7d038059e4352b6fa5fdf4efb22cb3da09fa | Java | lbxx/lbxx | /src/main/java/com/cdhaixun/shop/web/TimeBucketAppController.java | UTF-8 | 3,997 | 2.25 | 2 | [] | no_license | package com.cdhaixun.shop.web;
import com.cdhaixun.common.appVo.Appointment;
import com.cdhaixun.common.appVo.Result;
import com.cdhaixun.domain.*;
import com.cdhaixun.shop.service.*;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |
f79f7e00823ebd68f68d5b84515a54d18a011559 | Java | RedBusApp/caprusredbus | /REDBUSWEB/src/main/java/com/caprusit/redbus/web/config/ParentConfigurationBean.java | UTF-8 | 3,115 | 2.09375 | 2 | [] | no_license | package com.caprusit.redbus.web.config;
import java.io.IOException;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotati... | true |
dc56b79c247774d47b2015b61dae95c1eee419ad | Java | haianpreuss/PFarmacia | /PFarmacia/src/connection/SchemaDBTrabalhoFinal.java | UTF-8 | 13,875 | 1.898438 | 2 | [] | no_license | //-- phpMyAdmin SQL Dump
//-- version 4.8.5
//-- https://www.phpmyadmin.net/
//--
//-- Host: 127.0.0.1
//-- Generation Time: 01-Jul-2019 às 00:54
//-- Versão do servidor: 10.1.38-MariaDB
//-- versão do PHP: 5.6.40
//
//SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
//SET AUTOCOMMIT = 0;
//START TRANSACTION;
//SET ... | true |
507b7539fb73a46365358c42bd4fe3270ab1f12b | Java | chen1si1yuan/chen1si1yuan | /src/cn/chwyteam/www/User/Dao/UserDao.java | GB18030 | 688 | 1.921875 | 2 | [] | no_license | package cn.chwyteam.www.User.Dao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import cn.chwyteam.www.User.Pojo.User;
@Service
public interface UserDao {
//עû
public int InsertUser(User user);
//ͨûû
public User FindUserByUname(@Param("uname")Strin... | true |
86e8c676146ec978470e481eaa8970c8474bbcf2 | Java | newkayak12/DesignPattern | /src/structuralPattern/adapterPattern/classAdapter/SocketClassAdapterImpl.java | UTF-8 | 728 | 2.96875 | 3 | [] | no_license | package structuralPattern.adapterPattern.classAdapter;
import java.net.Socket;
import structuralPattern.adapterPattern.SocketAdapter;
import structuralPattern.adapterPattern.Sockets;
import structuralPattern.adapterPattern.Volt;
public class SocketClassAdapterImpl extends Sockets implements SocketAdapter {
@Overri... | true |
246675601207f771dff3e9e32e9dafa9642d70c2 | Java | 3n31ch/elhacker.net-game | /src/mygame/Program.java | UTF-8 | 1,191 | 2.484375 | 2 | [] | no_license | /*
* 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 mygame;
import elhacker.ElHacker;
import elhacker.User;
import java.io.IOException;
import javax.swing.JOptionPane;
/**
*
*... | true |
378d1e1f6e0f14b15c0d9b96053b64e87135f785 | Java | gustaveco1997/LearningJava | /src/main/java/br/com/codenation/projetolongo/domain/entity/Empresa.java | UTF-8 | 1,888 | 2.25 | 2 | [] | no_license | package br.com.codenation.projetolongo.domain.entity;
import br.com.codenation.projetolongo.domain.vo.EmpresaVo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.*;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.ArrayList;
... | true |
4dafb723e8d79dca60ad2cb4883989ceea95435f | Java | HellerZhang/hzsparrow-framework | /hzsparrow-framework-utils/src/main/java/com/hzsparrow/framework/utils/DESUtils.java | UTF-8 | 7,825 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package com.hzsparrow.framework.utils;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
import javax.crypto.KeyGenerator;
import javax.crypto.spec.IvParameterSpec;
import java.io.*;
import java.security.Key;
impor... | true |
5dcf65969bd0736b3bad3b60810c061c5e521a47 | Java | alex853/commons | /src/main/java/net/simforge/commons/legacy/io/StreamGobbler.java | UTF-8 | 1,484 | 3.078125 | 3 | [] | no_license | package net.simforge.commons.legacy.io;
import java.io.*;
/*
Process process = Runtime.getRuntime().exec(cmd);
StreamGobbler errorGobbler = new
StreamGobbler(process.getErrorStream(), "ERROR");
StreamGobbler outputGobbler = new
StreamGobbler(process.getInputStream(), "... | true |
5b71d403852c749733ad6eab8e85917ccd354073 | Java | zolidznake/crypto-alerts | /src/main/java/com/cryptostocks/coinmarketcap/schedulers/CoinMarketCapScheduler.java | UTF-8 | 559 | 1.945313 | 2 | [] | no_license | package com.cryptostocks.coinmarketcap.schedulers;
import com.cryptostocks.coinmarketcap.client.CoinMarketCapService;
import io.quarkus.scheduler.Scheduled;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@ApplicationScoped
public class CoinMarketCapScheduler {
@Inject
CoinM... | true |
74e8b273be856541b6a5f7c5b1f166a7350c857d | Java | DaJhow/Waldkorn | /src/net/nillus/waldkorn/sessions/commands/spaces/GOVIADOOR.java | UTF-8 | 714 | 2.640625 | 3 | [] | no_license | package net.nillus.waldkorn.sessions.commands.spaces;
import net.nillus.waldkorn.net.ClientMessage;
import net.nillus.waldkorn.sessions.SessionCommandHandler;
import net.nillus.waldkorn.spaces.SpaceInstance;
public class GOVIADOOR extends SessionCommandHandler
{
public void handle(ClientMessage msg)
{
// Parse da... | true |
11df091c542dedc068131f4a3ba9c0a1fd836359 | Java | P79N6A/icse_20_user_study | /methods/Method_1015059.java | UTF-8 | 483 | 1.960938 | 2 | [] | no_license | @Override public void decode(MessagePayload payload){
title=payload.searchableContent;
if (payload.binaryContent != null) {
thumbnail=BitmapFactory.decodeByteArray(payload.binaryContent,0,payload.binaryContent.length);
}
try {
if (payload.content != null) {
JSONObject jsonObject=new JSONObject(pay... | true |
b4dac8e8ca7922ef990963b3aed7223ab8816ecd | Java | shuvava/java-algorithms | /arrays/src/test/java/com/github/shuvava/arrays/ContainsDuplicateTest.java | UTF-8 | 1,280 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package com.github.shuvava.arrays;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.github.shuvava.testcommon.BaseTest;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
public... | true |
c66e70ddb947a3efcdf4a993421dcb35127bf7b2 | Java | wfz123/zhinao2 | /VisualizePlatform/src/main/java/cn/com/ultrapower/groupmanage/controller/GroupmanageController.java | UTF-8 | 5,682 | 1.890625 | 2 | [] | no_license | package cn.com.ultrapower.groupmanage.controller;
import cn.com.ultrapower.groupmanage.service.GroupmanageService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMappin... | true |
3f6cf29ab80d4b4409a96382d012cf3c12253c30 | Java | PacktPublishing/Learning-Java-EE-8 | /Section 2/src/main/java/com/sebastian_daschner/learning_java_ee/control/CarCreationException.java | UTF-8 | 265 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.sebastian_daschner.learning_java_ee.control;
import javax.ejb.ApplicationException;
@ApplicationException
public class CarCreationException extends RuntimeException {
public CarCreationException(String message) {
super(message);
}
}
| true |
e95bcccb6b33a13870091f2f878a337a97a1d116 | Java | northerndeveloper/MoneyTransfer | /src/main/java/services/BankService.java | UTF-8 | 135 | 1.859375 | 2 | [] | no_license | package services;
import entities.Bank;
/** Created by kopuz on 7/10/2018. */
public interface BankService {
Bank createBank();
}
| true |
d54133ae243de4f704f449a4dd1383456779e52a | Java | ElenBabayan/Adobe_Java | /src/com/aca/week5/Homework05/task3/part1/Printer.java | UTF-8 | 1,410 | 3 | 3 | [] | no_license | package com.aca.week5.Homework05.task3.part1;
import com.aca.week5.Homework05.task1.User;
import com.aca.week5.Homework05.task1.UserGroup;
import com.aca.week5.Homework05.task2.part2.ImmutablePoint;
import com.aca.week5.Homework05.task2.part3.Triangle;
import com.aca.week5.Homework05.task2.part4.Color;
import com.aca.... | true |
4b1b57d081426139569b79871d5c03b71856bb9a | Java | arun786/JavaEight | /src/main/java/FunctionalInterface/FunctionInter/HighOrderFunction.java | UTF-8 | 1,577 | 4.375 | 4 | [] | no_license | package FunctionalInterface.FunctionInter;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.UnaryOperator;
public class HighOrderFunction {
public static void main(String[] args) {
Function<Integer, Function<Integer, Integer>> makeAdder = x -> y -> x + y... | true |
999e1af086fbfcbbb659beb7cc650243ab4ac731 | Java | matthewnaruzny/RevolutionBot | /src/main/java/com/mnaruzny/revolutionbot/audio/AudioController.java | UTF-8 | 996 | 2.390625 | 2 | [] | no_license | package com.mnaruzny.revolutionbot.audio;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers;
import c... | true |
14915ce21a4c981360fcef86738fa7274a4cc7e9 | Java | jjettenn/molgenis-selenium-test | /src/test/java/org/molgenis/selenium/tests/ExplorerAppModel.java | UTF-8 | 711 | 2.1875 | 2 | [] | no_license | package org.molgenis.selenium.tests;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Select;
/**
* This is a model of the MOLGENIS login user interface
*/
public class ExplorerAppModel
{
private WebDriver driver;
public static String DATASET_SELECT = "da... | true |
17c0b79a70125f395ce930544efb4e89c4a0e1e4 | Java | tiephunter/OOP | /UDP_server_bcnn/src/UDP_server_bcnn/Sach.java | UTF-8 | 667 | 2.734375 | 3 | [] | no_license | /*
* 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 UDP_server_bcnn;
/**
*
* @author cmtie
*/
public class Sach {
String maSach;
String tenSach;
Stri... | true |
955b01ca2eeab74d1a2d5a8a7edeb64d74e34176 | Java | auxility/baseadapter | /library/src/test/java/dev/auxility/baseadapter/TestItem.java | UTF-8 | 1,204 | 2.5625 | 3 | [
"MIT"
] | permissive | package dev.auxility.baseadapter;
import androidx.annotation.Nullable;
import dev.auxility.baseadapter.item.Item;
import dev.auxility.baseadapter.utils.ListUtils;
import java.util.Comparator;
public class TestItem implements Item, Comparable<TestItem> {
public final int value;
public TestItem(int value) {
t... | true |
972f3ca35f64b9aab72470fb58d283267947f07e | Java | Keerthika19/Sample | /CoreJava/Employee with Phone number/src/Main.java | UTF-8 | 1,064 | 3.6875 | 4 | [] | no_license | import java.util.*;
public class Main {
Employee acceptEmp(Employee e) {
Scanner in=new Scanner(System.in);
System.out.println("Enter name:");
e.setEmpName(in.next());
System.out.println("Enter id:");
e.setEmpId(in.nextInt());
return e;
}
Phone acceptPhn(Phone p, int n) {
Scanner in=new Scanner(System.... | true |
d180b520604295c267e2e6c1a71bb78cc5f0e2d2 | Java | zlibo2019/edpf-parent-new | /edpf-parent/edpf-wx/src/main/java/com/weds/edwx/service/DineGlobalService.java | UTF-8 | 1,519 | 1.828125 | 2 | [] | no_license | package com.weds.edwx.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;
import com.weds.core.base.BaseService;
import com.weds.edwx.mapper.Di... | true |
e293468b74c7cfecfcd2dd0c89526a2a8c1677d9 | Java | ajaybhaga/commonj | /src/org/jcommon/mail/SMTPClientSession.java | UTF-8 | 6,491 | 2.609375 | 3 | [] | no_license | /*
* Created on Nov 24, 2004
*/
package org.jcommon.mail;
import java.io.*;
import java.net.*;
import java.util.*;
/**
* @author Matt Hicks
*/
public class SMTPClientSession {
private static final boolean debug = true;
private String host;
private int port;
private Sock... | true |
52efb3c6c7a839b8867bb3aa3a42de1bdd1d28eb | Java | ragnel/transactions-essentials | /public/transactions/src/main/java/com/atomikos/recovery/fs/RecoveryLogImp.java | UTF-8 | 3,959 | 2.1875 | 2 | [] | no_license | /**
* Copyright (C) 2000-2023 Atomikos <info@atomikos.com>
*
* LICENSE CONDITIONS
*
* See http://www.atomikos.com/Main/WhichLicenseApplies for details.
*/
package com.atomikos.recovery.fs;
import java.util.Collection;
import com.atomikos.icatch.config.Configuration;
import com.atomikos.logging.Logger;
import ... | true |
4f4d0b6e57ccac7b926e8491da4326fd212e1e04 | Java | maikel0maikel/workspace-android | /Hour13App/src/com/bffmedia/hour13app/QdDBHelper.java | UTF-8 | 4,060 | 2.375 | 2 | [] | no_license | package com.bffmedia.hour13app;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.da... | true |
19f274b4ec60b1c386c396a76f20a13c1da78fc6 | Java | QLH123/java.practice | /TEST/Test4.java | UTF-8 | 3,139 | 3.53125 | 4 | [] | no_license |
// // class Farther{
// // private String name="zhangjun";
// // class Child {
// // public void introFather(){
// // System.out.println(name);
// // }
// // }
// // }
// // public class Test4{
// // public static void main(String[] args){
// // Farther.Child child=new... | true |
2909e905eefe07561ab3b797bb8a0dc733891496 | Java | abdelrhmanSaleh94/Sofra | /app/src/main/java/com/example/abdelrahmansaleh/sofra/ui/fragment/user/RegistrationFragment.java | UTF-8 | 8,517 | 1.8125 | 2 | [] | no_license | package com.example.abdelrahmansaleh.sofra.ui.fragment.user;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Butto... | true |
3f769a0ecfd228dffac8adff2c499bc62edb288f | Java | DeepaliKalagate/BroadleafCommerceDockerDemo | /src/main/java/com/thoughtworks/pages/ProductListingPage.java | UTF-8 | 757 | 2.234375 | 2 | [] | no_license | package com.thoughtworks.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
public class ProductListingPage extends BasePage
{
@FindBy(xpath = "//*[@id=\"sort\"]/div/a/span/span")
... | true |
b14124038142e2169f6acb8d4c5ba8152bb6ff1d | Java | jmvgcomp/LinguagemJava | /src/Threads/ExampleRunnable/entitie/ExampleRunnable.java | UTF-8 | 701 | 3.34375 | 3 | [
"MIT"
] | permissive | package Threads.ExampleRunnable.entitie;
public class ExampleRunnable implements Runnable {
private String name;
private int time;
public ExampleRunnable(String name, int time) {
this.name = name;
this.time = time;
//Thread t = new Thread(this);
//t.start();
}
@Ove... | true |
c73cf26aa32467a2d9d9b0e3573cc1e334896bd3 | Java | meeidol-luo/qooq | /classes/com/tencent/mobileqq/app/lbs/LbsInfoMgr.java | UTF-8 | 4,264 | 1.617188 | 2 | [] | no_license | package com.tencent.mobileqq.app.lbs;
import android.app.KeyguardManager;
import android.content.Context;
import android.os.PowerManager;
import com.tencent.mobileqq.app.BizTroopHandler;
import com.tencent.mobileqq.app.BizTroopObserver;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.app.Th... | true |
9bcc8a4f5fd770c00abc8369029d4134715193fa | Java | ryunian/algorithm | /src/BOJ/Dynamic/_2193.java | UTF-8 | 499 | 3.015625 | 3 | [] | no_license | package BOJ.Dynamic;
import java.util.Scanner;
public class _2193 {
static long[] dp;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
dp = new long[n + 1];
System.out.println(solve(n));
}
private static long solve(i... | true |
f02943024e4de2ad669faff4a2821f5f9d0f5e80 | Java | javachan/gardirop | /src/main/java/com/oguzhanuzman/github/gardirop/controller/rest/dto/ValidationFailedDto.java | UTF-8 | 770 | 2.1875 | 2 | [] | no_license | package com.oguzhanuzman.github.gardirop.controller.rest.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.context.support.DefaultMessageSourceResolvable;
import org.springframework.validation.BindException;
import java.util.List;
import java.util.stream.Collectors;
@Getter
@All... | true |
6ad12d60a4dc8d111314685b3302448cd036829e | Java | sbaumga/Code-Name-Disaster-Weasel | /Vending Machine Test/test/DeliveryChuteSimulatorTest.java | UTF-8 | 3,876 | 2.53125 | 3 | [] | no_license | package org.lsmr.vendingmachine.simulator.test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.lsmr.vendingmachine.simulator.CapacityExceededException;
import... | true |
b24ed786cbb997f8bd43f58c47ca441bf330794a | Java | leokongwq/vertxlearn | /src/main/java/com/leokongwq/vertx/microservice/product/model/Product.java | UTF-8 | 2,018 | 2.34375 | 2 | [] | no_license | package com.leokongwq.vertx.microservice.product.model;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
* @author : kongwenqiang
* DateTime: 2017/12/1 下午4:36
* Mail:kongwenqiang@qiyi.com
* Description: d... | true |
419fbac4714ec1ac243ad48d701b429c0bdae0a2 | Java | keercers/haitao | /haitao-common/src/main/java/com/thinvent/zhhd/common/vo/MafAssetsVO.java | UTF-8 | 754 | 1.984375 | 2 | [] | no_license | package com.thinvent.zhhd.common.vo;
import com.thinvent.library.util.UUIDUtil;
import lombok.Getter;
import lombok.Setter;
/**
* 故障资产表VO
* @Description: MafAssetsVO
* @author hananxin
*/
@Getter
@Setter
public class MafAssetsVO {
public MafAssetsVO(){
this.mafAssetsId = UUIDUtil.getUuid();
}
private Str... | true |
eee957db1edcfec3b51a0bc38b0fce5809cd3d4e | Java | manglatech/myStudy | /src/main/java/org/olat/finance/user/ui/AddPaymentFormController.java | UTF-8 | 2,670 | 2.140625 | 2 | [] | no_license | package org.olat.finance.user.ui;
import org.olat.core.gui.UserRequest;
import org.olat.core.gui.components.form.flexible.FormItemContainer;
import org.olat.core.gui.components.form.flexible.elements.IntegerElement;
import org.olat.core.gui.components.form.flexible.impl.FormBasicController;
import org.olat.core.gui.co... | true |
a2822317d6177dbc25a14b5ec87d69d0776a8561 | Java | rustyhaidu/Movies | /exchangeRates/app/src/test/java/sci/ro/exchangerates/HttpRequestCheck.java | UTF-8 | 1,852 | 2.609375 | 3 | [] | no_license | package sci.ro.exchangerates;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Created by sebi on 6/13/15.
*/
public class HttpRequestCheck<T> implements CalculateExchangeRate.Callback {... | true |
604b74c7afbb272ad9fddc8966caa72ab2b71aa7 | Java | prowide/prowide-iso20022 | /model-seev-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/CorporateActionRate2.java | UTF-8 | 23,626 | 1.5 | 2 | [
"Apache-2.0"
] | permissive |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang... | true |
3f9cf86e3f419cbb4ef832e953d88b5a908ee3be | Java | zhoumack/gs | /gs/src/com/gs/service/ComputerService.java | UTF-8 | 898 | 2.203125 | 2 | [] | no_license | package com.gs.service;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gs.daoImple.Computer_room_dao;
import com.gs.entity.Computer_roo... | true |
769ef71168445b482719f72a2635eac6ca0c12d0 | Java | ShulgaMaxim/OnlineChat | /app/src/main/java/com/example/android/onlinechat/module/login/di/LoginComponent.java | UTF-8 | 354 | 1.703125 | 2 | [] | no_license | package com.example.android.onlinechat.module.login.di;
import com.example.android.onlinechat.module.login.presentation.view.LoginActivity;
import dagger.Subcomponent;
/**
* @author mshulga
* @since 21.01.18
*/
@Subcomponent(modules = LoginModule.class)
@LoginScope
public interface LoginComponent {
void injec... | true |
3a31a134eeef5f9d52278f43708ee6c43b48d3ca | Java | haxsscker/abc.parent | /abc.service/src/main/java/com/autoserve/abc/service/biz/enums/EntityState.java | UTF-8 | 866 | 2.765625 | 3 | [] | no_license | package com.autoserve.abc.service.biz.enums;
/**
* 类的实现描述:员工/用户/机构等实体状态
*
* @author RJQ 2014/11/17 15:38.
*/
public enum EntityState {
/**已删除**/
STATE_DELETED(-1, "已删除"),
/**停用**/
STATE_DISABLE(0, "已停用"),
/**启用**/
STATE_ENABLE(1, "启用");
EntityState(int state, String des) {
t... | true |
9c4a876f0add1d5bae5ac81e6a16c2bfefc8ab2d | Java | foodvendor/resta-web-app | /restful-web-services/src/main/java/com/NVDabbewala/rest/webservices/restfulwebservices/dao/IBillDao.java | UTF-8 | 623 | 2.078125 | 2 | [] | no_license | package com.NVDabbewala.rest.webservices.restfulwebservices.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.NVDabbewa... | true |
8ab0a1a11c28c3472d9eeba3a0825f9d03df06e8 | Java | liubinduo/spring-boot-commons | /src/main/java/com/v1ok/commons/math/NumberUtils.java | UTF-8 | 4,435 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | package com.v1ok.commons.math;
import java.math.BigDecimal;
import java.math.RoundingMode;
import org.apache.commons.lang3.ArrayUtils;
public class NumberUtils extends org.apache.commons.lang3.math.NumberUtils {
public static BigDecimal add(Number... numbers) {
return add(3, RoundingMode.HALF_UP, numbers);
}... | true |
1a347db82870a16d223cfe9d157dca769f81424e | Java | learnGitTemp/maven_springmvc | /src/main/java/com/test/Test5.java | UTF-8 | 579 | 2 | 2 | [] | no_license | package com.test;
import com.javamail;
import com.orm.Mail;
/**
* Created by Administrator on 2016/7/26.
*/
public class Test5 {
public static void main(String[] args) {
Mail mail = new Mail();
mail.setHost("smtp.sina.com.cn");
mail.setSender("accountnum@sina.cn");
mail.setRecei... | true |
46bc76cf3fff5198a83855ab069cb9a51e886778 | Java | nextsde/daily-coding-prep | /src/com/nextswe/prep/ds_goodrich/chapter11/RBTreeMap.java | UTF-8 | 2,827 | 2.984375 | 3 | [] | no_license | package com.nextswe.prep.ds_goodrich.chapter11;
import com.nextswe.prep.ds_goodrich.chapter7.Position;
import com.nextswe.prep.ds_goodrich.chapter9.Entry;
import java.util.Comparator;
public class RBTreeMap<K,V> extends TreeMap<K,V> {
public RBTreeMap(){ super(); }
public RBTreeMap(Comparator comp){ super(co... | true |
f2be575564246be7da0755803f3c69ba48230369 | Java | fanioula/mlslcs | /src/gr/auth/ee/lcs/implementations/MLSLCS.java | UTF-8 | 17,620 | 1.523438 | 2 | [] | no_license | /*
* Copyright (C) 2011 by F. Tzima, M. Allamanis and A. Filotheou
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | true |
84b6540c17a9a2c0442c32b9bbbd5ca42f7c13aa | Java | vebitot/Android | /MCMAndroidClient/src/com/vebitot/mcm/androidclient/workers/IAsyncResponse.java | UTF-8 | 236 | 1.929688 | 2 | [] | no_license | package com.vebitot.mcm.androidclient.workers;
/**
* Interface for getting back the response from an async task to the UI thread
* @author vebitot
*/
public interface IAsyncResponse {
public void executionComplete(Object result);
}
| true |
866d501ecb0bc8a6d574d49a8a639a4436296b08 | Java | immortalcatz/StuffCraft-Mod | /java/dr_detonation/stuffcraft/SaladEatEvent.java | UTF-8 | 371 | 2.03125 | 2 | [] | no_license | package dr_detonation.stuffcraft;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
public class SaladEatEvent {
@SubscribeEvent
public void eatEvent(PlayerEvent.ItemCraftedEvent e) {
if (e.crafting.getItem().equals(StuffCraft.salad)) {
e.playe... | true |
91e67d395d10f13ba9755549157238f4a1c1a2ce | Java | apache/flink | /flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamUtils.java | UTF-8 | 9,613 | 2.078125 | 2 | [
"BSD-3-Clause",
"OFL-1.1",
"ISC",
"MIT",
"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 may ... | true |
77e04586f40d1ef02a1e525cc3ad431a07ece845 | Java | carloscercado/lotto_activo | /src/main/java/converter/SorteoConverter.java | UTF-8 | 1,283 | 2.515625 | 3 | [] | no_license | package converter;
import dao.SorteoDAO;
import java.util.List;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import javax.faces.view.Location;
import model.Sorteo;
/**
*
* @author Carlos Cercado
* ... | true |
1515080d680a449dcdc6e64b070e339af44bea76 | Java | franplk/xtable | /src/main/java/com/emar/xreport/model/domain/Template.java | UTF-8 | 1,508 | 1.984375 | 2 | [] | no_license | /**
*
*/
package com.emar.xreport.model.domain;
import java.io.Serializable;
import java.util.List;
import com.emar.xreport.query.domain.ConBean;
import com.emar.xreport.util.StringUtil;
/**
* @author franplk
*
*/
public class Template implements Serializable {
private static final long serialVersionUID = 1L... | true |
dbbd4bc13209580d8aee0316e619886b6455332c | Java | pao15ELF/repo-EJPK21-Trabajo_Final | /TrabajoFinal-EJPK21/src/main/java/ar/edu/unju/fi/TPFinal/model/Order.java | UTF-8 | 5,092 | 2.484375 | 2 | [] | no_license | package ar.edu.unju.fi.TPFinal.model;
import java.time.LocalDate;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persist... | true |
a8ea8331bc7ebc6a27f8c05c7365235216586f7e | Java | andreyevyk/Contemporaneizando | /model/DAO/jogadorDAO.java | UTF-8 | 2,709 | 2.78125 | 3 | [] | no_license | /*
* 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 model.DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayLis... | true |
e920fa469fc42340d378e7e036d1c9c2b6397c39 | Java | 210712jwa/HomeTour_TomW | /src/fixtures/Fixture.java | UTF-8 | 4,363 | 2.953125 | 3 | [] | no_license | package fixtures;
import project.Constants;
/**
* * This abstract class will be used as a base for anything that can be looked
* at or interacted with. This class should define (at least) the following
* properties:
*
* - 'String name` : a short name / title for the fixtureString -
* `shortDescription` : a one... | true |
d1e5bd9328d4e6e8bdb345285f94b046d661e251 | Java | robbyrahmana/Husada-Bunda | /src/main/java/com/cinovation/web/service/HelperService.java | UTF-8 | 2,639 | 2.359375 | 2 | [] | no_license | package com.cinovation.web.service;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.cinovation.web.repository.patient.PatientAdministrationRepository;
... | true |
6bffd49a1caa81f4a110f2df0c0f6336bf6e591e | Java | Hadh/HRSmart2Jee | /HRSmart/HRSmart-ejb/src/main/java/pi/HRSmart/services/AssessmentService.java | UTF-8 | 2,464 | 2.359375 | 2 | [] | no_license | package pi.HRSmart.services;
import pi.HRSmart.interfaces.IAssessmentServiceLocal;
import pi.HRSmart.interfaces.IChoiceServiceLocal;
import pi.HRSmart.persistence.Assessment;
import pi.HRSmart.persistence.Choice;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.pe... | true |
2355a749ca08e2d60e5d3a40137155509e6fb052 | Java | JetBrains/intellij-community | /plugins/stream-debugger/testData/debug/src/ToCollection.java | UTF-8 | 191 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | import java.util.stream.Stream;
public class ToCollection {
public static void main(String[] args) {
// Breakpoint!
Stream.of(1, 2, 3, 4, 5, 6).filter(x -> x < 3).toArray();
}
}
| true |
9ccc34ac32762224bfbdacf74b7c3f5879441bec | Java | MatheusBuzolin/empresaADM | /app/src/main/java/com/mbappsoftware/aprotadm/activity/CadastroActivity.java | UTF-8 | 5,854 | 2.0625 | 2 | [] | no_license | package com.mbappsoftware.aprotadm.activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Spinner;
import android.widget.Toast;
import com.google.android.gms.tasks.OnComple... | true |
5c87a4d929f600a9ba25c286e67decb75cc6123f | Java | momoxiaoming/AccessBilityManager | /app/src/main/java/assist/auto/com/accessbilitymanager/util/ToolUtil.java | UTF-8 | 8,741 | 1.921875 | 2 | [] | no_license | package assist.auto.com.accessbilitymanager.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.os.Handler;
import android.provider.Settings;
import android.support.annotation... | true |
3cd9cff1892a4be9aad6da3fc57cbc9c2cea8153 | Java | chinthakasajith/epic | /src/java/com/epic/cms/reportexp/cardapplication/bean/EodTransactionReportBean.java | UTF-8 | 2,422 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.epic.cms.reportexp.cardapplication.bean;
/**
*
* @author asela
*/
public class EodTransactionReportBean {
private String eodDate;
private int transactionId;
private String cardNumber;
pri... | true |
836608fe0e898835a72b0c1672492bae84dd66f2 | Java | elkant/HC1_APHIA_PLUS | /src/java/DBCREDENTIALSFILE/db_backup.java | UTF-8 | 3,474 | 2.28125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DBCREDENTIALSFILE;
import hc.dbConn;
import java.io.IOException;
import java.net.URL;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import org... | true |
238f7d28f9122b3cce433c97fe54ba223c8f8250 | Java | chiragjog/CloudStack | /utils/src/com/cloud/utils/db/EcInfo.java | UTF-8 | 4,829 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
*
* This software is licensed under the GNU General Public License v3 or later.
*
* It 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, e... | true |