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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ba6bf2c396ffe25e7fa7cd9efdcf73f86a2a193f | Java | samijan/opsCloud | /cmdb-domain/src/main/java/com/sdg/cmdb/domain/server/ServerVO.java | UTF-8 | 9,567 | 1.953125 | 2 | [] | no_license | package com.sdg.cmdb.domain.server;
import com.sdg.cmdb.domain.ip.IPDetailVO;
import java.io.Serializable;
/**
* Created by zxxiao on 16/9/23.
*/
public class ServerVO implements Serializable {
private static final long serialVersionUID = -70862472925821073L;
private long id;
private ServerGroupDO se... | true |
8901030581440dd0ef0885fc7586cdc5ea6d744a | Java | bcdasilv/topicxp_extension | /ldaTopics_Bruno_v2/src/edu/wm/LDATopics/LDA/LDATopicMap.java | UTF-8 | 26,345 | 1.796875 | 2 | [] | no_license | package edu.wm.LDATopics.LDA;
import jgibblda.*;
import java.io.*;
import java.lang.reflect.Array;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSe... | true |
6516fd821fc42d5a22c1115327cbeddc06cc3a92 | Java | mwhitlock1219/Backend-Springboot_Capstone | /src/main/java/com/tts/stream/service/UserService.java | UTF-8 | 370 | 1.960938 | 2 | [] | no_license | package com.tts.stream.service;
import java.util.List;
import com.tts.stream.model.Movie;
import com.tts.stream.model.User;
import org.springframework.stereotype.Service;
@Service
public class UserService {
public void addMovieToWatchlist(User user, Movie movie) {
// List<Movie> watchList = user.getWat... | true |
4f965720e3fe0faab5b6571550b1eba0853a6eb0 | Java | 7nights/smgpapi | /src/cn/com/zjtelecom/smgp/message/ActiveTestRespMessage.java | UTF-8 | 719 | 2.03125 | 2 | [] | no_license | package cn.com.zjtelecom.smgp.message;
import cn.com.zjtelecom.smgp.protocol.RequestId;
import cn.com.zjtelecom.util.TypeConvert;
public class ActiveTestRespMessage extends Message{
public ActiveTestRespMessage(){
int len = 12;
this.buf = new byte[len];
TypeConvert.int2byte(len, this.buf, ... | true |
21a1ec932a82e4b0709359112e3318bdd361949e | Java | roq-messaging/RoQ | /roq-clientlib/src/main/java/org/roqmessaging/clientlib/factory/IRoQConnectionFactory.java | UTF-8 | 1,721 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2012 EURANOVA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, so... | true |
b3bcd6ff00d976eb85bb35b48776366a34161ae5 | Java | magefree/mage | /Mage.Sets/src/mage/cards/a/AwakenTheErstwhile.java | UTF-8 | 2,760 | 2.765625 | 3 | [
"MIT"
] | permissive | package mage.cards.a;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.token.ZombieToken;
import mage.players.Player;
i... | true |
f5901a69fcf98b35bc14730dda5f81946695f0a8 | Java | Noah981107/FootballMatching_API | /src/main/java/domain/Comment.java | UTF-8 | 1,934 | 2.28125 | 2 | [] | no_license | package domain;
import javax.validation.constraints.NotNull;
public class Comment {
@NotNull(groups = {ValidationGroups.commentModification.class, ValidationGroups.commentDeletion.class }, message = "댓글 번호는 비워둘 수 없습니다.")
protected String id;
protected String writer;
@NotNull(groups = {ValidationGro... | true |
49f5900db5c77862fa7e9ca2009b7dd21ae8f783 | Java | bucsistvan/vehicle | /vehicle-frontend/src/main/java/hu/ulyssys/java/course/javaee/demo/mbean/PlaneCRUDMBean.java | UTF-8 | 986 | 2.0625 | 2 | [] | no_license | package hu.ulyssys.java.course.javaee.demo.mbean;
import hu.ulyssys.java.course.javaee.demo.vehicle.entity.Owner;
import hu.ulyssys.java.course.javaee.demo.vehicle.entity.Plane;
import hu.ulyssys.java.course.javaee.demo.vehicle.service.OwnerService;
import hu.ulyssys.java.course.javaee.demo.vehicle.service.PlaneServ... | true |
038fce9e718e3a45d16bb3bde040446451a35f43 | Java | EricGerry/Code | /牛客/BullMarket.java | UTF-8 | 1,651 | 3.890625 | 4 | [] | no_license | /**
* @Author:Eric
* @Date:2020/4/12 22:47
*/
/*
* 风口的猪-中国牛市
*
* 风口之下,猪都能飞。当今中国股市牛市,真可谓“错过等七年”。
* 给你一个回顾历史的机会,已知一支股票连续n天的价格走势,以长度为n的整数数组表示,数组中第i个元素(prices[i])代表该股票第i天的股价。
* 假设你一开始没有股票,但有至多两次买入1股而后卖出1股的机会,并且买入前一定要先保证手上没有股票。
* 若两次交易机会都放弃,收益为0。 设计算法,计算你能获得的最大收益。
* 输入数值范围:2<=n<=100,0<=prices[i]<=100
* 示例1... | true |
6640f9dde7493c5194ef873b7e85619e6881fb57 | Java | inchara1990/TextEditor_JAVA | /Savelistener.java | UTF-8 | 2,654 | 3.0625 | 3 | [] | no_license |
/*
* Author: Inchara Diwakar
* Date: November 17th
* Class: Savelistener
* Description: This class implements Actionlistener interface and performs the file save operation
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.BufferedWriter;
imp... | true |
f78777fdd2e982c2e5e1f12cfed842522df6df94 | Java | TristanMauvieux/sgp-api | /src/main/java/dta/sgp/controller/CollaborateurController.java | UTF-8 | 3,110 | 2.28125 | 2 | [] | no_license | package dta.sgp.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework... | true |
a50df64c28bd70b0936e7bcf7b01062985c3fafa | Java | kayresbug/onorder_admin_dnk | /app/src/main/java/com/daon/admin_onorder/ServiceDialog.java | UTF-8 | 3,766 | 2.1875 | 2 | [] | no_license | package com.daon.admin_onorder;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;
import android.widget.T... | true |
5d5f74ed3509e1b42d4641101b0ca0a0cbee1410 | Java | remotesyssupport/platformlayer | /services/service-jenkins/src/main/java/org/platformlayer/service/jenkins/ops/HudsonScrambler.java | UTF-8 | 532 | 2.40625 | 2 | [] | no_license | package org.platformlayer.service.jenkins.ops;
import org.platformlayer.crypto.CryptoUtils;
/**
* Supports password obfuscation in the way that Hudson does it
*/
public class HudsonScrambler {
public static String scramble(String secret) {
if (secret == null) {
return null;
}
return CryptoUtils.toBase64(C... | true |
f1a8357a275da77d578d398df3a54d43cb0bb190 | Java | thecheesynachos/zork_game | /src/main/java/muic/ooc/zork/character/monsters/BossMonster.java | UTF-8 | 1,380 | 3.140625 | 3 | [] | no_license | package muic.ooc.zork.character.monsters;
import muic.ooc.zork.character.Character;
import muic.ooc.zork.gameplay.AttackObject;
import muic.ooc.zork.gameplay.Observation;
public class BossMonster extends Monster {
private static final int BOSS_MAX_HEALTH = 40;
private static final int BOSS_MAX_ATTACK = 9;
private... | true |
10a4015d14d9532304d95cbd8c355ff113394040 | Java | ashwani29/Sensors | /src/main/java/com/example/coding/sensor/MainActivity.java | UTF-8 | 3,019 | 2.28125 | 2 | [] | no_license | package com.example.coding.sensor;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.const... | true |
6d101de4d63abe53b5ef09b6759ca623be1a7d29 | Java | vhavryk/videostore | /src/main/java/com/test/domain/MovieTypePrice.java | UTF-8 | 2,834 | 2.4375 | 2 | [] | no_license | package com.test.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.io.Serializable;
/**
* A MovieTypePrice.
*/
@Entity
@Table(name = "movie_type_price")
@C... | true |
553e73ac20bfe50e559c53d12d8a16cf0afaf3b0 | Java | Abrahamlong/MyBatis-Study | /mybatis-07/src/main/java/com/longg/mapper/StudentMapper.java | UTF-8 | 482 | 2.171875 | 2 | [] | no_license | package com.longg.mapper;
import com.longg.pojo.Student;
import java.util.List;
/**
* @author long
* @date 2020/9/25
*/
public interface StudentMapper {
/**
* 查询所有学生的信息,以及对于老师的信息 方式一:按照查询嵌套处理
*/
public List<Student> getStudent1();
/**
* 查询所有学生的信息,以及对于老师的信息 方式二:按照结果嵌套处理
*/
p... | true |
e80a947f7b67f737cc097fcc140c38c4562c44c7 | Java | mP1/walkingkooka-tree-json | /src/main/java/walkingkooka/tree/json/marshall/JsonNodeMarshallContexts.java | UTF-8 | 1,349 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
92f4c0571a2e932f476012f125beb39bbda7ce2d | Java | rprasathg/cdgen | /src/org/eclipse/app4mc/cdgen/utils/fileUtil.java | UTF-8 | 9,461 | 1.859375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2019 Dortmund University of Applied Sciences and Arts and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available... | true |
4c919c5786b20cfede97887934b96f5418fa936f | Java | smartictcoop/SmartDental | /src/main/java/com/smict/all/model/PatFileModel.java | UTF-8 | 379 | 2.125 | 2 | [
"Unlicense"
] | permissive | package com.smict.all.model;
import com.smict.person.model.BranchModel;
public class PatFileModel extends BranchModel {
String patHn, fileId;
public String getPatHn() {
return patHn;
}
public void setPatHn(String patHn) {
this.patHn = patHn;
}
public String getFileId() {
return fileId;
}
public void... | true |
d0b962779387012039c811ac14b905f03e6e4d01 | Java | sergeibux/bankonetAdvanced | /src/main/java/com/CESI/accessingdatamysql/Entity/CompteEpargne.java | UTF-8 | 1,004 | 2.3125 | 2 | [] | no_license | package main.java.com.CESI.accessingdatamysql.Entity;
import main.java.com.CESI.accessingdatamysql.Entity.Compte;
import main.java.com.CESI.accessingdatamysql.Repository.ClientRepository;
import main.java.com.CESI.accessingdatamysql.Repository.CompteCourantRepository;
import javax.persistence.Entity;
import javax.per... | true |
91da316bda75a17b145415056ef90b6976cf2b10 | Java | nguyentrungngoc1997/Cong2So | /src/test/java/MyBigNumberTest.java | UTF-8 | 277 | 2.75 | 3 | [] | no_license | package myjava.mybignumber;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class MyBigNumberTest
{
@Test
void testSum()
{
MyBigNumber myClass = new MyBigNumber();
String sum = myClass.sum("1", "2");
assertEquals("3", sum);
}
} | true |
07cbc78a6a670517af30f2d4b0cc033c99367aaa | Java | Rovanion/AinORM | /main/java/gov/polisen/orm/examples/CaseExample.java | UTF-8 | 38,954 | 2.140625 | 2 | [] | no_license | package gov.polisen.orm.examples;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CaseExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cases
*
* @mbggenerated Fri Apr 25 17:12:46 CEST 2014
... | true |
f4b63c0d5a900e14b37cebdd8fe38bd214927bb3 | Java | dmsthf2605/Object-Oriented-Programming-Java | /Workshop3/lab3/mandatory/TestUncheckedException.java | UTF-8 | 1,565 | 3.984375 | 4 | [] | no_license | package lab3.mandatory;
class UnexpectedUserInputException extends Exception{
public UnexpectedUserInputException(){
super();
}
public UnexpectedUserInputException(String msg){
super(msg);
}
}
public class TestUncheckedException {
public static void test(int num) thro... | true |
732be47bc871bb2201b22295024091709ca5f07d | Java | guoguocai/Design-Pattern | /src/com/guoguocai/decorator/demo/Client.java | UTF-8 | 1,468 | 3.34375 | 3 | [] | no_license | package com.guoguocai.decorator.demo;
import com.guoguocai.decorator.demo.component.Person;
import com.guoguocai.decorator.demo.fineryimp.*;
/**
* 客户端
*
* @auther guoguocai
* @date 2018/12/25 22:35
*/
public class Client {
public static void main(String[] args) {
Person person = new Pe... | true |
e08132fd0fe126ab8ecf172bdcd89163de88aa95 | Java | alexdaixin2010/AndroidStudioProjects | /BusinessApp/app/src/main/java/com/foodymon/businessapp/service/PaymentService.java | UTF-8 | 3,275 | 2.046875 | 2 | [] | no_license | package com.foodymon.businessapp.service;
import android.support.annotation.Nullable;
import com.foodymon.businessapp.constant.Constants;
import com.foodymon.businessapp.datastructure.LiteOrderList;
import com.foodymon.businessapp.datastructure.LitePaymentList;
import com.foodymon.businessapp.datastructure.Order;
imp... | true |
4906f5c84755dbcc45302239e71b74f23be106c4 | Java | fabiocasado/Capstone | /app/src/main/java/com/fcasado/betapp/participants/BetParticipantsActivity.java | UTF-8 | 4,280 | 1.960938 | 2 | [] | no_license | package com.fcasado.betapp.participants;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.util.Pair;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.R... | true |
c80c4bb42fe3ddae2f63385720533e4900878604 | Java | DeepKandey/design-patterns | /src/main/java/com/seleniumdesign/executearound/MainPage.java | UTF-8 | 1,542 | 2.375 | 2 | [] | no_license | package com.seleniumdesign.executearound;
import java.util.function.Consumer;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class MainPage {
private final WebDriver driver;
... | true |
7c29c473fce7035f03ecdfabd24970a41f050cd6 | Java | liujie1206/1712 | /src/main/java/com/liujie/beans/Goods.java | UTF-8 | 2,265 | 2.40625 | 2 | [] | no_license | package com.liujie.beans;
public class Goods {
private Integer gid ;
private String gname;
private String ename;
private Integer size;
private double price;
private Integer num;
private String label;
private String picture;
private Brand brand;
private Goodskind goodskind ;
public Goods(Integer... | true |
19de7bbb1474a39fee61ea722c69430f9fa07a61 | Java | ping2ravi/jpmorgan-test1 | /CodingInterviewQuestions/src/main/java/com/jpmorgan/gce/interview/batch/PrintingDownloader.java | UTF-8 | 562 | 2.5 | 2 | [] | no_license | package com.jpmorgan.gce.interview.batch;
public class PrintingDownloader implements Downloader {
public void download(DownloadRequest request) {
if(request.getGroupID() == null){
System.out.println("Downloading request for account: "
+ request.getAccountID().getAccountCode()... | true |
428be3eec95c63801e6bbac510837ce33633c328 | Java | SuFarther/spring-example | /spring-aop-aspectj/src/main/java/com/company/aspect1/MyAspect.java | UTF-8 | 10,802 | 3.015625 | 3 | [] | no_license | package com.company.aspect1;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import java.util.Date;
/**
* @author 苏东坡
* @version 1.0
* @ClassName MyAspect
* @company 公司
* @Description 切面类
* @Aspect: 是aspect框架中的注解
* 作用: 表示当前类是切面类
* 切面类: 是用来... | true |
2bb83ac55d278cc14589e5862045d542b08d79d7 | Java | TruiGo/AndroidDevelopSpace | /StudyProject/src/com/gtr/studyproject/nfc/NFCAsyncReaderNdef.java | UTF-8 | 1,399 | 2.3125 | 2 | [] | no_license | package com.gtr.studyproject.nfc;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.Tag;
import android.nfc.tech.Ndef;
import com.xiaotian.framework.common.Mylog;
/**
* @version 1.0.0
* @author Xiao... | true |
07b54ee5584b73684b56ef80b7dda00760f09160 | Java | YOUSSEFHARGAM/Gestion-de-Stock-en-JAVA | /cachier.java | UTF-8 | 36,606 | 1.804688 | 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 projet_youtube_produit;
import BDD.Parameter;
import BDD.ResultSetTableModel;
import BDD.db_connection;
import java.sql.Resu... | true |
e4bbea7d6b20d8d2806d828013344871237c6574 | Java | mpriyankdev/socialmedia | /src/main/java/com/socialmedia/service/IFollowerFolloweeHandlingService.java | UTF-8 | 273 | 1.890625 | 2 | [] | no_license | package com.socialmedia.service;
import java.util.Set;
public interface IFollowerFolloweeHandlingService {
boolean follow(String followerId, String followeeId);
boolean unfollow(String followerId, String followeeId);
Set<String> followees(String userId);
}
| true |
35acc45389df457ecc54a0feccb91f996e0b0574 | Java | MaNarOdEh/Institute-Management-Project | /app/src/main/java/com/example/pccorner/finalproject/methodsRequiredMoreThanOnce.java | UTF-8 | 988 | 3.15625 | 3 | [] | no_license | package com.example.pccorner.finalproject;
import java.util.Random;
public class methodsRequiredMoreThanOnce {
public static String generatePassword(){
String pass="";
String ALLPossible="aAbBEeRrTtYyUu$%&#*123896574JjKkLlMmNnBbVvCcXxZz";
int index=0;
for(int i=0;i<6;i++){
... | true |
e7aef4ac0acfbe61713e91b193b0688f83b3dabc | Java | adwait140/SchemaManager | /src/main/java/com/unbxd/SchemaManager/services/SchemaService.java | UTF-8 | 799 | 2.171875 | 2 | [] | no_license | package com.unbxd.SchemaManager.services;
import com.unbxd.SchemaManager.exceptions.SchemaServiceException;
import com.unbxd.SchemaManager.models.Field;
import com.unbxd.SchemaManager.models.SiteSchema;
public interface SchemaService {
public void addNewSchema(SiteSchema schema) throws SchemaServiceException;
... | true |
e0257d812982db3e3aef3585eb77cc573ac6adf7 | Java | folio-org/mod-quick-marc | /src/main/java/org/folio/qm/service/ChangeManagerService.java | UTF-8 | 741 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package org.folio.qm.service;
import java.util.UUID;
import org.folio.qm.domain.dto.InitJobExecutionsRqDto;
import org.folio.qm.domain.dto.InitJobExecutionsRsDto;
import org.folio.qm.domain.dto.ParsedRecordDto;
import org.folio.qm.domain.dto.ProfileInfo;
import org.folio.qm.domain.dto.RawRecordsDto;
public interface ... | true |
2ec5ff4e70672bca98573f4325de843c2ceb641f | Java | CVAndroid/CVAndroid | /app/src/main/java/com/soulmatexd/cvandroid/SlidingMain/SlidingMain.java | UTF-8 | 3,392 | 2.46875 | 2 | [] | no_license | package com.soulmatexd.cvandroid.SlidingMain;
import android.content.Context;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.ScrollView;
/... | true |
5d86a4d13d3ee0778abe6132bf2d526c26353794 | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/com/tencent/mm/c/b/f.java | UTF-8 | 541 | 1.695313 | 2 | [] | no_license | package com.tencent.mm.c.b;
public abstract class f {
protected boolean aUP = false;
protected int aUQ = 0;
protected int aUc = -123456789;
protected a aUt;
public interface a {
void c(int i, byte[] bArr);
}
public abstract void an(boolean z);
public abstract void oT();
... | true |
754b795a07b77291d5d0d24c334c14e638b1a7cd | Java | bitrise-io/trace-android-sdk | /trace-test-application/src/main/java/io/bitrise/trace/testapp/network/BaseNetworkActivity.java | UTF-8 | 3,485 | 2.40625 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package io.bitrise.trace.testapp.network;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import io.bitrise.trace.tes... | true |
e0f7f5af109d32541beffdeb18792fc711b38531 | Java | plenio/TC | /app/src/main/java/com/example/transcamb/MainActivity.java | UTF-8 | 3,040 | 2.015625 | 2 | [] | no_license | package com.example.transcamb;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import com.example.transcamb.costantes.Constants;
import com.example.transcamb.utils.SharedPref;
import c... | true |
4a194efba020b9d0f520ccd1ed1c4ab7d2c5512a | Java | swapnilbera/Chat-App | /app/src/main/java/com/example/chatapp/myadapter.java | UTF-8 | 1,961 | 2.265625 | 2 | [] | no_license | package com.example.chatapp;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.f... | true |
17164656faf6a24e82c8d32a002ba30e8394b18f | Java | ansar010/Fundoo-BackEnd | /FundooNote/src/main/java/com/bridgelabz/fundoo/note/services/NoteServiceImp.java | UTF-8 | 23,979 | 1.632813 | 2 | [] | no_license | /****************************************************************************************
* purpose : .
*
*@author Ansar
*@version 1.2
*@since 18/12/2018
****************************************************************************************/
package com.bridgelabz.fundoo.note.services;
import java.io.... | true |
a44cdea90538dc0b3c406794b4e976eeff6902f5 | Java | IntelNetwork/taskcenter | /taskcenter-dal/src/main/java/org/smartwork/dal/entity/ZGTaskTag.java | UTF-8 | 1,229 | 2.015625 | 2 | [] | no_license | package org.smartwork.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.enums.SqlKeyword;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.forbes.comm.annotations.QueryColumn;
import org.forbes.co... | true |
07a70142a16c444e123c318a1154bcb37c838402 | Java | gabrielsr/ltsa | /stoch-fsp/src/main/java/ic/doc/simulation/sim/ClockCondition.java | UTF-8 | 4,536 | 2.59375 | 3 | [] | no_license | /******************************************************************************
* LTSA (Labelled Transition System Analyser) - LTSA is a verification tool *
* for concurrent systems. It mechanically checks that the specification of a *
* concurrent system satisfies the properties required of its behaviour. ... | true |
8934104cfaec0c67dd977e2c2f1f0a9c3ccbe24b | Java | ilyasziyaoglu/andriambavy-backend | /src/main/java/com/andriambavy/ecom/common/property/db/repository/PropertyRepository.java | UTF-8 | 383 | 1.59375 | 2 | [] | no_license | package com.andriambavy.ecom.common.property.db.repository;
import com.andriambavy.ecom.common.basemodel.db.repository.BaseRepository;
import com.andriambavy.ecom.common.property.db.entity.Property;
import org.springframework.stereotype.Repository;
/**
* @author Ilyas Ziyaoglu
* @date 2020-04-18
*/
@Repository
pu... | true |
a9a22979946337a614273c7261890f5d6658634c | Java | kevinarditya/graphql | /src/main/java/com/btpn/chips/mskevingraphql/wallets/WalletService.java | UTF-8 | 1,384 | 2.1875 | 2 | [] | no_license | package com.btpn.chips.mskevingraphql.wallets;
import com.btpn.chips.mskevingraphql.kafka.model.WalletCreationModel;
import com.btpn.chips.mskevingraphql.kafka.service.KafkaProducerService;
import com.btpn.chips.mskevingraphql.users.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |
a08ba76ea264b3f641aa0472f2e6799c707f59f6 | Java | rashadsaif/aden-univ | /src/main/java/com/adenuniv/repo/YearRepository.java | UTF-8 | 208 | 1.585938 | 2 | [] | no_license | package com.adenuniv.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import com.adenuniv.model.Year;
public interface YearRepository
extends JpaRepository<Year, Long>{
}
| true |
9890fca6950f35e6bce43544cc1fd68249c48177 | Java | Bkonuskan/Java2021 | /src/day35/C01_RentApartments.java | UTF-8 | 1,197 | 2.875 | 3 | [] | no_license | package day35;
public class C01_RentApartments {
private String name;
private int roomCount;
private boolean balconyOrNo;
private int kira;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getRoom... | true |
2d03df4753dc164498f52b747db96c8e36971a12 | Java | sunilreddyg/Project_184_10AM_Sep_2020 | /Project_184/src/ui_verification_commands/Runtime_page_Source.java | UTF-8 | 2,017 | 2.78125 | 3 | [] | no_license | package ui_verification_commands;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Runtime_page_So... | true |
a321c7e5bb579799b18afe8d577592bbe8b25189 | Java | pph-zhiyi/app-server | /src/test/java/com/pph/demo/effective/other/entity/stack/Stack.java | UTF-8 | 1,829 | 3.421875 | 3 | [] | no_license | package com.pph.demo.effective.other.entity.stack;
import java.util.Arrays;
import java.util.Collections;
import java.util.EmptyStackException;
import java.util.List;
/**
* @author PPH
* @date 2019-06-10 18:21
* @description
*/
public class Stack {
// public static final String[] STRINGS_ARR = {};
pri... | true |
45cb06d454157cf016b82b9433895fddc32d844e | Java | Hiteshsukhwani29/Shopkart | /src/main/java/com/example/shopkart/Main3Activity.java | UTF-8 | 3,817 | 1.984375 | 2 | [] | no_license | package com.example.shopkart;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Intent;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
i... | true |
a588d05e3ed6a431be8e402780b762e371ae7b6f | Java | It-fang/Optimize | /TeacherAppointmentSystem/src/com/itfang/www/ui/BaseServlet.java | UTF-8 | 3,356 | 2.53125 | 3 | [] | no_license | package com.itfang.www.ui;
import com.fasterxml.jackson.databind.ObjectMapper;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.InvocationTarge... | true |
1219d6302daee2f35c547fdc52013e9dff8a504e | Java | jmrives/Zillow | /src/main/java/com/spiral/zillow/formatter/XmlFormatter.java | UTF-8 | 521 | 2.484375 | 2 | [] | no_license | package com.spiral.zillow.formatter;
public abstract class XmlFormatter {
private int indentation;
public XmlFormatter(int indentation) {
this.indentation = indentation;
}
public abstract String format(String xml);
public String format(String xml, int indentation) {
setIndentatio... | true |
30a9dfa31d9f8cce8aac7a5970ae02586582c6df | Java | prameshmca5/javatestprog | /src/main/java/com/ramesh/springboot/designpattern/Prototype/PrototypeDesignPattern.java | UTF-8 | 1,023 | 3.84375 | 4 | [] | no_license | package com.ramesh.springboot.designpattern.Prototype;
public class PrototypeDesignPattern {
public static void main(String[] args) throws CloneNotSupportedException {
System.out.println("***Prototype Pattern Demo***\n");
BasicCar nano = new NanoCar();
nano.setModelName("Nano Car");
... | true |
0dd6d25d43ce6d4a4881d51bd6543f508bb71f04 | Java | BrotherJ/texture | /src/texture/client/TextureParam.java | GB18030 | 12,112 | 1.671875 | 2 | [] | no_license | package texture.client;
import java.util.List;
import texture.domain.Material;
public class TextureParam {
public TextureParam(){
}
public TextureParam(String zcz, String luhao, Double zc, Double zsi,
Double zmn, Double zp, Double zs, Double zcr, Double zni,
Double zmo, Double zcu, Double zv, Double z... | true |
6058ff68f611dcb5ec8135bcd57ae8eba2327d99 | Java | Harry12901/OOP_PROJECT | /Controller.java | UTF-8 | 16,112 | 3.125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class Controller {
//
//ARRAY LIST:
static ArrayList<Road> Roads = new ArrayList<>();
static ArrayList<Junction> Junctions = new ArrayList<>();
static ArrayList<Traffic_Police> TrafficPolice = new ArrayList<>();
static ArrayList<Police_Statio... | true |
15ea180faaa1ab1cde5b8bb02283528ecd5a80f3 | Java | amalatesta/OAFramework | /tutorial/jdevhome/jdev/myprojects/oracle/apps/fnd/framework/toolbox/samplelib/server/PurchaseOrderHeadersVORowImpl.java | UTF-8 | 5,025 | 1.78125 | 2 | [] | no_license | /*===========================================================================+
| Copyright (c) 2001 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| ... | true |
b263c57c9d6b45059c0171596915798fbde84401 | Java | beomhyun/homework | /hw_algo_08/hwalgo08.java | UTF-8 | 1,708 | 3.15625 | 3 | [] | no_license | package hwalgo08_3반_김범현;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
public class hwalgo08 {
public static Node nn = null;
public static void main(String[] args) throws IOException {
BufferedReader br = ne... | true |
4c771e29fb54767c323723404c8010a2241f3022 | Java | lovehoroscoper/multi-engine | /src/main/java/com/baidu/unbiz/multiengine/endpoint/EndpointPool.java | UTF-8 | 4,291 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.baidu.unbiz.multiengine.endpoint;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.c... | true |
4f83ee20b1f4832ad618e07a9a4ba1405fef422e | Java | SimoneBaselicePolimi/ingswAM2021-Baselice-Bagnoli-Brugnano | /src/main/java/it/polimi/ingsw/server/modelrepresentation/gameitemsrepresentation/leadercardrepresentation/ServerDevelopmentCardColourAndLevelRequirementRepresentation.java | UTF-8 | 1,262 | 2.5625 | 3 | [] | no_license | package it.polimi.ingsw.server.modelrepresentation.gameitemsrepresentation.leadercardrepresentation;
import com.fasterxml.jackson.annotation.JsonProperty;
import it.polimi.ingsw.server.model.gameitems.developmentcard.DevelopmentCardColour;
import it.polimi.ingsw.server.model.gameitems.developmentcard.DevelopmentCardLe... | true |
aebb3151b2778ac62a9019db99eae71281970120 | Java | GhqstMC/FreeRPG | /src/main/java/mc/carlton/freerpg/gameTools/ActionBarMessages.java | UTF-8 | 646 | 2.46875 | 2 | [
"MIT"
] | permissive | package mc.carlton.freerpg.gameTools;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.entity.Player;
public class ActionBarMessages {
private Player p;
public ActionBarMessages(Player p) {
this.p = p;
}
public void sendMessage(Stri... | true |
a0af807eb8d6cb9ea41da558b0d9363a5af5f1e6 | Java | jimmyfever/Algorithms | /TopInterviews/CopyListWithRandomPointer138.java | UTF-8 | 1,136 | 3.65625 | 4 | [] | no_license | import java.util.*;
public class CopyListWithRandomPointer138 {
public static void main(String[] args){
}
class RandomListNode {
int label;
RandomListNode next, random;
RandomListNode(int x) { this.label = x; }
}
public RandomListNode copy(RandomListNode head){
if(head == null){
return... | true |
f4b4b9838357137f6d1db048ef6254a4943a5c30 | Java | hcen1997/web-car | /java/src/main/java/cc/hcen/model/U.java | UTF-8 | 115 | 1.671875 | 2 | [
"MIT"
] | permissive | package cc.hcen.model;
public class U {
public static String getImg(String img){return C.imgDir+"/"+img;}
}
| true |
0bfb9314b19d8a539671d69b15af431e05b70613 | Java | VizPass/vizpass-android | /app/src/main/java/com/google/android/gms/samples/vision/face/facetracker/User.java | UTF-8 | 560 | 2.359375 | 2 | [] | no_license | package com.google.android.gms.samples.vision.face.facetracker;
/**
* Created by jonahchin on 2017-12-02.
*/
public class User {
private String first_name;
private String key;
private String title;
public User(String firstName, String key, String title) {
this.first_name = firstName;
... | true |
0981bc5f4963b17963ad9fba65ea914d26e0af33 | Java | zhiyanglu/LeetCode-Java | /GasStation.java | UTF-8 | 1,301 | 3.65625 | 4 | [] | no_license | /**
* There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
* You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations.
* Return the starting... | true |
c504acdfa12d81bae51148081a71da55e8ad2316 | Java | lixinye99/Travel | /src/main/java/cn/itcast/travel/web/servlet/MyFavoriteServlet.java | UTF-8 | 2,241 | 2.21875 | 2 | [] | no_license | package cn.itcast.travel.web.servlet;
import cn.itcast.travel.domain.Route;
import cn.itcast.travel.service.impl.FavoriteService;
import cn.itcast.travel.service.impl.RouteDetailService;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import j... | true |
e9e7633659a78149439fa1ee1c80e8a24e0b2c20 | Java | zhn-github/next_film | /src/main/java/com/next/zhn/film/dao/mapper/FilmHallFilmInfoTMapper.java | UTF-8 | 398 | 1.570313 | 2 | [] | no_license | package com.next.zhn.film.dao.mapper;
import com.next.zhn.film.dao.entity.FilmHallFilmInfoT;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 影厅电影信息表 Mapper 接口
* </p>
*
* @author zhn
* @since 2020-03-27
*/
@Repository
public interface FilmHal... | true |
e80f7505fb67de0b05d5bf5b1a66937bb15d471f | Java | yerayfl/MoneyCalculater | /src/Control/CalculateCommand.java | UTF-8 | 1,706 | 2.859375 | 3 | [] | no_license | package Control;
import Model.Currency;
import Model.ExchangeRate;
import UserInterface.MoneyDialog;
import UserInterface.MoneyViewer;
import UserInterface.CurrencyDialog;
import Model.Money;
import Model.Number;
import Persistence.ExchangeRateLoader;
import Persistence.FileExchangeRateLoader;
public clas... | true |
f7dc2a112598b8b14ed2f2ed92bc8d195c27d403 | Java | RaymondCC123/geo_enrichment_tweet | /src/resources/crf/Corpus.java | UTF-8 | 2,666 | 2.671875 | 3 | [] | no_license | /**
*
*/
package crf;
/**
* Load corpus from files
*/
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import edu.cmu.minorthird.text.*;
public class Corpus {
private MutableTextBase tb;
private MutableTextLabels tl;
/**
* Load a labeled corpus without specif... | true |
37d2b909f8dda478998acfcbbaf75beeeb7a29d1 | Java | junzLiu/BaseAndroid2 | /src/com/baseandroid/assist/tools/NetUtil.java | UTF-8 | 4,437 | 2.6875 | 3 | [] | no_license | package com.baseandroid.assist.tools;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* net util
... | true |
4494418b9ae307148ace404d235d0af99d351e91 | Java | TestCodeDZ/CompareCode | /Sistema/SGTMTR/src/sgtmtr/vehiculos.java | UTF-8 | 43,191 | 2.171875 | 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 sgtmtr;
import static claseConectar.ConexionConBaseDatos.conexion;
import java.awt.Toolkit;
import java.awt.event.KeyAdapter;
... | true |
b7fe4ddc6ffe2c98fc2c56561ebba07520938b11 | Java | natann4755/oldGibuy | /Java - 6/Lesson 3/Functions/src/com/homWork/src/com/company/Other/Main2.java | UTF-8 | 312 | 2.59375 | 3 | [] | no_license | package com.company.Other;
import com.company.Animal;
import com.company.Dog;
public class Main2 {
public static void main(String[] args) {
Dog S=new Dog();
S.setAge(7);
System.out.println(S);
Cat K=new Cat();
K.setAge(7);
System.out.println(K);
}
} | true |
e9472bf37ccf44c0f4571594420782cdd9649cef | Java | koksharov1998/IWatched | /src/main/java/com/example/IWatched/services/RatingService.java | UTF-8 | 1,129 | 2.21875 | 2 | [] | no_license | package com.example.IWatched.services;
import com.example.IWatched.db.Movie;
import com.example.IWatched.db.Rating;
import com.example.IWatched.repos.RatingRepository;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public c... | true |
011043d3301aef27630ded9ec6f09deb4a0ae7fa | Java | ArmanMikayelovich/java-io | /src/main/java/com/energizeglobal/internship/FileServiceImpl.java | UTF-8 | 3,900 | 3.015625 | 3 | [] | no_license | package com.energizeglobal.internship;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.Date;
import java.util.Objects;
public class FileServiceImpl implements FileService {
@Override
public String seeProperties(String filename) {
File file = new ... | true |
78e9e235d5ffae31c1ffc742ba551e8f96b296ef | Java | Camavilca/anayacitamedica | /src/main/java/com/camavilca/controllers/citamedica/CitaMedicaController.java | UTF-8 | 4,005 | 2.125 | 2 | [] | no_license | package com.camavilca.controllers.citamedica;
import com.camavilca.model.CitaMedica;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.util.List;
import org.springframework.beans.factory.a... | true |
bad7849c6898bbdee53138304f9856384ef0f91c | Java | vinodjagwani/xyz-vehicle-monitoring | /vehicle-monitoring-consumer/src/main/java/com/xyz/vehicle/monitoring/entity/redis/CurrentVehicleStatusEntity.java | UTF-8 | 557 | 1.703125 | 2 | [] | no_license | package com.xyz.vehicle.monitoring.entity.redis;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.redis.core.RedisHash;
import java.io.Serializable;
/**
* Created by vinodjagwani on 22/01/19.
*/
@Data
@RedisHash
@NoArgsConstructor
@AllArgsConstr... | true |
f41243d1d391a936d0c01acae11e1fbe505003a5 | Java | GourishettySairam/GourishettySairam_DesignPatterns | /DesignPatterns/src/main/java/com/epam/behavioralPatterns/IChoice.java | UTF-8 | 86 | 2.015625 | 2 | [] | no_license | package com.epam.behavioralPatterns;
public interface IChoice
{
void MyChoice();
}
| true |
baf2bb9d060d39e4573cfb36f18915ef8c8966ab | Java | anacosic85/Java-GUI | /EstateAgentsGUI.java | WINDOWS-1252 | 13,988 | 2.984375 | 3 | [] | no_license | /*GUI program to add, view and search properties
*/
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javaf... | true |
2b17d8df24d16faeece35a9ae022ca1b8a6d346b | Java | betul-sahin/patika-java-backend-web-development | /java101/src/kosulluifadeler/SinifiGecmeDurumu.java | UTF-8 | 1,119 | 2.9375 | 3 | [] | no_license | package kosulluifadeler;
import java.util.Scanner;
public class SinifiGecmeDurumu {
public static void main(String[] args) {
int matematik, fizik, kimya, turkce, muzik;
Scanner scan = new Scanner(System.in);
System.out.println("Ders sayisini ve " +
"sirasiyla notlarinizi(m... | true |
1863a39e916b93e295017df8855023729e76cda8 | Java | SigmaVEC/OAS | /WEB-INF/src/signoutServlet.java | UTF-8 | 730 | 2.390625 | 2 | [] | no_license | import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class signoutServlet extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException {
res.setContentType("text/html");//setting the content type
HttpSession sessi... | true |
beedad1c6fb9f643a3bc05e6e8d50f27576afc90 | Java | Bekz7/design-patterns | /src/main/java/pl/bekz/factories/fruitmarket_abstractfactory/FruitMarket.java | UTF-8 | 1,378 | 3.3125 | 3 | [] | no_license | package pl.bekz.factories.fruitmarket_abstractfactory;
import pl.bekz.factories.fruitmarket_abstractfactory.exception.NoSuchFruit;
import pl.bekz.factories.fruitmarket_abstractfactory.factories.FruitFactory;
import pl.bekz.factories.fruitmarket_abstractfactory.fruits.*;
public class FruitMarket {
private String ... | true |
48b68dfc65148971288ee1bb836c9bd0367bd555 | Java | suggitpe/java-gui | /mercury/src/test/java/org/suggs/apps/mercury/model/util/xml/DomParserTest.java | UTF-8 | 6,314 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /*
* DomParserTest.java created on 9 Dec 2008 19:35:38 by suggitpe for project GUI - Mercury
*
*/
package org.suggs.apps.mercury.model.util.xml;
import org.suggs.apps.mercury.model.util.MercuryUtilityException;
import org.suggs.apps.mercury.model.util.file.impl.FileManager;
import org.suggs.apps.mercury.mo... | true |
c391a2ae50d081ca2316717982ed3af201ca90fd | Java | alexandrefett/Vendi | /app/src/main/java/com/vendi/Utils.java | UTF-8 | 1,524 | 2.59375 | 3 | [] | no_license | package com.vendi;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.RectF;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Created by Alexandre on 19/07/2016.
*/
public class Utils {
public static void CopyStream(InputStream is, OutputStream os)
{
... | true |
69ad0c3fe850a3649f8fc759d70a9f5721db81cb | Java | yusupscopes/java-name-sorter | /SortLastNames.java | UTF-8 | 2,683 | 3.75 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class SortLastNames {
/**
* Sort names by last name.
... | true |
25489587a1c06a9058dc5a3f87f2d37a6ea02dfe | Java | afique13/Data-Structure | /src/main/java/TUT02/Q1.java | UTF-8 | 1,217 | 3.484375 | 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 TUT02;
/**
*
* @author Owner
*/
//public class Q1<K,V> {
//
// private K a;
// private K b;
// ... | true |
68d404627044cb3082cf0ae0329c7ad30c811c46 | Java | aj2694/Java-Programs | /Seedbook/src/tcp/Tcp_server.java | UTF-8 | 2,078 | 2.984375 | 3 | [] | no_license | package tcp;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.Serve... | true |
b3af1d9a1e2f3e1b5415119019a390ebf47bf5b7 | Java | nevercaution/cachedTest | /src/main/java/com/nevercaution/cached_test/controller/PersonController.java | UTF-8 | 710 | 2.34375 | 2 | [] | no_license | package com.nevercaution.cached_test.controller;
import com.nevercaution.cached_test.model.Person;
import com.nevercaution.cached_test.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
... | true |
db888698b8fa0872e3721e4e506a1d42f2170f7e | Java | scarlet25151/leetcodesolution | /binaryNumberInLinkedList.java | UTF-8 | 401 | 3.140625 | 3 | [] | no_license | public class binaryNumberInLinkedList {
public class SinglyLinkedListNode {
int data;
SinglyLinkedListNode next;
}
public long getNumber(SinglyLinkedListNode binary) {
// Write your code here
long res = 0;
while (binary != null) {
res = (res << 1) + bina... | true |
d871f8ef1a70f7a25f1ca7d3271c4086b3fded83 | Java | daymou/CLPN | /PIPE-4.3.2/src/main/java/pipe/modules/reachability/ReachabilityGraphGenerator.java | UTF-8 | 24,428 | 2.1875 | 2 | [] | no_license | package pipe.modules.reachability;
import java.awt.Checkbox;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.text.DecimalFormat;
import java.util.*;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JOptionP... | true |
fce5afe5682a6c38640f9e839cbc3a2ac945e5ae | Java | qq9630232/Management | /app/src/main/java/com/example/freightmanagement/presenter/TrainingPresenter.java | UTF-8 | 1,575 | 2 | 2 | [] | no_license | package com.example.freightmanagement.presenter;
import com.example.freightmanagement.Base.BaseApiConstants;
import com.example.freightmanagement.Base.BasePresenter;
import com.example.freightmanagement.Utils.Network.OnRequestResultForCommon;
import com.example.freightmanagement.Utils.Network.RestApi;
import com.examp... | true |
742a8fd1296ebd9d075541647a745d7364fa9cb7 | Java | yusufjiruwala/channelPOS13 | /src/com/forms/panels/frmDelivery.java | UTF-8 | 76,938 | 1.640625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* frmDelivery.java
*
* Created on Apr 16, 2014, 3:42:01 PM
*/
package com.forms.panels;
import com.forms.MainFrame;
import com.forms.lovDialog;
import com.generic.model.Row;
import com.generic.model.localTableMo... | true |
6a74200f0773ebf6c347b4169714e9e5b6af355b | Java | adamjshook/nimbus | /Nimbus/src/main/java/nimbus/client/CacheletNotConnectedException.java | UTF-8 | 750 | 2.625 | 3 | [] | no_license | package nimbus.client;
import java.io.IOException;
public class CacheletNotConnectedException extends IOException {
private static final long serialVersionUID = -4964573321449493981L;
private Exception parent = null;
private String id;
public CacheletNotConnectedException(String host) {
this(host, null);
... | true |
014eb38b4d2b3edec3904f30d3a23535fb982bcd | Java | napile/napile.classpath | /jmx/src/main/java/javax/management/Attribute.java | UTF-8 | 1,959 | 2.5 | 2 | [
"LicenseRef-scancode-mx4j",
"BSD-2-Clause"
] | permissive | /*
* Copyright (C) The MX4J Contributors.
* All rights reserved.
*
* This software is distributed under the terms of the MX4J License version 1.0.
* See the terms of the MX4J License in the documentation provided with this software.
*/
package javax.management;
import java.io.Serializable;
/**
* @version $Rev... | true |
f664c0b94d0fb9b97258b17a289f6995349a6ef1 | Java | k957304/kong-wallet | /src/main/java/game/external/GiftServiceFallback.java | UTF-8 | 295 | 2.203125 | 2 | [] | no_license | package game.external;
import org.springframework.stereotype.Component;
@Component
public class GiftServiceFallback implements GiftService {
@Override
public void exchange(Gift gift) {
System.out.println("Circuit breaker has been opened. Fallback returned instead.");
}
} | true |
2d39095ab114c1c2914aa981f704451ad7fb730f | Java | kentsong/java | /designPattern/src/note/pattern/structural/Decorator/sample/drink/product/IceCreamRedTeaDrink.java | BIG5 | 705 | 2.875 | 3 | [] | no_license | package note.pattern.structural.Decorator.sample.drink.product;
import java.util.ArrayList;
import note.pattern.structural.Decorator.sample.drink.AbstractDrink;
import note.pattern.structural.Decorator.sample.material.IMaterial;
import note.pattern.structural.Decorator.sample.material.IceCream;
import note.pat... | true |
8fc7791e9182f4f05526f8240fdcbb88b5c32942 | Java | alexeicoreiba/B07GoochiBankApp | /GoochiBankApp/app/src/main/java/com/bank/Interest.java | UTF-8 | 3,363 | 2.421875 | 2 | [] | no_license | package com.bank;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
im... | true |
710ed334104395e7cf0f2b255cdcd8ac9193403b | Java | MariaDrenovichka/AmazonTask | /src/core/Browser.java | UTF-8 | 689 | 2.234375 | 2 | [] | no_license | package core;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class Browser {
public static WebDriver driver;
public static void start() {
System.setProperty("webdriver.chrome.dri... | true |
143299556fe4a02a0f0b883250030f4a4383a049 | Java | XiShanYongYe/CZsProjects | /Effa/src/PnmlPanel.java | UTF-8 | 1,089 | 2.484375 | 2 | [] | no_license | import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class PnmlPanel extends JPanel {
private s... | true |
7ec7fe423479c758fd7d7866e4fff723ac680458 | Java | user654name/1010MyCode | /src/com/core/io/stream/io/stream/CopyCompare.java | UTF-8 | 3,348 | 3.5625 | 4 | [] | no_license | package com.core.io.stream.io.stream;
import java.io.*;
/*
把d:\\**.mp4复制到当前项目目录下的copy.mp4中
四种方式比较复制效率
1. 普通一次读写一个字节
2. 普通流一次读写一个字节数组
3. 缓冲流一次读写一个字节
4. 缓冲流一次读写一个字节数组
copyFileByte duration: 117936
copyBuffedByte duration: 556
copyFileBytes dura... | true |