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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6188e7bc82f9ad3d9c727d582c8521277b3a7f51 | Java | mkaouer/Code-Smells-Detection-in-JavaScript | /JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362855/quickfix-1.7.0/quickfix-1.7.0/src/java/src/quickfix/field/TransBkdTime.java | UTF-8 | 303 | 1.648438 | 2 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package quickfix.field;
import quickfix.UtcTimeStampField;
import java.util.Date;
public class TransBkdTime extends UtcTimeStampField
{
public static final int FIELD = 483;
public TransBkdTime()
{
super(483);
}
public TransBkdTime(Date data)
{
super(483, data);
}
}
| true |
5bc722f24f294df581c7641b13de494cd8431049 | Java | fradkinshtein/2.2.1spring-hibernate | /src/main/java/hiber/dao/UserDaoImp.java | UTF-8 | 1,155 | 2.53125 | 3 | [] | no_license | package hiber.dao;
import hiber.model.User;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import java.util.List;
@Repository
public class UserD... | true |
75dc1fc60bfa8b9e5a3fc7c89ddba50a223d5c41 | Java | GennadiyO/otpcodeservice | /src/main/java/com/igwines/exceptions/CodeNotValidException.java | UTF-8 | 174 | 2.171875 | 2 | [] | no_license | package com.igwines.exceptions;
public class CodeNotValidException extends RuntimeException {
public CodeNotValidException() {
super("Code not valid");
}
}
| true |
e245be0ee0c1d4892496921bdc3acefec940857e | Java | sxysxys/Fireman_helper- | /app/src/main/java/com/rescue/hc/enums/HttpStatusCode.java | UTF-8 | 640 | 2.484375 | 2 | [] | no_license | package com.rescue.hc.enums;
/**
* @author DevCheng
* @description
* @date 2018/07/14
*/
public enum HttpStatusCode {
SERVICE_ERROR(500, "服务器发生错误"),
ADDRESS_NOT_EXIST(404, "请求地址不存在"),
SERVICE_REFUSE(403, "请求被服务器拒绝"),
;
private int code;
private String msg;
public int getCode() {
r... | true |
3dda78c32fefe2285d9a5579c2a078f784960f57 | Java | juelianzhiren/my_sdk | /app/src/main/java/com/ztq/sdk/widget/MyScrollView.java | UTF-8 | 803 | 2.203125 | 2 | [] | no_license | package com.ztq.sdk.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;
import com.ztq.sdk.utils.PrintUtils;
/**
* Created by Danny 姜.
*/
public class MyScrollView extends ScrollView {
private static final String TAG = "no... | true |
7f8148d732a8d56bf2cc96580d4d25dd108c138c | Java | loggar/java | /src/main/java-patterns/com/loggar/pattern/singleton/LazyThreadSafeSingleton.java | UTF-8 | 456 | 2.921875 | 3 | [] | no_license | package com.loggar.pattern.singleton;
/**
* Lazy Creation of Singleton ThreadSafe Instance without Using Synchronized Keyword
*
*/
public class LazyThreadSafeSingleton {
private LazyThreadSafeSingleton() {
}
private static class HoldInstance {
private static final LazyThreadSafeSingleton INSTANCE ... | true |
833ea6483b696d5b7ad54de5f35a63cdb21f276d | Java | JameryLin/PoemAPP | /app/src/main/java/com/example/poemapp/Adapter/CreateCardFJAdapter.java | UTF-8 | 3,290 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.poemapp.Adapter;
import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.poemapp.Database.Creat... | true |
dbe9b4212a3c493e2f987e09ae67884d0b813072 | Java | gultekinmsg/javasamples | /teennumberchecker/src/main/java/com/gultekinmsg/teennumberchecker/Main.java | UTF-8 | 761 | 3.5 | 4 | [] | no_license | package com.gultekinmsg.teennumberchecker;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println(hasTeen(9, 99, 19));
System.out.println(hasTeen(23, 15, 42));
System.out.println(hasTeen(22, 23, 34));
System.out.println("****... | true |
bc8986256cd805a2f743a93ee7d93f2b1555a26b | Java | tgapps/android | /org/telegram/ui/ChannelEditInfoActivity$$Lambda$19.java | UTF-8 | 748 | 1.734375 | 2 | [] | no_license | package org.telegram.ui;
import org.telegram.tgnet.TLObject;
import org.telegram.tgnet.TLRPC.TL_error;
final /* synthetic */ class ChannelEditInfoActivity$$Lambda$19 implements Runnable {
private final ChannelEditInfoActivity arg$1;
private final String arg$2;
private final TL_error arg$3;
private fin... | true |
dbd575d7214ddedaee496ea8fc7328221da45695 | Java | meta-bhavika-mathur/GET2018 | /EADAssignment1/src/com/connection/Employee.java | UTF-8 | 1,744 | 3.03125 | 3 | [] | no_license | package com.connection;
public class Employee
{
String firstName, lastname, emailId;
int employeeId, age;
// Constructor for employee class
public Employee(String firstName, String lastName, String emailId, int age)
{
this.firstName = firstName;
this.lastname = lastName;... | true |
3532f42102037fcdf19390135f181afc68cb1f6c | Java | rincexwind/Heimdal | /config-store/jersey/src/main/java/com/heimdal/config/store/service/rest/controller/PropertiesResource.java | UTF-8 | 1,381 | 2.171875 | 2 | [
"MIT"
] | permissive | /**
* Heimdal Project
* Copyright (c) 2014 Grant Gortsema, All Rights Reserved.
*/
package com.heimdal.config.store.service.rest.controller;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.springframework.beans... | true |
0f7c0599c2a2b2a399fec274d266ab623f241729 | Java | SeasunAmin/Java_codes | /JavaCodes/src/OOP/Static_Variable.java | UTF-8 | 654 | 3.46875 | 3 | [] | no_license |
package OOP;
public class Static_Variable
{
String name;
int id;
static String uvname = "NUB";
Static_Variable(String n,int i)
{
name = n;
id = i;
}
void display()
{
System.out.println("Name : "+name);
System.out.println("ID : "+id);
... | true |
1f196ae292cd3c0cb3e0d0d6cc5dea8b717baee7 | Java | Yashsb28/JAVA | /Packages_and_Methods.java | UTF-8 | 392 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
int mins;
int years;
int days;
System.out.println("Enter no. of minutes : ");
Scanner s = new Scanner(System.in);
mins = s.nextInt();
years = mins/(60*24*365);
days = (mins/60/24)%365;
System.out.println(mins + " m... | true |
e281799e337f3873b2c9eeaad674502b7c7273bc | Java | Pandaroid/DesignPatterns-Practice | /src/test/java/com/pandaroid/dps/singleton/regist/ThreadLocalSingleton.java | UTF-8 | 3,006 | 2.96875 | 3 | [] | no_license | package com.pandaroid.dps.singleton.regist;
public class ThreadLocalSingleton {
private ThreadLocalSingleton() {}
/*private static final ThreadLocal<ThreadLocalSingleton> threadLocalSingletonInstance = new ThreadLocal<ThreadLocalSingleton>() {
@Override
protected ThreadLocalSingleton initialVa... | true |
2079c75e6dab5ad54c5fe1c978d781e7f3360ddb | Java | Jiangxuewu/MyDemo3 | /sms/src/main/java/com/bb_sz/sms/test/TestActivity.java | UTF-8 | 1,777 | 2.265625 | 2 | [] | no_license | package com.bb_sz.sms.test;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import android.widget.Toast;
import com.bb_sz.sms.R;
import java.util.ArrayList;
import java.util.List;
public class TestActivity extends AppCompatActivity {
private ListView l... | true |
33af213ac7ecfce318e956a8d0852b4446cc8eb4 | Java | m-kuczabinski-rd/ecFeedBackup | /ecfeed/test/com/ecfeed/core/generators/AbstractGeneratorTest.java | UTF-8 | 15,948 | 2.265625 | 2 | [] | no_license | /*******************************************************************************
*
* Copyright (c) 2016 ecFeed AS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 ... | true |
44b85b8de645c94bc43c8663b9a5ed140b635ee3 | Java | yy18695807783/MobileActivity | /app_my/src/main/java/com/atguigu/mobileactivity/adapter/RecycleAdapter.java | UTF-8 | 14,852 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.atguigu.mobileactivity.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import an... | true |
282d55cac7553b0c1b6d85ac5269c48b77a36876 | Java | RaspInLoop/docker-board-emulation | /emulator-simulator-proxy/src/main/java/org/raspinloop/emulator/proxyserver/simulation/Board.java | UTF-8 | 3,166 | 2.09375 | 2 | [] | no_license | package org.raspinloop.emulator.proxyserver.simulation;
import org.raspinloop.emulator.fmi.ClassLoaderBuilderFactory;
import org.raspinloop.emulator.fmi.FmiReferenceRegister;
import org.raspinloop.emulator.fmi.GsonProperties;
import org.raspinloop.emulator.fmi.HardwareBuilderFactory;
import org.raspinloop.emulator.fmi... | true |
96c640d95e80d7d014afaabd59cb0337ae5b1764 | Java | NamedJack/fastBedroom | /app/src/main/java/com/ejar/fastbedroom/mystore/bean/TabCenterBean.java | UTF-8 | 2,424 | 2.375 | 2 | [] | no_license | package com.ejar.fastbedroom.mystore.bean;
import java.io.Serializable;
import java.util.List;
/**
* Created by json on 2017/8/31.
*/
public class TabCenterBean {
/**
* msg : 请求成功
* code : 100
* data : [{"id":1,"name":"体育","pId":0,"image":"/assets/upload/goods_stype/97c93611-f233-4d66-a0b5-d984... | true |
5907f6b4224f1805ace01f47ce5ce41a014afdd7 | Java | srinivasulupurini/ASP | /src/main/java/com/ofs/spark/sparkpoc/SparkBootstrap.java | UTF-8 | 1,284 | 2.671875 | 3 | [] | no_license | package com.ofs.spark.sparkpoc;
import java.util.List;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import scala.Tuple2;
/**
* Spark BootStrap
*
*/
/**
* @author Srini
*
*/
public... | true |
7556723cd532aa596d57cc3f6a3f7193557a33d9 | Java | Ecopigpig/airnet02 | /service-common/src/main/java/model/pollutant/PollutionSite.java | UTF-8 | 767 | 2.28125 | 2 | [] | no_license | package model.pollutant;
import java.io.Serializable;
/**
* 城市底下的污染检测点
*/
public class PollutionSite implements Serializable {
private static final long serialVersionUID = -5667194913415998127L;
/**
* 污染检测点
*/
private String siteName;
/**
* 基本污染指数模型
*/
private PollutionEpi... | true |
1d18115e49450dacfb091947001f0e77b334e815 | Java | nkapasi123/GeneralStore | /src/test/java/practice/AppiumFramework/APIDemo.java | UTF-8 | 1,546 | 1.804688 | 2 | [] | no_license | package practice.AppiumFramework;
import java.io.IOException;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import pageObjects.HomePage;
import pageObjects.Pref;
public class API... | true |
e5ae76c5317df20b50d9af764e8b6ab270eabe2e | Java | yingjianhua/srdz | /src/main/java/irille/wxpub/js/JMScanQRCode.java | UTF-8 | 798 | 1.976563 | 2 | [] | no_license | package irille.wxpub.js;
import irille.pub.Log;
public class JMScanQRCode extends JMBase<JMScanQRCode> {
public static final Log LOG = new Log(JMScanQRCode.class);
protected JsFldInt _needResult;
protected JsFldStr[] _scanType;
public JsFldInt getNeedResult() {
return _needResult;
}
public void setNeedResult(... | true |
809fce652292f00c7349cfe9817cada6706747b2 | Java | ksurendra/acs-aem-commons | /bundle/src/main/java/com/adobe/acs/commons/images/transformers/impl/RGBShiftImageTransformerImpl.java | UTF-8 | 4,810 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2013 Adobe
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | true |
1ba1219c98559dcd3cffd34519a69faf6c50dd4f | Java | ossaw/jdk | /src/javax/lang/model/type/package-info.java | UTF-8 | 690 | 1.695313 | 2 | [] | no_license | /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/**
* Interfaces used to model Java programming language types.
* <p>
* Unless otherwise specified in a particular implementation, the collections
* returned b... | true |
1a439188dc5ae2d98117bf29bdbe1ba144459bfb | Java | immibis/BCR | /common/buildcraft/factory/TileTank.java | UTF-8 | 7,302 | 2.234375 | 2 | [] | no_license | /**
* Copyright (c) SpaceToad, 2011
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.factory;
import net.minecra... | true |
19dff34e13b26fc490e830030839f5b2e9e0bb7c | Java | imravi76/Smart-Meter | /app/src/main/java/com/dei/app/arduinofirebase/CardActivity.java | UTF-8 | 1,471 | 2.28125 | 2 | [] | no_license | package com.dei.app.arduinofirebase;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.github.anastr.speedviewlib.SpeedView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.datab... | true |
d377ea023624e813176238424241889b464a91dd | Java | BCxTIM/engage_web_dev | /src/test/java/model/LoginModel.java | UTF-8 | 494 | 2.421875 | 2 | [] | no_license | package model;
/**
* Created by tmoiseev on 10/31/2016.
*/
public class LoginModel {
private String email;
private String password;
public LoginModel setPassword(String password) {
this.password = password;
return this;
}
public String getPassword() {
return password;
... | true |
ba240fe4a7cfd6367a43e96efea4c539f20572f6 | Java | marioRodriguez6/Portafolio_MJRM_00131819_POO-0120 | /Semana01_Actividad01/carro clase y obj/src/com/MJRM/x00131819/Main.java | UTF-8 | 889 | 3 | 3 | [] | no_license | package com.MJRM.x00131819;
import java.sql.SQLOutput;
public class Main {
public static void main(String[] args) {
carro ds;
ds = new carro();
ds.iniciando();
ds.enseñando();
String marca = ds.enseñarMarca();
String color = ds.enseñarColor();
int año = ds.enseñarAño... | true |
0387173893f5733d2ceeb4ca4a216f7b29a247b8 | Java | vinayak0792/cs6301.g44 | /SP1/SORT.java | UTF-8 | 2,353 | 3.703125 | 4 | [] | no_license | /** Short Project 1: Contains all the sort methods
* @author Akshay Rawat, Amrut Suresh , Gokul Surendra, Vinayaka Raju Gopal
*
*/
package cs6301.g44;
public class Sort {
//merge function for integer mergesort
static void merge(int[] arr, int[] tmp, int low, int mid, int high) {
int k = low;
int j = mi... | true |
7fcf03227d81a688770acb7fad4ccf60c3e4f3a3 | Java | Romman/MEDS | /server/src/main/java/org/meds/net/handlers/SellItemCommandHandler.java | UTF-8 | 1,617 | 2.296875 | 2 | [] | no_license | package org.meds.net.handlers;
import org.meds.enums.SpecialLocationTypes;
import org.meds.item.ItemPrototype;
import org.meds.map.MapManager;
import org.meds.map.Shop;
import org.meds.net.ClientCommandData;
import org.meds.net.ClientCommandTypes;
import org.meds.net.SessionContext;
import org.springframework.beans.fa... | true |
5dfe43c33ab4c57a426a48991cc50c2e735f7131 | Java | bcgov/gwa-ui | /src/main/java/ca/bc/gov/gwa/servlet/admin/ServiceAccountsServlet.java | UTF-8 | 5,624 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package ca.bc.gov.gwa.servlet.admin;
import ca.bc.gov.gwa.http.HttpStatusException;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import... | true |
20ed4f7194dd992cd5b2e74718f931fbd4b979a9 | Java | daniel-alvarez-gil/restTemplate | /src/main/java/com/autentia/restTemplate/model/Song.java | UTF-8 | 487 | 2.6875 | 3 | [] | no_license | package com.autentia.restTemplate.model;
public class Song {
private String title;
private double rate;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public double getRate() {
return rate;
}
public v... | true |
2208d0133dc4fa4b82304af750dc8b4cf2275121 | Java | tansydev/mangolaa-commons | /src/main/java/com/adsizzler/mangolaa/commons/json/jackson/deserializers/MimeTypeDeserializer.java | UTF-8 | 671 | 2.125 | 2 | [
"MIT"
] | permissive | package com.adsizzler.mangolaa.commons.json.jackson.deserializers;
import com.adsizzler.mangolaa.commons.domain.openrtb.enums.MimeType;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOE... | true |
f2c965ebd5fe280ed6ee042531e620b45a61d53b | Java | xia-zhou/xz-rpc | /rpc-consumer/src/main/java/com/xz/rpc/consumer/XzClient.java | UTF-8 | 2,090 | 2.203125 | 2 | [] | no_license | package com.xz.rpc.consumer;
import com.xz.rpc.codec.XzDecoder;
import com.xz.rpc.codec.XzEncoder;
import com.xz.rpc.core.request.XzRequest;
import com.xz.rpc.handler.XzResponseHandler;
import com.xz.rpc.protocol.XzProtocol;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.ch... | true |
cd653fd61a37c0132a43b2193a4221d8b1a1b3bb | Java | voicelessreason/MUDgame | /src/World.java | UTF-8 | 5,465 | 3.03125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Random;
import javax.swing.ImageIcon;
import javax.swing.Timer;
/**
* The world class is responsible for creating and containing all of the elements within the game world.
* We use the world as a static field in the UI to create one persistent world across play instances.... | true |
05dd6a267267c7264bb40e0878774a5f235f8226 | Java | toyluck/iosched | /searchview/src/main/java/com/atrue/hyc/searchview/provider/ScheduleConract.java | UTF-8 | 2,072 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.atrue.hyc.searchview.provider;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Created by HYC on 2016/2/24.
* 所有 sqlite 数据库的 表名 和
*/
public class ScheduleConract {
public static final String CONTENT_TYPE_APP_BASE="hyc.";
public static final String CONTENT_TYPE_BASE="vnd.andr... | true |
fb74ddddcb18356985dae79c517540245e4dcba2 | Java | kokito83/tadrib1 | /src/main/java/com/greta94/PFMP/domain/Formation.java | UTF-8 | 854 | 2.0625 | 2 | [] | no_license | package com.greta94.PFMP.domain;
import javax.persistence.*;
import java.util.List;
import java.util.Set;
//*****Création de la table Stage ******
@Entity
public class Formation {
//============identifiant============
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(nullable = false, u... | true |
0cc05b90941b3215ff7006f7ba72cc0c76b49ffe | Java | jhipster/jhipster-sample-app | /src/test/java/io/github/jhipster/sample/config/WebConfigurerTestController.java | UTF-8 | 378 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package io.github.jhipster.sample.config;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class WebConfigurerTestController {
@GetMapping("/api/test-cors")
public void testCorsOnApiPath() {}
@GetMapping("/te... | true |
413edaa2556f26f96f935a553562c5fa54f4f945 | Java | attur-s/JBK | /Assnm_7/src/assn1/print_01.java | UTF-8 | 199 | 2.21875 | 2 | [] | no_license | //program for printing a message
package assn1;
public class print_01 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello\nArvind");
}
}
| true |
013d616ef3cd939b5eecfcd55a0febf0d3f2b865 | Java | BackupTheBerlios/umlfact-svn | /0808/com.xiaobo.uml/src/com/xiaobo/uml/figure/MethodFigure.java | UTF-8 | 450 | 2.03125 | 2 | [] | no_license | package com.xiaobo.uml.figure;
import com.xiaobo.uml.IIconConstants;
import com.xiaobo.uml.UmlPlugin;
/**
*
* @author xiaobo
*
* Copyright 2006 by Xiaobo Sun. All Rights reserved.
*/
public class MethodFigure extends LabeledFigure {
public MethodFigure() {
setBorder(null);
setBackgroundColor(ColorFactory... | true |
7d40717f2fa75f54e1df4e1d33b1197655639289 | Java | gabrielhwagner/facul-android | /Atividade 3/app/src/main/java/com/example/atividade3/MainActivity.java | UTF-8 | 2,880 | 2.296875 | 2 | [] | no_license | package com.example.atividade3;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.... | true |
39ebb409add2f93c83debfc2053ab93ddf5c2130 | Java | Sanjida-urme/Bangladesh_Stock_Exchang | /sources/com/google/android/gms/internal/zzado.java | UTF-8 | 17,516 | 1.554688 | 2 | [] | no_license | package com.google.android.gms.internal;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import com.google.android.gms.ads.internal.zzbs;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.uti... | true |
644d17b14274e1e5256f2827b27b9863f8662c2d | Java | tsuzcx/qq_apk | /com.tencent.token/classes.jar/com/tencent/token/jz.java | UTF-8 | 4,381 | 1.695313 | 2 | [] | no_license | package com.tencent.token;
import android.content.Context;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnAttachStateChangeListener;
import android.view.View.OnHoverListener;
import android.view.View.OnLongClickListener;
import android.view... | true |
5c93a5e065856fd8db9b0e75357b4a99fdcc419d | Java | govelogo/gwtinaction2 | /code/gwtia-ch09-editors/src/com/manning/gwtia/ch09/client/widgets/PhoneBookEditor.java | UTF-8 | 276 | 1.890625 | 2 | [] | no_license | package com.manning.gwtia.ch09.client.widgets;
import com.google.gwt.editor.client.Editor;
import com.manning.gwtia.ch09.client.domain.PhoneBook;
public interface PhoneBookEditor extends Editor<PhoneBook> {
EmployeeEditor employee();
PhoneNumberEditor phoneNumber();
}
| true |
b9aeec5600e50da633dc0d7cc4331c4e950e8db3 | Java | mummy00/guest2 | /Mileage/src/main/java/membership/PolicyHandler.java | UTF-8 | 1,055 | 2.03125 | 2 | [] | no_license | package membership;
import membership.config.kafka.KafkaProcessor;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.StreamListener;
import o... | true |
756fb165a6ee896865eb1f0702b25b9d0607d790 | Java | SibianDG/OO_Programmeren_III | /H16_collections/Oefeningen/OOPIII_COL_lab_Garage_start/src/domein/DomeinController.java | UTF-8 | 775 | 2.21875 | 2 | [] | no_license | package domein;
public class DomeinController {
private final Garage garage;
public DomeinController() {
garage= new Garage("C:\\Users\\sibia\\OneDrive - Hogeschool Gent\\2e bach\\OO_Programmeren_III\\H16_collections\\Oefeningen\\OOPIII_COL_lab_Garage_start\\autoObjecten.dat"
, "C:\\U... | true |
a954b32e68c163b466e9f1badb7ef8e552c5587c | Java | Jorik2015/fence | /Fence-jsf1.2/fence-core/src/main/java/com/abner/fence/viewroot/PartialViewRootHelper.java | UTF-8 | 18,451 | 1.53125 | 2 | [] | no_license | /*
* $Id: PartialTraversalViewRoot.java,v 1.4 2005/12/21 22:38:09 edburns Exp $
*/
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the Li... | true |
38c107f3d8f491a62cc9cdd307e2c2a1b6d130c5 | Java | shivaramkrishna53/ADVANCED-JAVA | /jdbcprojects/GuiFrontEndResultSetScrollable.java | UTF-8 | 4,334 | 2.65625 | 3 | [] | no_license | package jdbc;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JButton;
i... | true |
b4f1094f6f9d45f4ab827cf5e8735c4faee5f0fd | Java | jiaHey/yjshop | /src/main/java/com/shop/modules/shop/domain/OrderGoods.java | UTF-8 | 1,654 | 2.171875 | 2 | [] | no_license | package com.shop.modules.shop.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.math.BigDecimal;
@Entity
@Table(name = "y_order_goods")
public class OrderGoods {
@Id
@GeneratedValue
private Long id;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(... | true |
fa2d2166d238532f8c2bcaf20ccd331be79a988c | Java | egasudrajat/ElangManagement | /app/src/main/java/com/egasudrajat/elangmanagement/Debt/DebtActivity.java | UTF-8 | 6,625 | 1.703125 | 2 | [] | no_license | package com.egasudrajat.elangmanagement.Debt;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.SearchView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AlertDialog;
import andro... | true |
c6d6bfe2d170ad487d15f07a3e8b121253139352 | Java | caturananta/DesignSchemeAndroid | /app/src/main/java/co/id/dicoding/fragmentviewmodel/api/PlaceholderAPI.java | UTF-8 | 531 | 2.109375 | 2 | [] | no_license | package co.id.dicoding.fragmentviewmodel.api;
import co.id.dicoding.fragmentviewmodel.rest.ListMovieResponse;
import co.id.dicoding.fragmentviewmodel.rest.ListTvShowResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface PlaceholderAPI {
@GET("movie")
Call<Li... | true |
e7a8b05e3bc2a898c2271a28600f03261b4cc97f | Java | michjua/tegprueba | /TEG/src/Continente.java | UTF-8 | 1,083 | 2.859375 | 3 | [] | no_license | import java.util.ArrayList;
public class Continente {
private String nombre;
private ArrayList<Pais> paises = new ArrayList<Pais>();
private int x;
private int y;
public Continente() {
paises =new ArrayList<Pais>();
}
public Continente(String nombre) {
this.nombre=nombre;
}
pub... | true |
0ecc894bf2eabd904b477e771d450ae0aa23db58 | Java | YugovSasha/mybank | /src/main/java/com/mybank/data/repository/UserRepository.java | UTF-8 | 463 | 1.960938 | 2 | [] | no_license | package com.mybank.data.repository;
import com.mybank.data.config.repository.EntityRepository;
import com.mybank.data.model.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
/**
* @author ... | true |
26f8cb699d549d066a6835970a161ec2ed2a060c | Java | micronaut-projects/micronaut-core | /inject-java/src/test/groovy/io/micronaut/inject/any/Terrier.java | UTF-8 | 340 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package io.micronaut.inject.any;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
@Singleton
@Named("terrier")
public class Terrier implements Dog<Terrier> {
@Override
public String getRace() {
return "terrier";
}
@Override
public Class<Terrier> getType() {
return Ter... | true |
7ef873e14d4d7a94ed22763efbb54d3d5849d7b3 | Java | atb/errai-demonstration | /src/main/java/org/atb/errai/demo/contactlist/server/ContactEntityService.java | UTF-8 | 1,236 | 2.40625 | 2 | [] | no_license | package org.atb.errai.demo.contactlist.server;
import java.util.List;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.atb.errai.demo.contactlist.client.shared.... | true |
bd800c0cfa2be7634f8244f70e6562edeacb17e0 | Java | Unyuho/RevereseCraft | /src/main/java/unyuho/reversecraft/gui/GuiReverseCrafting.java | UTF-8 | 3,936 | 2.28125 | 2 | [] | no_license | package unyuho.reversecraft.gui;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
public class Gui... | true |
da688360fa8678f3d116dfeed5d78ad06d2023a5 | Java | bouzasvas/LocalChatAndroidApp | /app/src/main/java/test/android/vassilis/localchatting/SocketHandler.java | UTF-8 | 814 | 2.359375 | 2 | [] | no_license | package test.android.vassilis.localchatting;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
public class SocketHandler {
private static Socket socket;
private static ObjectOutputStream out;
private static ObjectInputStream in;
public static synchronized S... | true |
6e0b7f37a038d5a57ed2bd9899cc4409a664bc72 | Java | WhoNoName/MyGraduationProject | /src/org/order/controller/LoginController.java | GB18030 | 3,452 | 2.265625 | 2 | [] | no_license | package org.order.controller;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import javax.annotation.Resource;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
9c58cd74bb78a7a047ed271988eb2c5537d0fb25 | Java | sairalokesh/springboot | /csvjson/src/main/java/com/springboot/csvjson/csvjson/service/UserServiceImpl.java | UTF-8 | 2,086 | 2.5625 | 3 | [] | no_license | package com.springboot.csvjson.csvjson.service;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Serv... | true |
deb4f39bcf19f0442b7e6dff23c110a7ca952954 | Java | kaubster/CST60_Agile_Development | /Assignment2/src/Init.java | UTF-8 | 886 | 2.734375 | 3 | [] | no_license | import static org.junit.Assert.assertArrayEquals;
import java.awt.Color;
import java.awt.GridLayout;
import javax.swing.JFrame;
public class Init {
public JFrame jFrame;
MyJPanel panels[];
Color colors[] = {
Color.blue, Color.green, Color.red,
Color.white, Color.yellow, Color.black,
Color.orange, Colo... | true |
55c9893f41b268795046e982d3378c837a20bc7e | Java | Amalius1/city-list | /BACKEND/city-list/src/main/java/com/aml/bk/citylist/config/SecurityConfig.java | UTF-8 | 1,882 | 2.171875 | 2 | [] | no_license | package com.aml.bk.citylist.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity... | true |
1ad35fc4f3d57ec380e8d0c722e51c850b3c3bfb | Java | ymohammad/algorithms | /src/com/alysoft/algo/stack/contest/MinimumAtPop.java | UTF-8 | 2,361 | 4.125 | 4 | [] | no_license | package com.alysoft.algo.stack.contest;
import java.util.Scanner;
import java.util.Stack;
/**
* Now, we'll try to solve a famous stack problem.
You are given an array A of size N. You need to push the elements of the array into a stack and then print minimum in the stack at each pop
Input Format:
The fi... | true |
ef293b4f06f5947015e4bf9746a59c422e72328c | Java | matthewtckr/docker-build | /bundles/orchestrator/src/main/java/org/pentaho/build/buddy/bundles/orchestrator/ConfigurationEnricher.java | UTF-8 | 4,315 | 2.453125 | 2 | [] | no_license | package org.pentaho.build.buddy.bundles.orchestrator;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.pentaho.build.buddy.bundles.api.result.LineHandler;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.regex.Pattern;
/**
* Created by bryan on 3/11/16.
*/
public ... | true |
15d046641c62c5b0955b2d565da6b40ba91f2c0b | Java | iabhishek5007/JetpackNavigationComponent | /app/src/main/java/com/rckdeveloper/jetpacknavigationcomponent/MainFragment.java | UTF-8 | 2,052 | 2.0625 | 2 | [] | no_license | package com.rckdeveloper.jetpacknavigationcomponent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
public class MainFragment extends F... | true |
6e0288065477dcc873e934db04b24037e7f5444b | Java | saketrule/Research_Project-HackerRank_CheckStyle | /game_theory/poker-nim-1/java/darkhero76.java | UTF-8 | 880 | 3.171875 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner scan =new... | true |
c4b04fa30a463cf9cad19731bb32f9cb14eb19d7 | Java | ayrra/UCSD_Spec | /Data Structures/textgen/MyLinkedListTester.java | UTF-8 | 4,802 | 3.34375 | 3 | [] | no_license | /**
*
*/
package textgen;
import static org.junit.Assert.*;
import java.util.LinkedList;
import org.junit.Before;
import org.junit.Test;
/**
* @author UC San Diego MOOC team
*
*/
public class MyLinkedListTester {
private static final int LONG_LIST_LENGTH =100000;
MyLinkedList<String> shortList;
MyLinked... | true |
fcc1456c3a6bac5edd921a6f9881e4573f37135d | Java | mark-sanders/weatherwatch | /src/test/java/com/github/marksanders/weatherwatch/api/JsonMappingTest.java | UTF-8 | 2,583 | 2.5625 | 3 | [] | no_license | package com.github.marksanders.weatherwatch.api;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Modul... | true |
e77d059ffd8960176b7b884c7a0d5f3323de884f | Java | talwararjun4/Android_Assignment-4.2 | /app/src/main/java/com/talwararjun4/acadgild_android_assignment11/MainActivity.java | UTF-8 | 1,729 | 2.125 | 2 | [] | no_license | package com.talwararjun4.acadgild_android_assignment11;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.provider.ContactsContract;
import android.p... | true |
46a4847500b32b00d99ba4996b08c77f1085fb41 | Java | Motiveko/Algorithms_DataStructures | /src/myStudy/algorithms/leetcode/medium/CustomStack.java | UTF-8 | 854 | 3.125 | 3 | [] | no_license | package myStudy.algorithms.leetcode.medium;
import java.util.*;
// https://leetcode.com/problems/design-a-stack-with-increment-operation/
// https://github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/_1381.java
public class CustomStack {
int maxSize;
List<Integer> stack;
... | true |
0a303e57a1c995578eca76782b805fa9bc79542b | Java | ericrommel/backend-test | /src/test/java/com/erommel/rest/TransactionResourceTest.java | UTF-8 | 13,375 | 2.5 | 2 | [] | no_license | package com.erommel.rest;
import com.erommel.model.Client;
import com.erommel.rest.request.AccountRequest;
import com.erommel.rest.request.TransactionRequest;
import com.erommel.rest.response.CollectionResponse;
import com.erommel.rest.response.ErrorResponse;
import org.glassfish.jersey.server.ResourceConfig;
import o... | true |
2eaeb6ffd442e3b7aac4f351d79e7bc1e5b2112f | Java | wangjufeng1002/alcs | /alcs-man/src/main/java/xy/alcs/json/WorkJson.java | UTF-8 | 3,583 | 2.078125 | 2 | [] | no_license | package xy.alcs.json;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | true |
739165dea414a973f21de82e5af9e70b6b7daba9 | Java | wahidmounir/Getoffyourphone | /app/src/main/java/com/nephi/getoffyourphone/ReviverService.java | UTF-8 | 3,588 | 2.265625 | 2 | [] | no_license | //package com.nephi.getoffyourphone;
//
///**
// * Created by xerxes on 15.01.18.
// */
//
//import android.app.ActivityManager;
//import android.app.Service;
//import android.content.ComponentName;
//import android.content.Context;
//import android.content.Intent;
//import android.content.pm.PackageManager;
//import a... | true |
005f7bf1b6a687d8ae07d80ac83f93fb11dab792 | Java | Said-bachar/SmartSchool_LastVersion | /src/main/java/com/ensa/SmartSchool/controller/NoticeStudentController.java | UTF-8 | 3,601 | 2.3125 | 2 | [] | no_license | package com.ensa.SmartSchool.controller;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import ... | true |
46277f18785a3f2f52147c0716c29ffbc8bab335 | Java | soumyapatil29/parking-lot-management-system | /src/test/java/ConfigurationTest.java | UTF-8 | 1,608 | 2.203125 | 2 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;
import com.parking.registrations.infrastructure.LocalDateTimeConverter;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import static junit.framework.TestCase.asser... | true |
168932a7c998db02a2c93a98c82711cd00f322e9 | Java | ahsanr479/TaxResultsRework | /src/main/java/com/cubic/taxApp/TaxUtil.java | UTF-8 | 2,033 | 2.984375 | 3 | [] | no_license | package com.cubic.taxApp;
import java.util.HashMap;
import java.util.Map;
public class TaxUtil {
final double SSN_TAX = 0.065;
final double MEDICARE_TAX = 0.015;
final double SSN_CAP = 128000 ;
private Map<String, Double> taxRates = new HashMap<String, Double>();
public TaxUtil() {
taxRates.put(createKey(... | true |
cc5d9436566f0b9b63ed89fda3faabdb9efb15b6 | Java | radiaRD/SafetyNetAlert | /safetyNetAlert/src/main/java/com/safetyNet/safetyNetAlert/dto/FloodDTO.java | UTF-8 | 825 | 2.3125 | 2 | [] | no_license | package com.safetyNet.safetyNetAlert.dto;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;
public class FloodDTO {
private static final Logger logger = LogManager.getLogger(FloodDTO.class);
private String address;
private List<FloodByStationDTO... | true |
40dcbedca01f67a6a591ff1709169a4b05095b26 | Java | tongchuanwei/springboot-project | /springboot-project/springboot-biz/src/main/java/com/demo/way/project/biz/common/exception/DependencyException.java | UTF-8 | 462 | 2.078125 | 2 | [] | no_license | package com.demo.way.project.biz.common.exception;
import com.demo.way.project.biz.common.constant.ErrorCodeEnum;
/**
* @author way
*/
public class DependencyException extends BaseException {
private static final long serialVersionUID = -8896538282818830271L;
public DependencyException(Integer code, Strin... | true |
b8521d0bb72014120ead2756c8539ea2b9fd5168 | Java | Meshl-555/FrameworkBenchmarks | /frameworks/Java/dropwizard/src/main/java/com/example/helloworld/resources/Helper.java | UTF-8 | 1,166 | 2.484375 | 2 | [] | permissive | package com.example.helloworld.resources;
import java.util.concurrent.ThreadLocalRandom;
import com.google.common.base.Optional;
/**
* Provides utility methods for the benchmark tests.
* Taken from undertow-edge project.
*/
final class Helper {
private Helper() {
throw new AssertionError();
}
/**
* ... | true |
77df867a957f408c85c7febd8a4faf0dffca18ed | Java | philippetavernier/vogella | /com.vogella.android.test.robotium.simple/src/com/vogella/android/test/robotium/simple/MainActivity.java | UTF-8 | 765 | 2.34375 | 2 | [] | no_license | package com.vogella.android.test.robotium.simple;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre... | true |
d1f5471c465932303b267ee86475d88a72c67e0b | Java | Kage0x3B/KageCloud | /plugin/src/de/syscy/kagecloud/spigot/network/CloudPluginNetworkListener.java | UTF-8 | 3,259 | 2.03125 | 2 | [
"MIT"
] | permissive | package de.syscy.kagecloud.spigot.network;
import java.util.HashMap;
import java.util.Map;
import de.syscy.kagecloud.KageCloud;
import de.syscy.kagecloud.network.CloudConnection.ServerStatus;
import de.syscy.kagecloud.network.packet.IDPacket;
import de.syscy.kagecloud.network.packet.PluginDataPacket;
import ... | true |
68db05899cff3f1b5c6d6c29ab666d664be8919e | Java | Firsteva/java01 | /src/java01/Test44_1/Vehicle.java | UTF-8 | 187 | 2.609375 | 3 | [] | no_license | package java01.Test44_1;
abstract public class Vehicle extends Mover {
int spd;
int capacity;
@Override
public void move(int direction) {
System.out.println("윙윙");
}
}
| true |
baab551e64117f77d3be19390a7c3659823d2c72 | Java | jcst-group/nongxin-admin-java | /src/main/java/com/nongxin/terminal/vo/nxboard/WorkOrderVo.java | UTF-8 | 3,456 | 1.859375 | 2 | [] | no_license | package com.nongxin.terminal.vo.nxboard;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nongxin.terminal.entity.crop.CropBatch;
import com.nongxin.terminal.entity.plant.FarmingItem;
import com.nongxin.terminal.entity.plant.OrderContent;
import com.nongxin.terminal.util.enumUtil.plan.WorkOrderStatusEnum... | true |
a2ba4795bf0e7afa682598a8c10167dd31369be5 | Java | kkimm87/Yedda | /thirdP/src/main/java/com/apps/montly/service/MonthlySvcImpl.java | UTF-8 | 1,252 | 2.125 | 2 | [] | no_license | package com.apps.montly.service;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.apps.montly.dao.MonthlyDao;
/**
* @since 2017-10-10
* @author 임채현
... | true |
c2661ab1f529c82e260b205f8adbd189d628cea9 | Java | JL31/repoTMP | /LectureDuFichierDeDonnees.java | ISO-8859-1 | 1,428 | 2.921875 | 3 | [] | no_license | import java.io.File;
import java.io.IOException;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import javax.xml.parsers.*;
public class LectureDuFichierDeDonnees
{
// Dclaration des variables d'instance
private String nomDuFichierDeDonnees;
private ContenuDufichierDeDonnees contenuDuFichi... | true |
53b165cd12601d38511626f275a7f83ab88e8549 | Java | SquawkyToucan/Level-Three-Module-Three | /src/abstract_classes/cities/SanDiego.java | UTF-8 | 384 | 2.84375 | 3 | [] | no_license | package abstract_classes.cities;
public class SanDiego extends City{
int population;
double growthRate;
public SanDiego(int population, double growthRate) {
super(population, growthRate);
this.population = population;
this.growthRate = growthRate;
}
@Override
double getAnnualTaxes() {
// TODO Auto-gener... | true |
0f6114acb856c7dc85dbeea9fead04fe4f4d548f | Java | Gyeom/ocppCSMS | /src/main/java/datatype/VariableType.java | UTF-8 | 833 | 2.390625 | 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 datatype;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
/**
*
* @... | true |
4bcbc429f1f8822c42fe88ef9255c2de68be4df2 | Java | dorsradek/spring-cloud_test1 | /test1-service/src/main/java/pl/dors/radek/model/Person.java | UTF-8 | 469 | 2.578125 | 3 | [] | no_license | package pl.dors.radek.model;
/**
* Created by rdors on 2016-06-29.
*/
public class Person {
private Long id;
private String name;
Person() {
}
public Person(String name) {
this(null, name);
}
public Person(Long id, String name) {
this.id = id;
... | true |
2ba460729b067b0d97a451a8f9676af20ecaac2f | Java | sakkumaayi/Training | /JavaPracticeProgramsForInterview/src/PrimeNumber.java | UTF-8 | 983 | 4.1875 | 4 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*In the above program, for loop is used to determine if the given number num is prime or not.
* We only have to loop through 2 to half of num, because no number is divisible by more than its half.
Inside the for loop, we ch... | true |
b315c69ee781405e80f98803a75a8be0d2fbca01 | Java | swd543/ludus-core | /src/main/java/com/mu/game/piece/Coordinate.java | UTF-8 | 2,307 | 3.328125 | 3 | [] | no_license | package com.mu.game.piece;
import com.mu.game.characteristics.Characteristics;
import com.mu.game.game.Board;
import java.util.Objects;
import java.util.Random;
public class Coordinate {
public static final Coordinate NORTH=new Coordinate(0,-1);
public static final Coordinate SOUTH=new Coordinate(0,1);
p... | true |
b3305330306fd0e600d44c2a4f82ecd3d5697e4d | Java | dwyanecf/for-fan | /mind/src/main/java/com/fanchen/clearmind/design/duck/interfaces/QuackBehavior.java | UTF-8 | 115 | 2.03125 | 2 | [] | no_license | package com.fanchen.clearmind.design.duck.interfaces;
public interface QuackBehavior {
public void quack();
}
| true |
6dfeafdf8aca987e6c53f27472feec0b2d9b1cb0 | Java | FrankCV12345/WSrecolectorDatos | /WS_sistemaRecolectorDatosV2/src/java/org/empresa/pe/modelo/luxometro.java | UTF-8 | 945 | 1.992188 | 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 org.empresa.pe.modelo;
/**
*
* @author FCV
*/
public class luxometro {
private int idluxometro;
private String nombre... | true |
0dfae76c8fe449994a904f90b25fad661e76a9fe | Java | xuchengyun/LeetCodeNote | /LCQuestions/_460_LFUCache.java | UTF-8 | 1,635 | 3.03125 | 3 | [] | no_license | package LCQuestions;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
public class _460_LFUCache {
int min;
int capacity;
Map<Integer, Integer> valueMap;
Map<Integer, Integer> freqMap;
Map<Integer, LinkedHashSet<Integer>> lists;
public _460_LFUCache(int capacit... | true |
643cfc5aae9c3d6ea8f4b1c8061341cc798220f5 | Java | AndreiRR/workero | /src/test/java/exceptions/Exceptions.java | UTF-8 | 389 | 3.375 | 3 | [] | no_license | package exceptions;
public class Exceptions {
public static void main(String[] args) {
int[] numbers = {1,2,3,4};
try {
for (int i = 0; i <= 5; i++) {
System.out.println(numbers[i]);
}
}catch(Exception e) {
e.printStackTrace();
... | true |
4a6798477be7ea9402f2aebc8a9dc64197aa462d | Java | steven000/AnimShareDemo | /app/src/main/java/com/example/st/animsharedemo/transitions/Item.java | UTF-8 | 2,014 | 2.40625 | 2 | [] | no_license |
package com.example.st.animsharedemo.transitions;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import com.example.st.animsharedemo.R;
public class Item {
publi... | true |
42fa91f56662cc517503a61580da063c2ec65295 | Java | zhanght86/HSBC20171018 | /LIS/sinosoft-parents/lis-business/src/main/java/com/sinosoft/lis/cardgrp/DutyQueryBL.java | UTF-8 | 5,172 | 2.40625 | 2 | [] | no_license | package com.sinosoft.lis.cardgrp;
import org.apache.log4j.Logger;
import com.sinosoft.lis.db.LCDutyDB;
import com.sinosoft.lis.db.LCGetDB;
import com.sinosoft.lis.db.LCPremDB;
import com.sinosoft.lis.schema.LCDutySchema;
import com.sinosoft.lis.vschema.LCDutySet;
import com.sinosoft.lis.vschema.LCGetSet;
import com.si... | true |
ae04e56363894b54e4d4c5369f8cb2a733f245e2 | Java | OliverSeth/leetcode | /1018.可被-5-整除的二进制前缀.java | UTF-8 | 560 | 2.765625 | 3 | [] | no_license | /*
* @Author: Oliver Seth
* @Date: 2021-01-14 14:24:54
* @Last Modified by: Oliver Seth
* @Last Modified time: 2021-01-14 14:24:54
*/
/*
* @lc app=leetcode.cn id=1018 lang=java
*
* [1018] 可被 5 整除的二进制前缀
*/
// @lc code=start
class Solution {
public List<Boolean> prefixesDivBy5(int[] A) {
List<... | true |
a66ffec6a9943776d4a0150910adad8410954c0d | Java | HoangDat1304/QLTV | /CoreConcepts/src/main/java/com/mycompany/coreconcepts/array/Bai1.java | UTF-8 | 811 | 3.359375 | 3 | [] | no_license |
package com.mycompany.coreconcepts.array;
import java.util.Scanner;
/**
*
* @author DAT
*/
public class Bai1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int dem = 1;
int[] a = new int[n];
for (int i = 0;... | true |
60981f3ce1ed4a7a69278da49aabc24ba09acc82 | Java | cjmartin2/OneWarmCoat-android | /app/src/main/java/org/onewarmcoat/onewarmcoat/app/interfaces/AnimatorEndListener.java | UTF-8 | 499 | 1.851563 | 2 | [] | no_license | package org.onewarmcoat.onewarmcoat.app.interfaces;
import android.animation.Animator;
/**
* Created by aphex on 11/10/15.
*/
public interface AnimatorEndListener extends Animator.AnimatorListener {
@Override
default void onAnimationStart(Animator animation) {
}
@Override
void onAnimationEnd(A... | true |
e6e6d421681932ea45b43300e6cf82dd77c6af0e | Java | double-agent-validator/double-agent-validator-java | /src/test/java/br/gov/serpro/doubleagent/model/ValidationResultTest.java | UTF-8 | 1,210 | 2.203125 | 2 | [] | no_license | package br.gov.serpro.doubleagent.model;
import com.fitbur.testify.Cut;
import com.fitbur.testify.junit.UnitTest;
import org.assertj.core.api.JUnitSoftAssertions;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.Map;
/**
* Created by 801294985... | true |