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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f685bb501ae4611c1bb0366174cefcb18298a5e6 | Java | anarkia7115/align_dedup_filter | /src/main/java/be/ugent/intec/halvade/utils/HalvadeConf.java | UTF-8 | 19,117 | 1.921875 | 2 | [] | no_license | /*
* Copyright (C) 2014 ddecap
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed... | true |
853242db50548cb8240df39078df8514f5348af2 | Java | priyankpateltrootech/Suvlas | /app/src/main/java/bean/MenuOrderCategory.java | UTF-8 | 629 | 2.234375 | 2 | [] | no_license | package bean;
/**
* Created by hp on 3/22/2018.
*/
public class MenuOrderCategory {
String Category_id,Category_name;
public MenuOrderCategory(String category_id, String category_name) {
Category_id = category_id;
Category_name = category_name;
}
public String getCategory_id() {
... | true |
823496554d84a1ce214ce10b87333493e93a65fd | Java | dr-sung/DP_facade | /src/Main.java | UTF-8 | 654 | 3.296875 | 3 | [] | no_license | // Example: Facade design pattern
// (c) Dr. Hong K. Sung
// usng facade, it is easy to configure a computer system
// without knowing details of all subsystems
public class Main {
public static void main(String[] args) {
ComputerFacade facade = new ComputerFacade();
String lowEndCom... | true |
a160d1aad0e72e480363f75ee73e956d480185a4 | Java | trungtrong2010/WineStoreWebApp | /src/controller/filter/CustomerFilter.java | UTF-8 | 1,195 | 2.3125 | 2 | [] | no_license | package controller.filter;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
@WebFilter(filterName = "CustomerFilter", urlPatterns = "/custom... | true |
76dd0e7ad22a1c5669453722670af47475d8d8c2 | Java | Lollipop-Studio/CustomStuff3 | /src/main/java/cubex2/cs3/ingame/gui/control/listbox/ListBoxItemLabel.java | UTF-8 | 988 | 2.421875 | 2 | [] | no_license | package cubex2.cs3.ingame.gui.control.listbox;
import cubex2.cs3.ingame.gui.control.Anchor;
import cubex2.cs3.ingame.gui.control.Control;
import cubex2.cs3.ingame.gui.control.Label;
import cubex2.cs3.lib.Color;
import cubex2.cs3.util.IPurposeStringProvider;
import cubex2.cs3.util.StringProviderPurpose;
public class L... | true |
73e3c48666b0d0849a1c0670283644af31cbb85c | Java | apcs-assignments-fall2020/8-array-iteration-nmakdessi | /src/main/java/MyMain.java | UTF-8 | 1,237 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | public class MyMain {
// Reverses an array
public static int[] reverse(int[] arr) {
int[] newarr = new int[arr.length];
int a = 0;
for (int i = arr.length -1; i >= 0; i--) {
newarr[a] = arr[i];
a++;
}
return newarr;
}
// Finds the second ... | true |
0917b4adbec46b6479caa5a6eccb71a8fef72003 | Java | dengjiaping/tutorial | /Android/branches/0916_1.0/nonobank/src/com/nonobank/ui/adapter/Demo.java | UTF-8 | 1,506 | 2.484375 | 2 | [] | no_license | package com.nonobank.ui.adapter;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;
import com.nonobank.R;
import com.nonobank.ui.activity.BaseActivity;
/**
*
* @ClassName: Demo
* @Descripti... | true |
c6a68029cc3696cf9758176fe98d2e1b7a31021f | Java | Techopath/JavaProgrammingB15VA | /src/replitExamples/swap_ArrayList.java | UTF-8 | 938 | 3.65625 | 4 | [] | no_license | package replitExamples;
import java.util.*;
public class swap_ArrayList {
public static ArrayList<String> swap(ArrayList<String> list,int pos1,int pos2)
{
//swap(["one","two","three"],0,2)
//returns:["three","two","one"]
for (int i = 0; i <list.size(); i++) {
if(pos1 >li... | true |
d20d72ec725747d07fbd33bd25253c23fa389973 | Java | PeterHaro/manusquare | /MANUSQUARE/src/main/java/similarity/SimilarityMethodologies/WuPalmerSimilarity.java | UTF-8 | 921 | 2.6875 | 3 | [] | no_license | package similarity.SimilarityMethodologies;
import graph.SimpleGraph;
import similarity.SimilarityMethodologies.SimilarityParameters.WuPalmerParameters;
public class WuPalmerSimilarity implements ISimilarity<WuPalmerParameters> {
@Override
public double ComputeSimilaritySimpleGraph(WuPalmerParameters pa... | true |
082e234bc3e7707df0d885428edca214b3a51989 | Java | NikhithaDurvasula/ImageStitcher | /app/src/main/java/com/example/panorama/imagestitcher/SharedData.java | UTF-8 | 213 | 1.53125 | 2 | [] | no_license | package com.example.panorama.imagestitcher;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Mat;
public class SharedData {
public static List<Mat> panoImgs = new ArrayList<>();
}
| true |
b367966e1a81dcadc40b39478d40514bd7354fa9 | Java | wso2/cdmf-agent-android | /app-catalog/app/src/main/java/org/wso2/app/catalog/adapters/ApplicationAdapter.java | UTF-8 | 9,139 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | true |
20412c9da0604556e6241400114463fb58d88ae9 | Java | prashil03081999/-Java-Codes | /company/Ch_27_arrays.java | UTF-8 | 1,137 | 3.75 | 4 | [] | no_license | package com.company;
public class Ch_27_arrays {
public static void main(String[] args) {
// int [] marks={45,67,43,78,53};
// float [] mark={45,67,43,78,53};
//
// String [] students={"rohan","raj","nilesh","ram","sham"};
// System.out.println(students.length);
// for (int i=... | true |
93dd19ab0a537efe34c7ab8a0a9d0ce20d507feb | Java | rohitbarsila/springbootMS | /UserDtls/src/main/java/com/customer/UserDtls/model/UserData.java | UTF-8 | 1,767 | 2.1875 | 2 | [] | no_license | package com.customer.UserDtls.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.Set;
@Entity
public class UserData {
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private long id;
@Column(unique = true)
private String username;
... | true |
dd2b99ed51ec17b302feed590c905b553dfee7ad | Java | Belendia/episample | /epiSample/src/main/java/org/path/episample/android/utilities/AlarmUtil.java | UTF-8 | 1,659 | 2.28125 | 2 | [] | no_license | package org.path.episample.android.utilities;
import java.util.Calendar;
import org.path.episample.android.receivers.FullBackupBroadcastReceiver;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
public class AlarmUtil {
public static ... | true |
3634d13d1e2d03595904e2ca4efde7ab37d96a54 | Java | Muskan1998-24/LabBook_Microservices | /cartmgt/src/main/java/com/cg/ecommerce/cartmgt/service/ICartService.java | UTF-8 | 235 | 1.898438 | 2 | [] | no_license | package com.cg.ecommerce.cartmgt.service;
import java.util.List;
import com.cg.ecommerce.cartmgt.entities.CartItem;
public interface ICartService {
List<CartItem> fetchCartItems(int userId);
CartItem save(CartItem item);
}
| true |
ceed1359fbc3ac6253bae70f4fdc360576be34b5 | Java | magefree/mage | /Mage.Sets/src/mage/cards/s/StormFleetSwashbuckler.java | UTF-8 | 1,996 | 2.4375 | 2 | [
"MIT"
] | permissive | package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.CitysBlessingCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.ContinuousEffect;
import mage.abilities.e... | true |
92a326751b27ce6138f2a5055c6a3ff89c222143 | Java | NyannCat/lazyzzz-blog | /web/src/main/java/club/lazyzzz/web/service/ICommentService.java | UTF-8 | 925 | 1.929688 | 2 | [
"MIT"
] | permissive | package club.lazyzzz.web.service;
import club.lazyzzz.web.model.dto.AdminCommentDto;
import club.lazyzzz.web.model.dto.CommentDto;
import club.lazyzzz.web.model.entity.Comment;
import club.lazyzzz.web.model.vo.CommentVO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
*... | true |
e692153d0d6d273ce129f358edb8b5f74cf0339c | Java | mingchuizihuo/Nursing3 | /BedModule/src/main/java/com/idea/nursing/bed/web/service/BedTypeService.java | UTF-8 | 309 | 1.570313 | 2 | [] | no_license | package com.idea.nursing.bed.web.service;
import com.idea.nursing.core.generic.GenericServiceLevel;
import com.idea.nursing.bed.web.domain.pojo.BedType;
import com.idea.nursing.bed.web.domain.pojo.BedTypeExample;
public interface BedTypeService extends GenericServiceLevel<BedType,Long,BedTypeExample>{
}
| true |
d7a3d2baf1bca0a642c87c2471fd88ce4ee0649a | Java | hernanBeiza/Pokeiza | /Pokeiza/app/src/main/java/cl/hiperactivo/pokeiza/Models/TipoModel.java | UTF-8 | 1,537 | 2.609375 | 3 | [] | no_license | package cl.hiperactivo.pokeiza.Models;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by hernanBeiza on 6/21/17.
*/
public class TipoModel implements Parcelable {
private int idtipo;
private String nombre;
public TipoModel(int idtipo, String nombre) {
this.idtipo = idti... | true |
6fd0ce39fde1735051925d2d2d272899804a34f3 | Java | ErDmYLmZ/Java-framework | /src/day16statickeyword/StudentsRunnerEKeskin.java | UTF-8 | 1,457 | 3.421875 | 3 | [] | no_license | package day16statickeyword;
import java.util.Scanner;
public class StudentsRunnerEKeskin {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
do {
System.out.println("please enter your first name..");
String firstName = scan.next();
System.out.println("pl... | true |
cbdfceae370c2d14fa74cbf6f9a8b6e15e7b397e | Java | m2oGIT/CommonRepository01 | /JavaBasicProject/src/Java006/FileReadWriteTest.java | SHIFT_JIS | 3,643 | 3.421875 | 3 | [] | no_license | /**
* Copyright 2015 EIS Co., Ltd. All rights reserved.
*/
package Java006;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Dat... | true |
4d1008d1aace9f0776c5e17448d07e3901898b94 | Java | usnationalarchives/catalog-source | /OpaAPI/src/main/java/gov/nara/opa/api/valueobject/user/logs/AccountLogValueObject.java | UTF-8 | 4,102 | 1.890625 | 2 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | package gov.nara.opa.api.valueobject.user.logs;
import gov.nara.opa.architecture.utils.TimestampUtils;
import gov.nara.opa.architecture.web.valueobject.AbstractWebEntityValueObject;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
public class AccountLogValue... | true |
32c3f5f1c1805b4c58a8378fd202408c3105f514 | Java | guanqunyin/DesignPattern | /src/main/java/com/yin/pattern/observer/Main.java | UTF-8 | 617 | 3.421875 | 3 | [] | no_license | package com.yin.pattern.observer;
public class Main {
public static void main(String[] args) {
//有一个罪犯张三
Criminal criminal1 = new CriminalA("张三");
//有个监狱长李四和武警长王五
PoliceMan armedPolice = new ArmedPolice("王五");
PoliceMan warden = new Warden("李四");
//给张三注册监听者
... | true |
a5a3fa856f49ff6ad97d3662755098f039ecec03 | Java | cettorre/VotingApp_hackathonM4Social | /VotingApp_hackathonM4Social/app/src/main/java/com/example/cettorre/votingapp_hackathonm4social/model/Participante.java | UTF-8 | 2,018 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.example.cettorre.votingapp_hackathonm4social.model;
import android.os.Parcel;
import android.os.Parcelable;
public class Participante implements Parcelable {
private String id;
private String email;
private String nombre;
private String lastName;
private String votosAsig;
public ... | true |
415676737476b3dee2092105efd978663a5d4239 | Java | jpdacruz/CoronApp | /app/src/main/java/com/jpdacruz/coronapp/ui/fragments/paises/NotificationsFragment.java | UTF-8 | 6,006 | 1.992188 | 2 | [] | no_license | package com.jpdacruz.coronapp.ui.fragments.paises;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.SearchView;
import android.widget.Te... | true |
4eaad9532d26964689fd651673558c4fba2a5601 | Java | xtdhwl/zhima | /src/com/zhima/plugin/controller/IPluginController.java | UTF-8 | 367 | 1.6875 | 2 | [] | no_license | package com.zhima.plugin.controller;
/**
* @ClassName: IPluginController
* @Description: IPlugin控制器接口
* @author liubingsr
* @date 2012-12-29 下午5:03:53
*
*/
public interface IPluginController {
public void onStart();
public void onResume();
public void onPause();
public void onStop();
public void onResta... | true |
c841e0fdd83e9bd0137d4efb24cbc29d2d781699 | Java | PraneethVankayala/RoomWordSample | /app/src/main/java/com/example/roomwordsample/WordViewModel.java | UTF-8 | 639 | 2.359375 | 2 | [] | no_license | package com.example.roomwordsample;
import android.app.Application;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import java.util.List;
public class WordViewModel extends AndroidViewModel {
private WordRepository mWordRepository;
private LiveData<List<Word>> mAllWords;
... | true |
b336cfdb50e09bcc7fe7d17a7d21727994e4dfe7 | Java | juhelmarc/P3-OC-Marc-Juhel | /Entrevoisins/app/src/main/java/com/openclassrooms/entrevoisins/service/DummyNeighbourApiService.java | UTF-8 | 1,603 | 2.671875 | 3 | [] | no_license | package com.openclassrooms.entrevoisins.service;
import android.content.Context;
import android.widget.Toast;
import com.openclassrooms.entrevoisins.model.Neighbour;
import java.util.ArrayList;
import java.util.List;
/**
* Dummy mock for the Api
*/
public class DummyNeighbourApiService implements NeighbourApiSer... | true |
b798cb4950b122759b1f04b918aafd33d67cc69d | Java | Foreinyel/presto-ms-could | /api/src/main/java/com/presto/api/order/service/Impl/OrderServiceImpl.java | UTF-8 | 6,079 | 2.1875 | 2 | [] | no_license | package com.presto.api.order.service.Impl;
import com.presto.api.order.dao.OrderDao;
import com.presto.api.order.dao.OrderDetailDao;
import com.presto.api.order.entity.Order;
import com.presto.api.order.entity.OrderDetail;
import com.presto.api.order.ro.OrderRO;
import com.presto.api.order.service.OrderService;
import... | true |
0f31d85612b934a00529518fdc3db67b4dd971e7 | Java | michaelzangerle/Hotel-Team-A | /Project/src/projekt/fhv/teama/hibernate/dao/zimmer/IReservierungDao.java | ISO-8859-1 | 1,083 | 2.28125 | 2 | [] | no_license | package projekt.fhv.teama.hibernate.dao.zimmer;
import java.util.Set;
import projekt.fhv.teama.classes.zimmer.IReservierung;
import projekt.fhv.teama.hibernate.dao.IGenericDao;
import projekt.fhv.teama.hibernate.exceptions.DatabaseEntryNotFoundException;
/**
* Interface fr die Klasse ReservierungDao
*
... | true |
44ff491a62a00d38e8021d38abaf59c6466a9f15 | Java | OrzEvans/druid-spring-boot | /druid-spring-boot-autoconfigure/src/main/java/com/github/trang/druid/properties/DruidFilterProperties.java | UTF-8 | 1,132 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.trang.druid.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import static com.github.trang.druid.properties.DruidFilterProperties.DruidConfigFilterProperties.DRUID_CONFIG_FILTER_PREFIX;
/**
* Dubbo Filter 自定义配置
*
* @author trang
*/
public class DruidFilt... | true |
7e7aa21def04a35dc11404b9deab8e4a5cc53e31 | Java | wolrdprogrammer9823/RecyclerViewDemo | /app/src/main/java/com/wolfsea/recyclerviewdemo/ScrollViewBuildInScrollViewActivity.java | UTF-8 | 392 | 1.726563 | 2 | [] | no_license | package com.wolfsea.recyclerviewdemo;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class ScrollViewBuildInScrollViewActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setC... | true |
1daab8d7e8aae2dd2831b9237bd302d5ccc060c9 | Java | Irving-cl/LintCodeSolution | /src/CopyListWithRandomPointer.java | UTF-8 | 1,168 | 3.65625 | 4 | [] | no_license |
public class CopyListWithRandomPointer {
class RandomListNode {
int label;
RandomListNode next, random;
RandomListNode(int x) { this.label = x; }
};
/**
* @param head: The head of linked list with a random pointer.
* @return: A new head of a deep copy of the list.
*... | true |
c4d6b731a181ffece12d2f5af400b1bb2cf4ac52 | Java | alexey-glukahrev/homeworks | /java/Fundamentals/src/main/java/com/train/fundamentals/MinimumUniqueCharacters.java | UTF-8 | 1,750 | 4.21875 | 4 | [] | no_license | package com.train.fundamentals;
import java.util.*;
/*
* Optional Task 1
* Найти число, в котором количество различных цифр минимально. Если таких чисел несколько, найти первое из них.
* */
public class MinimumUniqueCharacters {
private static final int ARGUMENTS_COUNT = 5;
public static void main( String[... | true |
e69eb992432c974ed51f4056fb15a8218f9eeed6 | Java | swanalika/snakes_ladders | /SnakesnLadders.java | UTF-8 | 7,062 | 3.90625 | 4 | [] | no_license | /*
Write a Java program to simulate a game of Snakes and Ladders.
If you have not played the game before then you should read
https://en.wikipedia.org/wiki/Snakes_and_Ladders
Game Rules:
1. Need a board with numbers from 1 to 100 with 5 to 7 snakes and 5 to 7 ladders.
2. Two or more players.
3. A fair Dice that rand... | true |
e511a64c1103429fcc17bbca78858c8714642fe7 | Java | MaryamBanytalebi/Crime_Intent | /app/src/main/java/com/example/crime_intent/datebase/CrimeDataBaseRoom.java | UTF-8 | 453 | 2.03125 | 2 | [] | no_license | package com.example.crime_intent.datebase;
import androidx.room.Database;
import androidx.room.RoomDatabase;
import androidx.room.TypeConverters;
import com.example.crime_intent.model.Crime;
import com.example.crime_intent.model.User;
@Database(entities = {Crime.class, User.class}, version = 1)
@TypeConverters({Con... | true |
28d41679a6dd8663c0a89d45e2a1d2f1489db9c8 | Java | Meniakk/SpaceInvader | /src/gameobjects/BallRemover.java | UTF-8 | 887 | 3.09375 | 3 | [] | no_license | package gameobjects;
import interfaces.Collidable;
import interfaces.HitListener;
/**
* A class of HitListener.
*/
public class BallRemover implements HitListener {
private GameLevel gameLevel;
private Counter availableBalls;
/**
* The constructor method of gameobjects.BlockRemover.
* @param... | true |
87dea93ff0b911bb474f5e228e87487a114d554b | Java | koodikattila/miniprojekti | /viitehallinta/src/main/java/koodikattila/viitehallinta/domain/ViiteTyyppi.java | UTF-8 | 4,325 | 2.34375 | 2 | [] | no_license | package koodikattila.viitehallinta.domain;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static koodikattila.viitehallinta.domain.Attribuutti.address;
import static koodikattila.viitehallinta.domain.Attribuutti.author;
import static koodikattila.viitehallinta.domain.Attribuutti.b... | true |
07379ec894647663a528352219e1263e0486479e | Java | jefftarira/aws-image-upload | /src/main/java/com/tarira/awsimageupload/profile/UserProfileDataAccessService.java | UTF-8 | 469 | 1.851563 | 2 | [] | no_license | package com.tarira.awsimageupload.profile;
import com.tarira.awsimageupload.datastore.FakeUserProfileDataStore;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
@AllArgsConstructor
public class UserProfileDataAccessService {
private final FakeU... | true |
307616d325455fec8a12399de87b04d184c78bc7 | Java | exoplatform/ui-test | /ui-common/src/main/java/org/exoplatform/selenium/platform/objectdatabase/calendar/CalendarRemoteDatabase.java | UTF-8 | 2,448 | 2.765625 | 3 | [] | no_license | package org.exoplatform.selenium.platform.objectdatabase.calendar;
import java.util.ArrayList;
import java.util.Random;
import org.exoplatform.selenium.platform.objectdatabase.common.DatabaseResource;
public class CalendarRemoteDatabase {
public ArrayList<Integer> type;
public ArrayList<String> name;
public Array... | true |
a70d180e717cb7bd260becc6da1123dd319302c3 | Java | jeqo/talk-observing-distributed-systems | /opentracing-intro/src/main/java/io/github/jeqo/demo/OpenTracingApp.java | UTF-8 | 684 | 2.453125 | 2 | [
"MIT"
] | permissive | package io.github.jeqo.demo;
import io.opentracing.Tracer;
import java.util.Map;
import static java.lang.System.out;
/**
*
*/
public class OpenTracingApp {
public static void main(String[] args) throws InterruptedException {
final Tracer tracer = TracerBuilder.getJaegerTracer("Process");
final Process ... | true |
d37cca1506bd975dd33cf8074c6ad9cc4c9a14d8 | Java | kalyanivij/Empl | /src/main/java/com/rs/eis/model/Allocation.java | UTF-8 | 1,558 | 2.109375 | 2 | [] | no_license | package com.rs.eis.model;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
i... | true |
eea063c5a9a0931c31e096419f6ad67018e0b6f4 | Java | Cinderellamei/Learning | /src/main/java/Algorithm/leecode/hot100/IntegerTest.java | UTF-8 | 2,006 | 4.09375 | 4 | [] | no_license | package Algorithm.leecode.hot100;
import java.util.HashMap;
public class IntegerTest {
/**
* 只出现一次的数字
*
* 给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。
* 使用额外空间的方法
*/
public int singleNumber(int [] nums) {
HashMap<Integer,Integer> map = new HashMap<>();
for(int i... | true |
fc1f6d5591bfa31159cbced51fb5c8ee78414045 | Java | alxsimo/toolbelt | /src/main/java/com/alexsimo/toolbelt/annotations/IntegrationNetworkTest.java | UTF-8 | 288 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.alexsimo.toolbelt.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Denotes that the Test class, goes outsite at network to do the test
*/
@Retention(RetentionPolicy.SOURCE)
public @interface IntegrationNetworkTest {
}
| true |
ffc4932747025b62d4e1f7016e16b26af6369768 | Java | eltonkent/mad-robot | /MadRobot/src/com/madrobot/beans/ParameterDescriptor.java | UTF-8 | 877 | 1.859375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 MadRobot.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* ... | true |
e31c93886fd5804d2a519502c420854888c88fef | Java | BrunoPG/DevNaPratica | /basico-backend/java/server/src-gen/main/java/br/com/senior/furb/basico/ExportEvento.java | UTF-8 | 446 | 1.945313 | 2 | [] | no_license | /**
* This is a generated file. DO NOT EDIT ANY CODE HERE, YOUR CHANGES WILL BE LOST.
*/
package br.com.senior.furb.basico;
import br.com.senior.messaging.model.*;
@CommandDescription(name="exportEvento", kind=CommandKind.Query, requestPrimitive="exportEvento", responsePrimitive="exportEventoResponse")
public inter... | true |
040fee073027fee48fc7134c985e4a7455b4ba97 | Java | hanghangvvix/oft_test | /src/ct/oft/util/TxtUtils.java | UTF-8 | 1,489 | 2.8125 | 3 | [] | no_license | package ct.oft.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* 生成TXT文件
*
* @author cxj
*
*/
public class TxtUtils {
public static int writeTxtFile(String filePath, String fileName, String content) {
File file = new File(filePath);
if (!file.exists()) {
file.mkd... | true |
0fa98a23f3f9e0e66525a0855513cd76088b8e51 | Java | renzorh98/null_pointer | /generacion_xml/metodo1/firmar_xml.java | WINDOWS-1250 | 4,600 | 2.234375 | 2 | [] | no_license | package iss;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.Random;
public class firmar_xml {
public static String firma=" </ext:UBLExtension>\n"
+ "\n"
+ " <ext:UBLExtensi... | true |
7a3371f180a7cd71c3546097549be09359d87a70 | Java | philburk/jsyn | /src/main/java/com/jsyn/unitgen/FilterAllPass.java | UTF-8 | 1,861 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Phil Burk, Mobileer 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... | true |
e024189b60bb3a2e56f05bdd150947a56703ecc8 | Java | aesopee/aesopee | /Frameworks/BaseFrameworkClient/src/main/java/com/slickcode/baseframework/page/BaseHeaderPanel.java | UTF-8 | 313 | 1.757813 | 2 | [] | no_license | package com.slickcode.baseframework.page;
import com.slickcode.baseframework.panel.BasePanel;
/**
*
* It extends {@link BasePanel}.
*
* @author Sourabh
*
*/
public abstract class BaseHeaderPanel extends BasePanel {
/**
*
*/
private static final long serialVersionUID = 6790260359406693731L;
}
| true |
af41b66020f46cfbbfe61da0b349132d10d28880 | Java | thalvadzhi/PiCalculator | /src/main/java/Constants/Constants.java | UTF-8 | 1,070 | 1.679688 | 2 | [] | no_license | package Constants;
import org.apfloat.Apint;
public class Constants {
public static Apint N_MINUS_1 = new Apint(-1);
public static Apint N_0 = new Apint(0);
public static Apint N_1 = new Apint(1);
public static Apint N_2 = new Apint(2);
public static Apint N_3 = new Apint(3);
public static Apint N_4... | true |
b9cd58c8d6275e0ce2b5f87a802a8bfb19c71dc9 | Java | BinSlashBash/xcrumby | /src-v2/com/google/gson/reflect/TypeToken.java | UTF-8 | 7,372 | 2.125 | 2 | [] | no_license | /*
* Decompiled with CFR 0_110.
*/
package com.google.gson.reflect;
import com.google.gson.internal.$Gson$Preconditions;
import com.google.gson.internal.$Gson$Types;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVari... | true |
5cb6d88c6b93267f6796f3884ebfca84efd9f2ab | Java | yungoo/task-dealer | /src/main/java/com/rainbow/taskd/exception/TaskDuplicatedException.java | UTF-8 | 209 | 2.03125 | 2 | [] | no_license | package com.rainbow.taskd.exception;
/**
* 任务重复
*/
public class TaskDuplicatedException extends TaskException {
public TaskDuplicatedException(String message) {
super(message);
}
}
| true |
a7ea092a318a5b7e04d6e63c99b90c09dacd5700 | Java | boalang/NR | /compiler/src/java/boa/datagen/SeqSortMerge.java | UTF-8 | 4,515 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015, Hridesh Rajan, Robert Dyer, Hoan Nguyen
* and Iowa State University of Science and Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | true |
dae9647c1801112b0ff8d0b7b1c57c92ba81e4c1 | Java | carlonlv/Java-Projects | /FarmSimulator/src/farmyard/AnimalFood.java | UTF-8 | 1,853 | 3.1875 | 3 | [] | no_license | package farmyard;
import farm_simulation.FarmSimulator;
import javafx.scene.paint.Color;
/** This is a piece of animal food */
public class AnimalFood extends FarmProduct {
/**
* Constructs a new food at the specified cursor location (x, y).
*
* @param xCoordinate the x co-ordinate of the food's curs... | true |
ecef7faf77eb56ca17c991a24c7768b6ce2d1b95 | Java | easyhao1314/TravelPlatform | /PhoenixTravelAgencyPro/src/com/fenghuang/dao/impl/dantuanImpl.java | UTF-8 | 6,561 | 1.960938 | 2 | [] | no_license | package com.fenghuang.dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.spr... | true |
5e0d63d11761f635df92c888df44831b20cf1e54 | Java | Zul-abdin/CS111 | /src/simple/strings/biz.java | UTF-8 | 682 | 3.40625 | 3 | [] | no_license | package simple.strings;
/*
* For Question 14 on Final Review by Joseph
*/
public class biz {
public static String bizarre(String str){
if(str.indexOf(" ") == -1){
if(str.length() % 2 == 0){
return (StringMethods.reverse(str));
} else {
return str;
... | true |
6db4c4d8cea131fe25b45258d1c2579efa9eb6f1 | Java | thenewobjective/versioned-lexical-search-interface | /src/edu/uwm/cs/lexical_search/view/QueryComposite.java | UTF-8 | 5,083 | 2.296875 | 2 | [] | no_license | package edu.uwm.cs.lexical_search.view;
import java.util.Observable;
import java.util.Observer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Even... | true |
b4f4b70bbc0c9d8e441567023eae23995b109272 | Java | huxiaodan-hku/DailySummary | /Code/code/LeetCode240.java | UTF-8 | 2,332 | 4 | 4 | [] | no_license | package com.todd.code;
/**
* @author todd
* @date 2020/7/15 11:14
* @description: 编写一个高效的算法来搜索mxn矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性:
* 每行的元素从左到右升序排列。
* 每列的元素从上到下升序排列。
* 会发现每次都是向左数字会变小,向下数字会变大,有点和二分查找树相似。
* 如果 target 的值大于当前值,那么就向下走。
* 如果 target 的值小于当前值,那么就向左走。
* 如果相等的话,直接返回 true 。
*/
public class LeetCode240 ... | true |
577b293f24f8d4bbb5febc5b09066302faa4ed17 | Java | savage-development/unREST | /src/main/java/com/savadev/unrest/controller/config/ConfigResponse.java | UTF-8 | 304 | 2.0625 | 2 | [] | no_license | package com.savadev.unrest.controller.config;
import com.savadev.unrest.domain.config.Config;
public class ConfigResponse {
private final Config config;
public ConfigResponse(Config config) {
this.config = config;
}
public Config getConfig() {
return config;
}
}
| true |
76aa5389ee3375b6c69fe2d1152c4def9184195d | Java | aakashverma1124/DataStructuresUsingJava | /OtherAlgos/SlidingWindowPattern.java | UTF-8 | 918 | 4.0625 | 4 | [] | no_license | /*
*
* @author
* Aakash Verma
*
* Problem: Given an array, find the average of all contiguous subarrays of size ‘K’ in it.
* Sliding Window Pattern
*
* Output: 2.2 2.8 2.4 3.6 2.8
*
*/
class SlidingWindowPattern {
public double[] contiguousSubArrayWithSumK(int a[], int k) {
double[] result = new double[a.length... | true |
bd075812ca4aa3955d87b0ff0bbf58c2e8de8c82 | Java | lizhiaizhanrui/CanToolApp | /CanToolApp/src/com/example/cantoolapp/App.java | UTF-8 | 461 | 1.921875 | 2 | [] | no_license | package com.example.cantoolapp;
import java.util.ArrayList;
import java.util.List;
import android.app.Application;
public class App extends Application{
private List<String> fileList = new ArrayList<String>();
public List<String> getFileList() {
return fileList;
}
public void setFileList(List<String> fileL... | true |
a31c90293c8766b7f672be75b40c347fa4db14e9 | Java | DmitriBoulanger/samples | /basic/0/jpa0/src/test/java/de/dbo/samples/jpa0/junit/CloseTest.java | UTF-8 | 821 | 2.046875 | 2 | [] | no_license | package de.dbo.samples.jpa0.junit;
import de.dbo.samples.jpa0.junit.impl.TransactionTest;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CloseTest extends TransactionTest {
protected static final Logger log = LoggerFactory.getLogger(CloseTest.class);
@Test
p... | true |
e50a2d9a9b2beb28c94358b2c37c2f593282a3d6 | Java | peiyunfei/FastEC | /latte-ui/src/main/java/com/pyf/latte/ui/widget/AutoPhotoLayout.java | UTF-8 | 12,115 | 2 | 2 | [] | no_license | package com.pyf.latte.ui.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.AppCompatImageView;
import android.u... | true |
5e749ee71860679e34ab144ecb2b74d166b65c0e | Java | ZeevHayat1/aws-sdk-java | /aws-java-sdk-dynamodb/src/test/java/com/amazonaws/services/dynamodbv2/datamodeling/ConfigureS3LinksTest.java | UTF-8 | 3,333 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2011-2019 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
* This file is distributed on an "AS IS" ... | true |
e46c8c87bd70864bf26aaf041db21c8065a145d3 | Java | Warwick8300/bitcamp-fit-tour | /src/main/java/com/eomcs/lms/service/NoticeService.java | UTF-8 | 287 | 1.859375 | 2 | [] | no_license | package com.eomcs.lms.service;
import java.util.List;
import com.eomcs.lms.domain.Notice;
public interface NoticeService {
List<Notice> list(int pageNo, int pageSize);
int add(Notice notice);
Notice get(int no);
int update(Notice notice);
int delete(int no);
int size();
}
| true |
13f7e175682012e25f2aa10c1d468e9d3a1a26c8 | Java | sreeise/spring-security-and-vaadin | /src/main/java/dashboard/vaadin/login/security/ServiceListener.java | UTF-8 | 1,249 | 2.375 | 2 | [
"MIT"
] | permissive | package dashboard.vaadin.login.security;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.router.BeforeEnterEvent;
import com.vaadin.flow.server.ServiceInitEvent;
import com.vaadin.flow.server.VaadinServiceInitListener;
import com.vaadin.flow.spring.annotation.SpringComponent;
import dashboard.vaadin.login... | true |
3998405f0ce3b0b2b3426059fe34c806c8dba0c1 | Java | Tiptopolis/uChumpEngine | /src/com/mygdx/game/uChumpClasses/UI/Widgets/Controls/uCloseBtn.java | UTF-8 | 2,962 | 2.390625 | 2 | [] | no_license | package com.mygdx.game.uChumpClasses.UI.Widgets.Controls;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.mygdx.game.uChumpClasses.Core.Input.uHit;
import com.mygdx.game.uChumpClasses.UI.iLayer;
import com.mygdx.game.uChumpClasses.UI.uWidget;
import com.mygdx.gam... | true |
149b374fc7b5838109c21069070c1b4e4d35bda1 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-mhub/src/main/java/com/aliyuncs/mhub/transform/v20170825/QueryPackInfoResponseUnmarshaller.java | UTF-8 | 1,601 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 writing, software
* distributed u... | true |
73a3bb35bc2fcd2f0126010c2a5e62feb2035e56 | Java | glubeck/RecordIndexer | /src/client/GetSampleImage_Result.java | UTF-8 | 868 | 2.59375 | 3 | [] | no_license | package client;
import model.*;
/**
* contains image information for the result of the
* GetSampleImage method of the Client Communicator class
* @author Grant
*
*/
public class GetSampleImage_Result {
private Image image;
private boolean valid = true;
private String URL_PATH;
public GetSampleImage_Resul... | true |
397b1433e02beaaa6442c3909a16a8d4c9a9da36 | Java | brunoruggero/pharmastock | /src/main/java/br/com/rrstecnologia/pharmastock/controller/PharmaController.java | UTF-8 | 2,242 | 2.09375 | 2 | [] | no_license | package br.com.rrstecnologia.pharmastock.controller;
import br.com.rrstecnologia.pharmastock.dto.PharmaDTO;
import br.com.rrstecnologia.pharmastock.dto.QuantityDTO;
import br.com.rrstecnologia.pharmastock.exception.PharmaAlreadyRegisteredException;
import br.com.rrstecnologia.pharmastock.exception.PharmaNotFoundExcep... | true |
8b8eb4676af46011d2b52420827d5cff10f633cf | Java | dmsuarezd/oferta | /src/Inicio/Inicio.java | UTF-8 | 12,013 | 2.21875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Inicio;
import Caficultor.CaficultorFRM;
import Ciudad.CiudadFRM;
import Producto.ProductoFRM;
/**
*
* @author cadefihuilal... | true |
042ad3cf3ee63b7b084ba07b9b3fba29153eee2a | Java | clare103/Java | /ClareAssignment8/src/chapter11/Handshakes.java | UTF-8 | 705 | 3.78125 | 4 | [] | no_license | package chapter11;
import java.util.*;
public class Handshakes {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int people=0;
int N_handshakes=0;
Scanner keyboard = new Scanner(System.in);
System.out.println("This program computes the number of handshakes done... | true |
e7051340c237c3d410365eb4ebabce5fd9acc58f | Java | KATRINAHIGH/zcw-projects | /JavaAssessment3/src/main/java/user_management/security/Authenticator.java | UTF-8 | 462 | 2.890625 | 3 | [] | no_license | package user_management.security;
import user_management.User;
public class Authenticator {
public static boolean authenticate(User user, String passwordToCheck) {
return false;
}
}
// Authenticator should have one static method authenticate. This method will take arguments User user and
// ... | true |
0c0e7f0129c661c2cdf51a19fbf5fa2c22bf4335 | Java | softwarelanguagebs/androidBase | /TestBaseKuangjia06.03/src/com/example/testbase/intentService2/IntentServiceDemo.java | GB18030 | 4,127 | 2.265625 | 2 | [] | no_license | /*
* ļIntentServiceDemo.java
* ȨCopyright by www.xx.com
*
* ߣwen
* ʱ䣺2015323
* ٵţ
* ĵţ
* ݣ
*/
package com.example.testbase.intentService2;
import android.app.IntentService;
import android.content.Intent;
import android.nfc.Tag;
import android.os.IBinder;
import android.util.Log;
public class IntentServi... | true |
6a6e00fd43933a64ecbf5589783f0277720d259c | Java | aadityapurani/Android-CSE3310 | /app/src/main/java/com/team7/cse/mavevent/UserBaseModel.java | UTF-8 | 4,207 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.team7.cse.mavevent;
//import java.util.ArrayList;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by mayur on 4/11/2018.
* Edited by Jonathon Kirkpatrick on 4/22/2018.
*/
public class UserBaseModel implements Serializable {
//private int id;
private String fName;
pri... | true |
b1a40396edb985406eae241f4c4c7fba6f7ced16 | Java | kikinana/nana_admin | /src/main/java/com/h3c/nanaadmin/service/impl/SysUserTokenServiceImpl.java | UTF-8 | 2,732 | 2.21875 | 2 | [] | no_license | package com.h3c.nanaadmin.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.h3c.nanaadmin.common.utils.TokenGenerator;
import com.h3c.nanaadmin.mapper.SysUserTokenMapper;
impor... | true |
d89aeb646f0a12648d2c8e587502dd43c917ca31 | Java | chinniprashanth1432/springpetclinic | /src/test/java/org/springframework/samples/petclinic/web/PetListControllerTests.java | UTF-8 | 3,009 | 1.976563 | 2 | [] | no_license | package org.springframework.samples.petclinic.web;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
impo... | true |
fd36cf2b7d0a8c49e74ba4e72c6ef45143c3f386 | Java | tsflying/plxpl | /src/main/java/cn/plxpl/service/impl/UserService.java | UTF-8 | 621 | 2.140625 | 2 | [] | no_license | package cn.plxpl.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.plxpl.entity.User;
import cn.plxpl.service.IUserService;
import cn.plxpl.wx.dao.IUserDao;
@SuppressWarnings("restriction")
@Service
public class UserService implements IUserService {
@Resource... | true |
2f1a9e12ffd3a44b60f31bfd312782f0b5feabbc | Java | yash2710/AndroidStudioProjects | /source/app/src/main/java/com/google/android/gms/internal/kn.java | UTF-8 | 25,056 | 1.5 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.internal;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
impo... | true |
c94c4b05d3654fb3d3f77cdc6c410ec9d1fda7d8 | Java | dadoz/MarvelSuperHerosApp | /app/src/main/java/com/application/dev/david/marvelsuperherosapp/MainActivity.java | UTF-8 | 1,781 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.application.dev.david.marvelsuperherosapp;
import android.os.Bundle;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import com.application.dev.david.marve... | true |
02bcd0f0b402456780496c43435553a057160dc2 | Java | arcus-smart-home/arcusplatform | /platform/arcus-lib/src/main/java/com/iris/platform/rule/catalog/action/config/LogActionConfig.java | UTF-8 | 1,884 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Arcus Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
dfe42535415e2f192483df1eb2f151711bcf31e8 | Java | lucEvent/delvinglanguages | /app/src/main/java/com/delvinglanguages/view/utils/ListItemSwipeListener.java | UTF-8 | 180 | 1.578125 | 2 | [] | no_license | package com.delvinglanguages.view.utils;
public interface ListItemSwipeListener {
void onItemMove(int fromPosition, int toPosition);
void onItemDismiss(int position);
} | true |
b768fc53c962f65161198d34036a3a71ab6a7d6e | Java | sparklerscar/MomoTickets_Client | /src/main/java/momotickets/controller/MemberController.java | UTF-8 | 8,856 | 2.203125 | 2 | [] | no_license | package momotickets.controller;
import momotickets.enumtype.*;
import momotickets.factory.EJBFactory;
import momotickets.model.Account;
import momotickets.model.Member;
import momotickets.model.Order;
import momotickets.service.OrderManageService;
import momotickets.service.PayManageService;
import momotickets.servic... | true |
cee81dbf021d3acdc897eef30f29946f846b25c3 | Java | jjesue01/machine | /JavaVersion/src/main/java/com/github/gasrios/raw/data/InteroperabilityTag.java | UTF-8 | 1,573 | 2.484375 | 2 | [
"MIT"
] | permissive | /*
* © 2016 Guilherme Rios All Rights Reserved
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,... | true |
136b1de486f1dca3f7c41885621f76049c442243 | Java | devworkplace/POO | /Aula01_ExemploDeClasse/Principal.java | UTF-8 | 584 | 2.9375 | 3 | [] | no_license | public class Principal {
public static void main (String[] args){
/*
Produto prod = new Produto();
prod.setCodigo(1);
prod.setNome("Caderno");
prod.setPreco(12.90);
System.out.println("Codigo: " + prod.getCodigo());
System.out.println("Nome: " + prod.getNome());
System.out.println(... | true |
d79787dbd037fe789293fbe8435c25aa733c0e64 | Java | shumtar/patterns | /src/memento/Memento.java | UTF-8 | 193 | 2.359375 | 2 | [] | no_license | package memento;
public class Memento {
String state;
public Memento(String saveToState) {
super();
this.state = saveToState;
}
public String getSavedState() {
return state;
}
}
| true |
2010846bcca358f158cb7a67c46f5bb1a48bdd43 | Java | ayushkul/GeoAttendanceProject | /app/src/main/java/rkgit/com/geoattendance/AuthenticationActivity.java | UTF-8 | 6,364 | 1.875 | 2 | [] | no_license | package rkgit.com.geoattendance;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import com.auth0.android.Auth0;
import com.auth0.android.callback.BaseCallback;
import com.auth0.android.lock.AuthButt... | true |
6134328b4d6932aefa28c41e52b191cdd33b8a54 | Java | Pananakoliy/HW_2 | /src/ShootingRange.java | UTF-8 | 274 | 2.5625 | 3 | [] | no_license | public class ShootingRange {
private ShootingRange(){}
private static class StageSingletonHolder{
static ShootingRange instance = new ShootingRange();
}
public static ShootingRange getInstance(){
return StageSingletonHolder.instance;
}
}
| true |
da20880313e0381914f486a83a02f9cc27ebe919 | Java | skyleck/HEH-PLC | /app/src/main/java/be/heh/automation/PlcThread/EnumMessageWhat.java | UTF-8 | 238 | 2.234375 | 2 | [] | no_license | package be.heh.automation.PlcThread;
public enum EnumMessageWhat {
SWITCH(1),
TEXTVIEW(2);
private int i;
private EnumMessageWhat(int i){
this.i = i;
}
public int getNumber(){
return i;
}
}
| true |
e73655cd79cad5eeaa3d6710db807b1f0e05e025 | Java | SubhashKumarVatturi/GitHub-Repository-Search | /app/src/main/java/com/blue/githhubsearch/api/ApiInterface.java | UTF-8 | 730 | 1.9375 | 2 | [] | no_license | package com.blue.githhubsearch.api;
import com.blue.githhubsearch.model.Contributions;
import com.blue.githhubsearch.model.ContributorData;
import com.blue.githhubsearch.model.RepoData;
import com.blue.githhubsearch.model.Repos;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit... | true |
2d2810bc890248449ec600c6a26dbac9c4401bed | Java | demilich1979/d-test-automation-framework | /d-selenium/src/main/java/d/selenium/pageobject/forms/OrganizationEditIdentityForm.java | UTF-8 | 325 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package diaceutics.selenium.pageobject.forms;
import diaceutics.selenium.pageobject.BaseForm;
import org.openqa.selenium.By;
public class OrganizationEditIdentityForm extends BaseForm {
public OrganizationEditIdentityForm() {
super(By.name("organization_edit_identity"), "Organization Edit Identity");
... | true |
43791f7d400f55b0caf5b1fcd4ebb514dabd4e35 | Java | moutainhigh/new-rep1 | /hadoop-jar/src/main/java/com/timobb/hadoop/demo/wordcount/SortReduce.java | UTF-8 | 675 | 2.734375 | 3 | [] | no_license | package com.timobb.hadoop.demo.wordcount;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.mapreduce.Reducer;
public class SortReduce extends Reducer<IntWritable, IntWritable, IntWritable, IntWritable> {
private static IntWritable no = new IntWritable(1); // 排序序号
@Over... | true |
c53adbfdaa590f4e122788919781174af55057d9 | Java | DAR01/transfer-1 | /src/main/java/com/dzavorin/transfer/service/TransferService.java | UTF-8 | 1,333 | 2.328125 | 2 | [] | no_license | package com.dzavorin.transfer.service;
import com.dzavorin.transfer.model.AccountTransferPair;
import com.dzavorin.transfer.repository.TransferDao;
import io.vertx.ext.web.RoutingContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal;
import static com.dzavorin.transfer.utils.C... | true |
5116a763f6e72c3fba9a3bf211952472782bb812 | Java | Bhawna4tech/TW101_Java | /prime.java | UTF-8 | 743 | 3.46875 | 3 | [] | no_license | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
class Print{
public static void main (String[] args) throws java.lang.Exception{
Scanner reader=new Scanner(System.in);
int n=reader.nextInt();
List<Integer> x=new ArrayList<Integer... | true |
36a988fe1a156f9b316322e12aa1403533451019 | Java | Baravader/XOByHexlet | /tests/io/hexlet/xo/model/PlayerTest.java | UTF-8 | 737 | 2.671875 | 3 | [] | no_license | package io.hexlet.xo.model;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PlayerTest {
@Test
public void getName() {
final String inputName = "Serge";
final String expextedValue = inputName;
final Player player = new Player(inputName, null);
... | true |
4ab38441d816a07b2c35249208a933546bce9a53 | Java | dormaayan/TestsReposirotry | /DataBase/MethodsDataBase/incubator-dubbo-dubbo-2.6.5/ZookeeperRegistryTest/testSubscribeAnyValue.txt | UTF-8 | 378 | 1.867188 | 2 | [] | no_license | @Test public void testSubscribeAnyValue() throws InterruptedException {
final CountDownLatch latch=new CountDownLatch(1);
zookeeperRegistry.register(serviceUrl);
zookeeperRegistry.subscribe(anyUrl,new NotifyListener(){
@Override public void notify( List<URL> urls){
latch.countDown();
}
}
);
z... | true |
64d7140dcf8284f78541bcbacf478077680bec47 | Java | HashSalmon/GreenReceiptAndroid | /app/src/main/java/net/greenreceipt/greenreceipt/Store.java | UTF-8 | 301 | 1.523438 | 2 | [] | no_license | package net.greenreceipt.greenreceipt;
import java.util.Date;
/**
* Created by Boya on 12/16/14.
*/
public class Store
{
// public String name;
// public String address;
public int Id;
public int CompanyId;
public Company Company = new Company();
public Date CreatedDate;
}
| true |
e18df0bab5102f9b9779e64e20b3283df71ba892 | Java | jwiggers/demo1 | /backend/src/main/java/nl/notarishoeve8/demo1/Counter.java | UTF-8 | 330 | 3.15625 | 3 | [] | no_license | package nl.notarishoeve8.demo1;
public class Counter {
private Integer counter = 0;
public Integer up() {
return counter>20?20:++counter;
}
public Integer down() {
return counter<-20?-20:--counter;
}
public Integer decay() {
if (counter > 0) return --counter;
if (counter < 0) return ++counter;
retur... | true |
63ae6c67e4e7852b078955fc04a00cb78ee689f3 | Java | iamnav/SpringBoot-Java-Demo-application | /src/main/java/com/demo/service/EVServiceImpl.java | UTF-8 | 3,008 | 2.71875 | 3 | [] | no_license | package com.demo.service;
import com.demo.client.ChargersClient;
import com.demo.client.RestaurantsClient;
import com.demo.model.Charger;
import com.demo.model.ChargersResponse;
import com.demo.model.CodeRestaurantResponse;
import com.demo.model.EVResponse;
import com.demo.model.Restaurant;
import com.demo.model.Resta... | true |