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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0bfe712e07da8dbc5a34dda3284698a2f6ba186b | Java | aloktech/AllProjects | /SampleJDBC/src/test/java/com/imos/sample/LogServiceTest.java | UTF-8 | 514 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.imos.sample;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Pintu
*/
public class LogServiceTest {
private final Logger logger = LoggerFactory.getLogger(LogServiceTest.class);
@Test
public void logging() {
new LogService.LogService... | true |
356cb9c22047829cba27ce007d02042b6a0be78d | Java | kblibr/spring-training | /src/main/java/spring/config/complicated/ComplicatedConfig.java | UTF-8 | 2,552 | 2.125 | 2 | [] | no_license | package spring.config.complicated;
import example.contrived.complicated.api.Broker;
import example.contrived.complicated.impl.BrokerImpl;
import example.contrived.complicated.impl.MatcherImpl;
import example.contrived.complicated.impl.SearcherImpl;
import example.contrived.complicated.impl.StandardWrapper;
import exam... | true |
50c32e8356a083e3d9c3377ee8d6ae89e8f971f8 | Java | QianUser/park | /park-common/src/main/java/com/park/cloud/common/domain/params/cms/SysPositionUpdateParams.java | UTF-8 | 623 | 1.828125 | 2 | [] | no_license | package com.park.cloud.common.domain.params.cms;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
@ApiModel
public class SysPositionUpdateParams extends CmsBaseP... | true |
dd7b6776de2c3c3a94f6a57bca95e17174f8eddb | Java | apache/arrow | /java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/accessor/impl/binary/ArrowFlightJdbcBinaryVectorAccessor.java | UTF-8 | 4,262 | 2.078125 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-licens... | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
54aa6b38611d235096aef5eb737ecd362b4ca653 | Java | lenik/stack | /plover/modeling/plover-ox1/src/main/java/com/bee32/icsf/principal/IcsfPrincipalUnit.java | UTF-8 | 1,029 | 2.15625 | 2 | [] | no_license | package com.bee32.icsf.principal;
import com.bee32.plover.orm.PloverORMUnit;
import com.bee32.plover.orm.unit.ImportUnit;
import com.bee32.plover.orm.unit.PersistenceUnit;
/**
* ICSF 安全主体数据单元
*
* <p lang="en">
* ICSF Principal Unit
*/
@ImportUnit(PloverORMUnit.class)
public class IcsfPrincipalUnit
extend... | true |
7867b22ac5322b3973a3e631ea00ae0b1f63c138 | Java | xperjon/FolkTunes-MAVEN | /src/main/java/org/xperjon/folktunes/domain/FolkMusician.java | UTF-8 | 1,034 | 2.265625 | 2 | [] | no_license | package org.xperjon.folktunes.domain;
import java.util.HashSet;
import java.util.Set;
import org.springframework.data.neo4j.annotation.RelatedTo;
/**
* Created 2011-nov-16
*
* @author jep
*/
public class FolkMusician extends Person {
public FolkMusician(String id, String name) {
super(id, name);
... | true |
cfb87913b077f5f5e4b6405eb512dce8c8c1a5a8 | Java | ngmduc2012/EJBCARA | /src/main/java/cmc/vn/ejbca/RA/dto/request/RequestOfSoftTokenRequestDto.java | UTF-8 | 2,485 | 1.960938 | 2 | [] | no_license | package cmc.vn.ejbca.RA.dto.request;
public class RequestOfSoftTokenRequestDto {
private String userName;
private String password;
private boolean clearPwd;
private String subjectDN;
private String CaName;
private String tokenType;
private int status;
private String email;
private ... | true |
e474361050736ca8648ef6677630324958e2c9e3 | Java | walkeZ/Learning | /DBDemo/app/src/main/java/com/walke/dbdemo/MainActivity.java | UTF-8 | 3,551 | 2.171875 | 2 | [] | no_license | package com.walke.dbdemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.walke.dbdemo.db.dao.OriginDaoTest;
import com.walke.dbdemo.db.dao.UserDao;
import butterknife.ButterKnife;
... | true |
6c28ce254abc38666d4a9da51adb7d72b21ff90b | Java | Terasology/Cities | /src/test/java/org/terasology/cities/bldg/DebugRasterTarget.java | UTF-8 | 2,917 | 2.109375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2015 MovingBlocks
*
* 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... | true |
0304f085b78c4ca190dad01ec59957e8ce8227c5 | Java | freegroup/Open-jACOB | /apps/jacob.shorti/java/de/shorti/baseknowledge/objects/_dbCompany.java | UTF-8 | 11,047 | 2.453125 | 2 | [] | no_license | package de.shorti.baseknowledge.objects;
/**
* Class generated by automatic ClassGenerator
* Date: Sat May 11 21:15:21 GMT+02:00 2002
*/
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.util.ArrayList;
class _dbCompany extends dbObject
{
String contactPerson_id; // Foreign Key pointin... | true |
9a56c462289e7b9b5b8cd4d8aad8eafce98de426 | Java | soumya2017/connect_mobile | /java/com/northgateis/gem/bussvc/submitcontact/functest/CreateContactEventReportedByVictimDcFuncTest.java | UTF-8 | 2,890 | 2.34375 | 2 | [] | no_license | package com.northgateis.gem.bussvc.submitcontact.functest;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.northgateis.gem.bussvc.framework.test.BusSvcStoryAcceptanceCriteriaReference;
import com.northgateis.gem.bussvc.pole.utils.PoleDtoUtils;
import com.northgateis.pole.schema.C... | true |
0701f29cee1d6d1ba248643a75ed2f1bf57f2cb9 | Java | imdevan/Java-Code-Problems | /Final Review/Q28 Longest Compund Word/src/com/company/Trie.java | UTF-8 | 1,921 | 3.609375 | 4 | [] | no_license | package com.company;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created by Devan on 1/13/2015.
*/
public class Trie {
Character letter;
// Some kind of data structure of children
HashMap<Character, Trie> children;
boolean isTerminal;
public Trie(){
letter = null;
... | true |
5312bd683e68dd8e29602b911ca85eecf76de4ee | Java | Gulnaz1304/Amirkhanova_11-807 | /homw03/src/HW33.java | UTF-8 | 644 | 3.34375 | 3 | [] | no_license | import java.util.Scanner;
public class HW33 {
public static void main(String[] args) {
Scanner n = new Scanner(System.in);
System.out.println("введите длину массива");
int dl = n.nextInt();
int arr[] = new int[dl];
System.out.println("введите элементы массива");
for (... | true |
76be80874c64feeded0857df91d7d978c635f6e5 | Java | jikimee64/CODEV21-BACK | /src/test/java/com/j2kb/codev21/domains/board/controller/BoardControllerTest.java | UTF-8 | 22,304 | 1.5625 | 2 | [] | no_license | package com.j2kb.codev21.domains.board.controller;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;
import static org.springframework.restdocs.headers.HeaderDocumentation.hea... | true |
48de6f3fbed95abfde913171373bce8d32887808 | Java | laxman-rana/leet-code-may-challenge | /leet-code/src/com/lc/may/challenge/ConstructBSTPreorderTraversal.java | UTF-8 | 1,308 | 3.9375 | 4 | [] | no_license | package com.lc.may.challenge;
/*Return the root node of a binary search tree that matches the given preorder traversal.
(Recall that a binary search tree is a binary tree where for every node, any descendant of node.left has a value < node.val, and any descendant of node.right has a value > node.val. Also recall tha... | true |
fdbf2d7bf939f82a80cc2a9328853650b45a59b4 | Java | uap87/MovieSearchEngine_BST | /Movie.java | UTF-8 | 7,371 | 3.875 | 4 | [] | no_license | package project6;
import java.util.ArrayList;
/**
* This class represents a Movie.
* It consists of two constructors.
* Each Movie is required(required to create a Movie Object) to have the following:
* - Title
* - Year
* The following is optional for each Movie:
* - Director
* - Writer
* - Actors
*
... | true |
0f58ad04508092bc7d5d483ed4958178f5cfac53 | Java | kaiicheng/Java | /ArraySort.java | UTF-8 | 620 | 4.15625 | 4 | [
"MIT"
] | permissive | import java.util.Arrays;
public class ArraySort {
public static void main(String[] args) {
// sort
int [] a = {9, 8, 7, 2, 3, 4, 1, 0, 6, 5};
Arrays.sort(a);
System.out.println("Array a:");
for (int i = 0; i < a.length; i++) {
// 0 1 2 3 4 5 6 7 8 9
System.out.print(a[i] + " ");
}
System... | true |
55f11dfe808bae83f79077b9818073e0f54401d5 | Java | owolabiezekiel/JERSEY-REST | /src/main/java/com/fitn/app/ws/io/dao/DAO.java | UTF-8 | 955 | 2.03125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.fitn.app.ws.io.dao;
import com.fitn.app.ws.shared.dto.TransactionDTO;
import com.fitn.app.ws.shared.dto.UserDTO;
import ja... | true |
69d358179baa22b80199af8d16edfaf8ed0d3736 | Java | stuyboy/joeloco | /app/src/main/java/com/joechang/loco/ProfileActivity.java | UTF-8 | 1,229 | 2.203125 | 2 | [] | no_license | package com.joechang.loco;
import android.content.Intent;
import android.os.Bundle;
import com.joechang.loco.fragment.ProfileFragment;
import com.joechang.loco.model.User;
/**
* Author: joechang
* Date: 12/30/14
* Purpose: Activity holding profile setting fragments.
*/
public class ProfileActivity extends Ba... | true |
714e729edc4855638f2bc237374c799c7340421f | Java | azzdinemj/edu-crmclub | /educrm-api/src/main/java/com/wuxue/api/controller/course/QuestionsPaperController.java | UTF-8 | 1,340 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.wuxue.api.controller.course;
import com.wuxue.api.interfaces.IDeleteController;
import com.wuxue.api.interfaces.IFindController;
import com.wuxue.api.interfaces.ISaveController;
import com.wuxue.api.service.QuestionsPaperService;
import com.wuxue.model.QuestionsPaper;
import com.wuxue.utils.contract.Reques... | true |
c33a31415a19c925287847a3be06281578e4d888 | Java | nasa/GMSEC_API | /java/gov/nasa/gsfc/gmsec/api5/field/StringField.java | UTF-8 | 2,390 | 2.90625 | 3 | [] | no_license | /*
* Copyright 2007-2023 United States Government as represented by the
* Administrator of The National Aeronautics and Space Administration.
* No copyright is claimed in the United States under Title 17, U.S. Code.
* All Rights Reserved.
*/
/**
* @file StringField.java
*/
package gov.nasa.gsfc.gmsec.api5.fie... | true |
f3819e11bef3b6e1e7c244ad5daecb2c537acf33 | Java | gladorange/orion_java_2021 | /Sharafeev/3/orion3/FixPriceShop.java | UTF-8 | 2,024 | 3.109375 | 3 | [] | no_license | package orion3;
import java.util.LinkedList;
import java.util.Random;
public class FixPriceShop {
public static final int UPPER_HOUR = 20;
public static final int LOW_HOUR = 8;
public static final int UPPER_ITEM_PRICE = 150;
public static final int LOW_ITEM_PRICE = 10;
public stat... | true |
3581c2d55a5e1418a7affd2925e5b03c673bf3a7 | Java | shmilyyuanyue/dailytest2 | /src/jietiwenti/Solve2.java | UTF-8 | 687 | 2.953125 | 3 | [] | no_license | package jietiwenti;
import java.util.Scanner;
public class Solve2 {
public static int jumpFloor(int target) {
if(target<=0)
return 0;
if(target==1)
return 2;
if (target==2)
return 2;
int first = 1;
int second = 2;
int third = 0;
... | true |
85afe0659d61fb529c7dfbbc9818002618371310 | Java | RifatG/WeatherTest | /src/test/java/Pages/GismeteoPage.java | UTF-8 | 1,945 | 2.421875 | 2 | [] | no_license | package Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
... | true |
add62043906b7b314cbf8bdb696e912d87b46b5f | Java | P79N6A/channelPermission | /purchase-data-api/src/main/java/com/haier/purchase/data/service/PurchaseCrmOrderManualService.java | UTF-8 | 3,295 | 1.9375 | 2 | [] | no_license | /**
* Copyright (c) mbaobao.com 2011 All Rights Reserved.
*/
package com.haier.purchase.data.service;
import java.util.List;
import java.util.Map;
import com.haier.purchase.data.model.CrmOrderManualDetailItem;
import com.haier.purchase.data.model.CrmOrderManualItem;
/**
*
* @Filename: Crm... | true |
fd4cb465cc183f57635aa93f2cacfcad0215be74 | Java | fengxiaozheng/electric | /electric/src/main/java/com/example/administrator/powerpayment/activity/mvp/ui/fragment/gov/GovWebFragment.java | UTF-8 | 8,611 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.administrator.powerpayment.activity.mvp.ui.fragment.gov;
import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.annotati... | true |
283d407503c8cd9b719b0f98dc4f996dfd17b550 | Java | dhamibirendra/nuxeo-features | /nuxeo-platform-publisher/nuxeo-platform-publisher-core/src/main/java/org/nuxeo/ecm/platform/publisher/remoting/server/SimpleExternalDocumentModelFactory.java | UTF-8 | 3,437 | 1.835938 | 2 | [] | no_license | /*
* (C) Copyright 2006-2009 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.... | true |
bbd261f765f1bc267e251dcc042c391fa6547b36 | Java | A0L0XIIV/Eclipse-Epsilon-Astah-GSN-Driver | /org.eclipse.epsilon.emc.astahgsn.dt/src/org/eclipse/epsilon/emc/astahgsn/dt/GsnModelConfigurationDialog.java | UTF-8 | 4,109 | 1.757813 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012 The University of York.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | true |
538ffb2d3761933833da4ea29f78cdeb1e83e77f | Java | serota/war-card-game | /Player.java | UTF-8 | 586 | 3.109375 | 3 | [] | no_license |
public class Player {
private LLQueue hand;
private String name;
public Player(String name) {
hand = new LLQueue();
this.name = name;
}
public void pickUp(PlayingCard card) {
hand.offer(card);
}
public PlayingCard playFromTop() {
if(hand.isEmpty())
return null;
return (Pl... | true |
34f96d7d361beeb09b1e529a031f02a6fe8917f0 | Java | vikpandey/GraphAlgorithms | /src/dijkstraAlgorithm/DijkstraAlgorithm.java | UTF-8 | 1,099 | 3.34375 | 3 | [
"MIT"
] | permissive | package dijkstraAlgorithm;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.PriorityQueue;
public class DijkstraAlgorithm {
public void computePath(Vertex sourceVertex) {
sourceVertex.setDistance(0);
PriorityQueue<Vertex> priorityQueue = new PriorityQueue<>();
... | true |
a2c965fb8ee9f1724f51ecbd2dea431172531357 | Java | zamedic/MorseMonkey | /src/main/java/com/marcarndt/morsemonkey/telegram/alerts/command/comandlets/authDetails/AddPasswordDetails.java | UTF-8 | 1,414 | 2.359375 | 2 | [] | no_license | package com.marcarndt.morsemonkey.telegram.alerts.command.comandlets.authDetails;
import com.marcarndt.morsemonkey.services.SSHService;
import com.marcarndt.morsemonkey.services.StateService.State;
import com.marcarndt.morsemonkey.telegram.alerts.MorseBot;
import com.marcarndt.morsemonkey.telegram.alerts.command.coman... | true |
6399a9595fc74af1479c74b038f6811616d5d2f8 | Java | DaniMain/DiaDia | /src/it/uniroma3/diadia/ambienti/StanzaBuia.java | WINDOWS-1252 | 1,005 | 3.484375 | 3 | [] | no_license | package it.uniroma3.diadia.ambienti;
/**
* Classe StanzaBuia - una stanza buia in un gioco di ruolo.
* Estensione della classe Stanza in modo tale che la stanza
* buia e non vi pu essere visto nulla a meno che non vi
* presente un attrezzo (impostato nel scostruttore) che la illumini.
*
* @author Daniele Mai... | true |
4b68e126bdd8aedd47da3a7896b6daead90d639c | Java | bsiele/kcep-mis | /src/main/java/ke/co/miles/kcep/mis/requests/farmer/farmactivity/FarmActivityRequestsLocal.java | UTF-8 | 2,496 | 2.34375 | 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 ke.co.miles.kcep.mis.requests.farmer.farmactivity;
import java.util.List;
import javax.ejb.Local;
import ke.co.miles.kcep.mis.... | true |
14e5418e2c554db63fd6ea7031a8ce1c5ff39234 | Java | Yok38/BTSMS | /BTSMS/src/com/example/btsms/OutputInterface.java | UTF-8 | 1,506 | 3.09375 | 3 | [] | no_license | package com.example.btsms;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
public class OutputInterface extends Thread {
private final int MAX_DATA_SIZE;
private OutputStream out;
public OutputInterface(OutputStream out, int packetSize) {
MAX_DATA_SIZE = packetSize-3;
this... | true |
cac89261e30c697803a40a540325e812b0c58b85 | Java | P79N6A/icse_20_user_study | /methods/Method_26983.java | UTF-8 | 112 | 2.203125 | 2 | [] | no_license | @Override void takePicture(){
if (mAutoFocus) {
lockFocus();
}
else {
captureStillPicture();
}
}
| true |
c0c7c81e41a3150544f95e312c2fbba83ce04820 | Java | Rajskij/gpu-list-parser | /src/main/java/ua/gpu/seeker/controller/command/CommandContainer.java | UTF-8 | 758 | 2.1875 | 2 | [] | no_license | package ua.gpu.seeker.controller.command;
import java.util.Map;
import java.util.TreeMap;
import java.util.logging.Logger;
public class CommandContainer {
private static final Logger log = Logger.getLogger(String.valueOf(CommandContainer.class));
private static Map<String, Command> commands = new TreeMap<Str... | true |
d47b93f8f9574f0c1e0410ea9fda811a046fd99c | Java | Sl-niko/MAD-project | /app/src/main/res/drawable-v24/version4/version3/Madmini/app/src/main/java/com/example/madmini/ChangePassword.java | UTF-8 | 4,127 | 2.21875 | 2 | [] | no_license | package com.example.madmini;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms... | true |
2cc54f7f6a183d24170440261f060ea6031b4f5f | Java | SOM-Research/temporal-emf-benchmarks-ER-2018 | /plugins/edu.uoc.som.tll.xmi/src/tll/impl/ComponentImpl.java | UTF-8 | 10,735 | 1.640625 | 2 | [] | no_license | /**
*/
package tll.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import o... | true |
88ec1ddf7d72f78e1810b455086c0ec88509de63 | Java | Terasology/GooeyDefence | /src/main/java/org/terasology/gooeyDefence/towers/components/TowerComponent.java | UTF-8 | 1,293 | 2.28125 | 2 | [] | no_license | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.gooeyDefence.towers.components;
import com.google.common.collect.Sets;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.gestalt.entitysystem.component.Component;
import org.terasol... | true |
49bad06452494188a64e22db7b82ce6f9c53f720 | Java | as12334/xy-creditbox | /common/java/so/wwb/creditbox/reptile/ReadPage.java | UTF-8 | 4,475 | 2.390625 | 2 | [] | no_license | package so.wwb.creditbox.reptile;
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.params.HttpMethodParams;
i... | true |
b7fbc36d3fcdefacfa4ca881ccb38c35cccc2e86 | Java | Daniele95/corsoJava | /thread/sincronizzazione/Tabella.java | UTF-8 | 307 | 2.921875 | 3 | [] | no_license | package com.gft.esempi.thread.sincronizzazione;
public class Tabella {
synchronized void stampa(int n) {
for( int i = 1; i <= 5; i++ ) {
System.out.println( n * i );
try {
Thread.sleep( 2000 );
} catch ( InterruptedException e ) {
System.out.println( e.getMessage() );
}
}
}
}
| true |
6b7608398067dd8c070416d3e7a87892110e6e88 | Java | February13/OJ_Guide | /有OJ/刷题指南(包含leetcode, POJ, PAT等)/hdu/h3632___一排选人___相邻比较___四维dp.java | GB18030 | 1,785 | 3.046875 | 3 | [] | no_license | import java.awt.*;
import java.io.*;
import java.util.*;
public class h3632___һѡ___ڱȽ___άdp {
static BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
static StreamTokenizer in = new StreamTokenizer(br);
static StringTokenizer stoke;
static PrintWriter out = new PrintWriter(new OutputSt... | true |
9a0149ebcd2aea8646b81a5b484453016364887c | Java | dksqjq4851/javastudy | /workspace/05_class/src/ex01_user_type/MainClass.java | UTF-8 | 900 | 4.125 | 4 | [] | no_license | package ex01_user_type;
public class MainClass {
public static void main(String[] args) {
// 클래스 Person을 타입으로 하는 "객체"를 생성합니다.
/*
1. 타입 : Person
2. 객체 : p1
*/
Person p1 = new Person();
//클래스에 포함된 멤버(필드, 메소드)는 마침표(,)를 이용해서 호출합니다.
System.out.println(p1.name);
System.out.println(p1.age);
Sys... | true |
2e0bc8813255d82a98d31754a0311410dd0b4f8e | Java | frischHWC/spring_boot_example | /src/main/java/com/cloudera/frisch/controller/SimpleController.java | UTF-8 | 757 | 2.40625 | 2 | [] | no_license | package com.cloudera.frisch.controller;
import com.cloudera.frisch.service.SimpleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/app")
public class Sim... | true |
9bdc3aca428f97ca4f4b455202bb294494e3959a | Java | udit19120/Color_Switch | /src/RectangleBall.java | UTF-8 | 1,161 | 2.703125 | 3 | [] | no_license | package sample;
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rect... | true |
dc0042997250614f64c60f12a05b1c09721dd242 | Java | mowangblog/Java-Learn | /src/top/mowangblog/code/exercise/HashMapExercise.java | UTF-8 | 1,359 | 3.3125 | 3 | [] | no_license | package top.mowangblog.code.exercise;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
/**
* JavaStudy
* hashmap练习
*
* @author : Xuan Li
* @date : 2021-09-11 21:30
**/
@SuppressWarnings("all")
public class HashMapExercise {
public static void main(String[] arg... | true |
e72dc75f1148b84aea3c0fa06ea62cc32554513a | Java | AmritSDutta/DataStructuresAndAlgorithms | /src/main/java/com/interviewbit/assignment/miscellaneous/PrintNumbersUsingNThreads.java | UTF-8 | 2,565 | 4.25 | 4 | [] | no_license | package com.datastructures;
import java.util.concurrent.Semaphore;
/*
This program prints numbers from 1 to N using M threads.
Thread i prints number X, and Thread i+1 prints number X + 1 etc
When N = M, each thread prints number only once
*/
public class PrintNumbersUsingNThreads {
public static int... | true |
deac85d88d2560b0438341f507cc61c14942b7b6 | Java | abalanonline/ab-spring-cloud-stream-binder-bunny | /src/main/java/info/ab/bunnymq/BunnyMessageChannelBinder.java | UTF-8 | 2,273 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Aleksei Balan
*
* 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 t... | true |
b624ee68469a72059086b67c7d02499b74546c44 | Java | TechnikumWienAcademy/Terminologieserver | /PUB/PubTermAdmin/src/java/de/fhdo/gui/admin/modules/Import.java | ISO-8859-2 | 4,836 | 1.773438 | 2 | [] | no_license | /*
* CTS2 based Terminology Server and Terminology Browser
* Copyright (C) 2013 FH Dortmund: Peter Haas, Robert Muetzner
* government-funded by the Ministry of Health of Germany
* government-funded by the Ministry of Health, Equalities, Care and Ageing of North Rhine-Westphalia and the European Union
*
* This p... | true |
2005aa264d1621765a540a43c5ddb7cb40237d7d | Java | horlicks-hung/PlatinumUtils | /src/test/java/com/platinum/utils/test/TestSmallStringUtils.java | UTF-8 | 450 | 2.375 | 2 | [] | no_license | package com.platinum.utils.test;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.platinum.utils.SmallStringUtils;
public class TestSmallStringUtils {
@Test
public void test半形轉全形() {
String original = "台北市abc街11號";
String expected = "台北市abc街11號";
String result = Sm... | true |
822a994769cc4c8c1dc2aa32fa382a8b739e95b7 | Java | yanglfm/Idea | /src/com/day02/Products/TestProducts.java | GB18030 | 553 | 3.125 | 3 | [] | no_license | package com.day02.Products;
public class TestProducts {
public static void main(String[] args) {
//
Shelf shelf = new Shelf(10);
//峧߳
Factory f1 = new Factory("1", shelf, 10);
Factory f2 = new Factory("2", shelf, 10);
Factory f3 = new Factory("3", shelf, 10);
//˿߳
Customter c1 = new Customter("... | true |
1da7a05b321def016a97cf9d992905c8305a133f | Java | fiveplus/cloud | /src/main/java/com/cloud/controller/UserController.java | UTF-8 | 8,697 | 1.976563 | 2 | [] | no_license | package com.cloud.controller;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
imp... | true |
9c34a0c647805695e032d1148b10544e28a1e442 | Java | Zhi-BeYourHero/neu-g02-huluwa-boss-exam-platform | /boss-xtrain-system/boss-xtrain-system-dao/src/main/java/com/boss/bes/system/dao/impl/RoleResourceDaoImpl.java | UTF-8 | 3,706 | 1.921875 | 2 | [] | no_license | package com.boss.bes.system.dao.impl;
import com.boss.bes.system.dao.RoleResourceDao;
import com.boss.bes.system.entity.RoleResource;
import com.boss.bes.system.mapper.RoleResourceMapper;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.weekend.Weekend... | true |
6aa01082606107a33b2a0b13e072e69630fb43e5 | Java | metinsanli/wissen-akademie | /Java_08_Inheritance/E04_OVERRIDE/Personel.java | UTF-8 | 1,619 | 2.828125 | 3 | [] | no_license | package E04_OVERRIDE;
import java.util.Locale;
public class Personel {
protected String ad;
protected String soyad;
public String tcKimlik;
private Double sabitMaas = 0.0;
public Personel() {
} // end constructor DEFAULT
public Personel(String persAd, String persSoyad, double persMaas) {
this.ad = persAd... | true |
b9f2c3f5928f0d3320163636be309d208d0bacb0 | Java | boluozhai/snowflake | /snowflake8/projects/snowflake-xgit/src/main/java/com/boluozhai/snowflake/xgit/refs/Ref.java | UTF-8 | 258 | 1.757813 | 2 | [
"MIT"
] | permissive | package com.boluozhai.snowflake.xgit.refs;
import com.boluozhai.snowflake.xgit.ObjectId;
public interface Ref {
String getName();
boolean exists();
boolean delete();
void setId(ObjectId id);
ObjectId getId();
ObjectId getId(boolean reload);
}
| true |
345d9a46065a0d08cd75d0358fbf09c82e3b030d | Java | mariyamyaseen11/eshop | /shopping/src/main/java/com/spring/controller/Demo.java | UTF-8 | 739 | 3.21875 | 3 | [] | no_license | package com.spring.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Demo {
public static void main(String args[]) throws IOException {
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//System.out.println("Enter S... | true |
ccebe5234ec66bffb15b53ff750e56b40e303c04 | Java | vgdias/estudo-spring-rest-jpa | /src/main/java/org/example/api/rest/domain/service/FormaPagamentoService.java | UTF-8 | 2,965 | 2.34375 | 2 | [] | no_license | package org.example.api.rest.domain.service;
import static org.example.api.rest.api.exceptionhandler.ErrorMessage.FORMA_PAGAMENTO_POR_ID_EM_USO;
import static org.example.api.rest.api.exceptionhandler.ErrorMessage.FORMA_PAGAMENTO_POR_ID_NAO_ENCONTRADA;
import static org.example.api.rest.api.exceptionhandler.ErrorMessa... | true |
94e0b66957ad99d60268277c8bcffe56f982a067 | Java | aleAl0nso/ee_p02_zip | /Comprimir/src/ColaPrioridad.java | UTF-8 | 2,981 | 3.15625 | 3 | [] | no_license |
public class ColaPrioridad<T> {
private Nodo<T> inicio;
private Nodo<T> fin;
ColaPrioridad(){
inicio=null;
fin=null;
}
public boolean estaVacia(){
return inicio==null;
}
public boolean agregar(Letra<T> letra){
Nodo<T> nuevo =new ... | true |
9a72d3c71e61b37c52d067f5056ba86489a29c7e | Java | TachiaHenry/CECS343-TermProject | /src/Department.java | UTF-8 | 977 | 2.859375 | 3 | [] | no_license |
public class Department {
private int departmentID;
private String departmentName;
private int departmentHeadID;
public Department(int departmentID, String departmentName, int departmentHeadID) {
super();
this.departmentID = departmentID;
this.departmentName = departmentName;
this.departmentHea... | true |
ef4641aad1401fdb044ef47cddd0116e1fab2ca4 | Java | cjj512/springboot-demo | /src/main/java/com/cjj/stuspringbootdemo/service/impl/UserServiceImpl.java | UTF-8 | 1,174 | 2.109375 | 2 | [] | no_license | package com.cjj.stuspringbootdemo.service.impl;
import com.cjj.stuspringbootdemo.dao.UserMapper;
import com.cjj.stuspringbootdemo.domain.Role;
import com.cjj.stuspringbootdemo.domain.User;
import com.cjj.stuspringbootdemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
70132c3f7e8c6fbcfc586d192a8520aeaa4ed9ec | Java | ArthursGitHub/Book_Keith-ProJPA2 | /src_repos/2018/examples/Chapter11/20-dynamicEntityGraphMapKey/src/model/examples/model/Department.java | UTF-8 | 1,819 | 2.875 | 3 | [] | no_license | package examples.model;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.MapKey;
import javax.persistence.NamedEntityGraph;
import javax.persistence.NamedAttributeNode;
import javax.persistence.NamedSubg... | true |
5eb0dcf0778f077d2b34cb745a74afa632b8bd61 | Java | nicolausboby/ArkavQuarium-2 | /test/Animal/GuppyTest.java | UTF-8 | 2,845 | 2.90625 | 3 | [] | no_license | /*
* ArkavQuarium
*
*/
package Animal;
import Coin.Coin;
import Food.Food;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author mark
*/
public class GuppyTest {
public GuppyT... | true |
345d27ed84ce195bc693b66dfa05f3bde1ce13eb | Java | easyfool/learning-spring | /src/test/java/com/wangfengbabe/learning_spring/instantiation/withConstructor/CarTest.java | UTF-8 | 1,805 | 2.6875 | 3 | [] | no_license | package com.wangfengbabe.learning_spring.instantiation.withConstructor;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWit... | true |
8ee6611c97ca35fc3f5611e76ffdc95ac719dac1 | Java | Asendo316/Fleek | /app/src/main/java/cordiscorp/com/fleek/model/response/music_response/TopTracksGeoTrack.java | UTF-8 | 2,324 | 1.78125 | 2 | [] | no_license | package cordiscorp.com.fleek.model.response.music_response;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Ibkunle Adeoluwa on 2/27/2019.
*/
public class TopTracksGeoTrack {
@SerializedName("name")
@Expose
private ... | true |
c728fbc7637540767a36b44526dd7915048982fe | Java | thaond/nsscttdt | /src/ext-lltnxp/ext-impl/src/com/sgs/portlet/sovanbannoibo/search/PhongBanDisplayTerms.java | UTF-8 | 1,384 | 1.96875 | 2 | [] | no_license | package com.sgs.portlet.sovanbannoibo.search;
import javax.portlet.RenderRequest;
import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;
public class PhongBanDisplayTerms extends DisplayTerms {
public static final String DEPARTMENTSCODE = "departmentsCod... | true |
827f92e3177fb5a4a5e2e6f4e106002ab0984230 | Java | miryokuu/APCSA2019 | /Term 1/Assignments/T1_Assignment1.java | UTF-8 | 1,890 | 3.515625 | 4 | [
"MIT"
] | permissive | import java.util.Scanner;
/*
* Rename this class to Main!
*/
final class T1_Assignment1 {
public static final String TEMPLATE_STRING = "Average website rating: %.15f\n"
+ "Average focus group rating: %.1f\n" + "Average movie critic rating: %.2f\n"
+ "Overall movie rating: %.14f";
pub... | true |
b0702033f03a1d2c3548908531e3ac453d111c3b | Java | wimiDev/mybatistest | /mybatis-04/src/test/java/com/aluosu/dao/UserTest.java | UTF-8 | 1,531 | 2.28125 | 2 | [] | no_license | package com.aluosu.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import com.aluosu.pojo.User;
import com.aluosu.utils.MyBatisUtil;
public class UserTest {
@Test
public void test() {
SqlS... | true |
0ad915e7b66a0f3577770a3a0378cafce2f5e7ca | Java | jenkinsci/anchore-container-scanner-plugin | /src/main/java/com/anchore/jenkins/plugins/anchore/ConsoleLog.java | UTF-8 | 1,940 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package com.anchore.jenkins.plugins.anchore;
import hudson.AbortException;
import java.io.PrintStream;
import java.util.Date;
import java.util.logging.Logger;
/**
* Logging mechanism for outputting messages to Jenkins build console
*/
public class ConsoleLog {
private static final Logger LOG = Logger.getLogger(C... | true |
99b9eeb9f91926e1ca63e601924c2133301e366c | Java | lyapizz/graphLib | /src/demo/domain/Graph.java | UTF-8 | 1,249 | 3.109375 | 3 | [] | no_license | package demo.domain;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Graph<V> {
private final Map<V, LinkedList<V>> adjacencyMap = new HashMap<>();
private final boolean isDirected;
public Graph(boolean isDirected) {... | true |
6fa2569a07e3c389984beb7d0fbb6b81e5a9b6a5 | Java | team4015/FRC4015-2020 | /src/main/java/frc/robot/subsystems/ShooterSubsystem.java | UTF-8 | 1,444 | 2.171875 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
8ac856dab31576fdecf7280c1fede26b11c66fbd | Java | adityax10/Projects | /Android Projects/xPoject/src/com/example/xpoject/callDetection_MainActivity.java | UTF-8 | 2,521 | 2.484375 | 2 | [] | no_license | package com.example.xpoject;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
/**
* Main act... | true |
5bd31976a2a996054fdcde8c86c9ad4cd959390a | Java | kimsjun/teamb-bookinglist | /src/main/java/movieTicket/BookedSeat.java | UTF-8 | 614 | 2.359375 | 2 | [] | no_license | package movieTicket;
public class BookedSeat extends AbstractEvent {
private Long seatId;
private String seatStatus;
private Long bookingId;
public Long getSeatId() {
return seatId;
}
public void setSeatId(Long seatId) {
this.seatId = seatId;
}
public String getSeatSt... | true |
04ec27d822da3d0db61980cacb96abd97c31a7d5 | Java | sampathracherla/Projects | /CucumberTest/src/cucumber/features/StepDefinitions.java | UTF-8 | 1,174 | 2.390625 | 2 | [] | no_license | package cucumber.features;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class StepDefinitions {
WebDriver driver;
@Gi... | true |
8071faa1536a52dbde7b368951f41bde0f117077 | Java | bretama99/Android-based-contact-form | /app/src/main/java/br/register1/MainActivity.java | UTF-8 | 4,580 | 2.34375 | 2 | [] | no_license |
package br.register1;
import android.database.Cursor;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity ex... | true |
010a2e82554bbb3a32855904922a1091a24cd004 | Java | cedarjo/DesignPattern | /src/main/java/com/cedar/designpattern/state/improve/Client.java | UTF-8 | 509 | 2.71875 | 3 | [] | no_license | package com.cedar.designpattern.state.improve;
public class Client {
public static void main(String[] args) {
CandyMachine candyMachine = new CandyMachine(20);
candyMachine.printState();
candyMachine.insertCoin();
candyMachine.printState();
candyMachine.turnCrank();
... | true |
2568baa78ae273621a5788065a8eb14ceb1d0436 | Java | marboro/domino-mock | /domino-mock/src/org/openntf/domino/mock/interfaces/NotesItem.java | UTF-8 | 5,750 | 1.648438 | 2 | [] | no_license | package org.openntf.domino.mock.interfaces;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.util.Vector;
import org.openntf.domino.mock.Exception.NotesApiException;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
public interface NotesItem extends NotesBase {
... | true |
917d6754e1b4c92450d296d68f048b7900a36c9d | Java | yiduiyi/xiaoyi | /workspace/manager/src/test/java/test.java | UTF-8 | 6,391 | 2.296875 | 2 | [] | no_license |
import java.io.*;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import org.apache.commons.lang.RandomStringUtils;
public class test {
pu... | true |
4c31e69778f505b3990dd48b218f14421ad98c46 | Java | GitAmrita/Algorithm | /CrackingTheCode/src/FiveStarPhoneInterview/FibonacciSeriesDynamicProgramming.java | UTF-8 | 692 | 3.421875 | 3 | [] | no_license | package FiveStarPhoneInterview;
import java.util.Arrays;
/**
* Created by amritachowdhury on 6/8/17.
*/
public class FibonacciSeriesDynamicProgramming {
public void run() {
int[] series = getFibonacciNumber(6);
System.out.println(Arrays.toString(series));
}
private int[] getFibonacciNu... | true |
cd7d98ba8bc7a4c49ee8a2eca2bd65139f6b763a | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_26e79009febd91077a9f58f18b97cd1c7c2fe1bb/ChatClient/2_26e79009febd91077a9f58f18b97cd1c7c2fe1bb_ChatClient_s.java | UTF-8 | 8,543 | 2.453125 | 2 | [] | no_license | package client;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Group;... | true |
a23b8972b855499b0c8cd00b9d6f1b4862d7c339 | Java | mustafakayauta/Btrix24 | /src/test/java/com/Btrix/pages/TaskPage.java | UTF-8 | 908 | 1.71875 | 2 | [] | no_license | package com.Btrix.pages;
import com.Btrix.Utilities.BasePage;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class TaskPage extends BasePage {
@FindBy(className = "ui-btn-main")
public WebElement newTaskButtonLocator;
@FindBy(xpath= "//div[@class='task-info-pan... | true |
30f56d22c4853780284f91edc2fe436cfdf4b504 | Java | TheDiffi/wwBot | /src/main/java/wwBot/WerwolfGame/cards/Role.java | UTF-8 | 2,431 | 2.34375 | 2 | [] | no_license | package wwBot.WerwolfGame.cards;
import wwBot.Globals;
import wwBot.WerwolfGame.Game;
import wwBot.WerwolfGame.Player;
import wwBot.WerwolfGame.GameStates.AutoState;
public class Role {
public Card specs;
public String name;
public DeathDetails deathDetails;
public Player inLoveWith;
Role(String... | true |
cec80efd2478a086ebd41455ff056dd2de33ccd8 | Java | wananxin/MeetQuickly | /MeetQuickly/app/src/main/java/com/andy/meetquickly/bean/UnpayOrderBean.java | UTF-8 | 12,349 | 1.648438 | 2 | [] | no_license | package com.andy.meetquickly.bean;
/**
* @Author: created by Andy
* @CreateDate: 2019/5/31 15:33
* 描述:
*/
public class UnpayOrderBean {
/**
* activityId : null
* address : 芙蓉路
* adminVerify : null
* affirmOrder : null
* area : 开福区
* cashCouponProportion : 1.5
* cashCouponRe... | true |
6d13949794c7fcf51750782f9c216a6e96a166b7 | Java | Lorac/RoomReservation | /restapi/src/test/java/ca/ulaval/ift6002/sputnik/interfaces/rest/resources/RoomRequestResourceTest.java | UTF-8 | 1,797 | 2.140625 | 2 | [
"MIT"
] | permissive | package ca.ulaval.ift6002.sputnik.interfaces.rest.resources;
import ca.ulaval.ift6002.sputnik.applicationservice.reservations.ReservationApplicationService;
import ca.ulaval.ift6002.sputnik.domain.core.mailbox.Mailbox;
import ca.ulaval.ift6002.sputnik.domain.core.request.Priority;
import ca.ulaval.ift6002.sputnik.doma... | true |
5d7e11ba63b30280878b5c44822585d139e67a4e | Java | AllenCVI/qianduoduo | /app/src/main/java/com/kuxuan/moneynote/ui/activitys/bindphone/BindActivity.java | UTF-8 | 10,579 | 1.898438 | 2 | [] | no_license | package com.kuxuan.moneynote.ui.activitys.bindphone;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.wi... | true |
19adafa1a82f6b9cf34e6db7b2f39299ccdb3912 | Java | lehdqlsl/yourcast | /src/test/java/db/test/broadcastTest.java | UHC | 1,492 | 2.296875 | 2 | [] | no_license | package db.test;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.jun... | true |
5223fc893427b48720cdeefa65a6048c3863d76d | Java | AICP/packages_apps_Settings | /tests/robotests/src/com/android/settings/network/ActiveSubsciptionsListenerTest.java | UTF-8 | 7,511 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
7a078a9b37993f875aa044371f89d57a3e5b79a5 | Java | zihanbobo/tradeplatform | /trade-api/src/main/java/com/converage/architecture/mybatis/interceptor/PageInterceptor.java | UTF-8 | 3,450 | 2.03125 | 2 | [] | no_license | package com.converage.architecture.mybatis.interceptor;
import com.converage.architecture.dto.Pagination;
import com.converage.architecture.mybatis.MybatisMapperParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.executor.parameter.ParameterHandler;
import org.apache.ibatis.executor.statement... | true |
9574cba56e100fca30ef30fc71e1ae6f1db20e3b | Java | tnurasyl/SDU_MAps | /app/src/main/java/kz/sdu/map/sdu_maps/MapsActivity.java | UTF-8 | 19,123 | 1.546875 | 2 | [] | no_license | package kz.sdu.map.sdu_maps;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.location.Address;
import android.location.Geocoder;
import android.lo... | true |
905a65f74553382bfdf708a2472701052bfdab5f | Java | RoyLiuShinetech/coolweather | /src/com/coolweather/app/model/WeatherInfo.java | UTF-8 | 756 | 2.328125 | 2 | [] | no_license | package com.coolweather.app.model;
public class WeatherInfo {
String days;
String citynm;
String weather;
String temp_low;
String temp_high;
public String getDays() {
return days;
}
public void setDays(String days) {
this.days = days;
}
public String getCitynm() {
return citynm;
}
public void setC... | true |
8a76e3dab4329ef6e9477062f8457952dbcb702b | Java | yasinturan/hafta4_EnginDemirogKamp-CoffeeMarket | /src/CompanyService.java | UTF-8 | 66 | 2.171875 | 2 | [] | no_license |
public interface CompanyService {
void add(Company company);
}
| true |
0df01fc8d76e9a66f9046752a29a03dd38d5cdc2 | Java | Aishwaryakotharu/Java-Training | /FinalAmazonProject/src/daoImp/ShopDAOImpl.java | UTF-8 | 7,314 | 2.484375 | 2 | [] | no_license | package daoImp;
//import java.sql.Connection;
//import java.sql.PreparedStatement;
//import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
//import utility.ConnectionUtility;
import utility.HibernateUtility;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Sessi... | true |
af7b8553129fb950aad933b1a64f5356562ed3fd | Java | jeprodev/calculator-demo | /src/module-info.java | UTF-8 | 471 | 1.5 | 2 | [] | no_license | module jeprodev.calculator{
requires java.base;
requires javafx.base;
requires javafx.fxml;
requires javafx.graphics;
requires javafx.controls;
requires org.apache.logging.log4j;
requires org.apache.logging.log4j.core;
requires jeprodev.updater;
exports net.jeprodev.calculator;
... | true |
242b8f5351a8a8a57780ed9098698b92016d27df | Java | RayZhangQA/JavaSeleniumAutoFWK | /src/HashMapping/HashMap03_SortByValue.java | UTF-8 | 3,173 | 3.71875 | 4 | [] | no_license | package HashMapping;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class HashMap03_SortByValue {
public static void main(String[] args) {... | true |
1d3e4b206d1dfd810e3d6fcc48a5554a829982ca | Java | jajadinimueter/zhaw_mini_power_pc | /src/main/java/ch/zhaw/inf3/fmuellerbfuchs/minipowerpc/impl/operations/AbstractDirectJump.java | UTF-8 | 630 | 2.484375 | 2 | [] | no_license | package ch.zhaw.inf3.fmuellerbfuchs.minipowerpc.impl.operations;
import ch.zhaw.inf3.fmuellerbfuchs.minipowerpc.Processor;
import ch.zhaw.inf3.fmuellerbfuchs.minipowerpc.impl.util.Util;
/**
*/
public abstract class AbstractDirectJump extends AbstractJump {
protected int adr;
public AbstractDirectJump(String... | true |
a28f90e6a1620f73cf66934258bacb3d2797be2e | Java | Funck-Felipe97/agenda | /src/main/java/agenda/model/HorarioAtendimento.java | UTF-8 | 2,002 | 2.53125 | 3 | [] | no_license | package agenda.model;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Generate... | true |
c2ac2ee955f363c8348506797ac5d5a3b7696a0d | Java | Killaker/Android | /Android Studio Projects/bf.io.openshop/src/android/support/v7/widget/DefaultItemAnimator$8.java | UTF-8 | 1,063 | 1.570313 | 2 | [] | no_license | package android.support.v7.widget;
import android.view.*;
import android.support.v4.view.*;
class DefaultItemAnimator$8 extends VpaListenerAdapter {
final /* synthetic */ ChangeInfo val$changeInfo;
final /* synthetic */ View val$newView;
final /* synthetic */ ViewPropertyAnimatorCompat val$newViewAnimatio... | true |
a1d35f1bdbbacc31a016adde8f759311b4530be4 | Java | kappsegla/Java19 | /src/main/java/puzzles/SingleAndHappy.java | UTF-8 | 297 | 1.945313 | 2 | [] | no_license | package puzzles;
//@FunctionalInterface
//public interface SingleAndHappy extends Single<String>{
//An interface can inherit several methods with same signature.
//But if a default method is is override-equivalent with another method, a compiletime error occurs.
//9.4.1.3 javaspec
| true |
d54acf39ee5879d03415902101ea29a0d1ed0306 | Java | fyshhh/ballsort | /BallSort.java | UTF-8 | 8,894 | 3.015625 | 3 | [] | no_license | /*
v1.0 - input3 takes about 0.24 seconds on pc
Todo:
Remove use of Integer pairs - optimize with custom structures
Explore caching?
Use StringBuilders? - about the same speed
*/
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.uti... | true |
8b6a9d0ac39c2397a7f1f78abff1086ac2542b1b | Java | couchbase/couchbase-jvm-clients | /core-io/src/main/java/com/couchbase/client/core/endpoint/http/CoreHttpResponse.java | UTF-8 | 2,301 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 Couchbase, Inc.
*
* 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 ... | true |
d2d130228f6fbded9574becc9cbad6e6fd8e9dd8 | Java | bmamiri/hacker-rank | /src/interviewpreparationkit/warmupchallenges/SockMerchant.java | UTF-8 | 1,304 | 3.3125 | 3 | [] | no_license | package interviewpreparationkit.warmupchallenges;
import java.util.HashMap;
import java.util.Scanner;
public class SockMerchant {
// Complete the sockMerchant function below.
private static int sockMerchant(int n, int[] ar) {
HashMap inventory = new HashMap<Integer, Integer>();
int matchingPa... | true |