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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c8c3caa6c16d9ada5c27730773b3a29a414c1c1 | Java | suddat/udemy | /src/com/udemy/IO/MaxAndMin.java | UTF-8 | 741 | 3.640625 | 4 | [] | no_license | package com.udemy.IO;
import java.util.Scanner;
public class MaxAndMin {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int current = 0;
int counter = 0;
int order = 0;
int min=1;
int max=-1;
while (true) {
order = counter + 1;
System.out.println("Enter no #" + o... | true |
f2b90d4104e10ed85995c5adf8d0c34e140f839b | Java | Guergeiro/es2-assignment | /src/main/java/com/brenosalles/handlers/AbstractHandler.java | UTF-8 | 2,664 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.brenosalles.handlers;
import java.util.ArrayList;
import com.brenosalles.resources.Resource;
import com.brenosalles.tokens.Token;
import com.brenosalles.users.User;
public abstract class AbstractHandler implements IHandler {
private IHandler nextHandler;
@Override
public IHandler setNext(IHa... | true |
b709ba0033b6913c6271bded79da1aa28b121aca | Java | jbosstm/narayana | /ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/orbspecific/interposition/resources/osi/ServerOSITopLevelAction.java | UTF-8 | 3,412 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright The Narayana Authors
SPDX short identifier: Apache-2.0
*/
package com.arjuna.ats.internal.jts.orbspecific.interposition.resources.osi;
import org.omg.CORBA.SystemException;
import org.omg.CosTransactions.HeuristicCommit;
import org.omg.CosTransactions.HeuristicHazard;
import org.omg.CosTransacti... | true |
34c1ea68d07dd5924b6f6019be2684c0006db116 | Java | time2funk/java-projects | /utp3/src/utp3/lesson.java | UTF-8 | 938 | 3.09375 | 3 | [] | no_license | package utp3;
import java.util.Arrays;
import java.util.List;
public class lesson {
public static void main(String[] args){
IFunc<Double, Double> exp = new IFunc<Double, Double>(){
public Double call(Double a){
return Math.pow(a, 0.5);
}
};
IBFunc<Double, Double, Double> exp2 = new IBFun... | true |
279cc1c3a1721680fc675df45ba1bbba8c761763 | Java | suomenriistakeskus/oma-riista-web | /src/main/java/fi/riista/feature/announcement/crud/AnnouncementCrudFeature.java | UTF-8 | 7,141 | 1.789063 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package fi.riista.feature.announcement.crud;
import com.google.common.base.Preconditions;
import fi.riista.feature.RequireEntityService;
import fi.riista.feature.account.user.ActiveUserService;
import fi.riista.feature.account.user.SystemUser;
import fi.riista.feature.account.user.SystemUserPrivilege;
import fi.riista... | true |
8ade0c9eab5acd84c12df159daa66a9ee01e01ad | Java | lgallez/csClasses | /JavaClass/JavaFiles/Packages/one/One.java | UTF-8 | 83 | 1.773438 | 2 | [] | no_license | package one;
public class One
{
public void one() { System.out.println("One");}
} | true |
0d4540802d6b81791a8306d162b48114ea73c4d9 | Java | iantal/AndroidPermissions | /apks/malware/app36/source/eu/evandorostech/droider/ClassAct.java | UTF-8 | 33,295 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package eu.evandorostech.droider;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.SharedPrefe... | true |
56854bf65c050dcc05d8da59bbd3ec57d66a61d1 | Java | gitter-badger/perspective-backend | /perspective-shell/src/main/java/org/meridor/perspective/shell/misc/impl/PagerImpl.java | UTF-8 | 4,431 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package org.meridor.perspective.shell.misc.impl;
import com.google.common.collect.Lists;
import jline.console.ConsoleReader;
import org.meridor.perspective.shell.misc.Logger;
import org.meridor.perspective.shell.misc.Pager;
import org.meridor.perspective.shell.misc.TableRenderer;
import org.meridor.perspective.shell.r... | true |
b5732aaf20c02c29f63389fb39942177a1cdcc9f | Java | Emergency-Response-Demo/responder-simulator | /src/main/java/com/redhat/cajun/navy/responder/simulator/data/DistanceHelper.java | UTF-8 | 2,626 | 2.890625 | 3 | [] | no_license | package com.redhat.cajun.navy.responder.simulator.data;
import java.math.BigDecimal;
import java.math.RoundingMode;
/**
* Reference: http://www.movable-type.co.uk/scripts/latlong.html
*/
public class DistanceHelper {
static final int R = 6371; // Radius of the earth
public static double calculateDistance... | true |
7502cba728bf3846eff38de9df1b3df2f21f54df | Java | siokas/PLAIN | /app/src/main/java/gr/siokas/plain/app/Decision.java | UTF-8 | 8,092 | 2.34375 | 2 | [] | no_license | package gr.siokas.plain.app;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.KeyEvent;
import... | true |
1eaffdcdcb1c0df3663932d292ad16d4ca497e47 | Java | JaneStojilkov/Interview_Task | /src/TestJson.java | UTF-8 | 3,301 | 3.046875 | 3 | [] | no_license | import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Col... | true |
30dc1d3bac7c3ed79a7ff38f46f8ec0e9659f0d6 | Java | knowing/Medmon | /de.lmu.ifi.dbs.medmon.sensor.core/src/main/java/de/lmu/ifi/dbs/medmon/sensor/core/ISensorManager.java | UTF-8 | 1,385 | 2.296875 | 2 | [] | no_license | package de.lmu.ifi.dbs.medmon.sensor.core;
import java.nio.file.Path;
import java.nio.file.WatchEvent;
import java.util.List;
/**
*
* @author Nepomuk Seiler
* @version 1.0
*
*/
public interface ISensorManager {
public static final String SENSOR_TOPIC = "medmon/sensor/core/sensor/*";
public static fina... | true |
84c988b82ebb990289c0651e3a67f2929827595e | Java | silentbalanceyh/vertx-zero | /vertx-pin/zero-atom/src/main/modulat/io/vertx/mod/atom/refine/AoData.java | UTF-8 | 4,690 | 2.21875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package io.vertx.mod.atom.refine;
import io.modello.dynamic.modular.jooq.convert.JsonArraySider;
import io.modello.dynamic.modular.jooq.convert.JsonObjectSider;
import io.modello.specification.HRecord;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.mod.atom.modeling.builtin.... | true |
1b9d8791bb0c9de4ae2d0ccac56280521e34b81b | Java | anandakumarirudhayaraj/cucumber-jvm | /core/src/main/java/cucumber/runtime/autocomplete/StepdefGenerator.java | UTF-8 | 2,554 | 2.234375 | 2 | [
"MIT"
] | permissive | package cucumber.runtime.autocomplete;
import cucumber.api.Argument;
import cucumber.runtime.StepDefinition;
import cucumber.runtime.model.CucumberFeature;
import gherkin.pickles.Compiler;
import gherkin.pickles.Pickle;
import gherkin.pickles.PickleStep;
import java.util.ArrayList;
import java.util.Collection;
import... | true |
239f7ef9ca47659da425c45a7a887ba67de22389 | Java | achun2080/Phynixx | /phynixx/phynixx-xa/src/main/java/org/csc/phynixx/xa/XAPooledConnectionFactory.java | UTF-8 | 2,902 | 2.359375 | 2 | [] | no_license | package org.csc.phynixx.xa;
import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool;
import org.csc.phynixx.connection.IRecordLoggerAware;
import org.csc.phynixx.connection.IPhynixxConnection;
import org.csc.phynixx.connection.IPhynixxConnectionFactory;
import... | true |
29c5c5fe02ee413bf212b2ec3317dd2e8a4f8bc6 | Java | free6d1823/joyjogger | /app/src/main/java/com/breeze/joyjogger/RootActivity.java | UTF-8 | 9,657 | 1.75 | 2 | [] | no_license | package com.breeze.joyjogger;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.support.v13.app.FragmentPagerAdapter;
import android.os.Bundle;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.hardware.SensorManager;
impor... | true |
3dc3cb497d135c0a309eaf6764fe806c3bfb27c8 | Java | morningblu/HWFramework | /MATE-20_EMUI_11.0.0/src/main/java/android/camera/IHwCameraUtil.java | UTF-8 | 330 | 1.609375 | 2 | [] | no_license | package android.camera;
import android.util.ArrayMap;
public interface IHwCameraUtil {
int filterVirtualCamera(ArrayMap<String, Integer> arrayMap, int i);
boolean isIllegalAccessAuxCamera(int i, String str);
boolean needHideAuxCamera(int i);
boolean notifySurfaceFlingerCameraStatus(boolean z, boole... | true |
b12f5430149f982bbcc8d64937c36463a6f57e35 | Java | IvanTserulik/product-availability-microservices | /product-application/src/main/java/edu/itserulik/product/controller/CommonExceptionHandler.java | UTF-8 | 593 | 1.882813 | 2 | [] | no_license | package edu.itserulik.product.controller;
import com.netflix.hystrix.exception.HystrixRuntimeException;
import edu.itserulik.product.exception.NotAvailableException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.Excepti... | true |
9e127ff07c7e64424c8f49cd8625251af8b04533 | Java | Adi-Matzliah/RoboNotification | /app/src/main/java/com/exercise/temi/repository/ContactsScreenRepository.java | UTF-8 | 1,382 | 2.375 | 2 | [] | no_license | package com.exercise.temi.repository;
import com.exercise.temi.db.mapper.ContactEntityDataMapper;
import com.exercise.temi.network.model.Contact;
import java.sql.Timestamp;
import java.util.List;
import io.reactivex.Observable;
/**
* Created by adi.matzliah on 07/03/2018.
*/
public class ContactsScreenRepository im... | true |
f42a9c69fe04aadd7e9d95dadaca60a68525f187 | Java | aiical/middle-ground | /business-center/src/main/java/com/cloud/business/alibaba/logistics/param/AlibabaTradeGetLogisticsInfosBuyerViewParam.java | UTF-8 | 1,865 | 2.109375 | 2 | [] | no_license | package com.cloud.business.alibaba.logistics.param;
import com.cloud.business.alibaba.ocean.rawsdk.client.APIId;
import com.cloud.business.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
/**
*
* @description:
* @author: 廖权名
* @date: 2020/9/10 18:21
*/
public class AlibabaTradeGetLogisticsInfosBuyerViewParam exte... | true |
b8d3e12b81578aacd1640004beac0a42ebf3c980 | Java | gon125/knuGra | /app/src/main/java/com/knucse/knugra/DM_package/Database.java | UTF-8 | 11,797 | 1.929688 | 2 | [] | permissive | package com.knucse.knugra.DM_package;
import com.knucse.knugra.PD_package.Graduation_Info_package.Graduation_Info;
import com.knucse.knugra.PD_package.Graduation_Info_package.Graduation_Info_Item;
import com.knucse.knugra.PD_package.Graduation_Info_package.Graduation_Info_List;
import com.knucse.knugra.PD_package.Subj... | true |
2ac6a4273ba9bf6b0820f6af7924a4e33de16978 | Java | jijunwei/riskDesignerPlugin | /r06/src/util/XMLReader.java | UTF-8 | 2,295 | 3.078125 | 3 | [] | no_license | package util;
import java.io.File;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class XMLReader {
public static Stri... | true |
e9480941dd20a1b7bd547b332463cb2eae31bb88 | Java | onap/oom-platform-cert-service | /certService/src/test/java/org/onap/oom/certservice/certification/configuration/validation/constraints/violations/PortNumberViolationTest.java | UTF-8 | 2,625 | 2.0625 | 2 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | /*
* ============LICENSE_START=======================================================
* PROJECT
* ================================================================================
* Copyright (C) 2020 Nokia. All rights reserved.
* ================================================================================
* L... | true |
efebdedc22d4542e1d19c5f5f4e27ece3389255d | Java | hangalo/cheladocs | /src/java/cheladocs/modelo/Documento.java | UTF-8 | 2,640 | 2.265625 | 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 cheladocs.modelo;
import java.sql.Date;
/**
*
* @author Adelino Eduardo
*/
public class Documento {
... | true |
32a7b8c7564a28ebeb62141836312d246618381a | Java | asmirnov-tba/sv-cola-app | /src/main/java/sv/cola/app/domain/exchange/Answer.java | UTF-8 | 569 | 2.46875 | 2 | [] | no_license | package sv.cola.app.domain.exchange;
public class Answer {
public static final Answer CORRECT_ANSWER = new Answer(Status.CORRECT);
public static final Answer INCORRECT_ANSWER = new Answer(Status.INCORRECT);
public static final Answer PENALTY_ANSWER = new Answer(Status.PENALTY);
public enum Status{
CORRECT,... | true |
33a2e90db22759529ce8ff8f4466de1965acc223 | Java | djw1149/cougaar-glm | /glm/src/org/cougaar/mlm/debug/ui/ScrollingTextLine.java | UTF-8 | 3,105 | 2.421875 | 2 | [] | no_license | /*
* <copyright>
*
* Copyright 1997-2004 BBNT Solutions, LLC
* under sponsorship of the Defense Advanced Research Projects
* Agency (DARPA).
*
* You can redistribute this software and/or modify it under the
* terms of the Cougaar Open Source License as published on the
* Cougaar Open Source Website (w... | true |
f8a34e528b9df11daca044bf94697134aa390b44 | Java | Puffer-Labs/thrift-computer-microservice | /transaction-service/src/main/java/com/nimatullo/transactionservice/models/Message.java | UTF-8 | 500 | 2.484375 | 2 | [] | no_license | package com.nimatullo.transactionservice.models;
import java.util.UUID;
public class Message<T> {
private final UUID messageId;
private final T payload;
public Message(UUID messageId, T payload) {
this.messageId = messageId;
this.payload = payload;
}
public UUID getMessageId() {... | true |
b848d98faef0551f96c5cce042cc9793398f3b7b | Java | razi-ahmad/embl-ebi | /src/test/java/com/embl/ebi/controller/BaseControllerTest.java | UTF-8 | 1,211 | 2.125 | 2 | [] | no_license | package com.embl.ebi.controller;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import java.io.IOException;
import java.util.List;
public ... | true |
73cb7adcbcfaf20a105864e27453893e5b7416af | Java | AimanMalkoun/Gestion-demande-ressources-eau | /DisplayFolderController.java | UTF-8 | 18,268 | 1.984375 | 2 | [] | no_license |
import java.awt.Desktop;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Calendar;
import java.util.ResourceBundle;
import org.jpedal.exception.PdfException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import c... | true |
a225444f96a0031188a0fc45b49cb8481f4424d6 | Java | dulcoral/ProyectosPrebe | /Java/Pokemon/Test.java | UTF-8 | 809 | 3.40625 | 3 | [] | no_license | public class Test{
public static void main(String[] args) {
Pikachu p = new Pikachu();
Totodile t = new Totodile();
combat(p, t);
}
public static void combat(Pikachu p,Totodile t){
while(p.getLife() > 0 && t.getLife() > 0)
{
if(t.getHit() > p.getLife()){
System.out.println("Tur... | true |
e6d84fd6540cc433533ae05491356b293e239215 | Java | amontenegro1987/contac-bussiness-Soft | /contacbusiness/contac-server/modules/modelo/src/main/java/contac/modelo/eao/movimientoInventarioEAO/MovimientoInventarioEAOPersistence.java | UTF-8 | 4,181 | 2.171875 | 2 | [] | no_license | package contac.modelo.eao.movimientoInventarioEAO;
import contac.modelo.eao.genericEAO.GenericPersistenceEAO;
import contac.modelo.eao.genericEAO.GenericPersistenceEAOException;
import contac.modelo.entity.MovimientoInventario;
import java.util.Date;
import java.util.List;
/**
* Coctac Business Software. All rights... | true |
5bd8c03b26ff4e9c2091d64ad1f50bdf3524d70c | Java | lastivkagame/AndroidTestApiApp | /AndroidECommerce/app/src/main/java/com/example/androidecommerce/product_list.java | UTF-8 | 2,948 | 2.359375 | 2 | [] | no_license | package com.example.androidecommerce;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.ProgressBar;
import com.example.androidecommerce.dto.Produ... | true |
63e22e5047f7c9d5f47f37a1233ee8bb45462732 | Java | ibrahimseckin/software-engineering | /src/java/getServices/model/Myfields.java | UTF-8 | 1,283 | 2.203125 | 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 getServices.model;
/**
*
* @author yiğido
*/
public class Myfields {
private int id;
private int fie... | true |
074bc4f52d0b3ffe1fc277d979a6d5b55cdcfc9e | Java | ryandstermer/Summer2020_B20_git | /Summer2020_B20/src/day24_arrays/Unique2.java | UTF-8 | 702 | 3.265625 | 3 | [] | no_license | package day24_arrays;
import java.util.Scanner;
public class Unique2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String chain = input.nextLine();
String result = "";
for (int i = 0; i <= chain.length() - 1; i++) {
char figure1 = cha... | true |
bf5b4bdc732a1707bd9e81379cba1998a6f383b4 | Java | Telega815/Prj815 | /se/src/main/java/ru/test815/db/UserPackage/PwdStorage.java | UTF-8 | 460 | 2.265625 | 2 | [] | no_license | package ru.test815.db.UserPackage;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
public interface PwdStorage {
RowMapper<PwdData> ROW_MAPPER = (ResultSet resultSet, int rowNum) -> new PwdData(resultSet.getInt("pid"), resultSet.getInt("owner_id"), resultSet.getString("salt"), resultS... | true |
e3da5b4faf03a5be7deed7b550c8254204e2f308 | Java | 05516911370/CyberTek | /Yavuz/day20While/loops/whileloopPractice.java | UTF-8 | 317 | 3.203125 | 3 | [] | no_license | package day20While.loops;
public class whileloopPractice {
public static void main(String[] args) {
/* for (int i =1;i<=10;i++){
System.out.println(i);
}
*/
int i=1;
while( i<=10){
System.out.print(i+" ");
++i;
}
}
}
| true |
3abf9136b9de14f05d8485a5db342bf40538a3c2 | Java | sangeethab16/Decision-Tree-Classifier-using-MapReduce | /src/main/java/classification/utility/RatioCutPoint.java | UTF-8 | 532 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package classification.utility;
public class RatioCutPoint {
private float ratio;
private double cutPoint;
public RatioCutPoint(float ratio, double cutPoint) {
this.ratio = ratio;
this.cutPoint = cutPoint;
}
public float getRatio() {
return ratio;
}
public void se... | true |
4cadd26133943c853dc0e35b29e9dfd8de16ed20 | Java | niuwenchen/flume-nginx- | /flume-ng-source-dirregex/src/main/java/com/jackniu/Test.java | UTF-8 | 508 | 2.140625 | 2 | [] | no_license | package com.jackniu;
import com.google.gson.Gson;
public class Test {
public static void main(String[] args)
{
Json json = new Json();
json.fileName = "/opt/flume";
json.logBody ="ip";
json.ip = "0.0.0.0"; // 但是这里的IP还是有点问题
Gson gson = new Gson();
String eventString = gs... | true |
debd5333f49f0669adc366c79a319c1b9b048bf8 | Java | kevindeslauriers/ICS3---Introduction-to-CS | /Unit Two - Selection and Repition/src/week4/BooleanExpressions.java | UTF-8 | 2,326 | 4.375 | 4 | [] | no_license | package week4;
import java.util.Scanner;
public class BooleanExpressions {
public static void main(String[] args) {
primitiveBooleans();
compoundBooleanExpressions();
}
private static void compoundBooleanExpressions() {
// && => and
// || => or
// ! => not
Scanner in = new Scanner(System.... | true |
ffde9eb981c3b4788145cf5791ff15312e28d831 | Java | Ezequiel-Ferreira/spring-boot-ionic-backend | /src/main/java/com/example/cursomc/resources/PedidoResourse.java | UTF-8 | 1,298 | 2.265625 | 2 | [] | no_license | package com.example.cursomc.resources;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.spr... | true |
9df9da2a0f3d17c7b265464706fcf7cc53c95fec | Java | TokyoSlayers/apiPtero | /src/main/java/net/TokyoSlayer/ProxyPtero/database/Sql/SqlAccess.java | UTF-8 | 1,506 | 2.546875 | 3 | [] | no_license | package net.TokyoSlayer.ProxyPtero.database.Sql;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import java.sql.Connection;
import java.sql.SQLException;
public class SqlAccess {
private final SqlConnection sql;
private HikariDataSource hikariDataSource;
public SqlAcc... | true |
92ed77fc0edf1cbf5debe619f56a4217bf085bf1 | Java | Patrick-Balfour/learn-spring | /12.aspects/src/main/java/com/example/demo/service/PrintService.java | UTF-8 | 188 | 1.960938 | 2 | [] | no_license | package com.example.demo.service;
import org.springframework.stereotype.Service;
@Service
public class PrintService {
public void print() {
System.out.println("Hello World!");
}
}
| true |
239b01d00eb3535fbc9e6f1d8927408266ad5c37 | Java | dumashwang/de-identification | /ipv-core/src/main/java/com/ibm/whc/deid/models/Race.java | UTF-8 | 1,729 | 2.3125 | 2 | [
"Apache-2.0",
"CC-BY-SA-3.0",
"ODbL-1.0"
] | permissive | /*
* (C) Copyright IBM Corp. 2016,2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.whc.deid.models;
import java.io.Serializable;
import com.ibm.whc.deid.resources.ManagedResource;
import com.ibm.whc.deid.utils.log.LogCodes;
import com.ibm.whc.deid.utils.log.Messages;
/**
* A resource that represen... | true |
bada0421b999d1addcec12f4b7014192700a5431 | Java | RodrigoD215/Netbeans4toS | /SpringWeb03/src/java/com/empresa/proyecto/Controller/usuariosController.java | UTF-8 | 1,212 | 2.046875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.empresa.proyecto.Controller;
import com.empresa.proyecto.DAO.usuariosDAO;
import com.empresa.proyecto.DAO.usuariosDAOImple... | true |
53e8b39a64f750139b699f8258476b5416cf3d24 | Java | RakshanPremsagar/jaxb | /Value.java | UTF-8 | 572 | 1.96875 | 2 | [] | no_license | package code;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlValue;
import lombok.Data;
@Data
@XmlAccessorType(XmlAccessType.FIE... | true |
9471719bdfd55e17949a9ad81a324aa536080d13 | Java | codehaus/mevenide | /mevenide1/maven-plugins/maven-eclipse-plugin-plugin/src/java/org/mevenide/tags/AdaptVersionTag.java | UTF-8 | 4,286 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | /* ==========================================================================
* Copyright 2004 Apache Software Foundation
*
* 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... | true |
b9b025d1d4ad117ade04c3f1a6d98b77cecf4429 | Java | shiwxyz/IdeaProjects | /com.shiwxyz.bigdata/src/main/java/com/shiwxyz/bigdata/StudentCommitMode.java | UTF-8 | 219 | 1.585938 | 2 | [] | no_license | package com.shiwxyz.bigdata;
public enum StudentCommitMode {
/*
commit overtime
*/
OVERTIME,
/*
commit on time
*/
ON_TIME,
/*
commit in advance
*/
IN_ADVANCE;
}
| true |
ce014682c544b2daa8a53f4d3100384d86234491 | Java | dilanindrajith/CBMS | /CBMS/src/com/cbms/common/AccessTypeEnum.java | UTF-8 | 320 | 2.1875 | 2 | [] | no_license | package com.cbms.common;
import java.io.Serializable;
public enum AccessTypeEnum implements Serializable {
WEB("WEB"), MOBILE("MOBILE");
private String accessType;
AccessTypeEnum(String accessType) {
this.accessType = accessType;
}
public String getAccessType() {
return accessType;
}
};
| true |
6a9e499e84b15f87cc982c18c3a6341dc492f0d0 | Java | kianooshmokhtari/LeagueLiveTournament | /CCF/src/persistLayer/DatabaseAccessConfiguration.java | UTF-8 | 320 | 2 | 2 | [] | no_license | package persistLayer;
public class DatabaseAccessConfiguration {
static final String DB_DRIVE_NAME = "org.mariadb.jdbc.Driver";
static final String DB_CONNECTION_URL = "jdbc:mariadb://localhost:3306/CCF";
static final String DB_CONNECTION_USERNAME = "root";
static final String DB_CONNECTION_PASSWORD = "";
}
| true |
b565bf074de93c50bc7c8bc696cca6e26d1c9933 | Java | oracle/coherence | /prj/coherence-core/src/main/java/com/tangosol/util/comparator/ExtractorComparator.java | UTF-8 | 4,291 | 2.09375 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-protobuf",
"CDDL-1.1",
"W3C",
"APSL-1.0",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain"... | permissive | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.tangosol.util.comparator;
import com.tangosol.internal.util.invoke.Lambdas;
import com.tangosol.io.ExternalizableLite;
import c... | true |
63209b764d1749201ab42fb8971f61a3166b1aba | Java | CodecoolGlobal/filepartreader-testing-with-junit-Niarit | /src/main/java/Main.java | UTF-8 | 1,207 | 3.296875 | 3 | [] | no_license | import com.codecool.FileManipulators.*;
public class Main {
public static void main(String[] args) {
FilePartReader filePartReader = new FilePartReader();
filePartReader.setup("src/main/resources/data/test_file.txt", 1, 7);
FileWordAnalyzer fileWordAnalyzer = new FileWordAnalyzer(filePartR... | true |
52599b968227dd8e5dffa7b967eee6305523f07d | Java | islamakhambet/ass6 | /Assigment6-master/src/Singleton/Application.java | UTF-8 | 284 | 2.03125 | 2 | [] | no_license | package Singleton;
public class Application {
public static void main(String[] args) {
Database foo=Database.getInstance();
foo.query("SELECT...");
Database bar=Database.getInstance();
bar.query("SELECT...");
}
}
| true |
d5a8605da912c4f5c7dc84df69b1bd2a35e89a14 | Java | TonyOkGo/Ultimate-Goal-15403-Ver-2 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/HardwareMapUtil.java | UTF-8 | 2,111 | 2.421875 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robot... | true |
d155ac79d030628ca7d91f13d3ef681bae4e3170 | Java | rodsxe/VND-UPMSSD | /src/ExperimentRunner.java | ISO-8859-1 | 20,578 | 2.1875 | 2 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Co... | true |
63cfe1ca7ee27014859a9e07bf170cec98eac7fa | Java | sathishpic22/SpringBootTest | /demospringboot/src/main/java/com/example/demospringboot/Repositary/TutorialRepositary.java | UTF-8 | 316 | 1.6875 | 2 | [] | no_license | package com.example.demospringboot.Repositary;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.example.demospringboot.Model.Tutorial;
@Repository
public interface TutorialRepositary extends CrudRepository<Tutorial,Long> {
}
| true |
55a2a3e0605c9aaf132298470811cc35ff14583f | Java | EnriqueSalazar/PAS | /src/co/gov/fonada/planeacion/mb/IdentityMB.java | UTF-8 | 6,160 | 2.140625 | 2 | [] | no_license | package co.gov.fonada.planeacion.mb;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.u... | true |
e08bd669475f6008a43ba0716833df63af891917 | Java | zhyzhyzhy/springboot-jwt-demo | /src/main/java/cc/zhy/jwtdemo/service/StudentService.java | UTF-8 | 1,802 | 2.390625 | 2 | [] | no_license | package cc.zhy.jwtdemo.Service;
import cc.zhy.jwtdemo.domain.Student;
import cc.zhy.jwtdemo.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
... | true |
be421873cd8c3a1a7af7d0e76cd6fa5b3863c3bb | Java | atsianis/Person-Creator | /Person.java | UTF-8 | 898 | 2.78125 | 3 | [] | no_license | public class Person {
private String name;
private int age;
private String color;
private String sport;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public ... | true |
e3780feff24ecfece46f30e479ab020c638c4da2 | Java | uwitec/nc-wandashan | /wds/src/public/nc/vo/wds/w80040608/TbStockguardVO.java | GB18030 | 8,665 | 2.0625 | 2 | [] | no_license | /***************************************************************\
* The skeleton of this class is generated by an automatic *
* code generator for NC product. It is based on Velocity. *
\***************************************************************/
package nc.vo.wds.w80040608;
impo... | true |
927f2a153d20f293805ddb128b3381bff5369c00 | Java | Game-Designing/Custom-Football-Game | /sources/com/smaato/soma/p239c/p252i/C12281g.java | UTF-8 | 282 | 1.625 | 2 | [
"MIT"
] | permissive | package com.smaato.soma.p239c.p252i;
import java.util.List;
/* renamed from: com.smaato.soma.c.i.g */
/* compiled from: Utils */
public class C12281g {
/* renamed from: a */
public static boolean m40430a(List list) {
return list == null || list.isEmpty();
}
}
| true |
08f1e9c2dd307b5fba53069fd6143f2f5765b99f | Java | jackssybin/baoxian | /src/main/java/com/kaisagroup/baoxian/controller/api/BaoXianApiController.java | UTF-8 | 11,659 | 1.882813 | 2 | [] | no_license |
package com.kaisagroup.baoxian.controller.api;
import com.github.pagehelper.PageHelper;
import com.kaisagroup.baoxian.entity.*;
import com.kaisagroup.baoxian.service.BaoXioanService;
import com.kaisagroup.baoxian.util.Constants;
import com.kaisagroup.baoxian.util.LayuiData;
import com.kaisagroup.baoxian.util.baoxianj... | true |
2e510c7abe2533974805cc022aa91f64594b67a8 | Java | Navpreet1234/Pathfinding | /Microsoft_backend/dijistra.java | UTF-8 | 4,351 | 2.953125 | 3 | [
"MIT"
] | permissive | // package front;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.PriorityQueue;
/**
*
* @author hp
*/
public class dijistra {
private int [][]graph;
private int []src;////src[0]=row val of m... | true |
8b2e6b7dc38478c2cba5aa092a22c5e100631538 | Java | hsun0120/NLPResearchProject | /docTagger/Interval.java | UTF-8 | 1,261 | 3.484375 | 3 | [
"MIT"
] | permissive | package docTagger;
/**
* Closed-open, [), interval on the integer number line.
*/
public interface Interval extends Comparable<Interval> {
/**
* Returns the starting point of this.
*/
int start();
/**
* Returns the ending point of this. The interval does not include this point.
*/
int end();
... | true |
7d9c95029c530bb73fe5320ad2dc4afcd1dc04ae | Java | formacionted/m3-jse | /src/com/jse/poo/clases/Movil.java | UTF-8 | 1,649 | 3.28125 | 3 | [] | no_license | package com.jse.poo.clases;
/**
* 8 - Crear una clase Móvil con propiedades para
* nombre
* numero de núcleos
* gigas de ram
* tamaño de la pantalla en pulgada
* peso en gramos
*/
public class Movil {
private String nombre;
private int numNucleos;
private double ram;
private double pulgadas;
private doub... | true |
c80f0234312ae9f3d19ba7f8497d8ad455daa0d6 | Java | yuandong1234/StadiumTV | /app/src/main/java/com/kasai/stadium/tv/utils/BaseSharePreferences.java | UTF-8 | 2,101 | 2.671875 | 3 | [] | no_license | package com.kasai.stadium.tv.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* sharePreferences工具类
*/
public class BaseSharePreferences {
private SharedPreferences share;
private SharedPreferences.Editor editor;
public BaseSharePreferences(Context context, String n... | true |
57f72f5a06050a39dab19016acf8cd280c7320b3 | Java | Plexon21/inking_for_pdf | /Java/PdfViewerAPI_R2/java/com/pdf_tools/pdfviewer/Requests/PdfDrawRequest.java | UTF-8 | 1,758 | 2.125 | 2 | [] | no_license | package com.pdf_tools.pdfviewer.Requests;
import java.awt.image.BufferedImage;
import java.util.Map;
import com.pdf_tools.pdfviewer.DocumentManagement.IPdfDocument;
import com.pdf_tools.pdfviewer.Model.IPdfControllerCallbackManager;
import com.pdf_tools.pdfviewer.Model.PdfViewerController;
import com.pdf_tools.pdfvie... | true |
f193d79cf21852921279139cf75c53e292d34cd4 | Java | CaterinaGuida/Progetto-A20 | /ScoponeScientifico/src/graphicInterface/ItemChangeListener.java | UTF-8 | 1,382 | 3.4375 | 3 | [] | no_license | package graphicInterface;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JComboBox;
import javax.swing.JTextField;
/**
* Implements {@link ActionListener} and makes the StartFrame change depending
* on the selected item in the JComboBox. If the string selected in the
*... | true |
16172b56527b9c9a046f48138807ed51dc531fed | Java | Jason0307/DocsBuilder | /src/main/java/org/zhubao/util/Constants.java | UTF-8 | 810 | 1.859375 | 2 | [] | no_license | /**
*
*/
package org.zhubao.util;
/**
* @author jason.zhu
* @date 2014-12-3
* @email jasonzhu@augmentum.com.cn
*/
public interface Constants {
public static final int GENERATE_HTML = 1;
public static final int GENERATE_MARKDOWN = 2;
public static final String VERSION = "v3";
public static final Strin... | true |
444e8357cd6425d8032c9e95d504180d197a5c0d | Java | kopperek/M2AC | /app/src/main/java/app/android/kopper/m2ac/util/MercatorPower2MapSpace.java | UTF-8 | 6,195 | 2.609375 | 3 | [] | no_license | /*******************************************************************************
* Copyright (c) MOBAC developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | true |
351b5cee608d16efd4bcacd29ed55ec791ef745c | Java | AbelKinkela/Netbeans_Projects | /PayrollSystem/src/Learning/Windows/EnteringTextInADialogue.java | UTF-8 | 745 | 3.4375 | 3 | [] | no_license | //See description of this problem in Book: Java - How to program 9th edition(By Paul Deitel & Harvey Deitel)
//Page
package Learning.Windows;
import static java.lang.Integer.parseInt;
import javax.swing.JOptionPane;
/**
*
* @author Marcelo
*/
public class EnteringTextInADialogue {
public static void m... | true |
0be6923bfdefb96debefb94c1a1b48d298fe883b | Java | ncguy2/KF2-Subscription-Handler | /src/main/java/handler/settings/AppSettings.java | UTF-8 | 645 | 1.867188 | 2 | [] | no_license | package handler.settings;
import handler.fx.ThemeManager;
import handler.fx.uifx.FXWindow;
import handler.ui.Strings;
public class AppSettings {
@AppSetting(Class = Strings.Mutable.class, Field = "WORKING_DIRECTORY", Observable = true)
public String directory = "";
@AppSetting(Class = ThemeManager.class... | true |
de8909b4681336c3ac8557dd5a2223f68cb87886 | Java | wind-o-f-change/generics | /src/main/java/task4/ListBox.java | UTF-8 | 616 | 3.375 | 3 | [] | no_license | package task4;
import java.util.ArrayList;
import java.util.List;
public class ListBox<T> {
List<T> someList;
/**
* @param list список, значения которого надо добавить во вложенный список обьекта
*/
void addAll(List<? extends T> list) {
for (T elt : list) {
someList.add(elt... | true |
087ee137d79a0ab4274d30279ba337aeab3e9dcd | Java | dgrahn/csci561 | /homework-2/src/us/grahn/mancala/Move.java | UTF-8 | 971 | 3.46875 | 3 | [] | no_license | package us.grahn.mancala;
import java.util.ArrayList;
import java.util.List;
/**
* A single move for a mancala board.
*
* @author Dan Grahn
* @status FINISHED
*/
public class Move {
/**
* The evaluation value for the move. Defaults to {@code Integer#MIN_VALUE}
*/
public int eval = Integer.... | true |
2b2d94cd841de5322ad2cbfdbeec4cddd7ef48a2 | Java | AnhVoCode/Programming12 | /Inheritance Practice/src/Planet.java | UTF-8 | 1,289 | 3.453125 | 3 | [] | no_license | import java.util.ArrayList;
public class Planet {
//Fields
private int orbitTime;
private ArrayList<Moon> moons;
private String designation;
//Constructors
Planet(){
moons = new ArrayList<>();
orbitTime = 0;
designation = null;
}
Planet(int orbitTime, String de... | true |
f355b6fa59bfa68ae223f9878be75d3f70a8784e | Java | srikanthraj/LeetCode | /src/L594.java | UTF-8 | 543 | 2.921875 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Map;
public class L594 {
public int findLHS(int[] nums) {
int max = 0;
HashMap<Long,Integer> hm = new HashMap<Long,Integer>();
for(long num:nums)
hm.put(num, hm.getOrDefault(num, 0)+1);
for(long key: hm.keySet()) {
if(hm.containsKey(key+1))
max =... | true |
0eb8bc3300c2ed72867cfee14e1b60436ff45981 | Java | jacob-andersen/JAVA_PLAYGROUND | /Java_problems/CycleShiftInts.java | UTF-8 | 520 | 3.5625 | 4 | [] | no_license |
import java.util.Scanner;
public class CycleShiftInts {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int[] shiftedArray = new int[n];
for (int i=1; i<n; i++) {
shiftedArray[i]=input.nextInt();
... | true |
dc5307b49516d905c6b96583130204af751f1294 | Java | fivemoons/DataStructure | /src/microsoft/Buffered.java | UTF-8 | 571 | 2.78125 | 3 | [] | no_license | package microsoft;
import java.io.*;
import java.util.*;
public class Buffered {
private static int[] sp(String s,String sp){
String[] sarr = s.trim().split(sp);
int[] ans = new int[sarr.length];
for(int i=0; i<sarr.length; i++){
ans[i] = Integer.parseInt(sarr[i]);
}
return ans;
}
public static void m... | true |
73c485d704a18a6582df234b4ac189a0bd4a364d | Java | gphilippee/robot-turtles | /src/affichage/jeu/ProgrammeJeu.java | UTF-8 | 1,305 | 2.859375 | 3 | [] | no_license | package affichage.jeu;
import affichage.Case;
import com.company.Main;
import jeu.Jeu;
import jeu.tuile.Tuile;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.io.IOException;
import java.util.ArrayList;
public class ProgrammeJeu extends JPanel {
/**
*
*/
protecte... | true |
8f14891091409b567cbc42d715475d7709de70d9 | Java | SamuelBFavarin/PAINTogether | /src/main/java/PAINTogether/shared/ComponentWrapper.java | UTF-8 | 236 | 1.710938 | 2 | [] | no_license | package PAINTogether.shared;
/**
* Created by Lucas Baragatti on 17/12/2016.
*/
public class ComponentWrapper {
public String type;
public int x;
public int y;
public int width;
public int height;
public int color;
}
| true |
5cfff3c3e5b75c53d32567cb59cda02d771254c8 | Java | ViliLipo/SnakeAI | /snake-ai/src/test/java/fi/tiralabra/game/SnakeTest.java | UTF-8 | 3,186 | 2.984375 | 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 fi.tiralabra.game;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
... | true |
7de605d07cf50190b9aad0711c1002154160c99a | Java | amusarra/liferay-portal-security-audit | /portal-security-audit-message-processor/src/main/java/it/dontesta/labs/liferay/portal/security/audit/message/processor/SlackAuditMessageProcessor.java | UTF-8 | 6,277 | 1.710938 | 2 | [
"MIT"
] | permissive | /*
Copyright 2009-2023 Antonio Musarra's Blog - https://www.dontesta.it
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | true |
949f88049d8100402cd1a428974937c2962ea0cb | Java | wesleyricc/Expedicao | /Expedicao/src/gets_sets/RotasGetSet.java | UTF-8 | 1,083 | 2.015625 | 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 gets_sets;
import java.util.List;
public class RotasGetSet {
private Integer idCarga, idRota;
private Li... | true |
6c4fe9315243e639bea646defa4bf01aa5c519ed | Java | YuyaAizawa/JavaStaticAnalysis | /src/test/resources/jhotdraw8/src/main/java/org/jhotdraw8/draw/connector/Connector.java | UTF-8 | 6,628 | 2.59375 | 3 | [
"MIT"
] | permissive | /* @(#)Connector.java
* Copyright © 2017 by the authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.connector;
import javafx.geometry.Bounds;
import javafx.geometry.Point2D;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.jhotdraw8.draw.figure.Figure;
import... | true |
27f2e34c9b933b186845271562744de3817c2dc3 | Java | YashJha91827/ELH_Training_JAVA_Projects | /University_Demo_By_Collection/src/main/java/com/model/Department.java | UTF-8 | 1,203 | 3.265625 | 3 | [] | no_license | /**
* @author Yash Jha (51955989)
*/
package com.model;
import java.util.List;
//POJO -- Plain Old JAVA Object
public class Department {
// Variables -- States
private int departmentId;
private String departmentName;
private List<Student> students;
// Methods -- Behaviors
// Non-Paramet... | true |
7ae1609c14f3139c7db66fb14f88d915fb985736 | Java | GrupoDevschool/devschoolAPI | /src/main/java/br/com/devschool/devschool/model/dto/DisciplinaDTO.java | UTF-8 | 892 | 2.5 | 2 | [] | no_license | package br.com.devschool.devschool.model.dto;
import java.util.List;
import java.util.stream.Collectors;
import br.com.devschool.devschool.model.Disciplina;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DisciplinaDTO {... | true |
d564c17ae0acd1792c1edcc017a0d248b519d923 | Java | emilianojuan/papilio | /ar.edu.unicen.exa.papilio.core/src/ar/edu/unicen/exa/papilio/core/as/translate/CastExpressionTranslator.java | UTF-8 | 1,257 | 2.484375 | 2 | [] | no_license | package ar.edu.unicen.exa.papilio.core.as.translate;
import java.util.List;
import org.eclipse.gmt.modisco.java.ASTNode;
import org.eclipse.gmt.modisco.java.CastExpression;
import org.eclipse.gmt.modisco.java.Expression;
import org.eclipse.gmt.modisco.java.Type;
import ar.edu.unicen.exa.papilio.core.as.elem... | true |
eb20ea94d5fa4fadc8009db47624cbaeb667c379 | Java | moonboqi/testJava | /src/main/java/com/alex/designmode/state/RevertState.java | UTF-8 | 445 | 2.65625 | 3 | [] | no_license | /**
*
*/
package com.alex.designmode.state;
/**
* Title: RevertState
* Description:
* @author wangzi
* @date 2019年1月23日
*/
public class RevertState implements State {
public void doAction(Context context) {
System.out.println("给此商品补库存");
context.setState(this);
//... 执行加库... | true |
d13bb43e799be7a4b6e7139a0534565b56d00265 | Java | maoqitian/MyPhotoGallery | /app/src/main/java/mao/com/myphotogallery/PhotoGalleryActivity.java | UTF-8 | 629 | 1.914063 | 2 | [] | no_license | package mao.com.myphotogallery;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import mao.com.myphotogallery.base.SingleFragmentActivity;
/**
* API key f2c037ce818631eab099ef43e54c3165
* 秘钥 722fe0676661ace6
*/
public class PhotoGalleryActivity extends Sin... | true |
0cfa7abe8f098abd1c55f58624246cfbe8fe16a8 | Java | felipedallarosa/cooperative-assembly | /src/main/java/br/com/cooperative/assembly/facede/message/producer/VoteProducer.java | UTF-8 | 797 | 2.03125 | 2 | [] | no_license | package br.com.cooperative.assembly.facede.message.producer;
import static br.com.cooperative.assembly.config.CooperativeAssemblyConfiguration.EXCHANGE_NAME;
import static br.com.cooperative.assembly.config.message.VoteRabbitConfiguration.ROUTING_KEY_NAME;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
i... | true |
3a421c5f7483353f0d9ee788080ca338e75fc693 | Java | trung10/CBV | /app/src/main/java/com/fourtsoft/bvc/di/component/ApplicationComponent.java | UTF-8 | 639 | 1.921875 | 2 | [] | no_license | package com.fourtsoft.bvc.di.component;
import android.content.Context;
import com.fourtsoft.bvc.CallBackgroundVideoApplication;
import com.fourtsoft.bvc.dao.CallApi;
import com.fourtsoft.bvc.dao.Preference;
import com.fourtsoft.bvc.dao.Repository;
import com.fourtsoft.bvc.di.AppContext;
import com.fourtsoft.bvc.di.m... | true |
9b7623b105e62f05719d8ab8d1fe652c5847d64c | Java | techaviator/test | /src/test/java/day5/Axis.java | UTF-8 | 376 | 2.515625 | 3 | [] | no_license | package day5;
public class Axis implements RBI{
@Override
public void loanInterest() {
System.out.println(" THe AXIS loan interest is 12%");
}
@Override
public void fixedDepositInterest() {
System.out.println("The AXIS fixed intest is 6%");
}
public void DiwaliBonanza()
{
Syst... | true |
19f45c64c435ce84665ddde12654c9c56fff9146 | Java | Ashokpasupuleti/SpringMicroservices | /ServiceRegistration/src/main/java/com/cts/spring/ServiceRegistration/controller/RegController.java | UTF-8 | 595 | 1.929688 | 2 | [] | no_license | package com.cts.spring.ServiceRegistration.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cts.... | true |
2a2d06f4524f5af1999031bcf97005e89bda020b | Java | kaplone/interface | /IHM_reloaded_V2/src/jinter/EcouteurBouton.java | UTF-8 | 2,677 | 2.265625 | 2 | [] | no_license | package jinter;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import javax.swing.SwingWorker;
import javax.swing.Timer;
public class EcouteurBouton implements ActionList... | true |
d1d81c622b656258f9edb18554ff247251c754b8 | Java | shunleiwaiko/musoni-pm4ml-core-connector | /core-connector/src/main/java/com/modusbox/client/processor/GenerateTimestamp.java | UTF-8 | 420 | 1.953125 | 2 | [] | no_license | package com.modusbox.client.processor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
public class GenerateTimestamp implements Processor {
public void process(Exchange exchange) throws Exception {
exc... | true |
aafacfd70453ec7f2bc266da30ece4d6f0fb7299 | Java | zhiaixinyang/PasswordGuard | /app/src/main/java/com/mdove/passwordguard/home/main/presenter/HomeOptionsPresenter.java | UTF-8 | 1,703 | 1.789063 | 2 | [] | no_license | package com.mdove.passwordguard.home.main.presenter;
import com.mdove.passwordguard.base.listlayout.TestActivity;
import com.mdove.passwordguard.home.longplan.EtLongPlanActivity;
import com.mdove.passwordguard.home.longplan.LongPlanActivity;
import com.mdove.passwordguard.home.main.presenter.contract.HomeOptionsContra... | true |
dfdab04cb73371ff946dc0059e21c58ebb97261c | Java | ocjeong/MEmetric | /src/proteinJavanise/SerializeProteinData.java | UTF-8 | 5,231 | 2.78125 | 3 | [] | no_license | /*
* SerializeProteinData class
*
* 단백질/유전자 데이터를 직렬화(Serialize)된 파일로 저장합니다.
* This class saves the the protein-gene records from raw data files into
* serialized java data file.
*
* 190112 WC Jung
*
* - raw file reading stream / output stream
* - read each line and split it into a key and value attribute o... | true |
3a5d070bb578c1eb66d6aa142afaa2e96f0b0f77 | Java | deathseb/Mastermind | /src/fr/rasen/mastermind/Mastermind/vue/Duel.java | UTF-8 | 5,886 | 2.65625 | 3 | [] | no_license | package fr.rasen.mastermind.Mastermind.vue;
import fr.rasen.mastermind.Mastermind.Pastille;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
... | true |
0ece765d720a2c0a35a5052317994463cef1a282 | Java | ramasatriafb/MyMovieDB | /app/src/main/java/ramasatriafb/dicoding/myanimedb/detail/DetailTvActivity.java | UTF-8 | 5,710 | 2.03125 | 2 | [] | no_license | package ramasatriafb.dicoding.myanimedb.detail;
import android.annotation.SuppressLint;
import androidx.room.Room;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
imp... | true |
883ba659f4c4b167f2732cbef3e4bee983e670e9 | Java | phenixdong/xgzx | /java/xgzx-admin/src/main/java/com/xgzx/admin/service/impl/LessonServiceImpl.java | UTF-8 | 5,256 | 2.234375 | 2 | [] | no_license | package com.xgzx.admin.service.impl;
import com.xgzx.admin.entity.LessonContent;
import com.xgzx.admin.entity.LessonWatch;
import com.xgzx.admin.entity.User;
import com.xgzx.admin.entity.Lesson;
import com.xgzx.admin.mapper.LessonMapper;
import com.xgzx.admin.service.LessonContentService;
import com.xgzx.admin.service... | true |
01f8ce689d264db14a6c593402538e265c466734 | Java | Arvnd/cognoscenti | /src/org/socialbiz/cog/api/SyncStatus.java | UTF-8 | 2,339 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Keith D Swenson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | true |