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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7027673566aa378e343379ceac2e35e5c4224d1d | Java | Mathias-Ademar/TFCRailcraft | /src/main/java/com/vidaj/tfcrailcraft/TFCRailcraft.java | UTF-8 | 1,071 | 1.945313 | 2 | [
"MIT"
] | permissive | package com.vidaj.tfcrailcraft;
import com.vidaj.tfcrailcraft.proxy.CommonProxy;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.com... | true |
136c50d70738f14854cc58dbb4aad3b4ab976b36 | Java | KockocSNS/Kockoc | /app/src/main/java/com/kocapplication/pixeleye/kockocapp/navigation/NicknameChangeActivity.java | UTF-8 | 3,415 | 2.359375 | 2 | [] | no_license | package com.kocapplication.pixeleye.kockocapp.navigation;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import an... | true |
12330356fc08e8e348d42b35714b10809e1b8034 | Java | callistaenterprise/ml-raml-labb | /src/main/java/com/az/ip/api/services/model/Pageable.java | UTF-8 | 392 | 2.140625 | 2 | [] | no_license | package com.az.ip.api.services.model;
/**
* Created by magnus on 21/08/15.
*/
public class Pageable {
int page = 0;
int size = 10;
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
public int getSize() {
return size;
}... | true |
7c71cc2d7f9b9e289a83b3d1f8afc0be69e7fd72 | Java | idanmor/NegevSat-2015 | /src/data/Command.java | UTF-8 | 897 | 2.59375 | 3 | [] | no_license | package data;
public enum Command implements CommandWithDescription {
MOVE_TO_SAFE(1),
MOVE_TO_STANDBY(2),
MOVE_TO_OP(3),
FORMAT_ENERGY(4),
FORMAT_TEMP(5),
FORMAT_STATIC(6),
FORMAT_MIXED(7),
SBAND_ON(8,"Set Sband on"),
SBAND_STANDBY(9,"Set Sband to Standby"),
PAYLOAD_ON(10,"Set Payload on"),
PAYLOAD_STANDB... | true |
32d09fc62b03ac8a417facb789c5d658ad34ffae | Java | Nepxion/Marvel | /nepxion-swing/src/com/nepxion/swing/ui/explorer/UIExplorerHierarchy.java | UTF-8 | 1,674 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.nepxion.swing.ui.explorer;
/**
* <p>Title: Nepxion Swing</p>
* <p>Description: Nepxion Swing Repository</p>
* <p>Copyright: Copyright (c) 2010</p>
* <p>Company: Nepxion</p>
* @author Neptune
* @email 1394997@qq.com
* @version 1.0
*/
import com.nepxion.swing.framework.dockable.JDockable;
import com... | true |
c49858933414871f47c4b8f3697a30d095fe01dd | Java | cx7388/GraceAge | /da17/da17-war/src/java/controller/ServiceList.java | UTF-8 | 2,930 | 2.15625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import dao.OlderadultFacadeLocal;
import dao.ServiceFacadeLocal;
import intercepter.Loggable;
import javax.inject.... | true |
8b1b815a46d84902ba029ff5cac5000f3c1c5db6 | Java | mdalesio/ComponentDB | /src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeController.java | UTF-8 | 4,591 | 2.125 | 2 | [] | no_license | /*
* Copyright (c) UChicago Argonne, LLC. All rights reserved.
* See LICENSE file.
*/
package gov.anl.aps.cdb.portal.controllers;
import gov.anl.aps.cdb.portal.controllers.settings.ItemTypeSettings;
import gov.anl.aps.cdb.portal.controllers.utilities.ItemTypeControllerUtility;
import gov.anl.aps.cdb.portal.model.db... | true |
d454677951ec31e4b6f614757761036df49efbdd | Java | aislinnsmyth/Algorithms-2ndYear | /CompetitionFloydWarshall/src/CompetitionTests.java | UTF-8 | 2,936 | 2.546875 | 3 | [] | no_license | import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.Assert;
public class CompetitionTests {
@Test
public void testDijkstraConstructor() {
String filename = "tinyEWD.txt";
int sA = 60,sB=80, sC=50;
CompetitionDijkstra dj = new CompetitionDijkstra(filename, sA, sB,... | true |
773685b6e198de6af34f0c57ee21bcc0c6100f45 | Java | vinhbachkhoa/Spring-Boot-Angular2 | /SpringBoot-Angular /src/main/java/com/app/repository/MyRepository.java | UTF-8 | 262 | 1.882813 | 2 | [] | no_license | package com.app.repository;
import java.util.List;
import com.app.model.Person;
import org.springframework.data.repository.CrudRepository;
public interface MyRepository extends CrudRepository<Person, Integer> {
List<Person> findByNameContaining(String q);
} | true |
1f8cec0c894799ae12ae43c12cf559b59508d51d | Java | marcelosartor/curso-ESR | /src/main/java/com/algaworks/algafood/api/openapi/controller/CidadeControllerOpenApi.java | UTF-8 | 2,671 | 2.359375 | 2 | [] | no_license | package com.algaworks.algafood.api.openapi.controller;
import javax.validation.Valid;
import org.springframework.hateoas.CollectionModel;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import com.algaworks.algafood.api.exceptionhandler.Problem... | true |
99021987f7035e766fa948edc101a598c449ec92 | Java | LeoChenHere/projects | /YESApp/src/com/yulon/yesapp/act/Main.java | UTF-8 | 5,429 | 1.992188 | 2 | [] | no_license | package com.yulon.yesapp.act;
import static com.leo.android.util.Constants.*;
import com.leo.android.util.*;
import com.leo.android.util.interfaces.UtilActivity;
import com.yulon.yesapp.R;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.*;
import android.view.Gestur... | true |
88d3ea13b76c5464fe4ec8491568bea3f7108268 | Java | geniusgeek/effectivejavaegs | /src/main/java/org/effectivejava/examples/chapter03/item08/composition/CounterPoint.java | UTF-8 | 1,010 | 3.234375 | 3 | [] | no_license | // Trivial subclass of Point - doesn't add a value component - Page 39
package org.effectivejava.examples.chapter03.item08.composition;
import java.util.concurrent.atomic.AtomicInteger;
public class CounterPoint {
private static final AtomicInteger counter = new AtomicInteger();
private final Point point;... | true |
c15cf9034be491ff6bd5f606ffd84ce50c4398f1 | Java | RSoumaya/AMETIX---ERP-SSII- | /JavaSource/com/resotrekk/model/Invitation.java | UTF-8 | 2,255 | 2.0625 | 2 | [] | no_license | package com.resotrekk.model;
// Generated 18 juin 2015 09:54:20 by Hibernate Tools 3.4.0.CR1
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDE... | true |
3b68539d32552be55a7a1c6923cd9e64f8277440 | Java | abhishek-proxy/Attendmare-android | /app/src/main/java/com/attendmare/linux/attendmare/LoginScreenFragment.java | UTF-8 | 1,474 | 1.992188 | 2 | [] | no_license | package com.attendmare.linux.attendmare;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import android.widget.AdapterView;
import an... | true |
86410ee93a387e2b11e96a43c6373da8cea29beb | Java | cuongcs4/VoiceAttackManagement | /app/src/main/java/com/example/myapplication/PagerAdapter.java | UTF-8 | 975 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.example.myapplication;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
public class PagerAdapter extends FragmentStatePagerAdapter {
final int pageCount = 2;
... | true |
a719c9646cf0ec428b0360e53ccbc0f14be93de0 | Java | thebiguno/moss.restlet | /src/ca/digitalcave/moss/restlet/util/OverridableResourceBundle.java | UTF-8 | 1,296 | 2.625 | 3 | [] | no_license | package ca.digitalcave.moss.restlet.util;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.ResourceBundle;
import java.util.Set;
public class OverridableResourceBundle extends ResourceBundle {
private final ResourceBundle bundle;
private final ResourceBundle def... | true |
f5c2a5368225e5c12fac880b79a7a1bafa52229e | Java | z391168406/enddoc | /src/com/endDoc/dao/IRateDao.java | UTF-8 | 203 | 1.632813 | 2 | [] | no_license | package com.endDoc.dao;
import java.util.List;
import com.endDoc.po.RateInfoPo;
public interface IRateDao {
String addRate(RateInfoPo rateInfoPo);
List<RateInfoPo> queryScoreByDid(String did);
}
| true |
9e82332dfe6b40c4cf216c6dcc6212d7df3c6a4a | Java | BU-CS673/bubolo | /bubolo/src/bubolo/world/Tile.java | UTF-8 | 4,602 | 3.5625 | 4 | [
"MIT"
] | permissive | package bubolo.world;
import bubolo.util.Coordinates;
import bubolo.util.GameLogicException;
import bubolo.world.entity.StationaryElement;
import bubolo.world.entity.Terrain;
/**
* Tiles represent one 'unit square' on a game map. They must contain one Terrain, and can have
* either 1 or 0 StationaryElements which s... | true |
b4c33e85a3834c6a189b78d91b4495af2decf65a | Java | magefree/mage | /Mage.Sets/src/mage/cards/k/KhenraCharioteer.java | UTF-8 | 1,424 | 2.34375 | 2 | [
"MIT"
] | permissive |
package mage.cards.k;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constant... | true |
cf4c690b3f7b01f1ab11ace87d12ec94ac335119 | Java | boywsk/grpc-tag-20170210 | /src/main/java/com/gomeplus/grpc/model/GroupMemberMark.java | UTF-8 | 1,367 | 2.03125 | 2 | [] | no_license | package com.gomeplus.grpc.model;
import java.io.Serializable;
/**
*
* 群组成员备注
* Created by wangshikai on 2016/2/19.
*/
public class GroupMemberMark implements Serializable {
private String groupId;
private long userId;
private long markedUserId; //备注的用户id
private String mark; //备注... | true |
d5d4bd4d40a7e936311257a59d7bcfd15c1e0e65 | Java | KedoKudo/ISAW | /DataSetTools/viewer/SelectedRegion2D.java | UTF-8 | 523 | 2.3125 | 2 | [] | no_license | package DataSetTools.viewer;
import gov.anl.ipns.Util.Sys.*;
public class SelectedRegion2D implements ISelectedRegion{
public int[] rows, cols;
public SelectedRegion2D( int[] rows, int[] cols){
this.rows = rows;
this.cols = cols;
}
public void show(){
System.out.println("----------------------... | true |
ec2110e475ee0e0fda2dd9b191ceb981e5ae2d43 | Java | diggaScan/parkeSystem | /app/src/main/java/com/sunland/xsparkmobile/view_controller/Ac_index.java | UTF-8 | 1,972 | 1.882813 | 2 | [] | no_license | package com.sunland.xsparkmobile.view_controller;
import android.content.Intent;
import android.os.Bundle;
import com.sunland.xsparkmobile.R;
import com.sunland.xsparkmobile.view_controller.parkManager.Ac_park_funciton;
import com.sunland.xsparkmobile.view_controller.parkManager.Ac_qrscan_result;
import com.sunland.x... | true |
d71e52ff0feab51980a172c9f0e8bb2c34dbea4d | Java | SuChhe/HackerRankCodeSnippets | /StackExample.java | UTF-8 | 985 | 3.59375 | 4 | [] | no_license | import java.util.*;
public class StackExample{
public static void main(String []argh)
{
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String input=sc.next();
Stack<Character> stack = new Stack<Character>();
boolean match = true;
try {
for(char c :input.toCharArray()) {
if (c... | true |
46847fb93cf58b2dfac873174a3bc57613f598d3 | Java | vanshajc/SixesWild | /src/sw/app/gui/view/board/PowerUpPanel.java | UTF-8 | 7,357 | 2.421875 | 2 | [] | no_license | /**
* @file PowerUpPanel.java
* @author Vanshaj Chowdhary, Trung-Nghia N. Huynh, Tony Vu
*/
package sw.app.gui.view.board;
import java.awt.Color;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import jav... | true |
779b0bc1f19c2b5deee3a36142d83c3e72d4807d | Java | vighnarajank/All-Codes-and-Assignments | /JDBC Java/assignment/CreateTable.java | UTF-8 | 1,064 | 3.234375 | 3 | [] | no_license | package com.onebill.jdbc.assignment;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class CreateTable {
public static void main(String[] args) {
Connection con = null;
Statement stmt = null;
try {
Class.forName("com.mysql.cj.jdb... | true |
023a546029f4aa1f7b5f730e95844a8527fc442f | Java | jyothishanmukh/MavenTestNG | /src/test/java/com/june/july/batch/TestNG/LaunchBrowser.java | UTF-8 | 794 | 2.09375 | 2 | [] | no_license | package com.june.july.batch.TestNG;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.testng.annotations.*;
public class LaunchBrowser {
protected WebDriver driver;
//@BeforeSuite
@BeforeClass
public void launchB... | true |
8bcf1ff93120aa20afe5c89751588929f00999e8 | Java | zhu-ym/hadoop_bayes | /src/ClassTermRecordReader.java | UTF-8 | 1,639 | 2.046875 | 2 | [] | no_license | import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.input.FileSplit;
import org.apache.hadoop.mapreduce... | true |
6f9b084b7cd39fa7e98379ad7b8a2d0b80e241f9 | Java | asukim1022/CheckBoxListViewApp | /app/src/main/java/com/asukim/checkboxlistview/MainActivity.java | UTF-8 | 3,320 | 2.765625 | 3 | [] | no_license | package com.asukim.checkboxlistview;
import java.util.ArrayList;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widge... | true |
e6a01468f48591bf62db185b00d63f4db4d43bd7 | Java | topdcw/Leetcode | /1-100/Solution_24.java | GB18030 | 783 | 3.59375 | 4 | [] | no_license | package com.dcw.leetcode;
/**
* Swap Nodes in Pairs
*
* @author topdc
*
*/
public class Solution_24 {
public ListNode swapPairs(ListNode head) {
//ΪƸһͷָһڵ㣬
ListNode headfirst =new ListNode(-1);
headfirst.next=head;
ListNode pre,begin,end;//ʾڵ
pre=headfirst;
begin=headfirst.next;
while(begin... | true |
ff142f15518eae0d5bdd15ca63018acad87f6f88 | Java | TranThiDieuThanh/GiaiPhuongTrinhBacHai | /src/GiaiPhuongTrinhBacHai.java | UTF-8 | 875 | 3.46875 | 3 | [] | no_license | import java.util.Scanner;
public class PhuongTrinhBacHai {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(" Nhap gia tri cua a, b, c vao ");
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double c = sc.nextDoubl... | true |
095ab109139e13ed7df6f1282d96dba6421a565a | Java | paro87/Microservice_Security | /client-password-gt/src/main/java/com/paro/clientpasswordgt/model/HealthAppSearch.java | UTF-8 | 231 | 1.515625 | 2 | [] | no_license | package com.paro.clientpasswordgt.model;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class HealthAppSearch {
private String hospitalId;
private String departmentId;
private String patientId;
}
| true |
f22f152975d23cdc8e00797c8edf225b7dea390c | Java | WannaLoveyou/github-test | /src/com/qian/code/PayStateCode.java | UTF-8 | 253 | 1.96875 | 2 | [] | no_license | package com.qian.code;
/**
* @author Lu Kongwen
* @version Create time:2016-11-3 上午10:11:42
* @Description
*/
public class PayStateCode {
public static final int NO_PAY = 100; // 未付款
public static final int HAS_PAY = 200; // 已付款
}
| true |
cee92b8ad39fead61389086ac2f199b8dd067e43 | Java | christianhujer/Java8Exercises | /exercise5/src/test/java/com/nelkinda/training/java8/exercise5/SystemClipboardStepdefs.java | UTF-8 | 2,221 | 2.828125 | 3 | [] | no_license | package com.nelkinda.training.java8.exercise5;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import static java.awt.Toolkit.getDefaultToolkit;
import static java.awt.... | true |
faae81454cdbc5fac797db915c044c1480f4ef77 | Java | GluuFederation/oxTrust | /service/src/main/java/org/gluu/oxtrust/util/LdapConfigurationDtoAssembly.java | UTF-8 | 3,109 | 2.265625 | 2 | [
"MIT"
] | permissive | package org.gluu.oxtrust.util;
import com.google.common.base.Function;
import com.google.common.collect.FluentIterable;
import org.gluu.model.SimpleProperty;
import org.gluu.model.ldap.GluuLdapConfiguration;
import java.util.List;
public class LdapConfigurationDtoAssembly {
private static final String EMPTY_PASSWO... | true |
d4f262446921ef6893efe5e3d1cdd2c26c46012b | Java | budonglaoshi/airticket | /src/com/airticket/web/interceptor/LoadDaysCacheInterceptor.java | UTF-8 | 4,705 | 2.0625 | 2 | [] | no_license | package com.airticket.web.interceptor;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import com.airticket.util.MemcachedUtil;
import com.airticket.util.Signa... | true |
b546f777bf1b8ab0ddaed76e98999e554e834318 | Java | haslphi/grip | /grip/src/at/jku/se/grip/ui/robots/RobotView.java | UTF-8 | 3,293 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package at.jku.se.grip.ui.robots;
import com.vaadin.data.util.BeanItemContainer;
import com.vaadin.server.FontAwesome;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Grid;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Verti... | true |
fa3be9f45a889e867c54b34e6861c2ff7abbc6a3 | Java | Sanarous/MjForum | /src/main/java/cn/bestzuo/mjforum/admin/pojo/LoginInfo.java | UTF-8 | 255 | 1.695313 | 2 | [] | no_license | package cn.bestzuo.mjforum.admin.pojo;
import lombok.Data;
/**
* 管理员登录信息
*/
@Data
public class LoginInfo {
//登录IP
private String ip;
//登录信息
private String info;
//登录时间
private String time;
}
| true |
446e4dba35d4c7c88524b670e7cee9af65f6f38f | Java | zhaomengxia/meng | /src/main/java/com/example/dao/FileDao.java | UTF-8 | 358 | 2.078125 | 2 | [] | no_license | package com.example.dao;
import com.example.model.Files;
import java.sql.ResultSet;
import java.sql.SQLException;
public interface FileDao {
public int addfile(Files file)throws SQLException;
public int deleteById(int id)throws SQLException;
public ResultSet select()throws SQLException;
public ResultSet findFi... | true |
1da4c6ee4d94cd6c2bfe1dd1b3f0e4131e144ea0 | Java | celements/celements-calendar | /component/src/test/java/com/celements/calendar/navigation/factories/CalendarNavigationFactoryTest.java | UTF-8 | 5,227 | 2.078125 | 2 | [] | no_license | package com.celements.calendar.navigation.factories;
import static org.easymock.EasyMock.*;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.xwiki.model.reference.DocumentReference;
import org.xwiki.mod... | true |
1af81ff904c46a6cf9640fc6fac0aaf27408ab71 | Java | studyforeign/genuinetest | /genuine-modules/genuine-spring/src/main/java/com.sn.genuinetest/module/spring/SpringModule.java | UTF-8 | 1,735 | 1.773438 | 2 | [] | no_license | package com.sn.genuinetest.module.spring;
import com.sn.genuinetest.GenieRuntime;
import com.sn.genuinetest.module.BaseGenieModule;
import com.sn.genuinetest.module.java.JavaModule;
import com.sn.genuinetest.type.TopologicalSortable;
import cucumber.api.spring.SpringTransactionHooks;
import cucumber.runtime.Backend;
i... | true |
7efa519f093441a67f5bfb87adc841470146ecf2 | Java | AllenCVI/myLocku | /LockUChat/src/main/java/com/lockulockme/lockuchat/common/ExtraUtils.java | UTF-8 | 2,132 | 1.96875 | 2 | [] | no_license | package com.lockulockme.lockuchat.common;
import android.text.TextUtils;
import com.lockulockme.lockuchat.bean.rsp.User;
import com.lockulockme.lockuchat.data.SelfDataUtils;
import com.lockulockme.lockuchat.utils.im.MsgDigest;
import com.netease.nimlib.sdk.msg.model.IMMessage;
import java.util.HashMap;
import java.u... | true |
8f105a09fff9752f1cbb240256850acbf3f61bc6 | Java | RK308/BookStore | /app/src/main/java/com/example/android/bookstore/data/BookContract.java | UTF-8 | 2,798 | 2.71875 | 3 | [] | no_license | package com.example.android.bookstore.data;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
public final class BookContract {
// Empty constructor to prevent someone from accidentally instantiating the contract class.
private BookContract() {
}
pu... | true |
7cbf12c02705093fea4852b4283a5582a543907f | Java | liyingxiong1990/fsbuffalo | /service/gateway-order/src/main/java/com/buffalo/gateway/authentication/model/RoleUser.java | UTF-8 | 1,090 | 1.921875 | 2 | [] | no_license |
package com.buffalo.gateway.authentication.model;
import com.buffalo.gateway.util.ModelUtil;
import java.util.List;
public class RoleUser extends ModelUtil {
private String role_user_id;
private String user_id;
private String role_id;
private List<String> userIdList = null;
public RoleUser(... | true |
86129e2213c4f46c131597b42ec54d9e914a383c | Java | lishizhan/myteam | /src/com/team/service/StudentsInforMange.java | UTF-8 | 3,210 | 2.828125 | 3 | [] | no_license | package com.team.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import com.team.bean.Students;
/**
*
* @Description: 学生信息管理类
* @author: 李甘伟
* @version:
* @date:May 5, 20202:24:58 PM
*
*/
public class StudentsInforMange {
//创建一个集合用于存储学生信息
private static final List<S... | true |
85826e5114bcd676a34304fad89af58918d84345 | Java | patekw/Advent | /src/main/java/Main.java | UTF-8 | 203 | 1.976563 | 2 | [] | no_license | public class Main {
public static void main(String[] args){
//System.out.println("hej");
Problem problem = new Problem_4();
System.out.println(problem.getResult());
}
}
| true |
a71e668f3f9e9e5572340fcf089050867d001d90 | Java | heguogui/zdjfu | /sxcfu/app/src/main/java/com/hz/zdjfu/application/http/RpcHelper.java | UTF-8 | 3,994 | 2.1875 | 2 | [] | no_license | /*
* 乡邻小站
*
Copyright (c) 2016 XiangLin,Inc.All Rights Reserved.
*/
package com.hz.zdjfu.application.http;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.util.ArrayMap;
import com.hz.zdjfu.application.base.ZDJFUApplication;
import com.hz.zdjfu.application.utils.ActivityManagerUt... | true |
910594d1b90931310aedfc676b36ae8671308fe1 | Java | pxson001/facebook-app | /classes6.dex_source_from_JADX/com/facebook/widget/listview/ScrollingViewProxies.java | UTF-8 | 622 | 1.773438 | 2 | [] | no_license | package com.facebook.widget.listview;
import android.view.View;
import com.google.common.base.Preconditions;
import java.lang.ref.WeakReference;
import javax.annotation.Nullable;
/* compiled from: refCode */
public class ScrollingViewProxies {
@Nullable
public static ScrollingViewProxy m8635a(View view) {
... | true |
54545ac97d47361feac2586b3aad6a28372d41be | Java | AntKirill/ServicesSandbox | /src/main/java/applications/googleCalendarAndTrelloSynch/database/GoogleCalendarByIdSpecification.java | UTF-8 | 477 | 2.1875 | 2 | [
"MIT"
] | permissive | package applications.googleCalendarAndTrelloSynch.database;
import database.SqlSpecification;
import org.jetbrains.annotations.NotNull;
public class GoogleCalendarByIdSpecification implements SqlSpecification {
private final String calendarId;
public GoogleCalendarByIdSpecification(String calendarId) {
... | true |
6d698726d3ca5eb52aab380efd95ceda688d49b8 | Java | amethystaurora-robo/git_practice | /src/labs_examples/multi_threading/labs/Exercise_05.java | UTF-8 | 657 | 3.515625 | 4 | [] | no_license | package labs_examples.multi_threading.labs;
import java.util.*;
/**
* Multithreading Exercise 5:
*
* Demonstrate the use of a wait() and notify()
*/
class myThread0 implements Runnable {
Thread thread;
boolean isReady = false;
@Override
public synchronized void run() {
while (isReady)... | true |
31566520f2ee42c055b596922d153a02b7578c37 | Java | shakaihatsu/jee_reference_project | /src/main/java/jee/reference/interceptor/LoggingInterceptor.java | UTF-8 | 2,836 | 2.484375 | 2 | [] | no_license | package jee.reference.interceptor;
import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;
import jee.reference.meta.TODO;
import jee.reference.meta.TODOTag;
import jee.reference.util.Logged;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@T... | true |
d10c110cd621d4ff5ee1bf2217c8f110c726e239 | Java | MarlonFauser/ExerciciosGlauco | /Beginner/beginner3/Circunferencia.java | UTF-8 | 265 | 2.828125 | 3 | [
"MIT"
] | permissive | package beginner3;
public class Circunferencia {
private double circ;
private double area;
public void setCirc(double circ) {
this.circ = circ;
}
public double getArea() {
return area = Math.PI * (this.circ * this.circ);
}
}
| true |
bd07c1d0d08d805e061c50fbcd286eb183b9c35e | Java | 1030907690/import-excel | /src/main/java/com/springboot/sample/conf/GenericConfiguration.java | UTF-8 | 654 | 2.453125 | 2 | [] | no_license | package com.springboot.sample.conf;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.*;
@Configuration
public class GenericConfiguration {
private final int processors = Runtime.getRuntime().availableProcessors();
@Be... | true |
7150917fea93ac6b13fe4e8268d3ff17265edb1a | Java | kirahua/LAndroidDpCode | /app/src/main/java/com/devyk/android_dp_code/dp_image_loader/ImageLoader.java | UTF-8 | 3,712 | 2.359375 | 2 | [] | no_license | package com.devyk.android_dp_code.dp_image_loader;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.ImageView;
import com.devyk.android_dp_code.dp_image_loader.cache.MemoryCache;
import com.devyk.android_dp_code.dp_image_loader.config.... | true |
de1a5ca7717dbcb2d730b6354157de85d7640763 | Java | noRelax/java-utils | /Java大型CERP进销存系统/codefans.net/哈工大CERP/src/com/huiton/cerp/sam/SAM3310Handler.java | GB18030 | 10,989 | 2.03125 | 2 | [] | no_license | package com.huiton.cerp.sam;
/**
* Title: ûѯɾ
* Description: ûѯɾ
* Copyright: Copyright Reserved By BRITC
* Company: BRITC
* @author
* @version 1.0
*/
import com.huiton.cerp.pub.util.*;
import com.huiton.cerp.pub.util.functions.*;
import com.huiton.mainframe.control.event.CERPEvent;
import com... | true |
a2deb518e649531c55727416308a4160b374ee45 | Java | RasmusKnothNielsen/Code_examples_Construction_3sem | /2._Interface_Generics/src/Generics/Listlike.java | UTF-8 | 316 | 3.15625 | 3 | [
"MIT"
] | permissive | package Generics;
// An interface in the style of the List interface - Only simpler.
public interface Listlike<T> {
void add(T t);
void remove(int index);
void set(int index, T element);
void clear();
boolean isEmpty();
int size();
boolean contains(T element);
T get(int index);
}
| true |
d3ba6132d840492dd7c253c47dbf9c6f4cbb8f0f | Java | YijiaZhanghh/ResourceManager-master | /src/Test/testMembers.java | UTF-8 | 598 | 2.5 | 2 | [] | no_license | package Test;
import model.Administration.Members;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class testMembers {
Members m;
@BeforeEach
public void setUp(){
m = new Members("Maxwell",245,2018);
... | true |
d758a5a90499b0d0c9068bb17fe00dfdafe91ee8 | Java | LDibiase/authorizer | /src/main/java/com/challenge/authorizer/core/usecases/validates/ValidateAccount.java | UTF-8 | 570 | 2.375 | 2 | [] | no_license | package com.challenge.authorizer.core.usecases.validates;
import com.challenge.authorizer.core.entities.enums.Violation;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service
public class ValidateAccount {
public List<Violation> execute(Boolean exist) {
return... | true |
1ba65b622ab9030ef8bc57cc48ef57e023e44a96 | Java | LWJGL/lwjgl3 | /modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/ARBTextureMirroredRepeat.java | UTF-8 | 1,312 | 2.125 | 2 | [
"LicenseRef-scancode-khronos",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
/**
* Native bindings to the <a href="https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_texture_mirrored_repeat.txt">ARB_texture_mirrored_repeat</a>... | true |
192547d0b593a474005cac1519c5b6a4c6676d17 | Java | sagor995/Tic-Tac-Toe-2018 | /app/src/main/java/com/agd/sa/tictactoe2018/SelectionMultiActivity.java | UTF-8 | 13,151 | 1.921875 | 2 | [] | no_license | package com.agd.sa.tictactoe2018;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppComp... | true |
840f1b4f463e63ea6172be66a6479cb55c453e01 | Java | mariochavez/java_teach | /db/Data.java | UTF-8 | 1,779 | 2.90625 | 3 | [
"MIT"
] | permissive | import java.sql.*;
import java.util.*;
public abstract class Data {
protected Connection connection = null;
public Data(Connection connection) {
this.connection = connection;
}
protected ResultSet loadData(String sql, Parameter[] parameters) throws SQLException {
PreparedStatement statement = null;
Resul... | true |
780ce58980ad694af8038b77956579073c8c80a9 | Java | 464457642/trans | /trans/src/com/shu/function/Function.java | GB18030 | 547 | 2.78125 | 3 | [] | no_license | package com.shu.function;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;
@WebService
public class Function {
// ÷DZ¶ķ
public String tranString(String words) {
String red = "";
for (char ch : red.toCharArray()) {
red += "/t" + ch + "/t";
}
return red;
}
// ʹmainservice
pu... | true |
2133aa7ed1a430303ef644895f35a1ea708be16d | Java | 1260380285/test | /src/com/fanxing/TestArrayList.java | UTF-8 | 739 | 2.59375 | 3 | [] | no_license | package com.fanxing;
import java.util.ArrayList;
import java.util.List;
/**
* @author: yuanbing
* @created time: 2018/4/26 19:30
* @description:
*/
public class TestArrayList {
public static void main(String[] args) {
List<String> list = new ArrayList<>();
list.add("3");
String name ... | true |
e179376dc26ef8beed6d9167e585a3b788a75fe4 | Java | RWS/odata | /odata_webservice/src/main/java/com/sdl/odata/container/ODataWinServiceContainer.java | UTF-8 | 2,126 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014-2023 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries.
*
* 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://w... | true |
6223cf29d983fc9fd8adb6123f64083f86ca3dbe | Java | 00ricardo/Systems-Integration-Project-AsynchronousCommunication | /UserNode/src/jms/user/UserNode.java | UTF-8 | 17,146 | 2.6875 | 3 | [
"MIT"
] | permissive | package jms.user;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSConsumer;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.JMSProducer;
import javax.jms.JMSRuntimeException;... | true |
f8e95284c70b5d78928ba157ba6a311d60d64a3f | Java | tsg0943/MyListGenegal | /MyList.java | UTF-8 | 3,990 | 3.5625 | 4 | [] | no_license | package com.company;
import java.util.Collection;
import java.util.Iterator;
public class MyList<T> implements Collection<T> { //наследуем класс коллекций
class Node<T> {
private T value;
private Node next;
public Node(T value) {
this.value = value;
this.next = nul... | true |
9ed9d90b48e5304d5ea12b31e02244bcbd65d6ed | Java | huangxjian/OnlyReviews | /src/main/java/com/baibig/onlyreviews/ui/ReviewsListAdapter.java | UTF-8 | 2,117 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.baibig.onlyreviews.ui;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.baibig.onlyreviews.R;
import com.baibig.onlyreviews.model.ReviewsRSSItem;
impo... | true |
75f737c64a87800cc2be854d3dd88bac8be5c0bd | Java | Jaoxvalen/charapitasflyers | /src/iquiplay/entidades/ControlEfectos.java | UTF-8 | 1,719 | 2.25 | 2 | [] | no_license | package iquiplay.entidades;
import iquiplay.motor.Imagen;
import iquiplay.niveles.Nivel;
import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.entity.sprite.AnimatedSprite.IAnimationListener;
public class ControlEfectos {
public Imagen polvo;
public Imagen explotaLibe... | true |
9a5fddc1d2e075f358b838c3f83cafacf0da0e05 | Java | MrSnix/TinyConfiguration | /src/main/java/org/tinyconfiguration/abc/AbstractCollection.java | UTF-8 | 793 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | package org.tinyconfiguration.abc;
/**
* The {@link AbstractCollection} interfaces provides basic methods which should be common on any data container
*
* @author G. Baittiner
* @version 0.1
*/
public interface AbstractCollection {
/**
* Check if a specific key is stored inside the container instance
... | true |
1ab216317723f787f2d6213f9fdca049e5d3fd44 | Java | bablusingh/SpringBootHibernate | /AiolusTechnologies/src/main/java/com/app/aiolus/controllers/UserController.java | UTF-8 | 3,040 | 2.25 | 2 | [] | no_license | package com.app.aiolus.controllers;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
imp... | true |
082b2f7bac55f0c2dc403eafbb35ec392dc64e55 | Java | zeeegeee/hvacSystem | /Downloads/HVACsystem/src/IS/sale.java | UTF-8 | 1,619 | 2.859375 | 3 | [] | no_license | /*
Authors: Moe yaziji, Grey Steinberg
DATE: 5/21/2018
PURPOSE: This class stores all transactions occuring in the program
*/
package IS;
import java.util.ArrayList;
public class sale {
public String productID;
public String customerID;
public String supplierID;
public String description;
pub... | true |
c05f8437f40624bf3066c33e82d48e017a22fe19 | Java | syq1874/JavaSE | /OOP/src/d0922_1/Demo7/Dog.java | UTF-8 | 222 | 2.375 | 2 | [] | no_license | package d0922_1.Demo7;
public class Dog {
final String name="大白";
public static void main(String[] args) {
Dog d =new Dog();
//d.name="xx";
final int age=10;
//age=12;
}
}
| true |
e7cf8d43a34844723c252efe99f18cc65a385231 | Java | JoseAlan/udemy-android | /Organizze/app/src/main/java/com/example/alan/organizze/helper/Base64Util.java | UTF-8 | 425 | 2.296875 | 2 | [] | no_license | package com.example.alan.organizze.helper;
import android.util.Base64;
import java.util.UUID;
public class Base64Util {
public static String codeficar(String texto){
return Base64.encodeToString(texto.getBytes(),Base64.DEFAULT).replaceAll("(\\n|\\r)","");
}
public static String decodifiar(Stri... | true |
c81a3e0906e936db829b4d51004757058b949316 | Java | jjurm/twbot | /src/main/java/com/jjurm/twbot/tribalwars/Urls.java | UTF-8 | 3,248 | 2.828125 | 3 | [] | no_license | package com.jjurm.twbot.tribalwars;
import java.net.MalformedURLException;
import java.net.URL;
public class Urls {
private Urls() {} // Prevent instantiating
static World world;
public static void setWorld(World world) {
Urls.world = world;
}
/**
* This will return given string as <tt>URL</tt> or <tt>nul... | true |
2eead6c66b8d07caf3a567615f338968ecde44d3 | Java | 90301379/JavaGameOnGitHub | /JavaGame/src/project/server/Server.java | UTF-8 | 1,316 | 2.84375 | 3 | [] | no_license | package project.server;
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public ServerSocket server;
public Socket connection;
private ObjectOutputStream out;
... | true |
038449d9e49d7e4f448f6c5741a968fd53b3e9c9 | Java | sakjung/java-subway-path-precourse | /src/main/java/subway/domain/Times.java | UTF-8 | 434 | 2.5625 | 3 | [
"MIT"
] | permissive | package subway.domain;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Times {
private final List<Integer> times = new ArrayList<>();
public static void addTime(String lineName, Integer time, int location) {
LineRepository.getLine(lineName)
.getTimes()
.times... | true |
0dcdbff076accf7bd42e956e011efd9a9ed7a3db | Java | kylenoh/Spring_Tutorial | /lesson02_DI_Basic/src/lesson02_DI_Basic_Stuff/Laptop.java | UTF-8 | 454 | 3.15625 | 3 | [] | no_license | package lesson02_DI_Basic_Stuff;
import lesson02_DI_Basic_Battery.Battery;
public class Laptop {
private Battery battery;
// 노트북 객체를 만들 때, 건전지가 내장되어 만들어 집니다.
public Laptop(Battery battery) {
this.battery = battery;
}
// 노트북 객체를 만들때, setBattery를 통하여 외부에서 값을 넣어 줄 수 있습니다.
public void setBattery(Battery battery)... | true |
4abcb85604bda40c2f580101168b4c893ed388bf | Java | VenkateshPandey/MicroServicesFramework | /androidMS/src/main/java/com/tekBase/androidMs/security/services/AuthenticationService.java | UTF-8 | 1,311 | 2.390625 | 2 | [] | no_license | package com.tekBase.androidMs.security.services;
import java.util.LinkedHashMap;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import com.tekBase.androidMs.model.Api... | true |
56406534b377791c87ae144d9f92eec6c4d5bfbf | Java | everyingo/javaProject | /surveypark/src/com/mine/aware/UserAware.java | GB18030 | 182 | 1.828125 | 2 | [] | no_license | package com.mine.aware;
import com.mine.model.User;
/**
* User Զעӿ
* @author Administrator
*
*/
public interface UserAware {
public void setUser(User user);
}
| true |
964ff14f9367aca505a4fd17b93a4d5acdc0c3c0 | Java | gnsonar/ptool | /DealPricingService/src/main/java/com/in/fujitsu/pricing/dto/MigrationCostDto.java | UTF-8 | 258 | 1.65625 | 2 | [
"MIT"
] | permissive | package com.in.fujitsu.pricing.dto;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class MigrationCostDto {
private int year;
private BigDecimal cost;
}
| true |
cb40d1de833cbccdcbc2cc3f05a9bdfd2fc977da | Java | ypmichael/eduPlatform | /src/main/java/com/third/IntelPlat/repository/DivisionRoleRepository.java | UTF-8 | 792 | 1.953125 | 2 | [] | no_license | package com.third.IntelPlat.repository;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.... | true |
33b5436c71ef29c069f38f9a50a82e6b5f35d2f6 | Java | jtamayo/pepe | /pepe/src/edu/stanford/pepe/ShadowStackRewriter.java | UTF-8 | 3,511 | 2.375 | 2 | [] | no_license | package edu.stanford.pepe;
import java.util.List;
import java.util.logging.Logger;
import edu.stanford.aj.prep.FrameAnalyzer;
import edu.stanford.pepe.org.objectweb.asm.ClassAdapter;
import edu.stanford.pepe.org.objectweb.asm.ClassVisitor;
import edu.stanford.pepe.org.objectweb.asm.MethodVisitor;
import edu.stanford... | true |
6d1d04ee4067047d105f3cf6b0f551fd5b9dd4a7 | Java | dongchunfeng/foodie-shop | /foodie-dev-pojo/src/main/java/com/itzixue/pojo/vo/SimpleItemVO.java | UTF-8 | 310 | 1.546875 | 2 | [] | no_license | package com.itzixue.pojo.vo;
import lombok.Data;
/**
* @Description 首页简单商品展示vo
* @Author Mr.Dong <dongcf1997@163.com>
* @Version V1.0.0
* @Since 1.0
* @Date 2020/12/18 14:53
*/
@Data
public class SimpleItemVO {
private String itemId;
private String itemName;
private String itemUrl;
}
| true |
0b886f59b6fe5b6a02827c959650a87d832759cd | Java | elifesciences/schematron-validator | /backend/schematron-validator-api/src/main/java/org/elifesciences/schematron/model/NoSuchSchemaException.java | UTF-8 | 183 | 1.984375 | 2 | [
"MIT"
] | permissive | package org.elifesciences.schematron.model;
public class NoSuchSchemaException extends Exception {
private String schemaId;
public String getSchemaId() {
return schemaId;
}
}
| true |
8e95d18ce166018f1a4c0ba3a6354dffe3c5da5c | Java | Damjan94/ProgramZaNavodnjavanje | /app/src/main/java/com/example/damjan/programzanavodnjavanje/listeners/ValveOptionsViewOnSeekChange.java | UTF-8 | 921 | 2.203125 | 2 | [] | no_license | package com.example.damjan.programzanavodnjavanje.listeners;
import android.app.Activity;
import android.widget.SeekBar;
import com.example.damjan.programzanavodnjavanje.IComm;
import com.example.damjan.programzanavodnjavanje.viewHolders.ValveOptionViewHolder;
public class ValveOptionsViewOnSeekChange implements Se... | true |
28ac353cb7bb59071ce2ce3de04ee434d9d20822 | Java | Kundestyrt-ReiseNavet/integration-tool-backend | /src/main/java/algorithms/utilities/Sigmoid.java | UTF-8 | 3,209 | 3.609375 | 4 | [] | no_license | package algorithms.utilities;
import java.util.LinkedList;
import java.util.List;
/**
* Represents methods used for the application of a sigmoid function in the Profile Weight approach.
* @author audunvennesland
* 26. okt. 2017
*/
public class Sigmoid {
/**
* Transforms a profile weight score between 0 and... | true |
d700dab2d547abb3ef1e4a0aa9f4c50588e6339a | Java | alatestred/test2 | /servlet/src/main/java/com/servlet/service/ChatService.java | UTF-8 | 1,490 | 2.59375 | 3 | [] | no_license | package com.servlet.service;
import com.servlet.domain.Chat;
import com.servlet.domain.enams.ChatType;
import java.sql.Array;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class ChatService {
public static List<... | true |
aeaca1bd3adfbbd393095f3cd2148de53a4f6a41 | Java | jonthemango/design_patterns | /src/proxy/BookParser.java | UTF-8 | 328 | 3 | 3 | [] | no_license | package proxy;
public class BookParser implements IBookParser {
public BookParser(String book){
// heavy computation
for(int i=0;i<99999999;i++);
System.out.println("Book parser created: " + book);
}
public void parse() {
System.out.println("Book Parsing complete. ");
... | true |
703d7426e7c25c62577960824c525e56a6aa6f67 | Java | terre-virtuelle/navisu | /navisu-architecture/src/main/java/bzh/terrevirtuelle/navisu/architecture/impl/view/ComponentView.java | UTF-8 | 3,467 | 2.09375 | 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 bzh.terrevirtuelle.navisu.architecture.impl.view;
import bzh.terrevirtuelle.navisu.domain.architecture.Component;
import java.... | true |
a43ed3cfee10aab25da361dd7514730f1790793f | Java | luizepeixoto/TestesSeleniumAnt | /src/test/java/testes/capa/esquerda/ChamadaPrincipalTest.java | UTF-8 | 6,169 | 2.390625 | 2 | [] | no_license | package testes.capa.esquerda;
import static org.junit.Assert.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import pages.capa.esquerda.ChamadaPrincipal;
import br.com.infoglobo.pages.Navegador;
public class ChamadaPrincipalTest {
private static ChamadaPrincipa... | true |
d267a564bafcfbaf63556f6c4a12470478f6f38e | Java | seizans/Ariel | /src/test/java/com/gmail/seizans/btree/BtreeSetTest.java | UTF-8 | 4,361 | 3.125 | 3 | [] | no_license | package com.gmail.seizans.btree;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.junit.Test;
public class BtreeSetTest {
@Test
public void totalTest3() {
try {
new BtreeSet<Integer>(0);
fail();
... | true |
779f1c977c92b4271f005a0287f13b4a41b6dc76 | Java | ArvinZJC/UofG_PGT_PSD_Java_Unix | /Mandatory/src/labs/l6/T6.java | UTF-8 | 3,370 | 3.609375 | 4 | [
"MIT"
] | permissive | /*
* @Description: Task 6
* @Version: 1.0.1.20210306
* @Author: Arvin Zhao
* @Date: 2021-02-03 10:16:18
* @Last Editors: Arvin Zhao
* @LastEditTime: 2021-03-06 12:08:51
*/
package labs.l6;
import org.jetbrains.annotations.NotNull;
class T6
{
static boolean checkCardNumber(@NotNull String cardNumber)
{... | true |
d5c828833edb8ac73cd6d29b39f587f72f02b7e1 | Java | amirthakumar/AjithKumar | /Spring1/SpringAutoWire/src/in/vamsoft/aop/beforeadvice/BeforeAdvisor.java | UTF-8 | 487 | 2.296875 | 2 | [] | no_license | package in.vamsoft.aop.beforeadvice;
import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;
public class BeforeAdvisor implements MethodBeforeAdvice {
@Override
public void before(Method arg0, Object[] arg1, Object arg2) throws Throwable {
// TODO Auto-generated method stub
Sys... | true |
5523ed7cccc9986a0ac4696ac90ff206fccb5563 | Java | pridhwish/AdactinProject | /src/test/java/com/adactin/property/Page_Object_Manager.java | UTF-8 | 818 | 1.976563 | 2 | [] | no_license | package com.adactin.property;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import com.adactin.pom.LoginPage;
import com.adactin.pom.SearchHotel;
import com.adactin.pom.SelectHotel;
public class Page_Object_Manager {
public static WebDriver driver;
private LoginPage logi... | true |
fdebaa000f1f2a8beccf1a2a41b5327f9828ab7d | Java | rishisun/code_works | /src/Feb_15/Sumindivisual.java | UTF-8 | 510 | 3.390625 | 3 | [] | no_license | package Feb_15;
import java.util.Scanner;
public class Sumindivisual {
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 0, temp, i;
System.out.println("enter a no.");
Scanner j = new Scanner(System.in);
i = j.nextInt();
System.out.println("given no is " + i... | true |
0f933df706b85a948c33b23aaf600897f7b37f94 | Java | Yuiizui/Prototype | /app/src/main/java/com/example/nthucs/prototype/SportList/SportDAO.java | UTF-8 | 4,099 | 2.625 | 3 | [] | no_license | package com.example.nthucs.prototype.SportList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.nthucs.prototype.Utility.MyDBHelper;
import java.util.ArrayList;
import java.util.List;
/**
* Creat... | true |
54c2046ff9f0a3d9013c173f5fd54f95abe875c6 | Java | clemble/clemble-casino | /server/goal/goal-management/src/main/java/com/clemble/casino/goal/action/GoalManagerFactory.java | UTF-8 | 539 | 1.710938 | 2 | [] | no_license | package com.clemble.casino.goal.action;
import com.clemble.casino.goal.event.GoalEvent;
import com.clemble.casino.goal.lifecycle.initiation.GoalInitiation;
import com.clemble.casino.goal.lifecycle.management.GoalContext;
import com.clemble.casino.goal.lifecycle.management.GoalState;
import com.clemble.casino.server.ac... | true |
34a3b4c2ec3eca36a9b57a60f09958a119081a00 | Java | EMResearch/EMB | /jdk_8_maven/cs/rest/original/features-service/src/test/java/org/javiermf/features/models/ProductTests.java | UTF-8 | 2,648 | 2.765625 | 3 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | package org.javiermf.features.models;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class ProductTests {
@Test
public void shouldBeEmptyIfNoAddedFeatures() throws Exception {
Product product = new Product();
assertT... | true |
56e3aba442f9a2ff03907c90fdafdedeb1c5e59b | Java | Audrey-epburn/blogs | /blogs-test/src/main/java/org/su/generator/mapper/FavouriteMapper.java | UTF-8 | 689 | 1.945313 | 2 | [] | no_license | package org.su.generator.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.su.generator.pojo.Favourite;
import org.su.generator.pojo.FavouriteExample;
public interface FavouriteMapper {
int countByExample(FavouriteExample example);
int deleteByExample(FavouriteExample exam... | true |
ac606233e3caaa42ef702a53fa363fd9e719e577 | Java | maramowicz/bRigid-for-Processing-3 | /src/bRigid/test/Rigid11_PointToPointSpringLinear.java | UTF-8 | 1,141 | 2.515625 | 3 | [] | no_license | package bRigid.test;
import javax.vecmath.Vector3f;
import processing.core.PApplet;
import peasy.*;
import bRigid.*;
@SuppressWarnings("serial")
public class Rigid11_PointToPointSpringLinear extends PApplet {
PeasyCam cam;
BPhysics physics;
public void setup() {
size(1280, 720, P3D);
frameRate(60);
cam ... | true |
16483aa0027b0d9fad369801e045e9888c69eb8b | Java | vepo/mongo-java-server | /core/src/main/java/de/bwaldvogel/mongo/backend/AbstractUniqueIndex.java | UTF-8 | 5,467 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | package de.bwaldvogel.mongo.backend;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map.Entry;
import java.util.TreeSet;
import java.util.regex.Matcher;
import de.bwaldvogel.mongo.bson.BsonRegularExpression;
import de.bwaldvogel.mongo.bso... | true |