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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
83f6aca50005558dab786d345592eedbded14dc3 | Java | sanducosmin9/Laborator5PA | /src/ro/info/uaic/CatalogUtil.java | UTF-8 | 909 | 2.5 | 2 | [] | no_license | package ro.info.uaic;
import java.awt.*;
import java.io.*;
import java.net.URI;
public class CatalogUtil {
public static void save(Catalog catalog)
throws IOException {
try (var outputStream = new ObjectOutputStream(
new FileOutputStream(catalog.getPath()))) {
outp... | true |
39741143801441e064ca1a9a7fe218ac986d6eba | Java | arkadiuszSzast/food-delivery | /jwt-service/src/main/java/com/food/delivery/jwtservice/utils/properties/jwt/BasicJwt.java | UTF-8 | 289 | 1.78125 | 2 | [] | no_license | package com.food.delivery.jwtservice.utils.properties.jwt;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class BasicJwt implements JwtToken {
private final String secret;
private final String issuer;
private final Long expirationTime;
}
| true |
ccd7b8756e64b5decf6214a9cbadd6398209e114 | Java | arshdeep/Jtopcoder | /src/com/topcoder/archive/DivisibleSetDiv2.java | UTF-8 | 553 | 2.90625 | 3 | [] | no_license | package com.topcoder.archive;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class DivisibleSetDiv2 {
public String isPossible(int[] b) {
int sum = 2520; //lcm of 1-10
int res = 0;
for (int in : b) {
res += (sum + in - 1) / in;
}
return res <= sum ? "Possible" : "Impossi... | true |
2297ada61f07cd277b5e84fde9114bf6112cd82d | Java | liaobinge/renren-fast | /mallCode/main/java/io/renren/modules/generator/controller/TAppSmsController.java | UTF-8 | 2,232 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.generator.controller;
import java.util.Arrays;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.a... | true |
8be32b7b2d0cfd564c85c0db5b8a5b1849733b61 | Java | wayshall/onetwo | /core/modules/boot/src/main/java/org/onetwo/boot/module/rxtx/BaseSeriaCommand.java | UTF-8 | 1,070 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package org.onetwo.boot.module.rxtx;
import java.nio.ByteBuffer;
import java.util.List;
import org.onetwo.common.utils.LangUtils;
import com.google.common.collect.Lists;
/**
* @author weishao zeng
* <br/>
*/
abstract public class BaseSeriaCommand<T> extends SimpleSerialPortEventListener implements SeriaDeivceCo... | true |
db75f670fd05cd2525c2958b54c490fe304ac780 | Java | V-zhangyunxiang/UnibikeMaintain | /app/src/main/java/me/unibike/citymaintain/model/NearBikeModel.java | UTF-8 | 1,571 | 2.125 | 2 | [] | no_license | package me.unibike.citymaintain.model;
import java.util.ArrayList;
/**
* Created by VULCAN on 2017/7/11.
*/
public class NearBikeModel {
private int ts;
private int code;
private PayLoad payload;
public int getTs() {
return ts;
}
public void setTs(int ts) {
this.ts =... | true |
2c5492e9875af6094354b6f07d0f5a4a11393126 | Java | Limitless994/SlidingBlocksAI | /SlidingBlocksAI/src/vecchio/Block.java | UTF-8 | 867 | 3.09375 | 3 | [] | no_license | package vecchio;
/**------------------------------------------------------------------------
* @author Adam Socik
* March 2014
* CS 342 Software Design
*
* This class holds all of the necessary information for a given block.
* ---------------------------------------------------------------------... | true |
fe26a3b152a8594aa88326fc6cf93736006d7eba | Java | nercel2020czp/Data-Structures-and-Algorithms | /08_滑动窗口/src/l_0904_水果成篮/Solution1.java | UTF-8 | 1,432 | 3.421875 | 3 | [] | no_license | package l_0904_水果成篮;
//与l_0003_无重复字符的最长子串 类似
class Solution {
public int totalFruit(int[] tree) {
int res = 0, len = tree.length;
int one = tree[0], two, begin = 0, end = 1; //2种树的状态(one, two), one初始化为tree数组的第1个元素
while (end < len && tree[end] == one) //寻找two的初始值,以构成初始(one, two)
... | true |
37458378601c20ecc7b653a4d9f29dc577443281 | Java | JuanRomoLearn/PopularMovies | /app/src/main/java/io/romo/popularmovies/fragments/MoviesFragment.java | UTF-8 | 6,675 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Juan Romo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
65ad753d13b9100c8df9363bd4ffd340b7ded5dd | Java | GuidoCeresa/vaad | /src/it/algos/vaad/wiki/request/QueryReadTitle.java | UTF-8 | 1,077 | 2.484375 | 2 | [] | no_license | package it.algos.vaad.wiki.request;
import it.algos.vaad.wiki.TipoRicerca;
import java.net.URLEncoder;
/**
* Query standard per leggere il risultato di una pagina
* NON legge le categorie
* Usa il titolo della pagina
* Non necessita di Login
*/
public class QueryReadTitle extends QueryPage {
/**
* Cos... | true |
c2de34fd5cb71555036561f4202158409158db08 | Java | runrt144/Capstone-Rockers | /Arunkumar Latest Nov14 - Working/src/com/controller/ContactServlet.java | UTF-8 | 1,606 | 2.453125 | 2 | [] | no_license | package com.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSessi... | true |
8e895d6b084685b27fd2fa911b1fc8883460b157 | Java | junhajung/tour_project | /tour/src/main/java/com/tour/entity/Food.java | UTF-8 | 2,007 | 2.265625 | 2 | [] | no_license | package com.example.entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
@Document(collection = "Food")
public class Food {
@Id
private String id;
@Field(name = "region")
private Str... | true |
489c6d8e237eb868f1a368f3f1425e6265aba900 | Java | Kolyall/ExampleMockApp | /app/src/main/java/com/example/dagger/modules/ApiRepositoriesModule.java | UTF-8 | 1,250 | 2.03125 | 2 | [] | no_license | package com.example.dagger.modules;
import android.support.annotation.NonNull;
import com.example.dagger.service.ApiService;
import com.example.dagger.service.repositories.ApiAuthRepository;
import com.example.dagger.service.repositories.AuthRepository;
import com.example.dagger.service.repositories.MockAuthRepositor... | true |
48e63b08e50f50b46044129d611a0d4c260db0e7 | Java | azizisya/benhesrc | /src_fields/uk/ac/gla/terrier/querying/FieldQueryExpansion.java | UTF-8 | 11,157 | 1.757813 | 2 | [] | no_license | /*
* Terrier - Terabyte Retriever
* Webpage: http://ir.dcs.gla.ac.uk/terrier
* Contact: terrier{a.}dcs.gla.ac.uk
* University of Glasgow - Department of Computing Science
* http://www.gla.ac.uk/
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not us... | true |
5683ac1ed35d2691fcbeab745c4a18974466a2eb | Java | CyanogenMod/android_packages_services_Telephony | /src/com/android/phone/EditPhoneNumberPreference.java | UTF-8 | 33,486 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
5ad7fb63ccb15e33da4a6463d8b50aa993289462 | Java | AnesioSousa/BlackJack-1 | /src/br/uefs/ecomp/blackjack/model/MaoDeCarta.java | UTF-8 | 644 | 2.046875 | 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 br.uefs.ecomp.blackjack.model;
import br.uefs.ecomp.blackjack.util.ListaEncadeada;
/**
*
* @author Uellington Da... | true |
468d67c6e29edfc444bb981c97afd673710a90f6 | Java | cinnamonbreakfast/uni_implementations | /Semester 4/SDI/Movie Rental TCP/server/src/main/java/service/ServerController.java | UTF-8 | 23,862 | 2.5625 | 3 | [] | no_license | package service;
import Domain.Client;
import Domain.Entity;
import Domain.Movie;
import Domain.Rental;
import Message.Message;
import Message.MessageHeader;
import tcp.TcpServer;
import java.io.IOException;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
publi... | true |
aa3cf1b687444ec38945a6807ebb738c407e7095 | Java | shaimeizi/dk | /hehenian-biz-service/src/main/java/com/hehenian/biz/dal/loan/IManagerLoanDictDao.java | UTF-8 | 482 | 1.835938 | 2 | [] | no_license | package com.hehenian.biz.dal.loan;
import java.util.List;
import java.util.Map;
import com.hehenian.biz.common.loan.dataobject.LoanDictDo;
public interface IManagerLoanDictDao {
public List<LoanDictDo> queryList(Map<String,Object> searchItem );
public List<LoanDictDo> queryListPage(Map<String,Object> searchItem... | true |
4e3c04c02e08a8e271055ee1848ba20693e07e35 | Java | LTaeHoon/ncs_spring | /chap04_Spring_JDBC/src/main/java/spring/jdbc/service/TeamService.java | UTF-8 | 5,099 | 3.015625 | 3 | [] | no_license | package spring.jdbc.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import spring.jdbc.dao.TeamDao;
import spring.jdbc.vo.TeamVO;
... | true |
3523eb7b853c8ec3c27fa76e497c59450ab08744 | Java | ZakariaRezoug/Hrms | /hrms/src/main/java/kodlamaio/hmrs/core/utilities/adapters/concretes/EmployeeValidationManager.java | UTF-8 | 539 | 2.296875 | 2 | [] | no_license | package kodlamaio.hmrs.core.utilities.adapters.concretes;
import org.springframework.stereotype.Service;
import kodlamaio.hmrs.core.utilities.adapters.abstracts.EmployeeValidationService;
import kodlamaio.hmrs.entities.concretes.Company;
@Service
public class EmployeeValidationManager implements EmployeeValidationSe... | true |
473dab7740bf9bd52f12acc268f7cc6c24ba4bbb | Java | achyutpoudel365/javaPrograms | /easy-notes/src/main/java/com/nabin/easynotes/request/NoteRequest.java | UTF-8 | 209 | 1.507813 | 2 | [] | no_license | package com.nabin.easynotes.request;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class NoteRequest {
private String title;
private String content;
private Long userId;
}
| true |
50086d1c9341662942c3dc65363b793b5fde45df | Java | dacontor/WalmartSIGO | /app/src/main/java/com/bild/sigo/activities/SplashActivity.java | UTF-8 | 7,433 | 2.40625 | 2 | [] | no_license | package com.bild.sigo.activities;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;... | true |
f4f8ef1b155349f4e0667b065e035343966a7877 | Java | nuaapcp/coolWeather | /app/src/main/java/com/test/coolweather/ui/adapter/AreaListAdapter.java | UTF-8 | 1,990 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.test.coolweather.ui.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.test.coolweather.R;
import java.util.ArrayList;
impor... | true |
b26c040d963a3cbd71dd5a9f63ac68a315adf0e5 | Java | YeshiChetanR/Newwer | /src/main/java/mongo/sss.java | UTF-8 | 832 | 2.203125 | 2 | [] | no_license | package mongo;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.MongoClient;
public class sss {
static Connector connector=new Connector();
public static void main(String[] args) {
MongoClient client=connector.getClient();
connector.createDatabase("Fir... | true |
db7850fa1ca4f0ff58024974470be38e533e17de | Java | MathiasBulte/poxon | /src/main/java/com/example/demo/event/DemoUpdatedEvent.java | UTF-8 | 213 | 1.640625 | 2 | [] | no_license | package com.example.demo.event;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
@Getter
@SuperBuilder
public class DemoUpdatedEvent extends AbstractEvent {
private final String inputValue;
}
| true |
07c6e0a7c362e3b63ca5f12911666b97a11bd8ee | Java | wgcwgc/Android_SqliteTest | /src/com/lanchuang/wgc/android_sqlitetest/DataBaseHelper.java | UTF-8 | 1,342 | 2.484375 | 2 | [] | no_license | package com.lanchuang.wgc.android_sqlitetest;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class DataBaseHelper extends SQLiteOpenHelper
{
private static final int V... | true |
4849f3f99f68925df0a268dbce1f70ec4fade527 | Java | anboy0/ydcash | /src/main/java/com/demo/demo/sys/entity/BaseMenu.java | UTF-8 | 2,887 | 1.875 | 2 | [] | no_license | package com.demo.demo.sys.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
@ApiModel(description = "菜单表")
public class BaseMenu extends CommonVo implements Serializable {
private static final long serialVersionUID... | true |
90b2cde8f8197136c9c78ea8ab50e94d68e940c2 | Java | MK-weiti/Java-Game | /JGame/core/src/com/gdx/interpreter/BucketVector.java | UTF-8 | 4,104 | 3.515625 | 4 | [] | no_license | package com.gdx.interpreter;
import java.util.*;
public class BucketVector<T> {
private class MyVector{
private Vector<T> vector;
private String name;
public MyVector(String name){
init(name);
}
public MyVector(String name, T value){
init(name);
add(value);
}
public MyVector(Strin... | true |
162799f238649298990ef22ff5b5200f77490ad1 | Java | badinnergy/PKG | /java/HelloWorld.java | UTF-8 | 172 | 2.515625 | 3 | [] | no_license | // Klasik program Hello World
class HelloWorld {
public static void main(String[] args) {
// tulis Hello World kepada terminal
System.out.println("Hello World!");
}
} | true |
dfbc1688ea58ee4952f7a5ddef360135d0895854 | Java | AbDaniel/leetcode | /test/strings/LongestSubstringWithoutRepeatingCharTest.java | UTF-8 | 624 | 2.75 | 3 | [] | no_license | package strings;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by aw186034 on 6/24/17.
*/
public class LongestSubstringWithoutRepeatingCharTest {
@Test
public void lengthOfLongestSubstring() throws Exception {
LongestSubstringWithoutRepeatingChar alg = new LongestSubstringW... | true |
9e015ae5fc1e73d5e960f48b0c87c488fed78f5c | Java | thewinterwolf220/FirstRepo | /Graph Traveller/src/com/graph/Graph.java | UTF-8 | 13,382 | 3.5625 | 4 | [] | no_license | package com.graph;
import java.util.ArrayList;
import java.util.Scanner;
import static com.graph.Conversion.*;
/**
* Kind of maze game
* Navigable graph
*
* @author marco
* @version 2.0
* <p>
* This version has:
* distance between nodes, distance between start and goal
* north-west, south-west, north-east,... | true |
24913d227bee84243eb5afa4d3afa761a28aa397 | Java | Smliences/qf | /Ework/1221_hibernate/src/main/java/com/sml/service/impl/UserServiceImpl.java | WINDOWS-1252 | 554 | 2 | 2 | [] | no_license | package com.sml.service.impl;
import java.util.List;
import javax.xml.registry.infomodel.User;
import com.sml.dao.UserDao;
import com.sml.service.UserService;
/**
* Author: sml
* date: 2017128
* time: 4:14:05
**/
public class UserServiceImpl implements UserService{
private UserDao userDao;
... | true |
e142bfa2876981c9511d1ce2286ab3841ceede9e | Java | kirebeasley/DebuggingandExtending | /Main.Java | UTF-8 | 384 | 2.703125 | 3 | [] | no_license | package com.company;
import java.sql.SQLOutput;
import java.util.Scanner;
import java.lang.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
{//Block of code goes here.
Scanner input = new Scanner(System.in);
System.out.println("How was your day?")... | true |
5f5cb0d6cf1eea06dd0f5545734045ccdcf96117 | Java | Jeff-Duan/LogitechShop | /src/org/lanqiao/Servlet/UploadImagesServlet.java | UTF-8 | 2,380 | 2.234375 | 2 | [] | no_license | package org.lanqiao.Servlet;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | true |
b1be897ac656a78e89884daeb6b5219de0a804e4 | Java | Dpinkney001/Java-Assignments | /JPanel4.java | UTF-8 | 438 | 2.515625 | 3 | [] | no_license | package project2017mk3;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class JPanel4 extends JPanel {
public JPanel4()
{
JPanel JPanel4 = new JPanel();
setBackground(Color.RED);
JLabel JLabel4 = new JLab... | true |
7538f9b465bafd8fd94451d3e21b35718e3d3004 | Java | aupodogov/axon-tracking-saga-test | /src/main/java/com/example/axontrackingsagatest/domain/api/SampleAggregateCreated.java | UTF-8 | 174 | 1.5625 | 2 | [] | no_license | package com.example.axontrackingsagatest.domain.api;
import lombok.Value;
import java.util.UUID;
@Value
public class SampleAggregateCreated {
private final UUID id;
}
| true |
6597aaadc1d68712c6da437f94ddd2fd4c0564c9 | Java | Vickey233/OrderSystem | /src/main/java/com/groupthree/ordersystem/service/AddressService.java | UTF-8 | 686 | 1.84375 | 2 | [] | no_license | package com.groupthree.ordersystem.service;
import com.groupthree.ordersystem.entity.Address;
import com.baomidou.mybatisplus.service.IService;
import com.groupthree.ordersystem.vo.AddressVo;
/**
* <p>
* 服务类
* </p>
*
* @author LR
* @since 2019-10-18
*/
public interface AddressService extends IService<Address> ... | true |
47d25d6cfaaf79754c27b0ce03dbd2a13ba72dae | Java | radkp/TextAnalyzer | /src/main/java/io/sahaj/resource/TextAnalysis.java | UTF-8 | 442 | 1.929688 | 2 | [] | no_license | package io.sahaj.resource;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import java.util.ArrayList;
import java.util.List;
public class TextAnalysis {
@Getter
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ComplexSentence> complexSentences = new ArrayList<>();
... | true |
7031b90a7c35d51c7f480e0946cec6b3706c4fcd | Java | cha63506/CompSecurity | /wellfargo/src/org/a/a/a/a/f.java | UTF-8 | 1,954 | 2.203125 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.a.a.a.a;
import java.util.Calendar;
import org.a.a.a.c;
// Referenced classes of package org.a.a.a.a:
// e
class f
... | true |
a9a3eed0759a8c62740e072c7fe70acf07193272 | Java | GovindaPaliwal/Shake-Motion-Flashligth | /src/com/govinda/jugnu/FlashlightWidgetReceiver.java | UTF-8 | 2,817 | 2.09375 | 2 | [] | no_license | package com.govinda.jugnu;
import java.util.List;
import android.appwidget.AppWidgetManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import ... | true |
ac3cb411081becf830f454751530fe83fcc92230 | Java | wangleinumber1/zhijia | /src/com/zhijia/service/data/Medol/NewsCatModel.java | UTF-8 | 419 | 1.914063 | 2 | [] | no_license | package com.zhijia.service.data.Medol;
/**
* 新闻分类
*/
public class NewsCatModel {
private String catid;
private String cname;
public String getCatid() {
return catid;
}
public void setCatid(String catid) {
this.catid = catid;
}
public String getCname() {
return ... | true |
dbbae323eaff6882b0d2fc3742eeb2c36d96e2f0 | Java | AngelBanuelos/ASN_Homeworks | /src/mx/iteso/desi/cloud/hw1/Config.java | UTF-8 | 2,115 | 2.203125 | 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 mx.iteso.desi.cloud.hw1;
import com.amazonaws.regions.Regions;
import mx.iteso.desi.cloud.keyvalue.KeyValueStoreFactor... | true |
23ca7fa693943bfe5ec27f1f8bbee0f2fed0252e | Java | CrazyStoneJy/DataStructureSummary | /code/java/src/me/crazystone/study/list/List.java | UTF-8 | 887 | 3.40625 | 3 | [] | no_license | package me.crazystone.study.list;
/**
* Created by crazystone on 2016/3/28.
*/
public interface List<E> {
/* 是否为空 */
boolean isEmpty();
/* 是否包含某元素*/
boolean contains(E e);
/* 获取list的长度*/
int size();
/*增加一个e元素*/
void add(E e);
/*明确的在index处插入e元素*/
void add(int index, E e)... | true |
a6bed6bba760235a82671510c494461f93cfb199 | Java | jwilliams91/techinterview-github | /GitHubApi/src/main/java/com/ghapi/praeses/services/UserService.java | UTF-8 | 924 | 2.421875 | 2 | [] | no_license | package com.ghapi.praeses.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.kohsuke.github.GitHub;
public class UserService {
public static String getAvatar(Object username, GitHub ghClient) {
try {
return ghClient.getUser((String)username).getAvatarUrl();
... | true |
cbe82884d4bf6eba1ad1ce2fc729b0803d36419a | Java | jamsesso/meshmap | /src/main/java/jamsesso/meshmap/LocalMeshMapCluster.java | UTF-8 | 2,393 | 2.65625 | 3 | [
"MIT"
] | permissive | package jamsesso.meshmap;
import java.io.File;
import java.io.IOException;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class LocalMeshMapCluster implements MeshMapCluster, AutoCloseable {
private final Node self;
private final File... | true |
9bf865b371877a63395df5fbc6896f070008a40f | Java | AliceZJ/Logistics | /Wuliu/Cangguan/src/zhangjuan/Seat_pro_dao.java | UTF-8 | 1,664 | 2.1875 | 2 | [] | no_license | package zhangjuan;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import pojo.depot;
import pojo.regions;
import pojo.seat_wuliao;
import unit.db;
public class Seat_pro_dao {
public List<seat_wuliao>... | true |
4045febd557f9b458690cb7005d738b122e8de8d | Java | dancarrillo/spring-boot-primer | /src/main/java/com/stayhungry/primer/controllers/ApplicationsController.java | UTF-8 | 3,784 | 2.734375 | 3 | [] | no_license | package com.stayhungry.primer.controllers;
import javax.inject.Inject;
import org.apache.http.client.HttpClient;
import org.apache.log4j.Logger;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springfram... | true |
608746621db9cdb690340ba1b2a7e3dba30403a3 | Java | DICL/cassandra | /src/java/org/apache/cassandra/utils/Sorting.java | UTF-8 | 7,554 | 3.234375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | 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 |
c992d3d675b38a850f94bb434d5a9bc86cc673f0 | Java | bandaprabhanjan/PracticeJava | /src/StringDemo.java | UTF-8 | 627 | 3.234375 | 3 | [] | no_license |
public class StringDemo {
public static void main(String[] args) {
String[] words = { "apple", "Prabhanjan","123", "@12ndn" };
String date1 = "26/06/2020";
String[] split2 = date1.split("/");
System.out.println(split2.length);
System.out.println(split2[1]);
String word = "Prabhanjan Banda";
String str2... | true |
52138b1ed327ffb59659e7faf18b46cc53da39ae | Java | treatwill/OOD | /src/main/java/org/tekcamp/burger/Topping.java | UTF-8 | 361 | 1.921875 | 2 | [] | no_license | package org.tekcamp.burger;
public class Topping {
/*
Properties :
name (example toppings : onions, cheese, green peppers, pickles, ketchup, mustard, relish, mushrooms, guacamole etc.)
price (some toppings have an added cost, others don't. i.e. guacamole, mushrooms, extra cheese, have added upcharges. ketc... | true |
6a80c1a5a78865c82ce258d79297479c662e12ff | Java | SnehalSa/PPA27 | /DemoString.java | UTF-8 | 1,136 | 3.65625 | 4 | [] | no_license | class DemoString
{
public static void main(String arg[])
{
String str1="Hello";
String str2=new String("Hello");
char Arr[]={'H','E','L','L','O'};
String str3=new String(Arr);
System.out.println(str1);
System.out.println(str2);
System.out.println(str3);
System.out.println("Str... | true |
d9bb20aab9968158a3d7ab48c5f3598233040016 | Java | ZeravicaDjordje/nba-statistics | /game-service/src/main/java/com/mozzartbet/gameservice/mapper/TeamStatisticsMapper.java | UTF-8 | 1,064 | 2.015625 | 2 | [] | no_license | package com.mozzartbet.gameservice.mapper;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Upda... | true |
def9c56787f134d223f7b1f350f185a1c4be53b8 | Java | 1158229122/bos- | /bos_management/src/main/java/cn/itcast/bos/aop/CookieHandle.java | UTF-8 | 3,387 | 2.34375 | 2 | [] | no_license | package cn.itcast.bos.aop;
import cn.itcast.bos.dao.StandardDao;
import cn.itcast.bos.domain.base.Standard;
import cn.itcast.bos.util.CookieUtil;
import com.alibaba.fastjson.JSON;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.... | true |
286ee476190da132efa3e922ae4058bd82f0ec3b | Java | JimmyW0ng/ep-all | /ep-api/src/main/java/com/ep/api/ApiMain.java | UTF-8 | 1,286 | 1.773438 | 2 | [] | no_license | package com.ep.api;
import com.ep.api.config.SecurityConfig;
import com.ep.api.config.Swagger2Config;
import com.ep.common.config.JsonConfig;
import com.ep.common.config.RestTempldateConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import o... | true |
6a0a1879f114c7de08345216d49de19885e33acc | Java | edenam/ClubeComunidade | /app/src/main/java/eden/com/br/clubecomunidade/json/JsonReader.java | UTF-8 | 995 | 2.53125 | 3 | [] | no_license | package eden.com.br.clubecomunidade.json;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import eden.com.br.clubecomunidade.bean.News;
import eden.com.br.clubecomunidade.utils.TagName;
public class JsonReader {
public sta... | true |
c8d38944537a28249693f497a6e2bb6ece15f388 | Java | zxjin001/Spring-Data-Jpa-Builder | /Spring-JPA/src/com/mapeak/crm/dao/impl/ProductDaoImpl.java | GB18030 | 917 | 2.296875 | 2 | [] | no_license | package com.mapeak.crm.dao.impl;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;
import com.mapeak.crm.dao... | true |
7827acc1e8b29f69bf8cebb7a7f4d102df77c14d | Java | repinpv/grid-demo | /grid-demo-data/src/main/java/com/example/griddemo/data/repository/RouteRepository.java | UTF-8 | 300 | 1.65625 | 2 | [] | no_license | package com.example.griddemo.data.repository;
import com.example.griddemo.data.model.RouteEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RouteRepository extends CrudRepository<RouteEntity, Long> {
}
| true |
df25f9d9aabcfe9662052fa7f9e839c469dec8ff | Java | CCM-Modding/Hephaestus | /common/ccm/hephaestus/utils/lib/BushRender.java | UTF-8 | 4,061 | 2.078125 | 2 | [] | no_license | package ccm.hephaestus.utils.lib;
import org.lwjgl.opengl.GL11;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import cpw.... | true |
31a1ad35dc2aae0338c61c470d3e38d7c74c2e8e | Java | dimalabs/stratosphere-iterations | /pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/plan/SingleInputNode.java | UTF-8 | 19,636 | 1.726563 | 2 | [] | no_license | /***********************************************************************************************************************
*
* Copyright (C) 2010 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with... | true |
3b02da454285adec6a39b85e1c84aa4a3b70f8dd | Java | jia0511/FaceApiDemoV2 | /faceEngineYtlf/src/main/java/com/firefly/faceEngine/utils/MatrixYuvUtils.java | UTF-8 | 16,562 | 2.234375 | 2 | [] | no_license | package com.firefly.faceEngine.utils;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.ha... | true |
860dff3064824b34799f0c979c635c01ad633de8 | Java | ImNitinNayar7/java-design-pattern | /java-singleton-design-pattern/src/main/java/com/roytuts/java/singleton/design/pattern/SingletonStaticBlock.java | UTF-8 | 473 | 2.78125 | 3 | [] | no_license | package com.roytuts.java.singleton.design.pattern;
public class SingletonStaticBlock {
private static final SingletonStaticBlock INSTANCE;
static {
try {
INSTANCE = new SingletonStaticBlock();
} catch (Exception e) {
throw new RuntimeException("Instance Error!", e);
}
}
public static SingletonStatic... | true |
034f1cee2d6918eae3bf7ea86ef84d9a4b362ae3 | Java | stupitdog/piq | /piq-core/src/edu/udo/piq/components/defaults/PSpinnerModelDouble.java | UTF-8 | 4,541 | 2.765625 | 3 | [] | no_license | package edu.udo.piq.components.defaults;
import java.util.function.Function;
import edu.udo.piq.tools.AbstractPSpinnerModel;
import edu.udo.piq.util.ThrowException;
public class PSpinnerModelDouble extends AbstractPSpinnerModel {
public static final double DEFAULT_VALUE = 0;
public static final double DEFAULT_MI... | true |
56489bc3dc4b3cee7feba1d679a54388236ad434 | Java | jinahya/jinahya | /com.googlecode.jinahya/ocap-api/1.3/src/main/java/java/text/ChoiceFormat.java | UTF-8 | 11,875 | 2.6875 | 3 | [] | no_license | /*
<p>This is not an official specification document, and usage is restricted.
</p>
<a name="notice"><strong><center>
NOTICE
</center></strong><br>
<br>
(c) 2005-2007 Sun Microsystems, Inc. All Rights Reserved.
<p>
Neither this file nor any files generated from it describe a complete
specification, and they may only b... | true |
cfc450249a24feeae9bae537a48f5a1028f08624 | Java | 123xzy/Java | /TIJ/src/containers_17/ReadOnly.java | UTF-8 | 1,148 | 3.359375 | 3 | [] | no_license | package containers_17;
import java.util.*;
import net.xzy.*;
import static net.xzy.Print.*;
/**
* 设定Collection和Map不可修改
* @author xzy
*
*/
public class ReadOnly {
static Collection<String> data =
new ArrayList<String>(Countries.names(6));
public static void main(String[] args) {
Collection<String> collectio... | true |
cf1ecbe89f6dbc011ed5a72fcc06b4185ca3ede4 | Java | jasonosgood/FormatASM | /src/formatasm/Tahoma.java | UTF-8 | 813 | 2.765625 | 3 | [] | no_license | package formatasm;
import java.util.Date;
/**
* Copyright 2015 Jason Aaron Osgood
*
* All rights reserved.
*
* I'll pick a friendly open source license shortly. Probably BSD.
*
**/
public class Tahoma
{
public static void main( String[] args )
throws Exception
{
// String input = "%tr\n";
// Obj... | true |
f569eabd46e35688aa37550fa63f99af371bfc8e | Java | habbyge/iWatch | /app/src/main/java/com/habbyge/iwatch/patch/PatchManager.java | UTF-8 | 5,087 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.habbyge.iwatch.patch;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.Keep;
import com.habbyge.iwatch.IWatch;
import com.habbyge.iwatch.util.HellUtils;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
* Created by habbyge on 2021/1/5.
*
*... | true |
a2b1e115184667a927b1fd07fe7a1a653bb74451 | Java | ajukes/callable-sdk | /src/main/java/io/callable/sdk/SettingsServiceImpl.java | UTF-8 | 1,771 | 2.390625 | 2 | [] | no_license | package io.callable.sdk;
import io.callable.sdk.dto.setting.Settings;
import io.callable.sdk.dto.setting.SettingsPostRequest;
import io.callable.sdk.dto.setting.SettingsPutRequest;
import io.callable.sdk.enums.SettingsKey;
import java.util.List;
class SettingsServiceImpl extends ServiceImpl implements SettingsServic... | true |
a3f14708d2c978b2f5bf9d86b2e003cb06973991 | Java | Tamabcxyz/javacode | /LTHDT/buoi5mohinhhoabaitoan/HoaDon.java | UTF-8 | 1,138 | 2.953125 | 3 | [] | no_license | package buoi5mohinhhoabaitoan;
import java.util.Scanner;
import buoi2.lthdt.ctu.edu.vn.Date;
public class HoaDon {
private String maHoaDon;
private String tenHoaDon;
private Date ngayXuatHoaDon;
public HoaDon() {
maHoaDon="";
tenHoaDon="";
ngayXuatHoaDon=new Date();
}
public void HoaDon(String ma, Strin... | true |
debb00fe2978c573070b48b1d1d446a84382da2c | Java | juliofdiaz/Aviation | /src/pe/elfuser/Main.java | UTF-8 | 4,000 | 3.0625 | 3 | [] | no_license | package pe.elfuser;
import java.io.FileNotFoundException;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
/**
* This main interface.
*
* @author juliofdiaz
* @version 0.1b
*
*/
public class Main {
public static void main(String[] args) throws FileNotFoundException... | true |
a164f6236852441913217fc3eb50eedf12a0e27b | Java | shomeier/e4-ss-equinox-security | /org.eclipse.e4.security.demo.dummy/src/org/eclipse/e4/security/demo/login/DummyLoginModule.java | UTF-8 | 2,443 | 2.4375 | 2 | [] | no_license | package org.eclipse.e4.security.demo.login;
import java.util.HashMap;
import java.util.Map;
import javax.security.auth.Subject;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.NameCallback;
import javax.security.auth.callback.Passw... | true |
724ed2c2bf70ae4d420e6250ddcfc38d37bcc0c1 | Java | omarahmed10/CircusOfPlates | /src/control/Processor.java | UTF-8 | 3,073 | 2.890625 | 3 | [] | no_license | package control;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Random;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import models.Plate;
import models.PlateProjected;
import view.Board;
public class Processor {
private BlockingQueue<Plate> lar... | true |
9d3e79595da7e235e6ccd0c98d24bdc95c5e13de | Java | id-Fnnkina/bfm | /user_apply/src/finance/ideal/domain/Arithmetic.java | UTF-8 | 1,374 | 2.46875 | 2 | [] | no_license | package finance.ideal.domain;
/**
* 算法
*/
public class Arithmetic {
private String id;
private String arithmeticname;//模型名称
private String introduce;//模型介绍介绍
private String images;//图片地址
private String time;//配置完成时间
@Override
public String toString() {
return "Arithmetic{" +
... | true |
c67d780bb2283667c306c4d48140b2438324122b | Java | YFPS/UltimateSheepWars | /src/main/java/fr/royalpha/sheepwars/core/sheep/IntergalacticSheep.java | UTF-8 | 4,013 | 2.421875 | 2 | [] | no_license | package fr.royalpha.sheepwars.core.sheep;
import fr.royalpha.sheepwars.core.handler.Particles;
import fr.royalpha.sheepwars.core.handler.SheepAbility;
import fr.royalpha.sheepwars.core.handler.Sounds;
import fr.royalpha.sheepwars.core.message.Message;
import org.bukkit.Bukkit;
import org.bukkit.DyeColor;
import org.bu... | true |
9242546705d424b8c5c01214a7a1bcd0a3fc9b89 | Java | ethancdaniel/PaymentManager | /app/src/main/java/com/daniel/ethan/paymentmanager/EditEnvelopeDialog.java | UTF-8 | 2,866 | 2.40625 | 2 | [] | no_license | package com.daniel.ethan.paymentmanager;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widg... | true |
c8a6fc40b83d6a495c409e4409c56c662184ab13 | Java | sd151995/Assessment | /src/main/java/com/pages/Login.java | UTF-8 | 1,015 | 1.929688 | 2 | [] | no_license | package com.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.... | true |
787ef8bf58c5ddaf6fd8b626c83352a6d9d96a41 | Java | NotFunStuff/OnlineBankingProject | /src/main/java/com/se2_project/group8C18/demoEBanking/IService/ISaveService.java | UTF-8 | 345 | 1.6875 | 2 | [] | no_license | package com.se2_project.group8C18.demoEBanking.IService;
import com.se2_project.group8C18.demoEBanking.Model.Save;
public interface ISaveService {
public Save getSave(int accountId);
public String addSave(String save);
public String deleteSave(int accountId);
public String editSave(String save);
public boolean i... | true |
c51491240eb74c5a5946c36d15dda9b19744aa0b | Java | andresposada/expense-tracker-ddd-lite | /identity/src/test/groovy/com/sy/expense/tracker/identity/domain/fixture/UserFixture.java | UTF-8 | 642 | 2.265625 | 2 | [] | no_license | package com.sy.expense.tracker.identity.domain.fixture;
import com.sy.expense.tracker.identity.domain.Email;
import com.sy.expense.tracker.identity.domain.EncryptedPassword;
import com.sy.expense.tracker.identity.domain.User;
import com.sy.expense.tracker.identity.domain.UserId;
import java.util.UUID;
/**
* Return p... | true |
45dd83b6696466b88ee43c5f6ebc47701ea93fd2 | Java | LPFFF/design_pattern | /src/main/java/com/tw/design/a_create/c_proto_type/b_shallow/Client.java | UTF-8 | 416 | 2.453125 | 2 | [] | no_license | package com.tw.design.a_create.c_proto_type.b_shallow;
/**
* @author: pengfei.lv
* @create: 2020-12-25 20:10
**/
public class Client {
public static void main(String[] args) throws Exception {
Citation citation1 = new Citation("张一",11);
Citation citation2 = (Citation) citation1.clone();
... | true |
4a7adede8cafcf04f5c62faa864b6023e03dd66f | Java | Ayobamee/Webdriver-Database-Automation | /WebAutomationTestSuite-master/src/test/java/Reusable/BaseTest.java | UTF-8 | 6,486 | 2.203125 | 2 | [] | no_license | package Reusable;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
//import org.openqa.selenium.Dimension;
//import org.openqa.selenium.JavascriptExecutor;
//import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
//im... | true |
bf72d17286afe074b82f54fbc4853280954ccb53 | Java | anascimento/braido | / braido/SpringStudy/SpringProject/src/springexample/sms/SMSInterface.java | UTF-8 | 172 | 2.46875 | 2 | [] | no_license | package springexample.sms;
public interface SMSInterface {
public void sendSMS();
public String getCellNumber();
public void setCellNumber(String cellNumber);
}
| true |
16cec014b8ebaba63861b97ba896db018ecf47f4 | Java | sherpavel/Argon | /src/sher/argon/util/PseudoRandom.java | UTF-8 | 1,676 | 3.21875 | 3 | [
"MIT"
] | permissive | package sher.argon.util;
import sher.argon.math.Vec2;
import sher.argon.math.Vec3;
/**
* Quasirandom number generator with equal distribution.
* @see <a href="http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/">The quasirandom sequences</a>
*/
public class PseudoRandom {
private... | true |
76c77a859092279c70ca6ff6eb6601d481320ba5 | Java | zaid-kamil/Livescope | /app/src/main/java/trainedge/kaleidoscope/SignUpPage.java | UTF-8 | 7,132 | 2.21875 | 2 | [] | no_license | package trainedge.kaleidoscope;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widg... | true |
f1775ca503179de6b5fcbb230dee5121080922d2 | Java | cagatayd/Tv_Show_MVVM_2 | /app/src/main/java/com/example/tv_app_mvvm/View/Detail_Activity.java | UTF-8 | 2,964 | 2.09375 | 2 | [] | no_license | package com.example.tv_app_mvvm.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widg... | true |
4616d5c87ff2e94f8ea092cd42a05f17e4f1ad54 | Java | altope98/JAVA | /NETBEANS2/TERCER TRIMESTRE/Examen/src/Vista/Facturas.java | UTF-8 | 28,354 | 2.40625 | 2 | [] | no_license | package Vista;
import Controlador.FacturasBD;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.table.DefaultTableModel;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Facturas extends javax.swing.JFrame {
FacturasBD datos;
DefaultTa... | true |
50b39a5679d13737c2c161a9c3bf4f1f134e6dca | Java | HamzaRajput007/KhareedlayVendor | /app/src/main/java/com/example/khareedlayvendor/UpdateProduct.java | UTF-8 | 5,526 | 2.171875 | 2 | [] | no_license | package com.example.khareedlayvendor;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageV... | true |
b320735852d7f5603ebf948427a6215a04767167 | Java | hyeonug3512/HelloWorld | /Helloworld/src/classes/PersonExample.java | WINDOWS-1252 | 560 | 3.21875 | 3 | [] | no_license | package classes;
public class PersonExample {
public static void main(String[] args) {
Person p1 = new Person();
p1.name = "ö";
p1.birth = "1994-12-23";
p1.age = 26;
Person p2 = new Person();
p2.name = "ö";
p2.birth = "1993-11-04";
p2.age = 27;
Person p3 = new Person();
p3.name = ... | true |
8d460125f0520218e76f6eabad79816863916ffa | Java | Abhinav-Mani/ChatyApp | /app/src/main/java/com/mani/chatyapp/SignIn.java | UTF-8 | 6,033 | 2.125 | 2 | [] | no_license | package com.mani.chatyapp;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.text.TextUtils... | true |
a5fe582f9b4ff49c2e10d6dc9487d97e7b932c2c | Java | Strnadj/JavaOptParser | /src/main/java/com/strnadj/OptParser/exceptions/UnexpectedOption.java | UTF-8 | 179 | 2.1875 | 2 | [
"WTFPL"
] | permissive | package com.strnadj.OptParser.exceptions;
/**
* @author strnadj
*/
public class UnexpectedOption extends Exception {
public UnexpectedOption(String msg) {
super(msg);
}
}
| true |
eb6ed33cf054696bea115242e3b29eefcc0bdc2d | Java | GaoNing1/Test | /Java8.1/src/main/java/java8/TestFunctional.java | UTF-8 | 236 | 2.640625 | 3 | [] | no_license | package java8;
public class TestFunctional {
public static void main(String[] args) {
ConvertFunctional<String,Integer> convert =(from)->Integer.valueOf(from);
Integer result =convert.convert("123");
System.out.println(result);
}
}
| true |
e41c610a04a96c5587cdf9deb8ca5cdd9bebcab6 | Java | zolitschka/WineRecommender | /WineRecommender/src/rec/normalGUI.java | ISO-8859-1 | 16,728 | 2.4375 | 2 | [] | no_license | package rec;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
imp... | true |
2a579691005a221a260995e3a664d7e5df5f459b | Java | aakashdp6548/AP_Java_Final_Project | /src/GameState/GameState.java | UTF-8 | 1,620 | 2.46875 | 2 | [] | no_license | package GameState;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.... | true |
56954014c492f87949acfc606985338436ceb71c | Java | Otaka/Ktr4j | /KotorNcsInterpeter/src/test/java/com/kotorresearch/script/ByteArrayUtilTest.java | UTF-8 | 1,147 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.kotorresearch.script;
import com.kotorresearch.script.utils.ByteArrayUtils;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Dmitry
*/
public class ByteArrayUtilTest {
@Test
public void testByteBufferOperations() {
byte[] buffer = new byte[]{00, 00... | true |
0267343d0915ab100bb6c3287f623681a0357389 | Java | Aisas/my1stProject | /src/main/java/com/example/newjpk/TaxPayerDao.java | UTF-8 | 1,410 | 2.4375 | 2 | [] | no_license | package com.example.newjpk;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.util.List;
@Repository("taxPayerDao")
public class TaxPayerDao {
@PersistenceContext
private EntityMa... | true |
b1e8803d5bcb65899c8eec7e8a7300caaaef727a | Java | kategray/openaudible | /src/main/java/org/jaudiotagger/audio/asf/io/ContentBrandingReader.java | UTF-8 | 2,332 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package org.jaudiotagger.audio.asf.io;
import org.jaudiotagger.audio.asf.data.Chunk;
import org.jaudiotagger.audio.asf.data.ContentBranding;
import org.jaudiotagger.audio.asf.data.GUID;
import org.jaudiotagger.audio.asf.util.Utils;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
... | true |
ac89f5bb966890d21be45ff29f2a40f23d87a7f5 | Java | chegahmed/Gestion-ecomerce | /src/main/java/com/entreprise/security/SecurityConfig.java | UTF-8 | 2,461 | 1.867188 | 2 | [] | no_license | package com.entreprise.security;
import javax.sql.DataSource;
import org.apache.catalina.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationMan... | true |
c4f7994443f5234d12612b25752ced75ee9dc52e | Java | jackliaoontheway/EbbingNote | /ebbingnote/src/main/java/com/cherryj/ebbingnote/domain/Document.java | UTF-8 | 1,524 | 2.09375 | 2 | [] | no_license | package com.cherryj.ebbingnote.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "document")
@JsonI... | true |
fc48639943c3ef87add79da1fdab093b01c50f25 | Java | NikitaTseu/jsf-app | /src/main/java/service/UserService.java | UTF-8 | 1,187 | 2.453125 | 2 | [] | no_license | package service;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import objects.User;
public class UserService implements UserServiceI {
public UserService() {
}
private EntityM... | true |
8eaa4fad8149d5225ee41b74a33270945f2a3aa0 | Java | aliaspilote/ReaseauEMF_Android | /app/src/main/java/com/emf_asso/bdd/reseauetudiantsmuslmansdefrance/CursusDetailActivity.java | UTF-8 | 9,090 | 1.945313 | 2 | [] | no_license | package com.emf_asso.bdd.reseauetudiantsmuslmansdefrance;
import android.app.DatePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
impo... | true |
30d2c7aa4e66bceffe22371c38b087fe2360321b | Java | jaydjoshi/Learning | /src/main/java/com/learning/leetcode/SingleNumber.java | UTF-8 | 752 | 4.125 | 4 | [] | no_license | package com.learning.leetcode;
/**
*
* Given an array of integers, every element appears twice except for one. Find that single one.
* Note:
* Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory
*
*/
/*
* Use XOR operator to solve this problem in... | true |
3c1dd64e360dd98ded0d094f337d1aed5f691921 | Java | kranthim85/ObjectOriented | /objectorientedOne/src/isarelationship1/intC.java | UTF-8 | 97 | 1.992188 | 2 | [] | no_license | package isarelationship1;
public interface intC extends intA, intB {
public void login();
}
| true |