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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3a908b0792ca1f9804f05b8d821a0066d92f33ab | Java | waterwitness/dazhihui | /classes/com/tencent/IMCoreAvInviteCallBack.java | UTF-8 | 644 | 1.796875 | 2 | [] | no_license | package com.tencent;
import com.tencent.av.TIMAvManager;
import com.tencent.imcore.IAvInviteCallBack;
public class IMCoreAvInviteCallBack
extends IAvInviteCallBack
{
private String identifer;
public IMCoreAvInviteCallBack(String paramString)
{
this.identifer = paramString;
swigReleaseOwnership();
... | true |
104229399850a938135882ee9c9408dd3d5b43db | Java | plusmancn/learn-arithmetic | /arithmetic/src/main/java/cn/plusman/arithmetic/leetcode/top/top73/Top73Soulution.java | UTF-8 | 179 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package cn.plusman.arithmetic.leetcode.top.top73;
/**
* @author plusman
* @since 2021/7/14 11:44 PM
*/
public interface Top73Soulution {
void setZeroes(int[][] matrix);
}
| true |
f00e344bfe34f7a4fca6366150d36475edbd9c19 | Java | VizLoreLabs/phasmaFoodMobileApp | /app/src/main/java/com/vizlore/phasmafood/ui/profile_setup/EditProfileFragment.java | UTF-8 | 3,413 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.vizlore.phasmafood.ui.profile_setup;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.Toas... | true |
dc995b52954299a1987a23e00590af1d99b21608 | Java | majm0771/Bancent | /src/com/bancent/common/XMPPConfig.java | UTF-8 | 1,203 | 2.328125 | 2 | [] | no_license | package com.bancent.common;
public class XMPPConfig
{
private String mLoginID = null; //用户名
private String mLoginPWD = null; //用户密码
private String mHostIP = null;// 地址
private int mHostPort = 0;// 端口
private String mServiceName = null;// 服务器名称
public void SetHostIP(String ip)
... | true |
fd1009717c3dc74b1849a41e8735a689dad9b648 | Java | wuyounan/drawio | /huigou-uasp/src/main/java/com/huigou/uasp/bpm/engine/application/impl/ProcApprovalRuleParseServiceImpl.java | UTF-8 | 14,600 | 1.773438 | 2 | [] | no_license | package com.huigou.uasp.bpm.engine.application.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import com.huigou.cache.SystemCache;
import... | true |
1f51e2af103b56c97814f6ebd9ce6fb906ca2229 | Java | wardenlzr/IMChat | /app/src/main/java/com/warden/imchat/utils/DBManager.java | UTF-8 | 14,671 | 2.609375 | 3 | [] | no_license | package com.warden.imchat.utils;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
import com.warden.imchat.dom... | true |
07ae939fd7d4324b66cb99fa4babb9b1b72cfa4d | Java | yusuiked/continuous | /src/test/java/continuous/service/impl/UserServiceImplTest.java | UTF-8 | 2,173 | 2.296875 | 2 | [] | no_license | package continuous.service.impl;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.Date;
import continuous.dao.UserDao;
import continuous.entity.User;
import continuous.service.UserService;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.j... | true |
183e519fd214a121b24af38f0dffd50792c33003 | Java | JaeDe0k/Baby_Temple | /serverNetwork/src/serverNetwork/Initial_Settings.java | UHC | 590 | 2.53125 | 3 | [] | no_license | package serverNetwork;
public class Initial_Settings {
private String serverAddress;
private int TCPport;
private int UDPport;
public Initial_Settings() {
this.serverAddress = "localhost"; //Ʈũ ּ
this.TCPport = 5001; // TCP Ʈ ( ȸ ROOM )
this.UDPport = 5002; // UDP Ʈ ( ǽð Ʈũ )
}
pu... | true |
7b470620bd9a1933fd7e005156e936a350d0738f | Java | troyhart/yardsale | /core-rest/src/main/java/com/myco/rest/ServerSentEventProducerSupport.java | UTF-8 | 3,050 | 2.328125 | 2 | [] | no_license | package com.myco.rest;
import org.axonframework.queryhandling.SubscriptionQueryResult;
import org.slf4j.Logger;
import org.springframework.http.codec.ServerSentEvent;
import reactor.core.publisher.Flux;
import javax.servlet.http.HttpServletResponse;
import java.time.Duration;
public interface ServerSentEventProducer... | true |
0888a932669a6a0099ef4511c692c25193d10093 | Java | ydao10/PLE-2020 | /BatchLayer/src/main/java/bigdata/UnusedClass/CovidEvolution.java | UTF-8 | 4,356 | 2.578125 | 3 | [] | no_license | package bigdata;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org... | true |
8159bd833bb7719d6d73a16c56719f0d34eedfdb | Java | openfact/openfact-plus | /src/main/java/org/clarksnut/services/util/SSOContext.java | UTF-8 | 3,342 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package org.clarksnut.services.util;
import org.keycloak.KeycloakPrincipal;
import org.keycloak.KeycloakSecurityContext;
import org.keycloak.adapters.AdapterDeploymentContext;
import org.keycloak.adapters.KeycloakDeployment;
import org.keycloak.adapters.RefreshableKeycloakSecurityContext;
import org.keycloak.jose.jws.... | true |
9f67db14d5ff0841093b5e1859133158d1449865 | Java | apurba6211/DesignLab | /app/src/main/java/com/techsquad/MainActivity.java | UTF-8 | 578 | 1.835938 | 2 | [] | no_license | package com.techsquad;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
setTheme(R.style.AppTheme);
super.onCreate(sav... | true |
85c5f57571be36f75afc1407b68c14651f416b37 | Java | hyebin-seo/october | /workspace(spring)/01_NonSpring/src/main/java/com/test/nonspring03/MysqlDAO.java | UHC | 234 | 2.0625 | 2 | [] | no_license | package com.test.nonspring03;
public class MysqlDAO implements DAO{
public MysqlDAO() {
System.out.println("MysqlDAO Դϴ.");
}
@Override
public void add() {
System.out.println("MysqlDAO Դϴ.");
}
}
| true |
1ccbc574f141bcc1655ddca39155a0931804b184 | Java | jasbircheema96/eight_puzzle_problem | /src/model/State.java | UTF-8 | 4,378 | 3.640625 | 4 | [] | no_license | package model;
import java.util.ArrayList;
import java.util.List;
import constant.Constants;
public class State {
private int[][] grid;
public int[][] getGrid() {
return grid;
}
public State() {
this.grid = new int[Constants.GRID_SIZE][Constants.GRID_SIZE];
}
State(State state) {
this.grid = new int[C... | true |
d34e3147c7844a25d0e264dd791fdd92e075a43c | Java | rakulav/My-Android-App | /app/src/main/java/com/beamotivator/beam/fragments/NotificationFragment.java | UTF-8 | 4,846 | 2.046875 | 2 | [] | no_license | package com.beamotivator.beam.fragments;
import android.app.ActionBar;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.SwitchCompat;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.wi... | true |
31892f68e13f5e132fce36c9f020c6038f1b5682 | Java | Tonyhui/cookbook | /food_service/src/main/java/com/cookbook/mapper/ShoppingCartMapper.java | UTF-8 | 4,003 | 1.820313 | 2 | [] | no_license | package com.cookbook.mapper;
import com.cookbook.entity.ShoppingCart;
import com.cookbook.enums.Category;
import com.cookbook.enums.OrderStatus;
import com.cookbook.model.OrderModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotyp... | true |
c83c1008e2573c2aa0da79b78eaea4102105c8a7 | Java | armpitfragrance/hwsys | /src/main/java/com/service/impl/TMaterialServiceImpl.java | UTF-8 | 3,282 | 2.203125 | 2 | [] | no_license | package com.service.impl;
import com.dao.impl.TMaterialDaoImpl;
import com.entity.TMaterial;
import com.service.TMaterialService;
import com.utils.Page;
import java.util.List;
/**
* 作者:ysq
* 日期: 2020/12/16 15:40
* 描述:
*/
public class TMaterialServiceImpl implements TMaterialService {
TMaterialDaoImpl tMateri... | true |
73460a1b655f3588622242ef83ce44c2b28d64e3 | Java | alldatacenter/alldata | /olap/kylin/src/query-common/src/main/java/org/apache/kylin/query/util/QueryAliasMatchInfo.java | UTF-8 | 2,205 | 1.789063 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
3e66206cbc96e636f45c285909105c34cabfb347 | Java | nextworks-it/MEC-applications | /MEC012/mec012-client/src/main/java/io/swagger/client/model/RabInfoUeInfo.java | UTF-8 | 3,409 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* ETSI GS MEC 012 - Radio Network Information API
* The ETSI MEC ISG MEC012 Radio Network Information API described using OpenAPI.
*
* OpenAPI spec version: 2.1.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not ed... | true |
bbd3f7f82be3122bc648efea4d770094bac1d662 | Java | BeomjunLee/Algorithm | /src/com/company/string/ReverseString2.java | UTF-8 | 1,375 | 4.09375 | 4 | [] | no_license | package com.company.string;
import java.util.Scanner;
public class ReverseString2 {
/**
* 설명
*
* 영어 알파벳과 특수문자로 구성된 문자열이 주어지면 영어 알파벳만 뒤집고,
*
* 특수문자는 자기 자리에 그대로 있는 문자열을 만들어 출력하는 프로그램을 작성하세요.
*
* 입력
* 첫 줄에 길이가 100을 넘지 않는 문자열이 주어집니다.
*
* 출력
* 첫 줄에 알파벳만 뒤집힌 문자열을 출... | true |
e2bc6e2931ffd84185724e483ea76e6119a4586b | Java | LuQinPeng/Hms_lqp | /LQPhms/src/com/hms/dao/lqp/DrugDaoImp.java | UTF-8 | 2,179 | 2.28125 | 2 | [] | no_license | package com.hms.dao.lqp;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.hms.entity.... | true |
09fa14e185ea2a1ad4b49fa3b076c3d39b449330 | Java | AlexandruSimon1/Tekwill-Courses | /WorkAtLesson/Bar/Bar.java | UTF-8 | 811 | 3.703125 | 4 | [] | no_license | package TekwillCourses.WorkAtLesson.Bar;
public class Bar {
private Integer foo = 15;
static String text = " ";
public Integer getFoo() {
return foo;
}
public void setFoo(Integer foo) {
this.foo = foo;
}
public static int add(int a, int b) {
return a + b;
}
... | true |
973ab51679d03d0d6bbfca5cf5b5bd0228d75ed6 | Java | francis-pouatcha/plhpkix | /plh.pkix.parent/plh.pkix.core/plh.pkix.core.utils/src/org/adorsys/plh/pkix/core/utils/X509CertificateHolderCollection.java | UTF-8 | 1,462 | 2.515625 | 3 | [] | no_license | package org.adorsys.plh.pkix.core.utils;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.util.Arrays;
public class X509CertificateHolderCollection {
private final X509CertificateHolder[] x509CertificateHolders;
public X509CertificateHolderCollection(
X509CertificateHolder[] x509Cert... | true |
8f3c476bd749801e646e4eb94d9a333eb76533cf | Java | aashitasharma/code-kata | /src/main/java/com/harcyah/kata/misc/poker/HighCardComparator.java | UTF-8 | 367 | 2.90625 | 3 | [] | no_license | package com.harcyah.kata.misc.poker;
import java.util.Comparator;
public class HighCardComparator implements Comparator<PokerHand> {
@Override
public int compare(PokerHand left, PokerHand right) {
PokerCard topLeft = left.getCards().get(0);
PokerCard topRight = right.getCards().get(0);
... | true |
337137f55910d2d460d115288e4aa5b5504c5219 | Java | hengyiqun/ip | /src/main/java/duke/Duke.java | UTF-8 | 2,111 | 3.296875 | 3 | [] | no_license | package duke;
import duke.commands.ErrorCommand;
import duke.parser.Parser;
import duke.storage.Storage;
import duke.tasks.TaskList;
import duke.ui.Ui;
import duke.commands.Command;
import java.io.FileNotFoundException;
import java.io.File;
import java.io.IOException;
/**
* Duke allows the user to maintain a list o... | true |
5896ea85bf9e99933218dd01171796dd501780af | Java | JohanF/DatabaseLab | /StudentPortal.java | UTF-8 | 8,216 | 3.40625 | 3 | [] | no_license | import java.sql.*; // JDBC stuff.
import java.io.*; // Reading user input.
public class StudentPortal {
/*
* This is the driving engine of the program. It parses the command-line
* arguments and calls the appropriate methods in the other classes.
*
* You should edit this file in two ways: 1) Insert your data... | true |
2df9d1dabc1b930cf6d77d072d8ad92521c0e245 | Java | ServiceDDS/mote-cloud | /httpserverapp_src/edu/uma/motecloud/apps/pachube/NewSampleListener.java | UTF-8 | 1,963 | 2.453125 | 2 | [] | no_license | package edu.uma.motecloud.apps.pachube;
import java.util.Hashtable;
import MoteCloud.SampleTopic;
import ServiceDDS.servicetopic.ServiceTopic;
import ServiceDDS.servicetopic.ServiceTopicListener;
import edu.uma.motecloud.apps.common.VariableStream;
public class NewSampleListener implements ServiceTopicListe... | true |
2dd72312778e96efb2c5582c6fa1dfec4987cfde | Java | matisses/BCS | /src/java/co/matisses/bcs/rest/DigitoVerificacionREST.java | UTF-8 | 1,699 | 2.5 | 2 | [
"MIT"
] | permissive | package co.matisses.bcs.rest;
import javax.ws.rs.core.Response;
import java.util.logging.Logger;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
impo... | true |
be10b600c224dd8a2780870c8cd31f12af39de6e | Java | C4rlos316/WebPokemon | /app/src/main/java/com/prueba/webpokemon/MainActivity.java | UTF-8 | 3,549 | 2.328125 | 2 | [] | no_license | package com.prueba.webpokemon;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.util.Log;
import com.prueba.webpokemon.Adapter.ListaAda... | true |
11a1408a6690e8d2c0c04fce10f9825bd1087175 | Java | elevy30/spark-kafka-elastic | /src/main/java/skes/kafka/consprodexample/KafkaSourceBean.java | UTF-8 | 1,282 | 2.125 | 2 | [] | no_license | package skes.kafka.consprodexample;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.util.Colle... | true |
1ca59ddc249e0a1aa87600f4819f34e0a3a5a118 | Java | FrancisTheTerrible/someCourse | /src/someCourse/Section_5/LastDigitChecker.java | UTF-8 | 1,516 | 4.1875 | 4 | [] | no_license | package Section_5;
/*
Write a method named hasSameLastDigit with three parameters of type int.
Each number should be within the range of 10 (inclusive) - 1000 (inclusive).
If one of the numbers is not within the range, the method should return false.
The method should return true if at least two of the numbers share th... | true |
34ae0e35a733855ee47c4051442fe989c12dd2d1 | Java | dynastywind/ImageShifter | /ImageShifter/src/main/java/cisc/awas/image_shifter/service/ImageShiftService.java | UTF-8 | 441 | 2.21875 | 2 | [] | no_license | package cisc.awas.image_shifter.service;
public interface ImageShiftService {
/**
* Primary method to shift images.
*/
public void shiftImage();
/**
* Retrieve rows count in the original image table.
* @return The rows count in the original image table
*/
public long imageCounts();
/... | true |
fb0bc71a256158fc4be9aca7534339342cc4f791 | Java | surendart/searchsdk-android | /SearchDemo/src/main/java/com/yahoo/android/search/showcase/Utils/Utils.java | UTF-8 | 3,515 | 2.4375 | 2 | [
"Zlib"
] | permissive | package com.yahoo.android.search.showcase.Utils;
import android.content.Context;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.WindowManager;
import com.yahoo.android.search.showcase.data.TumblrData;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObje... | true |
cebde3086f096401fe50b2aa04bc89ef14eca840 | Java | github188/demodemo | /java/ReportPrint/src/org/notebook/gui/widget/LookAndFeelSelector.java | UTF-8 | 10,036 | 1.757813 | 2 | [] | no_license | /*
* aTunes 1.12.0
* Copyright (C) 2006-2009 Alex Aranda, Sylvain Gaudard, Thomas Beckers and contributors
*
* See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors
*
* http://www.atunes.org
* http://sourceforge.net/projects/atunes
*
* This program is free software; you... | true |
6eef73d59284c31c4f25722d6b49368a4c55c42f | Java | cazares/ElevatorSimulator | /src/elevatorSimulator/view/FloorView.java | UTF-8 | 2,780 | 2.875 | 3 | [] | no_license | package elevatorSimulator.view;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
i... | true |
b751b8b127d24d2eebda0489bdc614cb31cd7ef1 | Java | kahokaho/kadai5 | /IntToEng/Test/intToEng/testIntToEng.java | UTF-8 | 1,159 | 2.75 | 3 | [] | no_license | package intToEng;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import org.junit.Test;
public class testIntToEng {
@Test
public void testやくせるかな() {
IntToEng ite = new IntToEng();
String expected = "eleven";
String actual = ite.translateEng(11);
assertThat(actual, is(expecte... | true |
150aeaca56d78a4e57c2b6ab31e8973f778134a8 | Java | Rnhep/Flooring-Mastery | /FlooringMaster/src/main/java/com/mycompany/flooringmaster/dao/ProductDaoFileImpl.java | UTF-8 | 2,148 | 2.5625 | 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 com.mycompany.flooringmaster.dao;
import com.mycompany.flooringmaster.dto.Order;
import com.mycompany.flooringmaster.dto.Produ... | true |
68a9e4694bd6068bd201c59be25bee23fb2d3784 | Java | ChikaKanu/fashionApp | /fashion/src/main/java/com/example/codeclan/fashion/repository/fabrics/FabricRepository.java | UTF-8 | 483 | 1.617188 | 2 | [] | no_license | package com.example.codeclan.fashion.repository.fabrics;
import com.example.codeclan.fashion.models.Fabric;
import com.example.codeclan.fashion.projections.FabricProjection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@Rep... | true |
40579dd83da7f2e71556b5508a86468a178343ab | Java | madilongamrt/spring-boot-crud-app | /backend/src/main/java/com/thedigitalacademy/intern/service/UserService.java | UTF-8 | 2,202 | 2.578125 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | package com.thedigitalacademy.intern.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.thedigita... | true |
10e3294d8d63a851b7515f610f00571b439ad23c | Java | mati29/personal-developer | /src/main/java/com/mateuszjanwojtyna/personaldeveloper/Services/impl/RoleServiceImpl.java | UTF-8 | 738 | 2.1875 | 2 | [] | no_license | package com.mateuszjanwojtyna.personaldeveloper.Services.impl;
import com.mateuszjanwojtyna.personaldeveloper.Entities.Role;
import com.mateuszjanwojtyna.personaldeveloper.Repositories.RoleRepository;
import com.mateuszjanwojtyna.personaldeveloper.Services.RoleService;
import org.springframework.beans.factory.annotati... | true |
c8e02ced322d2688bf121f30324ad433e3578b70 | Java | fruchtiger/bots_and_bidder | /src/main/java/bots/RelativePlusBidder.java | UTF-8 | 831 | 3.03125 | 3 | [] | no_license | package bots;
import static java.lang.String.format;
public class RelativePlusBidder extends AbstractBidder {
/**
* This bot tries to bid relatively more money than the previous bid from other bot.
*
*/
/**How much of the money left (budget) should be used to plus the last other bid*/
do... | true |
5db9d316b857829ad0053ac7aa5646e9f6a79c53 | Java | ysysysysysysys/designMode | /desgin/src/decorator/v3/Type.java | UTF-8 | 320 | 2.546875 | 3 | [] | no_license | package decorator.v3;
public class Type extends People{
private People people;
@Override
public void moveAtoB(String type) {
people.moveAtoB(type);
}
public People getPeople() {
return people;
}
public void setPeople(People people) {
this.people = people;
}
}
| true |
b7a6094a193015eac6df81d3d912787bc82ddae6 | Java | Syedbasha82/Automation | /April Regression workSpace/BGRegression/src/bg/framework/app/functional/util/PIStubResponseHelper.java | UTF-8 | 2,145 | 2.3125 | 2 | [] | no_license | package bg.framework.app.functional.util;
import bg.framework.app.functional.common.ApplicationConfig;
import org.apache.commons.lang.StringUtils;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import java.io.IOException;
import java.util.Map;
import java.util.Pro... | true |
580641aaf9b31d6ed32eb2f6bf2fc208d742c63b | Java | sialam/PhoneGap-2.7-Android-plugins-to-make-a-phone-call | /PhoneDialer.java | UTF-8 | 786 | 2.171875 | 2 | [] | no_license | package org.apache.cordova;
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
import android.net.Uri;
import android.content.Intent;
public class PhoneDialer extends CordovaPlugin {
public boolean execute(String act... | true |
535c25e17e7115afe2ff557618c55a00ff79cbae | Java | ITPro1718/XO | /Partnerboerse/src/de/hdm/partnerboerse/shared/report/AllProfilesBySuchprofil.java | UTF-8 | 399 | 1.59375 | 2 | [] | no_license | package de.hdm.partnerboerse.shared.report;
/**
* Report, der alle Partnervorschläge eines Users anhand eines
* Suchprofils ausgibt. Der Report ist ein Composite Report und besteht aus
* vielen SingleProfileReports
*
* @author Burghardt
*/
public class AllProfilesBySuchprofil extends CompositeReport {... | true |
686f45141e53d627dd745e905938f21aaa41e8a2 | Java | antonio63j/AngularjsSpringRestManyToMany | /src/main/java/com/antonio/modelo/Movimiento.java | UTF-8 | 3,025 | 2.421875 | 2 | [] | no_license | package com.antonio.modelo;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Digits... | true |
786c6071e4ed3ab8ce11d41c45ba69583334ed3c | Java | iFrankWu/MyGithub | /DataSourse/src/com/shinetech/sql/impl/DefaultDatabaseAccess.java | UTF-8 | 25,509 | 1.992188 | 2 | [] | no_license | package com.shinetech.sql.impl;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.I... | true |
e9bbf2592c10319b4c403cd791ffead612518cc8 | Java | javagurulv/ok_ru_admin_group_2 | /src/main/java/student_andrey_domas/lesson15/components/Component1.java | UTF-8 | 228 | 1.78125 | 2 | [] | no_license | package student_andrey_domas.lesson15.components;
import org.springframework.stereotype.Component;
@Component
public class Component1 extends DemoComponent {
public Component1() {
this.name = "component1";
}
}
| true |
a1b4879cfb59863996982299b1bcedb01aabb297 | Java | Srchavier/academia-daryoku | /src/main/java/br/com/academiaDaryoku/controle/PessoaControle.java | ISO-8859-1 | 12,883 | 1.65625 | 2 | [] | no_license | package br.com.academiaDaryoku.controle;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
... | true |
4bad4c433cc73bcc2148c047c211a56030679995 | Java | defrac/defrac-sample-uievent | /src/java/defrac/sample/uievent/Animator.java | UTF-8 | 1,769 | 2.9375 | 3 | [] | no_license | package defrac.sample.uievent;
import defrac.display.DisplayObject;
import defrac.event.Event;
import defrac.event.EventListener;
import javax.annotation.Nonnull;
// The Animator is attached to the onEnterFrame event.
// Therefore it must implement EventListener<EnterFrameEvent> or just EventListener<Event>
//
// Ea... | true |
0e2c2b545bc3fe94db7be45f21139df638b0b5d4 | Java | piyu031191/Core-Programs | /src/basicProgram/QuotientRemainder.java | UTF-8 | 640 | 3.5 | 4 | [] | no_license | package basicProgram;
import java.util.Scanner;
public class QuotientRemainder {
public static void main(String[] args) {
System.out.println("Enter the value of num1 and num2");
Scanner input = new Scanner(System.in);
int num1 = input.nextInt();
int num2 = input.nextInt();
... | true |
6912c8fa6a38d7050c6dedb2cb09ac4cf1209be8 | Java | pyhundan/InfixToPostfix | /src/analyse/StateAnalyze.java | UTF-8 | 2,790 | 2.953125 | 3 | [] | no_license | package analyse;
import error.CodeException;
import java.util.LinkedList;
/*
exp -> term {addop term}
addop -> + \ -
term -> Negative {mulop Negative}
mulop -> *|/
Nagative -> -factor|factor
factor -> (exp) |number
*/
public class StateAnalyze {
public LinkedList<Toke> tokes;
publ... | true |
d351396a1788412c9a93c0ef69e8d7a0ba57e401 | Java | chomnoue/swagger-core | /modules/swagger-models/src/test/java/io/swagger/models/properties/StringPropertyTest.java | UTF-8 | 797 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package io.swagger.models.properties;
import static org.testng.Assert.*;
import org.testng.annotations.Test;
public class StringPropertyTest {
@Test
public void testGettersAndSetters() {
StringProperty stringProperty = new StringProperty();
String vendorName = "x-vendor";
String value = "value";
stringProp... | true |
06d82f62c01a246a17c72004f440564b6252398a | Java | creamjiang/DZYHAndroidClient | /src/com/dld/android/pay/NetworkManager.java | UTF-8 | 5,871 | 2.125 | 2 | [] | no_license | package com.dld.android.pay;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.... | true |
4dd8a82c5014be2311638e203f1c11d18a18074d | Java | hollyroberts/volcano-infiltration | /src/game_base/Screen.java | UTF-8 | 2,131 | 3 | 3 | [] | no_license | package game_base;
import game_logic.Camera;
import game_logic.LevelState;
import game_logic.Score;
import interfaceComponents.MenuHandler;
import particles.ParticleHandler;
import audio.SoundEffectsHandler;
public class Screen {
private static int screen = 5;
private static boolean renderScreen = true; //Render co... | true |
9162ff7b52ffc110abfb8bf5808120e50f2302f4 | Java | shruthisetty/integration-toolkit-sample-code-java | /mhr-b2b-client/src/src/main/java/au/gov/nehta/vendorlibrary/pcehr/clients/common/util/CommonHeaderValidator.java | UTF-8 | 4,076 | 2.25 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2012 NEHTA
*
* Licensed under the NEHTA Open Source (Apache) License; you may not use this
* file except in compliance with the License. A copy of the License is in the
* 'license.txt' file, which should be provided with this work.
*
* Unless required by applicable law or agreed to in writing, sof... | true |
8002a49bbbc8f08422ffab16dcf63281e19da55e | Java | bertillemenguy/GestionFestival | /FrontJavaFX/src/FrontJavaFX/Button.java | UTF-8 | 413 | 1.859375 | 2 | [] | no_license | package FrontJavaFX;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class Button extends Application{
// private Button back_emploi_du_temps = new Button();
public void start(Stage button) {
button.show();
... | true |
1bb25b4b017ef21855e417d97fb67213bf08f769 | Java | perfall/Tetris | /TetrominoMaker.java | UTF-8 | 2,831 | 3.75 | 4 | [] | no_license | package tetris;
/**
* This class can be viewed as the "factory" for the Poly's, based on what type of Poly it is it returns
* the two-dimensional array representation of it.
*/
public class TetrominoMaker
{
public Poly getPoly(int n) {
switch (n) {
case 0: //I
return new Poly(createShapeI());//), Square... | true |
a75b1e4a48e8462001fe4b6e5779eeefef9544f3 | Java | mousesd/Spring5Recipe | /Chapter13/App15/src/main/java/net/homenet/configuration/WeatherAppInitializer.java | UTF-8 | 915 | 1.851563 | 2 | [] | no_license | package net.homenet.configuration;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import javax.servlet.Serv... | true |
b5c1178f7e07a5d8273212cfac6876dcf880c0b3 | Java | Shinjice/CodeWars | /8kyu/Sort My Textbooks/Demo.java | UTF-8 | 389 | 2.84375 | 3 | [] | no_license | import java.util.List;
import java.util.Collections;
class sorter {
public static List<String> sort(List<String> textbooks) {
//use sort() from Collections with the static field of String class to ensure case insensitivity
Collections.sort(textbooks, String.CASE_INSENSITIVE_ORDER);
return textbooks;
}
}... | true |
e4e00736cacdd583e96b7bff61b2951cf74c1085 | Java | biancama/meoni-projects | /EasyShipment/src/com/biancama/utils/ByteBufferEntry.java | UTF-8 | 1,667 | 3.015625 | 3 | [] | no_license | package com.biancama.utils;
import java.nio.ByteBuffer;
public class ByteBufferEntry {
public ByteBuffer buffer = null;
private int size = 0;
private boolean unused = true;
public static ByteBufferEntry getByteBufferEntry(int size) {
ByteBufferEntry ret = ByteBufferController.getIns... | true |
428869514f05e2e68358ef861059103c9a7e17c1 | Java | P79N6A/icse_20_user_study | /methods/Method_39277.java | UTF-8 | 550 | 2.46875 | 2 | [] | no_license | /**
* Adds received attachment.
* @param part {@link Part}.
* @param content Content as byte array.
* @return this
* @see #attachment(EmailAttachment)
*/
private ReceivedEmail addAttachment(final Part part,final byte[] content) throws MessagingException {
final EmailAttachmentBuilder builder=addAttachmentIn... | true |
f0f3a654328843beaa8f2b78c5dabf1eed8c56df | Java | proteauj/api | /src/main/java/com/versatile/api/ressource/StatusRessource.java | UTF-8 | 596 | 2.28125 | 2 | [] | no_license | package com.versatile.api.ressource;
public class StatusRessource {
private Integer idStatus;
private String status;
public StatusRessource() {
}
public StatusRessource(Integer idStatus, String status) {
this.idStatus = idStatus;
this.status = status;
}
public Integer get... | true |
d66116dc7629dad0bcc3864b7dbb539348241497 | Java | kriishna/showcaseview-android | /Sample/src/main/java/co/naughtyspirit/sample/CustomThemeWithBtnBackgroundDrawable.java | UTF-8 | 1,192 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package co.naughtyspirit.sample;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import co.naughtyspirit.showcaseview.ShowcaseView;
import co.naughtyspirit.showcaseview.targets.Target... | true |
82604af4b51fbafc062b35153cf944fc05b0490f | Java | samabcde/leetcode | /src/main/java/q977/Solution.java | UTF-8 | 1,528 | 3.34375 | 3 | [] | no_license | package q977;
import java.util.Arrays;
public class Solution {
public static void main(String[] args) {
Solution a = new Solution();
System.out.println(Arrays.toString(a.sortedSquares(new int[] { -2, 0, 1 })));
}
public int[] sortedSquares(int[] A) {
if (A.length == 0) {
return A;
}
int changeSignInd... | true |
f9aa0148aa039bd20c76fe82f62b0b4c1a4bedf4 | Java | gdrapic/test | /ResponseDetails.java | UTF-8 | 5,017 | 2.046875 | 2 | [] | no_license |
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ResponseDetails<T>
{
public enum RESP_KEY
{
apiResponse, responseDetails
};
public enum CATEGORY
... | true |
772131e587d032502a55bb8fbad45a3cc2849ce4 | Java | kha0213/Today-I-Learn | /Spring/spring-advanced/advanced/src/test/java/hello/advanced/trace/strategy/code/Strategy.java | UTF-8 | 228 | 1.898438 | 2 | [] | no_license | package hello.advanced.trace.strategy.code;
/**
* Created by Kim Young Long.
* My Git Blog : https://kha0213.github.io/
* Date: 2021-11-08
* Time: 오후 8:30
*/
@FunctionalInterface
public interface Strategy {
void call();
}
| true |
582374789dfc68534037d23f531da676aea0450d | Java | xiaoningzvj/world-oriented-programming | /2020-09-02/fhj/GetMaxTree.java | UTF-8 | 2,428 | 3.625 | 4 | [] | no_license | package com.example.demo;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
public class GetMaxTree {
public static void main(String[] args) {
int arr[] ={1,2,3,4,5};
GetMaxTree getMaxTree = new GetMaxTree();
Node head = getMaxTree.buildMaxTree(arr);
//验证结果
... | true |
abcbf7aca25e78f999165cf1085c91e200a4eaa8 | Java | fangxiaoguang/FrameLibrary | /app/src/main/java/com/game/gaika/scene/dialg/BlueRepairYesNoDialog.java | UTF-8 | 3,107 | 1.984375 | 2 | [] | no_license | package com.game.gaika.scene.dialg;
import com.game.frame.fsm.MSG_ID;
import com.game.frame.fsm.TouchMessage;
import com.game.frame.scene.BaseLogicScene;
import com.game.frame.scene.SCENE_ID;
import com.game.frame.scene.dialg.DialogScene;
import com.game.frame.sprite.NormalSprite;
import com.game.frame.sprite.TextSpri... | true |
95620085753dd0ef3bed2cadd44df36758a8aa14 | Java | DogaruMonica/Backend | /src/main/java/iss/sirius/Model/Catalog.java | UTF-8 | 1,261 | 2.296875 | 2 | [] | no_license | package iss.sirius.Model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.pe... | true |
68d613aa448895a5559f34fccf004c35952da514 | Java | 156420591/algorithm-problems-java | /leetcode-advanced-java/src/main/java/johnny/leetcode/advanced/ZumeDepth.java | UTF-8 | 1,038 | 2.953125 | 3 | [] | no_license | package johnny.leetcode.advanced;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class ZumeDepth {
public int[][] print = null;
int[][] grid = null;
List<Integer> list = null;
public int total = 0;
int count = 0;
public ZumeDepth(int[][] grid) {
this... | true |
8ce662ce29caf877721281c30f38cbc777d94a91 | Java | Sudhanshu-bluespace/EmailApp_Backend | /EmailApp/src/main/java/com/bluespacetech/security/controller/UserAccountController.java | UTF-8 | 12,739 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.bluespacetech.security.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.... | true |
9c99809836af16fef440d4757c0b0d54e33dce11 | Java | kaviya0408/Genie | /src/main/java/genie/framework/rules/dataobject/results/MessageType.java | UTF-8 | 103 | 1.6875 | 2 | [] | no_license | package genie.framework.rules.dataobject.results;
public enum MessageType {
INFO,WARNING,ERROR;
}
| true |
361e31487a6a418947bab1855b86479aac56c59b | Java | lfijas/BIP_project | /BipApp/src/com/example/bipapp/CustomRenderer.java | UTF-8 | 413 | 2.28125 | 2 | [] | no_license | package com.example.bipapp;
import android.graphics.Paint;
import org.afree.chart.renderer.category.BarRenderer;
public class CustomRenderer extends BarRenderer {
private Paint[] colors;
public CustomRenderer(final Paint[] colors) {
this.colors = colors;
}
public Paint getItemPaint(final i... | true |
28ddd77a644fb460122058ee289330abede45428 | Java | chunjiangshieh/android-library-tools | /src/com/xcj/android/util/DeviceHelper.java | UTF-8 | 7,229 | 2.0625 | 2 | [] | no_license | package com.xcj.android.util;
import java.util.List;
import android.app.Service;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Vibrator;
import android.provider.Settings.Secure;
import android.telephony.NeighboringCel... | true |
2ae8e4c1d5417710f7810ffdf8c2e5bb6700c774 | Java | zhzhxxyy/shipin | /Android原生/shipin/app/src/main/java/com/duomizhibo/phonelive/ui/dialog/LiveCommon.java | UTF-8 | 7,757 | 2.0625 | 2 | [] | no_license | package com.duomizhibo.phonelive.ui.dialog;
import android.app.Dialog;
import android.content.Context;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import android.widget.TextView;
import com.duomizhibo.pho... | true |
f467ba7d5a72c5ed9075a3bf99290634dacc80e7 | Java | MiketheViking90/LeetCode | /src/designpatterns/adapter/Chicken.java | UTF-8 | 99 | 2.453125 | 2 | [] | no_license | package designpatterns.adapter;
public interface Chicken {
void cluck();
void fly();
}
| true |
9fdb2b8b01f77bc4ed2da79375b6393513f024a5 | Java | dearcode2018/jdk-entire | /jdk8/src/main/java/com/hua/jdk/Good.java | UTF-8 | 241 | 1.625 | 2 | [] | no_license | /**
* @filename Good.java
* @description
* @version 1.0
* @author qianye.zheng
*/
package com.hua.jdk;
/**
* @type Good
* @description
* @author qianye.zheng
*/
public class Good extends Foo implements DefaultMethod
{
}
| true |
c3726aea4ac0273c045210e829e4e5e8889b1122 | Java | wolong625/myshop | /myshop-module/src/test/java/com/lang/myshop/module/user/mapper/UserMapperTest.java | UTF-8 | 1,139 | 2.125 | 2 | [] | no_license | package com.lang.myshop.module.user.mapper;
import com.lang.myshop.module.user.entity.TbUser;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.... | true |
188f6d28d32c036ba0d891a63d83ac93d5096ab8 | Java | jess232017/Tu-Finca | /app/src/main/java/com/example/tufinca2/Registro_Activity.java | UTF-8 | 5,983 | 2.25 | 2 | [] | no_license | package com.example.tufinca2;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bun... | true |
51cbe6ad46cf4fb0c46caf35827a21aa2e8be76f | Java | 1996sayan/movie-booking-app | /UserService/src/main/java/com/movie/user/exception/UserNameAlreadyExistException.java | UTF-8 | 632 | 2.140625 | 2 | [] | no_license | package com.movie.user.exception;
public class UserNameAlreadyExistException extends UserRegistractionException {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
public UserNameAlreadyExistException() {
super();
}
public UserNameAlreadyExistException(String arg0, Throwable arg1... | true |
caee83ab5632350811dc091f7c072384253397e8 | Java | attrideepak/DS-Algo | /algos/src/javaproblems/FindMissingNumberInArray.java | UTF-8 | 1,277 | 4 | 4 | [] | no_license | package javaproblems;
import java.util.BitSet;
/*You are given a list of n-1 integers and these integers are in the range of 1 to n.
There are no duplicates in list.
One of the integers is missing in the list.
Write an efficient code to find the missing integer.*/
public class FindMissingNumberInArray {
static i... | true |
ea0580c9b1efe890db5d162fc547f1c8a8b362a2 | Java | kalibai/test | /src/com/MY/test/TestMybatisDeleteBatch.java | UTF-8 | 552 | 1.992188 | 2 | [] | no_license | package com.MY.test;
import org.apache.ibatis.session.SqlSession;
import org.apache.log4j.Logger;
import com.MY.mapper.StudentMapper;
import com.MY.utils.SqlSessionFactoryUtils;
public class TestMybatisDeleteBatch {
public static void main(String[] args) {
Logger logger = Logger.getLogger(TestMybatisDel... | true |
5616ae698e74ac23127219c4bc82177fe809c6ad | Java | vyvydkf628/FOUNDERS_3rd | /Submission/17_대가리/Brain/app/src/main/java/com/example/brain/SimpleData.java | UTF-8 | 362 | 2.6875 | 3 | [] | no_license | package com.example.brain;
public class SimpleData {
private String name;
private String sketches;
public SimpleData(String name, String sketches) {
this.name = name;
this.sketches = sketches;
}
public String getName(){
return this.name;
}
public String getSketches(... | true |
9f0ecb51dab7394bb306c526559d5b25b5a02156 | Java | aeuan/BBE2101.aliados.android | /app/src/main/java/com/dacodes/bepensa/adapters/OpportunitiesAdapter.java | UTF-8 | 5,587 | 2.359375 | 2 | [] | no_license | package com.dacodes.bepensa.adapters;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
... | true |
5a71c28d606e44cbf84de969f9b9363205aa0b6d | Java | Herman513/simple-mvc | /web/src/main/java/org/simplemvc/web/bind/annotation/RequestMapping.java | UTF-8 | 296 | 1.859375 | 2 | [] | no_license | package org.simplemvc.web.bind.annotation;
import java.lang.annotation.*;
/**
* Created by wuyuhuan on 2017/1/20.
* Usage:
*/
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestMapping {
String value() default "";
}
| true |
24ea680c7ffb4eda35aa88957beea35b3ea7be6b | Java | AntonZhao/LeetCodeTrip | /src/LC332_findItinerary.java | UTF-8 | 1,865 | 3.578125 | 4 | [] | no_license | import java.util.*;
public class LC332_findItinerary {
public List<String> findItinerary(List<List<String>> tickets) {
// 因为逆序插入,所以用链表
LinkedList<String> res = new LinkedList<>();
if (tickets == null || tickets.size() == 0)
return res;
HashMap<String, List<String>> gra... | true |
cd41ddea7ede571c115087742ff529b50da94900 | Java | theDeepanshuMourya/DataStructuresAndAlgorithms | /src/sorts/ShellSort.java | UTF-8 | 1,474 | 4.1875 | 4 | [
"MIT"
] | permissive | /* ShellSort is mainly a variation of Insertion Sort.
* In insertion sort, we move elements only one position
* ahead. When an element has to be moved far ahead,
* many movements are involved. The idea of shellSort is
* to allow exchange of far items. In shellSort, we make
* the array h-sorted for a large val... | true |
eb26a532b7495be8306cd2c4ad612c493473837f | Java | MilitaryIntelligence6/DbStudyDemo | /src/main/java/cn/misection/dbstudy/entity/StudentPay.java | UTF-8 | 692 | 2.203125 | 2 | [] | no_license | package cn.misection.dbstudy.entity;
public class StudentPay {
private String sno;
private String stype;
private String time;
private int amount;
public String getSno() {
return sno;
}
public void setSno(String sno) {
this.sno = sno;
}
public String getStype() {
... | true |
d11a62d85b7c729f994345572b70ec91195b84f5 | Java | equinor/neqsim | /src/test/java/neqsim/thermo/util/example/TestVHflash.java | UTF-8 | 4,640 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package neqsim.thermo.util.example;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicOperations.ThermodynamicOperations;
/**
* <p>
* TestVHflash class.
* </p>
*
* @... | true |
9b14fe081eba8683c65bbb70626115ec863aa3de | Java | huangleisir/Chat | /chat-server/src/main/java/cn/sinjinsong/chat/server/property/PromptMsgProperty.java | UTF-8 | 930 | 2.328125 | 2 | [] | no_license | package cn.sinjinsong.chat.server.property;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* Created by SinjinSong on 2017/5/24.
*/
public class PromptMsgProperty {
public static final String LOGIN_SUCCESS = "登录成功,当前共有%d位在线用户";
public static final String LOGIN_FAILURE = "用户名或... | true |
d23d699f3062fbaf26ffbd4f6276289987e6d314 | Java | Privod123/Home-Works | /src/lesson16/zadacha1/ReadConsole.java | UTF-8 | 2,515 | 3.28125 | 3 | [] | no_license | package lesson16.zadacha1;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* Created by Hello on 01.12.2018.
*/
public class ReadConsole {
int startLimit;
int finishLimit;
String inputNameFile;
String outputNameFile;
String outputNameDir;
public void readCons... | true |
aa5a5ad63e13e4fb491e843da679ce449fd56a27 | Java | nicPorcu/GeometryDash | /src/com/company/Pillar.java | UTF-8 | 759 | 3.0625 | 3 | [] | no_license | package com.company;
/**
* Created by apcsaper3 on 5/10/17.
*/
public class Pillar {
private int x;
private int y;
private int width;
private int height;
private int initialX;
private int initialY;
public Pillar (int x, int y, int w, int h){
this.x = x;
initialX=x;
... | true |
e9d3493ddcca1efd5d113d5689c9fc59c84a5a4f | Java | ChenAmazing/coolweather | /app/src/main/java/com/example/amazing_chen/coolweather/adapter/CityAdapter.java | UTF-8 | 1,352 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.amazing_chen.coolweather.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.example.amazing_chen.coolweather.R;
import java.util.List;
/**
* Created by Amaz... | true |
ebb7b19a5cb36a7d11fad7e315db2ebb0c0bf06b | Java | PrakharGupta22/Project | /onlineshopping/src/main/java/com/cg/onlineshopping/controller/ProductController.java | UTF-8 | 5,098 | 2.328125 | 2 | [] | no_license | package com.cg.onlineshopping.controller;
import java.util.List;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import or... | true |
b1df89ff94e8e923b2d1526a107bbfcc0a1d0ddd | Java | TAPATOP/AStarConcept | /src/usecases/swipeblockpuzzle/SwipeBlockStage.java | UTF-8 | 737 | 2.765625 | 3 | [] | no_license | package usecases.swipeblockpuzzle;
import concept.stage.Stage;
public class SwipeBlockStage extends Stage<SwipeBlock> {
private String lastDirection;
public SwipeBlockStage(SwipeBlock state) {
super(state);
}
public SwipeBlockStage(SwipeBlock state, String lastDirection) {
super(stat... | true |
3a88b9902aa2a1ce154606fb80080eca4a84d53d | Java | himym1989/Karel | /src/com/shpp/p2p/cs/lzhukova/assignment3/Assignment3Part2.java | UTF-8 | 1,517 | 4.375 | 4 | [] | no_license | package com.shpp.p2p.cs.lzhukova.assignment3;
import com.shpp.cs.a.console.TextProgram;
/**
* This program describes the fun math game - Hailstone Numbers.
* Start with any positive integer n. If the current number is even,
* divide it by two; else if it is odd,
* multiply it by three and add one.
* Repeat, whi... | true |
2c8be2e784df6cb2c71da3033d851b9f9bcb4e58 | Java | wulawrence/zcwJDBC-Demo | /src/test/java/com/zipcodewilmington/jdbc/tools/database/PokemonDatabaseTest.java | UTF-8 | 340 | 1.851563 | 2 | [] | no_license | package com.zipcodewilmington.jdbc.tools.database;
import org.junit.Test;
public class PokemonDatabaseTest {
@Test
public void use() {
Database.POKEMON.use();
}
@Test
public void drop() {
Database.POKEMON.drop();
}
@Test
public void create() {
Database.POKEMO... | true |
ffc1a73580aa1dbd5923b98eaecd7a6f79dfc8ee | Java | ericmedvet/jgea | /io.github.ericmedvet.jgea.problem/src/main/java/io/github/ericmedvet/jgea/problem/booleanfunction/BooleanFunctionFitness.java | UTF-8 | 2,871 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2023 eric
*
* 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 writ... | true |
caf8666a342d81477adbe64e17a2949f3a2105b7 | Java | WelpImDone/Learning-Java-The-Hard-Way | /ThereAndBackAgian.java | UTF-8 | 347 | 2.921875 | 3 | [] | no_license | public class ThereAndBackAgian {
public static void main ( String[] args){
System.out.println( "Here.");
erebor();
System.out.println( "Back the first time.");
erebor();
System.out.println( "Back the second time.");
}
public static void erebor() {
System.out.... | true |