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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
be81675607fb9507250605a3e9cf94868fc5af56 | Java | JoinDevathon/heyimblake-2016 | /src/main/java/org/devathon/contest2016/threads/RobotFlyingParticleThread.java | UTF-8 | 1,087 | 2.65625 | 3 | [] | no_license | package org.devathon.contest2016.threads;
import org.bukkit.Location;
import org.bukkit.Particle;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import org.devathon.contest2016.robotutils.RobotManager;
/**
* Created by heyimblake on 11/5/2016.
*
* @author heyi... | true |
e7528980297a118f90c57a0028baf782f02a22de | Java | f8full/findmybikes | /app/src/main/java/com/ludoscity/findmybikes/ui/settings/SettingsActivity.java | UTF-8 | 1,298 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.ludoscity.findmybikes.ui.settings;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NavUtils;
import com.ludoscity.findmybikes.R;
/**
* Created by F8Full on 2015-08-10.
* Activity used to display Settings fragment
*/
pub... | true |
d72f28076caeda9c8b1d6cc845c8852c42f77586 | Java | mims92/ALG3-G35099-RemiseEnJambe | /src/be/esi/alg2/arbre/dto/ArbreDto.java | UTF-8 | 340 | 2.453125 | 2 | [] | no_license | package be.esi.alg2.arbre.dto;
import be.esi.alg2.dto.Dto;
/**
*
* Dto d'un arbre binaire se contentant de porter le nom de l'arbre
*/
public class ArbreDto extends Dto<String> {
private String nom;
public ArbreDto(String s) {
this.nom = s;
}
public String getNom() {
retur... | true |
48b18a7b1422a22b3507212ae1eb2aafb18ee649 | Java | TencentCloud/tencentcloud-sdk-java | /src/main/java/com/tencentcloudapi/icr/v20211014/models/GetIndustryV1HomeMembersResponse.java | UTF-8 | 4,373 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... | true |
ca039d24631f636fc50e427934c411bacbaec14a | Java | li62zz/pushtest2 | /src/main/java/com/qf/service/impl/MajorMapperServiceImpl.java | UTF-8 | 1,057 | 1.960938 | 2 | [] | no_license | package com.qf.service.impl;
import com.qf.bean.Major;
import com.qf.dao.MajorMapper;
import com.qf.service.MajorMapperService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MajorMapperServiceImpl implements MajorMapperService {
@Re... | true |
3b65710851207f54687db9f0690f4351acb1559c | Java | bellmit/px-core | /src/com/company/news/entity/VoteTopicItemUserRelation.java | UTF-8 | 1,201 | 2 | 2 | [] | no_license | package com.company.news.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "px_vote_topic_item_user_relation")
/**
* 投票条目_用户投票,并评论.
* @author liumingquan
*
*/
@Deprecated
public class VoteTopicItemUserRelatio... | true |
5df19d05412c7ffcc73f1afa1077a9461115647a | Java | ihmcrobotics/ihmc-robot-description | /src/test/java/us/ihmc/robotics/robotDescription/InertiaToolsTest.java | UTF-8 | 5,013 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package us.ihmc.robotics.robotDescription;
import static us.ihmc.robotics.Assert.assertEquals;
import static us.ihmc.robotics.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import org.junit.jupiter.api.Test;
import us.ihmc.euclid.matrix.Matrix3D;
import us.ihmc... | true |
014e101a361dd1eddf677caad9b02b086c524101 | Java | ydong08/GooglePay_AP | /merchantapp/org/bouncycastle/asn1/ConstructedOctetStream.java | UTF-8 | 2,603 | 2.796875 | 3 | [
"MIT"
] | permissive | package org.bouncycastle.asn1;
import java.io.IOException;
import java.io.InputStream;
class ConstructedOctetStream extends InputStream {
private InputStream _currentStream;
private boolean _first = true;
private final ASN1StreamParser _parser;
ConstructedOctetStream(ASN1StreamParser aSN1StreamParser... | true |
cdfc09f99bcda24c42079220fa33bf64a0044062 | Java | DermoHiggs/SW_Dev_Spring2021 | /src/sw_dev/inheritance/exercises/exercise4/Exercise4Tester1.java | UTF-8 | 834 | 3.75 | 4 | [] | no_license | package sw_dev.inheritance.exercises.exercise4;
public class Exercise4Tester1 {
public static void main(String[] args) {
Person p1 = new Person("Mike Smith", 24);
Student s1 = new Student("Mary Jones", 19, "Applied Computing");
Instructor i1 = new Instructor("John Jacobs", 55, 41500.70);
... | true |
f88c78b4bbaa1a64e472c5be397c86983a524154 | Java | bongdaehyun/Alive | /backend/src/main/java/com/ssafy/api/service/QuestionResultServiceImpl.java | UTF-8 | 1,897 | 2.109375 | 2 | [] | no_license | package com.ssafy.api.service;
import com.ssafy.api.request.QuestionResultPostReq;
import com.ssafy.common.auth.UserDetail;
import com.ssafy.db.entity.QuestionResult;
import com.ssafy.db.entity.User;
import com.ssafy.db.repository.QuestionResultRepository;
import com.ssafy.db.repository.QuestionResultRepositorySupport... | true |
43457a814ee45689df69831dbaf84d772576d50e | Java | yusufelmal/java2021summertr | /src/day09_switchCase/P04_ucgen.java | UTF-8 | 1,103 | 3.53125 | 4 | [] | no_license | package day09_switchCase;
import java.util.Scanner;
public class P04_ucgen {
public static void main(String[] args) {
// TODO Auto-generated method stub
/*
* Kullanicidan 3 tene pozitif tam sayi alniz. bu uc sayinin ucgen olusturma
* durumunu kontrol ediniz eger ucgen olabiliyor ise, es kenar ucgen olma
... | true |
281ea1f77e325c74ca6f4233c1bd69478464a4b4 | Java | elwyncrestha/ExpenseAnalyzer-Android | /app/src/androidTest/java/com/elvin/expense_analyzer/LoginActivityTest.java | UTF-8 | 1,060 | 1.867188 | 2 | [] | no_license | package com.elvin.expense_analyzer;
import androidx.test.espresso.action.ViewActions;
import androidx.test.espresso.matcher.ViewMatchers;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.elvin.expense_analyzer.ui.activity.auth.LoginActivity;
import org.juni... | true |
1af27ce54b3eee244da6a19e7c1a8b0ef8e9b56b | Java | mingchaowu5/plagiarism-detector | /plag-detector/src/main/java/edu/northeastern/cs5500/models/extras/Edge.java | UTF-8 | 860 | 3.140625 | 3 | [] | no_license | package edu.northeastern.cs5500.models.extras;
/**
*
* @author varunnandu
*
*/
public class Edge {
private int from;
private int to;
private double value;
/**
*
* @param from
* @param to
* @param value
*/
public Edge(int from, int to, double value) {
this.from = from;
this.to = to;
this.... | true |
2053e9c0e1288755c17863350fc04620c325b0ee | Java | apache/hadoop | /hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3ARetryPolicy.java | UTF-8 | 11,757 | 1.914063 | 2 | [
"CC-PDDC",
"CC0-1.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"CDDL-1.0",
"GCC-exception-3.1",
"MIT",
"EPL-1.0",
"Classpath-exception-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-pu... | 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 ... | true |
51429f2c71c4859400053590bcde84f7cff911c5 | Java | yanweiqi/mmm | /mex-bidder-adx-meitu/src/test/java/com/mex/bidder/adx/meitu/MeituClient.java | UTF-8 | 10,674 | 1.984375 | 2 | [] | no_license | package com.mex.bidder.adx.meitu;
import com.google.protobuf.InvalidProtocolBufferException;
import com.meitu.openrtb.MeituOpenRtb;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpClientRequ... | true |
aae8843122c2fab399d57af532ab4c74e2d603ed | Java | Novoselov-pavel/console_01_archivist | /src/main/java/controller/interfaces/Crc32Interface.java | UTF-8 | 1,002 | 3.046875 | 3 | [] | no_license | package controller.interfaces;
import java.io.File;
import java.io.IOException;
public interface Crc32Interface {
/**
* Returns CRC-32 value.
*/
String getValue();
/**
* Updates the current checksum with the specified array of bytes.
*
* @implSpec This default implementation is ... | true |
457f252deb763b2d2e6c08fd98b5df41f40c474d | Java | manish0890/contacts-api | /src/main/java/com/manish0890/contacts/repository/ContactRepository.java | UTF-8 | 565 | 2.15625 | 2 | [] | no_license | package com.manish0890.contacts.repository;
import com.manish0890.contacts.entity.Contact;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface ContactRepository extends CrudRepository<Contact, Long> {
// Spring data query for finding contact with matching Id
Co... | true |
01b0fe56ec833f4c57db5dc6dbb7fa3f89b8b895 | Java | suomenriistakeskus/oma-riista-web | /src/main/java/fi/riista/feature/harvestpermit/endofhunting/EndOfPermitPeriodReportFeature.java | UTF-8 | 2,597 | 1.84375 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package fi.riista.feature.harvestpermit.endofhunting;
import com.google.common.base.Preconditions;
import fi.riista.feature.RequireEntityService;
import fi.riista.feature.account.user.ActiveUserService;
import fi.riista.feature.account.user.SystemUser;
import fi.riista.feature.harvestpermit.HarvestPermit;
import fi.ri... | true |
ba782307e41a189847796f578690cc469db8f85f | Java | CBDuos/CBar | /app/src/main/java/com/u3xj/collegebar/Registration.java | UTF-8 | 7,432 | 2.015625 | 2 | [] | no_license | package com.u3xj.collegebar;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import... | true |
07b655deecdb327c82772b1c74d7831c4cf6ce7f | Java | super-sponge/small-file-server | /file-to-hbase/src/main/java/com/sponge/srd/flume/SPAsyncHbaseEventSerializer.java | UTF-8 | 4,405 | 2.015625 | 2 | [] | no_license | package com.sponge.srd.flume;
import com.google.common.base.Charsets;
import com.sponge.srd.utils.HbaseUtils;
import org.apache.flume.Context;
import org.apache.flume.Event;
import org.apache.flume.FlumeException;
import org.apache.flume.conf.ComponentConfiguration;
import org.apache.flume.sink.hbase.AsyncHbaseEventSe... | true |
561034886ce796ad7d55c5f9ec14889dd339d82f | Java | rcauth-eu/ncsa-security-all-fork | /ncsa-security-all/ncsa-security-delegation/ncsa-security-oauth-2.0/src/main/java/edu/uiuc/ncsa/security/oauth_2_0/client/RTServer2.java | UTF-8 | 3,384 | 1.96875 | 2 | [] | no_license | package edu.uiuc.ncsa.security.oauth_2_0.client;
import edu.uiuc.ncsa.security.core.exceptions.GeneralException;
import edu.uiuc.ncsa.security.delegation.client.request.RTRequest;
import edu.uiuc.ncsa.security.delegation.client.request.RTResponse;
import edu.uiuc.ncsa.security.delegation.client.server.RTServer;
import... | true |
9e3cf6d9de5fe29a5cec878be2b55cb4009996a1 | Java | YutongZh/thread | /src/com/yt/base/container/Item.java | UTF-8 | 1,181 | 3.015625 | 3 | [] | no_license | package com.yt.base.container;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
public class Item<T> implements Delayed {
//超时的时刻
private long activeTime;
private T data;
//activeTime是个过期时长
public Item(long activeTime, T data) {
this.activeTime = TimeUnit.NANOSE... | true |
d74c0279be58483026fc0e69f9d24f4128b30784 | Java | STAMP-project/dspot-experiments | /benchmark/training/libcore/java/util/zip/OldZipFileTest.java | UTF-8 | 4,112 | 2.421875 | 2 | [] | no_license | /**
* 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 |
d5c2812be02f6f9fc7b03f16712d17a14feedebe | Java | cegeka/bibliothouris-2015 | /src/test/java/fixture/MemberTestFixture.java | UTF-8 | 3,407 | 2.265625 | 2 | [
"MIT"
] | permissive | package fixture;
import cgk.bibliothouris.learning.service.entity.Member;
import net.sf.cglib.core.Local;
import org.apache.commons.lang3.RandomStringUtils;
import java.time.LocalDate;
import java.util.UUID;
public class MemberTestFixture {
public static Member createMember() {
LocalDate date = LocalDat... | true |
384699f0d06eb18e8eb6dd692796dd8897c3fb75 | Java | yeodongbin/javasource | /collection/src/map/HashTableExample.java | UHC | 693 | 3.375 | 3 | [] | no_license | package map;
import java.util.*;
public class HashTableExample {
public static void main(String[] args) {
Map<String, String> map = new Hashtable<String, String>();
map.put("dongbin", "12345");
Scanner sc = new Scanner(System.in);
System.out.println("id: ");
String id =sc.nextLine(... | true |
173c885b06fb208fcf0022671879d0e12c9b790c | Java | MelissaLok/Cluedo_A2 | /Cluedo_Assignment/src/CluedoMain/CleudoGame.java | UTF-8 | 24,241 | 2.953125 | 3 | [] | no_license | package CluedoMain;
import Exceptions.*;
import GUI.GUI;
import GameInterior.Tiles.Corridor;
import GameInterior.Tiles.RoomTile;
import GameInterior.Tiles.Tile;
import GameInterior.*;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.... | true |
214d2b4224b55ef660d2f3709238cf968f2f4e4a | Java | pmhoward96/ProgrammingChallenges | /Programming Challenges/CH1/src/id10137.java | UTF-8 | 1,287 | 3.484375 | 3 | [] | no_license | import java.io.IOException;
import java.math.BigDecimal;
import java.util.Scanner;
class Main{
public static void main(String[] args) throws IOException {
Main m = new Main();
m.begin();
}
void begin() {
//Getting Inputs
Scanner in = new Scanner(System.in);
int n = ... | true |
0bb11acac9a716bf096f1ddda3221223c76257f7 | Java | lvtuan3689/easyjutils | /easycommonsio/src/easy/commons/io/EasyFile.java | UTF-8 | 28,390 | 2.21875 | 2 | [] | no_license | package easy.commons.io;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.Inet4A... | true |
349090cb4be1f49740e4a71f29cc3b4b8a7800f0 | Java | zouajun/demo | /bzshop/frontend_portal/src/main/java/cn/zouajun/bzshop/frontend/portal/service/impl/ItemServiceImpl.java | UTF-8 | 3,135 | 2.046875 | 2 | [] | no_license | package cn.zouajun.bzshop.frontend.portal.service.impl;
import cn.zouajun.bzshop.frontend.portal.feign.CommonItemFeignClient;
import cn.zouajun.bzshop.frontend.portal.feign.CommonRedisFeignClient;
import cn.zouajun.bzshop.frontend.portal.service.ItemService;
import cn.zouajun.bzshop.pojo.TbItem;
import cn.zouajun.bzsh... | true |
e50764fda35769a77dd3cab1f886828a197d2c52 | Java | 01662024622/spreadsheets-crawler-facebook-insight | /src/main/java/com/google/spreadsheet/facebook/model/Metrics.java | UTF-8 | 3,151 | 1.734375 | 2 | [] | no_license | package com.google.spreadsheet.facebook.model;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
@Table(name="metrics")
public class Metrics {
@Id
private Long id;
private String link;
// @Column(columnDefinition ="TEXT")
// private String content;
private Integer created_at;
... | true |
493856fefabff69dc83349ac01088692457afd0b | Java | mizan-cs/Hackerrank | /Java code/src/minimum_absolute_difference_in_an_array.java | UTF-8 | 916 | 3.234375 | 3 | [] | no_license | import java.util.Scanner;
public class minimum_absolute_difference_in_an_array {
@SuppressWarnings({ "unused", "resource" })
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] arr = new int[n];
int[] arr2 = new int[n];
for(int i=0;i<n;i++){
a... | true |
abb8d0b3a9781b8653544cd1a54b381fcd77feeb | Java | Watson-ljf/zookeeper-config | /src/main/java/com/yiding/zookeeper/ZKConfigInitializer.java | UTF-8 | 4,813 | 2.4375 | 2 | [] | no_license | package com.yiding.zookeeper;
import com.google.common.base.Throwables;
import com.google.common.collect.Maps;
import com.yiding.zookeeper.domain.BaseConfiguration;
import com.yiding.zookeeper.domain.ConfigNode;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.Chi... | true |
d7ce66c5f86209c8d7558581b065f3ce41672499 | Java | linkedpipes/etl | /executor/src/main/java/com/linkedpipes/etl/executor/pipeline/RequirementProcessor.java | UTF-8 | 2,975 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.linkedpipes.etl.executor.pipeline;
import com.linkedpipes.etl.executor.api.v1.LpException;
import com.linkedpipes.etl.executor.api.v1.vocabulary.LP_EXEC;
import com.linkedpipes.etl.executor.api.v1.vocabulary.LP_PIPELINE;
import com.linkedpipes.etl.executor.execution.ResourceManager;
import com.linkedpipes.... | true |
613c2e86a1af0d4a128b3351b90f5787f8b01d52 | Java | echoOfYourVoice/Java_old | /TestThreads/src/testthreads1/MyPanel.java | UTF-8 | 1,223 | 3.078125 | 3 | [] | no_license | package testthreads1;
import javax.swing.*;
public class MyPanel extends JPanel{
Thread thread;
Boolean isActive;
public MyPanel() {
super();
JProgressBar progressBar = new JProgressBar();
progressBar.setStringPainted(true);
progressBar.setMinimum(0);
progressBar.s... | true |
00462bfbb76a1cf1f9ef4294f2c58eb570c16645 | Java | chenyong88/learning-java | /lambda-learning/src/main/java/com/cy/lambda/learning/CreateStreamDemo.java | UTF-8 | 1,469 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | package com.cy.lambda.learning;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import java.util.stream.Stream;
/**
* cy
*
*/
public class CreateStreamDemo {
public static void main(String[] a... | true |
c8b8a74d79634702d24b55f25a2aa88d9d9fc03d | Java | chelles/bulk-fcrepo-import | /bfit-persistence/src/main/java/edu/yale/library/ladybird/persistence/dao/ImportSourceDAO.java | UTF-8 | 235 | 1.578125 | 2 | [] | no_license | package edu.yale.library.ladybird.persistence.dao;
import edu.yale.library.ladybird.entity.ImportSource;
/**
* @author Osman Din {@literal <osman.din.yale@gmail.com>}
*/
public interface ImportSourceDAO extends GenericDAO<ImportSource, Integer> {
}
| true |
b339e58e207c20f41f7ee1ceaa17d47654daedc2 | Java | pluto9527/juc | /src/main/java/com/juc/condition/TestCondition.java | UTF-8 | 2,967 | 3.953125 | 4 | [] | no_license | package com.juc.condition;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 编写一个程序,开启3个线程,这三个线程的ID分别为A、B、C,每个线程将自己的ID在屏幕上打印10遍,要求输出的结果必须按顺序显示。
* 如:ABCABCABC ...依次递归
*/
public class TestCondition {
public static void m... | true |
54987cf95893a414dfcb20f0838ae287d120615d | Java | Kartikvk1996/SE | /java/dscore/src/se/dscore/APIAccessException.java | UTF-8 | 150 | 1.757813 | 2 | [] | no_license | package se.dscore;
public class APIAccessException extends Exception {
public APIAccessException(String msg) {
super(msg);
}
}
| true |
d5cb6efc3ab5e2689d044d1cf08a59aef28b8afa | Java | Biouche/Prosco | /ProscoFX/src/Prosco/Class/ClassBDClasses.java | UTF-8 | 1,368 | 2.546875 | 3 | [] | no_license | package Prosco.Class;
import java.sql.*;
import java.util.*;
public class ClassBDClasses {
int m_idClasses;
int m_ECOLES_idEcole;
int m_nbCreches;
int m_nbMaternelles;
int m_nbColleges;
int m_nbLycee;
public ClassBDClasses(int ECOLES_idEcole) {
this.m_ECOLES_idEcole = ECOLE... | true |
cab5948e04a7809f5f23b502c2628078f79192a8 | Java | Surfboy678/Janusz-Brodacki-kodilla-java | /kodilla-testing/src/test/java/com/kodilla/testing/collection/CollectionTestSuite1.java | UTF-8 | 1,499 | 3.171875 | 3 | [] | no_license | package com.kodilla.testing.collection;
import com.kodilla.testing.collection.OddNumbersExterminator1;
import org.junit.*;
import java.util.ArrayList;
import java.util.Random;
public class CollectionTestSuite1 {
@Before
public void showBefore() {
System.out.println("Test case begin...");
}
@A... | true |
1f59a30f87a6913c66707f8d4ee66d063209e8e7 | Java | WF1683497569/BigData | /zl/Idea/src/main/java/com/mr/CleanReducer.java | UTF-8 | 568 | 2.359375 | 2 | [] | no_license | package com.mr;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import java.io.IOException;
/**
* Created by 16834 on 2019/10/26.
*/
public class CleanReducer extends Reducer<NullWritable, Text, NullWritable, Text> {
@Override
protecte... | true |
5f591275cab710a8ef410deb832f0f5305a4cbb7 | Java | madhumitha998/Estimate-Game | /src/estimate/player/BidZeroNextCardComparator.java | UTF-8 | 2,164 | 3.484375 | 3 | [] | no_license | package estimate.player;
import cards.Card;
import cards.Suit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
/**
* The BidNegNextCardComparator class compares cards when the computer's bid is negative
* and when the computer is not the first player in the tr... | true |
0ff1a3c308476de3881e773171ad81565914d2e2 | Java | maria-ma/CPSC449-Parser | /methods/FatalErrors.java | UTF-8 | 2,441 | 3.375 | 3 | [] | no_license | package methods;
class FatalErrors {
/**
* Prints a fatal error message indicating that the user's inputted
* single qualifier is not recognized. Exits with the exit code -1.
* @param letter the unrecognized character in the inputted qualifier
* @param qualifier a user-inputted string qualifier from the c... | true |
8574f5c3b9cf5ccf128a3fdd1a392a7654b143e9 | Java | spaezsuarez/Problema-Cambio-Monedas | /src/gui/Menu.java | UTF-8 | 7,118 | 2.8125 | 3 | [
"MIT"
] | permissive | package gui;
//Elementos Graficos
import javax.swing.JFrame;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.JOptionPane;
import javax.swing.SwingConstants;
import ja... | true |
d95eaa7da91379f6bd5ef75543649df88697f735 | Java | hardforevercc/digitCurrencyTrade | /okexTrande/src/main/java/com/okex/mybatis/model/OkexGridPlanExample.java | UTF-8 | 45,421 | 2.15625 | 2 | [] | no_license | package com.okex.mybatis.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OkexGridPlanExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
/**
*
*/
public ... | true |
b0e898d5c1ff569490ccd7b4daf7c1b406ff5d86 | Java | himanshusoni30/JavaProjects | /DataStructuresAndAlgorithms/src/recursions/Fibonacci.java | UTF-8 | 558 | 3.828125 | 4 | [] | no_license | package recursions;
public class Fibonacci
{
public static int fib(int n)
{
if(n<=1)
return n;
return fib(n-1)+fib(n-2);
}
public static void main (String arg[])
{
int n=9;
System.out.println("Evaluated through recursion: "+fib(n));
int[] f = n... | true |
dfa1b1532a07cc35dcbe0e773414781c392b73fc | Java | AndreNwaDEV/NFE_NFCE_WEB | /src/main/java/br/com/nfetools/model/CadastroCatagorias.java | UTF-8 | 837 | 1.976563 | 2 | [] | no_license | package br.com.nfetools.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok... | true |
2753ebc8631214bc0380c9e996baf2b07f28ae3e | Java | upgradingdave/upgradingdave-parent | /jaxb-tools/src/main/java/com/upgradingdave/jaxb/Wrapper.java | UTF-8 | 554 | 2.171875 | 2 | [] | no_license | package com.upgradingdave.jaxb;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.bind.annotation.XmlAnyElement;
import java.util.List;
public class Wrapper<T> {
final static Logger log = LoggerFactory.getLogger(Wrapper.class);
private List<T> items;
public Wrapper() {}
pu... | true |
d72b42299559bf98cb46e3dcfb26d85e5fc994b4 | Java | QwertyLin/QProject | /src/q/project/openapi/Oauth2A.java | UTF-8 | 7,123 | 2 | 2 | [] | no_license | package q.project.openapi;
/*
import java.io.IOException;
import java.util.Date;
import q.project.QProjectItem;
import q.util.QUtil;
import q.util.a.view.QOauth2;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Han... | true |
b316bf177e628ad74dcdb584ab4f635b84b78f9b | Java | JavierPartidaMolina/GameShope | /proyectoJavier/src/main/java/com/proyectoSegunda/Javier/proyectoJavier/Service/Impl/CategoriasServiceImpl.java | UTF-8 | 2,090 | 2.421875 | 2 | [] | no_license | package com.proyectoSegunda.Javier.proyectoJavier.Service.Impl;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
i... | true |
5db948a8dbaf5070de29cfe270debe9bbacf3ff4 | Java | AyozeM/appusersSpringBootApi | /src/main/java/com/cedei/plexus/appusers/controllers/ControllerInterface.java | UTF-8 | 1,471 | 2.4375 | 2 | [] | no_license | package com.cedei.plexus.appusers.controllers;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
/**
* ControllerInterface
*
* Interfaz para controladores
*
* @author Ayoze Martin Hdez
* @version 0.0.1
*/
public interface ControllerInterface {
/**
* serv... | true |
f4bc4b5d1a2714704e9adea4f23c232dbe915026 | Java | ambarishk97/springmvc-userlogin | /src/main/java/jbr/springmvc/dao/UserDaoImpl.java | UTF-8 | 3,927 | 2.4375 | 2 | [] | no_license | package jbr.springmvc.dao;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.sql.DataSource;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import... | true |
ee1e0f96cb33764441d5618dcfa0c05cef5376c5 | Java | hitchh1k3r/LudumDare27 | /src/com/hitchh1k3rsguide/ld27/utilities/Vec2DAngle.java | UTF-8 | 2,368 | 3.265625 | 3 | [] | no_license | package com.hitchh1k3rsguide.ld27.utilities;
public class Vec2DAngle implements I2DVector
{
private double angle, magnitude;
public Vec2DAngle(double angle, double magnitude)
{
this.angle = angle;
this.magnitude = magnitude;
}
public Vec2DAngle(I2DVector copyMe)
{
this.angle = copyMe.getA... | true |
fbe73fce72cfb10b1574d79fdebafa06cda4478b | Java | gbarzola/AppSafeCityv3 | /app/src/main/java/app/upc/com/appsafecity/activities/RedesActivity.java | UTF-8 | 2,623 | 2.078125 | 2 | [] | no_license | package app.upc.com.appsafecity.activities;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageVi... | true |
1f1f71a883839006914bbdef7671541ac3fbd40e | Java | tomitribe/graalvm-microprofile | /microservices/web-app/src/main/java/org/superbiz/moviefun/utils/CipherProduces.java | UTF-8 | 1,749 | 1.796875 | 2 | [
"Apache-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 ... | true |
4cf54ca760ea39d5ff0d96405684297717f3f32c | Java | niclash/chronos | /core/src/main/java/org/qi4j/chronos/domain/model/project/role/assembly/ProjectRoleRepositoryService.java | UTF-8 | 2,217 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2008 Edward Yakop.
*
* 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 w... | true |
59d4ba52f9d8ab54e7418a7b17e8da6bcc5e963c | Java | 1969719/Spring_tx | /src/main/java/org/lanqiao/tx/pojo/Customer.java | UTF-8 | 157 | 1.601563 | 2 | [] | no_license | package org.lanqiao.tx.pojo;
import lombok.Data;
@Data
public class Customer {
private int id;
private String account;
private double money;
}
| true |
a17bf640622e390d760076b8999867a814bd4480 | Java | venkks/tbuzz | /src/main/java/com/sudasuda/app/domain/FollowDomain.java | UTF-8 | 841 | 2.09375 | 2 | [] | no_license | package com.sudasuda.app.domain;
import java.util.Date;
public class FollowDomain {
private int id;
private String domain;
private int userId;
private Date dateFollowed;
private int enabled;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Stri... | true |
e9395bd24a2163326c8e61fa32cb713be8f011c7 | Java | lifuyuan123/User | /app/src/main/java/com/example/mayikang/wowallet/ui/act/Register2Activity.java | UTF-8 | 6,399 | 1.773438 | 2 | [] | no_license | package com.example.mayikang.wowallet.ui.act;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Toast;
import com.alib... | true |
d92638a553dacf6e4f638ec45cb85617d3761cb6 | Java | slipperyseal/atomicobjects | /atomicobjects-fuse/src/main/java/net/catchpole/fuse/fuses/ConstructorFuse.java | UTF-8 | 1,753 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package net.catchpole.fuse.fuses;
// Copyright 2014 catchpole.net
//
// 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
//
// U... | true |
ca3f8ac29819c989b070573f31731d6abebd97b8 | Java | btpltech/TravelooreMobile | /Traveloore/src/com/btpl/database/Company_Table.java | UTF-8 | 1,510 | 1.875 | 2 | [] | no_license | package com.btpl.database;
import android.provider.BaseColumns;
public class Company_Table {
public static final String company_id = BaseColumns._ID;
public static final String company = "company";
public static final String industry = "industry";
public static final String owner = "owner";
public stati... | true |
f793a02dab362e3fdb6dfe643562f264485ef71c | Java | jokersingh/open-feign-demo | /src/main/java/com/barun/openfeigndemo/config/FeignRetryer.java | UTF-8 | 1,193 | 2.578125 | 3 | [] | no_license | package com.barun.openfeigndemo.config;
import feign.RetryableException;
import feign.Retryer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.TimeUnit;
@Configuration
@Slf4j
public class Fe... | true |
7ca3f3305657a7d27400f79fe408ed96d2fa77ab | Java | ludwig-espinosa/losjavaleros | /Proyecto_DreamGifts/src/Modelo/ConsultaUsuarios.java | UTF-8 | 2,925 | 2.875 | 3 | [] | no_license | package Modelo;
import static Modelo.Conexion.conn;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ConsultaUsuarios {
public boolean registrar(Usuario user){
PreparedStatement ps = null;
String sql = "INSERT INTO Usuarios (RUT, Nombre, Est... | true |
60b9988938966f9e94947f4bfa2a7009bac65399 | Java | jawilcock/autotesting | /src/pages/MobileATHome.java | UTF-8 | 378 | 1.734375 | 2 | [] | no_license | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class MobileATHome {
WebDriver driver;
@FindBy(css = ".logo-autotrader > span:nth-child(2)")
static WebElement mobileLogo;
@FindBy(xpath = "//*[@id=pageFooter]/section[1]/fo... | true |
3694bd05d8245bdbd63402934665a3017fce2b5f | Java | dmytro-bilokha/xmbt | /xmbt-main/src/main/java/com/dmytrobilokha/xmbt/boot/InitializationException.java | UTF-8 | 285 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package com.dmytrobilokha.xmbt.boot;
public class InitializationException extends Exception {
public InitializationException(String message) {
super(message);
}
public InitializationException(String message, Exception ex) {
super(message, ex);
}
}
| true |
f5c34daa683fb5c58879c969ff55104945c83e21 | Java | ansar010/FellowShipPrograms | /Fellowship/src/com/fellowship/funtional/CouponRunner.java | UTF-8 | 1,057 | 3.375 | 3 | [] | no_license | /****************************************************************************************
* purpose : Given N distinct Coupon Numbers, how many random numbers do you
* need to generate distinct coupon number? This program simulates this random
* process.
*
*@author Ansar
*@version 1.2
*@since 18/12... | true |
335ee02667a0e22df31e065811d54951bf7136c4 | Java | glzoltan/labor3 | /app/src/main/java/com/example/labor3/Main3Activity.java | UTF-8 | 964 | 2.203125 | 2 | [] | no_license | package com.example.labor3;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import java.util.List;
public class Main3Activ... | true |
0d8612c51ec0d01dc036d2e1138cb277cca264d2 | Java | riozenc/cws | /src/main/java/cws/webapp/pnt/service/IVerifyPointService.java | UTF-8 | 622 | 1.75 | 2 | [] | no_license | /**
* @Project:cws
* @Title:VerifyPointService.java
* @Author:Riozenc
* @Datetime:2017年4月4日 下午9:50:43
*
*/
package cws.webapp.pnt.service;
import java.util.List;
import com.riozenc.quicktool.springmvc.webapp.service.BaseService;
import cws.webapp.pnt.domain.VerifyPointDomain;
import cws.webapp.r... | true |
c99b139c529c5300acdeb1cfa9e24133abb44f1a | Java | syyspe/tikape-ht2 | /src/main/java/ht2/domain/Vastaus.java | UTF-8 | 1,078 | 2.265625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ht2.domain;
/**
*
* @author syyspe
*/
public class Vastaus extends AbstractHt2Object {
private Integer id;
private ... | true |
10c4ae58d1c96f80a24e5e11e6a20f200e116a75 | Java | yikezhan/ywqDemo | /demo/src/main/java/com/yuwuquan/demo/designpatterns/usualstrategy/TestStrategy.java | UTF-8 | 370 | 2.96875 | 3 | [] | no_license | package com.yuwuquan.demo.designpatterns.usualstrategy;
/**
* 普通的策略模式。根据类来选择不同的策略来执行。
*/
public class TestStrategy {
public static void main(String[] args) {
StrategyContext strategyContext = new StrategyContext(new DiscountStrategyTwo());
System.out.println(strategyContext.doHandle(120.0));
... | true |
89d70939cef61b7a01d82e16d1f59a396609a66e | Java | alexandre-bouille/TD2-fabrique-domotique-master | /src/main/java/fr/univamu/iut/exo2/Factory.java | UTF-8 | 638 | 2.453125 | 2 | [] | no_license | package fr.univamu.iut.exo2;
import fr.univamu.iut.exo1.Cafetiere;
import fr.univamu.iut.exo1.Connectable;
import fr.univamu.iut.exo1.Radio;
public class Factory extends ConnectableFactory {
public void equiper (Connectable c) {
c.equiper("LA POMME");
}
public Connectable creat(String s) throws ... | true |
5de219336dcab7dbda6ecb0e91f51dc377771545 | Java | 1322877721/litho | /litho-it/src/test/java/com/facebook/litho/NestedComponentStateUpdatesWithReconciliationTest.java | UTF-8 | 9,730 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | true |
af053636d6e9ee1533b1b22202793a6e6a5795cb | Java | franslundberg/binson-java | /src-test/org/binson/ClassNameLengthTest.java | UTF-8 | 1,180 | 2.265625 | 2 | [
"MIT"
] | permissive | package org.binson;
import org.binson.lowlevel.Constants;
import org.junit.Test;
import static org.junit.Assert.*;
public class ClassNameLengthTest {
@Test
public void booleanClass() {
assertEquals(Constants.BOOLEAN_CLASSNAME_LENGTH, Boolean.class.getName().length());
}
@Test
pub... | true |
d4c2e802893e62347e6201309b8010ad49d0610d | Java | bobbyblaze/BouncyCave | /app/src/main/java/com/e/bouncy/Background.java | UTF-8 | 2,586 | 2.578125 | 3 | [] | no_license | package com.e.bouncy;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
public class Background {
Bitmap bitmap, bitmap2, bitmap3, bitmapCopy, bitmapCopy2, bitmapCopy3, copy, copy2, copy3;
int width;
int height;
boolean copyFirst;
long speed;
... | true |
942c717c65811e6b33fddcccde7d5551f8200509 | Java | sbsteacher/202103Java | /chap01/src/sec06/ch04/WhileMission2.java | UTF-8 | 584 | 3.625 | 4 | [] | no_license | package sec06.ch04;
public class WhileMission2 {
public static void main(String[] args) {
int sum = 0;
//0~10사이 랜덤값이 나오도록 해주시구요.
int val = (int)(Math.random() * 11);
System.out.println("val : " + val);
while(val != 0) {
sum = sum + val;
val = (int)(Math.random() * 11);
Syste... | true |
cbc7e6ee5ba72c1410a34268c8c0921a8917d51c | Java | DanutaZabinska/Sorting | /src/main/java/Sorting/Sorting/Range.java | UTF-8 | 346 | 3.0625 | 3 | [
"MIT"
] | permissive | package Sorting.Sorting;
public class Range {
private final long lowerBound;
private final long upperBound;
public Range (long lowerBound, long upperBound){
this.lowerBound= lowerBound;
this.upperBound=upperBound;
}
public boolean isInRange (long number){
return number>= lowerBound && nu... | true |
53c744bac24c7fd7bc4dbd2a24843e3189fb3ec6 | Java | milicasiriski/pharmacy-backend | /src/main/java/rs/ac/uns/ftn/isa/pharmacy/demo/controller/OrderController.java | UTF-8 | 4,516 | 2.296875 | 2 | [] | no_license | package rs.ac.uns.ftn.isa.pharmacy.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import... | true |
30b44d2dd61b52096d6536e6d7a14fd01d835c49 | Java | jxl-taylor/rpa-master | /ui/src/com/alee/laf/table/TableHeaderCellArea.java | UTF-8 | 2,983 | 2.40625 | 2 | [] | no_license | /*
* This file is part of WebLookAndFeel library.
*
* WebLookAndFeel library 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 later version.
*
... | true |
3937c5e211e00719f2b05b23d608f92a1a6fc2fa | Java | zhangyueGithub/MyAndroidSample | /app/src/main/java/com/example/seatrend/myapplication/JavaTest/AndroidObject.java | UTF-8 | 317 | 1.828125 | 2 | [] | no_license | package com.example.seatrend.myapplication.JavaTest;
import android.util.Log;
import android.webkit.JavascriptInterface;
/**
* Created by seatrend on 2018/7/17.
*/
public class AndroidObject extends Object {
@JavascriptInterface
public void setValue(String name){
Log.i("TAG",name);
}
}
| true |
87e938ccd2658a2588847a4e6da32d58d8ba62d2 | Java | josecordero2016/DenunciasQVD | /app/src/main/java/com/foodi/Adaptadores/adt_populares.java | UTF-8 | 2,000 | 2.484375 | 2 | [] | no_license | package com.foodi.Adaptadores;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.f... | true |
3947da87a0d06185dbd9984731f9453b41596eac | Java | aravinthraj98/DataStructures_And_Algo | /Binarytree/BottomView.java | UTF-8 | 1,320 | 3.09375 | 3 | [] | no_license | package Binarytree;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.TreeMap;
public class BottomView {
static void BottomView(BinaryNode root) {
Map<Integer,BinaryNode> h = new TreeMap<>();
Queue<TreeObject> q = new LinkedList<>();
... | true |
bae4311ed7ec209f5c254b79bbe8d0c414f4b363 | Java | zhangjinju72900/online_learning | /src/main/java/com/tedu/plugin/product/InsertProductInformation.java | UTF-8 | 4,540 | 1.90625 | 2 | [] | no_license | package com.tedu.plugin.product;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import com.tedu.base.common.error.ErrorCode;
import com.tedu.base.common.error.ValidException;
import com.tedu.base.common.utils.Log... | true |
7fe80eff01400c09a25a10ed1440b1d3c5ff6de3 | Java | dragonetail/gtalkrobot | /tags/GTRobot_BeforeAddHibernateSpring/gtrobot/src/com/gtrobot/dao/DaoFactory.java | UTF-8 | 1,168 | 2.453125 | 2 | [] | no_license | package com.gtrobot.dao;
import net.sf.ehcache.Cache;
import net.sf.ehcache.Element;
import com.gtrobot.context.CacheContext;
import com.gtrobot.dao.common.UserEntryDao;
import com.gtrobot.dao.word.JPWordEntryDao;
import com.gtrobot.dao.word.WordEntryDao;
public class DaoFactory {
public static UserEntryDao getUser... | true |
5ee0add0b0c39cb693517bea2135e195e468c401 | Java | dnegi3000/Learn | /src/TestPath.java | UTF-8 | 704 | 3.28125 | 3 | [] | no_license | /**
*
*/
/**
* @author dnegi3
*
*/
public class TestPath {
public boolean distanceTest(){
Point p1 = new Point(0, 0);
Point p2 = new Point(10, 10);
Point p3 = new Point(5, 5);
Path path = new Path();
double d = path.distance(p2, p1);
double d2 = path.distance(p3, p1);
... | true |
22d2797b7eeba8a42c9e183575b57a923f9307e5 | Java | viramallapradeep/Fitness | /src/main/java/com/honeywell/Fitnessapp/jpa/UserFitnessDetailsRepo.java | UTF-8 | 327 | 1.632813 | 2 | [] | no_license | package com.honeywell.Fitnessapp.jpa;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import com.honeywell.Fitnessapp.entity.UserFitnessDetails;
@Transactional
public interface UserFitnessDetailsRepo extends JpaRepository<UserFitnessDetails, String> {... | true |
7d0d27223907c5b9faf1fa3475648eee74e142d1 | Java | wuli2496/OJ | /LeetCode/Search a 2D Matrix II/Search a 2D Matrix II(递归).java | UTF-8 | 1,525 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | /**
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted in ascending from left to right.
Integers in each column are sorted in ascending from top to bottom.
Example:
Consider the following matrix:
[
[1, 4, 7, 11, 15... | true |
c592d62e0fd335088a841aba8fd0be1a1413ee41 | Java | thechad87/myclockin | /src/test/java/com/chadmarthinussen/factory/TimeFactoryTest.java | UTF-8 | 692 | 2.1875 | 2 | [] | no_license | package com.chadmarthinussen.factory;
import com.chadmarthinussen.domain.UserlType.Contractor;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by ChadMarthinussen2 on 2019/04/29.
*/
public class TimeFactoryTest {
@Test
public void getTime() throws Exception {
boolean isContractor = t... | true |
8042e162d4746bd7dc692635f50181c410c2ac86 | Java | WinkPascal/Lingo-Trainer-API | /src/main/java/nl/hu/lingo/Import/Controller/WordController.java | UTF-8 | 918 | 2.359375 | 2 | [] | no_license | package nl.hu.lingo.Import.Controller;
import nl.hu.lingo.Import.Domain.WordFilter;
import nl.hu.lingo.Import.Domain.WordFilterLingo;
import nl.hu.lingo.Import.Persistence.FileReadDao;
import nl.hu.lingo.Import.Persistence.WordsDao;
import java.util.List;
public class WordController {
private WordsDao wordsDao;
... | true |
5fb21a7bdb9feff576e82b50bf374f943227a9aa | Java | OjAntoni/spring-mvc-calculator | /src/main/java/org/example/entity/Operation.java | UTF-8 | 860 | 2.296875 | 2 | [] | no_license | package org.example.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;
@Data
@NoArgsConstructor
@Entity
public class Operation {
@Id
@GeneratedValue(strategy = GenerationType.ID... | true |
ecc6ae9a72f8f3eb86551baf85483d75d7fc8f5d | Java | FRCTeamRobohawk3373/FRC_3373_2013 | /src/edu/wpi/first/wpilibj/templates/ElevatorLevelCheck.java | UTF-8 | 804 | 2.71875 | 3 | [] | no_license | package edu.wpi.first.wpilibj.templates;
//(new Thread(new ElevatorLevelCheck())).start();
import edu.wpi.first.wpilibj.AnalogChannel;
import edu.wpi.first.wpilibj.templates.Elevator;
public class ElevatorLevelCheck implements Runnable{
Elevator elevator = Elevator.getInstance();
public void run()... | true |
08e866c6675dee52fd8fc710add97e1b4c798419 | Java | mebigfatguy/asm-stack | /src/main/java/com/mebigfatguy/asmstack/SignatureUtils.java | UTF-8 | 2,608 | 2.53125 | 3 | [] | no_license | /*
* asm-stack - an asm visitor that tracks the parameter stack
* Copyright 2018-2019 MeBigFatGuy.com
* Copyright 2018-2019 Dave Brosius
*
* 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... | true |
e1364a20d4433609a8c57656121833d683e1ef26 | Java | imsajib02/PasswordManager | /app/src/main/java/com/imsajib02/passwordmanager/Auth.java | UTF-8 | 582 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package com.imsajib02.passwordmanager;
import android.content.Context;
import static com.imsajib02.passwordmanager.Local.*;
import static com.imsajib02.passwordmanager.MainActivity.*;
import static com.imsajib02.passwordmanager.BackupActivity.*;
public class Auth {
public static void GetUserCredentials(Context ... | true |
e06847ba06ba04008fbb9b7af20f60e2ef302fc2 | Java | Akashbangera7/Application_Engineering_Development | /userinterface/AirAmbulance/CheckWeatherReportJPanel.java | UTF-8 | 4,574 | 2.21875 | 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 userinterface.AirAmbulance;
import Business.Enterprise.Enterprise;
import Business.Meterologist.Meterologist;
import ... | true |
71cbca2ed5053b6b99dd8db7e244aba51aa2df50 | Java | PauloFer1/Delorean | /src/test/java/com/pfernand/datastore/manager/DataStoreManagerMapTest.java | UTF-8 | 4,543 | 2.6875 | 3 | [] | no_license | package com.pfernand.datastore.manager;
import org.junit.Before;
import com.pfernand.datastore.identifier.IdentifierDAO;
import com.pfernand.datastore.identifier.IdentifierHashmapImpl;
import com.pfernand.datastore.identifier.Observation;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.fra... | true |
a15e5d35522615e376361e2d7098c1c02d2e5d4f | Java | nschejtman/rino2 | /app/controllers/NewsAPI.java | UTF-8 | 1,630 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package controllers;
import com.avaje.ebean.Ebean;
import models.media.NewsPiece;
import play.mvc.Controller;
import play.data.Form;
import play.libs.Json;
import play.mvc.Result;
import java.util.Collections;
import java.util.List;
public class NewsAPI extends Controller{
public Result post() {
final Fo... | true |
e6e2134bd23d9cd0b3ec097238f57eb31ef80582 | Java | siddhantbenadikar/PlagiarismDetector | /phaseC/Logic/msd/src/test/java/com/team9/msd/test_data/Operator.java | UTF-8 | 485 | 2.96875 | 3 | [] | no_license | package com.team9.msd.test_data;
/**
* This class is for representing ast.Operator
*/
public class Operator {
// value of the operator
private String value;
/**
* Constructor of ast.Operator class
* @param v {String}, value of the operator
*/
public Operator(String v) {this.value = v... | true |
f8615b609a2b03b959ef958f542d03bf8d83e7cb | Java | maloyau/CryptoBook | /src/main/java/com/serhii/cryptobook/project/service/ServiceCrypto.java | UTF-8 | 326 | 2.03125 | 2 | [] | no_license | package com.serhii.cryptobook.project.service;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import java.security.Key;
public interface ServiceCrypto {
byte[] encryptWithCipher(byte[] data, Key key, String alg, int mode) throws BadPaddingException, IllegalBlockSizeExcepti... | true |
c8d983354a6c91a9f0a57c5834ce20358cdb248f | Java | hornm/imagej-pixml | /src/main/java/net/imagej/pixml/service/AnnotationService.java | UTF-8 | 1,393 | 2.296875 | 2 | [] | no_license | package net.imagej.pixml.service;
import org.scijava.service.SciJavaService;
import org.scijava.tool.Tool;
import net.imagej.display.ImageDisplay;
import net.imagej.ui.swing.commands.OverlayManager;
import net.imglib2.roi.labeling.ImgLabeling;
import net.imglib2.roi.labeling.LabelRegions;
/**
* Possible entry point... | true |
5edebb498869a9f6d3caf6b7b348372be90cc881 | Java | narcisof/YADMT | /HostYAMT/src/moduledefault/clustering/som/Pixel.java | UTF-8 | 848 | 2.65625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package moduledefault.clustering.som;
/**
*
* @author Thiago M. Faino
*/
public class Pixel {
int x;
int y;
int rgb;
public Pixel(int x, int y, int rgb) {
this.x = x;
... | true |
48e3bf32a3cdb389b873fd3c143287c9c5eb23f2 | Java | MrPlow442/url-shortener | /url-shortener-domain/src/main/java/hr/mlovrekov/domain/Role.java | UTF-8 | 60 | 1.648438 | 2 | [] | no_license | package hr.mlovrekov.domain;
public enum Role {
USER
}
| true |