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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
aa8837c3e323393ee755945f44bdc18250c476dc | Java | alextremp/polldemo-api | /src/main/java/com/schibsted/onepunch/polldemo/infrastructure/repository/jdbc/TransactionException.java | UTF-8 | 215 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.schibsted.onepunch.polldemo.infrastructure.repository.jdbc;
public class TransactionException extends RuntimeException {
public TransactionException(Throwable cause) {
super(cause);
}
}
| true |
76f414f819022417605ff3f44a538b6f773133a4 | Java | grechka62/YaMblzWeatherApp | /app/src/main/java/me/grechka/yamblz/yamblzweatherapp/presentation/citySearch/CitySearchPresenter.java | UTF-8 | 2,209 | 2.203125 | 2 | [] | no_license | package me.grechka.yamblz.yamblzweatherapp.presentation.citySearch;
import android.support.annotation.NonNull;
import com.arellomobile.mvp.InjectViewState;
import com.arellomobile.mvp.MvpPresenter;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.reactivex.Observable;
import me.grechka.yamblz.ya... | true |
df4b36d97ede984291fba4c77f0598e130e66603 | Java | RebecaNedelcu/CTS2021 | /Seminar7/src/ro/ase/cts/proxy/program/Main.java | UTF-8 | 420 | 2.5625 | 3 | [] | no_license | package ro.ase.cts.proxy.program;
import ro.ase.cts.proxy.clase.Credit;
import ro.ase.cts.proxy.clase.Proxy;
import ro.ase.cts.proxy.clase.TipMoneda;
public class Main {
public static void main(String[] args) {
Credit credit1 = new Credit();
credit1.oferaCredit(TipMoneda.EUR, 100);
Proxy proxy = new Proxy(c... | true |
db2d544abc3cfa31e28881e22045f89c7d3fe2a0 | Java | daoos/rule-engine-1 | /hx-test/src/main/java/hx/com/example/rule/demo/ArgNameClassVisitor.java | UTF-8 | 1,853 | 2.5 | 2 | [] | no_license | package hx.com.example.rule.demo;
import hx.com.example.rule.common.proxy.ObjectCglibProxyBean;
import org.objectweb.asm.*;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.LocalVariableNode;
import org.objectweb.asm.tree.MethodNode;
import java.io.IOException;
import java.lang.reflect.Method;
i... | true |
217e0a1aaa2c399a71cf38eadbd413d60fecee4f | Java | arnabs542/LeetCode_Round2 | /src/Linked_List_Cycle_II_p142_sol1.java | UTF-8 | 2,279 | 4.15625 | 4 | [] | no_license | /*
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Note: Do not modify the linked list.
Follow up:
Can you solve it without using extra space?
*/
/**
* Math + LinkedList problem
*
* The tricky part is to find the way we can get the entry point... | true |
8bd80b08433b9aef220ec10cd3a2e0d1e161cf89 | Java | 5l1v3r1/JavaLearnVulnerability | /vuldemo/src/main/java/vul/util/simplermiserver.java | UTF-8 | 781 | 2.34375 | 2 | [] | no_license | package vul.util;
import com.sun.jndi.rmi.registry.ReferenceWrapper;
import javax.naming.Reference;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
/**
* @ClassName: simplermiserver
* @Description: TODO
* @Author: Summer
* @Date: 2020/7/6 15:41
* @Version: v1.0.0
* @Description:
**... | true |
92cfb30a7eb0ebb11a723758d941e395a8ef207d | Java | JulkaJulka/springConfig | /src/main/java/com/lesson6/avia_dz/service/GenericService.java | UTF-8 | 323 | 2.0625 | 2 | [] | no_license | package com.lesson6.avia_dz.service;
import com.lesson6.avia_dz.BadRequestException;
import java.io.Serializable;
public interface GenericService<T> {
T findOne(Serializable id);
T save(T entity);
T delete(Serializable id) throws BadRequestException;
T update(T entity) throws BadRequestException;... | true |
facfcd249744a6b65af25380e8d3a3e006d66fd9 | Java | byli5/Z_University | /src/com/sugon/calculator/CalConstant.java | UTF-8 | 928 | 2.59375 | 3 | [] | no_license | package com.calculator;
/**
* @author: byLi
* @date: 2020/12/29 11:00
* @description:Defines constant classes for calculators
*
*/
public class CalConstant {
// Define clear and backspace keys
public static final String CLEAR = "清空";
public static final String BACK = "退格";
// Define zero
pub... | true |
13dae6433124989a1e330b209c6177ff88285368 | Java | susmithaThiriveedhi/ecommerce | /eCommerce/src/main/java/com/hcl/ecommerce/service/impl/CartServiceImpl.java | UTF-8 | 2,626 | 2.53125 | 3 | [] | no_license | package com.hcl.ecommerce.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import com.hcl.ecommerc... | true |
8b2748e1a5ef18951652d3724b43754640e0d53e | Java | Fannibals/Java | /NimGame/Nimsys.java | UTF-8 | 13,630 | 3.203125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
/**
* This project is aim to run a game called NIM.
* Nimsys includes the idle part before or after the real gaming part begin.
*/
public class Nimsys {
private static int MAXIMUMPLAYERNUMBER = 100; // assuming there are up to 100 players
private int nu... | true |
e7fa67d349ac5b68a78e39492e0146be962bedc7 | Java | hmcts/send-letter-producer-service | /src/main/java/uk/gov/hmcts/reform/sendletter/controllers/ReportController.java | UTF-8 | 2,037 | 2.0625 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.reform.sendletter.controllers;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
i... | true |
bf5941db3e96f89e01f0d5fd3d3d5ad2f79fdd6f | Java | aps2019project/project-44-1 | /src/models/MatchHistory.java | UTF-8 | 1,012 | 3.125 | 3 | [] | no_license | package models;
public class MatchHistory {
private String opponent;
private boolean hasWon;
private long startDate;
public MatchHistory(String opponent, boolean hasWon) {
this.opponent = opponent;
startDate = System.currentTimeMillis();
this.hasWon = hasWon;
}
private... | true |
096850334b031944a46b220dfea1ab7cda3c329a | Java | chaupal/jp2p | /Workspace/net.jp2p.container/src/net/jp2p/container/validator/ClassValidator.java | UTF-8 | 1,311 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2014 Chaupal.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution, and is available at
*... | true |
9eceef0559a942a45c0bd4755f8eb4e42b62a1c4 | Java | oboehm/gdv.xport | /service/src/main/java/gdv/xport/srv/web/converter/ErrorDetailHttpMessageConverter.java | UTF-8 | 4,173 | 2.34375 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Copyright (c) 2017 by Oliver Boehm
*
* 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 |
61d2e09b61b73a616ffadf2f4a76ea115661dc9c | Java | teamhiena/panda_graf | /src/Main.java | UTF-8 | 600 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | /**
* A grafikus valtozathoz tartozo Main osztaly, mely tartalmazza a main() fuggvenyt.
*/
public class Main {
public static void main(String[] args) {
View view = new View();
Game game = new Game();
GameMap gameMap = new GameMap();
Timer timer = Timer.instance();
timer.setG... | true |
f50b8822e8b3f1d562c005e1eee2ec1c9a573ee6 | Java | WindhoverLabs/ConfigurationRegistry | /src/com/myplugin/rmp/JSONForm.java | UTF-8 | 167 | 1.757813 | 2 | [] | no_license | package com.myplugin.rmp;
/**
*
* Enum class of possible forms of the json objects.
*
* @author vagrant
*
*/
public enum JSONForm {
LOCAL, BASE, COMBINED;
}
| true |
b31295d8eb867f7b66a0f8dbe36ace21054c6727 | Java | marcelohb/coursera | /Programacao-Java-e-Desenvolvimento-agil/Orientacao-a-Objetos-com-Java/src/main/semana01/Principal.java | UTF-8 | 303 | 2.5625 | 3 | [] | no_license | package main.semana01;
public class Principal {
public static void main(String args[]) {
Paciente p1 = new Paciente(86.500, 1.8);
Paciente p2 = new Paciente(54.980, 1.56);
Paciente p3 = new Paciente(112.0, 1.71);
p1.imprimir();
p2.imprimir();
p3.imprimir();
}
}
| true |
359ce9b3fe1f935fcf3e253e0712dfa35091a0fa | Java | dev-coding-tool/PC-Manager | /Project/src/controller/MemberDAO.java | UHC | 7,719 | 2.734375 | 3 | [] | no_license | package controller;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import model.MemberVO;
public class MemberDAO {
// ȸ ߰
public static int getMemberAdd(MemberVO avo) throws Exception {
String sql = "insert into... | true |
5b20319c2c2f28ef507037bfcd203f875ff0d508 | Java | ahmdkhled/cpu_z | /app/src/main/java/com/ahmedkhaled/cpuz/MainActivity.java | UTF-8 | 1,186 | 2 | 2 | [] | no_license | package com.ahmedkhaled.cpuz;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import com.ahmedkhaled.cpuz.Data.Battery;
import com.ahmedkhaled.cpuz.pager.MyPag... | true |
1f256ccd18f198f371c7eeb5133d5b13285c122f | Java | marnyansky/trello_qa_automation | /src/test/java/ru/stqa/selenium/util/DataProviders.java | UTF-8 | 3,891 | 2.890625 | 3 | [] | no_license | package ru.stqa.selenium.util;
import org.testng.annotations.DataProvider;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class DataProviders {
@DataProvide... | true |
b29ac9910fc0ac877c6717a7db305d3df6590ddb | Java | sigray/NFC_Play | /app/src/main/java/com/example/stucollyn/nfc_play/trove/prototype1UI/CloudStoryGallery.java | UTF-8 | 20,641 | 1.804688 | 2 | [] | no_license | package com.example.stucollyn.nfc_play.trove.prototype1UI;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import androi... | true |
235235dc2e95b15a366a5a9151c3a64b8072d7fe | Java | Ozlemyildirim/Rehber | /src/main/java/com/vektorel/rehber/db/entity/Kullanici.java | UTF-8 | 910 | 2.1875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.vektorel.rehber.db.entity;
/**
*
* @author eğitmen
*/
public class Kullanici {
private Long id;
private String username;
private String password;
private Long kisiId;
... | true |
5fe61ba59b436eee4b4216a8736ef20cc2faf955 | Java | aceip/Librtmp | /app/src/main/java/com/codyy/librtmp/MediaEncoder.java | UTF-8 | 16,956 | 1.734375 | 2 | [] | no_license | package com.codyy.librtmp;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.media.MediaFormat;
import android.media.MediaRecorder;
import android.os.Build;
import android.text.Te... | true |
7d4718059eb83b8c17a7628e8099425dee655722 | Java | persistLong/ClothStore | /app/src/main/java/com/ioter/clothesstrore/wdiget/APagingViewPager.java | UTF-8 | 844 | 2.234375 | 2 | [] | no_license | package com.ioter.clothesstrore.wdiget;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
/**
* 重写了viewpager,主要增加了viewpager是否可以左右滑动的开关
*
*
*/
public class APagingViewPager extends ViewPager
{
private boolean enabled;
pu... | true |
7d8382c9efcffa38de637993aae29dea9e5b0b9d | Java | TheBillCode/Slangman | /src/mvc/hangman/Main/main.java | UTF-8 | 1,037 | 2.59375 | 3 | [] | no_license | package mvc.hangman.Main;
import javax.swing.*;
import java.awt.*;
import mvc.hangman.Controller.Controller;
import mvc.hangman.Model.Model;
import mvc.hangman.View.View;
public class main {
static {
try {//if using mac OS
System.setProperty("apple.laf.useScreenMenuBar", "true");
... | true |
04848aa4b434a0821827f35d769d3b4ab92af66f | Java | qw870602/SpringCloudDemo | /zuul/src/main/java/com/lovnx/filter/PreFilter.java | UTF-8 | 4,446 | 2.34375 | 2 | [] | no_license | package com.lovnx.filter;
import com.google.gson.Gson;
import com.lovnx.pojo.base.BasePojo;
import com.lovnx.pojo.base.BasePojoObj;
import com.lovnx.pojo.base.ReqApiParam;
import com.lovnx.utils.RedisUtils;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import net.sf.json.JSONObj... | true |
ce88d101677144f84f692d8bb25a3364df12729d | Java | zhongxingyu/Seer | /Diff-Raw-Data/21/21_5e42570b322ebfa352971b2560e7b70987e4844e/SchedSim/21_5e42570b322ebfa352971b2560e7b70987e4844e_SchedSim_t.java | UTF-8 | 10,403 | 3.09375 | 3 | [] | no_license | import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Queue;
class SchedSim {
private static int maxProcesses; // cap on total processes for simulation
private static int maxCPUbursts; // cap on tot... | true |
c12012d1df589a6ef09c2113e9daec48329b9c0b | Java | zinebkhanjari/ProjetJava | /ProjetJavaUml/src/metier/Adherent.java | UTF-8 | 1,291 | 2.453125 | 2 | [] | no_license |
package metier;
public class Adherent {
private int idAd;
private String nomAd;
private String prenomAd;
static String emailAd;
private String telAd;
private String niveauAd;
public Adherent() {
}
public Adherent(int idAd) {
this.idAd=idAd;
}
public static String getEmailAd()... | true |
6d1448997d6dd7b52a596b907f3239ae52b034bc | Java | lilithkarapetyan/gameOfLifeJava | /swing/World.java | UTF-8 | 1,898 | 3.234375 | 3 | [] | no_license |
public abstract class World implements Cloneable {
int generation = 0;
Pattern pattern;
public World(String format) throws PatternFormatException {
pattern = new Pattern(format);
}
public World(Pattern pattern) {
this.pattern = pattern;
}
public int getWidth() {
... | true |
27996a29c8549e3636887a679671cb0ba1d1788a | Java | AVBaranov/abaranov | /chapter_005/src/test/java/ru/job4j/collectionsframework/list/DequeueTest.java | UTF-8 | 1,219 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.collectionsframework.list;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* Created by Андрей on 22.05.2017.
*/
public class DequeueTest {
@Test
public void whenUsePushthenAddOneElementToHead() {
Dequeue<String> myls = new Dequeu... | true |
9467b522bbb7b168d9a4571eb77989605441a779 | Java | SevenNight2012/DevLibrary | /network/src/test/java/com/xxc/dev/network/NetworkManagerTest.java | UTF-8 | 280 | 1.796875 | 2 | [] | no_license | package com.xxc.dev.network;
import org.junit.Test;
public class NetworkManagerTest {
@Test
public void cancel() {
NetworkManager.getInstance().cancel("");
}
@Test
public void cancelAll() {
NetworkManager.getInstance().cancelAll();
}
} | true |
f2c3e305223c20631c977b536b82301e3e140ef5 | Java | hiepgaf/Camera-APK | /sources/com/google/android/apps/refocus/image/BitmapNative.java | UTF-8 | 863 | 1.945313 | 2 | [] | no_license | package com.google.android.apps.refocus.image;
import android.graphics.Bitmap;
/* compiled from: PG */
public class BitmapNative {
static {
System.loadLibrary("refocus");
}
public static native void decodeJPEGToChannel(byte[] bArr, Bitmap bitmap, int i);
public static native byte[] encodeCha... | true |
1ca5e924207f0da9b7dccb15d359ad20750cb339 | Java | longliuping/ZgldStore | /app/src/main/java/com/zgld/mall/adapter/HotSupplierAdapter.java | UTF-8 | 2,096 | 2.328125 | 2 | [] | no_license | package com.zgld.mall.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.zgld.mall.R;
import com.zgld.mall.SysApplication;
i... | true |
ef8963c20179aace0d9576b79c5748b94b01be71 | Java | nguyencuong382/java-desk | /NotePad/src/notpad/controller/findreplace/IViewFind.java | UTF-8 | 517 | 1.679688 | 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 notpad.controller.findreplace;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JTextArea;
import ... | true |
731acc5ae99aa98254cde74f3870f0b4a8d44d47 | Java | soaresa/graph-traversals | /src/BreadthFirstSearchTest.java | UTF-8 | 2,077 | 3.0625 | 3 | [] | no_license | /**
* @author Adalberto
*
*/
import static org.junit.Assert.*;
import org.junit.Test;
public class BreadthFirstSearchTest {
@Test
public void testSize1Graph() {
Graph g = new Graph(1);
BreadthFirstSearch path = new BreadthFirstSearch(g, 0, 0);
assertEquals(0, path.getPathLength());... | true |
cf2f668bc362306c00784a6acd879e22b2b2d060 | Java | stuartsmiley/farm-production | /src/main/java/com/finca_la_caprichosa/dto/Rainfall.java | UTF-8 | 1,009 | 2.453125 | 2 | [] | no_license | package com.finca_la_caprichosa.dto;
import java.math.BigDecimal;
import java.util.Date;
import javax.json.bind.annotation.JsonbTypeAdapter;
/**
* For transfering rainfall data to d3 in the browser.
*/
public class Rainfall {
private final Date date;
private final BigDecimal mm;
private final BigDecima... | true |
ffcdd86e5b60c2b8a0448461698dee5e9f39173f | Java | Agronault/Grafos | /ListasDeGrafos/src/listasdegrafos/Grafos.java | UTF-8 | 1,831 | 3.265625 | 3 | [] | no_license |
package listasdegrafos;
import java.util.ArrayList;
public class Grafos {
protected final int numeroVertices;
protected final int[][] matrizAdjacencia;
public Grafos(int vertices) {
numeroVertices = vertices;
matrizAdjacencia = new int[vertices][vertices];
int i, j;
... | true |
b6e9d57a79cd9189700752653849fc921092ee33 | Java | Govindarajan-S/data-structures-and-algorithms-practice | /problem/sorting/SelectionSort.java | UTF-8 | 1,069 | 4.125 | 4 | [] | no_license | package problem.sorting;
public class SelectionSort {
public void selectionSort(int[] arr) {
int n = arr.length;
for (int i = 0; i < n; i++) {
int min = i;
for (int j = i + 1; j < n; j++) {
if (arr[j] < arr[min]) {
min = j;
... | true |
1f6ff1ff3f51271a914493d9b4b29f07aa929078 | Java | tsuzcx/qq_apk | /com.tencent.minihd.qq/assets/exlibs.2.jar/classes.jar/com/tencent/mobileqq/activity/aio/tips/DiscFreqPttGrayTips.java | UTF-8 | 11,445 | 1.5 | 2 | [] | no_license | package com.tencent.mobileqq.activity.aio.tips;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.text.TextUtils;
import android.text.format.Time;
import com.tencent.mobileqq.activity.aio.ChatAd... | true |
c3fb9f67972ac6a48fd864b4ae433e2cb7b48357 | Java | HikkusT/HeroQuest | /src/br/unicamp/mc322/pf/heroquest/map/generation/FileMapGenerator.java | UTF-8 | 3,753 | 2.921875 | 3 | [] | no_license | package br.unicamp.mc322.pf.heroquest.map.generation;
import java.io.IOException;
import java.util.List;
import br.unicamp.mc322.pf.heroquest.gameobject.entity.monster.*;
import br.unicamp.mc322.pf.heroquest.gameobject.entity.hero.*;
import br.unicamp.mc322.pf.heroquest.gameobject.interactable.*;
import br.unicamp.mc... | true |
1ab77506f7f82b8ac7d03c82d40b4ba1a9da664b | Java | lhcovo/Maintenance | /src/main/java/com/i2dsp/maintenance/domain/dto/MaintenanceTypeDto.java | UTF-8 | 1,921 | 2.171875 | 2 | [] | no_license | package com.i2dsp.maintenance.domain.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import javax.validation.constrai... | true |
279803f639fa94748fb71979f3779b1c7871270d | Java | CHUNBOZHAO/rsps | /rsps/manage-service/src/main/java/com/izhuixin/rsps/common/vo/web/SysUserInfoVO.java | UTF-8 | 4,020 | 2.09375 | 2 | [] | no_license | package com.izhuixin.rsps.common.vo.web;
import java.util.Date;
/**
* 管理用户
*/
public class SysUserInfoVO {
/**
* 自增ID
*/
private Long id;
/**
* 用户ID
*/
private String userId;
/**
* 登录用户名
*/
private String userName;
/**
* 密码
*/
private Strin... | true |
c7b5ba3fbf7c7332bdcb6be2ce5de24a76ba6f1f | Java | MadivadaLakshmiPriyanka/Servlet | /Success.java | UTF-8 | 881 | 2.34375 | 2 | [] | no_license | package com.day3;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servle... | true |
d61ffe8b9288556f4c64567bdbd6ee38da35a777 | Java | bahmedBenyammi/synchronize-car-tram | /src/Threads/MyThread.java | UTF-8 | 589 | 3.15625 | 3 | [] | no_license | package Threads;
import java.util.concurrent.Semaphore;
public class MyThread extends Thread {
private boolean run=false;
Semaphore Mutex =new Semaphore(1);
public boolean isRun() {
return run;
}
public void setRun(boolean run) {
this.run = run;
}
public Semaphore getM... | true |
224a81382c406a5b3a23bc4e7fd6e590a74b33a0 | Java | nicolasouri/CadastroDeEventos | /app/src/main/java/br/senai/sc/cadastrodeeventos/modelo/Local.java | UTF-8 | 1,507 | 2.78125 | 3 | [] | no_license | package br.senai.sc.cadastrodeeventos.modelo;
import java.io.Serializable;
public class Local implements Serializable {
private int id;
private String nomeLocal;
private String bairro;
private String cidade;
private int capacidadePublico;
public Local(int id, String nomeLocal, String bairro,... | true |
17f4039b8c1e74afec41b70f3dc73a1e022dd02a | Java | emilyhan163/transaction | /hm-transaction/src/main/java/com/test/transaction/in/TestInterface.java | UTF-8 | 577 | 1.804688 | 2 | [] | no_license | package com.test.transaction.in;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author hmj
* @date 2019/6/19
*/
public class TestInterface {
public static void main(String[] args) {
ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContex... | true |
0f478c461c74f28a8cd740dd8bc119d13c3054eb | Java | myonhu/peis-parent | /peis-web/src/main/java/com/lsp/his/utils/DbUtils.java | UTF-8 | 5,747 | 2.375 | 2 | [] | no_license | package com.lsp.his.utils;
import com.lsp.his.db.DBOperator;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @author lishupeng
* @Description
* @Date 2017/11/8 20:43
*/
public class DbUtils {
public static void mapParseO... | true |
faccdf08154b23088098deda227241361993cea2 | Java | jeschaef/OS | /Uebung5/Java/Counter.java | UTF-8 | 426 | 3.203125 | 3 | [] | no_license | package aufgabe2;
/*
Diese Klasse zählt die gemeinsame Variable in mit der Methode increment() hoch
*/
public class Counter {
//erhöht die globale variable in um eins, monitorsynchronisiert
public synchronized void increment() {
long local = ThreadTest.in;
local++;
ThreadTest.in = local;
}
//ret... | true |
d4fcc04ba9a705452406546f8cb9585da08c368a | Java | jakepetrovic/Jesh_Jacob_QualityOfTestsPaper | /Output/CodePro/13_jdbaclTest/java/org/databene/jdbacl/model/DBNotNullConstraintTest.java | UTF-8 | 7,805 | 2.421875 | 2 | [] | no_license | package org.databene.jdbacl.model;
import org.junit.*;
import static org.junit.Assert.*;
/**
* The class <code>DBNotNullConstraintTest</code> contains tests for the class <code>{@link DBNotNullConstraint}</code>.
*
* @generatedBy CodePro at 6/7/15 8:00 PM
* @author Jesh
* @version $Revision: 1.0 $
*/
public cla... | true |
92b87a9611959f10cf9ca2db568cfbf9c60ccde7 | Java | Akmal-sama/luas-dan-keliling-bangun-datar | /luasbangundatar.java | UTF-8 | 5,709 | 3.171875 | 3 | [] | no_license | //Source code by Akmal-sama
//Happy coding
import java.util.Scanner;
import java.io.IOException;
public class luasbangundatar{
static void luas_persegi(){
Scanner key = new Scanner(System.in);
System.out.print("Masukkan jumlah sisi : ");
double s;
s = key.nextDouble();
luas luass = new luas();
luass.l_pe... | true |
2b8d504bc1875fd009ffc3b8efaaf19044a18903 | Java | nhat292/SMSFilter | /app/src/main/java/com/hoaianh/smsfilter/data/network/ApiEndPoint.java | UTF-8 | 344 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive |
package com.hoaianh.smsfilter.data.network;
/**
* Created by Nhat on 12/13/17.
*/
public final class ApiEndPoint {
public static String BASE_URL = "";
public static void changeBaseUrl(String baseUrl) {
BASE_URL = baseUrl;
}
private ApiEndPoint() {
// This class is not publicl... | true |
05805828a12b89cab2174d02cb4a928f88b861c5 | Java | DennisSoemers/MaastCTS2 | /Single-Player/src/MaastCTS2/utils/MctsVisualizer.java | UTF-8 | 6,153 | 2.3125 | 2 | [
"MIT"
] | permissive | package MaastCTS2.utils;
public class MctsVisualizer{
}
/*
import it.uniroma1.dis.wsngroup.gexf4j.core.EdgeType;
import it.uniroma1.dis.wsngroup.gexf4j.core.Gexf;
import it.uniroma1.dis.wsngroup.gexf4j.core.Graph;
import it.uniroma1.dis.wsngroup.gexf4j.core.Mode;
import it.uniroma1.dis.wsngroup.gexf4j.core.Node;
impo... | true |
a9742828cc8de817742cd2fc8dec6ab192cd62f1 | Java | unimik/finalGroobee | /src/main/java/com/kh/spring/search/model/dao/TotalSearchDao.java | UTF-8 | 2,075 | 2 | 2 | [] | no_license | package com.kh.spring.search.model.dao;
import java.util.ArrayList;
import java.util.Arrays;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.kh.spring.feed.model.vo.Feed;
import com.k... | true |
3804c596168dda1258feb4b3647ff5e1b54d802e | Java | Jilberta/MultiChannelEdu | /app/src/main/java/ge/tbc/multichannel/multichanneltest/MainActivity.java | UTF-8 | 2,415 | 2.09375 | 2 | [] | no_license | package ge.tbc.multichannel.multichanneltest;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.HandlerThread;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.vie... | true |
4fc4a578511e6a19641782ef0bee9528a0fec2a4 | Java | muratmustafa/blockchain-messaging | /src/main/java/sample/BlockChain.java | UTF-8 | 906 | 2.75 | 3 | [] | no_license | package sample;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class BlockChain implements Serializable {
private static final long serialVersionUID = 1L;
public List<Block> blockChain;
int maxMessages;
public BlockChain(int maxMessages) {
this.maxMessages = maxMessages... | true |
d633dacc06b2dd85dec70609445d57cec5808026 | Java | arunk054/coordination-costs-fse17 | /tools/GitHub-miners/maven-project/src/main/java/cmu/isr/arunkaly/pypi/issues/DBInterfaceStateful.java | UTF-8 | 190 | 1.6875 | 2 | [] | no_license | package cmu.isr.arunkaly.pypi.issues;
import cmu.isr.arunkaly.dblayer.DBInterface;
public interface DBInterfaceStateful extends DBInterface {
public void setIsWriteEnabled(boolean b);
}
| true |
a5ca4591ccfe41caa89ed190d580e877bd8abd95 | Java | Fking1/designPattern | /src/main/java/club/fangqcloud/simpleFactory/Truck.java | UTF-8 | 109 | 1.9375 | 2 | [] | no_license | package club.fangqcloud.simpleFactory;
public interface Truck {
// 启动车辆
public void run();
}
| true |
71aaee1152bd0db3ef02d41ccc488e6e92b918f1 | Java | hianzuo/AndroidLogViewer | /src/FilterEditDialog.java | UTF-8 | 3,225 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | import lrscp.lib.swt.SwtUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.s... | true |
a0244dcf0614b88c82cad1adc9b0224b5c295e01 | Java | RomanSzabo/imageChecker | /implementation/image-checker/src/main/java/at/ac/univie/imagechecker/util/Utils.java | UTF-8 | 719 | 2.609375 | 3 | [] | no_license | package at.ac.univie.imagechecker.util;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Utils {
public static boolean isNotNull(Object o) {
return !(o == null);
}
public static byte[] createFingerprint(Stri... | true |
be1e673a3f53e953b7af25f69d97c9fa5f82f5f8 | Java | Leontheking24/DiscordModBot | /src/main/java/de/leontheking24/discordbot/Moderation/Commands/MuteCommand.java | UTF-8 | 3,447 | 2.796875 | 3 | [] | no_license | package de.leontheking24.discordbot.Moderation.Commands;
import de.leontheking24.discordbot.Commands.Base.Command;
import de.leontheking24.discordbot.Commands.Base.CommandType;
import de.leontheking24.discordbot.DiscordBot;
import de.leontheking24.discordbot.ServerManager;
import de.leontheking24.discordbot.Utils.Util... | true |
ac1639d8d67c93f0931aeaecc3d7ea5ebe2fd3d6 | Java | KongGuoguang/GFMS-Client | /data/src/main/java/com/zzu/gfms/data/dbflow/WorkType.java | UTF-8 | 1,160 | 2.171875 | 2 | [] | no_license | package com.zzu.gfms.data.dbflow;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
/**
* Created by Administrator on 2017/10/22.
*/
@Table(dat... | true |
9dc617b4a15e3756b4cba7e87b9d498cb1a94cf4 | Java | zj312404325/jyoaoa | /src/main/java/com/jeeplus/modules/act/dao/ActDao.java | UTF-8 | 1,605 | 1.570313 | 2 | [] | no_license | /**
* Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
*/
package com.jeeplus.modules.act.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.a... | true |
0d05fb7fca1b84a4711242117b918c7b7bfdd77c | Java | dgr8akki/DS-Algo-Made-Easy-With-Aakash | /Leetcode/Solution_643_MaximumAverageSubarray.java | UTF-8 | 401 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package Leetcode;
class Solution_643_MaximumAverageSubarray {
public double findMaxAverage(int[] nums, int k) {
double sum = 0, max = Integer.MIN_VALUE;
int n = nums.length;
for (int i = 0; i < k; i++)
sum += nums[i];
max = sum;
for (int i = k; i < n; i++) {
sum -= nums[i - k];
... | true |
70c3068561965ea2bb5719f9b6bc605f5b4d3356 | Java | zhishan332/devtools | /src/main/java/com/yermoon/service/MybatisService.java | UTF-8 | 1,734 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.yermoon.service;
import com.yermoon.entity.DbSrcEntity;
import java.util.List;
/**
* Mybatis工具集的业务处理
*
* @author wangqing
* @since 14-4-16 下午2:15
*/
public interface MybatisService {
/**
* 创建新的数据源
*
* @param dbSrcEntity 数据源
* @throws Exception 数据库连接异常时
*/
public void... | true |
091686f2b345500f2574b46580fc6fc750a83fc7 | Java | ellieAngle/sorryGameAnimated | /test/ooga/controller/rules/TeamRulesTest.java | UTF-8 | 2,504 | 2.609375 | 3 | [] | no_license | package ooga.controller.rules;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ooga.gamepiece.Piece;
import ooga.player.HardAIPlayer;
import ooga.player.Player;
import ooga.player.PlayerState;
import org.junit... | true |
b275b20bbf9a28c681ac49ab89f626f601db9db0 | Java | echirchir/corona-tracker | /app/src/main/java/ke/co/simpledeveloper/constants/URLS.java | UTF-8 | 451 | 1.851563 | 2 | [] | no_license | package ke.co.simpledeveloper.constants;
public class URLS {
public static final String CONFIRMED_DEATHS_URL = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Deaths.csv";
public static final String CONFIRMED_DAILY_REPORTS = "... | true |
8a323436fedd366586e19de92209a08e9b3d574b | Java | DefNeoRoman/excelProject | /src/main/java/stepik/workWrong/OverrideExample.java | UTF-8 | 654 | 2.8125 | 3 | [] | no_license | package stepik.workWrong;
public class OverrideExample extends ProFinal {
private final String name = "test";
@Override
//Не final метод можно переопределить, а final нельзя
public void ff() {
super.ff();
}
@Override
public int hashCode() {
return super.hashCode();
}
... | true |
404499c51545a51c99f2a84d15f4375081aaa9bb | Java | kapil-singhal/kapilseleniumtraining | /selenium3plus/src/test/java/trainingDemo/TestDemoTours.java | UTF-8 | 1,016 | 1.984375 | 2 | [] | no_license | package trainingDemo;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class TestDemoTours {
private WebElement inputUsername;
... | true |
52b4bf04df023387d8a152365260c9a08c0a664f | Java | bellmit/erpservice | /erpprovider-wangdianv2/src/main/java/com/huobanplus/erpprovider/wangdianv2/common/WangDianV2Enum.java | UTF-8 | 5,451 | 2.234375 | 2 | [] | no_license | /*
* 版权所有:杭州火图科技有限公司
* 地址:浙江省杭州市滨江区西兴街道阡陌路智慧E谷B幢4楼
*
* (c) Copyright Hangzhou Hot Technology Co., Ltd.
* Floor 4,Block B,Wisdom E Valley,Qianmo Road,Binjiang District
* 2013-2017. All rights reserved.
*/
package com.huobanplus.erpprovider.wangdianv2.common;
import com.huobanplus.erpservice.common.ienum.EnumHel... | true |
8deaa3483595ed2d0c954802a306209e204e62d3 | Java | sarthak1492/ZomatoSample | /app/src/main/java/com/sarthaksharma/zomato/MyCustomOSEditTextSemiBold.java | UTF-8 | 494 | 2.09375 | 2 | [] | no_license | package com.sarthaksharma.zomato;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.EditText;
/**
* Created by Sarthak.Sharma on 6/30/2017.
*/
public class MyCustomOSEditTextSemiBold extends EditText {
public MyCustomOSEditTextSemiBold(Co... | true |
fd364ca1ffc9fc583ea8238041c8e73db1fa40c9 | Java | artist-project/ARTIST-Deployment_Tool | /source/eu.artist.migration.deployment.azure.service.descriptor/src/eu/artist/migration/deployment/azure/csdes/AzureCSDesPackage.java | UTF-8 | 25,171 | 1.632813 | 2 | [] | no_license | /**
*/
package eu.artist.migration.deployment.azure.csdes;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the... | true |
f2f2bd497b57aeaedd5cae4c16d2bddf44b80afb | Java | Hibernate2009/SMEV3CryptoClient | /src/main/java/ru/voskhod/smev/client/api/types/exception/processing/SMEVSignatureException.java | UTF-8 | 4,501 | 2.578125 | 3 | [] | no_license | package ru.voskhod.smev.client.api.types.exception.processing;
import ru.voskhod.smev.client.api.types.exception.SMEVProcessingException;
/**
* The type Smev signature exception.
*/
public class SMEVSignatureException extends SMEVProcessingException {
/**
* The Description.
*/
protected String de... | true |
8bf3a4d074733832d0d7d93b4830f06aa3b53f0c | Java | SeMyeongJin/JAVA-ChattingServer | /ChatServer/src/Client.java | UHC | 6,816 | 2.875 | 3 | [] | no_license | /*
* Ѹ Ŭ̾Ʈ ϱ Ƴ Ŭ
*/
package application;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.nio.ByteOrder;
import MsgPacker.*;
public class Client {
Socket socket;
Client cli;
private GameRoom room;
int roomNum;
MessagePacker msg;
... | true |
39a0d5a5193135a2892020d8b497156ddd07934d | Java | 16-LokaleUnternehmen-GastroSupport/wvv-backend | /src/main/java/me/itson/backend/database/entity/Dish.java | UTF-8 | 388 | 2.0625 | 2 | [] | no_license | package me.itson.backend.database.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.annotations.GenericGenerator;
import lombok.Data;
@Data
@Entity
public class Dish {
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerat... | true |
c012fbdfa48d8aa5a3f2b3bbd4d8b77b0b6e699b | Java | zhongxingyu/Seer | /Diff-Raw-Data/29/29_f683889348d5a9e990f8f576800b457d885c4523/CareSchedulesIntegrationTest/29_f683889348d5a9e990f8f576800b457d885c4523_CareSchedulesIntegrationTest_t.java | UTF-8 | 16,366 | 2.078125 | 2 | [] | no_license | package org.motechproject.care.integration.schedule;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.joda.time.Period;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.motechproje... | true |
519f0313dc8aceea1ec0c92d04fc82d9ec76dfc1 | Java | gpouilloux/graphs-algorithms | /src/main/java/graph/util/ListConverter.java | UTF-8 | 971 | 3.546875 | 4 | [] | no_license | package graph.util;
import java.util.ArrayList;
import java.util.List;
/**
* Specific converter which enable to transform an array of primitive ints into a list of Integer and vice-versa...
*
* @author Guillaume Pouilloux
*
*/
public class ListConverter {
private ListConverter() {
// private constructor for... | true |
397f2f125e49cb876d2744f9728e3d1864e4d75b | Java | david-noakes/AWS_demos | /dynamodbdemo1/src/main/java/erehwon/shadowlands/dynamodbdemo1/model/MovieRecord.java | UTF-8 | 1,892 | 2.65625 | 3 | [] | no_license | package erehwon.shadowlands.dynamodbdemo1.model;
import com.amazonaws.services.dynamodbv2.datamodeling.*;
import com.amazonaws.util.StringUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.time.*;
import java.util.ArrayList;
import java.util.... | true |
0ef072277f81a5a2109f91132e82198ce7fd6491 | Java | JosebaSaenz/SI | /SI/src/Proiektua/KomentarioenMatrizea.java | UTF-8 | 2,205 | 2.625 | 3 | [] | no_license | package Proiektua;
import java.util.HashMap;
public class KomentarioenMatrizea {
private static KomentarioenMatrizea nKomentarioenMatrizea;
private Bektorea[] mat;
private Bektorea[] matErabilgarria;
private HashMap<Integer,Integer> komentarioaZenbatPelikuletan;
private HashMap<Integer,Integer> pelikula... | true |
86ac8557172c66cfe75ae70b7d279e64150e131b | Java | zouqinjia/design-pattern | /src/com/vince/demo/singleton/safe/StaticInnerClassSingleton.java | UTF-8 | 674 | 3.203125 | 3 | [] | no_license | package com.vince.demo.singleton.safe;
/**
* JLS官方推荐单例实现方式,使用静态内部类
* 原因:一个类只有在被使用时才会初始化,而类初始化过程是非并行的,这些都由JLS保证
*/
public class StaticInnerClassSingleton {
private StaticInnerClassSingleton() {
}
public static class InnerClass {
// volatile 关键字保证变量在各线程的可见性
private static final Stati... | true |
9b5f940545529cf40f6e72f8458be52df678bd45 | Java | klimentru1986/spring-angular | /backend/web/src/main/java/web/domain/entity/Book.java | UTF-8 | 541 | 2.265625 | 2 | [] | no_license | package web.domain.entity;
import lombok.Data;
import javax.persistence.*;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
@Data
@Entity
@Table(name = "book")
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@NotNull
... | true |
81c5dad8a911f62394edb48361d665ef8c97a3fe | Java | kaysanshi/spring-boot-community | /src/main/java/com/kaysanshi/springbootcommunity/exception/ICustomizeErrorCode.java | UTF-8 | 193 | 1.9375 | 2 | [] | no_license | package com.kaysanshi.springbootcommunity.exception;
/**
* @Author kay三石
* @date:2019/10/15
*/
public interface ICustomizeErrorCode {
String getMessage() ;
Integer getCode();
}
| true |
1f5a34221d258fbbdcac2deadbdf3fbe1c01de7a | Java | dronava/HIL-V2X-Simulation-with-SUMO-Support | /src/main/java/communication/command/navigation/CommandNewDestination.java | UTF-8 | 2,566 | 2.46875 | 2 | [] | no_license | package communication.command.navigation;
import communication.command.CommandEnum;
import communication.command.CommandReturnValue;
import communication.message.MessageDestination;
import it.polito.appeal.traci.Edge;
import it.polito.appeal.traci.PositionConversionQuery;
import it.polito.appeal.traci.SumoTraciConnect... | true |
d6af94c5145656181a7739d71a46f67435d30827 | Java | Kleanthismits/Web-Application | /WebApp/src/main/java/com/mitsioulis/model/Attribute.java | UTF-8 | 2,379 | 2.546875 | 3 | [] | no_license | package com.mitsioulis.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.annotations.GenericGenerator;
@Entity
public class Attribute {
@Id
@GeneratedValue(generator = "uuid")
@GenericGe... | true |
c810395e3104ccff8983e33829127a4b84b86c24 | Java | springmonster/ApkDownloadAndHotfix | /networklibrary/src/main/java/com/wisetv/networklibrary/consuming/WTNetworkTimeConsumingUtil.java | UTF-8 | 762 | 2.515625 | 3 | [] | no_license | package com.wisetv.networklibrary.consuming;
import java.util.concurrent.TimeUnit;
/**
* Created by kuanghaochuan on 2017/2/5.
*/
class WTNetworkTimeConsumingUtil {
private long mStartTime;
private long mEndTime;
private long getCurrentTime() {
return System.nanoTime();
}
public long ... | true |
835ce2480492ba1331f9739c315053a801970e08 | Java | reverseengineeringer/me.lyft.android | /src/me/lyft/android/infrastructure/deferred/deferredcalls/DropOffDeferredCall.java | UTF-8 | 1,629 | 2.140625 | 2 | [] | no_license | package me.lyft.android.infrastructure.deferred.deferredcalls;
import com.lyft.android.api.dto.RideUpdateRequestDTO;
import com.lyft.android.api.dto.RideUpdateRequestDTOBuilder;
import java.io.IOException;
import me.lyft.android.common.DeviceClock;
import me.lyft.android.domain.location.Location;
import me.lyft.androi... | true |
c0635292752974f5412e9eab80563ed2b70060c4 | Java | JuanGSierra/UN-Juego | /EscapeFromAtlantis/src/Data/SeaSerpent.java | UTF-8 | 701 | 2.671875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Data;
import java.io.Serializable;
/**
*
* @author macas
*/
public class SeaSerpent extends Animal implements Serializable... | true |
a876e7c0fcf8ed9acbe5e212e675ef60ca6e69d2 | Java | DesenvolvedoresGoogle/jobthon | /mobile/JobThonCliente/src/com/github/cherobin/hackthon_2014/cliente/util/AppPreferences.java | UTF-8 | 873 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.cherobin.hackthon_2014.cliente.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
public class AppPreferences {
public static final String CV_CADASTRADO = "cv_cadastrado";
private static fin... | true |
bab29985d2b6ae329ed590e794a420f33026da76 | Java | NetworkingGroupSKKU/NFC-in-Android | /src/com/android/phuc/nfc/profile/ProfileSupport.java | UTF-8 | 6,201 | 2.53125 | 3 | [] | no_license | package com.android.phuc.nfc.profile;
import android.content.SharedPreferences;
public class ProfileSupport {
private final static int ENABLE_TOGGLE_WIFI = 0;
private final static int ENABLE_TOGGLE_BLUETOOTH = 1;
private final static int ENABLE_TOGGLE_RINGTONE = 2;
private final static int ENABLE_TOGGLE_AIRPLANE_... | true |
f194f19f5259f7be311c7aba7b1e30ab012e5445 | Java | Marya20/recycleview-finals | /app/src/main/java/com/mary/recyclerview/HomePage.java | UTF-8 | 6,988 | 2.3125 | 2 | [] | no_license | package com.mary.recyclerview;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
imp... | true |
e5ff1d461f17b43d9736e320b64adef1596d93e5 | Java | iamjithinjohnson/College-App | /app/src/main/java/com/example/ctadmin/mypolytech/home.java | UTF-8 | 4,499 | 1.84375 | 2 | [] | no_license | package com.example.ctadmin.mypolytech;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
public class home extends A... | true |
c825185cf2537310fda3f2e1a3e6ade201fcb9ed | Java | RabeaGleissner/java-tic-tac-toe | /src/test/java/de/rabea/game/UnbeatableComputerPlayerTest.java | UTF-8 | 2,360 | 2.859375 | 3 | [] | no_license | package de.rabea.game;
import org.junit.Before;
import org.junit.Test;
import static de.rabea.game.Mark.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class UnbeatableComputerPlayerTest {
private UnbeatableComputerPlayer unbeatableComputerPlayer;
@Before
... | true |
d30b9fee20a43a9222388419b58a7c6d663b6732 | Java | mingginew88/semi_project | /MPT5Client/src/schedule/AddScheduleController.java | UTF-8 | 8,283 | 2.359375 | 2 | [] | no_license | package schedule;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXTextField;
import VO.ScheduleVO;
import java.net.URL;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.... | true |
380c0f7f5fc3b00c723d7eb7d5c7c43dc3b21fd0 | Java | bellmit/preg-project | /preg-business/src/main/java/com/mnt/preg/master/service/basic/ProductCatalogService.java | UTF-8 | 2,518 | 2.15625 | 2 | [] | no_license |
package com.mnt.preg.master.service.basic;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.validation.annotation.Validated;
import com.mnt.preg.master.entity.basic.ProductCatalog;
impo... | true |
74440fe14dc68e5f774b73186d85241aab13a0d1 | Java | DungNgoc/Human-Resource | /app/src/main/java/com/example/dungngoc/appchat/fragment/CreateOrder_Step8Flagment.java | UTF-8 | 1,780 | 2.390625 | 2 | [] | no_license | package com.example.dungngoc.appchat.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import com.example.dungngoc.appchat.OnSkipNextList... | true |
d97632a83d8b402d7fdf5fc094ead11d23049ec0 | Java | MatKurianski/ComidinhasAPI | /src/main/java/com/kurianski/comidinhas/adapter/config/security/AutenticacaoViaTokenFilter.java | UTF-8 | 2,776 | 2.21875 | 2 | [] | no_license | package com.kurianski.comidinhas.adapter.config.security;
import com.kurianski.comidinhas.adapter.datastore.UsuarioEntityRepository;
import com.kurianski.comidinhas.adapter.controller.entity.auth.UsuarioAutenticado;
import com.kurianski.comidinhas.adapter.service.TokenService;
import com.kurianski.comidinhas.adapter.d... | true |
be33ca13d65ef3f88c14da135e2f4cf1ac13811b | Java | Bhartigupta1587/DoctorAppointmentApp | /src/test/java/com/example/demo/testSpeciality.java | UTF-8 | 1,509 | 2.46875 | 2 | [] | no_license | package com.example.demo;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.boot.test... | true |
9923f2df8fc89b6e36445cb01c250faabacbf998 | Java | darktulu/myhr | /myhr/src/main/java/com/wadia/metier/SalaryHrfillMeteir.java | UTF-8 | 2,955 | 1.9375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.wadia.metier;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Tra... | true |
cb1a42ac02dc3aa64eca6e00f71c416437d07d14 | Java | lijin0919/javastudy | /接口/src/面向接口编程/Test.java | UTF-8 | 206 | 2.25 | 2 | [] | no_license | package 面向接口编程;
public class Test {
public static void main(String[] args) {
TFactory factory = new TFactory();
AI ai = new AI(factory.getT());
ai.make();
}
}
| true |
d5d0dfc6ffd379ccbc95208f59c25808bb115f44 | Java | joshuaju/groupprio-backend | /src/main/java/de/ccd/groupprio/event_store/Event.java | UTF-8 | 602 | 2.359375 | 2 | [] | no_license | package de.ccd.groupprio.event_store;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.time.Instant;
@Getter
@ToString
public abstract class Event {
@Setter
long index;
protected final String contextId;
protected final String type;
protected final Instant timestam... | true |
12f8be8ddbe16b1423f09810d4a0e6403fdd7049 | Java | te0211/searchapp | /src/main/java/com/datto/rmm/test/model/CustomField.java | UTF-8 | 724 | 2.015625 | 2 | [] | no_license | //package com.datto.rmm.test.model;
//
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.MappedSuperclass;
//
//@Entity
//public class CustomField {
//
// @Id
// @GeneratedValue(strategy=... | true |