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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
74e31f0d41b5f9142dba469701ef321285db438a | Java | Catfeeds/GymEquipment | /app/src/main/java/com/saiyi/gymequipment/home/model/request/GetTimesTotalService.java | UTF-8 | 524 | 1.789063 | 2 | [] | no_license | package com.saiyi.gymequipment.home.model.request;
import com.saiyi.gymequipment.home.model.bean.FitnessData;
import com.saiyi.libfast.http.BaseResponse;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
public interface ... | true |
ba1eea84e48ea1ebb5e21ccbaf3c9c0ba2f3e869 | Java | Pverdi/SCVet | /src/java/dao/EstoqueDAO.java | UTF-8 | 3,276 | 2.796875 | 3 | [] | no_license | package dao;
import static dao.DAO.fecharConexao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import model.Estoque;
/**
*
* @author lucsd
... | true |
21d3e3bd768158f9052e3fb785594379cfea72d1 | Java | oper-V/concurrency | /src/m2/e0/Main.java | UTF-8 | 1,456 | 3.09375 | 3 | [] | no_license | package m2.e0;
import java.util.concurrent.Callable;
public class Main {
public static void main(String... args) {
testArray(new Integer[0], 0);
testArray(new Integer[]{1, 4, 10, 2}, 10);
testArray(new Integer[]{1, 4, -10, 2}, 4);
testArray(new Integer[]{1}, 1);
}
private... | true |
9fd61a8cf7d7dd1c4697c623c53f3775f0c3f4ab | Java | bellmit/marketing-cloud | /marketing-tool-vo/src/main/java/cn/rongcapital/mkt/vo/out/TodayOut.java | UTF-8 | 761 | 1.890625 | 2 | [] | no_license | package cn.rongcapital.mkt.vo.out;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Created by byf on 10/28/16.
*/
public class TodayOut {
private String starDate;
private String today;
private String endDate;
@JsonProperty("StarDate")
public String getStarDate() {
return starD... | true |
515b535043ef9138fad5ba8fa7917443bdb4505b | Java | EduardF1/SDJ3 | /Session2/src/main/java/shared/clientserver/CustomerTransaction.java | UTF-8 | 285 | 2.046875 | 2 | [] | no_license | package shared.clientserver;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface CustomerTransaction extends Remote {
void customerWithdraw(double amount, int accountNo) throws RemoteException;
double getBalance(int account) throws RemoteException;
}
| true |
93ee6e458f880073c9c5c48fb70c849276fd54e9 | Java | AlexWorx/ALox-Logging-Library | /src.java/alib/com/aworx/lib/config/CLIArgs.java | UTF-8 | 7,040 | 2.71875 | 3 | [
"BSL-1.0"
] | permissive | // #################################################################################################
// ALib - A-Worx Utility Library
//
// Copyright 2013-2019 A-Worx GmbH, Germany
// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
// ##############################################... | true |
551462c186adb07f2b453aa5dd46da78614772f2 | Java | javalibrary/Orienteer | /orienteer-core/src/main/java/org/orienteer/core/dao/DAOIndexes.java | UTF-8 | 374 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.orienteer.core.dao;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotation to collect multiple {@link DAOIndex}
*/
@Retention(RUNTIME)
@Target({ TYPE })
... | true |
b4574b892b2d4c1d9aa6ec06f85a0a98c223c955 | Java | QuiltMC/quilt-loader | /src/test/java/org/quiltmc/test/lambda_strip/LambdaStripTester.java | UTF-8 | 3,420 | 2.390625 | 2 | [
"Apache-2.0",
"CC-BY-3.0",
"JSON"
] | permissive | /*
* Copyright 2022, 2023 QuiltMC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
bc888ed93d5e62201906856a9380ad89966b6be8 | Java | davibrandao18/Algesd | /src/fila/Coracao.java | UTF-8 | 2,221 | 3.140625 | 3 | [] | no_license | package fila;
public class Coracao {
public static void main(String args[])
{
int mat[][]= {
{0,0,1,1,1,1,0,0,1,1,1,1,0,0},
{0,1,0,0,0,0,1,1,0,0,0,0,1,0},
{1,0,0,0,0,0,0,0,0,0,0,0,0,1},
{1,0,0,0,0,0,0,0,0,0,0,0,0,1},
{0,1,0,0,0,0,0,... | true |
833d68caae91a6e6348434f533e7dcdc3af370da | Java | coderbyheart/mobcomp-uebungen | /Uebung_02-Aufgabe_04/src/de/hsrm/medieninf/mobcomp/ueb02/aufg03/CurrencyDbAdapter.java | UTF-8 | 5,577 | 2.53125 | 3 | [] | no_license | package de.hsrm.medieninf.mobcomp.ueb02.aufg03;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.S... | true |
41d221773b2afea3bb231d10d4d1af0c88784711 | Java | agaveplatform/science-apis | /agave-profiles/profiles-api/src/main/java/org/iplantc/service/profile/ProfileApplication.java | UTF-8 | 662 | 2.078125 | 2 | [
"BSD-3-Clause"
] | permissive | package org.iplantc.service.profile;
import org.iplantc.service.profile.resource.impl.InternalUserResourceImpl;
import org.iplantc.service.profile.resource.impl.ProfileResourceImpl;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;
public class ProfileApplication extends Applicatio... | true |
25b304f13ee403e8c1a995749efeaf2027515a35 | Java | federix8190/Silv | /back/main/java/py/com/ceamso/gestion/resource/CptCargosController.java | UTF-8 | 714 | 2.109375 | 2 | [] | no_license | package py.com.ceamso.gestion.resource;
import py.com.ceamso.base.WritableResource;
import py.com.ceamso.gestion.model.CptCargos;
import py.com.ceamso.gestion.service.CptCargosService;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import jav... | true |
403d84a0f5a33ab02cae1d43b7851997767ce4c4 | Java | yesamer/drools | /drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertedProperty.java | UTF-8 | 492 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package org.drools.impact.analysis.model.right;
public class InsertedProperty extends ModifiedProperty {
public InsertedProperty( String property ) {
this(property, null);
}
public InsertedProperty( String property, Object value ) {
super(property, value);
}
@Override
public ... | true |
0f143993d2ab7d9a589c9fdb4acb9712fdcadcb5 | Java | sacra62/nfc-logistiikka-server | /nfc/src/nfc/logistics/controllers/CommunicationController.java | UTF-8 | 679 | 2.203125 | 2 | [] | no_license | package nfc.logistics.controllers;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.FormParam;
import javax.ws.rs.core.MediaType;
import nfc.logistics.models.*;
@Produces({ MediaType.TEXT_XML })
@Path("/")
public class CommunicationControll... | true |
82a808b6a9be0ca5eaadbbc207250779737a790b | Java | haifeiforwork/tuotiansudai | /ttsd-mobile-api/src/test/java/com/tuotiansudai/api/service/MobileAppSendSmsServiceTest.java | UTF-8 | 5,589 | 2.171875 | 2 | [] | no_license | package com.tuotiansudai.api.service;
import com.tuotiansudai.api.dto.v1_0.BaseResponseDto;
import com.tuotiansudai.api.dto.v1_0.ReturnMessage;
import com.tuotiansudai.api.dto.v1_0.SendSmsCompositeRequestDto;
import com.tuotiansudai.api.dto.v1_0.VerifyCaptchaRequestDto;
import com.tuotiansudai.api.service.v1_0.impl.Mo... | true |
b2544ea1d4871f4e7d8431e07e8c7f0ef8e1df30 | Java | linux10000/goku-food | /src/main/java/com/akiratoriyama/gokufoodapi/enums/AddressType.java | UTF-8 | 1,400 | 2.3125 | 2 | [] | no_license | package com.akiratoriyama.gokufoodapi.enums;
import java.math.BigInteger;
import java.util.Optional;
import java.util.stream.Stream;
import lombok.Getter;
@Getter
public enum AddressType implements I18nEnum {
DELIVERY(BigInteger.ONE, Consts.PERSONADDRESS_TABLE, Consts.LEGAL_TYPE_FIELD, Consts.I18N_PREFIX + "DELIV... | true |
4f89cdaf3bf74309b480b724b3f6eaddc693bb69 | Java | petro-ushchuk/dissys-parcom | /src/main/java/lab4/exception/BadConnectionException.java | UTF-8 | 181 | 2.34375 | 2 | [] | no_license | package lab4.exception;
public class BadConnectionException extends Exception{
public BadConnectionException(String message) {
super(message, new Throwable());
}
}
| true |
f0b2dd4dcab1ba1bb67294e15af9f3315c6f9999 | Java | hyewon0218/java_src | /javase_prj/src/day1115/work16.java | UHC | 714 | 3.46875 | 3 | [] | no_license | class Homework {
public static void main(String[] args) {
//1
int i = -10;
int j = 2147483647;
boolean flag1=false, flag2=false, flag3=false, flag4=false;
System.out.println("Էµ ̸ 2 ̸ ~ ̿Ͽ 10 = "
+ ( i >= 0 ? Integer.toBinaryString(i) : ~i+1 ));
//2
j >>= 16;
System.out.println(" 2byte = " + j);
... | true |
d5942956539f762b9c037c79da233bc09838e12f | Java | zt713/RobotClient | /unoEye/src/main/java/com/chinatel/robot/RTCTest.java | UTF-8 | 1,024 | 2 | 2 | [] | no_license | package com.chinatel.robot;
import java.util.List;
import android.test.AndroidTestCase;
import android.util.Log;
import com.chinatel.robot.bean.HomeMemberInfo;
import com.chinatel.robot.db.dao.HomeMemberDao;
public class RTCTest extends AndroidTestCase {
private static final String TAG = "DBTest";
private HomeMe... | true |
ccb579e31330b498a98e3e67310a08a3388457be | Java | jelenas93/baby_shop | /src/tabele/TabelaKasa.java | UTF-8 | 1,865 | 2.796875 | 3 | [] | no_license | package tabele;
public class TabelaKasa {
private String barkod, sifra, naziv;
private Integer kolicina;
private Double cijena, vrijednost;
public TabelaKasa(){}
public TabelaKasa(String barkod, String sifra, String naziv, Integer kolicina, Double cijena, Double vrijednost) {
... | true |
f34734f33befadd35bb69bc5afbd0d0b60597b40 | Java | robinrastogi/learningJava | /CoreJava/sample_Project/src/jdbc_javaTpoint/InsertMultiplePrepared.java | UTF-8 | 1,790 | 3.140625 | 3 | [] | no_license | package jdbc_javaTpoint;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.io.*;
public class InsertMultiplePrepared {
public static void main(String args[]) {
Connection con = null;
try {
// Class.forName("oracle.jdbc.driver.OracleDriver");
//
// Co... | true |
8a8250ae8a129e67c42902c63eb5671f5533befd | Java | 4aka/Examples___Java | /J_UseKeyboardsKeys/Test.java | UTF-8 | 539 | 2.328125 | 2 | [] | no_license | package J_UseKeyboardsKeys;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class Test {
public static void main() throws AWTException {
Robot robot = new Robot();
try {
robot = new Robot();
}
catch (AWTException e) {
e.print... | true |
c977f7014c581fb600b9b7fd86da8764b4d1395c | Java | Lichio/beldon | /core/src/main/java/belog/annotation/Column.java | UTF-8 | 552 | 2.359375 | 2 | [] | no_license | package belog.annotation;
/**
* 字段注解
* Created by Beldon.
* Copyright (c) 2016, All Rights Reserved.
* http://beldon.me
*/
public @interface Column {
/**
* 字段名称
*
* @return String
*/
String name() default "";
/**
* 默认值
*
* @return String
*/
String defaultV... | true |
6323c581b16c16f621c11c393ca5f85d6fd76e50 | Java | thmarx/dataFilter | /src6/main/java/net/mad/data/datafilter/function/ValueAccessorFunktion.java | UTF-8 | 117 | 1.726563 | 2 | [] | no_license | package net.mad.data.datafilter.function;
public interface ValueAccessorFunktion<T, V> {
public V value(T type);
}
| true |
27b5903693a881a297e4dfed3feb9f525e1fb032 | Java | kjones-grand-circus/Lab15 | /src/CountriesTextFile.java | UTF-8 | 2,424 | 3.140625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class CountriesTextFil... | true |
6832c63838472a37da2ebab0a2b7d2d4d21011ef | Java | Eva3ds/MuSC-Tool-Demo-repo | /mutestdemo/src/main/java/cn/edu/nju/mutestdemo/Model/StateVariable.java | UTF-8 | 2,359 | 2.8125 | 3 | [] | no_license | package cn.edu.nju.mutestdemo.Model;
import cn.edu.nju.mutestdemo.ASTMutation.Mutant;
import cn.edu.nju.mutestdemo.EnumType.MuType;
import java.util.ArrayList;
public class StateVariable extends Var {
private boolean isIndexed;
private Object expression;
private String visibility;
private boolean isSt... | true |
4d7cc3c71a113a1722622bb1675e95f13e110394 | Java | Weathiel/secondhand_car_back | /src/main/java/eu/rogowski/dealer/payload/ResponseJSON.java | UTF-8 | 311 | 2.109375 | 2 | [] | no_license | package eu.rogowski.dealer.payload;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ResponseJSON {
String message;
int responseCode;
public ResponseJSON(String message, int responseCode) {
this.message = message;
this.responseCode = responseCode;
}
}
| true |
9a8449bc11d6249ec6651b54133695e641b00d5f | Java | Reymond2012/RocketLunchApi | /app/src/main/java/com/example/rocketlunchapi/model/DataSource.java | UTF-8 | 254 | 2.03125 | 2 | [] | no_license | package com.example.rocketlunchapi.model;
public interface DataSource {
void getLaunchData(String date);
interface DataListener{
void onLaunchRetrieval(RocketResponse rocketResponse);
void onError(Throwable throwable);
}
}
| true |
232e43da0f69abd7ee7869c90a26edd7d61f1512 | Java | AngelosDv/guessWho | /src/guesswho1/Game.java | UTF-8 | 15,365 | 3.6875 | 4 | [] | 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 guesswho1;
import java.util.Scanner;
/**
*
* @author angel
*/
public class Game {
Scanner scanInput = ne... | true |
de7a6a374b4b4fda96d76b9e7ce336c91dc9b55e | Java | mohanrajanna15/blackduck-alert | /src/main/java/com/synopsys/integration/alert/provider/blackduck/issues/BlackDuckProviderIssueModel.java | UTF-8 | 1,834 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /**
* blackduck-alert
*
* Copyright (c) 2020 Synopsys, Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you u... | true |
af7b3f118870e2ccc69d8e5120b84224fbe8e0ab | Java | drrilll/AI-Robot | /src/dang/AIrobot/AlgoThread.java | UTF-8 | 106 | 1.757813 | 2 | [] | no_license | package dang.AIrobot;
public abstract class AlgoThread extends Thread {
abstract Move getFinalMove();
}
| true |
474bc22b18b08836348b3f681030aa206c1e9e5a | Java | TadeudeCampos/SistemasDistribuidos01 | /src/aula/pkg1/lab/menosDois.java | UTF-8 | 485 | 2.421875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aula.pkg1.lab;
import java.util.Iterator;
import javax.swing.JOptionPane;
/**
*
* @author Theparanoic
*/
public class meno... | true |
dd42291cd6e1bd29bff852de7cf2843f58cbcaa7 | Java | elBukkit/MagicPlugin | /Magic/src/main/java/com/elmakers/mine/bukkit/tasks/DropActionTask.java | UTF-8 | 333 | 2.46875 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.elmakers.mine.bukkit.tasks;
import com.elmakers.mine.bukkit.wand.Wand;
public class DropActionTask implements Runnable {
private final Wand wand;
public DropActionTask(Wand wand) {
this.wand = wand;
}
@Override
public void run() {
wand.performAction(wand.getDropAction... | true |
e8a5f4179a4c8dd9b4dc9fda49cf4e08425aa833 | Java | XRiver/DevOpsTeachingPlatform | /DevOpsStaticCheck/src/main/java/nju/wqy/entity/IntegratedData.java | UTF-8 | 1,220 | 2.0625 | 2 | [] | no_license | package nju.wqy.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
@Data
@Entity
@Table(name = "integratedData")
public class IntegratedData {
@Id
@Column(name = "projectKey")
private String projectKey;
@Co... | true |
049f654ec1f537123eed40bf4d19db29294f4790 | Java | sevenzerolee/AndroidTest | /src/org/sevenzero/activity/MenuIconActivity.java | UTF-8 | 4,539 | 2.34375 | 2 | [] | no_license | package org.sevenzero.activity;
import java.util.ArrayList;
import java.util.List;
import org.sevenzero.R;
import org.sevenzero.menu.SettingMenu;
import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickLis... | true |
8e05ee8fb2e4ea88a33ec41d3d4f345284f73270 | Java | sotowang/leetcode | /src/main/数组/t1128/NumEquivDominoPairs.java | UTF-8 | 1,116 | 3.34375 | 3 | [] | no_license | package 数组.t1128;
import java.util.*;
/**
* @auther: sotowang
* @date: 2019/12/31 16:04
*/
public class NumEquivDominoPairs {
public int numEquivDominoPairs(int[][] dominoes) {
Map<Integer, Integer> map = new HashMap<>();
int count = 0;
for (int i = 0; i < dominoes.length; i++) {
... | true |
6dd4a100678f6ec754a474d7a23a3bfee4db9d02 | Java | smeup/asup | /org.smeup.sys.os.cmd/src/org/smeup/sys/os/cmd/QOperatingSystemCommandPackage.java | UTF-8 | 38,345 | 1.617188 | 2 | [] | no_license | /**
* Copyright (c) 2012, 2016 Sme.UP 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 is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.smeup.s... | true |
cd2907ddebcc92924084bfa5d8e3fe3e5e0b3941 | Java | Another7/CloudMusicBack-end | /src/main/java/star/sky/another/service/impl/MomentsServiceInterfaceImpl.java | UTF-8 | 1,305 | 2.25 | 2 | [] | no_license | package star.sky.another.service.impl;
import org.springframework.stereotype.Service;
import star.sky.another.dao.FollowMapper;
import star.sky.another.dao.MomentsMapper;
import star.sky.another.model.entity.Moments;
import star.sky.another.service.MomentsServiceInterface;
import java.util.ArrayList;
import java.util... | true |
a7af2ef41787122f58ec1cdcf47f2fd34fa3ffe4 | Java | Nonlone/newAdmin | /mop/src/main/java/com/feitai/admin/mop/advert/vo/AdvertGroupVo.java | UTF-8 | 694 | 2.109375 | 2 | [] | no_license | package com.feitai.admin.mop.advert.vo;
import com.feitai.admin.mop.advert.dao.entity.AdvertGroup;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import java.util.List;
@Data
public class AdvertGroupVo extends AdvertGroup {
private String groupIds;
... | true |
e074d0d45bdeee00dd5560af23ccef79eda25a4c | Java | AppExperts2005/spring-boot-aws | /note-analysis-function/src/main/java/dev/jozefowicz/companydashboard/function/NoteAnalysisHandler.java | UTF-8 | 2,798 | 2.359375 | 2 | [] | no_license | package dev.jozefowicz.companydashboard.function;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.SQSEvent;
import com.fasterxml.jackson.databind.ObjectMapper;
import software.amazon.awssdk.regions.Re... | true |
520dcab6b58f7fbb099eab68c9833f020d982f39 | Java | bitterbit/Parse-Dashboard-Android | /Parse/src/main/java/com/parse/ParseSchemaController.java | UTF-8 | 1,210 | 2.328125 | 2 | [] | no_license | package com.parse;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import bolts.Continuation;
import bolts.Task;
/* Package */ class ParseSchemaController {
private final ParseHttpClient restClient;
public ParseSchemaController(ParseHttpClient rest... | true |
0b3cd0194f41b21661bb95295e9cd565ccb66719 | Java | percussion/percussioncms | /system/src/main/java/com/percussion/install/RxAppConverter.java | UTF-8 | 20,053 | 1.828125 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, Inc.
*
* 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 applicabl... | true |
f8876044b4a720ada1d3d8845041ebed12bdaf53 | Java | AbsoluteChad/Skystone2020 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/subsystems/DriveTrain.java | UTF-8 | 10,177 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.subsystems;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.PIDCoefficients;
import com.qualcomm.robotcore.util.ElapsedTime;
import or... | true |
f6fdad52245982f38d538c977dc9f2e8b975fbae | Java | helloV7/cxd_kehuduan | /app/src/main/java/com/cxd/khd/adapter/SKOrderListAdapter.java | UTF-8 | 708 | 2.140625 | 2 | [] | no_license | package com.cxd.khd.adapter;
import android.view.ViewGroup;
import com.cxd.khd.view.viewholder.BaseViewHolder;
import com.cxd.khd.view.viewholder.SKOrderListItemViewHolder;
/**
* Created by chenweiqi on 2017/6/19.
*/
public class SKOrderListAdapter extends BaseRcvAdapter {
@Override
public BaseViewHolder ... | true |
cfdc6342cea999947de8db681da4ad21f6799913 | Java | windcaller31/algorithm_practise | /src/main/java/leetcode/leetcode121.java | UTF-8 | 718 | 4.03125 | 4 | [] | no_license | package leetcode;
public class leetcode121 {
public static void main(String args[]) {
int[] prices = {7,1,5,3,6,4};
System.out.print(maxProfit(prices));
}
//模拟每天买第二天卖掉,则会发现相隔n天的收益值等于每天的差值累加:
// 1 2 4 3 对应第二天卖掉第一天股票:0 1 2 -1 则 1 3 这相隔的两天正好是 0+1+2-1=2
public static int maxProfit(int[] prices) {
int max = 0;... | true |
998b9ecd783350046bdaafa833f2cb5a264d3d2e | Java | AlexandraAncuta13/Tema1POO | /src/main/SortFavoriteShows.java | UTF-8 | 408 | 2.53125 | 3 | [] | no_license | package main;
import fileio.SerialInputData;
import java.util.Comparator;
public class SortFavoriteShows implements Comparator<SerialInputData> {
/**
* Sortez serialele dupa numarul de aparitii in listele de favorite
*/
public final int compare(final SerialInputData serial1, final SerialInputData... | true |
4bbb67e5f531b873baac0751711808e66aa45ecf | Java | jjljjl/pets-town | /src/main/java/pet/dao/AdminMapper.java | UTF-8 | 524 | 1.84375 | 2 | [] | no_license | package pet.dao;
import org.apache.ibatis.annotations.Param;
import pet.model.Admin;
import java.util.List;
public interface AdminMapper {
int deleteByPrimaryKey(Integer id);
int insert(Admin record);
int insertSelective(Admin record);
List<Admin> selectAdminByName(@Param("adminName") String adminN... | true |
bde541d916a6fcb2cc582051e2748da32460f938 | Java | Veeresh8/Hooked | /app/src/main/java/veer/com/hooked/database/Collaborators.java | UTF-8 | 2,557 | 2.375 | 2 | [] | no_license | package veer.com.hooked.database;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
@Entity
public class Collaborators {
@PrimaryKey(autoGenerate = true)
private int id;
private String UID;
private String author;
private String date;
private String ... | true |
537a2080b570c7e73fbe8534b2721c8f9f669d9a | Java | kkoshman/Labs | /OrderHandling/test/bsu/orderhandling/test/OrderHandlingTest.java | UTF-8 | 2,419 | 2.484375 | 2 | [] | no_license | package bsu.orderhandling.test;
import static org.junit.Assert.*;
import java.util.HashMap;
import org.junit.Test;
import bsu.orderhandling.command.Command;
import bsu.orderhandling.command.order.AddProductCommand;
import bsu.orderhandling.command.ICommandState;
import bsu.orderhandling.command.UserMessa... | true |
389f61720ec0c6e6c6bfa710bc54956d453557f9 | Java | dotob/ovt-java | /tools/Mailer.java | UTF-8 | 8,121 | 2.25 | 2 | [] | no_license | package tools;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.nio.charset.Charset;
import java.util.Properties;
//import org.columba.ristretto.auth.AuthenticationException;
//import org.columba.ristretto.auth.AuthenticationFactory;
//import org.columba.ristretto.auth.... | true |
0f12485d1da50dfb2c3f316709c3093c48e690c0 | Java | bory1309/MyStore | /Copy (2) of store/src/main/java/ua/repository/FirstNameRepository.java | UTF-8 | 248 | 1.859375 | 2 | [] | no_license | package ua.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ua.entity.FirstName;
public interface FirstNameRepository extends JpaRepository<FirstName, Integer>{
FirstName findByName(String name);
}
| true |
0c1753131e782138b62a25e971f221570d50adca | Java | njmube/santanderBatch | /src/com/interfactura/firmalocal/datamodel/CfdiReceptor.java | UTF-8 | 1,447 | 1.757813 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.interfactura.firmalocal.datamodel;
/**
*
* @author Maximino Llovera
*/
public class CfdiReceptor {
private String ... | true |
c2c4b9d0fe3d02d56d28832769b02d694138afb9 | Java | facebook/buck | /test/com/facebook/buck/versions/VersionMatchedCollectionTest.java | UTF-8 | 6,537 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | true |
15712d64dab8ab7f0452f331dd9c7aef5f2c1d3a | Java | kamontat/Converter | /src/main/java/com/kamontat/example/ConvM2H.java | UTF-8 | 1,056 | 2.65625 | 3 | [
"MIT"
] | permissive | package com.kamontat.example;
import com.kamontat.convert.Converter;
import com.kamontat.convert.Result;
import com.kamontat.constance.Protocol;
import com.kamontat.utilities.FilesUtil;
import com.kamontat.utilities.URLManager;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.n... | true |
a872251df50fff99e4852c0baa984dac2bc3d57c | Java | tim-deh/lms | /test/com/ss/training/publisher/PublisherTest.java | UTF-8 | 808 | 2.578125 | 3 | [] | no_license | /**
*
*/
package com.ss.training.publisher;
import static org.junit.Assert.*;
import com.ss.training.publisher.Publisher;
import org.junit.Test;
/**
* @author nrdxp
*
*/
public class PublisherTest {
Publisher pub = new Publisher("penguin", "1243 Angst Ave");
Publisher pub2 = new Publisher("Random House", "12... | true |
5dff7ca6232dff40635baf66be75552f87be04b2 | Java | AzuraGroup/hevelian-olastic | /olastic-core/src/main/java/com/hevelian/olastic/core/utils/ApplyOptionUtils.java | UTF-8 | 2,931 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.hevelian.olastic.core.utils;
import org.apache.olingo.server.api.uri.queryoption.ApplyItem;
import org.apache.olingo.server.api.uri.queryoption.ApplyOption;
import org.apache.olingo.server.api.uri.queryoption.apply.Aggregate;
import org.apache.olingo.server.api.uri.queryoption.apply.Filter;
import or... | true |
be23cbd9dc2a03fe9fe6a787d98d3bdb9f136fdd | Java | IMIercY/IDictionary | /app/src/main/java/com/mercy/idictionary/activities/MainActivity.java | UTF-8 | 6,138 | 2.171875 | 2 | [] | no_license | package com.mercy.idictionary.activities;
import android.app.SearchManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.widget.ContentLoadingProgressBar;
import android.support.v7.app.AppCompatAc... | true |
437788c59f25768dca0518c4c70856537d817a59 | Java | mateusz93/Book-rental | /app/src/main/java/project/bookrental/models/BorrowedBookModel.java | UTF-8 | 887 | 2.59375 | 3 | [] | no_license | package project.bookrental.models;
import java.util.Date;
/**
* Created by Mateusz on 05.01.2018.
*/
public class BorrowedBookModel {
private Long bookId;
private String userId;
private Date borrowDate;
public BorrowedBookModel() {
}
public BorrowedBookModel(Long bookId, String userId, D... | true |
c9c48b62055c1c05ff54c9dadc9d1dd1058725f2 | Java | iFocused/iFocused | /DaemonBlocker/src/application/entities/TaskStatus.java | UTF-8 | 92 | 1.726563 | 2 | [] | no_license | package application.entities;
public enum TaskStatus {
INITALIZED,
COMPLETED,
REMOVED
}
| true |
70e597d8a952b4cb99a086c370c809758bd969e6 | Java | febagni/project-pacman | /src/AudioPlayer.java | UTF-8 | 4,320 | 3.0625 | 3 | [] | no_license | /*
* @file AudioPlayer.java
*
* @brief Class to implement audio (music and sfx) for the game
*
* @author Alexandre Marques Carrer <alexandrecarrer@usp.br>
* @author Felipe Bagni <febagni@usp.br>
* @author Gabriel Yugo Kishida <gabriel.kishida@usp.br>
* @author Gustavo Azevedo Correa <guazco@usp.br>
*
* @d... | true |
fe59cfad8b240629240fff7a22a9f05c1a0ec477 | Java | KekemonBS/PMS | /LAB_8/app/src/main/java/ua/kpi/comsys/iv8106/tools/database/DBHelper.java | UTF-8 | 1,307 | 2.484375 | 2 | [] | no_license | package ua.kpi.comsys.iv8106.tools.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
public class DBHelper extends SQLiteOpenHelper {
public DBHelper(@Nullable Context context, @Nullable ... | true |
202105bc327883df9d6c7e55120f41ce8bd8f36e | Java | Solkan04/Java | /Strings_Programs/stringClassMethods/Substring.java | UTF-8 | 357 | 3.15625 | 3 | [] | no_license | package stringClassMethods;
public class Substring
{
public static void main(String[] args)
{
subStringDemo();
}
static void subStringDemo()
{
String str="Welcome to JAVA";
String strRes1=str.substring(11);
System.out.println(strRes1);
//=========================
String strRes2=str.substring(0, 7);
... | true |
773d4746090643e8334be8f42b5b43c212c05e23 | Java | seba3c/java-coding-challenges | /src/hackerRank/strings/CamelCase.java | UTF-8 | 844 | 3.796875 | 4 | [] | no_license | package hackerRank.strings;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
import java.util.Scanner;
/**
* @link https://www.hackerrank.com/challenges/camelcase/problem
*/
public class CamelCase {
static int camelCase(String s) {
int count = 0;
if (s == null || s.trim() == "") {... | true |
bafc35039fb57891a8ce668199ccf273a5c66b58 | Java | Taddeus10/Curso_de_Mobile | /Aula8/src/br/com/digitalhouse/Exercicio1.java | UTF-8 | 273 | 2.359375 | 2 | [] | no_license | package br.com.digitalhouse;
public class Exercicio1 {
private String lot;
public Exercicio1(String lot) {
this.lot = lot;
}
public String getLot() {
return lot;
}
public void setLot(String lot) {
this.lot = lot;
}
}
| true |
a2e6f3295ad9699274c379f5a08be10c675a8c60 | Java | murali3313/expendio | /app/src/main/java/com/thriwin/expendio/PieChartEntryClickLoader.java | UTF-8 | 1,150 | 2.359375 | 2 | [] | no_license | package com.thriwin.expendio;
import android.os.Handler;
import android.os.Message;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import static com.thriwin.expendio.Utils.isNull;
public class PieChartEntryClickLoader extends Thread {
private String label;
private Map<String, Expen... | true |
144aaa2785e8a73a012849894abbcdb7c9e4af69 | Java | nerellaanusha/car-rental-java | /src/main/java/com/carrental/controller/UserController.java | UTF-8 | 8,163 | 2.25 | 2 | [] | no_license | package com.carrental.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.mail.SimpleMail... | true |
e874168cabf577ea861b8131f719f7d3555c630a | Java | JuanJsPM/Extraordinaria-IS2 | /src/view/CatalogueLoader.java | UTF-8 | 113 | 1.84375 | 2 | [] | no_license | package view;
import model.Catalogue;
public interface CatalogueLoader {
public Catalogue load();
}
| true |
7bfcbab69375086859b90927d22d8fc6c4e58c9f | Java | Abel-ylj/dubbo_demo | /provider_api/src/main/java/cn/ylj/api/IUserSerivce.java | UTF-8 | 235 | 1.789063 | 2 | [] | no_license | package cn.ylj.api;
import cn.ylj.entity.UserEntity;
import java.util.List;
/**
* @author : yanglujian
* create at: 2021/1/15 4:46 下午
*/
public interface IUserSerivce {
List<UserEntity> findAll();
void update();
} | true |
1829f391a1e078e324c578acb39c600f972856cd | Java | jinxTelesis/bcs345 | /class3Inport/src/MyJFrame.java | UTF-8 | 1,050 | 3.046875 | 3 | [] | no_license |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class MyJFrame extends JFrame{
public MyJFrame(){
//in here I will...
JPanel allContent = new JPanel();//A- create a JPanel that will hold multiple components
//allCont... | true |
d962ae3b55332931f79ed8fa5dac7077ef0c7b05 | Java | Craftizz/mNPC | /src/main/java/io/github/craftizz/mnpc/managers/NPCManager.java | UTF-8 | 2,105 | 2.640625 | 3 | [] | no_license | package io.github.craftizz.mnpc.managers;
import io.github.craftizz.mnpc.MNPC;
import io.github.craftizz.mnpc.npc.Page;
import io.github.craftizz.mnpc.npc.SocialNPC;
import io.github.craftizz.mnpc.npc.UserData;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import... | true |
bdd8bfe6fc93f89dc880365b8d44d2b5f38781a1 | Java | DottaPaperella/TALight | /TAL_lib/Java/Env.java | UTF-8 | 2,053 | 2.71875 | 3 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication17;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
/**
*
* @author UTENTE
*/
impo... | true |
b996ba2e68174c515f5297d32c64e904facfc94f | Java | chiirz/TestProjectFingerMenu | /src/de/main/main.java | ISO-8859-1 | 5,316 | 2.515625 | 3 | [] | no_license | package de.main;
import java.io.Console;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.AbsoluteLayout;
import android.widget.ImageButton;
import android.widget.R... | true |
fa93866de86506ee1998a1e53d5338e8062afffe | Java | TetsuoCologne/mathe-prog | /src/FiedlerKrebs/EuDModel.java | UTF-8 | 1,548 | 3.140625 | 3 | [] | no_license | package FiedlerKrebs;
import java.util.Observable;
/**
* Diese Klasse berechnet den größten gemeinsamen Teiler und die Bezout Koeffizienten nach dem Erweiterten
* Euklidischen Algorithmus.
* @author Marc Fiedler, Franziska Krebs
*
*/
public class EuDModel extends Observable {
private int a, b, ggt,b... | true |
67b611b87fa2645a64b2fbcbfbd0e1ed73203d14 | Java | pixelationteam/dietfix-project | /src/pup/thesis/nlu/WordSynonym.java | UTF-8 | 2,171 | 2.46875 | 2 | [] | no_license | package pup.thesis.nlu;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
import net.didion.jwnl.JWNLException;
import net.didion.jwnl.data.IndexWord;
import net.didion.jwnl.data.POS;
import net.didion.jwnl.data.PointerType;
import net.didion.jwnl.data.Syn... | true |
2366e7f23b2ad77e44f298f4ebe2377766658c13 | Java | gtdocker/ivory | /gtsoftware/ivoryserver4j/resourceadapters/samples/src/gtsoft/ivory/samples/jca/InstallationVerificationServlet.java | UTF-8 | 8,614 | 2.234375 | 2 | [] | no_license | /**********************************************************************/
/* */
/* Copyright 2012, GT Software, Inc. */
/* All rights reserved. */
/* ... | true |
2a5e0dedc8d28e7aea8b2dabd9ad199d1ada4578 | Java | saffyA/shopoholics | /src/main/java/com/vapasians/shopoholics/model/CartItem.java | UTF-8 | 1,000 | 2.265625 | 2 | [] | no_license | package com.vapasians.shopoholics.model;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name="cartitem")
public class CartItem {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "cartitemid")
private int cartItemId;
@Column(name = "userid")
private int us... | true |
f908c300756a9307b26c9a574204d8e307daa701 | Java | NoobsDevelopers/L2Nextgen | /java/l2n/game/network/clientpackets/RequestHandOverPartyMaster.java | UTF-8 | 688 | 2.421875 | 2 | [] | no_license | package l2n.game.network.clientpackets;
import l2n.game.model.actor.L2Player;
public class RequestHandOverPartyMaster extends L2GameClientPacket
{
private final static String _C__0C_REQUESTHANDOVERPARTYMASTER = "[C] 0c RequestHandOverPartyMaster";
private String _name;
@Override
public void readImpl()
{
_nam... | true |
3d3be89d4b04a6e03fe2cb88f6e63cab050e5a69 | Java | qq877693928/Program_Algorithm | /app/src/main/java/joneslee/android/com/algorithm/Tree_All_OrderTrav.java | UTF-8 | 2,200 | 3.78125 | 4 | [] | no_license | package joneslee.android.com.algorithm;
import java.util.Stack;
/**
* Description:树的先中后序排序,非递归
* Reference:http://biaobiaoqi.github.io/blog/2013/04/27/travsal-binary-tree/
*
* @author lizhenhua9@wanda.cn (lzh)
* @date 16/4/5 16:53
*/
public class Tree_All_OrderTrav {
private TreeNode root;
public stati... | true |
76b45fd96df89166c3be6104043820b53a6d6e5e | Java | vostok/hercules | /hercules-sink/src/test/java/ru/kontur/vostok/hercules/sink/filter/PatternTreeTest.java | UTF-8 | 5,297 | 2.625 | 3 | [
"MIT"
] | permissive | package ru.kontur.vostok.hercules.sink.filter;
import org.junit.jupiter.api.Test;
import ru.kontur.vostok.hercules.protocol.Type;
import ru.kontur.vostok.hercules.protocol.Variant;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import static org.junit.jupiter.api.Assertions.assertEquals;
i... | true |
0780715205a571f287700da55c1f9a471d2d7fbf | Java | kingking888/jun_java_plugin | /java_plugin/jun_dbutil/jun_jdbc/doc/day18_jdbc/day18_jdbc/源码/day18_01_tx2/src/com/itheima/dao/impl/AccountDaoImpl.java | UTF-8 | 921 | 2.453125 | 2 | [] | no_license | package com.itheima.dao.impl;
import java.sql.Connection;
import java.sql.SQLException;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import com.itheima.dao.AccountDao;
import com.itheima.domain.Account;
public class AccountDaoImpl implements AccountDao {
pr... | true |
c9437bef9da996b58d57c5dfce3506c03e2c5899 | Java | pradyot-09/NegotiationAgent | /src/ai2017/Group19.java | UTF-8 | 4,221 | 2.296875 | 2 | [] | no_license | package ai2017;
import java.util.List;
import negotiator.AgentID;
import negotiator.Bid;
import negotiator.Deadline;
import negotiator.actions.Accept;
import negotiator.actions.Action;
import negotiator.actions.Offer;
import negotiator.bidding.BidDetails;
import negotiator.parties.AbstractNegotiationParty;
import neg... | true |
0a5a4976550da620e2ee646290fc1b495d3ad243 | Java | chinthakadd/fast-money-transfer | /src/main/java/com/chinthakad/samples/fmt/api/AccountHandlerProvider.java | UTF-8 | 4,701 | 2.265625 | 2 | [] | no_license | package com.chinthakad.samples.fmt.api;
import com.chinthakad.samples.fmt.core.model.dto.AccountListHolder;
import com.chinthakad.samples.fmt.core.model.dto.TransferListHolder;
import com.chinthakad.samples.fmt.core.model.dto.TransferRequestDto;
import com.chinthakad.samples.fmt.seedwork.queue.AccountSvcMessage;
impor... | true |
62da294839ff023e508cbea25dbc2408f1c4b3a4 | Java | chenjie112358/my20201218 | /socialnetworkanalysis.java | UTF-8 | 624 | 2.578125 | 3 | [] | no_license |
class SocialNetworkAnalysis {
public static void main(String[] args) {
String questionStatus = "XX";
System.out.print("For the STATUS I chose question " + questionStatus + " and my answer is: ");
System.out.println("NONE");
String questionUser = "XX";
System.out.print... | true |
2da829579b0a6e088936382b7f6d3158c5d4410a | Java | julianGoh17/DistributedBlackboxOperations | /gossip/src/test/java/io/julian/gossip/models/SynchronizeUpdateTest.java | UTF-8 | 2,717 | 2.421875 | 2 | [] | no_license | package io.julian.gossip.models;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import org.junit.Assert;
import org.junit.Test;
import tools.AbstractHandlerTest;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
publi... | true |
55a2e026a0d49c2acf33cdb71a3908b0b4f925af | Java | KrivonosMS/otus-spring-framework-2020-02 | /homework-02/src/main/java/ru/otus/krivonos/exam/infrastructore/ScanReader.java | UTF-8 | 114 | 1.75 | 2 | [] | no_license | package ru.otus.krivonos.exam.infrastructure;
public interface ScanReader {
String nextLine();
void close();
} | true |
200663bbd8474f5114cbd14340a5d06c616559d0 | Java | sagarnikam123/learnNPractice | /codeChef/src/medium/unsolved/PowerfulSum.java | UTF-8 | 837 | 3.3125 | 3 | [
"MIT"
] | permissive | /**
The powerful sum
Let us calculate the sum of k-th powers of natural numbers from 1 to n. As the result can be quite large,
output the result modulo some integer p.
Input
First t<=10 - the number of test cases.
Each test case consist of numbers: 1<=n<=1000000000, 1<=k<=100, 1<=p<=1000000000.
Output
For e... | true |
846327254f71399d153892ffdeb95fc345d94f03 | Java | wuranjia/mercury | /src/main/java/com/hy/lang/mercury/service/impl/SmsService.java | UTF-8 | 5,019 | 1.945313 | 2 | [] | no_license | package com.hy.lang.mercury.service.impl;
import com.hy.lang.mercury.client.cmpp.mina.cmpp.client.SmsSendService;
import com.hy.lang.mercury.client.ws.SmsStatus;
import com.hy.lang.mercury.common.Constants;
import com.hy.lang.mercury.common.entity.PageList;
import com.hy.lang.mercury.dao.SmsDeliverMapper;
import com.h... | true |
25cdd829cbe6dfbfe0bd6047e3dcf8ccdc12a219 | Java | 744719042/MyApp | /order/src/main/java/com/example/order/adapter/OrderAdapter.java | UTF-8 | 1,253 | 2.21875 | 2 | [] | no_license | package com.example.order.adapter;
import android.content.Context;
import android.widget.ImageView;
import com.example.base.recycler.BaseRecyclerAdapter;
import com.example.base.recycler.BaseRecyclerViewHolder;
import com.example.imagefetcher.ImageFetcher;
import com.example.order.R;
import com.example.order.model.Or... | true |
ac77c30ccbb0326af09963f14eb7e8582afc74cb | Java | nitishgoyal13/revolver | /revolver-model/src/main/java/io/dropwizard/revolver/optimizer/utils/OptimizerUtils.java | UTF-8 | 2,815 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package io.dropwizard.revolver.optimizer.utils;
import com.google.common.collect.Lists;
import io.dropwizard.revolver.optimizer.config.OptimizerConcurrencyConfig;
import io.dropwizard.revolver.optimizer.config.OptimizerConfig;
import io.dropwizard.revolver.optimizer.config.OptimizerConfigUpdaterConfig;
import io.dropw... | true |
85679e2af1f870d6d6670c2335eac3b26d150faa | Java | phamvanhai-auto/mvn-hybrid-mixproject | /src/main/java/pageUIs/hrm/MyInfoUI.java | UTF-8 | 444 | 1.515625 | 2 | [] | no_license | package pageUIs.hrm;
public class MyInfoUI {
public static final String EMPLOYEE_LIST_LINK = "//a[normalize-space()='Employee List']";
public static final String CHANGE_AVATAR = "//img[@id='empPic']";
public static final String SELECT_PICTURE = "//input[@id='photofile']";
public static final String AVATAR_IMG = "/... | true |
b198ff4a1057b393d72a116a4408fa05c19a3fe8 | Java | yeoman-projects/generator-jhipster-file-handling | /generators/app/templates/src/test/java/package/internal/model/sampleDataModel/CurrencyTableMapperTest.java | UTF-8 | 613 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package <%= packageName %>.internal.model.sampleDataModel;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class CurrencyTableMapperTest {
private CurrencyTableMapper currencyTableMapper;
@BeforeEach
public void... | true |
10f1632be07ad00fd42c07b306f2c990c4595bd2 | Java | hkmujj/looker-core | /looker-core/src/main/java/com/looker/core/controller/GfaAuthController.java | UTF-8 | 8,225 | 2.296875 | 2 | [] | no_license | package com.looker.core.controller;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log... | true |
b76ffd443c466f6114958bc95338f54a10831e34 | Java | YuryHuseu/restTest | /JAX-RS-SERVER-PROJECT/src/main/java/com/rest/server/testData/TestData.java | UTF-8 | 140 | 1.609375 | 2 | [] | no_license | package com.rest.server.testData;
import java.util.List;
public interface TestData<T> {
List<T> getEntities();
T getEntity();
}
| true |
9e136fa858176e0d55d9bb4f9faa0b1c0f3a8a39 | Java | echirinosmayaudon/DAG-RICHIESTA-BADGE | /dag-intranet-20/modules/scadenze-badge/scadenze-badge-api/src/main/java/com/intranet/mef/scadenze/badge/costants/ScadenzeBadgeDestinationNames.java | UTF-8 | 182 | 1.609375 | 2 | [] | no_license | package com.intranet.mef.scadenze.badge.costants;
public class ScadenzeBadgeDestinationNames {
public static final String SCADENZE_BADGE = "intranet/mef/scadenze_badge";
}
| true |
97bc2edb95e8ae2d454ef97e51917c74632977c8 | Java | gabrysg/restaurant | /src/main/java/com/restaurant/controller/RestaurantExceptionController.java | UTF-8 | 1,901 | 2.28125 | 2 | [] | no_license | package com.restaurant.controller;
import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpStatus;
import org.springframework.mail.MailSendException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.ann... | true |
5189bc282f50ca4e342a3306f053c3bfecc0812b | Java | anboralabs/gps-component | /gps-component/src/main/java/co/anbora/component/location/UtilPermission.java | UTF-8 | 578 | 2.109375 | 2 | [
"MIT"
] | permissive | package co.anbora.component.location;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import androidx.core.content.ContextCompat;
/**
* Created by dalgarins on 03/10/18.
*/
public class UtilPermission {
private UtilPermission(){
}
/**
* Check l... | true |
23e07d765409c50a57f7098c729242741b492049 | Java | haniyeka/QBF_Experiments | /QBF_solve_inst/feature_extraction/QbfFeatureDistribution.java | UTF-8 | 2,001 | 2.0625 | 2 | [] | no_license | /* QbfFeatureDistribution - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
class QbfFeatureDistribution extends Feature
{
public QbfFeatureDistribution() {
feature_.put("EXIST_LIT_PER_CLAUSE", new Integer(0));
feature_.put("FORALL_LIT_PER_CLAUSE", new Integer(1));
feature_.put("LIT_PER_CLAUSE", ne... | true |
c4a3e554665a03f2c07b98ad451ee5a6d18f7459 | Java | MrWen1991/myproject | /src/main/java/top/winkin/http/Method.java | UTF-8 | 99 | 1.6875 | 2 | [] | no_license | package top.winkin.http;
/**
*/
public enum Method {
//目前仅支持两个
POST, GET
}
| true |
21f473299a38ceb5b03198ba01285d7a69cec41e | Java | honeyflyfish/com.tencent.mm | /src/com/tencent/mm/plugin/sns/i/a/a/a/c$a$3$1$1.java | UTF-8 | 664 | 1.53125 | 2 | [] | no_license | package com.tencent.mm.plugin.sns.i.a.a.a;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;
final class c$a$3$1$1
implements Animation.AnimationListener
{
c$a$3$1$1(c.a.3.1 param1) {}
public final void onAnimationEnd(Animatio... | true |
a60c17778f3ff1e10216cc53495b4110575db754 | Java | nirvanarsc/EPI | /epi/HonorsClass/RotateArray.java | UTF-8 | 1,077 | 2.6875 | 3 | [] | no_license | package epi.HonorsClass;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import epi.test_framework.EpiTest;
import epi.test_framework.TimedExecutor;
import epi.utils.TestRunner;
public final class RotateArray {
public static void rotateArray(int rotateAmount, List<Integer> list)... | true |