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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
98e4a3a94658faa0dcac4c19b5eeaff1249a29df | Java | Matteh/COMP4203-IDS | /src/IDS.java | UTF-8 | 13,744 | 2.3125 | 2 | [] | no_license | import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.SocketException;
import javax.s... | true |
b3a75ed59a8532ef9f523d329962e7842f911a3c | Java | dnwalter/RxjavaDemo | /JavaProject/src/main/java/com/ousy/javaproject/condition/SkipWhileDemo.java | UTF-8 | 541 | 2.953125 | 3 | [] | no_license | package com.ousy.javaproject.condition;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.functions.Predicate;
/**
* @author ousiyuan
* @date 2019/11/7
*/
public class SkipWhileDemo {
public static void main(String[] args) {
Observable.just(1, 2, 3, 4, 5).skipWhile(new Predicate<... | true |
0df0401770eb012832f798196677eacfa33adb81 | Java | letaoli123/hibernate-semantic-query | /src/test/java/org/hibernate/orm/type/descriptor/java/internal/CalendarJavaDescriptor.java | UTF-8 | 5,638 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.orm.type.descriptor.java.internal;
import java.sql.Types;
import... | true |
cfbc714f5df0f0ce26e46436f135c5a5b81e81dc | Java | adleywd/SampleWebView | /app/src/main/java/br/com/adley/samplewebviewproject/MainActivity.java | UTF-8 | 9,437 | 1.804688 | 2 | [
"MIT"
] | permissive | package br.com.adley.samplewebviewproject;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.DownloadManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v... | true |
7c72a2d0fd95aa54347a996474ca8f6f4e22ccaf | Java | zhou1197073540/newera-rexxar | /stock_market/src/main/java/com/mouzhiapp/stock_market/annotation/SelfSelected.java | UTF-8 | 263 | 1.773438 | 2 | [] | no_license | package com.mouzhiapp.stock_market.annotation;
import java.lang.annotation.*;
/**
* create by zhouzhenyang on 2018/5/31
*/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SelfSelected {
}
| true |
3061f52bff474510f11508df481ae069d5a2c5fb | Java | Masoudas/FourPolarImaging | /fourPolar-core/src/main/java/fr/fresnel/fourPolar/core/image/generic/imgLib2Model/types/TypeConverterFactory.java | UTF-8 | 1,555 | 2.75 | 3 | [] | no_license | package fr.fresnel.fourPolar.core.image.generic.imgLib2Model.types;
import fr.fresnel.fourPolar.core.exceptions.image.generic.imgLib2Model.types.ConverterNotFound;
import fr.fresnel.fourPolar.core.image.generic.pixel.types.PixelType;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.ARGBType;
import ... | true |
af365db3d4ceb4a399b38485ae66e9f0507929fa | Java | NoobIsBack/SpringProject | /src/main/java/com/mayank/entity/PersonKey.java | UTF-8 | 1,577 | 2.546875 | 3 | [] | no_license | //package com.mayank.entity;
//
//import org.springframework.data.cassandra.core.cql.Ordering;
//import org.springframework.data.cassandra.core.mapping.PrimaryKey;
//import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn;
//
//import java.io.Serializable;
//import java.time.LocalDateTime;
//import java... | true |
1e778b836a2bf3beef30cb56a677486cab33589e | Java | kaancelen/charterv3 | /src/com/kaancelen/charterv3/utils/MonthComparator.java | UTF-8 | 756 | 3 | 3 | [] | no_license | package com.kaancelen.charterv3.utils;
import java.io.Serializable;
import java.util.Comparator;
public class MonthComparator implements Comparator<Object>, Serializable{
private static final long serialVersionUID = 5481904919162981377L;
@Override
public int compare(Object arg0, Object arg1) {
String month1 = ... | true |
15cc5c5ca344981f73c97ba98ca8466ca3dbeb62 | Java | corzand/ASW_Lib1 | /src/asw1009/requests/SignUpRequest.java | UTF-8 | 2,834 | 2.765625 | 3 | [] | no_license | package asw1009.requests;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Richiesta di registrazione utente.
*
* @author ASW1009
*/
@XmlRootElement(name="data")
@XmlAccessorType(XmlAccessType.FIELD)
public cla... | true |
e4c033ad143fff1e9d48e35e14a9beca63f5babe | Java | edisonesc/CodeWarsTrainings | /CountingDuplicates.java | UTF-8 | 1,777 | 3.53125 | 4 | [] | 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 codewars.training;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
*
... | true |
6b593374ef3e147115d8c83452fefd38ff00defa | Java | MigertKapaj/infovore | /centipede/src/main/java/com/ontology2/centipede/shell/CentipedeShell.java | UTF-8 | 4,886 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.ontology2.centipede.shell;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;... | true |
187f09fcb4e0d819e3ce5a035f3f70d4ab60ed50 | Java | anna850412/RestaurantBackend | /src/main/java/com/kodilla/restaurantbackend/repository/RatesRepository.java | UTF-8 | 336 | 1.9375 | 2 | [] | no_license | package com.kodilla.restaurantbackend.repository;
import com.kodilla.restaurantbackend.domain.Rate;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RatesRepository extends CrudRepository<Rate, Long> {
@Override
Rate save... | true |
9f28f4a0fb8f6f91744be0b95a66943f9ac07c30 | Java | lemuelinchrist/account-management | /src/main/java/com/lemuelinchrist/exercise/facepalm/controllers/dto/FriendPairRequestDTO.java | UTF-8 | 1,959 | 2.96875 | 3 | [] | no_license | package com.lemuelinchrist.exercise.facepalm.controllers.dto;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lemuelinchrist.exercise.facepalm.exception.InvalidParameterException;
import java.util.Arrays;
import java.util.List;
/**
* Convenient DTO object for JSON conversion of requests
*
* @author... | true |
c94f3e10f557566ef5c24a5ff76691b83afc724c | Java | dzt2/jcsa | /JCParse/src/com/jcsa/jcparse/lang/astree/decl/declarator/AstDeclarator.java | UTF-8 | 983 | 2.1875 | 2 | [] | no_license | package com.jcsa.jcparse.lang.astree.decl.declarator;
import com.jcsa.jcparse.lang.astree.AstNode;
import com.jcsa.jcparse.lang.astree.base.AstPunctuator;
/**
* <code>declarator |--> pointer declarator
* | declarator dimension
* | declarator parambody
* | ( declarator )
* | ide... | true |
2ff2c4523b5dc069eb65cd41c73c9a48cc68cf11 | Java | chrisly42/cajon-plugin | /src/test/java/de/platon42/intellij/jupiter/TestJdk.java | UTF-8 | 351 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package de.platon42.intellij.jupiter;
import com.intellij.pom.java.LanguageLevel;
import java.lang.annotation.*;
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface TestJdk {
LanguageLevel value();
boolean annotations() default false;
boolean... | true |
1a76ac424ed528a5aa2740c3cbcd67ef1d1b55f6 | Java | kwon37xi/research-java7 | /java-7-new-features-cook-book/src/main/java/ch11/UsageBitSet.java | UTF-8 | 512 | 3.25 | 3 | [] | no_license | package ch11;
import java.util.BitSet;
public class UsageBitSet {
public static void main(String[] args) {
BitSet bitSet = new BitSet();
long[] array = {1L, 21L, 3L};
bitSet = BitSet.valueOf(array);
System.out.println(bitSet);
long[] tmp = bitSet.toLongArray();
for... | true |
52a4740fa216aea92e1ef0dd3ed6d45edb9ec7d0 | Java | Alexandr720/Android-Corona | /app/src/main/java/com/stepin/coronaapp/activities/ContactUsActivity.java | UTF-8 | 2,089 | 2.09375 | 2 | [] | no_license | package com.stepin.coronaapp.activities;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import com.stepin.coronaapp.R;
import com.stepin.coronaapp.api.Api;
import com.stepin.coronaapp.model.User;
impo... | true |
4ad00092f9c08c2c523665ef4a64a90ae69bfbb1 | Java | luxinglin/learn-java-advance | /java-basic/java-basic-mq/src/main/java/cn/com/gary/mq/rabbit/producer/Producer4Confirm.java | UTF-8 | 2,228 | 3.09375 | 3 | [] | no_license | package cn.com.gary.mq.rabbit.producer;
import cn.com.gary.mq.rabbit.util.ConnectionUtils;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.ConfirmListener;
import com.rabbitmq.client.Connection;
import java.io.IOException;
/**
* Confirm 确认消息
* 理解Confirm 消息确认机制:
* <p>
* 消息的确认,是指生产者投递消息后,如果Broker收到消... | true |
0159082fe8b9394404d875d2df4385e5e5f10858 | Java | victorvace/Anagram_Comparator | /src/controllers/AnagramController.java | UTF-8 | 818 | 3.046875 | 3 | [] | no_license | package controllers;
import helpers.AnagramCoparator;
import helpers.Preprocesor;
import models.AnagramModel;
import views.View;
import java.util.ArrayList;
public class AnagramController {
private ArrayList<String> arrayListWords;
public AnagramController() throws Exception {
this.arrayListWords =... | true |
18acd4fa74acdd29300203c62e5ed7fddd49cc14 | Java | marcingrzejszczak/spring-cloud-sleuth | /spring-cloud-sleuth-zipkin/src/main/java/org/springframework/cloud/sleuth/zipkin/DiscoveryClientEndpointLocator.java | UTF-8 | 2,681 | 2 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
c128563fe391a89e8cbbc0d8bec567fb2625e5f7 | Java | TutorialeLS/Tutoriale | /Kolejki test/src/app/test.java | UTF-8 | 971 | 3.140625 | 3 | [] | no_license | package app;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
public class test {
public static void main (String args[]) {
Queue<Person> qA=new PriorityQueue<>(new Comparator<Person>() {
@Override
public int compare(Person arg0, Person arg1) {
return -arg0.getPriorit... | true |
53dbb5e1847a78bc919449e836be102a8164044b | Java | azuyes/Finance | /src/main/java/com/bjut/ssh/controller/CostManagement/SiteProductionCostChartController.java | UTF-8 | 1,431 | 1.96875 | 2 | [] | no_license | package com.bjut.ssh.controller.CostManagement;
import com.bjut.ssh.entity.Msg;
import com.bjut.ssh.service.CostManagement.SiteProductionCostChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Path... | true |
c40824777024e911de6dce0edd9c3bd2d3f7998d | Java | RunelocusCommunity/Client | /src/ApplicationApplet.java | UTF-8 | 12,614 | 1.742188 | 2 | [] | no_license | // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.io.PrintStream;
import sign.Signlink;
public class ApplicationApplet extends Applet i... | true |
bc8af84784bd19e7375d87dee1004a856529d869 | Java | BigXiangxy/Box | /mapmodule/src/main/java/com/box/mapmodule/MapMainActivity.java | UTF-8 | 3,409 | 2.03125 | 2 | [] | no_license | package com.box.mapmodule;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.ZoomControls;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.box.lib.mvp.view.BaseActivity;
import com.supermap.data.Environ... | true |
1061660ef4845aa0360bb041e5ea4d4ff8a08e11 | Java | ChrisKatsaras/SGML-JFlex-Parsing | /Token.java | UTF-8 | 1,274 | 3.203125 | 3 | [] | no_license | /*
Token.java
Token object that associates data
*/
class Token {
public final static int OPEN = 0;
public final static int CLOSE = 1;
public final static int WORD = 2;
public final static int NUMBER = 3;
public final static int APOSTROPHIZED = 4;
public final static int HYPHEN = 5;
public final sta... | true |
69b5e55553c3d7efd9cdced27eebe17aa87279c4 | Java | dearhude1/SchoolProjects | /ExtensiveGameBenchmark/src/gameOneCardPoker/algorithms/BEFFE.java | UTF-8 | 1,299 | 2.59375 | 3 | [] | no_license | package gameOneCardPoker.algorithms;
import gameOneCardPoker.GameState;
import gameOneCardPoker.Helper;
public class BEFFE extends BEFEWP {
private int maxMatchNum = 0;
public BEFFE( int gameNum )
{
super();
maxMatchNum = gameNum;
}
public void onlinePlayer_GameStarts( GameState gameState, long T )
... | true |
dcc2b015affb2c85d7790314606e9968b1c2d346 | Java | UULIN/springTest | /src/main/java/com/springtest/注解开发/config/myConfig.java | UTF-8 | 530 | 1.882813 | 2 | [] | no_license | /*
* myConfig.java
* Copyright 2021 Qunhe Tech, all rights reserved.
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
*/
package com.springtest.注解开发.config;
import com.springtest.注解开发.dao.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annota... | true |
1b41098374fbe2bbbc594760d1d62165df130507 | Java | Jruz9/Computer-Science-Algorithms | /Algorithms/src/main/java/practiceFolder/SearchingAlgorithmsPractice/SequentialSearchPractice.java | UTF-8 | 2,187 | 4.21875 | 4 | [] | no_license | package practiceFolder.SearchingAlgorithmsPractice;
//this is a an simple
public class SequentialSearchPractice<Key,Value> {
private Node first;
private class Node{
Key key;
Value value;
Node next;
//this is a Constructor for referencing inside the private class for classes
... | true |
d4a32a923cd5d5ab3ac6213f8de911666476d0a2 | Java | wonjinism/TIL | /spring/scit/20190110/src/main/java/io/zerone/myapp0110/BoardController.java | UTF-8 | 4,857 | 2.40625 | 2 | [] | no_license | package io.zerone.myapp0110;
import java.util.ArrayList;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | true |
f311d8c89a6046ca88be6c863e27b9dafafbf126 | Java | ty2023/forum | /src/main/java/com/bysj/controller/ForumsController.java | UTF-8 | 443 | 1.554688 | 2 | [] | no_license | package com.bysj.controller;
import com.bysj.service.IForumsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author 29029
* @Version 1.0
* @Time 9:13
*/
@Controller
@Reque... | true |
df6ffa4dc4ba84e3790ec72e6c06a39bcc86f29b | Java | ajtdnyy/DatePicker | /src/main/java/com/datePicker/DatePicker.java | UTF-8 | 27,059 | 2.65625 | 3 | [
"MIT"
] | permissive | package com.datePicker;
import java.awt.Frame;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.swin... | true |
2fc60498be3a1d71e519de19a6def84fb5229e30 | Java | EzeGmnz/CompiladorMiniJava | /src/main/java/semantic_analyzer_ast/type_checker/TypeClassChecker.java | UTF-8 | 1,312 | 2.75 | 3 | [] | no_license | package semantic_analyzer_ast.type_checker;
import semantic_analyzer.*;
public class TypeClassChecker implements TypeChecker {
private final IClassType type;
public TypeClassChecker(IClassType type) {
this.type = type;
}
@Override
public boolean isCompatible(IClassType type) {
if... | true |
89c889d7f48b7aa8e98eb52c5bff69f3f395923e | Java | dmssargent/reimagined-enigma-bot | /reimagined/src/main/java/org/ftccommunity/reimagined/messaging/MessageFactory.java | UTF-8 | 305 | 2 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.ftccommunity.reimagined.messaging;
import com.google.protobuf.Message;
/**
* Created by David on 12/21/2015.
*/
public class MessageFactory {
public interface RobocolMessage<T extends Message> {
T getMessage();
byte[] getSerialization();
int size();
}
}
| true |
1163022608069ef2b59d76c2e672dc12cd0f69bf | Java | SilvioScanzi/ing-sw-2021-scanzi-scandale-radaelli | /src/main/java/it/polimi/ingsw/view/GUI/screenView/WaitScreenView.java | UTF-8 | 262 | 2.015625 | 2 | [] | no_license | package it.polimi.ingsw.view.GUI.screenView;
import javafx.fxml.FXML;
import javafx.scene.text.Text;
public class WaitScreenView {
@FXML
private Text message;
public void changeMessage(String S){
message.setText(S);
}
} | true |
d063336178a92ef8f64b32a69bdeb85e448b6fd3 | Java | djhajjar/ser321examples | /Network/JsonRPCviaTCPStudent/src/main/java/client/StudentTcpProxy.java | UTF-8 | 4,749 | 2.875 | 3 | [] | no_license | package client;
import server.Student;
import server.StudentCollection;
import java.net.*;
import java.io.*;
import java.util.ArrayList;
import org.json.JSONObject;
import org.json.JSONArray;
/**
* A class for client-server connections with a threaded server.
* The student collection client proxy implements the ser... | true |
6142f06ecc2e5f352f5aa049db0541d5fbaaaf5a | Java | anaellelsn/TPChatTCP | /TPChatTCP/src/stream/EnvoiThread.java | UTF-8 | 1,000 | 3.140625 | 3 | [] | no_license | package stream;
/**
* @author Anaelle Lesne & Agathe Liguori
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
public class EnvoiThread extends Thread{
private String pseudo;
private PrintStream socOut ;
priva... | true |
fc1bdfe9685cde24e553ce4f9e218490bd0e0de1 | Java | littlexiaotimpro/learning-and-practicing | /practice/src/main/java/com/practice/algorithm/tree/_BinarySearchTree.java | UTF-8 | 3,147 | 4.09375 | 4 | [] | no_license | package com.practice.algorithm.tree;
import java.util.Arrays;
/**
* @author XiaoSi
* @className _BinarySearchTree
* @description 二叉搜索树
* @date 2020/11/13
*/
public class _BinarySearchTree {
private static Node buildTree(int[] tree) {
if (tree == null || tree.length <= 0) {
throw new Runt... | true |
20cee0ce5044ca96d7a33628c137ed19c25516d6 | Java | daikchu/yumishop | /src/main/java/m07/repository/ProductRepository.java | UTF-8 | 2,308 | 2.359375 | 2 | [] | no_license | package m07.repository;
import m07.entity.Product;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface ProductRepository extends CrudRepository<Product, Integer>{
//Hiển thị danh sách product mới nhất ở trang... | true |
379e99278cbaa6b25c0f2c8888bb213df5464e59 | Java | hyagocorreia/Vendas | /src/poo/vendas/SCVException.java | UTF-8 | 212 | 1.976563 | 2 | [] | no_license | package poo.vendas;
public class SCVException extends Exception {
private static final long serialVersionUID = 1L;
public SCVException(String msg){
super(msg);
}
public SCVException(){
super();
}
}
| true |
f1a821870d990491ecec558a9611f065dd91af9d | Java | garlandinc/helpcenter | /enginebuilder/src/main/java/com/garland/helpcenter/engine/CommonLocation.java | UTF-8 | 671 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.garland.helpcenter.engine;
import java.io.Serializable;
/**
* Created by lemon on 11/3/2017.
*/
public class CommonLocation implements Serializable {
private static final long serialVersionUID="CommonLocation".hashCode();
public double latitude;
public double longitude;
... | true |
83358475950a8c489fe79fc477808fb8ab64c152 | Java | cavitgokdogan/java101_patika | /fibonacci.java | UTF-8 | 532 | 3.703125 | 4 | [] | no_license | import java.util.Scanner;
public class fibonacci {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num, sayi1 = 0, sayi2 = 1, sonuc = 0;
System.out.print("Kaç adet fibonacci sayısı görmek istersiniz: ");
num = input.nextInt();
System.out... | true |
9b5601270d265e82afeafdb4623f47473d53fb9c | Java | pingfuf/one_side_android | /app/src/main/java/com/oneside/ui/user/CustomerPageParam.java | UTF-8 | 433 | 1.578125 | 2 | [] | no_license | package com.oneside.ui.user;
import com.oneside.base.model.BasePageParam;
import com.oneside.model.beans.XUserPhysicalRecord;
/**
* Created by pingfu on 16-11-2.
*/
public class CustomerPageParam extends BasePageParam {
public String headerUrl;
public String name;
public String phone;
public String ... | true |
884732db240fe52fb9a3e5fbdffb9681220a637a | Java | pineapple126/StaffingSystem | /src/com/icss/StaffingSystem/servlet/EditEmployeeServlet.java | GB18030 | 2,893 | 2.4375 | 2 | [] | no_license | package com.icss.StaffingSystem.servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.icss.StaffingSystem.entity.Dep;
import com.... | true |
9473b514257d8b3cb0c7efdd7cf28172f45b1411 | Java | moderateepheezy/NetBeans-Project | /Learning Sockets/src/learning/sockets/HighPortScanner.java | UTF-8 | 1,066 | 3.359375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package learning.sockets;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
/**
*Find out which of the ports at or
* above 1,024 seem to be hostin... | true |
5c9fcbe78fd5a1bf46ffad58d48b2855c93aed97 | Java | kphf1995cm/NIDClient | /src/main/java/com/cernet/model/TraceResult.java | UTF-8 | 5,041 | 1.929688 | 2 | [] | no_license | package com.cernet.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "NT_TRACE_RESULT")
public class Trace... | true |
c4a0f6c96d2467f80e2690914edaa0dbe4ca48f0 | Java | dkypham/bonjwAI_old | /src/army/Marine.java | UTF-8 | 242 | 2.734375 | 3 | [] | no_license | package army;
import bwapi.Unit;
public class Marine {
int ID;
Unit target;
public void assignTarget( Unit newTarget) {
target = newTarget;
}
public int getID() {
return ID;
}
public Unit getTarget() {
return target;
}
}
| true |
32f17d246a278ef61f47138cd83c66c0b43147d1 | Java | szabolcsGyorki/my-webroute | /src/com/codecool/webroute/Route.java | UTF-8 | 935 | 2.71875 | 3 | [] | no_license | package com.codecool.webroute;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.io.IOException;
import java.io.OutputStream;
public class Route implements HttpHandler {
private String response = "This is the response";
@Override
public void handle(HttpE... | true |
f8bd1fe4438aa53da76459a44b108ce9e553f585 | Java | aspineon/tdd-spring-boot-spock-example | /tdd-spring-boot-spock-example-api/src/main/java/com/github/retirement/Employee.java | UTF-8 | 229 | 1.914063 | 2 | [
"BSD-3-Clause"
] | permissive | package com.github.retirement;
import lombok.Data;
import java.time.LocalDate;
@Data
public class Employee {
private String firstName;
private String lastName;
private int age;
private LocalDate dateStarted;
}
| true |
e50e91847313081cd60b7507a32e7f29fb951631 | Java | paolo9921/museo | /src/main/java/it/uniroma3/siw/spring/service/ArtistaService.java | UTF-8 | 4,578 | 2.234375 | 2 | [] | no_license | package it.uniroma3.siw.spring.service;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.... | true |
142fce4fec6169caa32a469d5dad31679e480feb | Java | developerChina/chacar | /src/org/core/domain/location/LocationConstants.java | UTF-8 | 915 | 1.882813 | 2 | [] | no_license | package org.core.domain.location;
public class LocationConstants {
// 数据库表常量
//客户表
public static final String CLIENTTABLE="client";
//分组表
public static final String GROUPTABLE="group_info";
//用户表
public static final String USERTABLE="user";
//设备表
public static final String VEHICELTABLE="vehicel";
/... | true |
541b93bd8a71bd88a3207a70e86de150015c0479 | Java | Rishabh-Sharma11/DS-Algo-Codes | /src/Assignments/FormBiggestNumber.java | UTF-8 | 1,125 | 3.71875 | 4 | [] | no_license | package Assignments;
import java.util.Scanner;
public class FormBiggestNumber {
static Scanner scn=new Scanner(System.in);
public static void main(String args[]) {
int t=scn.nextInt();
for(int i=1;i<=t;i++) {
int n=scn.nextInt();
int[]arr=new int[n];
takeInput(arr);
formBigges... | true |
01f4f831c3bb53f1855f43f7aad4f1e675b96853 | Java | dxygithub/shiro-demo | /src/main/java/com/dxy/shirodemo/entity/BaseEntity.java | UTF-8 | 1,111 | 2.296875 | 2 | [] | no_license | package com.dxy.shirodemo.entity;
import cloud.gouyiba.core.annotation.Column;
import cloud.gouyiba.core.annotation.Create;
import cloud.gouyiba.core.annotation.Update;
import cloud.gouyiba.core.typehandler.IEnumTypeHandler;
import com.dxy.shirodemo.enumeration.DelFlagEnum;
import lombok.Data;
import java.io.Serializ... | true |
17add4e81171c92eb1bcdb9901d7eb2583c1a2bf | Java | GeorgePanaretos/Java-Essentials | /Code Projects/09.NumericValuesToStrings/src/com/example/java/Main.java | UTF-8 | 605 | 2.9375 | 3 | [
"MIT",
"Unlicense"
] | permissive | package com.example.java;
import java.text.NumberFormat;
public class Main {
public static void main(String[] args) {
int intValue = 42;
String frontInt= Integer.toString(intValue);
System.out.println(frontInt);
boolean boolValue = true;
String frontBool=Boo... | true |
02c69d1567831af5e6b9f6b3cabc317e3bc8de17 | Java | thiagomolin/hotelcalifornia | /src/hotel/util/UtilCredenciaisBD.java | UTF-8 | 876 | 2.6875 | 3 | [] | no_license | package hotel.util;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.JOptionPane;
import hotel.telas.setup.CredenciaisBD;
public class UtilCredenciaisBD {
public static String[] lerArquivoIni() {
String[] l... | true |
1453b34d21f342f46cbfe88b079457c926826fb5 | Java | avishekdas/sendkar | /sendkar-download-service/src/main/java/com/sendkar/download/model/DocDownloadDtls.java | UTF-8 | 1,269 | 2.21875 | 2 | [] | no_license | package com.sendkar.download.model;
import com.sendkar.download.model.audit.DateAudit;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Entity
@Table(name = "doc_download_map")
public class DocDownloadDtl... | true |
a771b70024502b1323d393215c69034eeb354aaa | Java | jorgediz/opengoss | /opengoss/platform/org.opengoss.platform.esper/src/net/esper/example/qos_sla/monitor/ErrorRateMonitor.java | UTF-8 | 1,143 | 2.03125 | 2 | [] | no_license | package net.esper.example.qos_sla.monitor;
import net.esper.client.*;
import net.esper.example.qos_sla.eventbean.OperationMeasurement;
import net.esper.event.EventBean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class ErrorRateMonitor
{
public ErrorRateMo... | true |
f3b5fa162b115c39cdf4da9c022a8659608dafb1 | Java | KoreaGuide/KoreaGuide_Server | /koreaguide-api/src/main/java/com/example/koreaguide/model/network/request/QuizResultDetailApiRequest.java | UTF-8 | 627 | 1.570313 | 2 | [] | no_license | package com.example.koreaguide.model.network.request;
import com.example.koreaguide.model.enumclass.TestResultStatus;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/*
* @author : Jisoo Kim
* @date: 2... | true |
c418cc01b827e038547353c91b2ed1ce9756b381 | Java | learnwithrajiv/DSAlgoCampaign | /src/LeetCodeSubmissions/AllFourElementsWithSumZero.java | UTF-8 | 3,189 | 3.578125 | 4 | [] | no_license | package LeetCodeSubmissions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class AllFourElementsWithSumZero {
public static void main(String[] args) {
display(fourSum(new int[]{1,0,-1,0,-2,2}, 0));
display(fourSum(new int[]{1000000000,1000000000,1000000000,1000... | true |
268445ee66b95c623f24f8b319fe5f2fa896a95d | Java | ZoneMo/com.tencent.mm | /src/com/tencent/mm/ui/chatting/cu.java | UTF-8 | 593 | 1.78125 | 2 | [] | no_license | package com.tencent.mm.ui.chatting;
import android.widget.FrameLayout.LayoutParams;
import android.widget.ImageView;
final class cu
implements Runnable
{
cu(ct paramct, o paramo) {}
public final void run()
{
iUt.doD.setLayoutParams(new FrameLayout.LayoutParams(-2, -2));
FrameLayout.LayoutParams loc... | true |
ea3937d766277fe1ff259444d47f9286d573caca | Java | longdt/vertx-orm-mysql | /src/main/java/com/github/longdt/vertxorm/repository/query/QueryFactory.java | UTF-8 | 19,865 | 2.734375 | 3 | [] | no_license | package com.github.longdt.vertxorm.repository.query;
import io.vertx.sqlclient.Tuple;
import io.vertx.sqlclient.impl.ArrayTuple;
import java.util.*;
/**
* <p>QueryFactory class.</p>
*
* @author Long Dinh
* @version $Id: $Id
*/
public class QueryFactory {
/** Constant <code>EMPTY_PARAMS</code> */
public ... | true |
a82c9c735b1037976352cf3f7a38aa3fd562f3d7 | Java | aygtech/chopsticks | /chopsticks-core-rocketmq-modern/src/main/java/com/chopsticks/core/rocketmq/modern/caller/BeanProxy.java | UTF-8 | 2,665 | 2.1875 | 2 | [] | no_license | package com.chopsticks.core.rocketmq.modern.caller;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.util.Collection;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.chopsticks.core.caller.InvokeResult;
import com.chopsticks.core.rocketmq.caller.impl... | true |
4704600a433ddd3603f2f70a03d20f7bf325f87e | Java | sd-2019-30238/assignment-1-Adidroid | /Assignment3/src/main/java/com/a2/springboot/web/Assignment2/Model/Services/DBAccess/BookService.java | UTF-8 | 1,301 | 2.578125 | 3 | [] | no_license | package com.a2.springboot.web.Assignment2.Model.Services.DBAccess;
import com.a2.springboot.web.Assignment2.Model.DAO.SessionUtil;
import com.a2.springboot.web.Assignment2.Model.DAO.impl.BookDAO;
import com.a2.springboot.web.Assignment2.Model.Data.Book;
import java.util.List;
public class BookService {
publi... | true |
f138ccb0f9af3fab4f7bf712f1bf16702b343b66 | Java | huandroid2019/services_examples | /servcieex1starter/src/main/java/com/example/servcieex1starter/RemoteServiceStarter.java | UTF-8 | 4,407 | 2.28125 | 2 | [] | no_license | package com.example.servcieex1starter;
import androidx.appcompat.app.AppCompatActivity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Message;
import android... | true |
f112b528a2f53540f10f6cea6e326c45828860db | Java | crystalDf/Legend-of-Heroes-Chapter-03-MyScrollView | /app/src/main/java/com/star/myscrollview/MyScrollView.java | UTF-8 | 2,865 | 2.34375 | 2 | [] | no_license | package com.star.myscrollview;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Scrolle... | true |
0ceecc6afb201965443433ca81ea70a68ceda9ad | Java | luispauloportelacoelho/designPatterns | /src/decorator/GunTarget.java | UTF-8 | 243 | 2.78125 | 3 | [] | no_license | package decorator;
public class GunTarget extends GunDecorator {
public GunTarget(Gun gun) {
super(gun);
}
@Override
public void build() {
super.build();
System.out.println("Add gun target");
}
}
| true |
0a9bd9a9d42b4e04b6bf090374f2b2b75030ffb1 | Java | jonathasjose/ficticiusclean | /src/main/java/br/com/ficticiusclean/helper/DateUtils.java | UTF-8 | 364 | 2.734375 | 3 | [] | no_license | package br.com.ficticiusclean.helper;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
public static int getYearFromDate(Date date) {
int result = -1;
if (date != null) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
result = cal.get(Cale... | true |
3989fc2ee4665627dac94e30c8cc8d98cd6783cf | Java | eclipse-ee4j/metro-jax-ws | /jaxws-ri/tools/wscompile/src/main/java/com/sun/tools/ws/wsdl/document/mime/MIMEMultipartRelated.java | UTF-8 | 1,746 | 1.6875 | 2 | [
"BSD-3-Clause",
"xpp",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"EPL-2.0",
"Apache-1.1",
"W3C",
"LicenseRef-scancode-generic-export-compliance",
"SAX-PD"
] | permissive | /*
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | true |
a9cb6d7f1c81eb63d07ace9f77113cc15b85966a | Java | BlackieZ/InvSolrCloudClient | /src/main/java/com/valueclickbrands/solr/util/InvFileUtil.java | UTF-8 | 2,210 | 2.5 | 2 | [] | no_license | package com.valueclickbrands.solr.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.HashSet;
import org.apache.log4j.Logger;
public class InvFile... | true |
bafff49f854eddd98d1778f92ef7948b326921f3 | Java | iron-ee/baseball-pivot-test | /src/main/java/com/cos/baseball/web/ballpark/dto/BallparkSaveReqDto.java | UTF-8 | 286 | 2.015625 | 2 | [] | no_license | package com.cos.baseball.web.ballpark.dto;
import com.cos.baseball.domain.ballpark.Ballpark;
import lombok.Data;
@Data
public class BallparkSaveReqDto {
private String parkName;
public Ballpark toEntity() {
return Ballpark.builder()
.parkName(parkName)
.build();
}
}
| true |
c0e40b5f1349e117e5de63443bdde1138d6689ce | Java | laoash/groups | /src/main/java/com/gdpi/groups/controller/ProductController.java | UTF-8 | 2,857 | 2.171875 | 2 | [] | no_license | package com.gdpi.groups.controller;
import com.gdpi.groups.pojo.PageResult;
import com.gdpi.groups.pojo.Product;
import com.gdpi.groups.pojo.Result;
import com.gdpi.groups.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import or... | true |
aabcea81b5d1c62eea993aa5a939056d15120399 | Java | gedrivera/HerdSheep | /src/com/shool/herdsheep/MainActivity.java | UTF-8 | 2,080 | 2.796875 | 3 | [] | no_license | package com.shool.herdsheep;
import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.Point;
import android.util.Log;
import android.view.Display;
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends Activity
{
... | true |
e7507ae0bd5c2e703fe05fdd29b235a205c63336 | Java | Strix-CZ/whoowns_simple | /src/cz/vutbr/stud/fit/xsimon13/whoowns/db/DBMap.java | UTF-8 | 3,944 | 2.546875 | 3 | [
"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")... | true |
f298d18d28ca1cca91a0a2afa1b801476602aea4 | Java | salser/IntroduccionSeguridad | /src/negocio/DatosFinancieros.java | UTF-8 | 1,215 | 2.53125 | 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 negocio;
import java.io.Serializable;
import java.util.List;
/**
*
* @author Henry Salazar Serrano
*/
public class DatosFi... | true |
a0f7522a517a06666a1939b4c622ffc04eabb35a | Java | jocimar-dev/orange-talents-01-template-proposta | /src/main/java/com/zup/proposta/proposta/PropostaResponse.java | UTF-8 | 875 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.zup.proposta.proposta;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zup.proposta.proposta.endereco.EnderecoResponse;
import java.math.BigDecimal;
public class PropostaResponse {
@JsonProperty
private String documento;
@JsonProperty
private String email;
@JsonPrope... | true |
7833dd584728e064218cfdc6807660d013ccb6a9 | Java | vickysongang/Founder | /WorkPlatformApplication/Model/src/com/zypg/cms/work/model/viewobject/theme/CmsThemeTreeTVOImpl.java | UTF-8 | 645 | 1.507813 | 2 | [] | no_license | package com.zypg.cms.work.model.viewobject.theme;
import oracle.jbo.server.ViewObjectImpl;
// ---------------------------------------------------------------------
// --- File generated by Oracle ADF Business Components Design Time.
// --- Wed Jul 30 19:40:57 CST 2014
// --- Custom code may be added to this c... | true |
78c1b1d9668760a03c42a4cfa590c49177217937 | Java | salmalandoulsi/microservicesSpringBoot | /productService/src/main/java/com/altran/product/controller/ProductController.java | UTF-8 | 2,924 | 2.4375 | 2 | [] | no_license | package com.altran.product.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import o... | true |
8f1116029cf35141a006d72eca6d3ffbdb3ba633 | Java | aliyun/aliyun-maxcompute-data-collectors | /table-api-tunnel-impl/src/test/java/com/aliyun/odps/cupid/table/v1/tunnel/impl/TableApiTunnelImplTest.java | UTF-8 | 8,145 | 1.953125 | 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 |
b1fada3787b8904532278a8167a7251a0e9bd161 | Java | youngJeezy858/Bitplomacy | /Bitplomacy/src/orders/BlankOrder.java | UTF-8 | 905 | 2.765625 | 3 | [] | no_license | package orders;
import org.newdawn.slick.Graphics;
import gameObjects.Territory;
/**
* The Class BlankOrder.
*/
public class BlankOrder extends Order{
/**
* Instantiates a new blank order.
*
* @param t the starting Territory
*/
public BlankOrder(Territory t) {
super(t);
command = "blank";
}
/* (n... | true |
7f54397b5cd30d0300341dbf2733bbcbfdf23c42 | Java | Denisa2020/EmailApp | /src/com/company/Email.java | UTF-8 | 3,964 | 3.34375 | 3 | [] | no_license | package com.company;
import java.util.Scanner;
public class Email {
private String firstName;
private String lastName;
private String department;
private String password;
private String email;
private int mailboxCapacity = 500;
private int defaultPasswordLength = 10;
private String al... | true |
b765ea216da3994a741ba5902d6737900801aa29 | Java | 921668753/SillyChildClient-Android | /SillyChildClient/app/src/main/java/com/sillykid/app/homepage/chartercustom/singletransport/SingleTransportContract.java | UTF-8 | 1,226 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.sillykid.app.homepage.chartercustom.singletransport;
import com.common.cklibrary.common.BasePresenter;
import com.common.cklibrary.common.BaseView;
/**
* Created by ruitu on 2016/9/24.
*/
public interface SingleTransportContract {
interface Presenter extends BasePresenter {
/**
* 单... | true |
0f4ce1c0f9407101f37e048d8f36a71b05112297 | Java | irina-yambatrova/Development-of-Interent-Applications | /1Lab/src/servlet/Film.java | UTF-8 | 163 | 1.773438 | 2 | [] | no_license | package servlet;
import java.util.Date;
public class Film {
public String Film;
public String Producer;
public float Rating;
public Date Year;
} | true |
397a15c7fafc29c026201c5e392c2d04466cacf0 | Java | sureshmungi/collections | /Enhancedforloop.java | UTF-8 | 617 | 3.390625 | 3 | [] | no_license | package capgemini.collections;
import java.util.ArrayList;
public class Enhancedforloop{
static void printArray(int intArr[]){
for(int arrayindex:intArr)
System.out.println(arrayindex);
}
static void printCollection(ArrayList arrList) {
for(Object object:arrList){
System.out.println(ob... | true |
293fa2f55c95db4130e5b59b67fdd57588887253 | Java | geosource-catalogue/core-geonetwork | /schemas/schema-core/src/main/java/org/fao/geonet/kernel/schema/CSWPlugin.java | UTF-8 | 317 | 1.671875 | 2 | [] | no_license | package org.fao.geonet.kernel.schema;
import org.jdom.Element;
import org.jdom.Namespace;
import java.util.Map;
public interface CSWPlugin {
/**
* Return the list of typenames and corresponding
* namespace for the plugin.
*
* @return
*/
Map<String, Namespace> getCswTypeNames();
}
| true |
1f0ce19a58846c6e75270d524c9a3832e315b10c | Java | FabianAndiel1985/JAVA-first-semester-Technikum | /objectOrientatedHomework/Exercise3/src/com/company/Zeitschrift.java | UTF-8 | 707 | 2.640625 | 3 | [] | no_license | package com.company;
public class Zeitschrift extends BibItem {
private Person herausgeber;
private String reihe;
public Zeitschrift(String bibid, String titel, Position position, int veroeffentlichungsjahr) {
super(bibid, titel, position, veroeffentlichungsjahr);
}
public Person getHerau... | true |
ab1665bc37462cf634e52d3dc03f954820da07b1 | Java | gallidev/PaintballPro | /src/physics/MouseListener.java | UTF-8 | 1,098 | 2.921875 | 3 | [] | no_license | package physics;
import gui.GUIManager;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
/**
*
* This class handles the positions and click events from the mouse.
*
* @author Filippo Galli
* @author Sivarjuen Ravichandran
*
*/
public class MouseListener implements EventHandler<M... | true |
cc502f3138728baf1130107512d2fdf7d46c9ac7 | Java | BhaveshTadikonda/DFS-2 | /Decode string.java | UTF-8 | 1,059 | 3.125 | 3 | [] | no_license | // Time complexity 0(n)
// space complexity 0(n)
// code successfully executed in leetcode
class Solution {
public String decodeString(String s) {
Stack <Integer> num = new Stack<>();
Stack <String> st = new Stack<>();
int currNum =0;
String currstr = "";
for(int i=0;i<s.len... | true |
b4b473ebc7bb7e9bf18e3df7911a297f4f1a8703 | Java | vln986/java8 | /Durga_java8/src/com/durga/common/sort/search/BubbleSort.java | UTF-8 | 711 | 3.5 | 4 | [] | no_license | package com.durga.common.sort.search;
import java.util.Arrays;
public class BubbleSort {
public static void main(String args[]) {
int[] arr = {45,34,2,3,45,44,44,34,34,56};
System.out.println("before sorting : ");
Arrays.stream(arr).forEach(a -> System.out.print(a+ " "));
bubbleSort(arr);
System.ou... | true |
96e412f90fef436b605ff42bd1194fdbb6e987f0 | Java | awaludinhamid/FOCUS | /src/java/com/safasoft/treeweb/service/impl/SupportServiceImpl.java | UTF-8 | 2,645 | 1.828125 | 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 com.safasoft.treeweb.service.impl;
import com.safasoft.treeweb.bean.support.ColumnProp;
import com.safasoft.treeweb.bean.supp... | true |
920a6b534f59ebf4aa65e2f7bb0723f9b404fb0c | Java | pTalanov/JavaHomeWorks | /task5/src/ru/spbau/talanov/task5/Map.java | UTF-8 | 927 | 3.515625 | 4 | [] | no_license | package ru.spbau.talanov.task5;
import java.util.ArrayList;
import java.util.List;
/**
* A function which maps each element of input sequence using passed function to element of output list.
*
* @param <F> input sequence element type.
* @param <T> output list element type.
*/
public final class Map<F, T> extends... | true |
a6564fd189551040f1e89989ca7fcd58c181dfcc | Java | sandeepm1987/Conversion | /src/main/java/com/momentum/conversion/service/ConversionService.java | UTF-8 | 921 | 2.390625 | 2 | [] | no_license | package com.momentum.conversion.service;
import com.momentum.conversion.Model.ConvertModel;
import com.momentum.conversion.config.ConversionException;
import com.momentum.conversion.helper.Constants;
import com.momentum.conversion.helper.ConversionHelper;
public interface ConversionService {
Constants.Service get... | true |
48b17a0b691c622a4dbfd473fdf684b7f2758e6d | Java | lemberg/connfa-android | /app/src/main/java/com/ls/ui/activity/StateActivity.java | UTF-8 | 831 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.ls.ui.activity;
import com.ls.drupalcon.model.Model;
import com.ls.drupalcon.model.UpdatesManager;
import android.content.ComponentCallbacks2;
import android.support.v7.app.AppCompatActivity;
public class StateActivity extends AppCompatActivity {
private static boolean wasInBackground = false;
... | true |
621ce0a955ecf9befc0aa7775daf411135d7eb80 | Java | xueyinhao/sts_web | /src/test/java/SSLTest.java | UTF-8 | 5,067 | 2.328125 | 2 | [] | no_license | import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.HashMap;
im... | true |
d30e62c6efa4a7344585e2213bcc5b17995d7501 | Java | EricMartinezFernandez/ud4-poo | /05_grupo_alumnos/05_grupo_alumnos/src/com/Billy/Grupo.java | UTF-8 | 742 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | package com.Billy;
public class Grupo {
private int alumno = 0;
private String nombre;
private String apellido;
private String dni;
private String telefono;
Alumno[] alumnos = new Alumno[5];
public void IntroducirDatos(String nombre, String apellido, String dni, String telefono... | true |
92e079fdf218b2eb9eea6dc3c412d3296d4e788a | Java | Squaar/Tic-Tac-Toe | /src/Player.java | UTF-8 | 2,362 | 3.46875 | 3 | [
"MIT"
] | permissive | import java.awt.Point;
import java.util.ArrayList;
public class Player{
private char symbol;
private char opponent;
private int expandedNodes;
public Player(char symbol){
this.symbol = symbol;
if(symbol == 'X')
this.opponent = 'O';
else
this.opponent = 'X';
this.expandedNodes = 0;
}
public char ... | true |
6a4a8ffc84736160c3aba5c8471a61f76286a203 | Java | Mr-Roy1/CoreJava | /Method/src/com/Product/Product.java | UTF-8 | 145 | 1.914063 | 2 | [] | no_license | package com.Product;
public class Product {
String name = "Mobile";
int price = 5000;
String color = "Black";
String ramcapacity = "8";
}
| true |
205515433eb7d37bdad6fe2df33b229891c00306 | Java | khx1712/java_remind | /src/chapter9/practice5/HeapSort.java | UTF-8 | 293 | 2.53125 | 3 | [] | no_license | package chapter9.practice5;
public class HeapSort implements Sort{
@Override
public void ascending(int[] arr) {
System.out.println("Heap Sort ascending");
}
@Override
public void descending(int[] arr) {
System.out.println("Heap Sort descending");
}
}
| true |
b5d1548bb82e65c94738f9f18a11a73935f7183c | Java | zsiddiqui2/ConnectFour | /ConnectFour/src/main/java/ch/hszt/connectfour/util/GuiHelper.java | UTF-8 | 2,099 | 3.015625 | 3 | [] | no_license | /**
*
*/
package ch.hszt.connectfour.util;
import java.awt.Window;
import javax.swing.JOptionPane;
import ch.hszt.connectfour.model.enumeration.DialogResult;
/**
* Simple utility class for straightforward implementation of some message / info / error boxes.
* @author Markus Vetsch
* @version 1.0, 13.11.2011
... | true |
b11d39b9650e07188d41367b4e81111b180468cf | Java | socialite-lang/socialite | /src/java/socialite/codegen/QueryCodeGen.java | UTF-8 | 12,302 | 1.84375 | 2 | [] | no_license | package socialite.codegen;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.stringtemplate.v4.ST;
import org.stringtemplate.v4.STGroup;
import socialite.parser.*;
import socialite.parser.antlr.ColumnGroup;
import socialite.tables.QueryVisitor;
import socialite.tables.TableUtil;
... | true |
7084db4b2717ce91e745e7ae72274f8383d44662 | Java | robotpepperbsc/PepperBSc-Android | /app/src/main/java/com/example/pepperpilot/fragments/DisplayOnScreenFragment.java | UTF-8 | 5,125 | 2.046875 | 2 | [] | no_license | package com.example.pepperpilot.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
imp... | true |
3ff707ceadce77b4cd3140a7c67124f35f769819 | Java | Luizgustavo358/PID | /app/src/main/java/com/example/pid/MainActivity.java | UTF-8 | 38,053 | 1.539063 | 2 | [] | no_license | package com.example.pid;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.gra... | true |