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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6b7b12c0f9520127d62ab296419ac301c1e487f3 | Java | ihmcrobotics/ihmc-yovariables | /src/main/java/us/ihmc/yoVariables/buffer/interfaces/KeyPointsHolder.java | UTF-8 | 1,649 | 2.328125 | 2 | [] | no_license | /*
* Copyright 2020 Florida Institute for Human and Machine Cognition (IHMC)
*
* 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
*
* Un... | true |
78421e7573a78b07a8dc0f949244409c0ba1e19a | Java | SlimCharles95/F1AppClient | /src/forme/TimoviForma.java | UTF-8 | 14,808 | 2.0625 | 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 forme;
import domen.Nalog;
import java.io.IOException;
import java.net.Socket;
import java.util.logging.Level;
import java.uti... | true |
ece90748947790cc9a0d644337c58af6290659e5 | Java | Teketel/android_beTetminalBicha | /src/androidTest/java/com/teke/hellogradle/tests/MathsTest.java | UTF-8 | 560 | 2.546875 | 3 | [] | no_license |
package com.teke.hellogradle.tests;
import android.test.AndroidTestCase;
import com.teke.hellogradle.Maths;
public class MathsTest extends AndroidTestCase {
private Maths mMaths;
@Override
public void setUp() throws Exception {
super.setUp();
mMaths = new Maths();
}
public void testAdd() {
int result ... | true |
55e1c2f679af51fa47200e067126672fa4eb7d49 | Java | thichbanla/PY-Moblima | /entity/Seat.java | UTF-8 | 330 | 2.578125 | 3 | [] | no_license | package entity;
import java.io.Serializable;
public class Seat implements Serializable{
private boolean available;
public Seat (boolean available) {
this.available = available;
}
public void setAvailable(boolean available) {
this.available = available;
}
public boolean getAvailable() {
return availa... | true |
5dda7312951fda253585eca77d7af4829bfb7eba | Java | DanRadulescu962/AirHockey | /src/engine/Drawer.java | UTF-8 | 1,358 | 3.28125 | 3 | [] | no_license | package engine;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.ImageObserver;
public class Drawer implements IDrawer{
Graphics g;
ImageObserver observer;
Font f;
public Drawer(Graphics g, ImageObserver observer){
this.g = g;
this.observer = observer;
f = new ... | true |
f0453bfdeaf6668426b293e9cf96713898c39522 | Java | cah-kangkung/java-oop-exercise | /src/exercise61_abstractShape/Shape.java | UTF-8 | 902 | 3.921875 | 4 | [] | no_license | package exercise61_abstractShape;
public abstract class Shape {
protected String color;
protected boolean filled;
public Shape() {
this.color = "red";
this.filled = true;
}
public Shape(String color, boolean filled) {
this.color = color;
this.filled = filled;
}
public String getColor() {
r... | true |
9dda32bc76ae1840e83003c0610d76ac7a56b5ac | Java | zhoutengteng/networkProgram | /Model/StringContent.java | UTF-8 | 1,898 | 2.953125 | 3 | [] | no_license | import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.nio.*;
import java.nio.charset.*;
import java.util.*;
import java.util.concurrent.*;
public class StringContent implements Content {
private String myss;
public StringContent(String str) {
this.myss = str;
}
private ... | true |
5dd80e589c1a4511d5da71ade134bf1b2c265c78 | Java | merlynenriquez/sie-tid | /dirandro-web/src/main/java/pe/gob/mininter/dirandro/service/impl/OpcionServiceImpl.java | UTF-8 | 3,293 | 2.359375 | 2 | [] | no_license | package pe.gob.mininter.dirandro.service.impl;
import java.util.List;
import java.util.Map;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.st... | true |
b6a8230e67e38ed6ab6cc44ca519d77c44414bc6 | Java | raderp841/ddmapi | /rest-service/src/main/java/com/example/restservice/ItemsController.java | UTF-8 | 3,872 | 2.390625 | 2 | [] | no_license | package com.example.restservice;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... | true |
9be165f264bbef843bfc8db95aa7abdcb7d404ad | Java | tony-catalina/Peking_cloud2 | /awd.cloud.platform/awd.cloud.platform.api/src/main/java/awd/cloud/platform/controller/jnp/Jnp_JsdmController.java | UTF-8 | 10,779 | 1.84375 | 2 | [] | no_license | package awd.cloud.platform.controller.jnp;
import awd.cloud.platform.api.JwpServerApis;
import awd.cloud.platform.model.jwp.JsdmModel;
import awd.cloud.platform.service.PublicService;
import awd.cloud.platform.utils.*;
import awd.framework.common.utils.OpenAPI;
import awd.framework.common.utils.StringUtils;
import com... | true |
232b9212bee845d97f98880fa55f043543d18141 | Java | dmgerman/gerrit | /javatests/com/google/gerrit/server/cache/serialize/BooleanCacheSerializerTest.java | UTF-8 | 5,907 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2018 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | true |
4e0762f9aac954e0ee2e39fe3fcf6d80daffe7d4 | Java | haraldk/TwelveMonkeys | /imageio/imageio-pict/src/main/java/com/twelvemonkeys/imageio/plugins/pict/Pattern.java | UTF-8 | 2,774 | 2.015625 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2008, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condition... | true |
842032745fb8dd73a739bba82caab405a573af91 | Java | chenloveguitar/server | /src/com/magicmoble/luzhouapp/action/weixin_pay/buy/Notify_BuyInq.java | UTF-8 | 1,780 | 1.851563 | 2 | [] | no_license | package com.magicmoble.luzhouapp.action.weixin_pay.buy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.se... | true |
8cce95f77fafb1b782938f0decd997b1f57a79c0 | Java | Rodina3/Chessboard | /src/main/java/model/Cell.java | UTF-8 | 782 | 3.5 | 4 | [] | no_license | package model;
public class Cell {
private CellStatus cellStatus;
public Cell(CellStatus cellStatus) {
this.cellStatus = cellStatus;
}
public void evolve(int aliveNeighbors) {
if (this.cellStatus == CellStatus.ALIVE) {
aliveCellEvolve(aliveNeighbors);
} else {
... | true |
85923016608cf86ae13abd2c8f46911664ab931d | Java | tigerspring/cloud-parent | /payment-hystrix-server/src/main/java/jxf/cloud/controller/ThreadLocalController.java | UTF-8 | 1,045 | 2.5 | 2 | [] | no_license | package jxf.cloud.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
public class ThreadLocalController {... | true |
1fe9c71e194d295771618a55f96036d7ce6e9731 | Java | iamaaditya/malleterisk | /src/main/java/ft/selection/Filter.java | UTF-8 | 985 | 2.6875 | 3 | [] | no_license | package ft.selection;
import cc.mallet.types.FeatureSelection;
import cc.mallet.types.InstanceList;
import cc.mallet.types.RankedFeatureVector;
import ft.selection.functions.Functions;
public abstract class Filter implements IFilter {
protected InstanceList instances;
protected RankedFeatureVector rfv;
@Override... | true |
34c3127bd7ad4514fb8bb8b090bf24024a8279a1 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_1c752e4213fe8cc9bd1824d6bdd62320ac83ca17/ChangeDescription/2_1c752e4213fe8cc9bd1824d6bdd62320ac83ca17_ChangeDescription_t.java | UTF-8 | 6,541 | 2.015625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and... | true |
1d36c77d535cb105c2c4e1d3e92816e4cf8175bf | Java | timiblossom/ShareMyVision | /src/com/smv/service/outlet/OutletServiceImpl.java | UTF-8 | 3,390 | 2.1875 | 2 | [] | no_license | package com.smv.service.outlet;
import javax.jws.WebService;
import com.smv.common.bean.OutletDTO;
import com.smv.common.bean.UserOutletContentDTO;
import com.smv.common.bean.UserOutletDTO;
import com.smv.common.exception.SmvErrorCode;
import com.smv.common.exception.SmvServiceException;
import com.smv.util.... | true |
7692eca9ac4485c3e421376757c8f62782c3607c | Java | craighewetson/rsocket-rpc | /rsocket-client/src/main/java/com/hewecode/rsocketrpc/PingAndForgetClient.java | UTF-8 | 844 | 2.625 | 3 | [] | no_license | package com.hewecode.rsocketrpc;
import com.hewecode.rsocketrpc.pingpong.protobuf.Ping;
import com.hewecode.rsocketrpc.pingpong.protobuf.PingPongServiceClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Duration;
public class PingAndForgetClient {
private static final Logger logger... | true |
bdb410b63ca3afbb8732c898dad44ec551e70614 | Java | taner-ozturk/hrms | /src/main/java/kodlama/io/hrms/api/controllers/CompaniesController.java | UTF-8 | 1,055 | 2.390625 | 2 | [] | no_license | package kodlama.io.hrms.api.controllers;
import kodlama.io.hrms.business.abstracts.CompanyService;
import kodlama.io.hrms.entities.concretes.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping... | true |
8dc2cea849c94868cf3a053f8a18afc138431221 | Java | lcnetwalker/mySpringMvc | /src/main/java/com/springstudy/baseic_knowledge/final_/finalJavaTest.java | UTF-8 | 856 | 3.125 | 3 | [] | no_license | package com.springstudy.baseic_knowledge.final_;
/**
* Created by xgjt on 15/8/20.
*/
public class finalJavaTest {
private final int i=0;
private final int j;
private final finalJava p;
public finalJavaTest(){
j=1;
p=new finalJava(1);
}
public finalJavaTest(int x){
... | true |
99a90bc05624fc9174b2be0bd870dff281f34a41 | Java | JeanBriesemeister/SpringBootCourse | /src/main/java/com/jean/sbc/services/CityService.java | UTF-8 | 449 | 1.96875 | 2 | [] | no_license | package com.jean.sbc.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jean.sbc.domain.City;
import com.jean.sbc.repositories.CityRepository;
@Service
public class CityService {
@Autowired
private CityReposito... | true |
b20ad2e18cf4093a25e48011b8611cc63d80c6e3 | Java | BojanF/CateringFacilityAPI | /src/main/java/com/apiApp/CateringFacilityAPI/exceptions/BadRequest.java | UTF-8 | 189 | 2.203125 | 2 | [] | no_license | package com.apiApp.CateringFacilityAPI.exceptions;
public class BadRequest extends BaseCustomException {
public BadRequest(String errorMessage) {
super(errorMessage);
}
}
| true |
2f2d193df92628dfb31e36ab710684a7597280a9 | Java | ebanek/javaHTTPServer | /src/main/java/hr/fer/zemris/java/custom/scripting/exec/functions/BinarySmartFunction.java | UTF-8 | 1,071 | 3 | 3 | [] | no_license | package hr.fer.zemris.java.custom.scripting.exec.functions;
import hr.fer.zemris.java.custom.collections.ObjectStack;
import hr.fer.zemris.java.custom.scripting.exec.ValueWrapper;
import hr.fer.zemris.java.webserver.RequestContext;
/**
* Binary function which does some calculation with two {@code ValueWrapper}s.
* ... | true |
fd2f0fd5c5aa73810520211510f970746a4aa0d5 | Java | kila182-belyii/BELYAEV_JAVA_120 | /Homeworks/#06. Homework/Program.java | UTF-8 | 1,430 | 3.46875 | 3 | [] | no_license | import java.util.Scanner;
public class Program {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Input length of Array:");
int UserNumber = scanner.nextInt();
int ArrNumber = 0;
int[] arr = new int[UserNumber];
int MaxValue = arr[0];
... | true |
8dae374b8ca28437e15b7c690aaa438783f312b9 | Java | cckmit/RMIServer | /src/main/java/com/hgsoft/settlement/service/HandPaymentRepeatDetailService.java | UTF-8 | 727 | 1.9375 | 2 | [] | no_license | package com.hgsoft.settlement.service;
import com.hgsoft.settlement.dao.HandPaymentRepeatDetailDao;
import com.hgsoft.settlement.entity.AcTradeDetailInfo;
import com.hgsoft.settlement.serviceinterface.IHandPaymentRepeatDetailService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/*... | true |
570e3ff77786fb0a0209616f1c7ebcc925285b6f | Java | alterpeke/MyAlbumGallery | /app/src/main/java/com/jcpallavicino/sample/myalbumgallery/Album.java | UTF-8 | 651 | 2.609375 | 3 | [] | no_license | package com.jcpallavicino.sample.myalbumgallery;
/**
* Created by juan.pallavicino on 21/9/2017.
*/
public class Album {
private String albumName;
private String artistName;
public Album(String albumName, String artistName) {
this.albumName = albumName;
this.artistName = artistName;
... | true |
03613bb3785537f0ec70a2bcf1298e448f551dee | Java | lucaslimeira-opet/mobiquity | /package-app/src/main/java/com/mobiquityinc/packageapp/entity/Candidate.java | UTF-8 | 997 | 2.890625 | 3 | [] | no_license | package com.mobiquityinc.packageapp.entity;
import java.util.ArrayList;
import java.util.List;
public class Candidate implements Comparable<Candidate> {
private List<Item> candidateItems = new ArrayList<>();
private double totalWeight;
private double totalPrice;
@Override
public int compareTo(Candi... | true |
803b2e2aa209e27c5f394e4e06a4dce0396533ae | Java | a2en/Zenly_re | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/com/google/android/libraries/places/api/model/zzt.java | UTF-8 | 1,470 | 2.875 | 3 | [] | no_license | package com.google.android.libraries.places.api.model;
abstract class zzt extends PlaceLikelihood {
private final Place zza;
private final double zzb;
zzt(Place place, double d) {
if (place != null) {
this.zza = place;
this.zzb = d;
return;
}
thr... | true |
85842f0970c97cff617b5f4feb1dc017abc02c83 | Java | mattb20/java_airport | /src/main/java/JAirport/Airport.java | UTF-8 | 763 | 3.109375 | 3 | [] | no_license | package JAirport;
import java.util.ArrayList;
public class Airport {
ArrayList<String> hanger = new ArrayList<String>();
Weather weather = new Weather();
String condition = weather.conditions;
int capacity = 4;
public ArrayList<String> storage() {
return hanger;
}
public ArrayLi... | true |
b14b01251b55c00ed4c9ff8271764424ac84153e | Java | Invictum/invictum-test | /invictum-test-core/src/test/java/com/github/invictum/test/dto/attribute/converter/ConverterUtilTest.java | UTF-8 | 2,533 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.github.invictum.test.dto.attribute.converter;
import com.github.invictum.dto.Attribute;
import com.github.invictum.test.dto.instances.EnumAttribute;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.ArrayList;
import java.util.HashSet;
import java.ut... | true |
b407f789177a73a53d9ae794f5cfa92bd4e133a4 | Java | Ruh15/examples | /demos/src/main/java/com/rh/examples/demos/utils/DruidPass.java | UTF-8 | 1,204 | 2.578125 | 3 | [] | no_license | package com.rh.examples.demos.utils;
import com.alibaba.druid.filter.config.ConfigTools;
import com.alibaba.fastjson.JSON;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
/**
* @author hui
* @desc druid 对密码加解密
* @date 2020/5/12
*/
public class DruidPass {
public f... | true |
4a993f4cfa5f4d4e9f59239d581b0710c876b2c2 | Java | njuer/utility | /src/main/java/org/minnie/utility/entity/lottery/FiveInElevenCandidate.java | UTF-8 | 937 | 2.4375 | 2 | [
"MIT"
] | permissive | package org.minnie.utility.entity.lottery;
import java.util.Arrays;
public class FiveInElevenCandidate {
private Integer period;
private int [] candidate;//候选号统计
private int hint;//候选号码数
private String category;//杀号类别
public Integer getPeriod() {
return period;
}
public void setPeriod(Integer period) {
... | true |
442d6db9d2c434a6eb8cf1ec057a5b9f6a071c4f | Java | ChenChunChang/Http_Ftp | /src/main/java/cn/admin/login/controller/LoginController.java | UTF-8 | 3,265 | 2.015625 | 2 | [] | no_license |
package cn.admin.login.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
0a936203ea952334f6d27a2c2088ec56d9d804e6 | Java | ZaytsevMM/ScanLogsTom | /src/main/java/ru/krista/utility/PropertiesUtil.java | UTF-8 | 663 | 2.53125 | 3 | [] | no_license | package ru.krista.utility;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class PropertiesUtil {
private static Properties properties;
public static Properties getProperties() {
if (properties == null) {
new PropertiesUtil();
}
return properties;
... | true |
073cf2c20c7b0af3bc2d83cb26828b8a7b63d909 | Java | kartikvyas1/BarterV1 | /BApp/app/src/main/java/com/example/barterv1/UtilityPackage1/SharedPreference1.java | UTF-8 | 1,297 | 2.75 | 3 | [
"MIT"
] | permissive | package com.example.barterv1.UtilityPackage1;
import android.content.Context;
import android.content.SharedPreferences;
public class SharedPreference1 {
private static String PREFERENCE_NAME = "BarterV1";
private static SharedPreference1 sharedPreference1;
private SharedPreferences sharedPreferences;
... | true |
5882c2bfcc459c3b910f8674a08cdef3964d0531 | Java | NursuluT/java-practicee | /src/Day4_Primitives_Operators/UsingVariables.java | UTF-8 | 573 | 3.875 | 4 | [] | no_license | package Day4_Primitives_Operators;
public class UsingVariables {
public static void main(String[] args) {
//Declare num1, num2, num3
int num1, num2, num3;
num1=100;
num2=num1;
System.out.println(num1);
System.out.println(num2);
//Declare apples and assign 25
//declare kiwis and assign value o... | true |
e6fa0faf2955327c5e8c6183c4bf0f375f627a5c | Java | waveFuzf/EDP | /src/main/java/com/zust/EDP/dto/Mytake.java | UTF-8 | 498 | 1.851563 | 2 | [] | no_license | package com.zust.EDP.dto;
import java.util.ArrayList;
import java.util.List;
public class Mytake {
private List<Publish> publish = new ArrayList<Publish>();
private List<Request> request = new ArrayList<Request>();
public List<Publish> getPublish() {
return publish;
}
public void setPublish(List<Publish> pub... | true |
48d220cfdbd75460d7ef8ac42617a76afce9b0cf | Java | dominicbosch/msc-liveweb | /examples/callbacks/java/CallbackFunction.java | UTF-8 | 255 | 2.1875 | 2 | [] | no_license | /*
* The Callback function instance.
*/
public class CallbackFunction {
private HashMap<String, String> mapScope;
public CallbackFunction( HashMap<String, String> scope ) {
this.mapScope = scope;
}
public void event( String event ) {
}
}
| true |
156e11c4fae2794272e8be303f2e213ee3924c68 | Java | VietLQ10/Timekeeping | /src/main/java/com/training/timekeeping/model/Employee_Overtime.java | UTF-8 | 576 | 2.140625 | 2 | [] | no_license | package com.training.timekeeping.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.util.Objects;
@Embeddable
@Data
@NoArgsConstructor
@All... | true |
a98f3b18d93a2c913d62a9c5d5acdccdf8ac4a70 | Java | khuongbv/OOLT.20202.20184126.BuiVanKhuong | /Lab03/AimsProject/src/aims/MyDate.java | UTF-8 | 4,541 | 3.65625 | 4 | [] | no_license | package aims;
import java.time.LocalDate;
import java.util.Scanner;
public class MyDate {
private int day;
private int month;
private int year;
public int getDay() {
return day;
}
public void setDay(int day) {
if(day < 1 || day > getDaysOfMonth(month, year)) {
System.out.println("Invalid Day!");
Sy... | true |
016de196b3b48b582df450c6a7487e3b5031b696 | Java | mikhail-a-kiselev/cordova-plugin-yandexappmetrica | /src/android/YandexAppMetrica.java | UTF-8 | 723 | 1.726563 | 2 | [] | no_license | package com.codemech.yandexappmetrica;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;
import com.yandex.metrica.YandexMetrica;
import com.yandex.metrica.YandexMetricaConfig;
public class YandexAppMetrica extends CordovaPlugin {
public v... | true |
4f5c23c7b9be061bbba38e09fcca192503f56b01 | Java | kawnayeen/introduction-to-java-8 | /src/main/java/com/kawnayeen/java8/_1_lamda/_3_function_intefaces/_2_function/_5_IntFunction.java | UTF-8 | 376 | 3.109375 | 3 | [] | no_license | package com.kawnayeen.java8._1_lamda._3_function_intefaces._2_function;
import java.util.function.IntFunction;
/**
* Created by kawnayeen on 1/26/17.
*/
public class _5_IntFunction {
public static void main(String[] args) {
IntFunction<Integer> toInteger = intValue -> new Integer(intValue);
Sys... | true |
be575d1603541e5dad7b76baeb0e9243459ced6c | Java | HeicenBergcoding/core_java | /core/src/com/company/arraydemo/EmployeesID.java | UTF-8 | 293 | 2.640625 | 3 | [] | no_license | package com.company.arraydemo;
public class EmployeesID {
public static void main(String[] args){
boolean isEmployee[] = new boolean[5];
isEmployee[3]=true;
for(int i = 0; i< isEmployee.length; i++){
System.out.println(isEmployee[i]);
} }
}
| true |
7629e284a051be125a1962f2b6e619c9c8ce77a3 | Java | jinshoogun/jin | /M103/src/ex17_04/ThreadPriorityControl.java | UHC | 1,098 | 4.1875 | 4 | [] | no_license | package ex17_04;
// ο ʴ
public class ThreadPriorityControl implements Runnable {
public void run() {
for (int i =1; i <3; i++){
// thread ̸
System.out.println(Thread.currentThread().getName() + "number = " + i);
}
}
public static void main(String args[]) {
ThreadPriorityControl t1 = new T... | true |
3686a695071436f76d6a5ed5fe1d0bf21d57e13f | Java | kryzoo/cyclos | /src/main/java/nl/strohalm/cyclos/services/groups/BrokerGroupPermissionsDTO.java | UTF-8 | 4,928 | 1.8125 | 2 | [] | no_license | /*
This file is part of Cyclos.
Cyclos is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Cyclos is distributed in the hope that it will... | true |
7eda6496a3db53b65a3cff0a3f661e7298025748 | Java | divyamc797/school-service | /src/main/java/com/divya/schoolservice/service/StudentService.java | UTF-8 | 256 | 1.96875 | 2 | [] | no_license | package com.divya.schoolservice.service;
import com.divya.schoolservice.exception.NotFound;
import com.divya.schoolservice.model.StudentModel;
public interface StudentService {
StudentModel createStudent(StudentModel studentModel) throws NotFound;
}
| true |
506a1df5ba3612b492eeee96d3896063b5cd8843 | Java | angelorobsonmelo/mailing-api | /src/main/java/com/angelorobson/mailinglist/controllers/ContactController.java | UTF-8 | 8,550 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.angelorobson.mailinglist.controllers;
import com.angelorobson.mailinglist.dtos.ContactDto;
import com.angelorobson.mailinglist.dtos.ContactSaveDto;
import com.angelorobson.mailinglist.dtos.UserAppDto;
import com.angelorobson.mailinglist.entities.Category;
import com.angelorobson.mailinglist.entities.Contac... | true |
82775217e0ff110d2b4c27dec4b1b9a790abd82d | Java | sanzond/scud-1 | /资料/另外项目/shitangjia/common-service/src/main/java/com/horadrim/talrasha/common/service/impl/VegetableOrderServiceImpl.java | UTF-8 | 7,267 | 1.992188 | 2 | [] | no_license | package com.horadrim.talrasha.common.service.impl;
import com.horadrim.talrasha.common.dao.GenericDao;
import com.horadrim.talrasha.common.dao.OrderDao;
import com.horadrim.talrasha.common.dao.VegetableOrderDao;
import com.horadrim.talrasha.common.model.Order;
import com.horadrim.talrasha.common.model.OrderItem;... | true |
66e5576927bd9cbbfe9f76b049eb3f7f6d456982 | Java | McSrini/cltlJune2021 | /src/main/java/ca/mcmaster/cltljune2021/utilities/NoGoodFilter.java | UTF-8 | 4,255 | 2.734375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ca.mcmaster.cltljune2021.utilities;
import static ca.mcmaster.cltljune2021.Constants.*;
import ca.mcmaster.cltljune202... | true |
0573569b6dfe1295fe0bba47c175b5010f3419b2 | Java | lucadln/android | /SystemApplication/app/src/main/java/com/ardeleanlucian/systemapplication/MainActivity.java | UTF-8 | 5,382 | 2.5625 | 3 | [] | no_license | package com.ardeleanlucian.systemapplication;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.CallLog;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivi... | true |
47590f577af0571a5b08b62229c80d64318bd0af | Java | Songlengmou/NotificationManger | /app/src/main/java/com/anningtex/notificationmanger/ThreeActivity.java | UTF-8 | 2,187 | 2.296875 | 2 | [] | no_license | package com.anningtex.notificationmanger;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TaskStackBuilder... | true |
8053c41d48b26f34082c2215439ec70d0c20cc14 | Java | fbiohenrique1/Trabalho_SD | /trabalinho2/src/udp/UDPClient.java | UTF-8 | 896 | 2.84375 | 3 | [] | no_license | package udp;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
public class UDPClient {
private static final int port = 6789;
private static final String host = "127.0.0.1";
public static void main(String[] args) throws Exception {
DatagramSocket udpclient = new Datag... | true |
43feb1c8d8dc119fe5e087295e0df796f212f116 | Java | GengMingZhu/buytickets | /buytickets/src/main/java/com/ie/filter/gzip/GzipResponseWrapper.java | UTF-8 | 1,777 | 2.40625 | 2 | [] | no_license | package com.ie.filter.gzip;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/**
* 压缩GZIP
* @author zbn
* @create 2012... | true |
b55e0192a250d9c23a28e9546b7c059f6993f4ed | Java | SushmithaRaj12/Task | /first project/src/MyPack/UsePackage.java | UTF-8 | 161 | 1.78125 | 2 | [] | no_license | package MyPack;
public class UsePackage {
public static void main(String[] args) {
Demo1 objDemo1 = new Demo1();
objDemo1.display();
}
}
| true |
6196ca2179676ed199963988f2a9e31e8a851408 | Java | CopsecDev/RDMSAgent | /src/main/java/com/copsec/railway/rms/configurations/CommandsResources.java | UTF-8 | 3,090 | 1.921875 | 2 | [] | no_license | package com.copsec.railway.rms.configurations;
/**
* 存储linux 和solaris系统命令
*/
public class CommandsResources {
/**
* 检索线程是否存在
* @param pid
* @return
*/
public static String prcessorBuilder(String pid){
return "/usr/bin/ps -p " + pid + " | /usr/bin/grep -v PID | /usr/bin/wc -l";
}
public static final ... | true |
281fadf25951db9178a212b82fdfadbcd081a4bf | Java | sjywying/csp | /monitorstat-time-monitor/src/main/java/com/taobao/csp/monitor/DataCollector.java | WINDOWS-1252 | 332 | 1.8125 | 2 | [] | no_license |
/**
* monitorstat-monitor
*/
package com.taobao.csp.monitor;
/**
* @author xiaodu
*
* 6:23:06
*/
public interface DataCollector {
public String getName();
public void collect(CallBack call);
public void release();
public interface CallBack{
public void readerLine(String line);
}
... | true |
89fbc0d29abd336b4a9904a262334436a8fe77fc | Java | dsi-ehess/VIVO-fr_FR | /api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3editing/RelationshipMandatoryLabelValidator.java | UTF-8 | 3,206 | 2.203125 | 2 | [] | no_license | /* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.edit.n3editing;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.jena.rdf.model.Literal;
i... | true |
51df74108f4834ae0babc9be1dfaf7e7208d55ff | Java | mr-level/clan | /clan/src/main/java/cn/level/common/DAO.java | UTF-8 | 3,262 | 2.3125 | 2 | [] | no_license | package cn.level.common;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotatio... | true |
4200deeeffe7508c8958f85233947b8008dd09b5 | Java | gonglujiang/PDE_Test | /gonglujiang_PDE/src/main/java/com/quova/platform/compliance/applet/PDEApplet.java | UTF-8 | 5,305 | 2.296875 | 2 | [] | no_license | package com.quova.platform.compliance.applet;
import java.applet.Applet;
import java.awt.TextArea;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.InetAddress;
import java.net.Socket;
import java.net.U... | true |
801eae97aa36ad5d7a04c94677172766550a8717 | Java | ngafonso7/conferenciaNF_Android | /ConferenciaNF/src/com/natanael/conferencianf/ConferenciaNF.java | ISO-8859-1 | 67,580 | 1.71875 | 2 | [] | no_license | package com.natanael.conferencianf;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.inputmethodservice.Keyboard;
import android.os.Bundle;
import android.os.Message;
import android.a... | true |
ab3aac0ca2426aecdbebde2a33fc4d4d8c696dfe | Java | blazicmarko/CinemaScheduleApp | /Cinema/src/main/java/com/example/cinema/validator/sequences/RequestValidationSequence.java | UTF-8 | 460 | 1.8125 | 2 | [] | no_license | package com.example.cinema.validator.sequences;
import com.example.cinema.validator.groups.FirstPriorGroup;
import com.example.cinema.validator.groups.SecondPriorGroup;
import com.example.cinema.validator.groups.ThirdPriorGroup;
import javax.validation.GroupSequence;
import javax.validation.groups.Default;
@GroupSeq... | true |
d68440708171ea1e6174d7bdea482ab2c6ae411d | Java | sunzequn/CorefEval | /src/uri/BaseURI.java | UTF-8 | 910 | 2.5625 | 3 | [] | no_license | package uri;
public class BaseURI {
private int bid;
private String baseURI;
private int position;
private int sum;
private int cid;
public BaseURI(int bid, String baseURI, int position, int sum, int cid) {
super();
this.bid = bid;
this.baseURI = baseURI;
this.position = position;
thi... | true |
d2c757d0b5d442b9472ca4ef5fa02c694640d8fb | Java | dengke-li/network-project | /whatson-master/whatsonServer/src/com/first/whatson/database/objects/EmotionSpider.java | UTF-8 | 831 | 3 | 3 | [] | no_license | package com.first.whatson.database.objects;
import java.util.Map;
/**
* Abstract class
* Emotional profile of something (taggued image, user profile, external content)
* Main attribute: emotionSpider is a map that binds each emotion with an intensity for the thing
*
*
*/
public abstract class EmotionSpider {
... | true |
b817698edbb7a2f9212eda4c7c3d3fbd2f824be4 | Java | mjgsilva/PetFinder | /implementation/client/petfinder/src/pt/isec/amov/petfinder/core/LogTags.java | UTF-8 | 172 | 1.578125 | 2 | [] | no_license | package pt.isec.amov.petfinder.core;
/**
*
*/
public interface LogTags {
public static final String REST = "rest";
public static final String JSON = "json";
}
| true |
4cde6d9d8bf97eec596c2d937ca51495eac6effa | Java | BjornRasmussen/Decifraction | /app/src/main/java/com/example/decifraction/Fraction.java | UTF-8 | 7,392 | 3.34375 | 3 | [] | no_license | package com.example.decifraction;
import android.widget.Toast;
import java.math.BigDecimal;
import java.math.MathContext;
// This object type can store a fraction - a number over another number.
public class Fraction {
private MathConcept[] numerators_; // For storing all objects in the top of the fraction.
p... | true |
bc12cf0790bfa9c3d33e193f7b725b840897d171 | Java | Anelisi/petshop-web | /src/main/java/br/com/tt/petshopweb/web/UnidadeController.java | UTF-8 | 2,003 | 2.3125 | 2 | [] | no_license | package br.com.tt.petshopweb.web;
import br.com.tt.petshopweb.model.Unidade;
import br.com.tt.petshopweb.service.UnidadeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springfra... | true |
90a95b43d8d73a13267b84702d1d1e44e4ba3044 | Java | Kolesila88/SkillBox | /13_FilesAndNetwork/homework_13.2/src/main/java/FileUtils.java | UTF-8 | 1,790 | 2.78125 | 3 | [] | no_license | import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.TreeMap;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Mark... | true |
773ff68eb730db91e4936d5be89e126956c56845 | Java | YureVieira/POO | /Aulas/aula_interface/src/aula_interface/Isosceles.java | UTF-8 | 516 | 3.28125 | 3 | [] | no_license | package aula_interface;
import java.util.*;
import java.lang.*;
public class Isosceles extends Triangulo {
public Isosceles(){}
public Isosceles(double a,double b) {
// TODO Auto-generated constructor stub
lado_1 = a;
lado_2 = b;
lado_3 = b;
}
@Override
public double calculaArea() {
// TODO Auto-gene... | true |
f548904ccf7dfcc602b39650d1439c7abb00955d | Java | abhishek-bharadwaj/pref-watcher | /app/src/main/java/com/abhishek/prefwathcer/UserPref.java | UTF-8 | 897 | 2.375 | 2 | [] | no_license | package com.abhishek.prefwathcer;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.annotation.Nullable;
/**
* Created by abhishek on 29/9/17.
*/
public class UserPref extends BaseSharedPreference {
private static final String PREF_NAME = "pref_user";
private... | true |
034c9a8356234a09ceacdeedda3487b746fb87d7 | Java | SyameimaruKibou/tachyon-back | /tachyon-imserver/src/main/java/imserver/vo/imdata/ChatObject.java | UTF-8 | 949 | 2.46875 | 2 | [
"MIT"
] | permissive | package imserver.vo.imdata;
public class ChatObject {
// TODO: LONG 类型的userid是否过于占用空间?
private Long userId;
private String msg;
private Long to;
private String time;
public ChatObject() {
}
public ChatObject(Long userId, String msg, Long to,String time) {
super();
this... | true |
ebff2ab6bcab92fcf66f601be485f3a031eaf70d | Java | HenriqueMarcelino/Treinamento_Bradesco | /Aplicacoes em Eclips/exercicio2CrudMock/src/main/java/MockPessoa.java | UTF-8 | 1,289 | 2.5625 | 3 | [] | no_license | import java.util.List;
import br.com.stefanini.mock.entity.Pessoa;
import br.com.stefanini.mock.persistence.PessoaDao;
public class MockPessoa {
public static void main(String[] args) {
MockPessoa mockPessoa = new MockPessoa();
PessoaDao pessoaDao = new PessoaDao();
try {
Pessoa pessoa = pessoaDao.findB... | true |
87a41833e693f84762c243c0e4f976e490111c55 | Java | ProjektCPS/CPS | /src/entities/customEntities/Discount.java | UTF-8 | 4,234 | 2.375 | 2 | [] | no_license | package entities.customEntities;
import entities.*;
public class Discount {
private ZlavaEntity zlavaEntity;
private TypZlavyEntity typZlavyEntity;
private KvantitovaZlavaEntity kvantitovaZlavaEntity;
private PercentualnaZlavaEntity percentualnaZlavaEntity;
private CenovaZlavaEntity cenovaZlavaEnt... | true |
45c756bef3d1b441f28f6b9b829a28a4f4d43022 | Java | LilianaLopezL/poo-lll | /poo-lll/src/poo/lll/NumeroNegativoException.java | UTF-8 | 198 | 2.21875 | 2 | [] | no_license |
package poo.lll;
public class NumeroNegativoException extends Exception
{
public NumeroNegativoException()
{
super("NO ES POSIBLE DAR VALORES NEGATIVOS");
}
}
| true |
9d4c0bbc28300af5e7d7b249f2d5087d8ea3cc65 | Java | liqimoon/xiubit-android | /xsl781/src/main/java/org/xsl781/utils/Utils.java | UTF-8 | 8,938 | 2.15625 | 2 | [
"MIT"
] | permissive | package org.xsl781.utils;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.u... | true |
5eadb78c7cda7f9f71d200bd45cef680cc805f74 | Java | AntonKorenev/SpringApplication | /src/main/java/com/company/spring_application/servlet/ServletCSV.java | UTF-8 | 1,428 | 2.390625 | 2 | [] | no_license | package com.company.spring_application.servlet;
import com.company.spring_application.mapper.MapperFromCSV;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException... | true |
0a3fcc16533ecbb769fbf33780dad8774b27d75d | Java | gauravmobi/RentalDVDSystem | /src/main/java/com/mobiquity/rentaldvdstore/enums/Genre.java | UTF-8 | 97 | 1.976563 | 2 | [] | no_license | package com.mobiquity.rentaldvdstore.enums;
public enum Genre {
THRILLER, HORROR, COMEDY;
}
| true |
c960ee9e943dcea73e65d44244f85890da293a20 | Java | KangJinSol/UtripProject | /src/main/java/trip/service/QnaService.java | UTF-8 | 241 | 1.5625 | 2 | [] | no_license | package trip.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import trip.mapper.QnaMapper;
@Service
public class QnaService {
@Autowired
private QnaMapper mapper;
}
| true |
03469824df4c6c09a3c273bbd6930b48e7e2ab7c | Java | AbeJellinek/Lingua | /src/main/java/me/abje/lingua/interpreter/obj/StringObj.java | UTF-8 | 3,580 | 2.796875 | 3 | [
"MIT"
] | permissive | /*
* Copyright (c) 2015 Abe Jellinek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... | true |
6a92f32b07340e53f6f1b55db0a1d2502237fac8 | Java | michael-conway/modeshape | /modeshape-jcr/src/main/java/org/modeshape/jcr/query/lucene/IdsQuery.java | UTF-8 | 7,837 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /*
* ModeShape (http://www.modeshape.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | true |
1488160d3d2c31ecf9cdeca5727633fd5e95e205 | Java | busetekin/RahatlaticiSesler | /app/src/main/java/com/teknasyon/busetekinaydin/rahatlaticisesler/features/FavoriteSounds/FavoriteSoundFragment.java | UTF-8 | 3,990 | 2.03125 | 2 | [] | no_license | package com.teknasyon.busetekinaydin.rahatlaticisesler.features.FavoriteSounds;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Rec... | true |
7707207e67845843e92347c0249aa433731e1589 | Java | aungzinphyo94/BorrowSample | /app/src/main/java/com/aungzinphyo/borrowsample/Add_items/AddActivity.java | UTF-8 | 2,622 | 2.21875 | 2 | [] | no_license | package com.aungzinphyo.borrowsample.Add_items;
import android.app.DatePickerDialog;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
imp... | true |
90b31633ebe0850b88c1c6d3f22c712641a71367 | Java | zhu635433912/androidApp | /app/src/main/java/view/login/Modle/RegisterView.java | UTF-8 | 1,589 | 1.921875 | 2 | [] | no_license | package view.login.Modle;
import java.util.Map;
/**
* ┏┓ ┏┓
* ┏┛┻━━━┛┻┓
* ┃ ┃
* ┃ ━ ┃
* ┃ > < ┃
* ┃ ┃
* ┃... ⌒ ... ┃
* ┃ ┃
* ┗━┓ ┏━┛
* ┃ ┃ Code is far away from bug with the animal protecting
* ┃... | true |
2d2d84d8accfab409119b26a81e6aa1dd06a416c | Java | deathearth/Thread | /src/main/java/com/chl/listener/Human.java | UTF-8 | 383 | 2.671875 | 3 | [] | no_license | package com.chl.listener;
import com.chl.listener.event.Event;
/**
* 具体对象
* @author chenhailong
*
*/
public class Human {
private HumanListener ls;
public void registerListener(HumanListener ls) {
this.ls = ls;
}
public void doSTH() {
if(ls != null) {
Event event = new Event(this);
this.ls.doST... | true |
82c72b1d10200cf2af70dce52bd694e7648d43a4 | Java | juanmi-gh/Cibus | /Cibus/src/com/sovarb/cibus/db/Ingrediente.java | UTF-8 | 2,481 | 2.5 | 2 | [] | no_license | package com.sovarb.cibus.db;
import org.json.JSONException;
import org.json.JSONObject;
import com.sovarb.cibus.S;
import com.sovarb.cibus.db.GestorDB.TIngredientes;
import com.sovarb.cibus.http.HttpClientManager;
import android.app.Activity;
import android.os.Parcel;
import android.os.Parcelable;
public class Ingr... | true |
24d849b312c982732093ee9b00aff357d7b04b29 | Java | DavidStables/InformationManager | /common/src/main/java/org/endeavourhealth/informationmanager/common/transform/model/Parameter.java | UTF-8 | 920 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package org.endeavourhealth.informationmanager.common.transform.model;
public class Parameter {
private String fromPath;
private String fixed;
private String variable;
private Function function;
public String getFromPath() {
return fromPath;
}
public Parameter setFromPath(String f... | true |
d285cf32dbced3e96b7a7282688f2735e99e57c1 | Java | alifarokhian/se2-application | /src/main/java/com/application/se2/fxgui/TableViewPopUp.java | UTF-8 | 5,257 | 2.171875 | 2 | [] | no_license | package com.application.se2.fxgui;
import static com.application.se2.AppConfigurator.LoggerTopics;
import java.util.ArrayList;
import com.application.se2.components.ComponentIntf.CRUDLogicIntf;
import com.application.se2.misc.EntityProperty;
import com.application.se2.misc.Logger;
import com.application.se2... | true |
f208dd25fb5f114d9ac065b06aa39036c12fe4bc | Java | karlogonzales/ministocks-390 | /src/androidTest/java/nitezh/ministock/activities/menu/MenuScrollableAddTest.java | UTF-8 | 1,682 | 2.09375 | 2 | [
"MIT"
] | permissive | package nitezh.ministock.activities.menu;
import android.support.test.rule.ActivityTestRule;
import android.view.View;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import nitezh.ministock.R;
import static org.junit.Assert.assertNotNull;
public class MenuScrollableA... | true |
67f0ded35da7baeb7ea0dcc006d1cc306ddc3ab1 | Java | basheerlgsi/SecondEndtoEndTestSwings | /test/auctionsniper/AuctionSniperTest.java | UTF-8 | 918 | 2.4375 | 2 | [] | no_license | package auctionsniper;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.junit.Test;
public class AuctionSniperTest {
private final Mockery context = new Mockery();
private final SniperListener sniperListener = context
.mock(SniperListener.class);
private final Auction auction = context.mock(A... | true |
5f1594d4bef5ec13751d785256287b80c50b2ff2 | Java | himdavid/Midgard | /Midgard/src/CreateTestFiles.java | UTF-8 | 14,680 | 2.953125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Thi... | true |
68aaa09f848b0234d75ed60071607311e1aff266 | Java | succlz123/StarDriver-APT | /app/src/main/java/org/succlz123/stardriver/app/task/AppInitTaskSDKB.java | UTF-8 | 551 | 1.9375 | 2 | [] | no_license | package org.succlz123.stardriver.app.task;
import android.content.Context;
import org.succlz123.stardriver.IStarDriver;
import org.succlz123.stardriver.StarDriverResult;
public class AppInitTaskSDKB extends IStarDriver {
@Override
public void initialize(Context context, StarDriverResult result) {
tr... | true |
5a5263c2447904e974e70928990edc25f4d0e77e | Java | steindani/shift-java | /src/test/java/com/shapesecurity/shift/parser/expressions/StaticMemberExpressionTest.java | UTF-8 | 1,228 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.shapesecurity.shift.parser.expressions;
import com.shapesecurity.shift.ast.IdentifierExpression;
import com.shapesecurity.shift.ast.StaticMemberExpression;
import com.shapesecurity.shift.parser.ParserTestCase;
import com.shapesecurity.shift.parser.JsError;
import org.junit.Test;
public class StaticMember... | true |
0dc602fa15f815cafa6d604f57494df7d08b9ac4 | Java | junwei0000/all | /KiwiSports_V1.0.2/kiwiSports/src/main/java/com/KiwiSports/business/VenuesItemUserBusiness.java | UTF-8 | 2,935 | 2.21875 | 2 | [] | no_license | package com.KiwiSports.business;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.text.TextUtils;
import android.util.Log;
import com.KiwiSports.utils.CommonUtils;
import com.KiwiSports.utils.Constants;
import com.KiwiSports.util... | true |
72e6113aac8308ca24a4ee44d400f72bf8dd7264 | Java | Unidata/netcdf-java | /waterml/src/test/java/ucar/nc2/ogc/erddap/util/ErddapEDUnitsTest.java | UTF-8 | 30,582 | 2.4375 | 2 | [
"BSD-3-Clause"
] | permissive | package ucar.nc2.ogc.erddap.util;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.invoke.MethodHandles;
/**
* Created by cwardgar on 2014/03/12.
*/
public class ErddapEDUnitsTest {
private static final Logger logger = LoggerFactory.getLogge... | true |
1effe3d9bfce15cfcea914340c97bb46aec3082f | Java | roman-dzieciol/react-native-node-os | /android/src/main/java/com/reactlibrary/NodeOsUserInfo.java | UTF-8 | 149 | 1.578125 | 2 | [] | no_license | package com.reactlibrary;
final class NodeOsUserInfo {
String username;
String uid;
String gid;
String shell;
String homedir;
}
| true |
760f43cbf0ac62216ea34c321ef2f87282ab39d3 | Java | rchigvintsev/infinispan | /server/router/src/main/java/org/infinispan/server/router/router/impl/rest/RestRouter.java | UTF-8 | 3,628 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package org.infinispan.server.router.router.impl.rest;
import java.lang.invoke.MethodHandles;
import java.net.InetAddress;
import java.util.Optional;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.ContainerResponseFilter;
import org.infinispan.commons.logging.LogFactory;
import org... | true |
fdf785cb18a218490c67e20d4422d4cde8d7abd6 | Java | GayeYilmaz/HumanResourceManagmentSystem | /hrms/src/main/java/kodlamaio/hrms/api/controllers/SchoolController.java | UTF-8 | 926 | 2.1875 | 2 | [] | no_license | package kodlamaio.hrms.api.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org... | true |
8148a6753946f285644a7cda182d190b19e79b0a | Java | e-gov/DVK | /api/src/main/java/dvk/api/container/v2/Metainfo.java | UTF-8 | 413 | 2.078125 | 2 | [] | no_license | package dvk.api.container.v2;
public class Metainfo extends dvk.api.container.Metainfo<MetaManual, MetaAutomatic>
{
public void createDescendants(boolean manual, boolean automatic) {
if (manual) {
if (getMetaManual() == null) {
setMetaManual(new MetaManual());
}
}
if (automatic) {
if (... | true |
b8495e137d49914aa41951803853305162c016b3 | Java | isabellapiz/LinkedList | /LinkedList.java | UTF-8 | 6,088 | 4.125 | 4 | [] | no_license | package cs146S21.Piziali.project1;
public class LinkedList
{
private Node head;
private LinkedList list;
static class Node
{
String data;
Node next;
public Node(String data)
{
this.data = data;
next = null;
}
}
// This method in... | true |
19fbe52a818674fbb334e11ed92f117a6b79f45d | Java | h4hany/yeet-the-leet | /algorithms/Hard/828.count-unique-characters-of-all-substrings-of-a-given-string.java | UTF-8 | 1,584 | 3.71875 | 4 | [] | no_license | /*
* @lc app=leetcode id=828 lang=java
*
* [828] Count Unique Characters of All Substrings of a Given String
*
* https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/description/
*
* algorithms
* Hard (45.45%)
* Total Accepted: 10.6K
* Total Submissions: 23.2K
* Testca... | true |