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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e6a4b0b418734439a9499e5ce12eb1221e73a043 | Java | bop80aws/BOP | /src/test/java/com/accenture/runner/selenium/ExecuteScriptKkartPurchaseFoodProcessorRunner.java | UTF-8 | 606 | 1.992188 | 2 | [] | no_license | package com.accenture.runner.selenium;
import org.junit.Test;
import com.accenture.runner.utility.ExecuteScriptRunner;
/**
* Class is used for selenium test
*
* @author Lalitha Yengaldas
* @version 1.0
*/
public class ExecuteScriptKkartPurchaseFoodProcessorRunner extends ExecuteScriptRunner{
public Exe... | true |
269b269f7752fdbd6b0b83f5fc724cb3962e7cd5 | Java | flaviorcsilva/condominio-mobile | /src/br/org/iupi/condominio/helper/DateHelper.java | UTF-8 | 2,322 | 3 | 3 | [] | no_license | package br.org.iupi.condominio.helper;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import android.annotation.SuppressLint;
@SuppressLint("SimpleDateFormat")
public class DateHelper {
private static final SimpleDateFormat dateFormat = new Sim... | true |
7326670b556699dab3019f0f10616ccc264c6350 | Java | ikramaroc/Curah-Android-Provider | /app/src/main/java/com/curahservice/netset/module/history/ReceiptFragment.java | UTF-8 | 2,862 | 1.859375 | 2 | [] | no_license | package com.curahservice.netset.module.history;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.V... | true |
399020eb40b3c28d1bcb566d0328b9e9aad8acb0 | Java | mvs5465/jpo-ode | /jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/oss/OssSupplementalVehicleExtensions.java | UTF-8 | 2,365 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package us.dot.its.jpo.ode.plugin.j2735.oss;
import us.dot.its.jpo.ode.j2735.dsrc.SupplementalVehicleExtensions;
import us.dot.its.jpo.ode.plugin.j2735.J2735RegionalContent;
import us.dot.its.jpo.ode.plugin.j2735.J2735SupplementalVehicleExtensions;
public class OssSupplementalVehicleExtensions {
public static J2... | true |
16e8ae49a9168d51d5945a858c17496075754d44 | Java | Deskbot/SuperXO-AI | /src/xyz/thomasrichards/superxo/test/AgentTest.java | UTF-8 | 702 | 2.890625 | 3 | [] | no_license | package xyz.thomasrichards.superxo.test;
import xyz.thomasrichards.superxo.ai.Agent;
import xyz.thomasrichards.superxo.ai.Agent1Shallow;
import xyz.thomasrichards.superxo.game.Game;
import xyz.thomasrichards.superxo.game.Move;
import xyz.thomasrichards.superxo.game.Player;
class AgentTest {
public static void main(S... | true |
b1fe401eeb444e8f12dc5cd5b9aeb252542dfa73 | Java | FeanorCHY/Leetcode-Practice | /leedcode/src/leedcode/num292.java | UTF-8 | 292 | 2.71875 | 3 | [] | no_license | package leedcode;
import java.util.HashMap;
public class num292 {
public boolean canWinNim(int n) {
if(n%4==0)
return false;
else
return true;
}
public static void main(String[] args) {
num292 sol=new num292();
System.out.println(sol.canWinNim(5));
}
}
| true |
3badbe2edbe81cde0231b265f24af498b1c39fed | Java | taohyson/SERVER-1 | /game-common/src/main/java/com/cai/common/domain/SysGameType.java | UTF-8 | 2,255 | 2.0625 | 2 | [] | no_license | package com.cai.common.domain;
import java.io.Serializable;
public class SysGameType implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int game_type_index;
private String desc;
/**
* 收费索引
*/
private int gold_type;
/**
* 游戏ID
*/
private int gameID;
/... | true |
1b19af17bc1b06dae68ee89ff676d91f4da4d1f7 | Java | sharidatulshahira/week2 | /Exercise33 (2).java | UTF-8 | 584 | 3.09375 | 3 | [] | no_license | /**
*
*/
package tutorial2;
/**
* @author SIsmail
*
*/
import java.util.Scanner;
public class Exercise33 {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
System.out.print("First: ");
int num1 = Integer.parseInt(scan.nextLine());
System.out... | true |
2eb6dd40303c6be5cd5912a5ca01a03210b5a62a | Java | bekondo84/SOURCES | /smsgateway/src/main/java/com/keren/smsgateway/core/ifaces/GroupeContactManager.java | UTF-8 | 468 | 1.664063 | 2 | [] | no_license |
package com.keren.smsgateway.core.ifaces;
import com.bekosoftware.genericmanagerlayer.core.ifaces.GenericManager;
import com.keren.smsgateway.model.GroupeContact;
/**
* Interface etendue par les interfaces locale et remote du manager
* @since Fri Feb 01 09:26:22 WAT 2019
*
*/
public interface Grou... | true |
24dcb0f8152d352afd6bc89c369fcc399ac43435 | Java | prediator/paydock_java_sdk | /javasdk/src/main/java/com/paydock/javasdk/Services/Vault.java | UTF-8 | 2,016 | 2.125 | 2 | [
"MIT"
] | permissive |
package com.paydock.javasdk.Services;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.paydock.javasdk.Models.VaultItemResponse;
import com.paydock.javasdk.Models.VaultItemsResponse;
import com.paydock.javasdk.Models.VaultRequest;
import com.paydock.javasdk.Models.VaultResponse;
import com.... | true |
97b79aa9c34649b82798ab91cba0dad4a89cf4fb | Java | 99Sasitha/Struts2_CRUD | /Struts2Crud/src/java/controller/RegisterController.java | UTF-8 | 2,122 | 2.171875 | 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 controller;
import com.opensymphony.xwork2.ActionSupport;
import dao.RegisterDAO;
import java.util.List;
import model.Register... | true |
da86e3f3b905d380d7d4da9493bdef89111dbf17 | Java | pxuxiongz/unicloud_api_prj | /myMavenProject/src/main/java/openapi/muye/uco/mysql/models/WhiteList/DeleteWhiteListModel.java | UTF-8 | 307 | 1.640625 | 2 | [] | no_license | package openapi.muye.uco.mysql.models.WhiteList;
import lombok.Data;
@Data
public class DeleteWhiteListModel {
private String Action = "DeleteWhiteList";
private String DBInstanceId = "";
private String GroupName = "";
private String Engine = "mysql";
private String RegionId = "";
}
| true |
3ac11fcc442a4c6efe489d5159268d92ad0f1a09 | Java | agnelrayan/java | /RegularEx/RegExQuantifier.java | UTF-8 | 1,010 | 2.625 | 3 | [] | no_license | package com.expertzlab.RegularEx;
import java.util.regex.Pattern;
/**
* Created by geo on 12/9/17.
*/
public class RegExQuantifier {
public static void main(String[] args) {
System.out.println("?Quantifier..........");
// System.out.println(Pattern.matches("[x?]","x"));
// System.out.prin... | true |
8f0d2cce087d49ef5d8a2e9f96b5e284673e90c7 | Java | vladaindjic/PMA-2019 | /app/src/main/java/com/mindorks/framework/mvp/ui/manager/restaurant/promotions/details/ManagerRestaurantPromotionDetailsPresenter.java | UTF-8 | 7,097 | 2.15625 | 2 | [] | no_license | package com.mindorks.framework.mvp.ui.manager.restaurant.promotions.details;
import com.androidnetworking.error.ANError;
import com.mindorks.framework.mvp.data.DataManager;
import com.mindorks.framework.mvp.data.network.model.PromotionDetailsResponse;
import com.mindorks.framework.mvp.data.network.model.RestaurantDeta... | true |
01134f15caec848b8a015e6d74633130754733d7 | Java | LucaTomei/monolith | /JAVA/mws/.svn/pristine/01/01134f15caec848b8a015e6d74633130754733d7.svn-base | UTF-8 | 490 | 2.203125 | 2 | [] | no_license | package com.mws.model;
public class OntologyVersionInfo {
String version;
String description;
String date;
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getDescription() {
return description;
}
public void setDescripti... | true |
df3fdb7424d69fe79216aa3419000d825b0a6519 | Java | Azure/azure-sdk-for-java | /sdk/securitydevops/azure-resourcemanager-securitydevops/src/main/java/com/azure/resourcemanager/securitydevops/implementation/GitHubConnectorImpl.java | UTF-8 | 5,599 | 1.601563 | 2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.securitydevops.implementation;
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
import com.... | true |
e431938db2b857a8887001aa8de379a11ac702f5 | Java | mrlgb/JCCloud-V2 | /app/src/main/java/edu/hfuu/jccloudapp/JC_Tab1.java | UTF-8 | 4,080 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package edu.hfuu.jccloudapp;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputLayout;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
... | true |
a2cefca1a86b3338883b8dd4744361946613762d | Java | YuhanSun/jersey2-spring4-grizzly2 | /src/main/java/edu/asu/mywebapp/domain/UserManagerImpl.java | UTF-8 | 990 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2013-2014 (c) Sepior Aps, all rights reserved. */
package edu.asu.mywebapp.domain;
import java.util.List;
import edu.asu.mywebapp.domain.interfaces.UserManager;
import edu.asu.mywebapp.storage.interfaces.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... | true |
dad63f1dbcf3b45480a5cb2370ee0725bbd96fea | Java | DmitryKropotov/epam_java_core_expirement1 | /codingbat/AP-1/scoresClump/src/com/example/java/Main.java | UTF-8 | 571 | 3.1875 | 3 | [] | no_license | package com.example.java;
public class Main {
public static void main(String[] args) {
// write your code here
int[] a = {1, 2, 100, 3};
System.out.println(scoresClump(a));
}
public static boolean scoresClump(int[] scores) {
final int LENGTH_OF_ARRAY = scores.length;
for(... | true |
31c476f5afd5f642474cf0f9058f15411b6025fc | Java | imanassi/zipkin-storage-forwarder | /module/src/main/java/zipkin2/module/storage/forwarder/ZipkinForwarderStorageModule.java | UTF-8 | 3,127 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-2020 The OpenZipkin 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 applicable law or a... | true |
457f12bf9a806e62722dc47947a3434f53ef91c6 | Java | alirezaazizollahi/my-microservice-version2 | /currency-conversion-service-version2/src/main/java/ir/practice/microservice/currencyconversionserviceversion2/CurrencyConversionServiceVersion2Application.java | UTF-8 | 598 | 1.703125 | 2 | [] | no_license | package ir.practice.microservice.currencyconversionserviceversion2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.PropertySource;
@Spri... | true |
2786f0fbba3277086a4becebcbc63d67e69ea76e | Java | CLARIAH/wp4-links | /src/main/java/iisg/amsterdam/wp4_links/Controller.java | UTF-8 | 11,503 | 2.359375 | 2 | [] | no_license | package iisg.amsterdam.wp4_links;
import java.text.DecimalFormat;
import java.util.Arrays;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import iisg.amsterdam.wp4_links.processes.*;
import iisg.amsterdam.wp4_links.utilities.*;
import static iisg.amsterdam.wp4_links.Properties.... | true |
288fa2ceb1d10564153f5820b94d1545111a41b4 | Java | vadiszzz/Homework | /Task5/RecoursePoolTest.java | UTF-8 | 2,325 | 2.65625 | 3 | [] | no_license | package com.company;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
public class RecoursePoolTest {
@Test
public void testConstructPool() {
ResourcePool<Thread> pool = new ResourcePool<Thread>(new ThreadFactory(), 10, 500);
Assertions.as... | true |
77a1711eeacb41ff3dadfb8a17d3d40fb27ac0be | Java | chasyujang/member-management | /src/main/java/com/chasyu/member/controller/UserController.java | UTF-8 | 1,261 | 2.015625 | 2 | [] | no_license | package com.chasyu.member.controller;
import com.chasyu.member.model.UserVo;
import com.chasyu.member.service.DeleteService;
import com.chasyu.member.service.UpdateService;
import com.chasyu.member.service.UserService;
import com.chasyu.member.service.UserService2;
import org.apache.ibatis.annotations.Update;
import o... | true |
436120bc546a3e93153c5c10182aabe3da9f2750 | Java | defunct/addendum | /src/main/java/com/goodworkalan/addendum/Patch.java | UTF-8 | 2,861 | 2.984375 | 3 | [
"MIT"
] | permissive | package com.goodworkalan.addendum;
import static com.goodworkalan.addendum.Addendum.ADDENDUM_ENTITY_MISSING;
import static com.goodworkalan.addendum.Addendum.ADDENDUM_TABLE_MISSING;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.goodworkalan.danger.Danger;
/**
* A set of updates ... | true |
1f07142ec1f3c287fa20a4e6de9ef04d170cc7e1 | Java | Jisu-Lee/MusicPlayer | /src/main/java/model/Path.java | UTF-8 | 550 | 2.59375 | 3 | [
"MIT"
] | permissive | package model;
import org.apache.commons.io.FilenameUtils;
public class Path {
private String fullPath;
public Path(String fullPath) {
this.fullPath = fullPath;
}
public String getFullPath() {
return fullPath;
}
public String getBaseFileName() {
return FilenameUtils.... | true |
5137ba22f0c2d3391c64b144a8b370d3d888c78d | Java | grzechu31/vehicles | /src/vehicles/Amphibia.java | UTF-8 | 151 | 2.109375 | 2 | [] | no_license | package vehicles;
public class Amphibia extends Vehicle {
Amphibia(){
air = false;
water = true;
ground = true;
}
}
| true |
d65fc0ad373a084f0eca4f9a9364cdc14071f418 | Java | kholishulaziz/theaterproject | /src/main/java/com/project/theater/account/AccountService.java | UTF-8 | 1,508 | 2.40625 | 2 | [] | no_license | package com.project.theater.account;
import java.util.Date;
import java.util.NoSuchElementException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.securit... | true |
315b4aed7a981fbcf5156ac0e461638f27ae1a1a | Java | 1702-Feb27-Java/ClassExamples | /Week6/Examples/HouseHasAWall/src/main/java/com/revature/beans/FlimbsyWall.java | UTF-8 | 641 | 2.625 | 3 | [] | no_license | package com.revature.beans;
import org.springframework.stereotype.Component;
@Component
public class FlimbsyWall implements Wall {
String material = "cards";
@Override
public String getMaterial() {
// TODO Auto-generated method stub
return "Oh No, my house has fallen down";
}
@Override
public void setMa... | true |
03bcd3cbc60cc78f9c373df124697992400c5630 | Java | NPailoor/Xia | /Border.java | UTF-8 | 2,103 | 3.390625 | 3 | [] | no_license | import java.util.*;
public class Border {
Hex[] spaces;
List<Tile> tileStack; // Implemented as a list since it will change in the discover method
int index1; //Index identifying its side in its original Tile
int index2; //Index identifying its side in successive Tiles
int index3; //Index identifying it... | true |
19c94e9267949f4e0c81f8f61ece969816879ea8 | Java | cxzhao/blog | /blog/src/main/java/com/blog/controller/TagController.java | UTF-8 | 991 | 2.203125 | 2 | [] | no_license | package com.blog.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.blo... | true |
309a546a3cb7372b63e29f034b50f4846497a702 | Java | hdhdsu/MyApp | /app/src/main/java/com/xinguang/myapp/MyAppApplication.java | UTF-8 | 1,802 | 2.484375 | 2 | [] | no_license | package com.xinguang.myapp;
import android.app.Activity;
import android.app.Application;
import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiscCache;
import com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com... | true |
fe697bb9112909144d635b5f70fc8aa257fee87d | Java | Rui-Jesus/tqs-gohouse | /tqs-gohouse/src/main/java/dbclasses/GeneralEntity.java | UTF-8 | 2,996 | 2.515625 | 3 | [] | no_license | package dbclasses;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.Inher... | true |
8360388068e6ad784fcc4079869bb0552bb3457e | Java | 0chen1D/JavaLearning | /src/com/zhangchi/tank/ResoureMgr.java | UTF-8 | 2,922 | 2.84375 | 3 | [] | no_license | package com.zhangchi.tank;
//静态资源加载
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
public class ResoureMgr {
public static BufferedImage goodtankL = null;
public static BufferedImage goodtankR = null;
public static BufferedImage goodtankU = null;
pub... | true |
1720aab0428155e48f77585f522ce288cdb426f1 | Java | goldenEAGL3/SoftUni | /Hibernate And Spring Data/XML Processing/Cars dealer/src/main/java/goldeneagle/carsdealer/service/interfaces/CustomerService.java | UTF-8 | 577 | 1.953125 | 2 | [] | no_license | package goldeneagle.carsdealer.service.interfaces;
import goldeneagle.carsdealer.domain.dto.queryDTOs.query1.OrderedCustomersModelViewWrapper;
import goldeneagle.carsdealer.domain.dto.queryDTOs.query5.CustomersTotalSalesModelViewWrapper;
import goldeneagle.carsdealer.domain.dto.seedDTOs.CustomerSeedDTOWrapper;
public... | true |
89f39387c8f5776be2b433152609b5c2746f7307 | Java | SubhasmitaBehera/java-practice | /src/thread/PriorityThread.java | UTF-8 | 543 | 3.515625 | 4 | [] | no_license | package thread;
public class PriorityThread extends Thread{
public void run(){
System.out.println(Thread.currentThread().getName() +" Running...");
}
public static void main(String[] args) {
PriorityThread m1 = new PriorityThread();
PriorityThread m2 = new PriorityThread();
... | true |
593dbff60923976b6a4e5198963abe9f5654d97b | Java | icaropires/distributed-systems-and-parallel-computing | /lab_3_rmi/java/Operation.java | UTF-8 | 356 | 2.140625 | 2 | [
"MIT"
] | permissive | import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Operation extends Remote {
public void set_operands(int a, int b) throws RemoteException;
public int sum() throws RemoteException;
public int sub() throws RemoteException;
public int div() throws RemoteException;
public i... | true |
7fd849cdad18ee20c207d2fbc55ace5afabe2581 | Java | Mikhail-BG/study-selenium-testing | /src/test/java/test/com/herokuapp/the/internet/test/AddRemoveElementPageTest.java | UTF-8 | 1,980 | 2.265625 | 2 | [] | no_license | package test.com.herokuapp.the.internet.test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import test.com.herokuapp.the.internet.config.webdriver.WebDriverManager;
import test.com.herokuapp.the.internet.page.herokuapp.AddRemoveElementsPage;
public class AddRemoveElementPageTest ex... | true |
c8322bc30ea3e3d7921f336f7e65f9fe669ef420 | Java | zhongxingyu/Seer | /Diff-Raw-Data/30/30_81caa3ba026fbdd88e0528ca129615b9ec5b9508/TowerTypeInfo/30_81caa3ba026fbdd88e0528ca129615b9ec5b9508_TowerTypeInfo_s.java | UTF-8 | 1,841 | 2.28125 | 2 | [] | no_license | package com.xkings.pokemontd.graphics.ui;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.Rectangle;
import com.xkings.pokemontd.component.attack.AbilityComponent;
import com.... | true |
0f5fc670a00299d5268605bc591e75331a401466 | Java | Jahia/jahia | /core/src/main/java/org/jahia/services/channels/ChannelService.java | UTF-8 | 5,310 | 2.171875 | 2 | [] | no_license | /*
* ==========================================================================================
* = JAHIA'S DUAL LICENSING - IMPORTANT INFORMATION =
* ==========================================================================================
*
* ... | true |
55d27146f6d90fe6212ef16a6ed3b7e4ad23e26f | Java | wanghongliang0711/Java_EIS | /eis/eis-system/src/main/java/com/mic/eis/service/impl/ProtPilotRunReportQueryRecordServiceImpl.java | UTF-8 | 2,128 | 2.140625 | 2 | [] | no_license | package com.mic.eis.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mic.eis.domain.model.ProtPilotRunReportQueryRecord;
import com.mic.eis.domain.vo.ProtPilotRunReportVo;
import com.mic.eis.mapper.ProtPilotRunReportQueryRecordMapper;
import com.mic.eis.service.ProtPilotRunR... | true |
e6fc233f685c79742ff6fe96fbf748dc0f63b3ab | Java | peckapp/android | /peck/src/main/java/com/peck/android/models/Subscription.java | UTF-8 | 878 | 2.171875 | 2 | [] | no_license | package com.peck.android.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.peck.android.annotations.DBType;
import com.peck.android.annotations.Header;
import com.peck.android.annotations.UriPath;
/**
* Created by mammothbane on 7/28/2014.
*/
@Header(pl... | true |
09c31954280c922ddc329cd68006c4023bd71cad | Java | AazamJutt/TermAnalysis | /src/FrequencyCounter.java | UTF-8 | 1,995 | 3.46875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.*;
//This is Part-B of the Task
public class FrequencyCounter {
static void print_N_MostFrequentTermsToFile(String filename,
List<String> terms,
... | true |
40bcaccdaba36ea1457a15bb1bfdd75f1cc2b6a6 | Java | tangtaitao/hitao_colud | /hitao_system/src/main/java/com/hzitxx/hitao/controller/shopgoods/ShopGoodsController.java | UTF-8 | 2,566 | 2.140625 | 2 | [] | no_license | package com.hzitxx.hitao.controller.shopgoods;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
* ShopGoods控制层
* @author wujun
*
*/
import org.springframework.web.bind.annotation.GetMapp... | true |
28dac0ea9ab80d06bd41e3272b203ef3fd8ec13b | Java | TheDarkX/Personal-Account-Manager | /src/Diary.java | UTF-8 | 1,026 | 2.953125 | 3 | [] | no_license | public class Diary extends Account
{
private String $Note;
private String $Date;
private String $Weather;
private String $Day;
public Diary()
{
super();
$Note = "";
$Date = "";
$Weather = "";
$Day = "";
}
public Diary(String n, String date, String... | true |
4fa1cca239233571b9cc77e9cb0462e0f8383a03 | Java | Katjuszka/Patronage2019 | /src/test/java/com/Intive/Patronage/tests/pages/RegisterFormPage.java | UTF-8 | 4,103 | 2.03125 | 2 | [] | no_license | package com.Intive.Patronage.tests.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.openqa.selenium.support.ui.Select;
public clas... | true |
623070b5eb1b01388fb728e0352bb2123a58ad7f | Java | DmitryPro/Splat-system | /Server/src/main/java/com/splat/server/ProvidersHolder.java | UTF-8 | 1,216 | 2.90625 | 3 | [] | no_license | package com.splat.server;
import org.apache.log4j.Logger;
import java.util.ArrayList;
/**
* This class contains all providers. Runs in a single thread. Initiate connections between server and providers.
*
* @author Pavel Gordon
*/
class ProvidersHolder implements Runnable
{
private static Logger logger = Lo... | true |
09ebc13f8fecde14fd88b1dd865814f8a92a8e89 | Java | sirinath/Terracotta | /dso/tags/4.1.3/toolkit-express-impl/src/main/java/com/terracotta/toolkit/express/Util.java | UTF-8 | 444 | 2.0625 | 2 | [] | no_license | /*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.terracotta.toolkit.express;
class Util {
private Util() {
//
}
static <T> T getImplInstance(String type) {
try {
return (T) Class.forName(type).newInstance();
} catch (Exception e) ... | true |
2980b8549ff8d6a85cbf579d152ec519231f82b9 | Java | qiaobenlaing/coupon | /Android/HuiQuan_Local/andr_b/src/main/java/com/huift/hfq/shop/adapter/ChooseShopListAdapter.java | UTF-8 | 1,398 | 2.234375 | 2 | [] | no_license | package com.huift.hfq.shop.adapter;
import java.util.List;
import com.huift.hfq.base.pojo.StaffShop;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.huift.hfq.shop.R;
/**
* 门店列表
* @author qian.zh... | true |
fe627b00ffa034455ac665c354d76761a5d8e5f6 | Java | JULIELab/jcore-dependencies | /jcore-mallet-0.4/src/main/java/edu/umass/cs/mallet/projects/seg_plus_coref/condclust/pipe/ClosestSingleLink.java | UTF-8 | 3,400 | 2.21875 | 2 | [
"BSD-2-Clause",
"CPL-1.0"
] | permissive | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | true |
2a237d5d7cb894a028a840a9da39ae751452de79 | Java | dhruvjain/TMS | /Time_Management_Software/server/src/tms/MyClob.java | UTF-8 | 1,064 | 2.5625 | 3 | [] | no_license | package tms;
import java.sql.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import com.thoughtworks.xstream.XStream;
public class MyClob {
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
/*GregorianCalendar cal = new GregorianCalendar();
int dayi... | true |
4d8ba24798de64be2709cdbe4d2d575a561d4e8e | Java | PokePong/Game | /Game/src/poke/core/gl/config/NoCullFace.java | UTF-8 | 438 | 2.140625 | 2 | [] | no_license | package poke.core.gl.config;
import static org.lwjgl.opengl.GL11.*;
import poke.core.engine.renderer.RenderConfig;
public class NoCullFace implements RenderConfig {
@Override
public void enable() {
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glDisable(GL_CULL_FACE);
}
@Override
public void d... | true |
104fa7fa7154b602dbbf185d216c59c64f6bd85e | Java | ibrahimgit/ir-springboot-poc | /src/main/java/com/ir/learning/springbootpoc/jwt/JwtTokenManager.java | UTF-8 | 2,089 | 2.4375 | 2 | [] | no_license | package com.ir.learning.springbootpoc.jwt;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.authentication.UsernamePasswordAuthenti... | true |
ddfe0a1b131daa8965c072c82cbae478ee2ecee2 | Java | 63a16d97ea4816a7f854483da5031469/Data-Structure | /LetOJ/MinStack.java | UTF-8 | 4,440 | 3.953125 | 4 | [] | no_license | package ok;
//Min Stack
//https://leetcode.com/problems/min-stack/
/*
*
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.
pop() -- Removes the element on top of the stack.
top() -- Get the top element.
getMin() -- Retrieve th... | true |
5c14eb9e0f2a449d4a5eec9f1ea944783cf5bc7f | Java | ctrl-JNTM/effective-java-demo | /src/com/jntm/a_创建和销毁对象/避免创建不必要的对象/Main.java | UTF-8 | 1,253 | 3.453125 | 3 | [] | no_license | package com.jntm.a_创建和销毁对象.避免创建不必要的对象;
import java.util.regex.Pattern;
public class Main {
private static final Pattern EMAIL_PATTERN = Pattern.compile("\\w[-\\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\\.)+[A-Za-z]{2,14}");
//🌟2
//要求性能场景下,不建议
public boolean checkEmailFlase(String email) {
return email... | true |
5038407bc1d9595dc5cac067689fe20a73818e21 | Java | MonetChain-Project/MonetBlockchain_Android | /setting/MyProfileUI.java | UTF-8 | 16,609 | 1.5625 | 2 | [
"MIT"
] | permissive | package com.lingtuan.firefly.setting;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.datab... | true |
6d818f8119c00fb241df86c0ed2d156b538a67ab | Java | natf3/Library_management | /src/main/java/com/example/library/user/UserController.java | UTF-8 | 907 | 2.359375 | 2 | [] | no_license | package com.example.library.user;
import com.example.library.book.Book;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping(path = "users")
public class UserController {
private final UserService userService;
public UserController(UserService userService... | true |
55533ca7dea965282cb22da19fdc420316ac98ec | Java | isa-twospirit/KittysLilHelpers | /KittysLilHelpers/src/com/github/isatwospirit/kittyslilhelpers/util/Utils.java | WINDOWS-1252 | 12,791 | 1.75 | 2 | [] | no_license | package com.github.isatwospirit.kittyslilhelpers.util;
import java.io.File;
import java.lang.reflect.Method;
import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.SandstoneType;
import org.bukkit.block.BlockState;
... | true |
26eee2abd6946aff255d66cbc12931e85472ba9b | Java | VCorrales-Carvajal/code-cadet-game | /src/org/academiadecodigo/bootcamp/codecadetgame/server/gamelogic/Player.java | UTF-8 | 1,010 | 2.546875 | 3 | [] | no_license | package org.academiadecodigo.bootcamp.codecadetgame.server.gamelogic;
import org.academiadecodigo.bootcamp.codecadetgame.server.gamelogic.enums.LifeArea;
/**
* Created by ToAlmeida, joaobonifacio, MicaelCruz and VCorrales-Carvajal on 2/18/17.
*/
public class Player {
private String username;
private int gl... | true |
e50f0584459a69e589bfa80791b557844f6c3c58 | Java | ZSCDumin/MesApp | /app/src/main/java/com/msw/mesapp/activity/home/quality/TestRelease2DetailedActivity.java | UTF-8 | 9,784 | 1.617188 | 2 | [] | no_license | package com.msw.mesapp.activity.home.quality;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.Lin... | true |
3e97da1231a36ed601fdc6529b94772b15a4aee6 | Java | githubmpk/REPL_RetailAPI | /src/main/java/com/retailservice/retailserviceapi/repository/RetailRepository.java | UTF-8 | 328 | 1.640625 | 2 | [] | no_license | package com.retailservice.retailserviceapi.repository;
import com.retailservice.retailserviceapi.model.RetailData;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RetailRepository extends JpaRepository<RetailData, String> {... | true |
29600d2b5f38bea46b7844ca5f39c04d73e2eb7b | Java | SVVladimir/NearbyEarthquakes | /src/main/java/com/svvladimir/earthquakes/client/USGSEarthquakeClientCache.java | UTF-8 | 2,232 | 2.28125 | 2 | [] | no_license | package com.svvladimir.earthquakes.client;
import com.svvladimir.earthquakes.dto.EarthquakeCollection;
import com.svvladimir.earthquakes.util.PropertiesHandler;
import org.apache.logging.log4j.Logger;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import static jav... | true |
b690c656bdff1b077724ece14eac74b2cc335b82 | Java | priyankas30/core-Java-Assignments | /Assignment 3/Q26.java | UTF-8 | 590 | 3.375 | 3 | [] | no_license | /* 26. Create an array of 17 elements in 5 rows. And calculate sum of all elements.*/
//import java .util.Scanner;
class Q17
{
public static void main(String...p)
{
int a[]={1,2,3};
int b[]={4,5,6};
int c[]={7,8,9};
int d[]={10,11,12,13};
int e[]={14,15,1,6,17};
int sum=0;
int arr[]... | true |
1120e811427be8bcdaae7549a964b06e7530ff8c | Java | supercjy009/OAWeb | /src/main/java/demo/util/EntityUtil.java | UTF-8 | 2,037 | 2.984375 | 3 | [] | no_license | package demo.util;
import demo.model.OrderEntity;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class EntityUtil {
public static List<String> compareEntity(Object entity1, Object entity2) thro... | true |
d4591f433ee52f872eb6540f119e6e28499a7583 | Java | jhonnycamargo/Algorithms | /TAOCP/basics/src/test/java/basics/EuclidsAlgorithmTest.java | UTF-8 | 2,495 | 2.859375 | 3 | [] | no_license | package basics;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
public class EuclidsAlgorithmTest {
@DisplayName("Euclid's Algorithm test")
@Test
void testEuclids... | true |
6e4697f15d5ac8a1610e37542e8ba4ddeb037c25 | Java | PacktPublishing/Java-Coding-Problems | /Chapter12/P227_GetAndMissingValue/src/modern/challenge/Main.java | UTF-8 | 567 | 3.6875 | 4 | [
"MIT"
] | permissive | package modern.challenge;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
// Avoid
Optional<Book> book1 = Optional.empty();
Book theBook1 = book1.get(); // causes java.util.NoSuchElementException: No value present
// Prefer
Optiona... | true |
99bc137743f0f166c10e7b6d43f79301187ee719 | Java | ichisadashioko/oss.FCL.sf.app.JRT | /javauis/m2g_qt/javasrc/com/nokia/microedition/m2g/M2GSVGElement.java | UTF-8 | 49,179 | 2.15625 | 2 | [] | no_license | /*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-... | true |
680d7911d40995594f5b19f542fa02c90e87c5de | Java | yashg4509/gupta_yash_apcsa-2021 | /.history/src/unit5/VowelsRunner_20210210113537.java | UTF-8 | 744 | 2.984375 | 3 | [] | no_license | package unit5;
public class VowelsRunner {
public static void main(String args[]) {
FirstLastVowel s = new FirstLastVowel();
System.out.println(s.go("dog#cat#pigaplus"));
System.out.println(s.go("pigs#apluscompsci#food"));
System.out.println(s.go("##catgiraffeapluscompsci"));
System.out.println(s.go("aplus... | true |
1bdddc8a19173f5c7864ebb23716b259040ff180 | Java | Mxas/debts | /src/test/java/eu/fourFinance/BaseTest.java | UTF-8 | 936 | 1.914063 | 2 | [] | no_license | package eu.fourFinance;
import javax.annotation.Resource;
import javax.sql.DataSource;
import org.junit.BeforeClass;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.trans... | true |
99cd32105fd5a401d2838fa3ed2471c05452fb19 | Java | saber13812002/DeepCRM | /Code Snippet Repository/Hibernate/Hibernate5655.java | UTF-8 | 514 | 2.296875 | 2 | [] | no_license | @Test
public void testSumOfBigDecimals() {
EntityManager em = getOrCreateEntityManager();
em.getTransaction().begin();
CriteriaQuery<BigDecimal> criteria = builder.createQuery( BigDecimal.class );
Root<Product> productRoot = criteria.from( Product.class );
criteria.select( builder.sum( productRoot.get( Prod... | true |
0e91ce81c3e99162e19445c0c3e4777e2f24ca55 | Java | llnw/Orchestrate-Video-Android-SDK | /LimelightVideoSDK/src/com/limelight/videosdk/LogConfigurator.java | UTF-8 | 8,797 | 2.359375 | 2 | [] | no_license | /*
Copyright 2011 Rolf Kulemann, Pascal Bockhorn
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | true |
9a2bab3dd1c738063a5cada9933fe6352cf5122a | Java | josetesan/thymeleaf-boot | /src/main/java/es/ventura24/demo/web/bet/Bet.java | UTF-8 | 1,585 | 2.796875 | 3 | [] | no_license | package es.ventura24.demo.web.bet;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;
/**
* Created by jsanc on 28/08/15.
*/
public class Bet implements Serializable{
private Long id;
private String product;
private BigDecimal amount;
public Bet(Long id, String pro... | true |
b0eea8cd4772bec23ddee6d9b3f07ad986e2d6b1 | Java | rgbkrk/Jumpin | /Utilities/LevelEditor.java | UTF-8 | 6,386 | 2.734375 | 3 | [] | no_license | package Utilities;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Scanner;
import javax.swing.*;
public class LevelEditor extends JFrame implements MouseListener
{
JButton[] levelButtons = new JButton[Level.gridSize * Level.gridSize];
Level level = new Le... | true |
f971ab902122e716da830b8ad4fe48adcc9e69c5 | Java | samrastovich/cpe349-lab5 | /DiGraph.java | UTF-8 | 5,068 | 3.28125 | 3 | [] | no_license | import java.util.LinkedList;
public class DiGraph {
private LinkedList<Integer>[] graph;
public DiGraph(int n) { //Constructor
graph = new LinkedList[n];
for (int i = 0; i < graph.length; i++) {
graph[i] = new LinkedList<Integer>();
}
}
public void addEdge(int from, int t... | true |
a49f986400425c09b04c39cfa3b8fbf483d7260f | Java | vivek0766/JavaPrograms | /JavaPrograms/src/main/java/com/csrk/collections/TreeSetApp.java | UTF-8 | 193 | 2.15625 | 2 | [] | no_license | package com.csrk.collections;
public class TreeSetApp {
public static void main(String[] args) {
TreeSetExample treeSetexample = new TreeSetExample();
treeSetexample.stringSet();
}
}
| true |
5aa1dddfa1a50d5b598b7e4bbc3f68f2a3db074f | Java | jburton0297/Elite4 | /src/main/java/elite4/SkillBuckets.java | UTF-8 | 1,827 | 3.265625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
/**
* The purpose of this class is to take a broad group of words related to jobs and skills cluster them into specific groups or fields.
* @author jacob
*
*/
public class SkillBuckets {
// NOTE: Set window size very large f... | true |
f321f4aa7e4c2876c33159f4aeeb15b821692ad8 | Java | roberjglez/backend-bank-transactions | /src/main/java/com/rjglez/backend/bank/transactions/domain/port/repository/TransactionRepository.java | UTF-8 | 338 | 2 | 2 | [] | no_license | package com.rjglez.backend.bank.transactions.domain.port.repository;
import com.rjglez.backend.bank.transactions.domain.model.TransactionEntity;
import java.util.List;
import java.util.Optional;
public interface TransactionRepository {
List<TransactionEntity> findAll();
Optional<TransactionEntity> find(Str... | true |
ad0d2576c87a85f306b84f43590962cf459bd76f | Java | hikarivanish/MyAzbfq | /app/src/main/java/me/s4h/myazbfq/VideoListAdapter.java | UTF-8 | 1,541 | 2.453125 | 2 | [] | no_license | package me.s4h.myazbfq;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import butterknife.Bind;
import butterknife.ButterKnife;
/**
* Created by wang on 10/14/2015.
*/
p... | true |
c9120c4ee1b15bfabc6566e7c9ea82df0ef14742 | Java | zCRUSADERz/AlexanderYakovlev | /minesweeper/src/main/java/ru/job4j/utils/MapOf.java | UTF-8 | 719 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.utils;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* MapOf.
*
* @author Alexander Yakovlev (sanyakovlev@yandex.ru)
* @since 02.03.2019
*/
public class MapOf<K, V> {
private final Collection<Map.Entry<K, V>> entries;
@SafeVara... | true |
cebabc9dfee6f9b16125efbc53c5780ef117a6a5 | Java | aheizenreder/pac-ressys | /pac-ressys-ejb/pac-ressys-ejb-intf/src/main/java/com/prodyna/pac/ressys/pac/ressys/service/MemberRegistration.java | UTF-8 | 258 | 1.742188 | 2 | [] | no_license | /**
*
*/
package com.prodyna.pac.ressys.pac.ressys.service;
import com.prodyna.pac.ressys.pac.ressys.model.Member;
/**
* @author Andreas Heizenreder (PRODYNA AG)
*
*/
public interface MemberRegistration {
public void register(Member member) throws Exception;
}
| true |
63543e54c308c2291ffaf190c9b34f7504de8333 | Java | kamalbctg/algorithom-in-java | /src/main/java/org/algorithom/BalancedBrackets/Solution.java | UTF-8 | 1,092 | 3.421875 | 3 | [] | no_license | package org.algorithom.BalancedBrackets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Solution {
public static boolean balancedBrackets(String str) {
String openings = "({[";
String closings = "]})";
Map<Character, Characte... | true |
f47dc147c24cb4b5ad9e272defea36ec936d981b | Java | nicmaster/Spring-Cloud | /rest-source/src/main/java/com/nicmaster/troll/source/file/web/rest/MessageController.java | UTF-8 | 1,262 | 2.21875 | 2 | [] | no_license | package com.nicmaster.troll.source.file.web.rest;
import com.nicmaster.troll.domain.Message;
import com.nicmaster.troll.source.file.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestBo... | true |
b8dff1058610a8f92ca79653c2d9927efe038812 | Java | bambozoekel/adventofcode2018 | /src/main/java/moerk/day4/EventParser.java | UTF-8 | 1,225 | 2.96875 | 3 | [] | no_license | package moerk.day4;
import moerk.Util;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
/**
* @author matthias
*/
public class EventParser {
private static final Pat... | true |
b8c131cf8833547840785c9826debe603115c8de | Java | IssacYoung2013/daily | /01_mybatis_implement/src/main/java/com/issac/mybatis/TestMain.java | UTF-8 | 611 | 2.140625 | 2 | [] | no_license | package com.issac.mybatis;
import com.issac.mybatis.bean.Dept;
import com.issac.mybatis.util.DefaultSqlSession;
import com.issac.mybatis.util.SqlSession;
import com.issac.mybatis.util.SqlSessionFactory;
/**
*
*
* @author: ywy
* @date: 2019-10-21
* @desc:
*/
public class TestMain {
public static void main(St... | true |
ffda41c9186fd6a4307e2296aa1095d645c536e6 | Java | leorazo/java | /tipos_de_variables/src/tipos_de_variables/Tipos_de_variables.java | UTF-8 | 1,481 | 3.53125 | 4 | [] | no_license |
package tipos_de_variables;
public class Tipos_de_variables {
public static void main(String[] args) {
// TODO code application logic here
byte entero = 12 ; //valor de -128 a 127
short numerocorto = 5222 ; //valor de -32768 a32767
int numeromedio = 44751 ; //valor de -2... | true |
3b3b753c6fed8f3a05e664b4148fbf969d4b7246 | Java | duanzx/springaop | /src/test/java/cn/tutorial/initialize/reflect/ClassTest.java | UTF-8 | 1,818 | 3.0625 | 3 | [] | no_license | package cn.tutorial.initialize.reflect;
import org.junit.Test;
import org.springframework.util.Assert;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
/*
*
* */
public class ClassTest {
public String password;
private String name;
public String getName() {
return name;... | true |
0fd61f741e29b442853bc3fef882a118cbd5f30f | Java | kingking888/androidmodifycontainer | /app/src/main/java/com/gc/home/models/AppInfoLite.java | UTF-8 | 1,492 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.gc.home.models;
import android.os.Parcel;
import android.os.Parcelable;
/**
* @author Lody
*/
public class AppInfoLite implements Parcelable {
public static final Creator<AppInfoLite> CREATOR = new Creator<AppInfoLite>() {
@Override
public AppInfoLite createFromParcel(Parcel source... | true |
4bc792452ebbb861c4922cc56d30b7a5c574a87b | Java | jym66/StudentManageSystem | /src/main/java/com/example/StudentManageSystem/Dao/TeacherDao.java | UTF-8 | 915 | 2.0625 | 2 | [] | no_license | package com.example.StudentManageSystem.Dao;
import com.example.StudentManageSystem.pojo.StudentInfo;
import com.example.StudentManageSystem.pojo.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query... | true |
8be3fdc74749e6fc384020d99b9db839d28cd37c | Java | ShaliniMNarang/CloudTechnologies | /fileUploadProject/src/main/java/com/themodestwhite/uploaddownloadfile/entity/FileDetails.java | UTF-8 | 2,042 | 2.21875 | 2 | [] | no_license | package com.themodestwhite.uploaddownloadfile.entity;
import java.sql.Timestamp;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.themodestwhite.uploaddownloadfile.utils.*;
public class FileDetails {
private String fileName;
private String keyName;
... | true |
f2891a2e98251b1966a69ef654ebc5f60316112f | Java | yunkai-zhang/BUPT | /small_projects_when_learning_java_backend/Mybatis-Study/mybatis-09/src/test/java/UserMapperTest.java | UTF-8 | 1,585 | 2.40625 | 2 | [] | no_license | import com.zhangyk.dao.UserMapper;
import com.zhangyk.pojo.User;
import com.zhangyk.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import java.util.List;
public class UserMapperTest {
@Test
public void queryUserByIdTest(){
SqlSession sqlSession = MybatisUtils.g... | true |
599b1b50f6d05a3aa286c6ce7196ef51aa98c59d | Java | blurock/WebApp | /WebApp/src/info/esblurock/reaction/client/panel/query/strings/StringQueryResult.java | UTF-8 | 2,646 | 1.9375 | 2 | [] | no_license | package info.esblurock.reaction.client.panel.query.strings;
import java.util.HashSet;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler... | true |
0322e2312f1c099a14e02952bc4e5466a6127f7b | Java | ncl-teu/ncl_ccnsim | /src/net/gripps/ccn/fibrouting/nlsr/NLSRRouting.java | UTF-8 | 1,179 | 2.140625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package net.gripps.ccn.fibrouting.nlsr;
import net.gripps.ccn.core.CCNNode;
import net.gripps.ccn.core.CCNRouter;
import net.gripps.ccn.core.Face;
import net.gripps.ccn.core.InterestPacket;
import net.gripps.ccn.fibrouting.BaseRouting;
import java.util.HashMap;
public class NLSRRouting extends BaseRouting ... | true |
f00254093a7cfc0eda5a20440620c08441540894 | Java | ZhanXiaoFeng/MyProject | /MyEclipseProject/20180718/src/com/zrf/ex/nozzle/PersonConsts.java | GB18030 | 399 | 3 | 3 | [] | no_license | package com.zrf.ex.nozzle;
/*
* PersonConsts()ӿ
*/
public interface PersonConsts {
int NUMBER = 2;// һ
// ȼpublic static final int NUMBER=2;
String add(String contents);
// ȼpublic abstract String add(String contents);
/*
* java8+ ³ֵĬϷ
*/
default String say(String contents) {
return con... | true |
c04030d1c010118356e5bfe1d4d50f8bac4a323c | Java | avrilthecoder/SeleniumPOP | /src/main/java/com/seleniumoverflow/SelPop/SeleniumHQ.java | UTF-8 | 1,072 | 2.40625 | 2 | [] | no_license | package com.seleniumoverflow.SelPop;
import org.apache.commons.codec.binary.StringUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class SeleniumHQ {
private WebDriver driver;
public SeleniumHQ(WebDriver driver) {
this.driver = driver;
String baseUrl = "http://www.seleniumhq.... | true |
71501866fc9c10efd2b2de42ee3a0b92768cd9ec | Java | RamJet85/Java | /src/AssertionDemo/AssertionScripts.java | UTF-8 | 263 | 2 | 2 | [] | no_license | package AssertionDemo;
import org.testng.Assert;
import org.testng.annotations.Test;
public class AssertionScripts {
@Test
public void assertion()
{
Assert.assertEquals("Ram", "Krishna","The actual & expected result does not match");
}
}
| true |
bb89debf1f80123002d2bfe8a85382baa2d14186 | Java | airbust/untitled1 | /src/com/craftinginterpreters/lox/Expr.java | UTF-8 | 1,590 | 2.8125 | 3 | [] | no_license | package com.craftinginterpreters.lox;
import static com.craftinginterpreters.lox.TokenType.*;
abstract class Expr {
Type valType;
Object val;
static class Assign extends Expr {
Assign(Type valtype) {
this.valType = Type.VOID;
}
}
static class Binary extends Expr {
Binary(Expr left, Token ... | true |
7076d959325fb46f7c5faccc80d3b5ce067fd754 | Java | ahmedalghareeb/ProductDrawerProject | /app/src/main/java/model/Product.java | UTF-8 | 1,014 | 2.921875 | 3 | [] | no_license | package model;
import java.io.Serializable;
public class Product implements Serializable {
private String productimage;
private String productName;
private float cost;
private int fees;
public Product(String productimage, String productName, float cost, int fees) {
this.productimage = pr... | true |
46fa83f7084d49348f919dd9d28b22f7cf4e3d58 | Java | vmironovich/submit6622 | /src/com/niner/bibliophile_6622_wa.java | UTF-8 | 3,088 | 2.578125 | 3 | [] | no_license | package com.niner;
import java.util.*;
import java.math.*;
import java.io.*;
import java.text.*;
public class bibliophile_6622_wa implements Runnable {
final String taskname = "bibliophile";
public bibliophile_6622_wa(int mod) {
this.mod = mod;
}
int mod = 2239;
void solve() throws ... | true |
dcf8928620c5446525f2cfe775ba6e2f41123232 | Java | nemo-ufes/ontoumlprime | /br.ufes.inf.nemo.ontouml.ontoumlprime/src-gen/br/ufes/inf/nemo/ontouml/PrimeOntoUML/impl/PhaseImpl.java | UTF-8 | 785 | 1.578125 | 2 | [] | no_license | /**
*/
package br.ufes.inf.nemo.ontouml.PrimeOntoUML.impl;
import br.ufes.inf.nemo.ontouml.PrimeOntoUML.Phase;
import br.ufes.inf.nemo.ontouml.PrimeOntoUML.PrimeOntoUMLPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Phase</b></em>'.
* <!... | true |
734f9a0debb420902abcd0b16f94bc3af1ff9248 | Java | ltadiko/GammaProductManager | /src/main/java/nl/intergamma/util/JsonConverterUtil.java | UTF-8 | 1,567 | 3.109375 | 3 | [] | no_license | package nl.intergamma.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
/**
* JsonConverterUtil helps to convert object to JSON string
*/
public final class JsonConverterUtil {
private JsonConverterUtil() {
}
... | true |