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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0dd5a76fd5bace7fcf8f09bcf34252cd43fd1801 | Java | OscarNorman/OneVsOne | /src/main/java/io/github/OscarNorman/OneVsOne/OneVsOne.java | UTF-8 | 13,304 | 1.929688 | 2 | [] | no_license | package io.github.OscarNorman.OneVsOne;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Logger;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bu... | true |
6c69b25dc4092ca3078d0bbf0e36f39537c4a7a0 | Java | huangshiqiang/demo | /code/cn.elwy.example/src/TheDefinitiveGuidetoSWTandJFace/com/swt/Chapter12/examples/ch12/TextPrinterExample.java | UTF-8 | 6,912 | 3.34375 | 3 | [] | no_license | package com.swt.Chapter12.examples.ch12;
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.printing.*;
import org.eclipse.swt.widgets.*;
import java.io.*;
/**
* This class demonstrates printing text
*/
public class TextPrinterExample {
/**
* Runs the applica... | true |
0ed4b42f4f3c83bf257560f6ad2c03976a914f82 | Java | go88hoontops/java | /ch05/StringEqualsExam.java | UHC | 892 | 3.9375 | 4 | [] | no_license | package com.jh.ch05;
public class StringEqualsExam {
public static void main(String[] args) {
String strVal1 = "";
String strVal2 = "";
if (strVal1 == strVal2) {
System.out.println("strVal1 strVal2 ");
}else {
System.out.println("strVal1 strVal2 ٸ");
}
if(strVal1.equals(strVal2)) {
... | true |
07bcc9bba542183dd97ed6980ebecdc76d8e0ec6 | Java | IBD-Technologies/NewGenEducationApp | /CohesiveReportEngine/ReportProcessing/src/java/com/ibd/cohesive/report/dbreport/dataSets/user/UVW_PARENT_STUDENT_ROLEMAPPING_DATASET.java | UTF-8 | 5,497 | 1.625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ibd.cohesive.report.dbreport.dataSets.user;
import com.ibd.cohesive.db.readbuffer.DBRecord;
import com.ibd.cohesive.db.rea... | true |
51c1864c80c22de3426822f42d39b4e2210e689d | Java | anneri51/prorekrut | /01_Allgemein/08_Eclipse/v1/test1/appClientModule/prorekrut/Main.java | UTF-8 | 396 | 1.539063 | 2 | [] | no_license | package prorekrut;
import java.sql.SQLException;
import javax.swing.*;
//import java.sql.Connection;
import prorekrut.frm.MainForm;
public class Main {
public static void main(String[] args) throws SQLException {
// TODO Auto-generated method stub
MainForm.createMainForm ();
}
/* (non-Java-doc)
... | true |
7d2224724d64f5610b2047bc6ca822aa34cc52be | Java | abdelb12/app_sp | /src/main/java/com/tournoi/foot/model/Joueur.java | UTF-8 | 1,528 | 2.34375 | 2 | [] | no_license | package com.tournoi.foot.model;
import org.springframework.stereotype.Component;
@Component
public class Joueur {
private Integer idJoueur;
private String prenom;
private String nom;
private Integer age;
private float taille;
private Integer poste;
private String dateNaissance;
private Integer idEquipe;
p... | true |
e46d37ecf18070961301e8901f2f67170b3497c5 | Java | ramamanne/cards | /src/main/java/com/interview/app/IDeck.java | UTF-8 | 142 | 1.945313 | 2 | [] | no_license | package com.interview.app;
/**
* Deck Operations
* @author Rama
*/
public interface IDeck {
void shuffle();
Card dealOneCard();
}
| true |
579b9cbfbcaafc0e5d78fdaa830c22ffc3c3da73 | Java | Plugway/commandLine_bot | /src/ObjectSerialization.java | UTF-8 | 711 | 2.9375 | 3 | [] | no_license | import java.io.*;
public class ObjectSerialization {
public static void serialize(Object o, String filePath) throws IOException //exceptions are handled in UserTableSerialization
{
var fileOut = new FileOutputStream(filePath, false);
var out = new ObjectOutputStream(fileOut);
ou... | true |
09be272529b25e552f5e5b5442bb3ee29f97e283 | Java | ycc0207/sdk-demo | /aegis-sdk-demo/src/main/java/com/epgis/offline/adapter/OfflineAllCityListAdapter.java | UTF-8 | 23,720 | 1.90625 | 2 | [] | no_license | package com.epgis.offline.adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.Expandab... | true |
44aab9d644a79445aa676254b7f24a7086c4479b | Java | amlane/java-transportation | /src/transport/HorseFromVehicle.java | UTF-8 | 710 | 3.34375 | 3 | [] | no_license | package transport;
public class HorseFromVehicle extends AbstractVehicle {
private String name;
public HorseFromVehicle(String name, int fuel) {
// super means call the parent constructor
super(fuel);
this.fuel *= 2;
this.name = name;
}
// if you create a new HorseFrom... | true |
e06ef0fde930c85f676a4124ca427f6bc9d072b6 | Java | MDi-1/MDiRepository | /kodilla-stream/src/main/java/com/kodilla/stream/array/ArrayOperations.java | UTF-8 | 521 | 3.875 | 4 | [] | no_license | package com.kodilla.stream.array;
import java.util.stream.IntStream;
public interface ArrayOperations {
static double getAverage(int[] numbers) {
System.out.println("Exercise 7.5; displaying array values as follows:");
IntStream.rangeClosed(0, numbers.length - 1)
.map(s -> numbers... | true |
1ede6f555ae9b48d5f61a9a84456672062766285 | Java | alvisdeng/IoT | /Project1/jianpindProject1/PhotonTracker/src/developerworks/ajax/particle/Photon.java | UTF-8 | 2,192 | 2.875 | 3 | [] | no_license | package developerworks.ajax.particle;
public class Photon {
/**
id of the photon
*/
private String id;
/**
the time of last beat of photon
*/
private String lastBeat;
/**
the state information about the connection between photon and our servlet
*/
private String stat... | true |
59881682f4923b1b685afa8fcffbf316eb082cb4 | Java | carsonshan/swingFactory | /src/main/java/net/saucefactory/swing/data/SFFieldDataAdapter.java | UTF-8 | 811 | 2.6875 | 3 | [] | no_license | package net.saucefactory.swing.data;
public class SFFieldDataAdapter implements ISFDataAdapter {
String fieldName;
public SFFieldDataAdapter(String fieldName) {
this.fieldName = fieldName;
}
public Object getValue(Object source) {
try {
return source.getClass().getField(fieldName).... | true |
7e782ee7ebbf99ad74c07e798af7e29695aefb3b | Java | cckmit/QcAndroid | /shop/src/main/java/cn/qingchengfit/shop/ui/inventory/ShopTimeFilterFragment.java | UTF-8 | 1,442 | 1.960938 | 2 | [] | no_license | package cn.qingchengfit.shop.ui.inventory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;
import cn.qingchengfit.saascommon.filtertime.Filt... | true |
9c966eaf7e8f89deeafb0845c351c6cdc20d8ccb | Java | zhouzms/getproject | /founding/src/main/java/com/zms/founding/manage/dao/UserDao.java | UTF-8 | 684 | 2.0625 | 2 | [] | no_license | package com.zms.founding.manage.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.zms.founding.bean.User;
public interface UserDao {
/*
* 用户登录数据返回
*/
User loginDao(Map<String, Object> map);
/*
* 总用户数
*/
int userCount();
/*
* 分页的数据
*/
List<User... | true |
2326b49f73391df4ee0f9a8fac1a29d57e2ec919 | Java | haluwama/RPNCalc | /src/InfixToPostfix.java | UTF-8 | 3,618 | 3.40625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Stack;
public class InfixToPostfix {
private char[] digits = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '.'};
private char[] operators = {'+', '-', '*', '/', '(', ')', '^'};
InfixToPostfix() {
}
public ArrayList<Element> toPostfix(String equation) {
Arra... | true |
cf137cc6c69a6799f2eb8fb318b30a120fce0c6f | Java | authrus/database | /authrus-database-sql/src/main/java/com/authrus/database/sql/compile/UpdateCompiler.java | UTF-8 | 3,343 | 2.421875 | 2 | [] | no_license | package com.authrus.database.sql.compile;
import static com.authrus.database.data.DataType.BOOLEAN;
import static com.authrus.database.data.DataType.SYMBOL;
import static com.authrus.database.data.DataType.TEXT;
import static com.authrus.database.sql.ParameterType.VALUE;
import java.util.Arrays;
import java.util.Coll... | true |
1a47a782773abf9602c79553acd3b5348ffa0465 | Java | asouza/react-server-example | /src/main/java/br/com/asouza/reactor/daos/ResultSetIterator.java | UTF-8 | 907 | 2.890625 | 3 | [] | no_license | package br.com.asouza.reactor.daos;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.function.Function;
/**
* Adapter that should transform {@link ResultSet} into an Iterable of some domain object
* @author alberto
*
* @param <T>
*/
public class ResultSetIterat... | true |
eb08a4bd0c240b5e412056c3c9b24d5d93d40eab | Java | mithundas79/Taxi-Driver | /src/com/chaos/driver/GestureHandler.java | UTF-8 | 151 | 1.773438 | 2 | [] | no_license | package com.chaos.driver;
import android.graphics.RectF;
public interface GestureHandler {
public boolean processGesture(String name,RectF rect);
}
| true |
44312c063c23d2ec6ba1c8f7df4c61a92ce2ebe1 | Java | wxwcase/LC_Solutions | /src/test/lc_easy/LC371_SumOf2IntsTest.java | UTF-8 | 815 | 2.609375 | 3 | [] | no_license | package test.lc_easy;
import main.lc_easy.LC371_SumOf2Ints;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* Created by wwang on 12/15/2016.
*/
class LC371_SumOf2IntsTest {
LC371_SumOf2In... | true |
a35bde4dbd92ed6322ea13731cd79f8cce9d0048 | Java | JPeterson462/DigiTurtle-Engine | /src/engine/world/physics/PolyhedronBounds.java | UTF-8 | 5,478 | 2.59375 | 3 | [] | no_license | package engine.world.physics;
import java.util.ArrayList;
import org.joml.Quaternionf;
import org.joml.Vector2f;
import org.joml.Vector3f;
import utils.Accessor;
public class PolyhedronBounds implements Bounds {
private Accessor<Vector3f> getPosition;
private Accessor<Quaternionf> getOrientation... | true |
e4366012acbc8e317e1178219149dfa61c45fae2 | Java | estevandiedrich/NotaFiscalEletronicaBrasileiraV20 | /src/br/com/hs/nfe/dpecproc/DpecProcThread.java | ISO-8859-1 | 3,001 | 2.109375 | 2 | [] | no_license | package br.com.hs.nfe.dpecproc;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;
import br.com.hs.nfe.base.ThreadBase;
import br.com.hs.nfe.dao.NFeDAO;
import br.com.hs.nfe.dom.builder.DpecProcDocumentBuilder;
import br.... | true |
9d25a780509a9a3438f24ec3c002bb0e9238248e | Java | zlmone/PhoneManager-2 | /app/src/main/java/com/example/security/ui/QueryNumberActivity.java | UTF-8 | 671 | 1.859375 | 2 | [] | no_license | package com.example.security.ui;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;
import android.widget.EditText;
import com.example.sunzhaohenan.phonemanager.R;
/**
* Created by sunzhaohenan on 2018/3/25.
*/
public class QueryNumberA... | true |
86a27f0a6b0ec63e49a8c9b6859af64f805fa38d | Java | cote/jaasbook | /src/java/util/LoggerInit.java | UTF-8 | 1,178 | 2.84375 | 3 | [] | no_license | package util;
import java.io.IOException;
import java.io.InputStream;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.logging.LogManager;
public class LoggerInit
{
static public void init()
{
AccessController.doPrivileged(new PrivilegedAction()
{
publ... | true |
aec2969f229d8429a1bccce78d1ec71a70b357fb | Java | stalbot/catan_game | /server/src/com/steven/catanserver/Intersection.java | UTF-8 | 3,825 | 2.75 | 3 | [] | no_license | package com.steven.catanserver;
import java.util.*;
public class Intersection implements DataContainer.Keyable {
private int id;
private ArrayList<Integer> hexIds = new ArrayList<Integer>(3);
private transient HashSet<Hex> hexes = null;
private Boolean isCity = false;
private PlayerColor color = null;
private... | true |
c15bb4ee9c94db119fe036af7ecfd5d944f53e99 | Java | kevingekun/examSystem | /examSystem/src/com/wondersgroup/falcon/Util/DateOptions.java | GB18030 | 1,061 | 2.390625 | 2 | [] | no_license | /**
* <p>Title: ̳</p>
* <p>Description: ̳</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: 㹤</p>
* @author
* @version 2.0
*/
package com.wondersgroup.falcon.Util;
import java.util.ResourceBundle;
import org.apache.log4j.*;
final class DateOptions {
private static Logger log = Logge... | true |
9ccfb8b48a537c2d4faa01c85f005c2d32f95016 | Java | blackducksoftware/hub-notification | /src/main/java/com/blackducksoftware/notification/batch/processor/JobCompletionNotificationListener.java | UTF-8 | 2,327 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /**
* hub-notification
*
* Copyright (C) 2017 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ... | true |
270255e73e365c541802664d548c95d29c052ea1 | Java | k-si/Autoium | /back end/autoium/src/main/java/run/autoium/utils/AToBUtils.java | UTF-8 | 3,252 | 2.8125 | 3 | [] | no_license | package run.autoium.utils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import run.autoium.entity.MyAssert;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
... | true |
5d0c1f1a5b92f7d7cb4285450c6dfcd80fb22a62 | Java | automenta/chronoproof | /src/main/java/ws/prova/reference2/builtins/ProvaTypeImpl.java | UTF-8 | 1,781 | 2.1875 | 2 | [] | no_license | package ws.prova.reference2.builtins;
import java.util.List;
import ws.prova.agent2.Reagent;
import ws.prova.kernel2.Constant;
import ws.prova.kernel2.Derivation;
import ws.prova.kernel2.Goal;
import ws.prova.kernel2.KB;
import ws.prova.kernel2.PList;
import ws.prova.kernel2.Literal;
import ws.prova.kernel2.... | true |
26b8cc4cc393be057016c022450a43f510c8dfd6 | Java | ddatut/intro_Java_edition8 | /Chapter09/Exercises/Exercise09_07.java | UTF-8 | 2,334 | 3.875 | 4 | [] | no_license | package Chapter09.Exercises;
import java.util.Scanner;
/**
*
* @author Shady Bajary
* @Exercise 9.7
* @Title Phone Keypads
*/
public class Exercise09_07 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter a string: ");
... | true |
f28e0dc4007ae8029ed6d0ab7131adafcf353089 | Java | alekhyabathula0801/FundooNotesBackend | /src/main/java/com/bridgelabz/demo/model/User.java | UTF-8 | 2,133 | 2.265625 | 2 | [] | no_license | package com.bridgelabz.demo.model;
import java.time.LocalDateTime;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.pe... | true |
0d93451c141a0905aef14838e929a0f2b2b6dee1 | Java | TRSFinance/rms | /test/com/trs/rms/test/service/RmsTestService.java | UTF-8 | 558 | 1.8125 | 2 | [] | no_license | package com.trs.rms.test.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.trs.rms.base.dao.IDao;
import com.trs.rms.base.service.BasicServicveImpl;
@Service
@Transactional
... | true |
6811058b158e88b5cfcaa64b04b14ed17953c527 | Java | karol-dabrowski/news-app | /app/src/main/java/pl/karoldabrowski/newsapp/ArticleAdapter.java | UTF-8 | 1,657 | 2.546875 | 3 | [
"MIT"
] | permissive | package pl.karoldabrowski.newsapp;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
imp... | true |
57c4ed60637fb9fc671817734a99eb4955ac795c | Java | uvardic/gerudok-refactored | /src/main/java/gerudok/controller/SlotPanelCanvasController.java | UTF-8 | 2,044 | 2.46875 | 2 | [] | no_license | package gerudok.controller;
import gerudok.view.desktop.Desktop;
import gerudok.view.desktop.DiagramFrame;
import gerudok.view.desktop.SlotPanel;
import java.awt.event.InputEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
public class SlotPanelCanvas... | true |
48ea41fa7df3d1635725e3b4ba561d0f3dbf712c | Java | Neembuu/neembuunow | /neembuu-android/srcs/output_jar.src/twitter4j/conf/ConfigurationContext.java | UTF-8 | 2,809 | 1.867188 | 2 | [] | no_license | package twitter4j.conf;
public final class ConfigurationContext
{
public static final String CONFIGURATION_IMPL = "twitter4j.configurationFactory";
public static final String DEFAULT_CONFIGURATION_FACTORY = "twitter4j.conf.PropertyConfigurationFactory";
private static final ConfigurationFactory factory;
... | true |
5993d0ecea5b750d7e114c907ae9ac15745aa2d1 | Java | Manolo8/SimpleCraft | /src/test/java/BigLetter.java | UTF-8 | 8,743 | 3.34375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class BigLetter {
private static String[][] letters;
static {
letters = new String[31][6];
//A
letters[0][0] = "a";
letters[0][1] = "███";
letters[0][2] = "█░█";
letters[0][3] = "███";
letters[0... | true |
5530ddf7dd58b7d83dd1439527b6ca7f87356064 | Java | thomasdarimont/testcontainers-java | /modules/redpanda/src/test/java/org/testcontainers/redpanda/RedpandaContainerTest.java | UTF-8 | 5,039 | 1.890625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package org.testcontainers.redpanda;
import com.google.common.collect.ImmutableMap;
import org.apache.kafka.clients.admin.AdminClient;
import org.apache.kafka.clients.admin.AdminClientConfig;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafk... | true |
09178f0d8d05f4ffdb79b736173d0cc2200d5928 | Java | Maria-Kristina/Chat-Application | /Project/src/project/Main.java | UTF-8 | 658 | 2.421875 | 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 project;
import java.io.IOException;
/**
*
* @author Valtteri Pesu and Maria-Kristina Sillanmäki
*/
public cl... | true |
48493c136c14ab827c19d2e6a8a79d140450538f | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kr/co/popone/fitts/feature/store/browser/StoreBrowserActivity$onCreate$42.java | UTF-8 | 595 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package kr.co.popone.fitts.feature.store.browser;
import io.reactivex.functions.Consumer;
import kr.co.popone.fitts.event.OrderEvent$OrderCompleteEvent;
final class StoreBrowserActivity$onCreate$42<T> implements Consumer<Object> {
final /* synthetic */ StoreBrowserActivity this$0;
StoreBrowserActivit... | true |
3790d121eeb4ef816abd0b7e257af39ca98a1db2 | Java | selbert/openshift | /src/main/java/ch/adesso/openshift/backend/hello/boundary/HelloResource.java | UTF-8 | 541 | 2.015625 | 2 | [] | no_license | package ch.adesso.openshift.backend.hello.boundary;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@Path("hello")
public class HelloResource {
@GET
public JsonArray getHello() {
J... | true |
502a97c593e7bcf8629bf74d8f830e9c5af3eb8d | Java | yfyf510/Ronghetongxin | /BeiDouCommunication/app/src/main/java/com/zhbd/beidoucommunication/ui/fragment/EmailMSGFragment.java | UTF-8 | 4,045 | 2.1875 | 2 | [] | no_license | package com.zhbd.beidoucommunication.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import androi... | true |
a307f35b8e5b3e784e7e7234c7a53409ef52c01d | Java | itay-adi/ChatServer | /Message.java | UTF-8 | 166 | 2.015625 | 2 | [] | no_license | package il.co.ilrd.chat_server;
import java.io.Serializable;
public interface Message <K, D> extends Serializable{
public K getKey();
public D getData();
}
| true |
3beaf09117b8a72af176622c6f4e97103825d470 | Java | testingwithdaniel/selenium-test-benchmarking | /src/main/java/boilerplateTests/pages/stormy_herokuApp.java | UTF-8 | 2,875 | 2.234375 | 2 | [] | no_license | package boilerplateTests.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver;
import utils.common.SeleniumUtils;
import utils.common.WebpageElements;
import java.util.List;
public class stormy_herokuApp {
public WebDriver driver ;
... | true |
c31bccbf35e10c27e35d26ea93788ab370298ecf | Java | jalexanderqed/SwingTree | /src/ninja/jalexander/Vertex.java | UTF-8 | 3,389 | 2.9375 | 3 | [] | no_license | package ninja.jalexander;
import java.util.LinkedList;
/**
* Created by john on 3/19/16.
*/
public class Vertex {
private double mass;
private double inverseMass;
private LinkedList<VertexEdgePair> neighbors = new LinkedList<VertexEdgePair>();
public NewtonState state = new NewtonState(0, 0, 0, 0);... | true |
d636bd8ed4e785db9c59deba086755c1c9b7e119 | Java | BSShubham97/AddressBook_All-Methods | /OptionMenu.java | UTF-8 | 1,983 | 3.609375 | 4 | [] | no_license | package com.bridgelabz;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
class OptionMenu extends Methods {
public ArrayList<Contact> operation() {
Scanner scanner = new Scanner(System.in);
boolean run = true;
while (ru... | true |
984fd35e1905d87a096e004df50bbe4b838e64ce | Java | RinesThaix/AprilAPI | /src/main/java/sexy/kostya/april/Producer.java | UTF-8 | 432 | 2.28125 | 2 | [] | no_license | package sexy.kostya.april;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by k.shandurenko on 26/03/2019
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ... | true |
a2987b8e60adf31446c9ebc77f3222121352b2f0 | Java | vxkvankai/selenium_NO_Framework | /src/com/selenium_NO_Framework/ArraysFindMinunInRowandFindMaxInThatColumn.java | UTF-8 | 1,428 | 3.03125 | 3 | [] | no_license | package com.selenium_NO_Framework;
public class ArraysFindMinunInRowandFindMaxInThatColumn {
// array {2, 4, 5},
// {3, 0, 7},
// {1, 2, 9}};
//
// 1. FInd the minimum number
// 2.Identify the colum of the min number
// 3. find the max nu... | true |
48f41c6d8cb1b42e1c41548ca933db6c5d348429 | Java | juanguirp/NeuroLab2 | /NeuroLabWs/src/co/edu/udea/iw/ws/dto/SolicitudPrestamoWs.java | UTF-8 | 2,664 | 2.375 | 2 | [] | no_license | package co.edu.udea.iw.ws.dto;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import co.edu.udea.iw.dto.Administrador;
import co.edu.udea.iw.dto.Dispositivo;
import co.edu.udea.iw.dto.Investigador;
/**
* Clase que almacena la informacion de una solicitud de prestamo.
* @author Juan Guille... | true |
4d4ca4d06e72bf907f62c2d5b2f0ff5454f74639 | Java | yhamed/rbrecap | /src/test/java/com/mycompany/myapp/web/rest/SprintResourceIT.java | UTF-8 | 20,839 | 1.859375 | 2 | [] | no_license | package com.mycompany.myapp.web.rest;
import com.mycompany.myapp.RbRecapApp;
import com.mycompany.myapp.domain.Sprint;
import com.mycompany.myapp.domain.UserStory;
import com.mycompany.myapp.repository.SprintRepository;
import com.mycompany.myapp.repository.search.SprintSearchRepository;
import com.mycompany.myapp.ser... | true |
f24b736eac6efdd3d84f4b64fac1d9af74ae6a07 | Java | valeriynefyodov/CourseCG | /FF_13312i_Nefedov_Span/src/FF_13312i_Nefedov_Span/model/Fill.java | UTF-8 | 1,795 | 3.21875 | 3 | [] | no_license | package FF_13312i_Nefedov_Span.model;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.List;
/**
* Class describing fill component
* Implements Shape interface
*/
public class Fill implements Shape {
private List<Span> spans;
private Point seed;
private Color color;
... | true |
08786236898edd33263b603187e484b7038f9746 | Java | Galio666/EBD | /src/controllers/Usuario.java | UTF-8 | 1,399 | 2.5625 | 3 | [
"MIT"
] | permissive | /*
* 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 controllers;
/**
*
* @author Tomas
*/
public class Usuario {
int id_usuario;
int id_cuenta;
... | true |
e9cfe671c0901e64d64440b4e37a9222a3e83624 | Java | glorypulse/quiz | /leetcode/30-Day_LeetCoding_Challenge/2021/0217/Solution.java | UTF-8 | 728 | 3.375 | 3 | [] | no_license | class Solution {
public int maxArea(int[] height) {
int length = height.length;
int left = 0;
int right = length - 1;
int max = 0;
while (left < right) {
int heightL = height[left];
int heightR = height[right];
max = Math.max(max, (right - ... | true |
d6a2d029687a08083caeaf89c2434d4429f607e7 | Java | talkxin/taxleopard | /src/com/auction/dao/AuctionReportDaoImpl.java | UTF-8 | 660 | 2.09375 | 2 | [] | no_license | package com.auction.dao;
import java.sql.SQLException;
import java.util.List;
import com.auction.entity.AcAuction;
import com.ibatis.sqlmap.client.SqlMapClient;
public class AuctionReportDaoImpl implements AuctionReportDao{
private SqlMapClient sqlMapClient;
public SqlMapClient getSqlMapClient() {
... | true |
b03df1950b1f2d472274eef616f9a76b5d2ba6e6 | Java | BhanuPrasadG/OPTUS-WS-POC-CLIENT-CODE | /src/main/java/com/ibm/financing/credit/persistence/bo/EntityOrgDTO.java | UTF-8 | 1,509 | 2.265625 | 2 | [] | no_license | package com.ibm.financing.credit.persistence.bo;
import java.io.Serializable;
import org.springframework.stereotype.Repository;
@SuppressWarnings("serial")
public class EntityOrgDTO implements Serializable{
private int id_entity;
private String name;
private int level;
private int id_parent;
private EntityOr... | true |
032dbbf97493467600ee6abc0bde90cab0a4fc2f | Java | Jaun7707/Samples | /Sample_Classwork_Hashmap.java | UTF-8 | 9,772 | 3.421875 | 3 | [] | no_license | ///////////////////////////////////////////////////////////////////////////////
// ALL STUDENTS COMPLETE THESE SECTIONS
// Main Class File: LoadBalancerMain.java
// File: SimpleHashMap.java
// Semester: CS302 Spring 2014
//
// Author: Joseph Hoffmann
// CS Login: ... | true |
2493cb3da49e84be8aeca0a2c72eaa7bc2500578 | Java | tahsnerken47/Test | /src/main/java/practiceMethods/MaxNum.java | UTF-8 | 438 | 3.28125 | 3 | [] | no_license | package practiceMethods;
public class MaxNum {
public static int maxNum(){
int num1=25;
int num2=37;
int num3=29;
if(num1>num2 && num1>num3){
return num1;
}else if(num2>num3 && num2>num1){
return num2;
}else{
return num3;
}
... | true |
57f78a299a370a6766f5718362d87866dade6fb3 | Java | mirandacastaing/examen-2 | /Examen2/src/main/java/com/cenfotec/examen2/service/GuionService.java | UTF-8 | 546 | 1.671875 | 2 | [] | no_license | package com.cenfotec.examen2.service;
import java.util.List;
import com.cenfotec.examen2.domain.Guion;
public interface GuionService {
public void saveGuion(Guion newGuion);
public List<Guion> getAllGuiones();
public Guion findGuionById(String id);
public List<Guion> findGuionesByObra(String obra);
public L... | true |
241de0757b952a281739a814c098098783141320 | Java | comhuhuan/monitor | /src/main/java/com/act/monitor/web/vo/NetWorkVo.java | UTF-8 | 1,541 | 1.835938 | 2 | [] | no_license | package com.act.monitor.web.vo;
import java.util.List;
public class NetWorkVo{
private String soft_version;
private String elementType; //状态类型
private String euID;
private String euIP;
private Long houseID;
private String houseName;
private String recordTime;
private Integer status;
public Integer getStatu... | true |
d969747ffc7eb5367b149b298c85674e53e68d84 | Java | luchoaglp/GoPay | /src/main/java/ar/com/gopay/exception/PaymentLinkException.java | UTF-8 | 178 | 1.859375 | 2 | [] | no_license | package ar.com.gopay.exception;
public class PaymentLinkException extends RuntimeException {
public PaymentLinkException(String message) {
super(message);
}
}
| true |
3550e4115c808ba694bde17a9c0d803a7b006145 | Java | agramar93/Android | /Maps2/src/com/example/maps2/MainActivity.java | UTF-8 | 10,640 | 2.015625 | 2 | [] | no_license | package com.example.maps2;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphic... | true |
1e1b8c14781bc9ac7b7f4e60b3d608bf71327713 | Java | DCRUNNN/MovieTubeServer | /src/main/test/cn/edu/nju/movietubeserver/service/CommentServiceImplTest.java | UTF-8 | 3,198 | 1.90625 | 2 | [] | no_license | package cn.edu.nju.movietubeserver.service;
import cn.edu.nju.movietubeserver.MovieTubeServerMain;
import cn.edu.nju.movietubeserver.dao.CommentDao;
import cn.edu.nju.movietubeserver.model.domain.SimpleUser;
import cn.edu.nju.movietubeserver.model.po.CommentPo;
import io.swagger.models.auth.In;
import org.junit.Test;
... | true |
f4698a5a25d6db58c97a52c8e71ef7e561767431 | Java | emranhos1/Basic-Data-Entry | /src/main/java/com/jinanit/basicdataentry/dao/CategoryDao.java | UTF-8 | 842 | 1.703125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jinanit.basicdataentry.dao;
import com.jinanit.basicdataentry.model.Category;
import java.util.List;
import org.s... | true |
bf125f2d854daefe0977fad0a3c26c0e5c604f00 | Java | yanndanielou/yanndanielou-programmation | /Java/PretsImmobiliers/src/hmi/editors/ChoixRemboursementAnticipeCapitalAvecDiminutionNombreEcheancesEcheanceMenuItem.java | UTF-8 | 779 | 2.0625 | 2 | [] | no_license | package hmi.editors;
import java.text.NumberFormat;
import model.Echeance;
import Core.ModificationAction.RemboursementAnticipeCapitalAction;
import Core.ModificationAction.RemboursementAnticipeCapitalAvecDiminutionNombreEcheancesAction;
public class ChoixRemboursementAnticipeCapitalAvecDiminutionNombreEcheancesEche... | true |
078f7d26c773cf9e2172f2b974d76dad2d7afb14 | Java | caofujun/lqt | /src/com/nis/cdc/entity/CtgSys007Dictcontagion.java | UTF-8 | 3,569 | 1.617188 | 2 | [] | no_license | package com.nis.cdc.entity;
import com.nis.comm.entity.BaseEntity;
import java.io.Serializable;
import java.util.List;
import org.apache.ibatis.type.Alias;
@Alias("ctgSys007Dictcontagion")
public class CtgSys007Dictcontagion extends BaseEntity implements Serializable {
private String diseaseid;
private String disea... | true |
aba16f631d8d10aaceaf2321ef210938967a2e54 | Java | YUEIT/java_common | /common/src/main/java/cn/yue/base/common/widget/emoji/EmojiSort.java | UTF-8 | 1,822 | 2.171875 | 2 | [] | no_license | package cn.yue.base.common.widget.emoji;
import java.util.List;
import cn.yue.base.common.widget.keyboard.mode.IEmotionPage;
import cn.yue.base.common.widget.keyboard.mode.IEmotionSort;
/**
* Description : emoji分类
* Created by yue on 2018/11/16
*/
public class EmojiSort implements IEmotionSort {
private int ... | true |
b65cb1dddb7dafc9c0a732a9caf79bdcee29c680 | Java | MikuNyanya/RabbitBot | /src/main/java/gugugu/entity/apirequest/weibo/InfoWeiboHomeTimeline.java | UTF-8 | 478 | 1.617188 | 2 | [
"MIT"
] | permissive | package gugugu.entity.apirequest.weibo;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* create by MikuLink on 2020/1/8 19:16
* for the Reisen
* 只解析了必要字段
* api文档:https://open.weibo.com/wiki/2/statuses/home_timeline
*/
@Getter
@Setter
public class InfoWeiboHomeTimeline {
//微博推文列表
... | true |
3cb9b4788a1dd5db781d0f5d3b07d145d995a888 | Java | SJLBenjamin/BarChartView | /app/src/main/java/com/example/barchartview/canvas/CanvasStackView.java | UTF-8 | 1,780 | 2.5625 | 3 | [] | no_license | package com.example.barchartview.canvas;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;
import androidx.annotation.Nullable;
import com.example.barc... | true |
d3077e14fb2cfd286d136c6f10136ea8c7b2c041 | Java | 22423shivam/CapgeminiADAPT | /RabbitMQ/Question1/src/main/java/Service/CustomerNotification.java | UTF-8 | 802 | 2.609375 | 3 | [] | no_license | package com.assignment1.CustomerProd.Service;
import com.assignment1.CustomerProd.Model.Customer;
import com.assignment1.CustomerProd.RabbitMQConfig;
import com.assignment1.CustomerProd.Repo.CustomerRepo;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotat... | true |
8c56f0fc0103b97ae5a1a99975898eaa07beaf92 | Java | Mizen314/challenge-birras-santander | /challenge-birras-santander-common/src/main/java/com/agreggio/challenge/birras/santander/common/entitie/AuditableEntity.java | UTF-8 | 1,209 | 2.046875 | 2 | [] | no_license | package com.agreggio.challenge.birras.santander.common.entitie;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.sql.Timestamp;
@Ma... | true |
865fc78f04efbfb5193952fa54473bc0fdd0624d | Java | apache/lenya | /org.apache.lenya.module.export/src/main/java/org/apache/lenya/cms/export/Import.java | UTF-8 | 3,748 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | true |
92a04f213e1068e90f1a96c9972043ef981b1dd2 | Java | chvvsubbu/problemsolving | /AmazonSets/src/com/codechef/Main.java | UTF-8 | 961 | 3.375 | 3 | [] | no_license | package com.codechef;
import java.util.Scanner;
public class Main {
public static String winOrLoss(String game) {
String gameresult = game.trim();
int chef = 0, comp = 0, result;
for (int i = 0; i < gameresult.length(); i++) {
result = gameresult.charAt(i) - '0';
if (result == 1)
chef+... | true |
85451927adf7e4fabbae2e4a7d30b110294c5a35 | Java | JAYASHREEPATIL/JAVA_-DS-Algo | /GCDDemo.java | UTF-8 | 392 | 2.890625 | 3 | [] | no_license | import java.util.*;
public class GCDDemo
{
public static void main(String args[])
{
int a =90;
int b=34;
int c=0;
int max = 0;
int result=0;
if(a<b)
{
c=a;
}
else
{
c=b;
}
for(int i=1;i<=c;i++)
{
if((a%i==0) && (b%i==0) )
{
result=i;
max = Math.max(max,result);
... | true |
3d8c0e13509ecff50f0f029d5532fd5ef46385cb | Java | chodkos/POS | /src/main/java/com/pos/transaction/Transaction.java | UTF-8 | 2,105 | 2.65625 | 3 | [] | no_license | package com.pos.transaction;
import com.pos.display.Display;
import com.pos.display.SimpleDisplay;
import com.pos.item.*;
import com.pos.printer.Printer;
import com.pos.printer.PrinterImpl;
import com.pos.reader.StubbedReader;
import com.pos.reader.Reader;
import java.math.BigDecimal;
import java.util.ArrayList;
impor... | true |
b5d19c386b7a13331c076dc5c817bd470078b5d8 | Java | PolinkaBelozorovich/KMproject | /Desktop/labaaa7/src/main/java/pages/DeliveryPage.java | UTF-8 | 628 | 2.375 | 2 | [] | no_license | package pages;
import elements.*;
import extensions.FireFoxDriverEx;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
public class DeliveryPage extends Page {
public DeliveryPage(FireFoxDriverEx driver) {
super(driver);
}
@FindBy(id = "total_checkout_amou... | true |
0c55b3fc1d2f25b3310bf6ca30946fc4fe66e42c | Java | limyjie/presentation | /src/main/java/org/lucas/blog/utils/StringUtil.java | UTF-8 | 308 | 1.679688 | 2 | [] | no_license | /**
* Author: lin
* Date: 2019/3/12 21:42
*/
package org.lucas.blog.utils;
public class StringUtil {
private StringUtil(){}
public static final String imgContext = "C:\\Users\\lin\\Pictures\\Saved Pictures\\";
public static final String imgUrlContext = "http://127.0.0.1:8080/file/img/";
}
| true |
e74a4ea9e584ddf8765aee543aedee8f9369c52b | Java | andrelportella/WSConsumerAPI | /src/main/java/br/com/grupocidade/b2click/ws/model/response/ProdutoResponse.java | UTF-8 | 339 | 1.835938 | 2 | [] | no_license | package br.com.grupocidade.b2click.ws.model.response;
import br.com.grupocidade.b2click.ws.model.request.ProdutoWS;
public class ProdutoResponse extends ResponseError {
ProdutoWS response[];
public ProdutoWS[] getResponse() {
return response;
}
public void setResponse(ProdutoWS[] response) {
this.response ... | true |
7ce02e46b77568bacb2c5ef76fe772cb36eb79e6 | Java | zhangdafeihhh/springmvc-shiro | /src/main/java/mapper/mdbcarmanage/DriverInfoInterCityMapper.java | UTF-8 | 416 | 1.664063 | 2 | [] | no_license | package mapper.mdbcarmanage;
import com.zhuanche.entity.mdbcarmanage.DriverInfoInterCity;
public interface DriverInfoInterCityMapper {
int insert(DriverInfoInterCity record);
int insertSelective(DriverInfoInterCity record);
DriverInfoInterCity selectByPrimaryKey(Integer id);
int updateByPrimaryKeyS... | true |
fad10354c064c296944dcd9aa3d8a9b250731acf | Java | STAMP-project/dspot-experiments | /benchmark/test/org/springframework/batch/sample/JobOperatorFunctionalTests.java | UTF-8 | 4,187 | 2.171875 | 2 | [] | no_license | /**
* Copyright 2008-2009 the original author or authors.
*
* 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 a... | true |
4effae9cfa91b98873159ec4a2b0c5a56a9d8e1c | Java | atiwari0802/data-structures-algorithms | /src/test/java/arrays/MaximumSubArraySumTest.java | UTF-8 | 794 | 2.703125 | 3 | [] | no_license | package arrays;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.List;
import static arrays.MaximumSubArraySum.MaxSubArrayWindow;
public class MaximumSubArraySumTest {
private MaximumSubArraySum maximumSubArraySum;
@Befor... | true |
badb981cc63f71bcf92ea5d86ff695fbd6fa5da2 | Java | iamnestra/epe2android | /app/src/main/java/app/crud/firebase/crudandroid/ListaClientes.java | UTF-8 | 3,383 | 2.15625 | 2 | [] | no_license | package app.crud.firebase.crudandroid;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
i... | true |
da3ace9f9a0935d11c7dfbd1f004fa79fd2baffb | Java | alebianITBA/SS | /src/off_lattice/InitialParams.java | UTF-8 | 223 | 1.703125 | 2 | [] | no_license | package off_lattice;
public class InitialParams {
final int N;
final int L;
final float ETA;
public InitialParams(int n, int l, float ETA) {
N = n;
L = l;
this.ETA = ETA;
}
}
| true |
7c53d8b8597ca447e2d8319d95e72269883061f0 | Java | Aamirio/registration-service | /src/main/java/com/aamir/api/registration/service/UserRegistrationService.java | UTF-8 | 456 | 1.929688 | 2 | [] | no_license | package com.aamir.api.registration.service;
import com.aamir.api.registration.dto.User;
import com.aamir.api.registration.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserRegistrationService {
@Autow... | true |
5330996a3a4f83f70f675d65e7150e6feb09310f | Java | yojan95/MediApp-Backend | /src/main/java/com/alexis/service/impl/MedicoServiceImpl.java | UTF-8 | 524 | 1.835938 | 2 | [] | no_license | package com.alexis.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alexis.model.Medico;
import com.alexis.repo.IGenericRepo;
import com.alexis.repo.IMedicoRepo;
import com.alexis.service.IMedicoService;
@Service
public class Medic... | true |
d17a737a54bfe8e457b1c79a2ffbf4262465b3da | Java | Elvinh/Whiteboard | /src/DLineModel.java | UTF-8 | 166 | 2.046875 | 2 | [] | no_license |
public class DLineModel extends DShapeModel {
public DLineModel(int x, int y, int w, int h) {
super(x, y, w, h);
}
public DLineModel()
{
super();
}
}
| true |
033b6c830490e6ad3c0a1f68c15b993bd5e6f22d | Java | AgnieszkaAga/agnieszka_buczek-kodilla_tester | /kodilla-basic-tests/src/main/java/com/kodilla/abstracts/homework/shape/ShapeProcessor.java | UTF-8 | 292 | 3.140625 | 3 | [] | no_license | package com.kodilla.abstracts.homework.shape;
public class ShapeProcessor {
public void process(Shape shape) {
System.out.println("The area of this shape is: "+shape.calculateArea());
System.out.println("The circuit of this shape is: "+shape.calcutateCircuit());
}
}
| true |
a4e5b6448876fda6eb0a369259ffdee47b21d00f | Java | kumarivenu123/springboot-projects | /SpringBootApacheCamelApp/src/main/java/com/spring/boot/router/CamelRouter.java | UTF-8 | 1,761 | 2.375 | 2 | [] | no_license | package com.spring.boot.router;
import java.util.StringJoiner;
import org.apache.camel.RoutingSlip;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class CamelRouter extends RouteBuilder {
@Override
public void configure() throws Excepti... | true |
f84157a6788c41010c359db77cba70be8fe552e9 | Java | deepakverma75/Planet-Food-App | /src/planetfood/dao/UserDao.java | UTF-8 | 1,531 | 2.328125 | 2 | [] | no_license |
package planetfood.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import planetfood.dbutil.DBConnection;
import planetfood.pojo.User;
import planetfood.pojo.registerCashier;
public class UserDao {
public static String valid... | true |
f00ea5781ed323377af8a3c03b9b51c866b82881 | Java | ysy15350/Redpacket_fc | /app/src/main/java/com/ysy15350/redpacket_fc/image_select/ImgSelectActivity.java | UTF-8 | 5,294 | 2.0625 | 2 | [] | no_license | package com.ysy15350.redpacket_fc.image_select;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.jph.takephoto.app.TakePhoto;
import com.jph.takephoto.app.TakePhotoActivity;
import com.jph.takephoto.compress.CompressConfig;
import com.jph.takephoto.model.CropOptions;
import ... | true |
03132968b8abf5f919626acb96f0882482f4ed07 | Java | japetusland/tutorials | /jee8-jsr375/src/main/java/com/giapy/giapy_auth/data_access/User.java | UTF-8 | 2,080 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.giapy.giapy_auth.data_access;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQuery;
import ja... | true |
b8b1ab77df30be9962f25c67855c91ade9fc162b | Java | jingdian1997/graduation-design | /graduation-shop/src/main/java/com/jd/graduation/Impl/CartServiceImpl.java | UTF-8 | 1,691 | 2.1875 | 2 | [] | no_license | package com.jd.graduation.Impl;
import com.jd.graduation.DO.CartDO;
import com.jd.graduation.DTO.CartChangeAmountDTO;
import com.jd.graduation.VO.BookVO;
import com.jd.graduation.VO.CartVO;
import com.jd.graduation.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | true |
fceb3a1787b0fdfcf042272cf1d31faec49c8d68 | Java | Neverslave/myblog1 | /src/main/java/com/henry/myblog/service/LogService.java | UTF-8 | 188 | 1.882813 | 2 | [] | no_license | package com.henry.myblog.service;
import com.henry.myblog.model.Log;
import java.util.List;
public interface LogService {
int insertLog(Log log);
List<Log> queryAllLogs();
}
| true |
124aa82fd2e14297cd1734c86a8c328d7d4769d8 | Java | dahobt123/charterandgo-models | /src/main/java/com/charterandgo/model/Offer.java | UTF-8 | 4,225 | 2.265625 | 2 | [] | no_license | package com.charterandgo.model;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Offer implements Serializable {
private int offerId;
private int totalExpectedPassengers;
private String warningTyoe;
pr... | true |
31c51e951010705b45c4a61789f6a8bebba63c97 | Java | elhananIsrael/TakeAndGo | /app/src/main/java/com/example/yyblumerandeiheller/takeandgo/controller/LookingForBusyCarService.java | UTF-8 | 4,473 | 2.390625 | 2 | [] | no_license | package com.example.yyblumerandeiheller.takeandgo.controller;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.app.NotificationManager;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.Toast;
i... | true |
14154d98258dd5b9f5a5b7f47ebbab2d73061e36 | Java | Wonjyeon/Android-Studio | /MyPicker/app/src/main/java/org/techtown/picker/OnDateTimeChangeListener.java | UTF-8 | 285 | 2.265625 | 2 | [] | no_license | package org.techtown.picker;
public interface OnDateTimeChangeListener {
// DatePicker -> 년,월,일 TimePicker -> 시, 분 => 합쳐서 받겠다!
public void OnDateTimeChange(DateTimePicker view,int year, int monthOfYear, int dayOfMonth, int hour, int minute);
}
| true |
7d8c96abac3ece2c0ebca90eddaa647e243b9bea | Java | jguardado39/CS111B | /Assignments/Week13/conway/BlinkerCell.java | UTF-8 | 836 | 3.3125 | 3 | [] | no_license | package Assignments.Week13.conway;
public class BlinkerCell extends AbstractCell {
public BlinkerCell (int r, int c, ConwayWorld w) {
super(r, c, w);
}
public AbstractCell cellForNextGeneration() {
BlinkerCell next = new BlinkerCell(getRow(), getColumn(),world);
next.setIsAliv... | true |
eea60395244e9c3d4d4a559cb3dee4bc9108e705 | Java | calimaborges/design-patterns | /command-pattern/src/main/java/br/com/borgescal/designpatterns/command/implementations/receivers/GarageDoor.java | UTF-8 | 546 | 3.015625 | 3 | [] | no_license | package br.com.borgescal.designpatterns.command.implementations.receivers;
public class GarageDoor {
String place;
public GarageDoor(String place) {
this.place = place;
}
public void up() {
System.out.println("Garage door up!");
}
public void down() {
System.out.println("Garage door down!");
}
pu... | true |
d6daafeb28123b4c69893ee9dc4d6cbb7f3cdfaf | Java | Khramer/Patterns | /src/Patterns/Structural/Composite/CannedFood.java | UTF-8 | 182 | 2.96875 | 3 | [] | no_license | package Patterns.Structural.Composite;
public class CannedFood implements Item{
@Override
public void use() {
System.out.println("Это консерва");
}
}
| true |
0e14f80962d3113d675973eed3f544cc2ab324eb | Java | Hague/FlenixRoads | /co/uk/silvania/roads/block/KerbBlock.java | UTF-8 | 2,237 | 2.1875 | 2 | [] | no_license | package co.uk.silvania.roads.block;
import co.uk.silvania.roads.Roads;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.... | true |
28e41e5e33973b2f81358e70c0dc300538f12c5b | Java | xrealm/tiktok-src | /sources/com/p280ss/android/ugc/effectmanager/common/p1730e/C43729a.java | UTF-8 | 451 | 1.859375 | 2 | [] | no_license | package com.p280ss.android.ugc.effectmanager.common.p1730e;
import java.io.Closeable;
import java.io.IOException;
/* renamed from: com.ss.android.ugc.effectmanager.common.e.a */
public final class C43729a {
/* renamed from: a */
public static void m138574a(Closeable closeable) {
if (closeable != null)... | true |
98e36647585fbd64cc74f40d5d8a5b42224943d1 | Java | Liranai/Omega-ISG | /src/main/java/logic/ai/AlphaBetaMiniMax.java | UTF-8 | 15,202 | 3.078125 | 3 | [] | no_license | package logic.ai;
import java.util.concurrent.Callable;
import logic.OmegaLogic;
import model.Board;
import model.Move;
import model.Node;
public class AlphaBetaMiniMax extends ArtificialIntelligence implements Callable<Move> {
private int nodes_explored;
private static double MAX_DEPTH = 0.2;
public AlphaBetaM... | true |