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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7bb478902b5251bcb4e4d41a7c2b685c3a18c840 | Java | csanivar/algos | /hackerrank/euler4.java | UTF-8 | 1,025 | 3.453125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
class Euler4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int t = in.nextInt();
List<Integer> pals = new ArrayList<>();
for (int i=100; i<=999; ... | true |
780311bd5590dc2dee66b80c981e3eb58b816114 | Java | nemce/demir-TextClassification | /terrier-4.0/src/test/org/terrier/matching/TestTRECResultsMatching.java | UTF-8 | 11,377 | 2.015625 | 2 | [] | no_license | /*
* Terrier - Terabyte Retriever
* Webpage: http://terrier.org
* Contact: terrier{a.}dcs.gla.ac.uk
* University of Glasgow - School of Computing Science
* http://www.gla.ac.uk/
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this... | true |
0b8db59959f1c1c5f5629529977995f8ddd6ef9b | Java | KiranKumarGoud/test | /src/main/java/com/excelra/mvc/model/treeview/TargetOntologyMasterDTO.java | UTF-8 | 844 | 2.109375 | 2 | [] | no_license | package com.excelra.mvc.model.treeview;
import java.io.Serializable;
public class TargetOntologyMasterDTO implements Serializable {
private String targetName;
private String label;
private String value;
private String operator;
public String getTargetName() {
return targetName;
}
... | true |
fe370c7a3a0f8f929b7638dcbfeb63a14e79887e | Java | rlwnd0000/SenierProject2 | /src/ops/announcement/Action/AnnouncementWriteService.java | UTF-8 | 700 | 2.265625 | 2 | [] | no_license | package ops.announcement.Action;
import static common.ConUtilDAO.close;
import static common.ConUtilDAO.commit;
import static common.ConUtilDAO.getConnection;
import static common.ConUtilDAO.rollback;
import java.sql.Connection;
import ops.announcement.Beans.Announcement;
public class AnnouncementWriteSe... | true |
8d8b8a0ef5a7251cb0e51eb19765f4e9f797dd7c | Java | PavelRavvich/javers-demo | /src/main/java/com/pravvich/demo/model/AuditMetadata.java | UTF-8 | 307 | 1.742188 | 2 | [] | no_license | package com.pravvich.demo.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuditMetadata {
private UUID auditGroupId = UUID.randomUUID();
}
| true |
473368aa8c7705c2a1eb7776d2dbcf46e2d82f7f | Java | esraaabuseada/My-Tripminder | /app/src/main/java/com/esraa/android/plannertracker/BroadCastRecievers/AlarmDialog.java | UTF-8 | 4,252 | 2.109375 | 2 | [] | no_license | package com.esraa.android.plannertracker.BroadCastRecievers;
import android.app.AlertDialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.c... | true |
683720165e40e220e69a78fd6dbb527dcdfdabe4 | Java | b94901099/Advanced-Java-Tutorials | /src/Implement/DivideTwoIntegers.java | UTF-8 | 1,603 | 4.0625 | 4 | [] | no_license | /*
* Divide two integers without using multiplication, division and mod operator.
*/
package Implement;
public class DivideTwoIntegers {
public static int divide(int dividend, int divisor) {
int sign = 1;
if (dividend < 0) {
sign *= -1;
}
if (divisor < 0) ... | true |
23833a03ca81f431044be2290aec4a9ef12dc59b | Java | fracz/refactor-extractor | /results-java/JetBrains--intellij-community/81f8d448f64ff7c0911aa0885bdac4f3f2fadb18/after/MavenRehighlighter.java | UTF-8 | 3,111 | 1.570313 | 2 | [] | no_license | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | true |
0cf910526325ce5d679d538fd7f0aa319119d747 | Java | ronenhamias/scalecube-streams | /src/test/java/io/scalecube/streams/ListeningServerStreamTest.java | UTF-8 | 4,865 | 2.265625 | 2 | [] | no_license | package io.scalecube.streams;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import io.scalecube.streams.Event.Topic;
import io.scalecube.transport.Address;
import org.junit.Before;
import org.junit.Test;
import rx.obse... | true |
4fcd614eb5ffbe881c75b049d611fb5dccb80443 | Java | yuxiang8931/LBS-middleware | /app/src/main/java/com/aut/yuxiang/lbs_middleware/lbs_mechanism_manager/Mechanism.java | UTF-8 | 1,210 | 1.96875 | 2 | [] | no_license | package com.aut.yuxiang.lbs_middleware.lbs_mechanism_manager;
import android.content.Context;
import com.aut.yuxiang.lbs_middleware.lbs_policy.LBS;
import com.aut.yuxiang.lbs_middleware.lbs_policy.LBS.LBSLocationListener;
import com.aut.yuxiang.lbs_middleware.lbs_policy.PolicyReferenceValues;
import com.aut.yuxiang.l... | true |
1f3aa348e07b226326c8c5b5c57fd778f33aedef | Java | cnbusiness/hd-cloud-moment | /src/main/java/com/hd/cloud/dao/impl/ActivityReportDaoMyBatisImpl.java | UTF-8 | 1,062 | 1.9375 | 2 | [] | no_license | package com.hd.cloud.dao.impl;
import java.util.Date;
import javax.inject.Inject;
import org.springframework.stereotype.Repository;
import com.hd.cloud.bo.ActivityReport;
import com.hd.cloud.dao.ActivityReportDao;
import com.hd.cloud.dao.mapper.ActivityReportMapper;
/**
*
* @ClassName: ActivityReportDaoMyBatisI... | true |
ed9fb05c95057c2d663d8d612180221d6a4c8a37 | Java | chqu1012/RichClientFX | /de.dc.javafx.xcore.model.edit/src-gen/de/dc/emf/javafx/model/javafx/provider/ListViewFXItemProvider.java | UTF-8 | 7,648 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /**
*/
package de.dc.emf.javafx.model.javafx.provider;
import de.dc.emf.javafx.model.javafx.JavafxPackage;
import de.dc.emf.javafx.model.javafx.ListViewFX;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notific... | true |
f0451d5907507f7326c1a5f284052be72914f640 | Java | AEFaour/init-spring | /chap_05_jpa_sansspring/src/test/java/com/aston/java/spring/entites/ArtisteTest.java | UTF-8 | 3,509 | 2.6875 | 3 | [] | no_license | package com.aston.java.spring.entites;
import static org.junit.jupiter.api.Assertions.*;
import java.time.LocalDate;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import j... | true |
bb3acbae554b2d52ff5e39bc4108dc7739ce90fb | Java | kathleenmjustice/casino-royale | /Casino Royale/src/croyale/Casino.java | UTF-8 | 331 | 2.1875 | 2 | [] | no_license | package croyale;
import javax.swing.*;
public class Casino {
public static void main(String[] args) {
// Schedule a job for the event-dispatching thread:
// creating and showing this application's GUI.
SwingUtilities.invokeLater(new Runnable() {
public void run(){
MainGUI.createAndShowGUI();
}
... | true |
aca859dac6783c958f9c63103e52d8cedbca8b15 | Java | pentium100/BOEFrame | /src/main/resources/com/itg/dao/ReportMemoDAO.java | UTF-8 | 2,069 | 2.203125 | 2 | [] | no_license | package com.itg.dao;
import java.util.Date;
import java.util.List;
import javax.persistence.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
public class ReportMemoDAO extends HibernateDaoSupport implements IReportMemoDAO {
public Long getReportMemoCount(Date keyDate, Strin... | true |
84e68c3d6b7cb62aa47bab6270b90f98af09abbb | Java | noRelax/java-utils | /Java大型CERP进销存系统/codefans.net/哈工大CERP/src/com/huiton/cerp/CerpRes_en.java | GB18030 | 643 | 1.914063 | 2 | [] | no_license | package com.huiton.cerp;
import java.util.*;
import java.util.*;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2000
* Company: BRITC
* @author
* @version 1.0
*/
public class CerpRes_en extends java.util.ListResourceBundle{
static final Object[][] contents = new String[][]{
{ "... | true |
157ca0820e9ada98c487fef06afdd847370c5b65 | Java | yxh-y/code_comment_generation | /CodeComment_Data/Code_Jam/train/Speaking_in_Tongues/S/google1(1).java | UTF-8 | 2,127 | 2.734375 | 3 | [] | no_license | package methodEmbedding.Speaking_in_Tongues.S.LYD551;
import java.io.*;
public class google1
{
public static void main(String []args)throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int lines;
try{
// Open the file that is the first
// command line parameter
File... | true |
da4ccd93eb504e72151abf902b667b4bec96aea7 | Java | Qin-K/my-learning | /algorithm&data-structure/lanqiao/src/算法很美/ch7深入递归/递归/Test2_机器人走方格.java | UTF-8 | 608 | 3.4375 | 3 | [] | no_license | package 算法很美.ch7深入递归.递归;
public class Test2_机器人走方格 {
public static void main(String[] args) {
System.out.println(f21(3, 3));
}
// 机器人走方格
public static int f21(int m, int n) {
if (m == 1 || n == 1) {
return 1;
}
return f21(m - 1, n) + f21(m, n - 1);
}
public static int f22(int m, int n) {
int[][] ... | true |
06a5c7cb5390a9c88fdfeb9f6f9082085a66d68f | Java | rsqtl94/CST105 | /Topic 3/Programming 3/PlayerManager.java | UTF-8 | 897 | 2.421875 | 2 | [] | no_license |
public class PlayerManager {
public static void main(String[] args) {
NFLPlayer[] NFLPlayersArray = new NFLPlayer[6];
NFLPlayersArray[0] = new NFLPlayer();
NFLPlayersArray[0].firstName = "Tom";
NFLPlayersArray[0].lastName = "Santos";
NFLPlayersArray[1] = new NFLPlayer();
NFLPlayersArray[1].firstNam... | true |
8716089dfe14fb4127950d68ee780bbd0c8cffcb | Java | mhaeuser/NQJ-compiler | /testdata/typechecker/error/classes/portfolio_InhDupeMethodNameIncompat.java | UTF-8 | 305 | 2.84375 | 3 | [
"BSD-3-Clause"
] | permissive | // Tests that inheriting duplicate and incompatible methods errors.
int main() {
return 0;
}
class InhDupeMethodNameIncompatClass1 {
int f() {
return 0;
}
}
class InhDupeMethodNameIncompatClass2 extends InhDupeMethodNameIncompatClass1 {
int f(int x) {
return 0;
}
}
| true |
6ad58d24e5d97d998f25bdb9b2e0ddf9e0aa828c | Java | SuperBeeOA/SuperBeeOA | /OA/src/cn/bdqn/j25/daoImpl/MonitoringDaoImpl.java | UTF-8 | 1,185 | 2.15625 | 2 | [] | no_license | package cn.bdqn.j25.daoImpl;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import cn.bdqn.j25.dao.MonitoringDao;
import cn.bdqn.j25.pojo.Monitoring;
public class MonitoringDaoImpl extends HibernateDaoSupport implements
MonitoringDao {
@Override
public Monitoring ... | true |
b804b39d9eb4388baa5ccb531edfdf13d021674f | Java | zacmaster/ejercicioSwitch | /src/demo/CalculatorTest.java | UTF-8 | 833 | 3.078125 | 3 | [] | no_license | package demo;
import org.junit.Test;
import static demo.Main.calculate;
import static org.junit.Assert.*;
public class CalculatorTest {
@Test
public void calculateSum(){
String input = "1 + 3";
assertEquals(calculate(input), "4");
}
@Test
public void calculateSubstraction(){
... | true |
c6f7a52e850763773f222aa700a834759eedeeea | Java | saranascimento/programacaoi | /ex005.java | UTF-8 | 663 | 3.75 | 4 | [] | no_license | /*
Exercício 005
Escreva um programa que imprima na tela a soma dos números ímpares entre 0 e 30 e
a multiplicação dos números pares entre 0 e 30.
*/
/**
*
* @author danilo
*/
public class ex005 {
public static void main(String[] args) {
int somaDosImpares = 0;
long multiplicacaoDosPares = 1;
... | true |
243cb37e93c6e9f3839b338363fa7e71bfd452e1 | Java | jiyeong95/PetCareRepo | /src/main/java/com/test/controller/PetController.java | UTF-8 | 3,428 | 2.484375 | 2 | [] | no_license | package com.test.controller;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spring... | true |
edf5399d2a283e06784ec0cc84f53ae8c2e676fd | Java | youn16/StockLetter | /server/src/main/java/com/example/demo/dto/FinPriceDTO.java | UTF-8 | 263 | 1.695313 | 2 | [
"MIT"
] | permissive | package com.example.demo.dto;
import com.example.demo.entity.FinanceRatioInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class FinPriceDTO {
private FinanceRatioInfo financeInfo;
private PriceInfoDTO priceInfo;
}
| true |
13862cbbd74a102030e9ed274621084a03cb4b14 | Java | kronomanta/unexpected-exceptions | /Source/FinalWithComments/src/gameLogic/IBounds.java | UTF-8 | 1,436 | 2.984375 | 3 | [] | no_license | package gameLogic;
import java.security.InvalidParameterException;
public interface IBounds {
// returns with the X coordinate of the upper left corner of given rectangle
public float getLeft();
// returns with the Y coordinate of the upper left corner of given rectangle
public float getTop();
// ... | true |
35f5a222ca2cecb2f338660c5a0041c53f262720 | Java | Sangramsin9/chess | /src/main/java/com/oops/design/chess/Game.java | UTF-8 | 1,450 | 3.5625 | 4 | [] | no_license | package com.oops.design.chess;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
/**
* @author Sangramsing
*/
public class Game {
public static void main(String[] args) {
char a;
do {
getPossibleMoves(args);
Scanner sc = new Scanner(Sys... | true |
0ecbcfe2868318f6494f12b48f4125fd598ae6d5 | Java | apache/sirona | /agent/performance/cdi/src/main/java/org/apache/sirona/cdi/internal/SironaPerformanceExtension.java | UTF-8 | 6,069 | 1.6875 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"CC-BY-3.0",
"LicenseRef-scancode-proprietary-license"
] | 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 ... | true |
e287c4b8d37041c13d8434c351b7c629ce9021e5 | Java | khadija-lassoued/bataille_naval | /src/ihm/Grille.java | UTF-8 | 892 | 2.640625 | 3 | [] | no_license | package ihm;
import static bataillenaval.Constante.*;
import bataillenaval.Joueur;
import java.awt.*;
import java.awt.event.*;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
public class Grille extends Panel implements MouseMotionListener {
public Image cible = new ImageIcon("ressources/cible.png").getI... | true |
e92e7bf188c8f29f02feb8833701163c092383f7 | Java | C-Liueasymoney/LeetCode-in-My-House | /src/main/java/partition_86/MySolution.java | UTF-8 | 2,245 | 3.203125 | 3 | [] | no_license | package partition_86;
import com.sun.corba.se.impl.encoding.CodeSetConversion;
import org.junit.Test;
import utils.ListNode;
/**
* @Description:
* @Author: chong
* @Data: 2021/6/24 5:42 下午
*/
public class MySolution {
public ListNode partition(ListNode head, int x){
if (head == null || head.next == nu... | true |
0f5a7ece45dcbc796178abb3190c8bd4894b40c6 | Java | randomacessmemory/PuzzleN | /br.com.poli.PuzzleN/src/br/com/poli/puzzleN/engine/Puzzle.java | UTF-8 | 10,022 | 2.1875 | 2 | [] | no_license | package br.com.poli.puzzleN.engine;
import java.awt.Point;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import br.com.poli.puzzleN.Interfaces.CalculaScore;
import br.com.poli.puzzleN.exceptions.*;... | true |
6195a0cb33d632f26675853887b32aa27bc2c02a | Java | holic-cat/andro | /sources/p004o/C2032.java | UTF-8 | 510 | 1.757813 | 2 | [] | no_license | package p004o;
import java.nio.ByteBuffer;
/* renamed from: o.큷 */
final class C2032 extends C0762sz {
C2032() {
}
/* renamed from: 鷭 */
public final void mo4052(ByteBuffer byteBuffer, int i, boolean z, int i2) {
this.f4671 = 311;
short s = byteBuffer.getShort();
short s2 = by... | true |
9b70f18a9ee83fd264b1e7f120d9c741a903a587 | Java | whongj/qishenmemingzia | /headfirstshejimoshi/src/di2zhangqixiangzhan/WeatherData.java | UTF-8 | 1,069 | 3.09375 | 3 | [] | no_license | package di2zhangqixiangzhan;
import java.util.*;
public class WeatherData implements Subject{
private ArrayList observers;
private float temperature;
private float humidity;
private float pressure;
public WeatherData(){
observers=new ArrayList();
}
@Override
public void registerObserver(Observer o) {... | true |
9207a7aaf9adbe96dba970cb168274c45c6457e5 | Java | msolisp/farmacia-turno-spring-boot | /farmacias-turno-api-rest/src/main/java/com/springboot/consorcio/apirest/service/IComunaService.java | UTF-8 | 323 | 1.710938 | 2 | [] | no_license | package com.springboot.consorcio.apirest.service;
import java.util.List;
import com.springboot.consorcio.apirest.model.Comuna;
/**
* @author maximiliano
*
*/
public interface IComunaService {
/**
* @author maximiliano
*
*/
public String getComunas(String reg_id);
public List<Comuna> getAllComunas();
... | true |
1695b194a97dc151b16ff06d9db76f7bd88c44c1 | Java | devendra0901/Java_Practical_Exercises | /classes_and_objects/Pe9.java | UTF-8 | 932 | 2.875 | 3 | [] | no_license | package myFirstProject;
import java.io.*;
public class Pe9 {
public static void main(String a[]) throws IOException {
File folder = new File("/home/devendra/Desktop/spring/stackroute/myFirstProject/files/");
File[] files = folder.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) ... | true |
4d831b39e37a6f1bf471a454c90389af4deb22d8 | Java | ruijietian/approximative-query-processing | /src/main/java/approximative/query/processing/translator/analyzer/Direction.java | UTF-8 | 370 | 2.453125 | 2 | [] | no_license | package approximative.query.processing.translator.analyzer;
/**
* @author LIRIS
* @version 1.0
* @since 1.0 6/15/18.
*/
public enum Direction {
RIGHT(">"),
LEFT("<");
private String orientation;
Direction(String orientation) {
this.orientation = orientation;
}
public String getOr... | true |
2632a8a9f319204eae3f0c56a81deb83a998e4a3 | Java | dan134/IntroductionToJava | /Section11_GraphicsAndGUILayouts/1112_GameSystemFinal/GameSystemGUI/Driver.java | UTF-8 | 1,253 | 2.921875 | 3 | [] | no_license | package GameSystemGUI;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author MajorGuidance
*/
public class Driver {
public static void main(String[] args)
{
... | true |
68942a0900d8c8d1b16d2c6d2429da6a3490491e | Java | trowqe/phoneshop | /core/src/main/java/com/es/core/service/phone/PhoneServiceImpl.java | UTF-8 | 1,275 | 2.265625 | 2 | [] | no_license | package com.es.core.service.phone;
import com.es.core.dao.phone.ItemNotFoundException;
import com.es.core.dao.phone.PhoneDao;
import com.es.core.dao.phone.SortField;
import com.es.core.dao.phone.SortType;
import com.es.core.model.phone.Phone;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
f70d8182bf86b50a21779d0a6b794a6c0e7cabf9 | Java | devsecops3333/verita | /WEB-INF/classes/verita/dashboard/daoservice/MenuDashboardService.java | UTF-8 | 543 | 1.976563 | 2 | [] | no_license | package verita.dashboard.daoservice;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import verita.dashboard.dao.impl.MenuDashboardDaoImpl;
import verita.model.MenuDashboard;
public class MenuDashboardService {
static final Logger LOGGER = Log... | true |
20e4cb06339df0646e83506a3ca406702e3cfe24 | Java | MauroMuratore/SocialNetwork | /src/server/database/ConsultaDB.java | UTF-8 | 2,507 | 2.515625 | 3 | [] | no_license | package server.database;
import java.io.UnsupportedEncodingException;
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import lib.core.Categoria;
import lib.core.Evento;
import lib.core.Notifica;
import lib.... | true |
acd72890201688dc5e6d002a4871c59a1bdd2c9d | Java | zokica8/SuperHeroApp | /app/src/main/java/com/nsweb/heroapp/ui/fragments/IndividualHeroFragment.java | UTF-8 | 5,950 | 2.203125 | 2 | [] | no_license | package com.nsweb.heroapp.ui.fragments;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView... | true |
591651e6987c35c2e5c2ac8b2155b6938017b52f | Java | krzeelzb/JavaPrograms | /Kolokwium/src/Stała.java | UTF-8 | 263 | 2.875 | 3 | [] | no_license | import java.util.Stack;
public class Stała extends Operator0Arg {
public Stała(String wartość) {
super(wartość);
}
@Override
public double oblicz(Stack<Operator> s) {
return Double.parseDouble(this.getWartość());
}
}
| true |
e06c3d5f75eb75033475e928c14bb2e12c0cc1c4 | Java | chenjiajiabianmi/infrastructure | /src/main/java/com/vanceinfo/javaserial/model/EmailInfo.java | UTF-8 | 1,088 | 1.914063 | 2 | [] | no_license | package com.vanceinfo.javaserial.model;
import java.io.Serializable;
public class EmailInfo implements Serializable {
private static final long serialVersionUID = -2781506198221044782L;
private String from;
private String[] to;
private String[] cc;
private String subject;
private String templeteName;
public ... | true |
e80d91e676d6f5e6c020fdab3acc44ecab6eebb9 | Java | Izual13/Searcher | /src/main/java/com/searcher/SearcherApplication.java | UTF-8 | 906 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package com.searcher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
... | true |
93a57139192ec1a7f4284895fbd253bbfa0420b9 | Java | DaniloAndrade/FinanceiroWeb | /src/br/com/financeiro/web/beans/CategoriaBean.java | UTF-8 | 3,704 | 2.21875 | 2 | [] | no_license | package br.com.financeiro.web.beans;
import java.util.ArrayList;
import java.util.List;
import javax.enterprise.context.RequestScoped;
import javax.faces.model.SelectItem;
import javax.inject.Inject;
import javax.inject.Named;
import org.primefaces.event.NodeSelectEvent;
import org.primefaces.model.Defaul... | true |
192d6ee18fb9235a576cb5deb0b93c38211ff9df | Java | P79N6A/learning-2 | /sourcecode/src/main/java/wang/xiaoluobo/netty4/tcp/TcpClient.java | UTF-8 | 2,714 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package wang.xiaoluobo.netty4.tcp;
import com.alibaba.fastjson.JSON;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.DelimiterB... | true |
ad218f9921e93234266e683bcbe2456bf46b062a | Java | rishiraj-124/BUS_AFCS | /BUSAFCS/src/main/java/com/example/busafcs/util/AFCSConstants.java | UTF-8 | 3,223 | 1.632813 | 2 | [] | no_license | /**
*
*/
package com.example.busafcs.util;
/**
* @author rishiraj
*
*/
public class AFCSConstants {
private AFCSConstants(){}
public static final String LOG4J_FILE_PATH_KEY = "LOG4J_FILE_PATH";
public static final String DATE_FORMAT_DD_MM_YYYY = "ddMMyyyy";
public static final String TIME_FORMAT_HH_... | true |
2ed9160236475f8dca5bab87453e780b5ef36636 | Java | 0ffffffffh/jyald | /src/org/jyald/debuglog/DebugLogLevel.java | UTF-8 | 1,324 | 2.5 | 2 | [] | no_license | /*
* JYald
*
* Copyright (C) 2011 Oguz Kartal
*
* This file is part of JYald
*
* JYald 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 3 of the License, or
* (at your option) any la... | true |
11e5e60b5aa9d2468e4ca70ea1daeb0c65921d5a | Java | zhongxingyu/Seer | /Diff-Raw-Data/4/4_65d29e5b3ac7cdca4e7ff4bc3c53ab445323e2a1/DccDownload/4_65d29e5b3ac7cdca4e7ff4bc3c53ab445323e2a1_DccDownload_s.java | UTF-8 | 3,395 | 2.1875 | 2 | [] | no_license | /*
* Project: xdccBee
* Copyright (C) 2009 snert@snert-lab.de,
*
* 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 3 of the License, or
* (at your option) any lat... | true |
81d1447ad8a9f5f53c64c286c17bd13d02c10832 | Java | bloopkin/hazelcast-locks | /src/test/java/ca/thoughtwire/lock/DistributedLockFactoryTest.java | UTF-8 | 2,390 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package ca.thoughtwire.lock;
import com.hazelcast.core.HazelcastInstance;
import org.easymock.EasyMockSupport;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.locks.ReadWriteLock;
import static ca.thoughtwire.lock.DistributedLockUtils.LocalDistributedDataStructureFactory;
import static or... | true |
5e31f4a0b22e6b0cf360cde66180806f74ad728c | Java | lewisesteban/Paxos | /src/main/java/network/PaxosListenerClient.java | UTF-8 | 1,320 | 2.234375 | 2 | [] | no_license | package network;
import com.lewisesteban.paxos.paxosnode.Command;
import com.lewisesteban.paxos.paxosnode.StateMachine;
import com.lewisesteban.paxos.rpc.paxos.ListenerRPCHandle;
import java.io.IOException;
public class PaxosListenerClient implements RemotePaxosListener {
private RemoteCallManager client;
pr... | true |
f813da22f3f651b45c7260a0dad6634661da6142 | Java | nikhilsharma93/SimpleDB | /SimpleDb/simpledb/server/TestSimpleDB.java | UTF-8 | 2,731 | 2.8125 | 3 | [] | no_license | package simpledb.server;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.Map;
import simpledb.buffer.Buffer;
import simpledb.buffer.BufferAbortException;
import simpledb.buffer.BufferMgr;
import simpledb.file.Block;
import simpledb.remote.R... | true |
aad47e912df5490f843d5b3522481c375e8ad0a7 | Java | rin10zin/Java-Web-application | /webJava/src/service/user/UserService.java | UTF-8 | 1,977 | 2.71875 | 3 | [] | no_license | package service.user;
import domains.user.User;
import utils.DatabaseConnection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by userpc on 5/12/2016.
*/
public class UserService {
pu... | true |
feef5b809c60bcd72a358a162042e7c066dba461 | Java | Sonredi/android_training | /10232017HttpRequestNative/app/src/main/java/com/example/aptivist_u002/a10232017httprequestnative/RetrofitManager.java | UTF-8 | 2,921 | 2.453125 | 2 | [] | no_license | package com.example.aptivist_u002.a10232017httprequestnative;
import android.util.Log;
import com.example.aptivist_u002.a10232017httprequestnative.POJO.Result;
import com.example.aptivist_u002.a10232017httprequestnative.POJO.ResultApi;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
impor... | true |
d6ba83e648017c37f011c892c743e837198baa57 | Java | ngohuybt/SearchTeenavySport | /src/moteefeObj/RootObjectCampfirepark.java | UTF-8 | 779 | 2.34375 | 2 | [] | no_license | package moteefeObj;
import java.util.ArrayList;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class RootObjectCampfirepark {
@JsonProperty("@id")
private String id;
@JsonProperty("variants")
ArrayLi... | true |
38b57f82f1718799fa703cd58634f82cd25ae720 | Java | gitskarios/Gitskarios | /app/src/main/java/com/alorma/github/ui/adapter/events/holders/PullRequestEventViewHolder.java | UTF-8 | 1,446 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.alorma.github.ui.adapter.events.holders;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.alorma.github.R;
import com.alorma.github.sdk.bean.dto.response.GithubEvent;
import com.alorma.github.ui.view.... | true |
1a140bf1508bf1af0814e39174f72fedf25896a0 | Java | jbcorp/serviceMonitor | /src/main/java/com/intershop/pegaServices/HardWareStatusResponseType.java | UTF-8 | 3,343 | 1.851563 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.04.13 at 01... | true |
4a0366edc9f6322c1e090cfc1cf188e396f54a2c | Java | metaborg/imp-patched | /moved_to_github/org.eclipse.imp.java.core/src/org/eclipse/imp/java/resolution/JavaReferenceResolver.java | UTF-8 | 2,261 | 2.1875 | 2 | [] | no_license | /*
* (C) Copyright IBM Corporation 2007
*
* This file is part of the Eclipse IMP.
*/
package org.eclipse.imp.java.resolution;
import org.eclipse.imp.language.ILanguageService;
import org.eclipse.imp.parser.IParseController;
import org.eclipse.imp.services.IReferenceResolver;
import polyglot.ast.Ambiguous;
import... | true |
01f689a18a47d2225a17d720cf14e229e8189bcc | Java | marat-gainullin/platypus-js | /platypus-js-web-client/src/main/java/com/eas/bound/ModelFormattedField.java | UTF-8 | 7,857 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.eas.bound;
import java.text.ParseException;
import com.eas.client.converters.DateValueConverter;
import com.eas.client.converters.DoubleValueConverter;
import com.eas.client.converters.StringValueConverter;
import com.eas.core.Utils;
import com.eas.ui.HasEmptyText;
import com.eas.ui.events.Action... | true |
753bae40543837e8091892aa2e0f665fdde21af1 | Java | IsachenkoAV/Epam2017 | /classes2/src/by/gsu/epamlab/Subject.java | UTF-8 | 996 | 3.1875 | 3 | [] | no_license | package by.gsu.epamlab;
public class Subject {
private String name;
private Material material;
private double volume;
public Subject() {
super();
}
public Subject(String name, Material material, double volume) {
super();
this.name = name;
this.material = material;
this.volume = volume;
}
pu... | true |
7f26cd5870f9373c7a7837c33ebf43d46c063e64 | Java | victordiniz1blackend/projetosMateria | /telaDesenho/src/testeDetela.java | UTF-8 | 373 | 2.171875 | 2 | [] | no_license | import javax.swing.JFrame;
public class testeDetela {
public static void main(String[] args) {
NewDesenho pain = new NewDesenho();
JFrame application = new JFrame();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
application.add(pain);
application.setSize(250,2... | true |
48dc318ad0a31f86da9fdeaed3f74c38a46e6ff7 | Java | moutainhigh/vip-tmm | /tmm-admin/tmm-admin/src/main/java/com/tuandai/transaction/repository/ApplicationMapper.java | UTF-8 | 946 | 1.875 | 2 | [] | no_license | package com.tuandai.transaction.repository;
import com.tuandai.transaction.domain.Application;
import com.tuandai.transaction.domain.Role;
import com.tuandai.transaction.domain.filter.ApplicationFilter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
imp... | true |
f22a3111463360ea02f7953ecdd1b7ee73715b95 | Java | bommox/extjs-sample-application | /src/Persona.java | UTF-8 | 994 | 2.953125 | 3 | [] | no_license | public class Persona {
private String nombre;
private String apellido;
private Long telefono;
public Persona(String n, String a, Long t) {
this.nombre = n;
this.apellido = a;
this.telefono = t;
}
/**
* @return the nombre
*/
public String getNombre() {
... | true |
c73f70dfafec6b309b8d26c290a4f95fd96ecbb3 | Java | TheLox95/Desktop-Pocket | /src/app/entities/Article/Article/Parser.java | UTF-8 | 3,462 | 2.515625 | 3 | [] | no_license | package app.entities.Article.Article;
import app.entities.Article.Interfaces.Parser.IParser;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
/**
* Created by Leonardo on 01/12... | true |
57de0247bea541fe02de486e00e69807d40d8929 | Java | harry191518/TocHw3 | /TocHw3.java | UTF-8 | 1,179 | 2.8125 | 3 | [] | no_license | import java.net.*;
import java.io.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.*;
public class TocHw3 {
public static void main(String[] args) throws Exception {
if(args.length < 4) {System.out.println("argument error"); System.exit(1);}
try {
URL oracle = new URL(args[0])... | true |
19423a4234baaff3df91c21a2863b36bcf7b97f7 | Java | iantal/AndroidPermissions | /apks/playstore_apps/com_idamob_tinkoff_android/source/ru/tcsbank/mb/ui/deeplink/a/v.java | UTF-8 | 697 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | package ru.tcsbank.mb.ui.deeplink.a;
import android.content.Context;
import android.net.Uri;
import android.support.v4.app.al;
import ru.tcsbank.mb.ui.deeplink.a.b.c;
import ru.tcsbank.mb.ui.products.NewProductsActivity;
import ru.tcsbank.mb.ui.products.insurance.InsuranceActivity;
@c(a={"name"})
public final class v... | true |
d0a865143d88134be456e306e46973afae711459 | Java | Luozhijun/csiebug | /csiebug-2.0/src/csiebug/web/html/form/HtmlSelect.java | UTF-8 | 14,576 | 2.265625 | 2 | [] | no_license | package csiebug.web.html.form;
import java.io.UnsupportedEncodingException;
import java.util.Map;
import javax.naming.NamingException;
import csiebug.util.AssertUtility;
import csiebug.util.StringUtility;
import csiebug.util.WebUtility;
import csiebug.web.html.HtmlBuilder;
import csiebug.web.html.HtmlComp... | true |
f31dc024b4468fa2eed4b4ec324973336c62f600 | Java | jeevadj/zhagaram-admin | /app/src/main/java/com/example/hp/zha/fragments/create_photo.java | UTF-8 | 10,742 | 1.601563 | 2 | [] | no_license | package com.example.hp.zha.fragments;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Fragment;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.... | true |
488a351db54acba8183e2efc163c7b2da1eb3eb0 | Java | amidst/toolbox | /examples/src/test/java/eu/amidst/flinklink/examples/learning/StochasticVIExampleTest.java | UTF-8 | 246 | 1.5625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"Minpack"
] | permissive | package eu.amidst.flinklink.examples.learning;
import junit.framework.TestCase;
import org.junit.Test;
public class StochasticVIExampleTest extends TestCase {
@Test
public void test() throws Exception {
StochasticVIExample.main(null);
}
} | true |
73e00683a56a65cf4400f1c79af7d763aece0424 | Java | consulo/consulo-google-dart | /dart-impl/src/main/java/com/jetbrains/lang/dart/ide/runner/DartRunner.java | UTF-8 | 3,484 | 1.921875 | 2 | [] | no_license | package com.jetbrains.lang.dart.ide.runner;
import com.jetbrains.lang.dart.ide.runner.base.DartRunConfigurationBase;
import com.jetbrains.lang.dart.ide.runner.server.DartCommandLineDebugProcess;
import com.jetbrains.lang.dart.ide.runner.server.DartCommandLineRunningState;
import consulo.annotation.component.ExtensionI... | true |
b612c321f8473ca86307c1a8fe66a20242a83c56 | Java | Rohit1110/bill | /Bill/app/src/main/java/com/reso/bill/generic/GenericCreateEditInvoiceActivity.java | UTF-8 | 40,441 | 1.515625 | 2 | [] | no_license | package com.reso.bill.generic;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;... | true |
a13e35b570cccbd719fe2a1983fa44da1a24bd50 | Java | knokko/Troll-Wars | /Troll Wars/src/nl/knokko/render/main/WorldRenderer.java | UTF-8 | 6,965 | 1.820313 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* The MIT License
*
* Copyright (c) 2019 knokko
*
* 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 with... | true |
88396fba0b2196a3aef8641477974a3a8e71a08f | Java | open-webrtc-toolkit/owt-client-android | /test/conference/apiTest/src/main/java/owt/test/conference/apitest/LeaveTest.java | UTF-8 | 2,272 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2018 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
package owt.test.conference.apitest;
import static owt.test.conference.util.ConferenceAction.createClient;
import static owt.test.conference.util.ConferenceAction.getRemoteForwardStream;
import static owt.test.conference.util.Confere... | true |
f3a01c5065c0f1ea1ea5e609209c0c85d7228de4 | Java | cispal19/cibertec | /trabajo jueves/siscolegio-spring/siscolegio-spring/src/main/java/com/cispal/siscolegio/service/OtraPersonaService.java | UTF-8 | 233 | 1.625 | 2 | [] | no_license | package com.cispal.siscolegio.service;
import com.cispal.siscolegio.domain.Persona;
public interface OtraPersonaService extends ServiceGeneric<Persona>{
// void guardar(Persona persona);
// List<Persona> obtenerTodos();
}
| true |
19ba7c77413f8a615d7f97e2de03ec7d89e4b749 | Java | AlexandrRogov/projectStore | /service/src/main/java/com/gmail/rogov/service/converter/impl/dtoImpl/AuditDTOConverter.java | UTF-8 | 1,125 | 2.375 | 2 | [] | no_license | package com.gmail.rogov.service.converter.impl.dtoImpl;
import com.gmail.rogov.dao.dao.model.Audit;
import com.gmail.rogov.service.converter.DTOConverter;
import com.gmail.rogov.service.model.AuditDTO;
import org.springframework.stereotype.Controller;
import java.util.List;
import java.util.Set;
import java.util.stre... | true |
b34c1c9f8e4545ef12ea60414c4805838bc2973a | Java | andreatulimiero/University | /ASD/Exams/20150914/problem_2/java-sol/Queue.java | UTF-8 | 347 | 3.046875 | 3 | [] | no_license | import java.util.LinkedList;
public class Queue {
private LinkedList<NodeTree> q;
public Queue() {
this.q = new LinkedList<NodeTree>();
}
public void enqueue(NodeTree n) {
q.add(n);
}
public NodeTree dequeue() {
return q.poll();
}
public int size() {
... | true |
1dcb31eeaa9f3e4a86f32403ae60ce856f440a14 | Java | gegegejun/BookMarket_JavaWeb | /src/sharm/dao/OrderItemDao.java | UTF-8 | 482 | 1.976563 | 2 | [] | no_license | package sharm.dao;
import sharm.pojo.OrderItem;
import java.util.List;
public interface OrderItemDao {
public int saveOrderItem(OrderItem orderItem);
Integer queryForPageTotalCount(String orderId);
List<OrderItem> queryForPageItems(String orderId, int begin, int pageSize);
/**
* 查看订单详情,其 Ord... | true |
d157443be44f36d5d64a1167967ba2ecdf4f0603 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_cb75af767263afb0182c513a2887ed5ec4ccc785/CreateSonePage/2_cb75af767263afb0182c513a2887ed5ec4ccc785_CreateSonePage_t.java | UTF-8 | 3,426 | 2.21875 | 2 | [] | no_license | /*
* FreenetSone - CreateSonePage.java - Copyright © 2010 David Roden
*
* 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 3 of the License, or
* (at your option) any la... | true |
951dc086d28eaff3179fc7cf1597ad3d0ee28fe6 | Java | EsbenNedergaard/P2 | /src/WarehouseSimulation/WarehouseSimulation.java | UTF-8 | 11,949 | 2.21875 | 2 | [] | no_license | package WarehouseSimulation;
import BackEnd.Geometry.PickingPoint;
import BackEnd.Geometry.Point2D;
import BackEnd.Graph.SpaceTimeGrid;
import BackEnd.Pathfinding.FastestAndShortestRoute;
import BackEnd.Pathfinding.PathFinders.PathFinder;
import BackEnd.Pathfinding.PickingRoute;
import BackEnd.Pathfinding.RouteFinders... | true |
54fd6f1f0b88b47a5d242df18b38ed744b054c74 | Java | BulkSecurityGeneratorProject/meioambiente | /src/main/java/br/com/homemade/repository/AdministrativoRepository.java | UTF-8 | 950 | 2.109375 | 2 | [] | no_license | package br.com.homemade.repository;
import br.com.homemade.domain.Administrativo;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* Spring Data JPA repository for the Administrativo entity.
*/
@SuppressWarnings("unused")
public i... | true |
d2ad51a905dd8cc4a5ccbdea3db2c6f659794472 | Java | sonerpyci/hackathon-web | /src/main/java/com/sonerpyci/ciceksepeti/hackathon/services/ShopService.java | UTF-8 | 1,675 | 2.609375 | 3 | [] | no_license | package com.sonerpyci.ciceksepeti.hackathon.services;
import com.sonerpyci.ciceksepeti.hackathon.dao.GiftRepository;
import com.sonerpyci.ciceksepeti.hackathon.dao.OrderRepository;
import com.sonerpyci.ciceksepeti.hackathon.dao.ShopRepository;
import com.sonerpyci.ciceksepeti.hackathon.models.Shop;
import org.springfr... | true |
d0cfd567613c627923ac935b0d7483d684996a5d | Java | arupmukherjee38/Aop1 | /src/main/java/com/poc/Aop1/App.java | UTF-8 | 697 | 2.28125 | 2 | [] | no_license | package com.poc.Aop1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
ApplicationContext applicationCont... | true |
b3c4ba0299a525adeae74cff8269896e992f7fed | Java | aasom143/All-in-One | /app/src/main/java/com/example/somesh/somesh_2048/CALCULATOR.java | UTF-8 | 9,670 | 2.453125 | 2 | [] | no_license | package com.example.somesh.somesh_2048;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import static ... | true |
902fdbc0381077dac122fc1cadc59354525885ce | Java | stanleykayzz/copyProjetAnnuel | /src/main/java/server/controller/ClientController.java | UTF-8 | 5,480 | 2.234375 | 2 | [] | no_license | package server.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import server.model.Client;
import server.repository.ClientRepository;
import server.... | true |
008be55f8c8c2901538ce26d51c85fa25361842c | Java | hpu145/ideaProject | /Hibernate/src/test/java/com/kaishengit/hibernate/HibernateTest.java | UTF-8 | 2,750 | 2.59375 | 3 | [] | no_license | package com.kaishengit.hibernate;
import com.kaishengit.pojo.User;
import com.kaishengit.util.HibernateUtil;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
impor... | true |
61a248ac4d6093e6bc1d9fba0abb828bef224d5d | Java | GabrielCastro25/vendas-batch | /src/main/java/br/com/gsc/vendasbatch/layout/impl/VendaTipoLayoutImpl.java | UTF-8 | 1,405 | 2.5 | 2 | [] | no_license | package br.com.gsc.vendasbatch.layout.impl;
import br.com.gsc.vendasbatch.layout.TipoLayout;
import br.com.gsc.vendasbatch.model.Arquivo;
import br.com.gsc.vendasbatch.model.ItemPedido;
import br.com.gsc.vendasbatch.model.Pedido;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public ... | true |
7c132dd7464edb837dd61268cce241aa60e0e863 | Java | sumedha-khandelwal/shopping-mall | /src/main/java/com/shopping/shoppingmall/ServiceImpl/ShoppingMallServiceImpl.java | UTF-8 | 2,761 | 2.328125 | 2 | [] | no_license | package com.shopping.shoppingmall.ServiceImpl;
import com.shopping.shoppingmall.Repository.ShoppingRepositoryDao;
import com.shopping.shoppingmall.Service.ShoppingService;
import com.shopping.shoppingmall.model.ShoppingMall;
import org.springframework.data.geo.Circle;
import org.springframework.data.geo.Distance;
impo... | true |
ce5fd95b98abfd5b8947d60da957e6cce1be36b4 | Java | pragadaarun/AddressBookWorkshop | /src/main/java/com/bridgelabz/addressbook/files/AddressBookService.java | UTF-8 | 13,484 | 2.828125 | 3 | [] | no_license | package com.bridgelabz.addressbook.files;
import com.google.gson.Gson;
import com.opencsv.CSVReader;
import com.opencsv.CSVWriter;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStr... | true |
735c787faff549b1046116248958039ec90872cc | Java | Roman-Uholnikov/test-assignment-project | /test-assignment-server/src/main/java/org/test/persistance/DocumentWrapperRepository.java | UTF-8 | 946 | 1.914063 | 2 | [] | no_license | package org.test.persistance;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.test.domain.Documen... | true |
5a215f15746a03b35bda3b4bbe703b9a85c0efa4 | Java | Omarjarray95/Fake-Pinterest | /authUserProject/src/main/java/com/esprit/authUser/repositories/UserRepository.java | UTF-8 | 841 | 2.1875 | 2 | [] | no_license | package com.esprit.authUser.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.esprit.authUser.models.User;
publi... | true |
38ba4dd612b9ba83a7c1f08c02f31aa4b2bf0b2a | Java | triceo/robozonky | /robozonky-app/src/test/java/com/github/robozonky/app/daemon/DaemonTest.java | UTF-8 | 2,698 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 The RoboZonky Project
*
* 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 ... | true |
bdd91bef22721ab5e5aad073b8c4113dd805b054 | Java | mliu1019/Uno-game | /src/main/java/CardPackage/SkipCard.java | UTF-8 | 423 | 2.9375 | 3 | [] | no_license | package CardPackage;
import GamePackage.Game;
public class SkipCard extends Card {
public SkipCard(Color c) {
color = c;
effect = Effect.SKIP;
}
@Override
public void causeEffect(Game g) {
g.setState(Game.GameState.shouldSkip, true); /* next player misses a turn ... | true |
50e0a634047f8096ec0c27e40bcbc374a117061c | Java | xruiz81/spirit-creacional | /middleware/src/main/java/com/spirit/contabilidad/session/generated/_AsientoDetalleTmpSessionService.java | UTF-8 | 3,158 | 1.75 | 2 | [] | no_license | package com.spirit.contabilidad.session.generated;
import com.spirit.exception.GenericBusinessException;
import java.util.*;
/**
*
* @author www.versality.com.ec
*
*/
public interface _AsientoDetalleTmpSessionService {
/*************************************************************************... | true |
94c544657dd52afcbdd9a4379aa9a86782122e3c | Java | zrdumped/TinyBookStore | /src/main/java/dao/impl/BookDaoImpl.java | UTF-8 | 1,531 | 2.609375 | 3 | [] | no_license | package dao.impl;
import java.io.UnsupportedEncodingException;
import java.util.List;
import model.Book;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import dao.BookDao;
public class BookDaoImpl extends HibernateDaoSupport implements BookDao {
public Integer save(Book book) {
return (... | true |
590b8d637c75884eaf6734955cf37db45c01333f | Java | 1255200965/YindaOA_SSM | /src/main/java/com/controller/UploadController.java | UTF-8 | 1,978 | 2.4375 | 2 | [] | no_license | package com.controller;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
aa1ac2801cab1bd43d5f8092ba70c4636d04049a | Java | BoloPie/DemoSet | /shyky_library/src/main/java/com/shyky/library/model/impl/ISystemModel.java | UTF-8 | 1,225 | 2.21875 | 2 | [] | no_license | package com.shyky.library.model.impl;
import android.support.annotation.NonNull;
/**
* 系统业务接口
*
* @author Copyright(C)2011-2016 Shyky Studio.
* @version 1.3
* @email sj1510706@163.com
* @date 2016/5/10
* @since 1.0
*/
public interface ISystemModel {
/**
* 是否是第一次使用
*
* @return 是返回true,否则返回fa... | true |
abecd0cd4ecbff26e2fbb7b81d404acbdc7153fe | Java | Vildan1988/class25 | /src/com/class7/Homework.java | UTF-8 | 922 | 3.703125 | 4 | [] | no_license | package com.class7;
import java.util.Scanner;
public class Homework {
public static void main(String[] args) {
//task 2 find the larger number using nested if
Scanner scan=new Scanner(System.in);
System.out.println("pls enter 3 distinct numbers for nested if task");
double no1 = scan.nextDouble();
double no2 ... | true |
1677bbb4c3252f6bc92aeca8361d2758dc3ec1b4 | Java | Rainmonth/JavaLearn | /Interview/src/com/rainmonth/concurrent/ThreadDemo.java | UTF-8 | 7,151 | 3.640625 | 4 | [] | no_license | package com.rainmonth.concurrent;
import java.util.Random;
import java.util.concurrent.*;
/**
* 1. 如何让两个线程依次执行(join的使用)
* 2. 如何让两个线程按照指定方式有序交叉执行(锁的使用,Object.wait()、Object.notify())
* 3. 四个线程A、B、C、D,其中D要等到A B C全部执行完成后才能执行,而且A B C 是同步运行的(CountDownLatch的使用)
* 4. 三个运动员各自准备,等到三个人都准备好了,再一起跑(CyclicBarrier的使用)
* 5. 子线程完... | true |
2b3cb9d80a0acc786c096855eda322fa5251a728 | Java | l34k1m/disciplinaPI | /Produzido/10-22/Primos.java | UTF-8 | 1,051 | 3.46875 | 3 | [] | no_license |
import java.util.Scanner;
public class Primos {
public static void main(String[] args) {
int numeroInformado = 0, numeroValido = 0;
Scanner entrada = new Scanner(System.in);
while (numeroValido == 0) {
System.out.print("Informe o número a ser analisado: ");
... | true |
4fb9c1164c58815be841580d634a6e438d6597d4 | Java | manojkrish/SAIL_WSE | /SAIL/src/com/obj/Browser/OpenBrowser.java | UTF-8 | 3,541 | 2.421875 | 2 | [] | no_license | package com.obj.Browser;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.annotations.AfterClas... | true |