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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7b0ebdedd5fb62399b85a002ae47881c7e06fdfb | Java | shifaviews/ComoEsconderOCorpo | /src/View/View_PreAnuncio.java | UTF-8 | 2,098 | 2.6875 | 3 | [
"MIT"
] | permissive | package View;
import java.awt.*;
import javax.swing.*;
public class View_PreAnuncio extends JFrame{
private JLabel txt_Id,txt_titulo,txt_preco,txt_tipo,img;
private String url,id,titulo,preco,tipo;
private PainelFundo principal;
public View_PreAnuncio(){
}
public void criar(){
... | true |
6778b37dfece1a774b37ae1fc341a201cc35fdbb | Java | Taerus/Formation_DTA-Tp_Spring | /src/main/java/com/bankonet/report/HtmlReportGenerator.java | ISO-8859-2 | 348 | 2.5 | 2 | [] | no_license | package com.bankonet.report;
public class HtmlReportGenerator extends ReportGenerator {
@Override
public void generate() {
System.out.println("Gnration d'un rapport HTML...");
}
@Override
public void generate(String author) {
this.generate();
System.out.println("-> Auteur... | true |
3ce2abe9adb078de8ded8c21393a21f17f5f52c2 | Java | cjfuller/imglib | /imglib2/examples/src/main/java/interactive/MandelbrotRealViewer2DExample.java | UTF-8 | 1,275 | 2.5625 | 3 | [
"BSD-2-Clause"
] | permissive | package interactive;
import interactive.fractals.MandelbrotRealRandomAccessible;
import net.imglib2.display.RealARGBConverter;
import net.imglib2.io.ImgIOException;
import net.imglib2.realtransform.AffineTransform2D;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.NumericType;
import net.imglib2.typ... | true |
0d6ae4dc1aad598d285b21ce45bce68f0ef7004b | Java | christinning/micrometer-sample | /src/main/java/uk/christinning/springsample/resource/person/PersonResourceAssembler.java | UTF-8 | 925 | 2.40625 | 2 | [] | no_license | package uk.christinning.springsample.resource.person;
import org.springframework.hateoas.mvc.ResourceAssemblerSupport;
import org.springframework.stereotype.Component;
import uk.christinning.springsample.model.Person;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo;
@Component
public class... | true |
62f5c42c88101f65dee9a11d238a75364bcf5538 | Java | nelsonptobias/crud-basico-memoria | /crud/src/main/java/com/study/services/UsuarioService.java | UTF-8 | 542 | 2.5 | 2 | [] | no_license | package com.study.services;
import com.study.dto.Usuario;
import java.util.ArrayList;
import java.util.List;
public class UsuarioService {
public void setUsuarios(List<Usuario> usuarios) {
this.usuarios = usuarios;
}
public static String Create(Usuario aUsuario) {
usuarios... | true |
fdd9d7347656dcae41f0ff5b4854854d6f109d2b | Java | Solano96/JumpWheel | /code/entities/FloorEntity.java | UTF-8 | 2,269 | 2.671875 | 3 | [] | no_license | package com.jumpwheel.entities;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx.physics.box2d.PolygonShape;
i... | true |
0f74a33ee97cef0f74700a5ecc54a3aff91acfc8 | Java | ddalf/Algor | /Boj/Boj15989_1,2,3 더하기 4/Boj15989.java | UHC | 1,005 | 3.296875 | 3 | [] | no_license | package boj;
import java.util.*;
import java.io.*;
public class Boj15989 {
public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
public static int stoi(String s) {
return Integer.parseInt(... | true |
40e4db10ab45eba5df23d42da4b8f67b6d4a8967 | Java | dbeaver/dbeaver | /plugins/org.jkiss.dbeaver.ext.exasol/src/org/jkiss/dbeaver/ext/exasol/model/security/ExasolGrantee.java | UTF-8 | 6,714 | 1.789063 | 2 | [
"Apache-2.0",
"EPL-1.0",
"LGPL-2.0-or-later"
] | permissive | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2016-2016 Karl Griesser (fullref@gmail.com)
* Copyright (C) 2010-2023 DBeaver Corp and others
*
* 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... | true |
da8e19adfcdcd0cc19b64961a4768c5d42f82eca | Java | ezhova-ta/news-aggregator | /app/src/main/java/com/example/newsaggregator/presenter/news/entry/list/NewsEntryListPresenter.java | UTF-8 | 234 | 1.53125 | 2 | [] | no_license | package com.example.newsaggregator.presenter.news.entry.list;
public interface NewsEntryListPresenter {
void onCreate();
void onUpdateNewsEntryListButtonClick();
void onReceiveBroadcastMessage(final int requestResult);
}
| true |
6332c626e84b0462f72512fcb85e2062e21845f9 | Java | ph-jo/runelite | /runescape-client/src/main/java/GrandExchangeOffer.java | UTF-8 | 3,295 | 1.796875 | 2 | [
"BSD-2-Clause"
] | permissive | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("f")
@Implements("GrandExchangeOffer")
public class GrandExchangeOffer {
@ObfuscatedN... | true |
15c409c48cb67a21cb96a9993cf3d5f7a14e9d40 | Java | davidangulocorcuera/DataAcces | /src/JsonModel.java | UTF-8 | 10,101 | 2.65625 | 3 | [] | no_license | import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class JsonModel implements DataManager {
private Entity newEntity;
private Curse newCu... | true |
2f5b3f3d034f0a469a105ab01cb398303227977a | Java | Soheibkend/HackerRank-Solution | /HackerRank/Algorithms/Implementation/SherlockAndSquares.java | UTF-8 | 193 | 3.25 | 3 | [] | no_license | public class SherlockAndSquares {
// Complete the squares function below.
static int squares(int a, int b) {
return (int) Math.sqrt(b) - (int) Math.ceil(Math.sqrt(a))+1;
}
} | true |
baa573ff39c134fea421aaf1b50f3ddca3517ed5 | Java | bcall/cestointeligente | /src/main/java/ar/com/itr/cestointeligente/DAOImpl/ProjectDAOImp.java | UTF-8 | 3,622 | 2.1875 | 2 | [] | no_license | package ar.com.itr.cestointeligente.DAOImpl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ar.com.itr.cestointeligente.DAO.ProjectDAO;
import ar.com.itr.cestointeligente.entities.Project;
import ar.com.itr.cestointeligente.mapper.ProjectRowMapper;
public class ProjectDAOImp ... | true |
c66b933c96aed5f63aafb9622630c664a5cb2d55 | Java | paulhulbert/TheSwordOfSevenTrials | /spearvil/housetower2.java | UTF-8 | 1,147 | 2.21875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package spearvil;
import every.*;
import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
public class housetower2 extends insideroom {
private platform state1;
... | true |
34371e2a21e39328cb59d0a80a4e5a3b43ab5345 | Java | SergiOsp1407/messages_app | /src/main/java/com/messagesapp/Connect.java | UTF-8 | 688 | 2.828125 | 3 | [] | no_license | package com.messagesapp;
import java.sql.DriverManager;
import java.sql.*;
public class Connect {
//Method that have all to connect to the DB
public Connection get_connection(){
Connection cn = null;
//This try-catch establish the connection to DB with the info used in MySQL
try{
... | true |
86ecb5ffdaee4078436965ce939e357e83c83ec3 | Java | syj0408/java | /java/test0916/src/test0916/Syjfamily.java | UHC | 4,935 | 3.234375 | 3 | [] | no_license | package test0916;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Scanner;
public class Syjfamily {
static Connection conn;
static {
try {
Class.forName("org.mariadb.test0916.Driver");
co... | true |
8df89851fea6ffcb3fe593f47a0f1f4fc5b59698 | Java | oguzkurtcebe/OOP-EXAMPLES | /src/Interface/MongoDatabase.java | UTF-8 | 457 | 2.328125 | 2 | [] | no_license | package Interface;
public class MongoDatabase implements IDatabase{
@Override
public void add() {
System.out.println("MongoDB Eklendi");
}
@Override
public void delete() {
System.out.println("MongoDB silindi"); }
@Override
public void update() {
System.out.prin... | true |
8b5b9c0e6e51a5460981863442b84a111e7ca606 | Java | alonsnarf/TheEnglish | /app/src/main/java/com/alonsnarf/theenglish/service/VerbService.java | UTF-8 | 2,463 | 2.640625 | 3 | [] | no_license | package com.alonsnarf.theenglish.service;
import android.content.Context;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;
import com.alonsnarf.theenglish.dao.VerbDao;
import com.alonsnarf.theenglish.object.Twin;
import com.alonsnarf.theengli... | true |
8199b10ca2a51d120234e997c915c38806019331 | Java | wenyifanxiaoqingxin/java_util | /src/main/java/data_structure/linearlist/ArrayStructure.java | UTF-8 | 3,758 | 3.828125 | 4 | [] | no_license | package data_structure.linearlist;
/**
* Created by fx on 2019/2/28.
* 数组数据结构
*/
public class ArrayStructure {
//数组
private int[] intArray;
//有效长度
private int elems;
//数组长度
private int length;
public int[] getIntArray() {
return intArray;
}
private ArrayStructure(i... | true |
73d8f1284e9ad546791e880804116cecb592d7dc | Java | PabloPorto/bike-factory | /src/main/java/com/bikefactory/service/product_service/FetchProductServiceImpl.java | UTF-8 | 1,169 | 2.359375 | 2 | [] | no_license | package com.bikefactory.service.product_service;
import com.bikefactory.exception.ProductNotFoundException;
import com.bikefactory.model.Product;
import com.bikefactory.repository.ProductRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
... | true |
0a5af8caa9950df4b74c36d8f11a7270bd93b73d | Java | sun-wangbaiyu/emr-code | /pkuhit.iih.mr-impl/src/main/java/pkuhit/iih/di/dao/auto/DiInDao.java | UTF-8 | 1,861 | 1.953125 | 2 | [] | no_license | package pkuhit.iih.di.dao.auto;
import java.sql.Clob;
import java.util.List;
import org.seasar.doma.BatchDelete;
import org.seasar.doma.BatchInsert;
import org.seasar.doma.BatchUpdate;
import org.seasar.doma.ClobFactory;
import org.seasar.doma.Dao;
import org.seasar.doma.Delete;
import org.seasar.doma.Inse... | true |
6a13ea5104a2a73716b093e77ddf6bf3e4344171 | Java | codesbull/idea_projects | /dormitory/src/main/java/com/demo/bean/Student.java | UTF-8 | 2,919 | 2.625 | 3 | [] | no_license | package com.demo.bean;
public class Student {
private Integer studentId;
private String studentNumber;
private String studentPassword;
private String studentName;
private String studentPhone;
private Integer sex;
private Integer collegeId;
private Integer professionId;
priv... | true |
a13f5c276e09e8cbaea2e54c171dbec1713d255f | Java | nachovz/ideaapp | /src/com/grupoidea/ideaapp/models/Producto.java | UTF-8 | 17,578 | 2.5625 | 3 | [] | no_license | package com.grupoidea.ideaapp.models;
import android.graphics.Bitmap;
import android.util.SparseArray;
import com.parse.ParseObject;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.DecimalFormat;
import java.util.ArrayList;
import static java.lang.Math.max;
/... | true |
c1b9b3c0d2be327bd17d93ca0d32b486d2aff454 | Java | gonzalodd/CRUD-Spring-Framework | /src/main/java/mx/com/gm/dao/PersonaDAO.java | UTF-8 | 683 | 2.203125 | 2 | [] | no_license | package mx.com.gm.dao;
import mx.com.gm.domain.Persona;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
public interface PersonaDAO extends JpaRepository<Persona, Long>{
/* Al extender de CRUDREPOSITORY no es necesario crear una implementac... | true |
018fca08b9707575e24446bee734122230ab2dbf | Java | maRsabbit/mystie100 | /src/main/java/com/mysite/service/GuestBookService.java | UTF-8 | 750 | 2.125 | 2 | [] | no_license | package com.mysite.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mysite.repository.GuestBookDao;
import com.mysite.vo.GuestBookVo;
@Service
public class GuestBookService {
@Autowired
GuestBookDa... | true |
4d33a7770238e7fc45938cfd20aae817e4a3eca5 | Java | rpgopal/SHMS | /EnterDetails.java | UTF-8 | 15,598 | 2.3125 | 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 my.home;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
i... | true |
2bc72d911b79094600c3a2f0c8631ad6fc136da3 | Java | Quinn-V1/quinn-service-util | /quinn-util-base/src/main/java/com/quinn/util/base/StringUtil.java | UTF-8 | 9,578 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package com.quinn.util.base;
import com.quinn.util.base.api.Strategy;
import com.quinn.util.base.exception.ParameterShouldNotEmpty;
import com.quinn.util.base.exception.UnSupportedCharsetException;
import com.quinn.util.constant.CharConstant;
import com.quinn.util.constant.CommonParamName;
import com.quinn.util.consta... | true |
5f880b796707df3658f8377203762789d4e6f02e | Java | rud0lph09/Codigo-Arreglos | /verificaDato.java | UTF-8 | 308 | 2.734375 | 3 | [] | no_license | public class verificaDato
{
public void verificar(int v[], dato)
int i, j = 0;
for (i=0; i<v.lenght-1; i++)
{
if (v[i] == dato)
{
System.out.println("Dato repetido...");
j = j +1;
}
}
if (j != 0)
{
System.out.println("El dato se repite:" + j + "veces");
}
else
insertar(dato);
} | true |
dbaf78c690917d820a674fe5d5178210c0793a57 | Java | RyanTech/BDLNClient | /src/com/baidileina/beans/UserBean.java | UTF-8 | 1,484 | 2.328125 | 2 | [] | no_license | package com.baidileina.beans;
/**
* User: james
* Date: 13-9-4
* Time: 下午3:20
* Copyright (c) 2013年 张成栋. All rights reserved.
*/
public class UserBean {
int id;
String email;
String username;
String image;
int state;
int integral;
String sex;
String token;
public int getId() {
return id;
}
public v... | true |
d7a11b27dd0a69e8ee2bb3f9093ef01ec0a29725 | Java | Geri999/Web-BMI | /src/main/java/pl/bci/g73/bmi1/MeasurementRecord.java | UTF-8 | 997 | 2.890625 | 3 | [] | no_license | package pl.bci.g73.bmi1;
public class MeasurementRecord {
private static int IDmain;
private int ID;
private String name;
private String sex;
private double age;
private double weight;
private double height;
public MeasurementRecord(int ID, String name, String sex, double age, double... | true |
f8323037f72e7ccdec4620b2079936df516b03d3 | Java | coaa0801-creator/FoodTruckProject | /src/com/skilldistillery/FoodTruckProject/FoodTruckApp.java | UTF-8 | 7,631 | 3.265625 | 3 | [] | no_license | package com.skilldistillery.FoodTruckProject;
import java.text.DecimalFormat;
import java.util.Scanner;
public class FoodTruckApp {
Scanner kb = new Scanner(System.in);
FoodTruck[] allTrucks = new FoodTruck[5];
static FoodTruckApp runSys = new FoodTruckApp();
FoodTruck runApp = new FoodTruck();
DecimalFormat r... | true |
476e3ca99a401c50a244ea60ed13f73f7e171099 | Java | 124190073/RecyclerView | /rvAnime/app/src/main/java/com/example/rvanime/AnimeModel.java | UTF-8 | 598 | 2.046875 | 2 | [] | no_license | package com.example.rvanime;
public class AnimeModel {
private String namaAnime;
private int gambarAnime;
private int tahun;
public String getNamaAnime() {
return namaAnime;
}
public void setNamaAnime(String namaAnime) {
this.namaAnime = namaAnime;
}
public int getGam... | true |
065cf84a116c50ccb90d009d7e213d6a267c7249 | Java | Thein123/FireBasePost | /MyFireBase/app/src/main/java/com/globaldroid/app/myfirebase/ViewAdapter.java | UTF-8 | 1,404 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.globaldroid.app.myfirebase;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
public class ViewAdapter extends RecyclerView.Ada... | true |
6e4d1d92f0dc319f2bdf3a811e607deffff10493 | Java | ursaMaj0r/java-iste-120 | /Labs/Malavasi-Exam4/levelOne/Primary.java | UTF-8 | 853 | 3.203125 | 3 | [
"MIT"
] | permissive | /**
* Primary - subclass of Member
*
* @author Malavasi
* @class Practical4 2205
* @version 20210504
*/
public class Primary extends Member
{
// declare attributes
private double balance; // account balance in default account
/**
* Parameterized Constructor
* @param id of member
* @param na... | true |
b1e10c5596998dd45b46f593b2ae37fa2e559a08 | Java | commercetools/commercetools-paypal-plus-integration | /src/test/integration/java/com/commercetools/service/paypalPlus/impl/PaypalPlusPaymentServiceImplIT.java | UTF-8 | 7,089 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.commercetools.service.paypalPlus.impl;
import com.commercetools.Application;
import com.commercetools.exception.IntegrationServiceException;
import com.commercetools.exception.PaypalPlusServiceException;
import com.commercetools.pspadapter.ExtendedAPIContextFactory;
import com.commercetools.service.paypalP... | true |
d00f623990a893d1a0015af0d45fd37273d544ec | Java | haxsscker/abc.parent | /abc.web/src/main/java/com/autoserve/abc/web/vo/button/AllocatBtnVO.java | UTF-8 | 593 | 1.953125 | 2 | [] | no_license | package com.autoserve.abc.web.vo.button;
public class AllocatBtnVO {
private Integer btnId;
private String btnIcon;
private String btnName;
public Integer getBtnId() {
return btnId;
}
public void setBtnId(Integer btnId) {
this.btnId = btnId;
}
public String getBtnI... | true |
7ff35347c7827818a8a7aa223bc328850883ccf0 | Java | vincizhou/larkc-platform-2.5-rev1797-with-sim | /src/main/java/com/cyc/tool/subl/jrtl/nativeCode/type/core/SubLConsPair.java | UTF-8 | 41,729 | 1.734375 | 2 | [] | no_license | /***
* Copyright (c) 1995-2009 Cycorp Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |
0391d95382cc585b4f1c19c2e81f65abd2641efa | Java | Anoromi/Codename-R.O.P.E. | /src/Objects/Entities/MovingSpikes.java | UTF-8 | 3,539 | 3.546875 | 4 | [] | no_license | package Objects.Entities;
import Base.Game;
import Helpers.ImageHelper;
import Helpers.Vector2;
import Objects.GameSprite;
import Objects.ObjectTag;
import java.awt.image.BufferedImage;
/**
* A class which describe moving spikes. As deadly as the usual spikes,
* but they also move from point1 to point2, then back ... | true |
c487c8d9ff4b3e33e55a5a9907bb5b9e988ee727 | Java | pachucodigital/instanfittest | /TestInstanFit/app/src/main/java/com/testinstanfit/presentation/ui/activitys/SplashActivity.java | UTF-8 | 1,912 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.testinstanfit.presentation.ui.activitys;
import android.content.Intent;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.TextView;
import com.testinstanfit.daniel.BuildConfig;
import com.testinstanfit.dan... | true |
82e3f41c46bce534b7e592eddc50623438040dd0 | Java | eyar/Distributed-System-Programming | /Assignment2/sources/step1j/Step1Reducer.java | UTF-8 | 3,123 | 3.09375 | 3 | [] | no_license | import java.io.IOException;
import java.util.Arrays;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class Step1Reducer extends Reducer<Text, Text, Text, Text> {
String[] lastKey;
private long lastWordCount, lastPairCount;
@Override
public void setup(Context context) throw... | true |
9d7297a7976f75ab3385fdd0c682f2601f0f166f | Java | Zhao233/RSS | /souceCode/RSS/src/main/java/com/example/demo/service/user/Imp/LoginServiceImp.java | UTF-8 | 1,560 | 2.0625 | 2 | [] | no_license | package com.example.demo.service.user.Imp;
import com.example.demo.domain.info.AppInfo;
import com.example.demo.service.info.imp.AppInfoService;
import com.example.demo.service.user.LoginService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ht... | true |
42de7ffd8f951aea82491d56c416f83da3e988f5 | Java | robsman/stardust.ui.web | /graphics-common/src/main/java/org/eclipse/stardust/ui/web/graphics/service/annotation/types/AnnotationProperties.java | UTF-8 | 2,209 | 1.601563 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 SunGard CSA LLC and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | true |
80142d09c98df5c5ff1c7da274f0e431bdcf1a3a | Java | rslakra/TJWS2 | /src/javax/servlet/http/HttpServletResponse.java | UTF-8 | 5,532 | 1.773438 | 2 | [] | no_license | // Serve - minimal Java servlet container class
//
// Copyright (C)2018 by Rohtash Singh Lakra <rohtash.singh@gmail.com>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions ... | true |
574806c517b1c776232da94a83a18f544b9ea85a | Java | yann-gael/design-patterns | /sdm/src/java/factory/AbstractSortFactory.java | UTF-8 | 96 | 2.125 | 2 | [] | no_license | package src.java.factory;
public interface AbstractSortFactory
{
public ISort getSort();
}
| true |
456210848a79a8f8c786c15f6d4fbc2ae8366523 | Java | starovoytovprog/simpleTasks | /StepikJavaBaseCourse/src/test/java/lesson4/task6/ThiefTest.java | UTF-8 | 908 | 2.765625 | 3 | [] | no_license | package lesson4.task6;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Тестирование lesson4.task6.Thief {@link Thief}
*
* @author Starovoytov
* @since 11.04.2018
*/
public class ThiefTest {
/**
* Проверка результата выполнения метода
*/
@... | true |
303241785732144953159e10ecf023ee28f28adc | Java | aslamk12/santhwanam | /android/volunteer/app/src/main/java/com/example/volunteer/SharedPrefManager.java | UTF-8 | 3,171 | 2.5 | 2 | [] | no_license | package com.example.volunteer;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
public class SharedPrefManager {
private static final String SHARED_PREF_NAME = "volunteersharedpref";
private static final String KEY_NAME = "keyname";
priv... | true |
4985c4a88cacd78e5f84623a9f85c10139332c70 | Java | sunshinewei/Gank.io | /app/src/main/java/com/example/weilong/gankio/ui/adapter/MainRecyclerAdapter.java | UTF-8 | 3,943 | 2.125 | 2 | [] | no_license | package com.example.weilong.gankio.ui.adapter;
import android.content.Context;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
imp... | true |
26148384bb7f0446b60ac6bd4d4cfff401a1d17f | Java | yxf9527/Spring | /src/com/imooc/importResource/test.java | UTF-8 | 684 | 1.96875 | 2 | [] | no_license | package com.imooc.importResource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import com.imooc.junit.UnitTestBase;
@RunWith(BlockJUnit4ClassRunner.class)
public class test extends UnitTestBase {
public test(){
super("classpath:springconfig/spring-jdbc... | true |
c7c9353c2b3c9a1d7901404f19e0bff8395b5032 | Java | tarunthota3/leetcode-solutions | /solutions/495. Teemo Attacking.java | UTF-8 | 394 | 3.03125 | 3 | [] | no_license | class Solution {
public int findPoisonedDuration(int[] timeSeries, int duration) {
if(timeSeries.length == 0)
return 0;
int count = 0;
for(int i = 0; i<timeSeries.length-1; i++)
count += Math.min(timeSeries[i+1] - timeSeries[i], duration);
... | true |
c1180afc58ab0ad41c895e001240637892a01147 | Java | mfsylla/JavaProject | /src/BallsImage.java | ISO-8859-1 | 9,725 | 3.015625 | 3 | [] | no_license |
/////////////////////
import javax.swing.*;
//////////////////////////////////
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import jav... | true |
bf5ec186c0d0167039d2d4aea057343d7005fdc5 | Java | ajokic1/naucna-centrala | /naucna-centrala-andrej/src/main/java/ftn/uns/ac/rs/ncandrej/service/processpaper/NotifyReviewExpired.java | UTF-8 | 984 | 2.078125 | 2 | [] | no_license | package ftn.uns.ac.rs.ncandrej.service.processpaper;
import javax.inject.Named;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ftn.uns.a... | true |
9acecbafd79cc7efe57c4fcf1c213e8ebd4c4b5e | Java | jhou-pro/tg | /platform-web-resources/src/main/java/ua/com/fielden/platform/web/test/server/PopulateDb.java | UTF-8 | 19,351 | 1.851563 | 2 | [] | no_license | package ua.com.fielden.platform.web.test.server;
import java.io.FileInputStream;
import java.math.BigDecimal;
import java.util.Currency;
import java.util.List;
import java.util.Properties;
import java.util.SortedSet;
import org.joda.time.DateTime;
import ua.com.fielden.platform.algorithm.search.ISearchAlgorithm;
imp... | true |
b6a356d523a4c6f335124fdbdc3fb8ef29f6eb79 | Java | druizcayuela/java-ddd | /src/backoffice/test/social/app/backoffice/auth/domain/AuthPasswordMother.java | UTF-8 | 324 | 2.15625 | 2 | [] | no_license | package social.app.backoffice.auth.domain;
import social.app.shared.domain.WordMother;
public final class AuthPasswordMother {
public static AuthPassword create(String value) {
return new AuthPassword(value);
}
public static AuthPassword random() {
return create(WordMother.random());
... | true |
4f55024438ca26633846752aaadd7abd95eb73a2 | Java | achavez812/GuatemalaProject2 | /GuateMedic/src/com/stanford/guatemedic/DetailedFamily.java | UTF-8 | 3,270 | 2.921875 | 3 | [] | no_license | package com.stanford.guatemedic;
import java.util.ArrayList;
public class DetailedFamily {
private boolean in_progress;
private String village_name;
private String family_id;
private String temp_family_id; //Read only, set in constructor
private String parent1_name;
private String parent1_dob;
private ... | true |
3696fc2588b4f9f61eda6128f028a884b1f1dd7c | Java | gaidin17/RestWebService | /src/main/java/com/epam/exceptions/WebApplicationBookingException.java | UTF-8 | 469 | 2.21875 | 2 | [] | no_license | package com.epam.exceptions;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
* Created by Evgeny_Akulenko on 7/6/2016.
*/
public class WebApplicationBookingException extends WebApplicationException {
public WebApplicationBookingException(Stri... | true |
df0f409fbabfbbd2b73e2d526ea389b002ef2dbc | Java | kwasniewskisda/UnitTest | /src/main/java/pl/sda/tests/calculator/HighValueProvider.java | UTF-8 | 98 | 1.765625 | 2 | [] | no_license | package pl.sda.tests.calculator;
public interface HighValueProvider {
int getHighValue();
}
| true |
1ca63c26b20bd7b414ba7fbb7405434cf2da4277 | Java | ArchieGodfrey/Kroy | /tests/src/com/sprites/MovementSpriteTest.java | UTF-8 | 8,188 | 2.65625 | 3 | [] | no_license | package com.sprites;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
// Import Java File type
import java.io.File;
//LibGDX imports
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.Texture;
import com.bad... | true |
769b84fd5f6568af7a4f1501605c08ff525cfc03 | Java | hnpanther/microservice-test | /user-service-project/src/main/java/com/hnp/userserviceproject/model/Book.java | UTF-8 | 1,205 | 2.65625 | 3 | [] | no_license | package com.hnp.userserviceproject.model;
public class Book {
private int id;
private String name;
private int numberOfPage;
private Author author;
public Book() {}
public Book(int id, String name, int numberOfPage, Author author) {
this.id = id;
this.name = name;
thi... | true |
078e7112d42854bdb250e8964db7d229b861ee82 | Java | Ashkroft/spec2 | /decorator/src/CounterBracketsDecorator.java | UTF-8 | 413 | 2.703125 | 3 | [] | no_license | import java.io.PrintStream;
public class CounterBracketsDecorator<E> extends Decorator<E> {
String summary;
public CounterBracketsDecorator(Sequence array, String summary) {
super(array);
this.summary=summary;
}
public void print(String delimiter, PrintStream ps) {
array.... | true |
8bd0760bcdf2a9dce458f99df0c4f427abf8141d | Java | trung10/CBV | /app/src/main/java/com/fourtsoft/bvc/base/BaseActivity.java | UTF-8 | 2,320 | 2.03125 | 2 | [] | no_license | package com.fourtsoft.bvc.base;
import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import com.fourtsof... | true |
263162d83179bd4abd2770471391a752e9bcd0ca | Java | KarthikRaja1388/EdenzResearchBank | /src/main/java/nz/ac/edenz/ResearchBank/exception/UserDiabledException.java | UTF-8 | 240 | 1.984375 | 2 | [] | no_license |
package nz.ac.edenz.ResearchBank.exception;
public class UserDiabledException extends Exception{
public UserDiabledException() {
}
public UserDiabledException(String errorDesc) {
super(errorDesc);
}
}
| true |
9bc07164084a8745d6d7198bd45182d04208c313 | Java | MChartier/PizzaDemocracy | /PizzaDemocracyDataCollection/src/PizzaScore.java | UTF-8 | 463 | 3.078125 | 3 | [] | no_license |
public class PizzaScore {
public int utility;
public int vetoes;
public PizzaScore(int utility, int vetoes) {
this.utility = utility;
this.vetoes = vetoes;
}
// Score exceeds another if it has fewer vetoes or
// same number of vetoes and a higher 'score' value
public boolean higherThan(PizzaScore ch... | true |
68aa4140b76a85133d39715f5cebf9ad43784779 | Java | xeeshansami/Youniform | /app/src/main/java/com/youniform/android/Model/Searched/Matched_substrings.java | UTF-8 | 454 | 1.90625 | 2 | [] | no_license | package com.youniform.android.Model.Searched;
import androidx.annotation.Keep;
@Keep
public class Matched_substrings {
private int length;
private int offset;
public int getLength() {
return this.length;
}
public void setLength(int length) {
this.length = length;
}
publ... | true |
86b57e36d5aeba1068d4fbdef6c721d59757e61f | Java | stephenmjm/demo | /demo-domain/src/main/java/com/gigold/pay/demo/service/PubMsgService.java | UTF-8 | 482 | 1.632813 | 2 | [] | no_license | package com.gigold.pay.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gigold.pay.demo.dao.PubMsgDAO;
import com.gigold.pay.framework.base.dataroute.DataRoute;
@Service
public class PubMsgService {
@Au... | true |
e251b4d4806d923ca8acbda6a74fbda227815d0a | Java | mrepisch/Messanger | /app/src/main/java/tcp/nerd/messenger/MessengerTcpSocket.java | UTF-8 | 7,279 | 2.84375 | 3 | [] | no_license | package tcp.nerd.messenger;
import android.os.NetworkOnMainThreadException;
import android.util.Log;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
i... | true |
602c2c0afea330c34b000ac7433c509c39e3206d | Java | wyl9297/report-app | /src/main/java/cn/bidlink/report/app/datasource/auction/AuctionSupplierDealResultDataSource.java | UTF-8 | 1,839 | 2.0625 | 2 | [] | no_license | package cn.bidlink.report.app.datasource.auction;
import cn.bidlink.procurement.auction.cloud.service.AuctionSupplierDealResultService;
import cn.bidlink.procurement.auction.cloud.vo.AuctionSupplierDealTotalVo;
import cn.bidlink.procurement.auction.cloud.vo.AuctionSupplierDealVo;
import cn.bidlink.report.app.datasourc... | true |
90abfeea8f55e95fde68dd93d9776e8ed17533f4 | Java | Gilandel/calc | /src/main/java/fr/landel/calc/config/Conf.java | UTF-8 | 9,310 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package fr.landel.calc.config;
import java.awt.Frame;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.regex.Pattern;
import fr.landel.calc.processor.Entity;
import fr.landel.calc.processor.Pro... | true |
3621f4f41415c1a873d37e59fb60bc710f09c03c | Java | Bellukchips/PBO4417---A11.2019.11985 | /PERTEMUAN1/Praktek/StandartIOJava/src/standartiojava/StandartIOJava.java | UTF-8 | 1,043 | 3.203125 | 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 standartiojava;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author nothing
*/
public class Stan... | true |
f1adc80a166035e4186564238760b860dcb36e0b | Java | appirio-tech/direct-app | /components/online_review_upload_services/src/java/tests/com/cronos/onlinereview/services/uploads/UploadServiceClient.java | UTF-8 | 4,714 | 2.765625 | 3 | [] | no_license | package com.cronos.onlinereview.services.uploads;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service... | true |
f321e14139df9db9d0274fca03be5e779f4476c1 | Java | almirage/AIOthello | /src/jp/hutcraft/otl/entity/Decide.java | UTF-8 | 489 | 2.46875 | 2 | [] | no_license | package jp.hutcraft.otl.entity;
import java.io.Serializable;
public final class Decide implements Serializable {
private static final long serialVersionUID = 1L;
public static final Decide NullDecide = new Decide(Field.NONE, "");
private final Field field;
private final String voice;
public Decide(final Field fi... | true |
3e8e373922998ac25c0c7bc5151cb36ef2550f9d | Java | pvprojects/lojaPostman | /src/main/java/br/com/pvprojects/loja/util/enums/PersonType.java | UTF-8 | 83 | 1.664063 | 2 | [] | no_license | package br.com.pvprojects.loja.util.enums;
public enum PersonType {
F,
J
} | true |
318ae6b18f51a63dbb5aadbd5268ead3189f4691 | Java | RoboBears5611/Ftc2019RoverRuckus | /Team5611/src/main/java/team5611/FtcAutoSimple.java | UTF-8 | 1,007 | 2.25 | 2 | [
"BSD-3-Clause",
"MIT"
] | permissive | package team5611;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import java.util.Date;
import ftclib.FtcOpMode;
import trclib.TrcRobot;
@Autonomous(name="Simple Autonomous",group = "Auto")
public class FtcAutoSimple extends FtcOpMode {
Cm... | true |
7383a53755c304cbe2391eace8ff55779fb04f5d | Java | beniaminp/ReaderServcer | /src/main/java/com/padana/ebook/contorollers/JwtAuthenticationController.java | UTF-8 | 2,824 | 2.265625 | 2 | [] | no_license | package com.padana.ebook.contorollers;
import com.padana.ebook.config.jwt.JwtAuthenticationManager;
import com.padana.ebook.config.jwt.JwtRequest;
import com.padana.ebook.config.jwt.JwtResponse;
import com.padana.ebook.config.jwt.JwtTokenUtil;
import com.padana.ebook.dto.UserDTO;
import com.padana.ebook.services.JwtUs... | true |
31811f18f56ffbb693f0756bdd229ec249f2cd45 | Java | zzzbuhuiwang/activiti | /src/main/java/com/jaden/activiti/ActivitiInclusiveGatewayStep.java | UTF-8 | 2,735 | 2.59375 | 3 | [] | no_license | package com.jaden.activiti;
import org.activiti.engine.*;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import java.util.HashMap;
import java.util.Map;
/**
* 一个Activiti 网关使用过程
* 包含网关 InclusiveGateway
* 注意:
* ... | true |
71c226b438bb7c8322788349efd22d4a882e42c6 | Java | lenik/stack | /ape/execution/ape-engine/src/main/java/com/bee32/ape/engine/beans/DataSourcePec.java | UTF-8 | 1,608 | 1.703125 | 2 | [] | no_license | package com.bee32.ape.engine.beans;
import javax.sql.DataSource;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.activiti.spring.SpringProcessEngineConfiguration;
import org.springframework.transaction.PlatformTransactionManager;
i... | true |
4f271a16ac6660cbb572162dcfd8b87503bd951c | Java | araz99/bookRoom-reactiveStyle | /src/main/java/dev/araz/dto/UserRespDto.java | UTF-8 | 137 | 1.5625 | 2 | [] | no_license | package dev.araz.dto;
import lombok.Data;
@Data
public class UserRespDto {
private String username;
private int quantityBook;
} | true |
ae8d802ad2fd5ac490a62aea2ded2a57b9ede75d | Java | zhurx4g/bootcms | /src/main/java/com/googlecode/bootstrapx/service/FriendLinkService.java | UTF-8 | 1,981 | 2.140625 | 2 | [] | no_license | package com.googlecode.bootstrapx.service;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.googlecode.bootstrapx.dao.FriendLinkDAO;
import com.googlecode.bootstrapx.model.Frien... | true |
4258caf28daf109778d35ae852abb9f784fe4f5b | Java | seasun8111/ECERP | /src/test/java/com/trueland/ecerp/service/ProductServiceTest.java | UTF-8 | 2,174 | 2.21875 | 2 | [] | no_license | package com.trueland.ecerp.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.unitils.dbunit.annotation.Da... | true |
1aea955d86348ab2f6ea76482769ac3c4ebd9fa3 | Java | pnowy/Various | /src/test/java/com/github/pnowy/various/patterns/creational/builder/pattern2/Pizza.java | UTF-8 | 1,124 | 3.265625 | 3 | [] | no_license | package com.github.pnowy.various.patterns.creational.builder.pattern2;
/**
* Przemek Nowak <przemek.nowak.pl@gmail.com>
* Date: 05.05.13 19:51
*/
public class Pizza
{
private int size;
private boolean cheese;
private boolean pepperoni;
private boolean bacon;
public Pizza(Builder builder)
{
this.size = buil... | true |
c1f9ea9df9b475cb6f64c5e4466e0fa96da541ec | Java | canini9720/supra-micro | /supra-micro-userprofile/src/main/java/com/supra/service/EmployeeServiceImpl.java | UTF-8 | 1,619 | 2.203125 | 2 | [] | no_license | package com.supra.service;
import java.util.List;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.supra.common.util.CommonUtil;
i... | true |
73025f8338823907df95b4b6b1bc08e1b1fddbe5 | Java | onlylfx/ATM-2.0 | /Atm/src/com/feicuiedu/atm/business/Login.java | UTF-8 | 1,127 | 2.578125 | 3 | [] | no_license | package com.feicuiedu.atm.business;
import java.util.Scanner;
import com.feicuiedu.atm.bean.Admin;
import com.feicuiedu.atm.bean.AdminMenu;
public class Login {
private Admin admin;
private AdminMenu adminMenu;
private Navigation navg;
public Login() {
// TODO Auto-generated constructor stub
}
Menu menu ... | true |
a4c888ee1b63a6a1ace836161f5cbbab230de332 | Java | JuanSicardo/MusicRestfulCrud | /src/main/java/com/juansicardo/JpaDemo/controller/ArtistController.java | UTF-8 | 1,378 | 2.1875 | 2 | [] | no_license | package com.juansicardo.JpaDemo.controller;
import com.juansicardo.JpaDemo.entity.Artist;
import com.juansicardo.JpaDemo.entity.ArtistJoin;
import com.juansicardo.JpaDemo.service.ArtistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java... | true |
b695be34f166d2df5f6493b23b30867d99a78cbf | Java | elloot/kattisProblems | /src/tebryggningOlymp.java | UTF-8 | 1,027 | 3.125 | 3 | [] | no_license | import java.util.Scanner;
/**
* Class description
* 2019-11-29
* Author: Elliot Duchek
*/
public class tebryggningOlymp {
public static void main(String[] args) {
Scanner kb = new Scanner(System.in);
int numBag = getNumBag(kb);
int numPpl = getNumPpl(kb);
int[] bagReach = getBag... | true |
82c2265c97707854588d0cae4b6b1df439270aea | Java | jenshadlich/s3srv | /src/main/java/de/jeha/s3srv/common/RFC822Date.java | UTF-8 | 1,224 | 2.671875 | 3 | [
"MIT"
] | permissive | package de.jeha.s3srv.common;
import org.joda.time.DateTimeZone;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.tz.FixedDateTimeZone;
import java.time.Instant;
import java.util.Date;
import java.util.Locale;
public class RFC822Date {
private stati... | true |
e032f30a63a03c35c13cf4a69e5e556ef02b5855 | Java | yzh549345916/hsqxtszyb | /src/main/java/com/yzh/hsqxtszyb/mapper/qtShaChenMapper.java | UTF-8 | 1,026 | 1.796875 | 2 | [] | no_license | package com.yzh.hsqxtszyb.mapper;
import com.yzh.hsqxtszyb.model.huanbao.qtShaChen;
import java.util.Date;
import java.util.List;
import com.yzh.hsqxtszyb.model.huanbao.站点信息;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface qtShaChenMapper {
List<站... | true |
376ab6f94e5ca59750f5b4bb26cfb07e944a9cc4 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/sheimi_SGit/src/main/java/me/sheimi/sgit/RepoListActivity.java | UTF-8 | 8,378 | 1.507813 | 2 | [] | no_license | // isComment
package me.sheimi.sgit;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;... | true |
ac806215489979286ab22de4ec77dacc50206116 | Java | Ritik488/Leetcode-Solutions | /Greedy/Medium/NonOverLappingIntervals.java | UTF-8 | 472 | 3.234375 | 3 | [] | no_license | import java.util.*;
class NonOverLappingIntervals{
public int[][] eraseOverlapIntervals(int[][] intervals){
Arrays.sort(intervals, new Comparator<int[]>(){
@Override
public int compare(int[] a, int[] b){
return a[0] != b[0] ? a[0] - b[0] : b[1] - a[1];
}
});
for... | true |
3b6a2a842efc0ede2e4e0dc2150a940406ef1cf2 | Java | Gayathri-3/secure | /SyncUp/SyncUp Source Code/SyncUp/source/com/bv/sync/ProgressNotification.java | UTF-8 | 544 | 2.03125 | 2 | [] | no_license | package com.bv.sync;
public interface ProgressNotification
{
boolean update(ProgressAction p0, int p1, IFile p2);
public enum ProgressAction
{
Connecting("Connecting", 6),
Copying("Copying", 1),
Deleting("Deleting", 2),
Grouping("Grouping", 4),
Listing("List... | true |
97fa698e12db780188cab32edd77ca14b1ea3075 | Java | Nimra121/TravelShare | /TravelShare/TravelRoom/java/myDAO.java | UTF-8 | 354 | 1.703125 | 2 | [] | no_license | package com.example.travelroom;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
@Dao
public interface myDAO {
@Insert
void InsertLocation(Location location);
@Insert
void InsertUser(User user);
@Delete
void DeleteLocation(Location location);
@Delete
... | true |
c170fc031055bb45241810af6c6aee9316b5ba9d | Java | BenHaiXiao/topic | /topic-article/src/main/java/com/github/benhaixiao/topic/event/article/ArticlePostAcclaimEvent.java | UTF-8 | 857 | 2.09375 | 2 | [] | no_license | package com.github.benhaixiao.topic.event.article;
import com.github.benhaixiao.topic.event.Event;
import com.github.benhaixiao.topic.acclaim.Acclaim;
/**
* @author xiaobenhai
*
*/
public class ArticlePostAcclaimEvent extends Event {
private String appid;
private Acclaim acclaim;
public ArticlePostAc... | true |
3ae1517edfda771bf4ac9ded3df821b073ae89c3 | Java | paleegui/beacon_project | /app/src/main/java/com/example/projectbeacon/Database/SQLite/ChangeRoomSqlite.java | UTF-8 | 6,266 | 2.640625 | 3 | [] | no_license | package com.example.projectbeacon.Database.SQLite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.projectbeacon.Model.ChangeRoom;
import com.example... | true |
d78e6cdee484b87f22509df674cf58bc13f4e318 | Java | Mahabub-HS/Advanced-Algorithms | /Matrix_Chain_Multiplication/src/com/company/Main.java | UTF-8 | 1,938 | 3.046875 | 3 | [] | no_license | package com.company;
public class Main {
public static void main(String[] args) {
int[] arr={4,10,3,12,20,7};
MCM(arr,arr.length);
}
private static void MCM(int[] arr, int length) {
int[][] tebulationTable = new int[length][length];
int[][] path = new int[length][length];
... | true |
6af8bbaa73a5c25bf7a1bcbafad7c15c45e579e9 | Java | bindu2505/Mode1-Training | /Day4/hcl.com.exp/src/expc/Ex2.java | UTF-8 | 522 | 3.078125 | 3 | [] | no_license | package expc;
public class Ex2 {
/**
* main method has logic.
* @param args list of arguments.
*/
public static void main(String[] args) {
try {
System.out.println("s");
throw new NullPointerException();
} catch (ArithmeticException e) {
System.out.println(e);
} catch (... | true |
27270503bd72e261247b06051165eb5404564ae5 | Java | aleknik/scientific-center | /scientific-center-service/src/main/java/io/github/aleknik/scientificcenterservice/model/dto/auth/AuthenticationRequest.java | UTF-8 | 946 | 2.5 | 2 | [] | no_license | package io.github.aleknik.scientificcenterservice.model.dto.auth;
import javax.validation.constraints.NotEmpty;
/**
* Represents user's authentication request.
* Used when user tries to log in to the system.
*/
public class AuthenticationRequest {
/**
* User's username.
*/
@NotEmpty
private ... | true |
f44d26a007c7e7194151e1246feb450d6fe4e48d | Java | urclys/project | /src/main/java/cnrst/ma/entity/Contrat.java | UTF-8 | 1,756 | 2.34375 | 2 | [] | no_license | package cnrst.ma.entity;
import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Entity
public class Contrat implements Serializable {
private static final long serialVersionUID = 2L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long Id;
@NotNull
... | true |
b23c9683c10b4f28492fe3d29b1c8aa49e8595e3 | Java | thanasisKirmizis/HairRSVManager | /app/src/main/java/com/kirman/hairrsvmanagerlocal/clientInfoFragment.java | UTF-8 | 5,563 | 1.9375 | 2 | [] | no_license | package com.kirman.hairrsvmanagerlocal;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable... | true |
5c88fd2b0fe070d41f9bc83e5c0ea5f3fc522fcd | Java | wojtekantoniak/war_java_w_01 | /dzien4/Spring02mvc/src/main/java/pl/coderslab/controller/HelloController.java | UTF-8 | 2,804 | 2.3125 | 2 | [] | no_license | package pl.coderslab.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.b... | true |
6e24f02db93260811e62b5d5e1f09de17a1392d2 | Java | gornovah/robot_reads_pm25 | /src/main/java/com/seatcode/robotread/actions/RobotSystem.java | UTF-8 | 2,255 | 2.28125 | 2 | [] | no_license | package com.seatcode.robotread.actions;
import com.google.maps.model.LatLng;
import com.seatcode.robotread.api.decoder.PolylineDecoder;
import com.seatcode.robotread.domain.services.RouteService;
import com.seatcode.robotread.domain.model.Average;
import com.seatcode.robotread.domain.model.Record;
import com.seatcode.... | true |
703ebdc4a52b202133cbc1f0d66f0a1dd8e8798d | Java | Prity1992/MobileAutomationNIA | /seltaf/src/com/aqm/staf/library/databin/PrivateCarEntity.java | UTF-8 | 209 | 1.640625 | 2 | [] | no_license | package com.aqm.staf.library.databin;
public class PrivateCarEntity extends GenericEntity{
public PrivateCarEntity() {
super("PrivateCarEntity");
// TODO Auto-generated constructor stub
}
}
| true |
98f95685910d3a1c7b95acb262c03cbab5f910d3 | Java | robjg/arooa | /src/main/java/org/oddjob/arooa/json/ConfigurationTreeBuilder.java | UTF-8 | 7,589 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package org.oddjob.arooa.json;
import org.oddjob.arooa.ArooaConfiguration;
import org.oddjob.arooa.ArooaParseException;
import org.oddjob.arooa.ConfigurationHandle;
import org.oddjob.arooa.parsing.*;
import org.oddjob.arooa.runtime.ConfigurationNode;
import java.net.URI;
import java.util.*;
import java.util.concurren... | true |