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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
184468125c611cc328e2a1e23eee9bb96da6b7d9 | Java | Jung-hyelim/mvc-test | /dump/testcode/src/main/java/com/test/dao/DocumentDao.java | UTF-8 | 330 | 1.789063 | 2 | [] | no_license | package com.test.dao;
import com.test.model.Document;
public interface DocumentDao {
public int insert(Document document);
// public int update(Document document);
public Document select(int document_id);
// public List<Document> selectList(int start, int end);
//
// public int delete(int documen... | true |
280c9515670c9560dbcc8b796e4a767b9ba4565f | Java | metno/kvjava | /kvclient/src/main/java/no/met/kvclient/service/kvService.java | UTF-8 | 2,941 | 1.859375 | 2 | [] | no_license | package no.met.kvclient.service;
import java.util.Optional;
import no.met.kvclient.KvDataEventListener;
import no.met.kvclient.KvDataNotifyEventListener;
import no.met.kvclient.KvHintEventListener;
import no.met.kvutil.PropertiesHelper;
public class kvService implements KvSubsribeData, KvDataQuery {
KvSubsribeData ... | true |
97c7c5b89efec5585ece7382519b6ee8bb752fd8 | Java | niejuqian/TestDemo | /app/src/main/java/com/testdemo/other/WebViewActivity.java | UTF-8 | 1,077 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.testdemo.other;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.testdemo.R;
/**
* @AUTHOR:niejq@1dian.la
* @DATETIME:2017 02 13 16:17
* @DESC:
*/
public class WebViewActivity extends Activity{
WebView webView;
... | true |
d8d1567de5857e6ff681dcf3163537abfc3ae97f | Java | AkashDaga/SpringAndHibernate | /SpringPractice/src/com/springDemo/BeanScopeDemoApp.java | UTF-8 | 1,471 | 3.4375 | 3 | [] | no_license | package com.springDemo;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class BeanScopeDemoApp {
public static void main(String args[]) {
/*
* if scope of the bean defines in the configuration is prototype then every
* time we create an object of same id, spring container w... | true |
7622d091194e2c16f12bbe243bd590b694e5d1a3 | Java | muktar123/DataStructure | /data_structure/src/main/java/org/test/ds/heap/PriorityQ.java | UTF-8 | 1,056 | 3.296875 | 3 | [] | no_license | package org.test.ds.heap;
import java.util.Comparator;
import java.util.PriorityQueue;
public class PriorityQ {
PriorityQueue<Integer> pq ;
int[] pqArray;
public PriorityQ(int a[]){
this.pqArray =a;
pq= new PriorityQueue<Integer>(pqArray.length,new Comparator<Integer>() {
@Override
public int com... | true |
098102ae4bf832491d03a99bf89d32f25a7bf3c6 | Java | rotariucatalin/planner | /src/main/java/com/example/Planner/services/service_impl/ContactServiceImpl.java | UTF-8 | 3,146 | 2.203125 | 2 | [] | no_license | package com.example.Planner.services.service_impl;
import com.example.Planner.dto.ContactDTO;
import com.example.Planner.models.Company;
import com.example.Planner.models.Contact;
import com.example.Planner.repositories.ContactRepository;
import com.example.Planner.services.ContactService;
import org.springframework.b... | true |
c5b62401a2a384021a3161bab5074670d0243ae9 | Java | wolf2217/DevChat | /app/src/main/java/com/commandcenter/devchat/Model/User.java | UTF-8 | 781 | 2.484375 | 2 | [] | no_license | package com.commandcenter.devchat.Model;
/**
* Created by Command Center on 11/9/2017.
*/
public class User {
private String Username;
private String Rank;
private String Status;
public User() {
}
public User(String username, String rank, String status) {
Username = username;
... | true |
fc43ff74f81c109ea0ab802220811f7523fc0f53 | Java | BloodyKui/PSS_SSJ | /pss_ssj/src/main/java/cn/lkk/pss/domain/PurchaseBill.java | UTF-8 | 3,504 | 2.296875 | 2 | [] | no_license | package cn.lkk.pss.domain;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import j... | true |
e0a588b3de357466fe2d3c715731cabe8de1a648 | Java | sgholamian/log-aware-clone-detection | /LACCPlus/Camel/3898_2.java | UTF-8 | 958 | 2.125 | 2 | [
"MIT"
] | permissive | //,temp,JmsInOutFixedReplyQueueTimeoutTest.java,75,93,temp,JmsInOutFixedReplyQueueTimeoutUseMessageIDAsCorrelationIDTest.java,30,44
//,3
public class xxx {
public void configure() throws Exception {
from("direct:start")
.to(ExchangePattern.InOut,
... | true |
abf8ae0f595676c86dab2d2cc5e88d9134661e2b | Java | sanjaytj/Java-OOPS-CrashCourse | /encapsulation/Encapsulation.java | UTF-8 | 1,585 | 3.78125 | 4 | [] | no_license | package org.example.javaSamplePrograms.encapsulation;
public class Encapsulation {
public static void main(String[] args) {
Laptop l1 = new Laptop();
l1.setPrice(31000);
System.out.println(l1.getPrice());
}
//1. public doWork is accessible even in the ClassAndObjects at poin... | true |
c0c938619aef65cfea6cbce2dbbf89b746e2353e | Java | Amr-Elyamany/Project-Euler | /src/EvenFibonacci.java | UTF-8 | 717 | 3.140625 | 3 | [] | no_license | import java.math.BigInteger;
import java.util.ArrayList;
public class EvenFibonacci {
static ArrayList<Long> factors = new ArrayList<>();
// public static void primes()
public static ArrayList<Long> getFactors(long n)
{
factors.clear();
for (long i = 1; i <= n; i++) {
if(n%i==0)
fac... | true |
eb031a8676534b22a384c25bad53ba48b5e4adaf | Java | shanghaif/EnjoyWorkSpaceOpen | /KU09_Modules/common_ku09/src/main/java/kuyou/common/ku09/event/jt808/alarm/EventAlarmNearPower.java | UTF-8 | 302 | 1.828125 | 2 | [] | no_license | package kuyou.common.ku09.event.jt808.alarm;
/**
* action :近电报警
* <p>
* remarks: <br/>
* author: wuguoxian <br/>
* date: 21-3-23 <br/>
* </p>
*/
public class EventAlarmNearPower extends EventAlarm {
@Override
public int getCode() {
return Code.ALARM_NEAR_POWER;
}
} | true |
98748f6161adb5a4501d9aabf975dafec60b33ca | Java | darthnastya/features-collection | /src/main/java/feature/collections/data/FeatureReader.java | UTF-8 | 2,384 | 2.3125 | 2 | [] | no_license | package feature.collections.data;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import feature.collections.data.models.Acquisition;
import feature.collections.data.models.Feature;
import featu... | true |
7aec7a3f68369ceaa6656d26b1a2844b84b51c81 | Java | phantomesse/project-euler | /src/project/euler/problems/problem010/Problem16.java | UTF-8 | 621 | 3.296875 | 3 | [] | no_license | package project.euler.problems.problem010;
import java.math.BigInteger;
import project.euler.Problem;
/**
* What is the sum of the digits of the number 2<sup>1000</sup>?
*
* @author Lauren Zou
*/
public class Problem16 extends Problem {
private final int POWER = 1000;
public Problem16() {
... | true |
fd786484e41fd863d476c4d79c7eb3577146970e | Java | samuelowino/CodeLabs | /src/src/Actual/StringOperationsTutorial.java | UTF-8 | 872 | 3.703125 | 4 | [] | no_license | package Actual;
/**
* Created by HACKER on 07/08/2017.
* Operators|| == && != +
*/
public class StringOperationsTutorial {
public static void main(String[] args) {
//creating a String from literals
String value = "my string value";
//creating string from a char[] array
char[] hel... | true |
13aa1a3d325e7bd0c3faa3721fae91ed9c066854 | Java | eschwert/Breakbulk | /org.openanzo.rdf/src/main/java/org/openanzo/glitter/query/rewriter/SingletonGroupRewriter.java | UTF-8 | 1,691 | 2.6875 | 3 | [] | no_license | package org.openanzo.glitter.query.rewriter;
import java.util.Iterator;
import org.openanzo.glitter.query.TreeRewriter;
import org.openanzo.glitter.syntax.abstrakt.BGP;
import org.openanzo.glitter.syntax.abstrakt.GraphPattern;
import org.openanzo.glitter.syntax.abstrakt.Group;
import org.openanzo.glitter.syntax.abstr... | true |
12cf442fbd96f741886eb49c03f79f0336297aa5 | Java | zhentaoJin/owner-sso | /sso-core/src/main/java/com/jzt/sso/utils/StringUtil.java | UTF-8 | 6,227 | 2.578125 | 3 | [] | no_license | package com.jzt.sso.utils;
import org.apache.commons.lang3.StringUtils;
public class StringUtil extends StringUtils {
/**
* 根据文件后缀返回文件类型(1:文档,2:压缩文件,3:图片,4:语音文件,5:视频文件,6:报表文件,7:dcm文件,0:未知)
*
* @param suffix
* @return
*/
public static int getFileType(String suffix) {
suffix = ... | true |
2d68798f13117615ab5315ad80342e02c3710a95 | Java | Janmm14/GoMint | /gomint-server/src/main/java/io/gomint/server/world/block/StationaryLava.java | UTF-8 | 1,522 | 2.390625 | 2 | [
"BSD-3-Clause"
] | permissive | package io.gomint.server.world.block;
import io.gomint.event.entity.EntityDamageEvent;
import io.gomint.server.entity.EntityLiving;
import io.gomint.server.registry.RegisterInfo;
import io.gomint.world.block.BlockStationaryLava;
import io.gomint.world.block.BlockType;
import java.util.concurrent.TimeUnit;
/**
* @au... | true |
56d59c62227276bc596f068a90ab407f65811661 | Java | jobenassi/repository_of_Giorgia | /ajax-and-webdesign-exercise/src/main/java/com/capgemini/example/dto/CustomerVm.java | UTF-8 | 176 | 1.53125 | 2 | [] | no_license | package com.capgemini.example.dto;
import lombok.Data;
@Data
public class CustomerVm {
private Long id;
private String value;
private String label;
}
| true |
5d1c009be385a29479f1d52b851c978d0b2848ce | Java | rameshvoltella/AndroidOfSuperNe | /app/src/main/java/com/donal/superne/app/manager/OffineManager.java | UTF-8 | 2,111 | 2.25 | 2 | [] | no_license | package com.donal.superne.app.manager;
import org.jivesoftware.smack.PacketCollector;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.filter.AndFilter;
import org.jivesoftware.smack.filter.PacketExten... | true |
565c8968aee84b46290d7ffed2e1b84aeb4395e6 | Java | RevenueCat/purchases-hybrid-common | /android/src/test/java/apitests/java/mappers/EntitlementInfosMapperApiTests.java | UTF-8 | 405 | 1.835938 | 2 | [
"MIT"
] | permissive | package apitests.java.mappers;
import com.revenuecat.purchases.EntitlementInfos;
import com.revenuecat.purchases.hybridcommon.mappers.EntitlementInfosMapperKt;
import java.util.Map;
@SuppressWarnings("unused")
class EntitlementInfosMapperApiTests {
private void checkMap(EntitlementInfos entitlementInfos) {
... | true |
474bdc833428c6676248a44d0e6b00d83bd6dcda | Java | SaintsRobotics/KommandKart | /src/main/java/frc/robot/util/CANEncoderPidSource.java | UTF-8 | 733 | 2.34375 | 2 | [] | no_license | package frc.robot.util;
import java.lang.reflect.Constructor;
import com.revrobotics.CANEncoder;
import edu.wpi.first.wpilibj.PIDSource;
import edu.wpi.first.wpilibj.PIDSourceType;
public class CANEncoderPidSource implements PIDSource {
private CANEncoder m_CANEncoder;
private PIDSourceType m_pidSourceType;
pub... | true |
a40d31af4c454b067067cc5b628bf8c739c1081c | Java | trinodb/trino | /plugin/trino-pinot/src/test/java/io/trino/plugin/pinot/TestPinotGrpcServerQueryClientTlsConfig.java | UTF-8 | 4,758 | 2.046875 | 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
* distribut... | true |
353ae966bb971a568bbad961c1e7e3e7d08556b9 | Java | Dummyurl/Pink-v3 | /app/src/main/java/com/anglll/pink/ui/model/VideoModelGroup.java | UTF-8 | 2,760 | 2.09375 | 2 | [] | no_license | package com.anglll.pink.ui.model;
import android.support.v7.widget.RecyclerView;
import com.airbnb.epoxy.EpoxyModel;
import com.airbnb.epoxy.EpoxyModelGroup;
import com.anglll.pink.R;
import com.anglll.pink.data.model.VideoMain;
import com.anglll.pink.ui.main.MainController;
import java.util.ArrayList;
import java.u... | true |
4a95033d9ff9bbe63e6debe9d6334297e818770e | Java | dmfullstack/TY_CAPGEMINI_JAVACloud_10thFEB_TARUSHIVERMA | /loanproject/src/main/java/com/tyss/capgemini/loanproject/controller/CustomerController.java | UTF-8 | 10,869 | 2.46875 | 2 | [] | no_license | package com.tyss.capgemini.loanproject.controller;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import com.tyss.capgemini.loanproject.exception.DateLimitException;
import com.tyss.capgemini.loanproject.exception.InvalidDataException;
import com.tyss.capgemini.loanproject.util.FactoryClass;
imp... | true |
2275ce61a46869221d07e38b96c10139728d1d71 | Java | ThreeTen/threetenbp | /src/main/java/org/threeten/bp/zone/ZoneRulesInitializer.java | UTF-8 | 5,828 | 1.976563 | 2 | [
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the abov... | true |
19b0198f39813e97461c35e9a0035053e238539b | Java | azhangge/hj-old | /src/com/hjedu/customer/controller/AAUser.java | UTF-8 | 19,254 | 1.609375 | 2 | [] | no_license | package com.hjedu.customer.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.PostConstruct... | true |
c2e276dc0b95ec2604d5dc7ebe3358e8f8361be4 | Java | Jarek1986/FirstGitProject | /src/konstruktory/Vehicle.java | UTF-8 | 182 | 2.84375 | 3 | [] | no_license | package konstruktory;
public class Vehicle {
public void move(){
System.out.println("Vehicle are used to move from one place to another. Vehicle class");
}
}
| true |
06646fc5b9cd42ab1971fb4eb8d082b6e74c6496 | Java | Quison/springblog | /src/main/java/com/moguichun/blog/service/impl/UserServiceImpl.java | UTF-8 | 512 | 2.046875 | 2 | [] | no_license | package com.moguichun.blog.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.moguichun.blog.dao.UserDao;
import com.moguichun.blog.model.User;
import com.moguichun.blog.service.UserService;
@Service("UserService")
public class UserS... | true |
f1324598d1bc8c106281ef4e48714cdf0421f650 | Java | Jorgelhc/Protocolo-de-vendas | /src/main/java/com/learning/protocoloDeVendas/controller/ProtocoloController.java | UTF-8 | 1,393 | 2.296875 | 2 | [] | no_license | package com.learning.protocoloDeVendas.controller;
import com.learning.protocoloDeVendas.model.Protocolo;
import com.learning.protocoloDeVendas.service.ProtocoloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.a... | true |
e2472f956c7b44eb50aa6612b831a594fd3d5f30 | Java | jimbarritt/protoqol | /src/test/unit/java/org/protoqol/servlet/ErrorHandlingServlet.java | UTF-8 | 600 | 2.390625 | 2 | [] | no_license | package org.protoqol.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class ErrorHandlingServlet extends HttpServlet {
public ErrorHandlingServlet() {
System.out.println("Constructing Servlet");
}
protected void doPost(HttpServletRequest request, HttpServlet... | true |
3d7f27c88d460cc7377385a569599984929df086 | Java | jppf-grid/JPPF | /common/src/java/org/jppf/process/LauncherListener.java | UTF-8 | 3,652 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | /*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.org
*
* 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 re... | true |
cb9e95fca77d3faf849008b6dfd073f68a283e97 | Java | maymayan/customlicensing | /src/main/java/com/example/customlicensing/repo/LicensingRepository.java | UTF-8 | 244 | 1.6875 | 2 | [] | no_license | package com.example.customlicensing.repo;
import com.example.customlicensing.model.License;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface LicensingRepository extends MongoRepository<License, String> {
}
| true |
f7e9cd1f45ba3b7f072c259dea40af60082f18bd | Java | FAU-Inf2/ARES | /src/main/java/de/fau/cs/inf2/cas/common/bast/nodes/BastClassDecl.java | UTF-8 | 4,857 | 2.046875 | 2 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-2.0-only",
"CC0-1.0",
"Apache-2.0",
"GPL-1.0-or-later",
"MIT",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"EPL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright (c) 2017 Programming Systems Group, CS Department, FAU
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... | true |
e3af6b4466a3e49446de12e7e7d7bc09778a509c | Java | abdulazizahwan/MyGithubUserApp | /app/src/main/java/com/abdulazizahwan/mygithubuserapp/viewmodel/FollowerAdapter.java | UTF-8 | 2,502 | 2.4375 | 2 | [] | no_license | package com.abdulazizahwan.mygithubuserapp.viewmodel;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.Re... | true |
b0057bde357c68920cc89a6e0e56e0237dfc99d2 | Java | jianwi/algorithm4 | /src/com/company/Main.java | UTF-8 | 317 | 2.203125 | 2 | [] | no_license | package com.company;
import edu.princeton.cs.algs4.StdDraw;
import edu.princeton.cs.algs4.StdOut;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println("i love java");
StdDraw.point(.1,2);
StdDraw.line(1,0,0.4,19);
}
}
| true |
cb1ea7610ade7836e9b267499abdb16eb61f2e24 | Java | Sadwyn/RandomUserApp | /app/build/generated/source/apt/debug/com/andersen/sadwyn/randomusertest/databinding/UserListItemBinding.java | UTF-8 | 7,206 | 2.015625 | 2 | [] | no_license | package com.andersen.sadwyn.randomusertest.databinding;
import com.andersen.sadwyn.randomusertest.R;
import com.andersen.sadwyn.randomusertest.BR;
import android.view.View;
public class UserListItemBinding extends android.databinding.ViewDataBinding {
private static final android.databinding.ViewDataBinding.Inclu... | true |
dd13549747134e9d1e5436b2ed74854e2cdd9a56 | Java | RedElect/ses-server | /ses-api/ses-api-common/src/main/java/com/redescooter/ses/api/common/enums/scooter/ScooterModelEnums.java | UTF-8 | 856 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.redescooter.ses.api.common.enums.scooter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
/**
* @author: alex
* @Date: 2020/2/13 10:39
* @version:V 1.2
* @Description: 车辆型号
*/
@AllArgsConstructor
@Getter
public enum ScooterModelEnums {
SCOOTER... | true |
df546845f2984bd6b8923fdff0c29527a806c183 | Java | endavainterns2016/DemoProject | /app/src/main/java/endava/com/demoproject/db/dao/RepoDAO.java | UTF-8 | 475 | 2.046875 | 2 | [] | no_license | package endava.com.demoproject.db.dao;
import com.j256.ormlite.dao.BaseDaoImpl;
import com.j256.ormlite.support.ConnectionSource;
import java.sql.SQLException;
import endava.com.demoproject.model.App;
import endava.com.demoproject.model.Repo;
public class RepoDAO extends BaseDaoImpl<Repo,Integer> {
public Repo... | true |
eef3f9e355505751e977dd39dee38bfc21bc6103 | Java | benjious/Criminallntent | /app/src/main/java/com/example/administrator/criminallntent/Fragment/AlterFragment.java | UTF-8 | 2,345 | 2.375 | 2 | [] | no_license | package com.example.administrator.criminallntent.Fragment;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentManager;
import com... | true |
d0fd180e2909933f92e13379bfe6ce1efd557cce | Java | akajoeny/Pacman | /src/main/java/se/joelnystrom/pacman/Character.java | UTF-8 | 1,285 | 3.4375 | 3 | [] | no_license | package se.joelnystrom.pacman;
import java.awt.*;
/**
* Created by jnys on 25/02/2017.
*/
public abstract class Character {
private int xPos;
private int yPos;
private int width;
private int height;
private Color characterColor = Color.YELLOW;
protected Image characterImage;
public Cha... | true |
45053d11c7d584e40890def5b69dff0759829c32 | Java | joshdholtz/SweetTooth-Android-BLE | /Library/SweetTooth/src/com/joshholtz/sweettooth/BLEAdvertisementData.java | UTF-8 | 6,745 | 2.453125 | 2 | [] | no_license | package com.joshholtz.sweettooth;
import java.util.Arrays;
import java.util.HashMap;
public class BLEAdvertisementData extends HashMap<String, String[]> {
// Flags
public final static String FLAGS = "01";
// Service
public final static String MORE_16_BIT_SERVICE_UUIDS_AVAILABLE = "02";
public final static Str... | true |
d818d41f0626109e77fcc79272c0153f0613313b | Java | gems-uff/oceano | /core/src/main/java/br/uff/ic/oceano/core/model/RevisionGit.java | UTF-8 | 1,214 | 2.484375 | 2 | [
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.uff.ic.oceano.core.model;
/**
*
* @author heron
*/
public class RevisionGit extends Revision{
private String sha1;
@Override
public boolean equals(Object obj) {
if (obj == null) {
... | true |
b314c1acc1013015357a4aa6973fac0b48771a64 | Java | dakshj/data-structures-algorithms | /src/main/java/BombEnemy.java | UTF-8 | 2,851 | 3.375 | 3 | [] | no_license | class BombEnemy {
public int maxKilledEnemies(char[][] grid) {
if (grid == null || grid.length == 0 || grid[0].length == 0) return 0;
final int rows = grid.length;
final int cols = grid[0].length;
int killedInRow = 0;
final int[] killedInCol = new int[cols];
// Do... | true |
3ebecc30292562245ae46d736f0f0d1f663b127c | Java | Nicksteal/ShopR | /Android/Shopr/src/main/java/com/uwetrottmann/shopr/context/algorithm/ContextualPreFiltering.java | UTF-8 | 5,768 | 3.015625 | 3 | [
"Apache-2.0",
"CC-BY-3.0",
"CC-BY-3.0-DE"
] | permissive | package com.uwetrottmann.shopr.context.algorithm;
import android.util.Log;
import com.uwetrottmann.shopr.ShoprApp;
import com.uwetrottmann.shopr.algorithm.model.Item;
import com.uwetrottmann.shopr.context.model.DistanceToShop;
import com.uwetrottmann.shopr.context.model.ScenarioContext;
import com.uwetrottmann.shopr.... | true |
e5d42e50b798e88b4b5e3f63c7a96233ee2a2c12 | Java | giseldo/lab_blueJ | /chapter06/calculator-gui/CalcEngine.java | UTF-8 | 1,655 | 3.734375 | 4 | [] | no_license | /**
* The main part of the calculator doing the calculations.
*
* @author David J. Barnes and Michael Kolling
* @version 0.1 (incomplete)
*/
public class CalcEngine
{
// Put instance variables here.
/**
* Create a CalcEngine instance. Initialise its state so that it is ready
* for use.
*... | true |
9d1ca90f8f3810b1ff87d1639dcc6b052e24ad50 | Java | tsregll/inhe-cloud-platform | /inhe-platform-mdm/src/main/java/com/inhe/mdm/controller/MdmFourLineLossReportController.java | UTF-8 | 5,188 | 2.015625 | 2 | [] | no_license | package com.inhe.mdm.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org... | true |
10c3adbf40ee580d5d63ae94452270ad3ad494a7 | Java | Tiger-Cross/Cards | /ListDeck.java | UTF-8 | 898 | 3.484375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class ListDeck {
// Fields
private List<Card> cards = new ArrayList<>();
// private final Random random = new Random(); -- not needed
// Constructor
public ListDeck() {
for (Suit suit : Suit... | true |
205a632fbda7a13200886657f04f1435a21d3f2b | Java | MontyPan/FX | /src/main/java/us/dontcareabout/fx/client/component/CapitalGrid.java | UTF-8 | 2,246 | 2.15625 | 2 | [] | no_license | package us.dontcareabout.fx.client.component;
import java.util.ArrayList;
import com.google.gwt.core.shared.GWT;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;
import co... | true |
ee685488a18a56a41041b0a370713ec9d3fea808 | Java | Sid-Trikha/SI | /si-modules/DM_Web_Server/.svn/pristine/ee/ee685488a18a56a41041b0a370713ec9d3fea808.svn-base | UTF-8 | 5,891 | 1.695313 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package net.herit.business.information;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.H... | true |
a714a255d072b47b44169810b8971ca0be7aa9c5 | Java | Konstantin-Soima/ITMO-Java | /src/ru/itmo/lesson/lesson17/PropertiesLoader.java | UTF-8 | 971 | 2.71875 | 3 | [] | no_license | package ru.itmo.lesson.lesson17;
import java.util.Properties;
public class PropertiesLoader {
private static PropertiesLoader propertiesLoader;
private String propFileName;
public static PropertiesLoader getPropertiesLoader(String propFileName){
if (propertiesLoader == null) {//не подходит для мн... | true |
cfdb1854929947298a1dda4284fd72e5fd13d08b | Java | kulisfunk/week_8 | /project/TopDrumpf/app/src/main/java/com/example/goober/topdrumpfs/ResultActivity.java | UTF-8 | 4,301 | 2.34375 | 2 | [] | no_license | package com.example.goober.topdrumpfs;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import jav... | true |
d2ebf5d6341360c35b63d6d80d27f009eae567f3 | Java | dev-rbatista/Tutorial_Local_Smoke_Test_with_Docker_Containers-Gradle | /src/main/java/switchtwentytwenty/project/usecaseservices/applicationservices/implappservices/AddEmailService.java | UTF-8 | 1,969 | 2.390625 | 2 | [] | no_license | package switchtwentytwenty.project.usecaseservices.applicationservices.implappservices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import switchtwentytwenty.project.domain.aggregates.person.Person;
import switchtwentytwenty.project.domain.valueobject.... | true |
141d6484fa3ca8f1e19da49955303748d7331d72 | Java | fracz/refactor-extractor | /results-java/eclipse--che/0e9718e016bdb1d40944dbb7e550e7adae3128dd/before/KeysInjector.java | UTF-8 | 5,162 | 1.859375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
09afa3eb3514eed613b1657bdfe31d17f0e12f50 | Java | samuelnaga/stewardSpringBoot | /steward/src/main/java/com/everis/alicante/steward/steward/persistence/dto/UserWorkplaceDTO.java | UTF-8 | 310 | 1.53125 | 2 | [] | no_license | package com.everis.alicante.steward.steward.persistence.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class UserWorkplaceDTO {
private Long user_id;
private int qrcode;
}
| true |
d76a7c80abd4aafc3db38f362f9c6c7d50f7e716 | Java | rohitmahalle4985/Assignment | /Assignment/src/Assignment2/main_rectangle.java | UTF-8 | 210 | 2.984375 | 3 | [] | no_license | package Assignment2;
public class main_rectangle {
public static void main(String[] args) {
Rectangle r=new Rectangle();
r.rectangle(6,7);
System.out.println("Area of Rectangle is "+r.getArea());
}
}
| true |
a47e794bbd0e18b02734875bbf50e6f9ce9298cd | Java | PatrykStefaniak/MyGameWishlist | /src/mygamewishlist/model/dao/mapper/GenreMapper.java | UTF-8 | 423 | 1.9375 | 2 | [] | no_license | package mygamewishlist.model.dao.mapper;
import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;
import mygamewishlist.model.pojo.db.Genre;
public interface GenreMapper {
public ArrayList<Genre> getGenres();
public Genre getGenreById(@Param("id") int id);
public Genre getGenreB... | true |
a45e9d707201e5e692ca7cbe53c55e964d51eb12 | Java | oGuimaraes/ProgramacaoAnaliseAlgoritmos | /Lista4/src/Livros_CRUD_Indexado.java | UTF-8 | 5,961 | 2.96875 | 3 | [] | no_license | /*
* Exemplo da criação de um CRUD simples de livros
* Arquivo SEM índice
* Algoritmos e Estruturas de Dados III
* Marcos Kutova
*/
import java.util.Scanner;
public class Livros_CRUD_Indexado {
private static Scanner console = new Scanner(System.in);
private static ArquivoIndexado<Livro> arqLivros;
... | true |
14809c169b7c804092bcfb76024c923d8a3ce83d | Java | cckmit/oldhome-api | /src/main/java/com/xydl/web/business/service/CaseDeclarerService.java | UTF-8 | 575 | 1.820313 | 2 | [] | no_license | package com.xydl.web.business.service;
import java.util.Map;
/**
* All rights Reserved, Designed By www.XXXX.com
*
* @author 陈晨
* @version V1.0.0
* @projectName xydl-api
* @title CaseDeclarerService
* @package com.xydl.web.business.service
* @description CaseDeclarerService
* @date 2020/8/15 17:12
* @copyri... | true |
57825d4647648e3f3f5198e4b650a6633caf6c30 | Java | MichaelLuo1990/CommonUtils | /app/src/main/java/com/michael/commonutils/activity/DeviceInfoActivity.java | UTF-8 | 4,139 | 2.4375 | 2 | [] | no_license | package com.michael.commonutils.activity;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;
import com.michael.commonutils.R;
import com.michael.commonutils.utils.DeviceInfoUtils;
/**
* Desc 设备操作系统信息测试
* Crea... | true |
921c4d9759600a265c899ea791435cfb989c2f52 | Java | LouisBertin/8INF853_SpringBoot | /src/main/java/com/example/demo/entity/Marque.java | UTF-8 | 779 | 2.46875 | 2 | [] | no_license | package com.example.demo.entity;
import javax.persistence.*;
import java.util.Set;
@Entity
public class Marque {
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
/*
* Id.
*/
private Integer id;
private String nom;
@OneToMany(mappedBy = "marque", cascade = CascadeType.REMOVE)... | true |
dc7d9c314948bc2fa36d329119ef4a2a763d3b76 | Java | litouche/AppMarket | /IflytekVoice/src/main/java/com/alinge/software/iflytekvoice/recognizer/filter/result/ChatResult.java | UTF-8 | 970 | 2.296875 | 2 | [] | no_license | package com.alinge.software.iflytekvoice.recognizer.filter.result;
import com.alinge.software.iflytekvoice.recognizer.filter.PropertyList;
import org.json.JSONException;
import org.json.JSONObject;
/**
* 作者: yejianlin
* 日期:2015/12/31
* 作用:
*/
public class ChatResult extends Result {
private String answer;
... | true |
ec517743b25ef3463821bcc91bab1fe82825c9f9 | Java | bixlabs/android-social-login-example | /app/src/main/java/com/bixlabs/socialloginexample/api/Rest.java | UTF-8 | 287 | 2.015625 | 2 | [] | no_license | package com.bixlabs.socialloginexample.api;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public interface Rest {
@POST("Consumers/login/google")
Call<ResponseBody> loginGoogle(@Body LoginGoogleRequest request);
}
| true |
6f52180ebc0382e524830e3088adc0a0f4cf4adb | Java | vad-babushkin/radiance | /demos/substance-demo/src/main/java/org/pushingpixels/demo/substance/main/check/svg/tango/process_stop.java | UTF-8 | 14,178 | 2.1875 | 2 | [
"BSD-3-Clause"
] | permissive | package org.pushingpixels.demo.substance.main.check.svg.tango;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.lang.ref.WeakReference;
import java.util.Base64;
import javax.imageio.ImageIO;
import javax.swing.plaf.UIResource;
import org.pushingpixels.neon.... | true |
dcc704b1b45c656a38c68f96883f5a7d8b219bfb | Java | cjiong/structs | /src/com/cj/action/interceptor/LoginInterceptor.java | UTF-8 | 910 | 1.992188 | 2 | [] | no_license | package com.cj.action.interceptor;
import java.util.Map;
import com.cj.util.Constants;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
public class LoginInte... | true |
41b519eeca132bc8aa413f48c48e4940c9ecf41d | Java | coderanger969/Dynamic-Shortest-Path-Finder | /BellanFord/BellmanFord.java | UTF-8 | 8,118 | 2.890625 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.PriorityQueue;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
class Edge
{
... | true |
87a739626a2e9dae3aa5837670430cb6fff24b94 | Java | maslick/kum | /rest/src/main/java/io/maslick/kumuluzzz/RestResource.java | UTF-8 | 1,743 | 2.34375 | 2 | [] | no_license | package io.maslick.kumuluzzz;
import io.maslick.kumuluzzz.model.IOC;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jav... | true |
8b83b07ae9a3b6f6b5d988cac2b3b6ddcdd11d23 | Java | noikiy/Online-Vedio-Extract | /DelRepeatData.java | UTF-8 | 4,116 | 2.90625 | 3 | [] | no_license | package step3;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import bean.Porn;
import util.DBConnection;
/*****
*
* @ClassName: DelRepeatData
* @Description: 删除数据库重复数据
* @author zeze
* @date 2016年7月2... | true |
6188488b6bcbf226948c7fdbaa59f5ed833d7bbf | Java | ismailov73/demo1 | /automationPracticeBDD/src/test/java/com/automationpractice/pages/login/LoginPage.java | UTF-8 | 1,315 | 2.5 | 2 | [] | no_license | package com.automationpractice.pages.login;
import org.apache.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.automationpractice.utilities.CommonPage;
import com.automationpractice.utilities.DriverHelper;
public class LoginPage extends CommonPage {
private... | true |
6b3c63f8c2048c7347aa85e4dff2aef945188ab2 | Java | lumao123/marposs.sys | /src/main/java/com/young/dao/BaseDaoImpl.java | UTF-8 | 15,250 | 2.59375 | 3 | [] | no_license | package com.young.dao;
import org.hibernate.*;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.orm.hibernate4.HibernateCallback;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;
import com.youn... | true |
1b1d6515f4fae358764feb1b02f8fa670b852d1d | Java | htl-leonding-example/camel-paho-demo | /src/main/java/CamelPahoSubscriber.java | UTF-8 | 1,492 | 2.109375 | 2 | [] | no_license | import io.quarkus.runtime.StartupEvent;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersi... | true |
37fbfcd93fbda47148aaca2e1a9515b4c8f720f8 | Java | Anudeep-Mad/Snap-and-Split | /src/main/java/com/admin/snapandsplit/login/forgot/presenter/ForgotPasswordPresenter.java | UTF-8 | 222 | 1.796875 | 2 | [] | no_license | package com.admin.snapandsplit.login.forgot.presenter;
public interface ForgotPasswordPresenter {
void resetPassword(String email);
void changePassword(String email, String oldPassword, String newPassword);
}
| true |
264a41a57210afa30306e2be2eff990a231dcf2a | Java | edzzn/java-sandbox | /SocketsRepaso/src/multihilos/Servidor.java | UTF-8 | 962 | 2.765625 | 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 multihilos;
/**
*
* @author edzzn
*/
import java.io.*;
import java.net.*;
public class Servidor {
public static void m... | true |
6c44706a2a947f2991b8a126a3d872ec6a8c94f9 | Java | kubohiroya/sqs-reader | /src/main/java/net/sqs2/omr/result/export/spreadsheet/SpreadSheetObjectFactory.java | UTF-8 | 1,591 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package net.sqs2.omr.result.export.spreadsheet;
import java.util.HashMap;
import java.util.Map;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.Workbook;
import net.sqs2.spreadsheet.SpreadSheetWorkbook;
public abstract class SpreadSheetObjec... | true |
5beea2a49005fd04ff12008abd0fe6c066c8134c | Java | tintu1990/Besstoo | /app/src/main/java/com/rplanx/besstoo/adapter/Expendable_list_adapter.java | UTF-8 | 9,557 | 1.984375 | 2 | [] | no_license | package com.rplanx.besstoo.adapter;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.util.Pair;
import android.view.LayoutInflater;
import android.view.View;
import android.... | true |
61ff626baf461c79b1aba2f14831e14354fa5f8f | Java | linsir6/WeChat_java | /com/tencent/mm/protocal/JsapiPermissionWrapper.java | UTF-8 | 7,524 | 1.757813 | 2 | [] | no_license | package com.tencent.mm.protocal;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.tencent.mm.sdk.platformtools.x;
import java.util.HashSet;
import java.util.Set;
public class JsapiPermissionWrapper implements Parcelable {
public sta... | true |
7a91dbb11b00dac3e3a0d905d8e61ebf15587cc9 | Java | SinanCaydibi/JavaCourse | /HomeWorkThree/src/ödev3/Instructor.java | ISO-8859-2 | 439 | 2.625 | 3 | [] | no_license | package dev3;
public class Instructor extends User{
private int id;
private String course;
public Instructor() {
}
public Instructor(int id, String course) {
super();
this.id=id;
this.course=course;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public ... | true |
18f84c3a5a189c93aa1d76971372c2095b506279 | Java | Shoya4617/ex-beginner | /src/main/java/com/example/Controller/Exam04Controller.java | UTF-8 | 1,053 | 2.359375 | 2 | [] | no_license | package com.example.controller;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotat... | true |
6df771c8b5bc4622d824528119facbf28c3063b6 | Java | McVlaga/gwt-phonebook | /src/main/java/io/github/mcvlaga/client/application/ContactsPresenter.java | UTF-8 | 7,050 | 2.109375 | 2 | [] | no_license | package io.github.mcvlaga.client.application;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.dispatch.rpc.shared.DispatchAsync;
import com.gwtplatform.mvp.clie... | true |
3ce58fa38ef9c41161af0af62aaf585cdc93b985 | Java | LittleBeasts/littleBeasts | /src/main/java/com/littlebeasts/gamelogic/PlayerState.java | UTF-8 | 96 | 1.6875 | 2 | [] | no_license | package com.littlebeasts.gamelogic;
public enum PlayerState {
CONTROLLABLE,
LOCKED
}
| true |
cc3095ca358453b75da720969ad7a2df9f3ec2f1 | Java | andersgaustad/StS-RelicMod | /src/main/java/relics/CampingSupplies.java | UTF-8 | 693 | 1.890625 | 2 | [] | no_license | package relics;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.megacrit.cardcrawl.rooms.RestRoom;
import helper.RoomLogic;
import relicmod.RelicMod;
public class CampingSupplies extends AbstractRelicModRelic {
public static final String ID = "Camping_Sup... | true |
cdc603e370e1f77a37220cd31c3813f74ec35a79 | Java | niyaogoo/nyfoo | /src/test/java/com/ny/foo/FooTest.java | UTF-8 | 2,308 | 2.09375 | 2 | [] | no_license | package com.ny.foo;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.L... | true |
426f9088f751ba2b91aa8730bbcbe4256fee0370 | Java | seipher0420/automation | /AutomationFramework/src/main/java/com/metrobank/automation/core/utilities/filehandler/FileHandle.java | UTF-8 | 4,479 | 2.171875 | 2 | [] | no_license | package main.java.com.metrobank.automation.core.utilities.filehandler;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.imageio.I... | true |
839a5cff2f4223090ee1463fd648b7850f2be156 | Java | elishevaHa/ADM-Bamboo-CI-plugin | /src/main/java/com/adm/utils/loadrunner/LRConsts.java | UTF-8 | 6,626 | 1.734375 | 2 | [
"MIT"
] | permissive | /*
*
*
* Certain versions of software and/or documents ("Material") accessible here may contain branding from
* Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
* the Material is now offered by Micro Focus, a separately owned and operated company. Any referen... | true |
3a94f546210f530cefad6d925424a6880338b021 | Java | ansh998/Arbitrator-old | /app/src/main/java/com/arbitrator/SyncSetting.java | UTF-8 | 7,050 | 1.90625 | 2 | [] | no_license | package com.arbitrator;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Co... | true |
539fac5421888dde7481e720fa8fc642c76d4bbd | Java | igorm705/Spring_MVC | /Application.java | UTF-8 | 1,101 | 1.664063 | 2 | [] | no_license | package main;
import main.repo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.bo... | true |
3ace5df77241593653932af888105309f1d3f399 | Java | felipepalma14/freelancer-farmacia | /app/src/main/java/com/farmacia/databases/Database.java | UTF-8 | 3,836 | 2.375 | 2 | [] | no_license | package com.farmacia.databases;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.farmacia.databases.DAO.CategoriaDAO;
import com.farmacia.databases.DAO.CidadeDAO;
im... | true |
c731de92cbdcb534e91b4b84039e69b992f2693a | Java | nv-krishna/SpringBoot2ReactiveClientApp | /src/main/java/com/dev/springboot/reactive/runner/DeleteInvoiceRunner.java | UTF-8 | 660 | 2.375 | 2 | [] | no_license | package com.dev.springboot.reactive.runner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
@Component
public class DeleteInvoiceRunner implements CommandLineRunn... | true |
9e2fedd61ffb099cb3f67401c4cd19029ff627e2 | Java | phuonglt32/Github | /SpringAPICassandra/src/main/java/cassandra/entity/Players.java | UTF-8 | 2,133 | 2.453125 | 2 | [] | no_license | package cassandra.entity;
import org.springframework.data.cassandra.mapping.Column;
import org.springframework.data.cassandra.mapping.PrimaryKey;
import org.springframework.data.cassandra.mapping.Table;
@Table("players")
public class Players {
@PrimaryKey("playerId")
private Integer playerId;
@Column("name")
pr... | true |
e97a69816189b93ee77df1dc6322a0aa9cfb2fdd | Java | z0j1r22/YY | /JDBC/src/Test5.java | UTF-8 | 1,412 | 2.765625 | 3 | [] | no_license |
import java.sql.*;
import java.util.Scanner;
public class Test5 {
static final String URL="jdbc:mysql://localhost:3306/student";
static final String USER="root";
static final String PWD="yyk123";
public static void main(String[] args)throws SQLException {
Scanner scanner=new Scanner(System.in... | true |
f17a1867d200d83d9895eb3440dba95a3d4e1848 | Java | misicnenad/PRIS | /SkolaJezika/src/entities/Test11.java | UTF-8 | 2,765 | 2.078125 | 2 | [] | no_license | package entities;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
/**
* The persistent class for the TEST11 database table.
*
*/
@Entity
@NamedQuery(name="Test11.findAll", query="SELECT t FROM Test11 t")
@Table(name="TEST11")
public class Test... | true |
2c3406d8c50e5bd605d0e85429952a2c0938af0b | Java | JArchie/JSBridgeDemo | /dsbridgedemo/src/main/java/com/jarchie/dsbridge/MainActivity.java | UTF-8 | 4,065 | 2.25 | 2 | [] | no_license | package com.jarchie.dsbridge;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Build;
import android.os.B... | true |
076095231625e49e38c05faa68dc3238ced9324d | Java | junkfreaknet/java-git_yz | /yz/src/testAzureSql/TransferFromLocalToAzure.java | UTF-8 | 5,321 | 2.484375 | 2 | [] | no_license | package testAzureSql;
//import mycommons.db.FieldLength;
//import mycommons.db.FieldName;
//import mycommons.db.FieldType;
//import mycommons.db.IsFieldNullable;
//import mycommons.db.connection.Connection;
public class TransferFromLocalToAzure {
private mycommons.db.connection.Connection connectionLocal=null;
pr... | true |
faa7d62ab52bd1b51a8f3bcd695677ae781f8b0a | Java | Beluz/Main_Assignment_OOC | /src/Customer/CustomerInterface.java | UTF-8 | 809 | 3.015625 | 3 | [] | no_license | package Customer;
//STUDENT NAME: MARIABELUZ SUAREZ AMADOR
//STUDENT NUMBER: 2017367
//BCS IT YEAR 2, GROUP B
//LECTURERS: Object Oriented Constructs / Systems Analysis & Design
//ASSIGNMENT: Planning and Implementing an Object-Oriented Software System
import java.util.ArrayList;
public interface CustomerInterface ... | true |
87ad73f93392fb855b32f6a3938f215ba830fd2a | Java | xu649526275/recyclerview-multistate-section-endless-adapter | /recyclerview/src/main/java/me/henrytao/recyclerview/Visibility.java | UTF-8 | 1,117 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 MySQUAR. All rights reserved.
*
* This software is the confidential and proprietary information of MySQUAR or one of its
* subsidiaries. You shall not disclose this confidential information and shall use it only in
* accordance with the terms of the license agreement or other applicable agr... | true |
d2b42613c9fbd050d68e13ed7be6292159fae8da | Java | rendaw/merman | /core/src/main/java/com/zarbosoft/merman/modules/hotkeys/grammar/Union.java | UTF-8 | 457 | 2.328125 | 2 | [
"BSD-2-Clause"
] | permissive | package com.zarbosoft.merman.modules.hotkeys.grammar;
import com.zarbosoft.interface1.Configuration;
import java.util.List;
@Configuration(name = "or")
public class Union implements Node {
@Configuration
public List<Node> nodes;
@Override
public com.zarbosoft.pidgoon.Node build() {
final com.zarbosoft.pidgoon... | true |
9a3b681f30dad64a077e35f8b69b53a0a30c0e7a | Java | TayyabDev/Reportage | /Project/src/test/java/com/presenter/MockUploadTemplatePresenter.java | UTF-8 | 1,048 | 2.25 | 2 | [] | no_license | package test.java.com.presenter;
import java.util.Date;
import java.util.List;
import app.java.com.model.entities.account.Account;
import app.java.com.presenter.interfaces.UploadTemplatePresenter;
import app.java.com.view.interfaces.UploadTemplateView;
public class MockUploadTemplatePresenter implements UploadTempla... | true |
48e0dd0d6313c47e7e03f572390a57f959a3e7d5 | Java | Rocker688/Algo-LeetCode | /ValidPalindrome.java | UTF-8 | 975 | 3.71875 | 4 | [] | no_license | public class ValidPalindrome {
public boolean isPalindrome(String s) {
int beg = 0;
int end = s.length() - 1;
while (beg <= end) {
if (!isNumOrLetter(s.charAt(beg))) {
beg++;
continue;
}
if (!isNumOrLetter(s.charAt(end))) {
... | true |
b3f88b357ca7c40a0bd2598d31d08450c4719673 | Java | wangjun0/lintcode | /src/StrStr.java | GB18030 | 1,236 | 3.953125 | 4 | [] | no_license | /**
* Created by Administrator on 2016/5/29.
*/
public class StrStr {
/**
* Returns a index to the first occurrence of target in source,
* or -1 if target is not part of source.
*
* @param source string to be scanned.
* @param target string containing the sequence of characters to match.... | true |
d3f8b2c2a0c3b18b37eddfc5f73f9a80dc3d8d8b | Java | VUAN86/d3n | /d3n/backend_java-default-services/f4m-backend-java/user-message-service/src/main/java/de/ascendro/f4m/service/usermessage/client/UserMessageServiceClientMessageHandler.java | UTF-8 | 2,555 | 2.234375 | 2 | [] | no_license | package de.ascendro.f4m.service.usermessage.client;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.ascendro.f4m.service.json.RequestContext;
import de.ascendro.f4m.service.json.handler.DefaultJsonMessageHandler;
import de.ascendro.f4m.service.json.model.JsonMessage;
import de.ascendro.f4m.service.... | true |