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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
45cb1813ca408cda083ade396c8d1c641c2e793b | Java | firstABC/medical_sys | /src/main/java/com/controller/MedicalRecordController.java | UTF-8 | 5,493 | 2.140625 | 2 | [] | no_license | package com.controller;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ster... | true |
4192d84cf3b905f77b390dc048b3d3a6f02199fd | Java | Caaarlowsz/NewPvP | /src/me/viitor/auth/Auth.java | UTF-8 | 1,851 | 2.484375 | 2 | [] | no_license | package me.viitor.auth;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import me.viitor.API.HorarioAPI;
impor... | true |
861d04a2b11fec3d2a6590d27d27177b48ca53f2 | Java | Sabyh11/Java-SE8-OCP-Exam-1Z0-809 | /ch04/44-Grouping-Partitioning-Mapping/TestClass.java | UTF-8 | 4,273 | 3.40625 | 3 | [] | no_license | import java.util.stream.Stream;
import java.util.stream.Collectors;
import java.util.*;
public class TestClass {
public static void main(String[] args) {
// Grouping --------------------------------------------------------------------------
// get groups of names by their length (grouped in a List by defa... | true |
9a1f14dd40e8dd4e6820df69047bfd4c080650f1 | Java | Zamundaaa/Engine | /vr/VRTools.java | UTF-8 | 279 | 1.984375 | 2 | [] | no_license | package vr;
import org.joml.Matrix4f;
import org.lwjgl.openvr.HmdMatrix34;
public class VRTools {
/**
* will be implemented. Until then, RETURNS NULL!!!
*/
public static Matrix4f convert(HmdMatrix34 m, Matrix4f dest){
// return dest.m00(m.m(0));
return null;
}
}
| true |
65d4e2b670059dce3a0d1f5c1fe22b1e25ebd111 | Java | tied/jira-plugins-mrimsender | /src/main/java/ru/mail/jira/plugins/mrimsender/protocol/events/ShowMenuEvent.java | UTF-8 | 451 | 1.914063 | 2 | [] | no_license | package ru.mail.jira.plugins.mrimsender.protocol.events;
import lombok.Getter;
import lombok.Setter;
import ru.mail.jira.plugins.mrimsender.icq.dto.events.NewMessageEvent;
@Getter
public class ShowMenuEvent {
private final String userId;
private final String chatId;
public ShowMenuEvent(ChatMessageEvent ... | true |
5cb6a2285a9f5c5482c420ada2a94f39f009be23 | Java | yuyee/nettyserver | /common/src/com/git/original/common/utils/DateUtils.java | UTF-8 | 1,427 | 2.90625 | 3 | [] | no_license | /**
* Copyright (c) www.netease.com 2010.<br>
* Created on 2010-11-25
*
* @author <a href="nisonghai@corp.netease.com">Ni Songhai</a>
* @version $Revision: 1.0$
*/
package com.git.original.common.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
... | true |
b416c8b865d771db1d5eb0c3ae97a029709418b4 | Java | OUSSAMA-web/Pointeuse | /pointeuse/app/src/main/java/Activity/Pointeuse/HomePointeuse.java | UTF-8 | 3,788 | 2.15625 | 2 | [] | no_license | package Activity.Pointeuse;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import com.j256.ormlite.android.apptools.OpenHelperManager;
import com.j256.ormlite.dao... | true |
33df04143cd5b4cac4ccc2e08c90b6cc35740d0c | Java | linhtop97/SoundCloundMusic_MVP | /app/src/main/java/linhnb/com/soundcloundmusic_mvp/ui/playmusic/PlayMusicFragment.java | UTF-8 | 19,338 | 1.796875 | 2 | [] | no_license | package linhnb.com.soundcloundmusic_mvp.ui.playmusic;
import android.content.ComponentName;
import android.content.Context;
import android.content.ServiceConnection;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.NonNull;
impor... | true |
6208f1cc3199bbc5f838848ad4975bb49aea53d8 | Java | UltraSoundX/Fucking-AJN-APP | /java/cn/sharesdk/tencent/qq/QQ.java | UTF-8 | 14,030 | 1.65625 | 2 | [] | no_license | package cn.sharesdk.tencent.qq;
import android.os.Bundle;
import android.text.TextUtils;
import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.Platform.ShareParams;
import cn.sharesdk.framework.PlatformActionListener;
import cn.sharesdk.framework.authorize.AuthorizeListener;
import cn.sharesdk.framework.... | true |
31910404ca7979ba5058cefd7563ef266eedc398 | Java | yuan-fei/Coding | /leetcode_java/src/2264.largest-3-same-digit-number-in-string.java | UTF-8 | 1,790 | 3.5 | 4 | [] | no_license | /*
* @lc app=leetcode id=2264 lang=java
*
* [2264] Largest 3-Same-Digit Number in String
*
* https://leetcode.com/problems/largest-3-same-digit-number-in-string/description/
*
* algorithms
* Easy (58.27%)
* Likes: 55
* Dislikes: 3
* Total Accepted: 10.5K
* Total Submissions: 18K
* Testcase Example: ... | true |
e8050899f394daa3790bde78783af3b9af216eca | Java | Arunav27/SpringMVC_AND_REST | /src/main/java/com/myapp/spring/catalog/CatalogItemRepository.java | UTF-8 | 204 | 1.523438 | 2 | [] | no_license | package com.myapp.spring.catalog;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CatalogItemRepository extends JpaRepository<CatalogItemEntity, Integer> {
}
| true |
781f81f501778d1afdb06cd9de5db7ad65de5d5f | Java | apache/storm | /storm-client/test/jvm/org/apache/storm/executor/ExecutorTransferMultiThreadingTest.java | UTF-8 | 9,598 | 1.796875 | 2 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"EPL-1.0",
"MPL-1.1",
"W3C",
"Classpath-exception-2.0",
"MPL-2.0",
"EPL-2.0",
... | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not u... | true |
4e9929c8ce794c4ac46fe7c996f40d6ff39df46e | Java | Sabaudo/Cadastro-de-contas-Heranca | /ContaPoupanca.java | UTF-8 | 372 | 2.59375 | 3 | [] | no_license |
import java.math.BigDecimal;
public class ContaPoupanca extends ContaBancaria{
BigDecimal diaRendimento = new BigDecimal(0.11);
public ContaPoupanca(String cliente, String numeroConta, BigDecimal saldo) {
super(cliente, numeroConta, saldo);
}
public void calcularNovoSaldo() {
BigDecimal m = diaRendi... | true |
4c50fd265e107e5d736d7d92df99509f724c37b0 | Java | deadpassive/wcsclient | /src/main/java/uk/ac/glam/wcsclient/gml311/CurveArrayPropertyType.java | UTF-8 | 2,737 | 1.695313 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package uk.ac.glam.wcsclient.gml311;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.FeatureMap;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Curve Array Property Typ... | true |
f1fd046eed7b0611aafc7b1ef1b43dc77d00fd7d | Java | Royk8/Log2Practica1 | /src/Practica1.java | UTF-8 | 5,773 | 3.625 | 4 | [] | no_license | import java.io.IOException;
import java.util.InputMismatchException;
import java.util.Scanner;
import java.util.function.DoubleToIntFunction;
public class Practica1 {
Scanner leer = new Scanner(System.in);
public void menu() throws IOException {
Matriz matriz = new Matriz();
int opcion = 0;
... | true |
0a26a72f3c089be5c5025adbf3a8053b8c459008 | Java | pankajmuneshwar/AndroidTestProject | /weather/src/main/java/com/weather/incube/weather/util/FontUtils.java | UTF-8 | 563 | 2.4375 | 2 | [] | no_license | package com.weather.incube.weather.util;
import android.content.Context;
import android.content.ContextWrapper;
import android.graphics.Typeface;
import android.widget.TextView;
public class FontUtils {
public static String WEATHER_REGULAR = "fonts/weather.otf";
public static void setFont(Context context, TextVi... | true |
c7f2b411a149f92260afcff4854719b0d5913ec5 | Java | Siddharth1698/Firebase-App | /app/src/main/java/com/example/siddharthm/firebaseapp/MainActivity.java | UTF-8 | 1,402 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.example.siddharthm.firebaseapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.google.firebase.FirebaseApp;
import co... | true |
020160591f404b916a91931d63f96d06c3ba84b5 | Java | gdincu/UBB_PostUni | /Sem2/Programare orientată obiect (Java)/Examen/Simulare/src/UI/Controller.java | UTF-8 | 4,764 | 2.40625 | 2 | [
"MIT"
] | permissive | package UI;
import Domain.DieselCar;
import Domain.ElectricCar;
import Service.DieselService;
import Service.ElectricService;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.sc... | true |
436ee8c540b58eec3a15072512e8e53e055a8b4d | Java | Eunbi117/Java | /0923/src/SingRobot.java | UHC | 200 | 2.59375 | 3 | [] | no_license |
public class SingRobot extends Robot{
SingRobot(int price)
{
super(price);
}
//: toString
public String toString(){//toString ̵
return "뷡 θϴ.";
}
}
| true |
e94b4478e9ae42aa1c81842322daae24541c83f6 | Java | AndresPautrat/Topicos_Peces | /src/HostAgent.java | UTF-8 | 1,185 | 2.21875 | 2 | [] | no_license | import java.util.ArrayList;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade.core.behaviours.ParallelBehaviour;
import jade.domain.DFService;
import jade.domain.FIPAAgentManagement.DFAgentDescription;
public class HostAgent extends Agent {
public static MainFrame frame = null;
... | true |
a4cd5f9d684658b6b491473377ab528a8d350556 | Java | deamdornelles/ColecaoFilmesDrawer | /app/src/main/java/com/example/deam/colecaofilmesdrawer/Anuncio.java | UTF-8 | 1,089 | 2.484375 | 2 | [] | no_license | package com.example.deam.colecaofilmesdrawer;
/**
* Created by Deam on 07/09/2017.
*/
public class Anuncio {
String id;
String descricao;
String nomeFilme;
String id_filme;
String nome_usuario;
public String getId() {
return id;
}
public void setId(String id) {
thi... | true |
2f6b7e5a46ec1bdc7e72c66294998bd21d45ae81 | Java | walle79/C1019I1_Nguyen_Hong_Son | /Module2/Bai4_KeThua/Bai_tap/src/Point__MoveablePoint/PointTest.java | UTF-8 | 426 | 2.875 | 3 | [] | no_license | package Point__MoveablePoint;
import java.util.Scanner;
public class PointTest extends Point {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Point point = new Point();
System.out.print("Enter x: ");
point.setX(sc.nextFloat());
System.out.prin... | true |
704e96c29c3d9b9cda8f55c5deda73e4daf786db | Java | buobao/OSChina | /app/src/main/java/com/turman/oschina/bean/Report.java | UTF-8 | 566 | 1.960938 | 2 | [] | no_license | package com.turman.oschina.bean;
import com.turman.oschina.bean.base.Entity;
/**
* 举报实体类
*
* @author 火蚁(http://my.oschina.net/LittleDY)
* @version 1.0
* @created 2014-02-13
*/
public class Report extends Entity {
private static final long serialVersionUID = 1L;
public static final byte TYPE_QUESTION =... | true |
5bc23cd8178b6766b82cdf1012fd0ed0488a7f2a | Java | kondareddy405/JavaProjects | /CollectionsTask-Kondareddy/src/com/collections/kondareddy/LinkedListToArray.java | UTF-8 | 417 | 2.953125 | 3 | [] | no_license | package com.collections.kondareddy;
import java.util.LinkedList;
public class LinkedListToArray {
public static void main(String[] args) {
LinkedList<String> arr=new LinkedList<>();
arr.add("first");
arr.add("second");
arr.add("third");
System.out.println("ArrayList:" +arr);
String[] Str=new String[arr.... | true |
473f6c230ca5163c0a35b1c431b9f725cc22362e | Java | coolboy2333/leetcode | /src/leetcode/Q17/letterCombinations.java | UTF-8 | 1,080 | 3.28125 | 3 | [] | no_license | package leetcode.Q17;
import java.util.ArrayList;
import java.util.List;
public class letterCombinations {
static List<String> res = new ArrayList<>();
// static char[] str = new char[100];
static String dict[] = { "", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
public static List<S... | true |
6efcba73f59f24223138defe99e34533f25cbd20 | Java | GLescroel/MonEscalade | /src/main/java/glescroel/escalade/controller/FormVoieController.java | UTF-8 | 6,849 | 2.140625 | 2 | [] | no_license | package glescroel.escalade.controller;
import glescroel.escalade.dto.LongueurDto;
import glescroel.escalade.dto.SecteurDto;
import glescroel.escalade.dto.SiteDto;
import glescroel.escalade.dto.VoieDto;
import glescroel.escalade.service.LongueurService;
import glescroel.escalade.service.SecteurService;
import glescroel... | true |
7bbc899a8d9a79a6ea7f013d18e09a98a9a65f1f | Java | miki-java/springboot_dome | /src/main/java/com/example/demo/mapper/UserMapper.java | UTF-8 | 781 | 2.03125 | 2 | [] | no_license | package com.example.demo.mapper;
import com.example.demo.model.Person;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by hmq on 2018/11/6.
*/
@Repository
public interface UserMapper {
@Select("select * from t_user")
List<Pers... | true |
974fc7abddfdfbcaaa158aff2f194999528ffa16 | Java | KingofCastle/iottest | /iot-web/src/main/java/com/xinguang/iot/client/vehicle/VehicleEditReq.java | UTF-8 | 1,304 | 1.96875 | 2 | [] | no_license | package com.xinguang.iot.client.vehicle;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.xinguang.iot.client.ClientReq;
/**
* Created by jinx on 2017/4/27.
*/
public class VehicleEditReq extends ClientReq{
@ApiModelProperty("车牌")
private String plant;
@ApiModelProperty("车辆型号")
p... | true |
2c839b192f812ca1f436cb1e492f74463bbc82a4 | Java | kumaratul60/Data-Structures-and-Algorithms | /DLL/DoublyLinkedList.java | UTF-8 | 2,214 | 3.609375 | 4 | [] | no_license | package DLL;
class Node {
int data;
Node next;
Node prev;
Node(int data) {
this.data = data;
this.next = null;
this.prev = null;
}
}
public class DoublyLinkedList {
Node head = null;
void reverse() {
Node temp = null, current = head;
while (current != null) {
temp = current.prev;
current.pre... | true |
2817aaf51c52f79756791ad98e2353ffbada89b2 | Java | Devidence7/radtree | /RadTree/src/sistinfo/servlets/usuario/CambiarTipoUsuarioServlet.java | UTF-8 | 2,605 | 2.71875 | 3 | [
"MIT"
] | permissive | package sistinfo.servlets.usuario;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import sistinfo.capadatos.vo.UsuarioVO;
import sistinfo.capadatos.vo.UsuarioVO.Tipo... | true |
eb7b3aaddef0512ee2bf960f31ab5733c9f6dfcb | Java | Park-JunHyung/poker | /src/main/java/com/edu/cnu/poker/UserException/NoSuchRankException.java | UTF-8 | 145 | 1.507813 | 2 | [] | no_license | package com.edu.cnu.poker.UserException;
/**
* Created by cse on 2017-04-17.
*/
public class NoSuchRankException extends RuntimeException {
}
| true |
ca8b7887162492c06f36baa4ca201384c1969eaa | Java | codehaus/prometheus | /src/test/org/codehaus/prometheus/references/TakebackAndResetThread.java | UTF-8 | 619 | 2.25 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2007 Peter Veentjer
*
* This program is made available under the terms of the MIT License.
*/
package org.codehaus.prometheus.references;
import org.codehaus.prometheus.concurrenttesting.TestThread;
public class TakebackAndResetThread<E> extends TestThread {
private final LendableReference<... | true |
15af47f16b0787b1df8202d9e9814c1b23de4209 | Java | amaldev1014/Playground | /Printing X pattern/Main.java | UTF-8 | 1,024 | 3.171875 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main (String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int l=(n/2)+1;
int m=1;
int h=n-2;
for(int i=1;i<=l;i++)
{
for(int j=1;j<m;j++)
{
System.out.print(" ");
... | true |
78edc59d243dfc5f99284024c0a1b199244c8a7e | Java | Gperez88/SystemVD | /src/main/java/com/perezmejia/systemvd/view/SexView.java | UTF-8 | 476 | 2.578125 | 3 | [] | no_license | package com.perezmejia.systemvd.view;
/**
* Created by Guil on 5/10/2016.
*/
public enum SexView {
FEMENINO("F", "Femenino"),
MASCULINO("M", "Masculino");
private final String id;
private final String description;
SexView(String id, String description) {
this.id = id;
this.descr... | true |
96a3b2512e4b5cec00f6d771ec84cef9282cfc67 | Java | Mark-WJQ/firstTime | /com/NUH/io/TestFile2.java | UTF-8 | 1,842 | 2.890625 | 3 | [] | no_license | package io;
import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 递归首先要找的条件事结束的条件
*
*
*
* @author NUH-25
*
*/
public class TestFile2 {
//表示文件深度
sta... | true |
8fff60d8d2a25d71cea4ab08820c84b64799abf4 | Java | yuliyachernook/PageObject | /src/main/java/wait/WaitForElementMethods.java | UTF-8 | 751 | 2.421875 | 2 | [] | no_license | package wait;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.List;
public class WaitForElementMethods {
public static WebEl... | true |
b9c96beb187f67d6bd14e26e0069dd75412f3720 | Java | xy69/infomodsource | /src/main/java/insanusnatura/items/MysticalFlute.java | UTF-8 | 3,628 | 2.3125 | 2 | [] | no_license | package insanusnatura.items;
import insanusnatura.Main;
import insanusnatura.commands.util.Teleport;
import insanusnatura.init.ModCreativeTabs;
import insanusnatura.init.ModItems;
import insanusnatura.init.ModWorldGen;
import insanusnatura.util.interfaces.IHasModel;
import net.minecraft.enchantment.Enchantment;
import... | true |
04f5a5b8a5ee602d67224a305517a5c45a6af711 | Java | AmirhsseinIzadi/javaProject | /src/main/java/WildAnimal.java | UTF-8 | 1,851 | 3.34375 | 3 | [] | no_license | import java.util.ArrayList;
public class WildAnimal extends Animal {
private static final ArrayList<WildAnimal> wildAnimalsInCage;
private static final ArrayList<WildAnimal> wildAnimals;
static {
wildAnimals = new ArrayList<>();
}
static {
wildAnimalsInCage = new ArrayList<>();
... | true |
c6cf2d374795462a965a221af200d3065a61e9fb | Java | PramitDutta/Coding-Practice | /src/LeetCode_Medium/CoinChange.java | UTF-8 | 832 | 3.40625 | 3 | [] | no_license | package LeetCode_Medium;
/* Let dp[v] to be the min num of coins needed to get amount v.
* dp[i+a_coin]= min(dp[i+a_coin], dp[i]+1) if dp[i] is reachable
* dp[i+a_coin]= dp[i+a_coin] if dp[i] is not reachable
*
* */
public class CoinChange {
public int coinChange(int[] coins, int amount) {
if (amount < 1)
... | true |
cb8b247c572192a5311a23330baa51c604d8d83b | Java | andresbeckruiz/maps | /src/test/java/edu/brown/cs/mramesh4/stars3/StarsPBTTest.java | UTF-8 | 7,137 | 2.84375 | 3 | [] | no_license | package edu.brown.cs.mramesh4.stars;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import java.util.*;
import java.util.List;
import java.util.ArrayList;
import edu.brown.cs.mramesh4.stars.*;
import edu.brown.cs.mramesh4.CSVParser.*;
import edu.brown.cs.mrame... | true |
98b554e49e9a74130cde15da015986ee620a8740 | Java | usnistgov/elr-aphl-validation-plugins | /src/main/java/gov/nist/hit/elr/aphl/domain/Result.java | UTF-8 | 825 | 2.40625 | 2 | [] | no_license | package gov.nist.hit.elr.aphl.domain;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown... | true |
fa8d34f61cd95ceb92a0281b7e1ef843a7298dfb | Java | TIS2020-FMFI/rampa | /src/controllers/TechnickeUdajeController.java | UTF-8 | 6,945 | 2.453125 | 2 | [] | no_license | package controllers;
import excel.ExcelUtil;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import main.Main... | true |
6eac780bcbbb91d50a9db06e28e0a9fb6d12d1be | Java | printfcoder/java-micro | /core/broker/src/main/java/mu/micro/java/framework/core/broker/BrokerHelper.java | UTF-8 | 1,552 | 2.171875 | 2 | [] | no_license | package mu.micro.java.framework.core.broker;
import mu.micro.java.framework.core.codec.Marshaler;
import mu.micro.java.framework.core.context.MicroContext;
import mu.micro.java.framework.core.registry.Registry;
public class BrokerHelper {
public static SubscribeOptions newSubscribeOptions(SubscribeOption... opt... | true |
cc2cf58cdbcda45c1faec2b40caf3922da98eabc | Java | designomediaworks/Moviemade | /app/src/main/java/org/michaelbel/moviemade/ui/view/widget/AppBarLayoutBehavior.java | UTF-8 | 898 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.michaelbel.moviemade.ui.view.widget;
import android.content.Context;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.view.View;
@SuppressWarnings("all")
public class AppBarLayoutBehavior extends App... | true |
7463ca6ec9ff30ca3cf09f1a12d4c721b1f03ae2 | Java | maningbo/testjavacode | /testjavacode/src/swing/test/PopupWindows.java | UTF-8 | 1,124 | 2.921875 | 3 | [] | no_license | package swing.test;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
/**
* PopupWindows.java
* Description:
*
* CreateDate: 2016年9月11日 上午12:49:04
* @author 马宁波
*/
public class PopupWindows {
JFrame mainWindow;
public PopupWindows(){
... | true |
18ffdda09f68ce67d602921311611b8de91c13d4 | Java | clgg/WorkingHelper | /niuco/src/cn/niuco/ui/bean/ProductBrief.java | UTF-8 | 2,660 | 2.265625 | 2 | [] | no_license | package cn.niuco.ui.bean;
import java.util.List;
public class ProductBrief {
// {
// "id": 111,
// "name": "HIRIS可穿戴套装",
// "summary": "HIRIS支持追踪以及手势控制,是这个星球上最先进,最时尚的可穿戴计算机之一。",
// "price": 0,
// "fcount": 1,
// "puid": 186895,
// "nickname"... | true |
07ea5dcec435732963562f5e18026976e22a6cbe | Java | Haven-King/Conrad | /src/main/java/dev/inkwell/vivian/api/builders/CategoryBuilder.java | UTF-8 | 3,003 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 Haven King
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
0ef8801823cc158fcba67c9601626a5808106d6b | Java | liubinchu/matching-system | /src/main/java/top/erricliu/huatai/matchingsystem/service/AddUserService.java | UTF-8 | 928 | 2.265625 | 2 | [] | no_license | package top.erricliu.huatai.matchingsystem.service;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.erricliu.huatai.matchingsystem.entity.Responce;
import top.erricliu.huatai.matchingsystem.entity.User;
import t... | true |
36bb2b78e748bc689970e1bbd4647eafcd751b98 | Java | samilathalyta/Aulas-Generation | /Dia 02.09/ex2dia0209.java | ISO-8859-1 | 567 | 3.484375 | 3 | [] | no_license | package Dia0209;
import java.util.Scanner;
public class ex2dia0209 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int num,contPar=0,contImpar=0,x;
Scanner leia = new Scanner(System.in);
for(x=1;x<=10;x++)
{
System.out.println("\nInsira um nmero: ");
num = leia... | true |
210e1dc99212ec27809e1092e32eed64250b98c4 | Java | wunaixiaoguoshiye/AppInfoSystem | /src/cn/appsys/controller/develop/AppInfoController.java | UTF-8 | 11,349 | 1.8125 | 2 | [] | no_license | package cn.appsys.controller.develop;
import java.io.File;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import javax.mail.Multipart;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons... | true |
4e97b907f1876fa219145fbe79d333c169ebd821 | Java | DaniCampos/cc3002-tarea2 | /cc3002-tarea2/src/model/card/type/WildCard.java | UTF-8 | 926 | 3.09375 | 3 | [] | no_license | package model.card.type;
import controller.IController;
import model.IGameLogic;
/**
* Class that implements the constructor and methods associated to the WildCard, extends Abstract Card
*
* @author Daniela Campos
*/
public class WildCard extends AbstractCard {
/**
* Constructor of an object of the WildCar... | true |
91dea7c362cd3e6d83353a91d85dc812f25016f8 | Java | iotsap/ngsi10testserver | /TestClientToNGSI10TestServer/src/test/java/com/sap/research/fiware/ngsi10/test/updatecontextsubscription/TestUnallowedMethodsOnUpdateContextSubscription.java | UTF-8 | 1,173 | 2.03125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.sap.research.fiware.ngsi10.test.updatecontextsubscription;
import java.net.HttpURLConnection;
import org.junit.Test;
import com.sap.research.fiware.ngsi10.test.Constants;
import com.sap.research.fiware.ngsi10.test.HttpRequestBuilder;
import com.sap.research.fiware.ngsi10.test.TestHelpers;
public class T... | true |
2f200252c335480799ccbd088e265b757806d89f | Java | pravinkumarbala/everydayprogram | /EveryDayProgram/src/com/everyday/Datastructures/Array/WaveformSort.java | UTF-8 | 935 | 3.921875 | 4 | [] | no_license | package com.everyday.Datastructures.Array;
import java.util.Arrays;
import java.util.Scanner;
public class WaveformSort {
public void swap(int[] arr, int a , int b){
int temp = arr[a];
arr[a] = arr[b];
arr[b] = temp;
}
public void sortInWave(int[] arr){
Arrays.sort(arr);
... | true |
192580effec5a7b6a65e32b8bcb4cea0e3d8f740 | Java | ligayan/JAVA | /Rozdział 6 - Wprowadzenie do klas/src/BoxDemo4.java | WINDOWS-1250 | 392 | 3.125 | 3 | [] | no_license |
public class BoxDemo4 {
public static void main(String[] args) {
Box mybox1 = new Box();
Box mybox2 = new Box();
double vol;
mybox1.setDim(20, 15, 5);
mybox2.setDim(3, 6, 9);
vol = mybox1.volumeRet();
System.out.println("Objto pudeka 1 = "+ vol);
vol = mybox2.volumeRet();
Sy... | true |
1aeac5f805d1cdf888f5387802ca0434161f5e26 | Java | chy123chy/FinalHuluwa | /FinalHuluwa/src/main/java/Gourd.java | UTF-8 | 340 | 2.078125 | 2 | [] | no_license | import java.io.Serializable;
import java.util.Random;
public class Gourd extends GPlayer implements Serializable {
private static final long serialVersionUID = -66019032085567574L;
int rank;
public Gourd(int x, int y, int rank, Field field) {
super(x, y, 4, 6, rank+".png", field);
this.ra... | true |
27ddf55bca241df5d829f0dc7d61572606a595e1 | Java | camilap04/quiz1 | /src/vista/main.java | UTF-8 | 393 | 1.914063 | 2 | [] | no_license | package vista;
import control.control;
import processing.core.PApplet;
public class main extends PApplet{
public static void main(String[] args) {
PApplet.main(main.class.getName());
}
public control control;
public void settings() {
size (800, 600);
}
public void setup () {
control = new control(this... | true |
06686f2b08f92bfdfb9636bdb0863798c80b6634 | Java | lazycat-java/crotg-pay-master | /pay-service-test/src/main/java/com/crotg/pay/service/test/facaed/PayUserFacaedImpl.java | UTF-8 | 812 | 1.851563 | 2 | [] | no_license | package com.crotg.pay.service.test.facaed;
import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.crotg.pay.facaed.test.facaed.PayUserFacaed;
import com.crotg... | true |
ef072cfa3fedaa72b2da1adbe88136ef6f242840 | Java | asd80672315/smart | /src/com/zhzg/track/GetParameters.java | UTF-8 | 1,681 | 2.484375 | 2 | [] | no_license | package com.zhzg.track;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.EnumMap;
import com.zhzg.util.JDBCUtil;
public class GetParameters implements ParaEnum {
@Override
public EnumMap<UserInfo, Object> getUse... | true |
a3e7517094cf33dfd2761e475490afb62b939397 | Java | UnicornTeamAreWe/PDMA | /code/PDMA_back/src/main/java/com/PDMA/service/WeiboService.java | UTF-8 | 190 | 1.710938 | 2 | [] | no_license | package com.PDMA.service;
import com.PDMA.entity.Weibo;
import org.springframework.stereotype.Service;
@Service
public interface WeiboService {
Weibo getWeibo(Long userId);
}
| true |
08078abbf2ac19535abf7a3394679240d8309aaa | Java | Votrungtin2001/Food-Application-MobileProgramming | /app/src/main/java/com/example/foodapplication/account/fragment/AccountSettingsInfoOccupationFragment.java | UTF-8 | 7,255 | 2 | 2 | [] | no_license | package com.example.foodapplication.account.fragment;
import android.app.ProgressDialog;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import android.util.Log;
i... | true |
c6f3e77cb81dfb73128394eefdd1fbb02ea7d6f8 | Java | kechoplay/Project-SEM2 | /ComputerManagement/ComputerManagement/src/Product/FunctionProduct.java | UTF-8 | 2,706 | 2.53125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Product;
import DatabaseConnection.Connects;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Re... | true |
49d143751859a82e1be80b3a73cbc20c98694f5e | Java | rzalegal/projecteuler | /src/main/java/projecteuler/util/log/Log.java | UTF-8 | 130 | 1.75 | 2 | [] | no_license | package projecteuler.util.log;
/**
* @author Vladislav Simanov
* 11.03.2021
*/
public interface Log {
void write(String output);
}
| true |
2b65721a9e9214fb85a7e6a79f4b8c4567411515 | Java | zhouxianjun/trc-java | /src/main/java/com/gary/trc/annotation/ThriftFilter.java | UTF-8 | 284 | 1.585938 | 2 | [] | no_license | package com.gary.trc.annotation;
import java.lang.annotation.*;
/**
* @author zhouxianjun(Gary)
* @ClassName:
* @Description:
* @date 17-5-9 下午4:11
*/
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ThriftFilter {
}
| true |
472f21dd1cdcc6e1f59fc90d447421d4863c82f3 | Java | harchani-ritik/skunkworks-crow | /skunkworks_crow/src/main/java/org/odk/share/adapters/basecursoradapter/ItemClickListener.java | UTF-8 | 156 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package org.odk.share.adapters.basecursoradapter;
public interface ItemClickListener {
void onItemClick(BaseCursorViewHolder holder, int position);
}
| true |
be12bd45a898694fee32ceabf2ee69050ebf6e3e | Java | youkiaaa/bbs- | /src/main/java/com/atyume/modules/system/service/MoneyLogService.java | UTF-8 | 270 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | package com.atyume.modules.system.service;
import com.atyume.modules.base.service.IService;
import com.atyume.modules.system.po.MoneyLog;
public interface MoneyLogService extends IService<MoneyLog> {
public void transfer(Long posuser,Long quauser,Double money);
}
| true |
a89d82d64d1a18daeecc1087749775410ab4d1a8 | Java | venu410/Microservices | /Cart-Service/src/main/java/venu/in/coding/microservices/cart/RibbonConfiguration.java | UTF-8 | 248 | 1.609375 | 2 | [] | no_license | package venu.in.coding.microservices.cart;
import org.springframework.context.annotation.Configuration;
@Configuration
public class RibbonConfiguration {
/*
* @Bean public IRule ribbonRule() { return new WeightedResponseTimeRule(); }
*/
}
| true |
03af695661ee43d9cb3e80dda514eae0c029e6ef | Java | sptrakesh/sptrwt | /src/app/com/sptci/rwt/webui/model/SequenceView.java | UTF-8 | 1,854 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.sptci.rwt.webui.model;
import nextapp.echo2.app.Component;
import nextapp.echo2.app.Grid;
import echopointng.GroupBox;
import com.sptci.echo2.Configuration;
import com.sptci.rwt.SequenceMetaData;
/**
* A view component used to display the information contained in
* {@link com.sptci.rwt.SequenceMetaDa... | true |
ff2a70a5298194fb435964d9f8fd736dd72221a8 | Java | Teo-BH/android-study-jam | /projects/TickTockClock/app/src/main/java/br/com/teobaldo/ticktockclock/MinuteCountActivity.java | UTF-8 | 2,329 | 2.5625 | 3 | [] | no_license | package br.com.teobaldo.ticktockclock;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
public class MinuteCountActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle s... | true |
d804ac6cf682e03b26fe801c025a0bca9be7c323 | Java | subhagho/codekutter | /common-lib/src/main/java/com/codekutter/common/stores/IDGenerator.java | UTF-8 | 6,370 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (2020) Subhabrata Ghosh (subho dot ghosh at outlook dot com)
*
* 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... | true |
aac3447af9743ca7e0028ef0a7d5e97675c6346f | Java | mayuri5401/ChatBuddy | /app/src/main/java/com/example/chatbuddy/MainActivity.java | UTF-8 | 1,851 | 1.921875 | 2 | [] | no_license | package com.example.chatbuddy;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
... | true |
4ef24cc9507e498301fff8702c64a8563e3ed88c | Java | mussa1996/Registration_management | /src/assignment/model/Faculty.java | UTF-8 | 1,030 | 2.328125 | 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 assignment.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.... | true |
9d2dfdac9452166b4be703e3fdea80746842162b | Java | airwide-store/bpmn2bpel | /org.opentosca.bpmn2bpel.converter/src/main/java/org/opentosca/bpmn2bpel/converter/Utils.java | UTF-8 | 4,535 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package org.opentosca.bpmn2bpel.converter;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.bpel.model.Condition;
import org.eclipse.bpmn2.Expression;
import org.eclipse.bp... | true |
1ac21f47674a5ac4cb78ca15bdb7f8c98c6659b6 | Java | a46461440/spring-cloud-all | /user/user-common/src/main/java/com/zxc/user/domain/po/UserInfoWithRole.java | UTF-8 | 647 | 1.742188 | 2 | [] | no_license | package com.zxc.user.domain.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @author Zhou RunMing
* @Date 2019-1-16
*/
@Data
@AllArgsConstructor
public class UserInfoWithRole implements Serializable {
private String id;
private String us... | true |
bf4feff70dac3cae08cdf13b550b60c96e435031 | Java | vinzee/apache-flink-playground | /src/main/java/com/windows_and_watermarks/DataServerTimed.java | UTF-8 | 1,154 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package com.windows_and_watermarks;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Random;
public class DataServerTimed {
public static void main(String[] args) throws IOException {
ServerSocket listener = new ServerSocket(909... | true |
84114cf3a34bb30e4d56ea9f532df645d6f96ba9 | Java | novakcode/type-parser | /type-parser/src/main/java/com/typeconverter/TypeHolder.java | UTF-8 | 777 | 2.484375 | 2 | [] | no_license | package com.typeconverter;
import java.lang.reflect.Type;
import java.util.List;
public class TypeHolder {
private TypeProcessor processor;
private TypeCast caster;
private TypeHolder(TypeProcessor processor, TypeCast caster) {
this.processor = processor;
this.splitter = caster.getSplitter();
... | true |
3b43891fb9c57e7ed1b696dc50af50d9e0dcd071 | Java | laytonro/NeuralNets | /Neuron.java | UTF-8 | 1,135 | 3 | 3 | [] | no_license | import java.util.Arrays;
import java.util.Random;
//Layton Rosenfeld
public class Neuron {
private double[] weights;
private double output;
private double bias;
private double errorSignal;
public Neuron(int numInputs) {
this.weights = new double[numInputs];
}
public double getBias() {
return this.... | true |
45a9a95af051a7f2b37187cbcb93cc3fd3b53323 | Java | UCSFMemoryAndAging/lava | /lava-crms/src/edu/ucsf/lava/crms/protocol/controller/BaseCompletionStatusHandler.java | UTF-8 | 12,922 | 1.71875 | 2 | [
"BSD-2-Clause"
] | permissive | package edu.ucsf.lava.crms.protocol.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.validation.... | true |
d84f20c78734feaf1ac290a9da2d6a74e15bcc24 | Java | avihu111/OOP-Java-Project | /oop/ex6/Scopes/Scope.java | UTF-8 | 5,056 | 3.203125 | 3 | [] | no_license | package oop.ex6.Scopes;
import oop.ex6.Methods.Method;
import oop.ex6.Methods.MethodException;
import oop.ex6.Variables.Variable;
import oop.ex6.Variables.VariableException;
import oop.ex6.main.InvalidCodeException;
import oop.ex6.main.LineReader;
import java.util.HashMap;
import java.util.LinkedHashMap;
/... | true |
be6b707375788921959f4a734344e10736149c5f | Java | StoneInCHN/YLY | /yly-mgmt-pom/yly-mgmt-entity/src/main/java/com/yly/entity/FormInstance.java | UTF-8 | 2,500 | 1.984375 | 2 | [] | no_license | package com.yly.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import org.hibern... | true |
b0724291cba0ae967d7189ee669169b8b9ef2622 | Java | PayneYao/glin | /src/main/java/com/lozic/genpptx/html/Html2PptxTransformer.java | UTF-8 | 2,823 | 2.03125 | 2 | [] | no_license | package com.lozic.genpptx.html;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.beanutils.BeanUtils;
import org.jsoup.Jsoup;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.css.CSSStyleSh... | true |
ed0575c59d8f6f60de5f64d8115ded342ceb8a13 | Java | raafacachoeira/SCTIM | /DSI2014EJB/ejbModule/ejb/CepBeanLocal.java | UTF-8 | 316 | 1.929688 | 2 | [] | no_license | package ejb;
import java.util.List;
import javax.ejb.Local;
import javax.persistence.NoResultException;
import dao.Cep;
@Local
public interface CepBeanLocal {
public void save(Cep cep);
public List<Cep> getAllCep();
public void remove (Cep cep);
public Cep getCepByNumber(long number);
}
| true |
1caf17cd6d29ea1d045ca3afc5e521ac6e278ad5 | Java | savvari/snake | /src/com/andriod/games/Snake/game/Stain.java | UTF-8 | 501 | 2.546875 | 3 | [] | no_license | package com.andriod.games.Snake.game;
/**
* Created with IntelliJ IDEA.
* User: sridharavvari
* Date: 01/10/2013
* Time: 21:49
* To change this template use File | Settings | File Templates.
*/
public class Stain {
public static final int TYPE_1 = 0;
public static final int TYPE_2 = 1;
public static ... | true |
e304a99b43647eb590983073f3e6e00e1f4ff297 | Java | laxman1991/Selenium-automation | /CollectionTest/src/com/collection/chashmap/hashTable.java | UTF-8 | 409 | 2.90625 | 3 | [] | no_license | package com.collection.chashmap;
import java.util.Hashtable;
public class hashTable {
public static void main(String[] args) {
Hashtable<Float,Boolean> hs=new Hashtable<Float,Boolean>();
hs.put(1202.11f,true);
System.out.println(hs);
System.out.println(hs.get(1202.11f));
... | true |
1595d638f5e14bb1a8911370eec02ffc2c1738bf | Java | arcadu22/flight_micro_backend | /src/main/java/com/example/demo/services/tiqueteServices.java | UTF-8 | 1,050 | 2.34375 | 2 | [] | no_license | package com.example.demo.services;
import java.util.ArrayList;
import java.util.Optional;
import com.example.demo.models.Tiquete;
import com.example.demo.repositories.repositoriesTiquete;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public cl... | true |
248807bfb6fb7ebd48d26ba0d9cfa04a0ea9c4c1 | Java | alexismanin/http-range-example | /clients/src/main/java/fr/amanin/examples/httprange/clients/Webflux.java | UTF-8 | 609 | 2.21875 | 2 | [] | no_license | package fr.amanin.examples.httprange.clients;
import java.net.URI;
import java.util.concurrent.CompletableFuture;
import org.springframework.web.reactive.function.client.WebClient;
public class Webflux extends RangeClient {
final WebClient cli;
public Webflux(URI uri, RangeUnit unit, WebClient cli) {
... | true |
51a4e9dd29168539fade66c23cc414e8faea8844 | Java | bhargavihoskoti/java_codes | /labOne/src/com/training/CurrencyConverter.java | UTF-8 | 128 | 2.140625 | 2 | [] | no_license | package com.training;
public class CurrencyConverter {
public double inrThousd(double num){
return num/(73.68);
}
}
| true |
8e58edd1f93d4958bbfca1ed1eb5da98128f1492 | Java | BulkSecurityGeneratorProject/Tp_Angular | /angulartp/src/main/java/com/mycompany/myapp/repository/HomeRepository.java | UTF-8 | 285 | 1.734375 | 2 | [] | no_license | package com.mycompany.myapp.repository;
import com.mycompany.myapp.domain.Home;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Home entity.
*/
public interface HomeRepository extends JpaRepository<Home,Long> {
}
| true |
07f4278afbaadf244ff3d42e7448e1867012cb08 | Java | ParaskP7/sample-code-posts | /app/src/test/java/io/petros/posts/datastore/DatastoreAddActionsTest.java | UTF-8 | 1,978 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package io.petros.posts.datastore;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import io.petros.posts.PreconfiguredRobolectricTestRunner;
import io.petros.posts.RobolectricGeneralTestHelper;
import io.petros.posts.model.User;
impor... | true |
74d9df853765c6800d1b0e2bf0608d171db56ef8 | Java | ConvergentMobile/lbl_pro_v1 | /src/main/java/com/business/common/util/ActivationMail.java | UTF-8 | 1,930 | 2.328125 | 2 | [] | no_license | package com.business.common.util;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage... | true |
ba64e7540c8a1e861aa2a4458f3d9d67541da6f7 | Java | wang-jingyi/dtmc.learn | /src/main/java/dtmc/learn/main/ActiveLearnExperiment.java | UTF-8 | 6,184 | 2.1875 | 2 | [] | no_license | package dtmc.learn.main;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVect... | true |
8a04ebcc158f59310f387d81ff36ceb16b4d1ad2 | Java | SergioRamirez1999/AOC2020 | /06-day/p1.java | UTF-8 | 1,440 | 2.6875 | 3 | [] | no_license | import java.io.IOException;
import java.lang.reflect.Array;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import jav... | true |
31739f6a2567f3df65b3d40e3eb3fb596ba3f16f | Java | droidaika/2ndYearCS | /Tree/src/Tree/Testing.java | UTF-8 | 2,651 | 3.796875 | 4 | [] | no_license | package Tree;
import java.util.Scanner;
public class Testing {
//ALL NEW CODE
public static void main(String[] args)
{
System.out.println("\nCreating a treee that looks like this:\n");
System.out.println(" c5 ");
System.out.println(" / \\ "); // '\\' is the escape character for back... | true |
3f80e74a6c03043d46da536c8875f720fbb780f1 | Java | giga1615/algorithm | /src/com/boj/silver3/백준_1003_피보나치함수.java | UTF-8 | 861 | 3.265625 | 3 | [] | no_license | package com.boj.silver3;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class 백준_1003_피보나치함수 {
static int dp[][];
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(Sy... | true |
21d6b0f8c8e4686b27d130894d4f7e6406f901b7 | Java | gustavoms11/message-scheduling-app | /src/main/java/com/gustavoms/messagescheduling/exception/BaseExceptionResponseDTOV1Builder.java | UTF-8 | 1,141 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.gustavoms.messagescheduling.exception;
public final class BaseExceptionResponseDTOV1Builder {
private BaseExceptionResponseDTOV1 baseExceptionResponseDTOV1;
private BaseExceptionResponseDTOV1Builder() {
baseExceptionResponseDTOV1 = new BaseExceptionResponseDTOV1();
}
public static... | true |
9d4a08d4f3aa9cbf1f6980187f68a63d52089a8e | Java | JetBrains/intellij-community | /java/java-tests/testData/ig/com/siyeh/igtest/style/simplifiable_if_statement/IfMayBeConditional.java | UTF-8 | 1,683 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | package com.siyeh.igtest.style.simplifiable_if_statement;
public class IfMayBeConditional {
void foo(int a, int b) {
int c = 0;
<warning descr="If statement can be replaced with '?:'">if</warning> (a < b) { c += a - b; } else { c -= b; }
if (a < b) { c += a - b; } else { c *= b; }
}
... | true |
aa97f9b8a9705d20c5f610532a9fcd73246e4e63 | Java | davidmoros/poc | /jwt-service/src/test/java/es/davidmoros/poc/jwt/service/JWTServiceTest.java | UTF-8 | 3,473 | 2.515625 | 3 | [] | no_license | package es.davidmoros.poc.jwt.service;
import static java.util.Collections.emptyList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.ass... | true |
cf6ca00b91f2f1a7aba40c56801bebde0a8b25bf | Java | krisfoster/spring-graal-feature | /spring-graalvm-native-feature/src/test/java/org/springframework/support/graal/TypeSystemTests.java | UTF-8 | 1,902 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
f030804f628bbc29c3c10347fdeb0c69b9ceb850 | Java | onap/aai-graphadmin | /src/test/java/org/onap/aai/historytruncate/HistoryTruncateTest.java | UTF-8 | 13,416 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* =======================================================... | true |
95e3c1258f488bc4d5b7a70add99d9ca39af36e3 | Java | xuchen70/Helper | /src/main/java/com/code/demo/utils/StringUtils.java | UTF-8 | 741 | 3.328125 | 3 | [
"MIT"
] | permissive | package com.code.demo.utils;
public class StringUtils {
public static boolean isEmpty(String str){
return str == null || str.equals("");
}
public static boolean notEmpty(String str){
return !isEmpty(str);
}
public static String padEnd(String str,int length,char padChar){
i... | true |
3ddbb8371065725037b496278b2f58f6c3fa2ca4 | Java | grzesiek-galezowski/TrainingExamples | /Java/messaging-patterns/src/main/java/messaging_channels/InvalidMessageChannel.java | UTF-8 | 1,838 | 2.484375 | 2 | [] | no_license | package messaging_channels;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.scravy.either.Either;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.Maybe;
import messaging_channels.events.PurchaseMade;
import org.reactivestreams.Subscriber;
import org.reactivestr... | true |