id int64 22 34.9k | original_code stringlengths 31 107k | code_wo_comment stringlengths 29 77.3k | cleancode stringlengths 25 62.1k | repo stringlengths 6 65 | label listlengths 4 4 |
|---|---|---|---|---|---|
3,700 | @Override
public AJoinPoint insertBeginImpl(AJoinPoint node) {
Stmt newStmt = ClavaNodes.toStmt(node.getNode());
// Preconditions.checkArgument(node.getNode() instanceof Stmt,
// "Expected input of action scope.insertEntry to be a Stmt joinpoint");
CxxActions.insertStmt("before", scope, newStmt, getWeaverEngine... | @Override
public AJoinPoint insertBeginImpl(AJoinPoint node) {
Stmt newStmt = ClavaNodes.toStmt(node.getNode());
CxxActions.insertStmt("before", scope, newStmt, getWeaverEngine());
return CxxJoinpoints.create(newStmt);
} | @override public ajoinpoint insertbeginimpl(ajoinpoint node) { stmt newstmt = clavanodes.tostmt(node.getnode()); cxxactions.insertstmt("before", scope, newstmt, getweaverengine()); return cxxjoinpoints.create(newstmt); } | TheNunoGomes/clava | [
1,
0,
0,
0
] |
3,701 | @Override
public AJoinPoint insertEndImpl(AJoinPoint node) {
Stmt newStmt = ClavaNodes.toStmt(node.getNode());
// Preconditions.checkArgument(newStmt instanceof Stmt,
// "Expected input of action scope.insertEnd to be a Stmt joinpoint, is a " +
// node.getJoinPointType());
CxxActions.insertStmt("after", scope,... | @Override
public AJoinPoint insertEndImpl(AJoinPoint node) {
Stmt newStmt = ClavaNodes.toStmt(node.getNode());
CxxActions.insertStmt("after", scope, newStmt, getWeaverEngine());
return CxxJoinpoints.create(newStmt);
} | @override public ajoinpoint insertendimpl(ajoinpoint node) { stmt newstmt = clavanodes.tostmt(node.getnode()); cxxactions.insertstmt("after", scope, newstmt, getweaverengine()); return cxxjoinpoints.create(newstmt); } | TheNunoGomes/clava | [
1,
0,
0,
0
] |
12,023 | public void update(long fps) {
if (paddleMoving == LEFT) {
// to fix Paddle going off the Screen
if (x >= -MYscreenDPI / 10)
// Decrement position
x = x - paddleSpeed / fps;
}
if (paddleMoving == RIGHT) {
// to fix Paddle going ... | public void update(long fps) {
if (paddleMoving == LEFT) {
if (x >= -MYscreenDPI / 10)
x = x - paddleSpeed / fps;
}
if (paddleMoving == RIGHT) {
if (x <= scrX - length - MYscreenDPI / 14)
... | public void update(long fps) { if (paddlemoving == left) { if (x >= -myscreendpi / 10) x = x - paddlespeed / fps; } if (paddlemoving == right) { if (x <= scrx - length - myscreendpi / 14) x = x + paddlespeed / fps; } rect.left = x; rect.right = x + length; } | Shuffler/Breakout-Android-Game | [
0,
0,
1,
0
] |
20,364 | @JsonGetter("action")
public ApplicationActionTypeEnum getAction ( ) {
return this.action;
} | @JsonGetter("action")
public ApplicationActionTypeEnum getAction ( ) {
return this.action;
} | @jsongetter("action") public applicationactiontypeenum getaction ( ) { return this.action; } | agaveplatform/java-sdk | [
0,
0,
0,
0
] |
20,365 | @JsonSetter("action")
private void setAction (ApplicationActionTypeEnum value) {
this.action = value;
} | @JsonSetter("action")
private void setAction (ApplicationActionTypeEnum value) {
this.action = value;
} | @jsonsetter("action") private void setaction (applicationactiontypeenum value) { this.action = value; } | agaveplatform/java-sdk | [
0,
0,
0,
0
] |
12,178 | public static String generateFunction(){
List<JsFunction> dmcFunctions = new ArrayList<JsFunction>();
/* TODO Need to find alternative for this
DataMapperRoot rootDiagram = (DataMapperRoot)DataMapperDiagramEditor.getInstance().getDiagram().getElement();
TreeNode inputTreeNode = rootDiagram.getInput... | public static String generateFunction(){
List<JsFunction> dmcFunctions = new ArrayList<JsFunction>();
String documentString = "";
for (JsFunction func : dmcFunctions) {
documentString += func.toString() + "\n\n";
}
return documentString;
} | public static string generatefunction(){ list<jsfunction> dmcfunctions = new arraylist<jsfunction>(); string documentstring = ""; for (jsfunction func : dmcfunctions) { documentstring += func.tostring() + "\n\n"; } return documentstring; } | SanojPunchihewa/devstudio-tooling-esb | [
1,
0,
0,
0
] |
12,258 | public void postPutAll(final DistributedPutAllOperation putAllOp,
final VersionedObjectList successfulPuts, final LocalRegion region) {
// TODO: TX: add support for batching using performOp as for other
// update operations; add cacheWrite flag support for proper writer
// invocation like in other ops... | public void postPutAll(final DistributedPutAllOperation putAllOp,
final VersionedObjectList successfulPuts, final LocalRegion region) {
markDirty();
if (isSnapshot()) {
addAffectedRegion(region);
region.getSharedDataView().postPutAll(putAllOp, successfulPuts, region);
return;... | public void postputall(final distributedputalloperation putallop, final versionedobjectlist successfulputs, final localregion region) { markdirty(); if (issnapshot()) { addaffectedregion(region); region.getshareddataview().postputall(putallop, successfulputs, region); return; } if (region.getpartitionattributes() != nu... | SnappyDataInc/snappy-store | [
0,
1,
0,
0
] |
12,419 | public static void layoutInit() {
Dimension dimension = new Dimension(560, 320);
if (OperatingSystem.getCurrent() == OperatingSystem.MACOS) {
dimension.setSize(dimension.getWidth() * PopupBase.MACOS_WIDTH_SCALE, dimension.getHeight());
}
FRAME.setPreferredSize(dimension);
... | public static void layoutInit() {
Dimension dimension = new Dimension(560, 320);
if (OperatingSystem.getCurrent() == OperatingSystem.MACOS) {
dimension.setSize(dimension.getWidth() * PopupBase.MACOS_WIDTH_SCALE, dimension.getHeight());
}
FRAME.setPreferredSize(dimension);
... | public static void layoutinit() { dimension dimension = new dimension(560, 320); if (operatingsystem.getcurrent() == operatingsystem.macos) { dimension.setsize(dimension.getwidth() * popupbase.macos_width_scale, dimension.getheight()); } frame.setpreferredsize(dimension); log_btn.addactionlistener((e) -> { if (!popupba... | Tecbot3158/open-ds | [
1,
0,
0,
0
] |
20,824 | public static String[] getStorageDirectories(boolean includePrimary)
{
final Pattern DIR_SEPARATOR = Pattern.compile("/");
// Final set of paths
final Set<String> rv = new HashSet<String>();
// Primary physical SD-CARD (not emulated)
final String rawExternalStorage = System.g... | public static String[] getStorageDirectories(boolean includePrimary)
{
final Pattern DIR_SEPARATOR = Pattern.compile("/");
final Set<String> rv = new HashSet<String>();
final String rawExternalStorage = System.getenv("EXTERNAL_STORAGE");
final String rawSecond... | public static string[] getstoragedirectories(boolean includeprimary) { final pattern dir_separator = pattern.compile("/"); final set<string> rv = new hashset<string>(); final string rawexternalstorage = system.getenv("external_storage"); final string rawsecondarystoragesstr = system.getenv("secondary_storage"); final s... | acestream/acestream-android-sdk | [
0,
0,
0,
1
] |
20,869 | private void execute(Object args, String url, HttpHeaders headers, HttpMethod method) {
HttpEntity<Object> entity = new HttpEntity<>(args, headers);
ResponseEntity<Object> response = restTemplate.exchange(url, method, entity, Object.class);
if (response.getStatusCode().is2xxSuccessful()) {
... | private void execute(Object args, String url, HttpHeaders headers, HttpMethod method) {
HttpEntity<Object> entity = new HttpEntity<>(args, headers);
ResponseEntity<Object> response = restTemplate.exchange(url, method, entity, Object.class);
if (response.getStatusCode().is2xxSuccessful()) {
... | private void execute(object args, string url, httpheaders headers, httpmethod method) { httpentity<object> entity = new httpentity<>(args, headers); responseentity<object> response = resttemplate.exchange(url, method, entity, object.class); if (response.getstatuscode().is2xxsuccessful()) { system.out.println(response.g... | TONY-All/Hangar | [
0,
0,
1,
0
] |
20,888 | private static void LoadSpriteTables()
{
//final FileList files = _use_dos_palette ? files_dos : files_win;
//final FileList files = files_win;
final String[] files = files_win;
int load_index;
int i;
//LoadGrfIndexed(files.basic[0].filename, trg1idx, 0);
LoadGrfIndexed(files[0], trg1idx, 0);
SpriteCac... | private static void LoadSpriteTables()
{
final String[] files = files_win;
int load_index;
int i;
LoadGrfIndexed(files[0], trg1idx, 0);
SpriteCache.DupSprite( 2, 130);
SpriteCache.DupSprite(226, 354);
SpriteCache.DupSprite(450, 578);
load_index = 4793;
for (i = 1; files[i] != null; i++) {
... | private static void loadspritetables() { final string[] files = files_win; int load_index; int i; loadgrfindexed(files[0], trg1idx, 0); spritecache.dupsprite( 2, 130); spritecache.dupsprite(226, 354); spritecache.dupsprite(450, 578); load_index = 4793; for (i = 1; files[i] != null; i++) { load_index += loadgrffile(file... | alexey-lukyanenko/jdrive | [
1,
1,
0,
0
] |
13,084 | @Override
public void addContentView(View view) {
//todo add you childView to rootView , Usually not youself layout the View!
addView(view);
} | @Override
public void addContentView(View view) {
addView(view);
} | @override public void addcontentview(view view) { addview(view); } | Tamicer/FilterBar | [
0,
1,
0,
0
] |
13,100 | private boolean writeResponseBodyToDisk(ResponseBody body) {
try {
// todo change the file location/name according to your needs
File futureStudioIconFile = new File(getExternalFilesDir(null) + File.separator + nombreEditar + ".jpg");
InputStream inputStream = null;
... | private boolean writeResponseBodyToDisk(ResponseBody body) {
try {
File futureStudioIconFile = new File(getExternalFilesDir(null) + File.separator + nombreEditar + ".jpg");
InputStream inputStream = null;
OutputStream outputStream = null;
try {
... | private boolean writeresponsebodytodisk(responsebody body) { try { file futurestudioiconfile = new file(getexternalfilesdir(null) + file.separator + nombreeditar + ".jpg"); inputstream inputstream = null; outputstream outputstream = null; try { byte[] filereader = new byte[4096]; long filesize = body.contentlength(); l... | UNIZAR-30226-2021-14/Front-end | [
1,
0,
0,
0
] |
13,511 | @Override
public GraphStageLogic createLogic(Attributes attr) throws Exception {
JsonParser parser = new JsonParser();
return new GraphStageLogic(shape) {
{
setHandler(out, new AbstractOutHandler() {
@Override
public void onPull() t... | @Override
public GraphStageLogic createLogic(Attributes attr) throws Exception {
JsonParser parser = new JsonParser();
return new GraphStageLogic(shape) {
{
setHandler(out, new AbstractOutHandler() {
@Override
public void onPull() t... | @override public graphstagelogic createlogic(attributes attr) throws exception { jsonparser parser = new jsonparser(); return new graphstagelogic(shape) { { sethandler(out, new abstractouthandler() { @override public void onpull() throws exception { list<jsonevent> events = new arraylist<>(); parseinto(events); if (eve... | alar17/ts-reaktive | [
1,
0,
0,
0
] |
13,714 | private void annotateInferredType(Tree tree, AnnotatedTypeMirror type) {
switch (tree.getKind()) {
case NEW_ARRAY:
case NEW_CLASS:
InferenceMain.getInstance().getCurrentExtractor().annotateInferredType(getIdentifier(tree), type);
break;
case METHOD:
Ex... | private void annotateInferredType(Tree tree, AnnotatedTypeMirror type) {
switch (tree.getKind()) {
case NEW_ARRAY:
case NEW_CLASS:
InferenceMain.getInstance().getCurrentExtractor().annotateInferredType(getIdentifier(tree), type);
break;
case METHOD:
Ex... | private void annotateinferredtype(tree tree, annotatedtypemirror type) { switch (tree.getkind()) { case new_array: case new_class: inferencemain.getinstance().getcurrentextractor().annotateinferredtype(getidentifier(tree), type); break; case method: executableelement methodelt = treeutils.elementfromdeclaration( (metho... | SoftwareEngineeringToolDemos/type-inference | [
1,
0,
1,
0
] |
13,884 | private boolean isPasswordValid(String password) {
//TODO: Replace this with your own logic
return password.length() > 5;
} | private boolean isPasswordValid(String password) {
return password.length() > 5;
} | private boolean ispasswordvalid(string password) { return password.length() > 5; } | ShivamPokhriyal/Custom-UI-Sample | [
1,
0,
0,
0
] |
30,271 | private List<String> commonLinkAndCompileFlagsForClang(
ObjcProvider provider, ObjcConfiguration objcConfiguration,
AppleConfiguration appleConfiguration) {
ImmutableList.Builder<String> builder = new ImmutableList.Builder<>();
Platform platform = appleConfiguration.getSingleArchPlatform();
swit... | private List<String> commonLinkAndCompileFlagsForClang(
ObjcProvider provider, ObjcConfiguration objcConfiguration,
AppleConfiguration appleConfiguration) {
ImmutableList.Builder<String> builder = new ImmutableList.Builder<>();
Platform platform = appleConfiguration.getSingleArchPlatform();
swit... | private list<string> commonlinkandcompileflagsforclang( objcprovider provider, objcconfiguration objcconfiguration, appleconfiguration appleconfiguration) { immutablelist.builder<string> builder = new immutablelist.builder<>(); platform platform = appleconfiguration.getsinglearchplatform(); switch (platform) { case ios... | Tingbopku/tingbo1 | [
1,
1,
0,
0
] |
22,098 | @Override
public void onClick(DialogInterface dialog, int which) {
// User clicked OK button
int[] inputs = new int[playerManager.getSelectedPlayerCount()];
//starts at STARTINGPLAYER, since input list starts at STARTINGPLAYER
for (int i = STARTINGPLAYER; i < play... | @Override
public void onClick(DialogInterface dialog, int which) {
int[] inputs = new int[playerManager.getSelectedPlayerCount()];
for (int i = STARTINGPLAYER; i < playerManager.getSelectedPlayerCount() + STARTINGPLAYER; i++) {
int index = getPlaye... | @override public void onclick(dialoginterface dialog, int which) { int[] inputs = new int[playermanager.getselectedplayercount()]; for (int i = startingplayer; i < playermanager.getselectedplayercount() + startingplayer; i++) { int index = getplayerindex(i); edittext edittext = (edittext) ((linearlayout) linearlayout.g... | ThaChillera/CardScore | [
0,
1,
0,
0
] |
22,436 | @Override
public void prepareForSave(KualiDocumentEvent event) {
// TODO Auto-generated method stub
// first populate, then call super
if (event instanceof AttributedContinuePurapEvent) {
SpringContext.getBean(OleInvoiceService.class).populateInvoice(this);
}
if(t... | @Override
public void prepareForSave(KualiDocumentEvent event) {
if (event instanceof AttributedContinuePurapEvent) {
SpringContext.getBean(OleInvoiceService.class).populateInvoice(this);
}
if(this.getVendorPaymentTermsCode() != null && this.getVendorPaymentTermsC... | @override public void prepareforsave(kualidocumentevent event) { if (event instanceof attributedcontinuepurapevent) { springcontext.getbean(oleinvoiceservice.class).populateinvoice(this); } if(this.getvendorpaymenttermscode() != null && this.getvendorpaymenttermscode().isempty()) { this.setvendorpaymenttermscode(null);... | VU-libtech/OLE-INST | [
0,
1,
0,
0
] |
14,444 | public void loadFrom(FilterablePagingProvider<T> filterablePagingProvider, FilterableCountProvider filterableCountProvider, int pageLength) {
this.fpp = filterablePagingProvider;
this.fcp = filterableCountProvider;
// Need to re-create the piggybackList & set container, some refactoring should b... | public void loadFrom(FilterablePagingProvider<T> filterablePagingProvider, FilterableCountProvider filterableCountProvider, int pageLength) {
this.fpp = filterablePagingProvider;
this.fcp = filterableCountProvider;
piggybackLazyList = new LazyList<>(new LazyList.PagingProvider<T>() {
... | public void loadfrom(filterablepagingprovider<t> filterablepagingprovider, filterablecountprovider filterablecountprovider, int pagelength) { this.fpp = filterablepagingprovider; this.fcp = filterablecountprovider; piggybacklazylist = new lazylist<>(new lazylist.pagingprovider<t>() { private static final long serialver... | andreika63/viritin | [
1,
0,
0,
0
] |
22,702 | public CompraEntity find(Long compraId) {
LOGGER.log(Level.INFO, "Buscando compra con el id={0}", compraId);
return em.find(CompraEntity.class, compraId);
} | public CompraEntity find(Long compraId) {
LOGGER.log(Level.INFO, "Buscando compra con el id={0}", compraId);
return em.find(CompraEntity.class, compraId);
} | public compraentity find(long compraid) { logger.log(level.info, "buscando compra con el id={0}", compraid); return em.find(compraentity.class, compraid); } | Uniandes-isis2603/s2_Boletas | [
0,
1,
0,
0
] |
22,714 | public Dialog onCreateDialog(int dialogId){
Dialog dialog = null;
try{
//Log.v(TAG, "onCreateDialog() called");
if (mManagedDialogs == null) {
mManagedDialogs = new SparseArray<Dialog>();
}
switch(dialogId){
case DIALOG_DELETE_ATTACHMENT_ID:
dialog = new AlertDialog.Builder(mActivity)
... | public Dialog onCreateDialog(int dialogId){
Dialog dialog = null;
try{
if (mManagedDialogs == null) {
mManagedDialogs = new SparseArray<Dialog>();
}
switch(dialogId){
case DIALOG_DELETE_ATTACHMENT_ID:
dialog = new AlertDialog.Builder(mActivity)
.setTitle(R.string.dialog_confirmDe... | public dialog oncreatedialog(int dialogid){ dialog dialog = null; try{ if (mmanageddialogs == null) { mmanageddialogs = new sparsearray<dialog>(); } switch(dialogid){ case dialog_delete_attachment_id: dialog = new alertdialog.builder(mactivity) .settitle(r.string.dialog_confirmdelete) .seticon(android.r.drawable.ic_dia... | SpencerRiddering/flingtap-done | [
1,
1,
0,
0
] |
30,955 | @RequestMapping(value = "/shareAnuncio", method = RequestMethod.POST)
public String shareAnuncio(@RequestParam("email") String email, Model model, Authentication authentication,
HttpServletRequest req, RedirectAttributes flash) {
logger.info("contactar-anunciante");
Integer id = Integer.parseInt(req.getParamete... | @RequestMapping(value = "/shareAnuncio", method = RequestMethod.POST)
public String shareAnuncio(@RequestParam("email") String email, Model model, Authentication authentication,
HttpServletRequest req, RedirectAttributes flash) {
logger.info("contactar-anunciante");
Integer id = Integer.parseInt(req.getParamete... | @requestmapping(value = "/shareanuncio", method = requestmethod.post) public string shareanuncio(@requestparam("email") string email, model model, authentication authentication, httpservletrequest req, redirectattributes flash) { logger.info("contactar-anunciante"); integer id = integer.parseint(req.getparameter("id"))... | adriancice/adrian-pfm | [
0,
0,
0,
0
] |
14,663 | private void initShape() {
// TODO: these could be optimised
float cx = dim * 0.5f;
float cy = dim * 0.5f + 1;
float r = (dim - 3) * 0.5f;
float rh = r * 0.4f;
for (int i = 0; i < 10; i++) {
double ang = Math.PI/180 * (i * 36 - 90);
float ri = i... | private void initShape() {
float cx = dim * 0.5f;
float cy = dim * 0.5f + 1;
float r = (dim - 3) * 0.5f;
float rh = r * 0.4f;
for (int i = 0; i < 10; i++) {
double ang = Math.PI/180 * (i * 36 - 90);
float ri = i % 2 == 0 ? r : rh;
fl... | private void initshape() { float cx = dim * 0.5f; float cy = dim * 0.5f + 1; float r = (dim - 3) * 0.5f; float rh = r * 0.4f; for (int i = 0; i < 10; i++) { double ang = math.pi/180 * (i * 36 - 90); float ri = i % 2 == 0 ? r : rh; float x = (float) math.cos(ang) * ri + cx; float y = (float) math.sin(ang) * ri + cy; if ... | Sciss/Rating | [
1,
0,
0,
0
] |
22,873 | private void fillCollisionMap(Set<Rectangle> rectangles) throws CollisionMapOutOfBoundsException {
// TODO Insert code for assignment 5.2.a
for(Rectangle rectangle:rectangles){
if(rectangle.getX() < this.gridRectangle.getX() ||
rectangle.getX() + rectangle.getWidth() > this.gr... | private void fillCollisionMap(Set<Rectangle> rectangles) throws CollisionMapOutOfBoundsException {
for(Rectangle rectangle:rectangles){
if(rectangle.getX() < this.gridRectangle.getX() ||
rectangle.getX() + rectangle.getWidth() > this.gridRectangle.getX() + this.gridRectangle.g... | private void fillcollisionmap(set<rectangle> rectangles) throws collisionmapoutofboundsexception { for(rectangle rectangle:rectangles){ if(rectangle.getx() < this.gridrectangle.getx() || rectangle.getx() + rectangle.getwidth() > this.gridrectangle.getx() + this.gridrectangle.getwidth() || rectangle.gety() < this.gridre... | SiyuChen1/Datenstrukturen-und-Algorithmen-SS21 | [
0,
1,
0,
0
] |
22,874 | private Set<Rectangle> getCollisionCandidates(final Rectangle rectangle) throws CollisionMapOutOfBoundsException {
// TODO Insert code for assignment 5.2.b
if(
rectangle.getX() < this.gridRectangle.getX() ||
rectangle.getX() + rectangle.getWidth() > this.gridRectangle.get... | private Set<Rectangle> getCollisionCandidates(final Rectangle rectangle) throws CollisionMapOutOfBoundsException {
if(
rectangle.getX() < this.gridRectangle.getX() ||
rectangle.getX() + rectangle.getWidth() > this.gridRectangle.getX() + this.gridRectangle.getWidth() ||
... | private set<rectangle> getcollisioncandidates(final rectangle rectangle) throws collisionmapoutofboundsexception { if( rectangle.getx() < this.gridrectangle.getx() || rectangle.getx() + rectangle.getwidth() > this.gridrectangle.getx() + this.gridrectangle.getwidth() || rectangle.gety() < this.gridrectangle.gety() || re... | SiyuChen1/Datenstrukturen-und-Algorithmen-SS21 | [
0,
1,
0,
0
] |
22,875 | public boolean collide(final Rectangle rectangle) {
// TODO Insert code for assignment 5.2.c
if(rectangle == null){
throw new IllegalArgumentException("rectangle is null");
}
boolean flag = false;
try{
Set<Rectangle> rectangleSet = this.getCollisionCandida... | public boolean collide(final Rectangle rectangle) {
if(rectangle == null){
throw new IllegalArgumentException("rectangle is null");
}
boolean flag = false;
try{
Set<Rectangle> rectangleSet = this.getCollisionCandidates(rectangle);
for(Rectangle... | public boolean collide(final rectangle rectangle) { if(rectangle == null){ throw new illegalargumentexception("rectangle is null"); } boolean flag = false; try{ set<rectangle> rectangleset = this.getcollisioncandidates(rectangle); for(rectangle re:rectangleset){ if(re.intersects(rectangle)){ flag = true; } } }catch (ex... | SiyuChen1/Datenstrukturen-und-Algorithmen-SS21 | [
0,
1,
0,
0
] |
14,690 | public MapperBuilder withInputNames(Iterable<String> inputNames) {
Objects.requireNonNull(inputNames);
this.inputNames = inputNames;
return this;
} | public MapperBuilder withInputNames(Iterable<String> inputNames) {
Objects.requireNonNull(inputNames);
this.inputNames = inputNames;
return this;
} | public mapperbuilder withinputnames(iterable<string> inputnames) { objects.requirenonnull(inputnames); this.inputnames = inputnames; return this; } | andbi-redpill/datasonnet-mapper | [
0,
1,
0,
0
] |
14,723 | public void procesarAjaxChangeListener(GestorEstadoComponentes gestorEstados,
GestorDatosComponentes gestorDatos) {
// Id de usuario
Integer intCodUsuario = ContextUtils.getUserIdAsInteger();
// Usuarios concurrentes
String strNumUsersConcurrentes = (String)gestorDatos.getValue("numUsuariosConcu");
Integ... | public void procesarAjaxChangeListener(GestorEstadoComponentes gestorEstados,
GestorDatosComponentes gestorDatos) {
Integer intCodUsuario = ContextUtils.getUserIdAsInteger();
String strNumUsersConcurrentes = (String)gestorDatos.getValue("numUsuariosConcu");
Integer intNumUserConcurrentes = Integer.valueO... | public void procesarajaxchangelistener(gestorestadocomponentes gestorestados, gestordatoscomponentes gestordatos) { integer intcodusuario = contextutils.getuseridasinteger(); string strnumusersconcurrentes = (string)gestordatos.getvalue("numusuariosconcu"); integer intnumuserconcurrentes = integer.valueof(strnumusersco... | adele-robots/fiona | [
1,
1,
0,
0
] |
14,725 | protected ContainerShape getTargetContainer(PictogramElement ownerPE) {
// TODO: fix this so the label is a child of the Lane or Pool.
// There's a problem with Resize Feature if the label is a direct child of Lane/Pool.
return (ContainerShape) ownerPE.eContainer();
} | protected ContainerShape getTargetContainer(PictogramElement ownerPE) {
return (ContainerShape) ownerPE.eContainer();
} | protected containershape gettargetcontainer(pictogramelement ownerpe) { return (containershape) ownerpe.econtainer(); } | alfa-ryano/org.eclipse.bpmn2-modeler | [
1,
0,
0,
0
] |
31,226 | @ReactMethod
public void issue( // TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
int alloc_coins,
String alloc_outpoint,
String network,
String ticker,
String name,
String description,
... | @ReactMethod
public void issue(
int alloc_coins,
String alloc_outpoint,
String network,
String ticker,
String name,
String description,
int precision,
Promise promise) {
try {
final Runtime runtime = ... | @reactmethod public void issue( int alloc_coins, string alloc_outpoint, string network, string ticker, string name, string description, int precision, promise promise) { try { final runtime runtime = ((mainapplication) getcurrentactivity().getapplication()).getruntime(); final outpointcoins allocation = new outpointcoi... | alexeyneu/rgb-sdk | [
1,
0,
0,
0
] |
31,251 | public static void main(String[] args){
/*
Write a program to add a score of 100 to
the the array scores.
*/
int[] scores = {88,91,80,78,95};
System.out.println("Current scores are: " + Arrays.toString(scores));
//TODO 1: Write code to make a new array th... | public static void main(String[] args){
int[] scores = {88,91,80,78,95};
System.out.println("Current scores are: " + Arrays.toString(scores));
int[] temp = new int[scores.length + 1];
for(int i = 0; i<scores.length; i++){
temp[i] = scores[i];
}
... | public static void main(string[] args){ int[] scores = {88,91,80,78,95}; system.out.println("current scores are: " + arrays.tostring(scores)); int[] temp = new int[scores.length + 1]; for(int i = 0; i<scores.length; i++){ temp[i] = scores[i]; } temp[temp.length -1] = 100; scores = temp; system.out.println("after 'addin... | SwettSoquelHS/think-java-notswett | [
0,
1,
0,
0
] |
23,212 | @Override
protected void setup(VaadinRequest request) {
addComponent(new ProgressIndicator() {
{
registerRpc(new ProgressIndicatorServerRpc() {
@Override
public void poll() {
// System.out.println("Pausing poll reque... | @Override
protected void setup(VaadinRequest request) {
addComponent(new ProgressIndicator() {
{
registerRpc(new ProgressIndicatorServerRpc() {
@Override
public void poll() {
try {
... | @override protected void setup(vaadinrequest request) { addcomponent(new progressindicator() { { registerrpc(new progressindicatorserverrpc() { @override public void poll() { try { thread.sleep(1000); } catch (interruptedexception e) { e.printstacktrace(); } } }); setpollinginterval(3000); } }); addcomponent(new link("... | allanim/vaadin | [
0,
0,
1,
0
] |
23,397 | static boolean remapGlyph(PdfFont currentFontData, GlyphData glyphData){
boolean alreadyRemaped=false;
final String charGlyph= currentFontData.getMappedChar(glyphData.getRawInt(), false);
if(charGlyph!=null){
final int newRawInt=currentFontData.getDiffChar(charGlyph);
if(... | static boolean remapGlyph(PdfFont currentFontData, GlyphData glyphData){
boolean alreadyRemaped=false;
final String charGlyph= currentFontData.getMappedChar(glyphData.getRawInt(), false);
if(charGlyph!=null){
final int newRawInt=currentFontData.getDiffChar(charGlyph);
if(... | static boolean remapglyph(pdffont currentfontdata, glyphdata glyphdata){ boolean alreadyremaped=false; final string charglyph= currentfontdata.getmappedchar(glyphdata.getrawint(), false); if(charglyph!=null){ final int newrawint=currentfontdata.getdiffchar(charglyph); if(newrawint!=-1){ glyphdata.setrawint(newrawint); ... | UprootStaging/maven-OpenViewerFX-src | [
0,
0,
1,
0
] |
31,695 | @Override
@Nonnull
public MutableVfsItem getMutableItem(RepoPath repoPath) {
//TORE: [by YS] should be storing repo once interfaces refactoring is done
LocalRepo localRepo = localOrCachedRepositoryByKey(repoPath.getRepoKey());
if (localRepo != null) {
MutableVfsItem mutableFs... | @Override
@Nonnull
public MutableVfsItem getMutableItem(RepoPath repoPath) {
LocalRepo localRepo = localOrCachedRepositoryByKey(repoPath.getRepoKey());
if (localRepo != null) {
MutableVfsItem mutableFsItem = localRepo.getMutableFsItem(repoPath);
if (mutableFsItem ... | @override @nonnull public mutablevfsitem getmutableitem(repopath repopath) { localrepo localrepo = localorcachedrepositorybykey(repopath.getrepokey()); if (localrepo != null) { mutablevfsitem mutablefsitem = localrepo.getmutablefsitem(repopath); if (mutablefsitem != null) { return mutablefsitem; } } throw new itemnotfo... | alancnet/artifactory | [
1,
0,
0,
0
] |
15,371 | public SootMethod resolveSpecialDispatch(SpecialInvokeExpr ie, SootMethod container) {
container.getDeclaringClass().checkLevel(SootClass.HIERARCHY);
SootMethod target = ie.getMethod();
target.getDeclaringClass().checkLevel(SootClass.HIERARCHY);
/*
* This is a bizarre condition! Hopefully the imple... | public SootMethod resolveSpecialDispatch(SpecialInvokeExpr ie, SootMethod container) {
container.getDeclaringClass().checkLevel(SootClass.HIERARCHY);
SootMethod target = ie.getMethod();
target.getDeclaringClass().checkLevel(SootClass.HIERARCHY);
if ("<init>".equals(target.getName()) || target.isPriv... | public sootmethod resolvespecialdispatch(specialinvokeexpr ie, sootmethod container) { container.getdeclaringclass().checklevel(sootclass.hierarchy); sootmethod target = ie.getmethod(); target.getdeclaringclass().checklevel(sootclass.hierarchy); if ("<init>".equals(target.getname()) || target.isprivate()) { return targ... | UCLA-SEAL/JShrink | [
1,
0,
0,
0
] |
15,595 | public static List<KNXComObject> retrieveComObjectListByDatapointId(final KNXProject knxProject,
final int dataPointId) {
// TODO: how to identify the correct device if there are several devices in the
// list?
final KNXDeviceInstance knxDeviceInstance = knxProject.getDeviceInstances().get(0);
// TODO: maybe... | public static List<KNXComObject> retrieveComObjectListByDatapointId(final KNXProject knxProject,
final int dataPointId) {
final KNXDeviceInstance knxDeviceInstance = knxProject.getDeviceInstances().get(0);
final List<KNXComObject> knxComObjects = knxDeviceInstance.getComObjects().values().stream()
.fil... | public static list<knxcomobject> retrievecomobjectlistbydatapointid(final knxproject knxproject, final int datapointid) { final knxdeviceinstance knxdeviceinstance = knxproject.getdeviceinstances().get(0); final list<knxcomobject> knxcomobjects = knxdeviceinstance.getcomobjects().values().stream() .filter(c -> c.getnum... | Thewbi/knx_meister | [
1,
0,
0,
0
] |
15,596 | public static Optional<KNXComObject> retrieveComObjectByDatapointId(final KNXProject knxProject,
final int deviceIndex, final int dataPointId) {
// TODO: how to identify the correct device if there are several devices in the
// list?
final KNXDeviceInstance knxDeviceInstance = knxProject.getDeviceInstances().g... | public static Optional<KNXComObject> retrieveComObjectByDatapointId(final KNXProject knxProject,
final int deviceIndex, final int dataPointId) {
final KNXDeviceInstance knxDeviceInstance = knxProject.getDeviceInstances().get(deviceIndex);
return knxDeviceInstance
.getComObjects()
.values()
.s... | public static optional<knxcomobject> retrievecomobjectbydatapointid(final knxproject knxproject, final int deviceindex, final int datapointid) { final knxdeviceinstance knxdeviceinstance = knxproject.getdeviceinstances().get(deviceindex); return knxdeviceinstance .getcomobjects() .values() .stream() .filter(c -> c.getn... | Thewbi/knx_meister | [
1,
0,
0,
0
] |
23,864 | private Expression _buildExpression() {
// Make base Exp4j ExpressionBuilder using _formulaEquation string as input
ExpressionBuilder _formulaExpressionBuilder = new ExpressionBuilder(this._formulaEquation);
// Setup regex pattern we want to use to isolate formula variables from _formulaEquation string
... | private Expression _buildExpression() {
ExpressionBuilder _formulaExpressionBuilder = new ExpressionBuilder(this._formulaEquation);
Pattern _formulaRegex = new Pattern.compile("\s?_[a-zA-z0-9_]*_\s?");
Matcher _formulaVarMatcher = new _formulaRegex.matcher(this._formulaEquation);
... | private expression _buildexpression() { expressionbuilder _formulaexpressionbuilder = new expressionbuilder(this._formulaequation); pattern _formularegex = new pattern.compile("\s?_[a-za-z0-9_]*_\s?"); matcher _formulavarmatcher = new _formularegex.matcher(this._formulaequation); while (_formulavarmatcher.find()) { for... | ambedrake/UniversalAuthenticatedReportGenerator | [
0,
1,
0,
0
] |
32,072 | private void craftRecipe( Recipe<?> currentRecipe)
{
if (currentRecipe != null && this.canAcceptRecipeOutput(currentRecipe))
{
ItemStack inputStack = this.inventory.get(0);
ItemStack outputStack = this.inventory.get(2);
ItemStack recipeResultStack = currentRecipe.... | private void craftRecipe( Recipe<?> currentRecipe)
{
if (currentRecipe != null && this.canAcceptRecipeOutput(currentRecipe))
{
ItemStack inputStack = this.inventory.get(0);
ItemStack outputStack = this.inventory.get(2);
ItemStack recipeResultStack = currentRecipe.... | private void craftrecipe( recipe<?> currentrecipe) { if (currentrecipe != null && this.canacceptrecipeoutput(currentrecipe)) { itemstack inputstack = this.inventory.get(0); itemstack outputstack = this.inventory.get(2); itemstack reciperesultstack = currentrecipe.getoutput(); int resultcount = world.random.nextint(100)... | XuyuEre/fabric-furnaces | [
1,
0,
0,
0
] |
7,716 | public void mergeSort(Card[] cardArray)
{
// TODO: implement this method (in an iterative way)
} | public void mergeSort(Card[] cardArray)
{
} | public void mergesort(card[] cardarray) { } | Sailia/data_structures | [
0,
1,
0,
0
] |
7,891 | @Test
public void findAllSubComments_for_comment_returns_collection_status_isFound() throws Exception{
when(commentService.findCommentsByCommentParentId(anyInt())).thenReturn(Arrays.asList(comments));
when(userService.findUserById(anyInt())).thenReturn(Optional.of(user));
when(commentLikeSer... | @Test
public void findAllSubComments_for_comment_returns_collection_status_isFound() throws Exception{
when(commentService.findCommentsByCommentParentId(anyInt())).thenReturn(Arrays.asList(comments));
when(userService.findUserById(anyInt())).thenReturn(Optional.of(user));
when(commentLikeSer... | @test public void findallsubcomments_for_comment_returns_collection_status_isfound() throws exception{ when(commentservice.findcommentsbycommentparentid(anyint())).thenreturn(arrays.aslist(comments)); when(userservice.finduserbyid(anyint())).thenreturn(optional.of(user)); when(commentlikeservice.checkifcommentisliked(a... | Yarulika/Microblogging | [
0,
0,
0,
1
] |
16,097 | public List<FileHandler.FileAttributes> listWorkingDirectory() throws IOException, Exception
{
FileHandler fileHandler = null;
try
{
Tool tool = getTool();
fileHandler = tool.getToolResource().getFileHandler();
String workingDirectory = tool.getToolResource().getWorkingDirectory(task.getJobHandle());
... | public List<FileHandler.FileAttributes> listWorkingDirectory() throws IOException, Exception
{
FileHandler fileHandler = null;
try
{
Tool tool = getTool();
fileHandler = tool.getToolResource().getFileHandler();
String workingDirectory = tool.getToolResource().getWorkingDirectory(task.getJobHandle());
... | public list<filehandler.fileattributes> listworkingdirectory() throws ioexception, exception { filehandler filehandler = null; try { tool tool = gettool(); filehandler = tool.gettoolresource().getfilehandler(); string workingdirectory = tool.gettoolresource().getworkingdirectory(task.getjobhandle()); list<filehandler.f... | SciGaP/DEPRECATED-Cipres-Airavata-POC | [
1,
0,
0,
0
] |
8,012 | protected final void codegenCallInContextMethod(ClassGeneratorHelper classGen, boolean isOverride)
{
IResolvedQualifiersReference applyReference = ReferenceFactory.resolvedQualifierQualifiedReference(royaleProject.getWorkspace(),
NamespaceDefinition.getAS3NamespaceDefinition(), "apply");
... | protected final void codegenCallInContextMethod(ClassGeneratorHelper classGen, boolean isOverride)
{
IResolvedQualifiersReference applyReference = ReferenceFactory.resolvedQualifierQualifiedReference(royaleProject.getWorkspace(),
NamespaceDefinition.getAS3NamespaceDefinition(), "apply");
... | protected final void codegencallincontextmethod(classgeneratorhelper classgen, boolean isoverride) { iresolvedqualifiersreference applyreference = referencefactory.resolvedqualifierqualifiedreference(royaleproject.getworkspace(), namespacedefinition.getas3namespacedefinition(), "apply"); instructionlist callincontext =... | alinakazi/apache-royale-0.9.8-bin-js-swf | [
1,
0,
0,
0
] |
16,242 | private void rhKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_rhKeyReleased
// calc_total(); // TODO add your handling code here:
} | private void rhKeyReleased(java.awt.event.KeyEvent evt) {
} | private void rhkeyreleased(java.awt.event.keyevent evt) { } | ajpro-byte/ClinicMGMT | [
0,
1,
0,
0
] |
16,243 | private void riKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_riKeyReleased
//calc_total(); // TODO add your handling code here:
if (ri.isEnabled()==true){
calc_total();
}else{
}
} | private void riKeyReleased(java.awt.event.KeyEvent evt) {
if (ri.isEnabled()==true){
calc_total();
}else{
}
} | private void rikeyreleased(java.awt.event.keyevent evt) { if (ri.isenabled()==true){ calc_total(); }else{ } } | ajpro-byte/ClinicMGMT | [
0,
1,
0,
0
] |
32,858 | @Override
protected Collection<String> getDirectoryEntries(Path path) throws IOException {
// TODO(felly): Support directory traversal.
return ImmutableList.of();
} | @Override
protected Collection<String> getDirectoryEntries(Path path) throws IOException {
return ImmutableList.of();
} | @override protected collection<string> getdirectoryentries(path path) throws ioexception { return immutablelist.of(); } | bloomberg/bazel | [
1,
0,
0,
0
] |
8,382 | public String parseId() throws SyntaxError {
String value = parseArg();
if (argWasQuoted()) {
throw new SyntaxError("Expected identifier instead of quoted string:" + value);
} else if (value == null) {
throw new SyntaxError("Expected identifier instead of 'null' for function " + sp);
}
... | public String parseId() throws SyntaxError {
String value = parseArg();
if (argWasQuoted()) {
throw new SyntaxError("Expected identifier instead of quoted string:" + value);
} else if (value == null) {
throw new SyntaxError("Expected identifier instead of 'null' for function " + sp);
}
... | public string parseid() throws syntaxerror { string value = parsearg(); if (argwasquoted()) { throw new syntaxerror("expected identifier instead of quoted string:" + value); } else if (value == null) { throw new syntaxerror("expected identifier instead of 'null' for function " + sp); } return value; } | anon24816/lucene-solr | [
0,
0,
0,
0
] |
8,383 | public Query parseNestedQuery() throws SyntaxError {
Query nestedQuery;
if (sp.opt("$")) {
String param = sp.getId();
String qstr = getParam(param);
qstr = qstr==null ? "" : qstr;
nestedQuery = subQuery(qstr, null).getQuery();
// nestedQuery would be null when de-referenced query v... | public Query parseNestedQuery() throws SyntaxError {
Query nestedQuery;
if (sp.opt("$")) {
String param = sp.getId();
String qstr = getParam(param);
qstr = qstr==null ? "" : qstr;
nestedQuery = subQuery(qstr, null).getQuery();
if (nestedQuery == null) {
throw ne... | public query parsenestedquery() throws syntaxerror { query nestedquery; if (sp.opt("$")) { string param = sp.getid(); string qstr = getparam(param); qstr = qstr==null ? "" : qstr; nestedquery = subquery(qstr, null).getquery(); if (nestedquery == null) { throw new syntaxerror("missing param " + param + " while parsing f... | anon24816/lucene-solr | [
0,
1,
0,
0
] |
16,595 | public void testPrint() throws Exception {
Map map = new HashMap();
map.put("bob", "drools");
map.put("james", "geronimo");
List list = new ArrayList();
list.add(map);
/** @todo fix this! */
//assertConsoleOutput(list, "[['bob':'drools', 'james':'geronimo']]");
... | public void testPrint() throws Exception {
Map map = new HashMap();
map.put("bob", "drools");
map.put("james", "geronimo");
List list = new ArrayList();
list.add(map);
} | public void testprint() throws exception { map map = new hashmap(); map.put("bob", "drools"); map.put("james", "geronimo"); list list = new arraylist(); list.add(map); } | chanwit/groovy | [
0,
0,
1,
0
] |
8,514 | public Object getTarget() {
try {
checkPermission(READ);
} catch (AccessDeniedException e) {
String rest = Stapler.getCurrentRequest().getRestOfPath();
for (String name : ALWAYS_READABLE_PATHS) {
if (rest.startsWith(name)) {
return ... | public Object getTarget() {
try {
checkPermission(READ);
} catch (AccessDeniedException e) {
String rest = Stapler.getCurrentRequest().getRestOfPath();
for (String name : ALWAYS_READABLE_PATHS) {
if (rest.startsWith(name)) {
return ... | public object gettarget() { try { checkpermission(read); } catch (accessdeniedexception e) { string rest = stapler.getcurrentrequest().getrestofpath(); for (string name : always_readable_paths) { if (rest.startswith(name)) { return this; } } for (string name : getunprotectedrootactions()) { if (rest.startswith("/" + na... | codemonkey77/jenkins | [
1,
0,
0,
0
] |
24,924 | public ObjectiveFunctionInterface getObjectiveFunction(){
return this.oObjectiveFunction;
} | public ObjectiveFunctionInterface getObjectiveFunction(){
return this.oObjectiveFunction;
} | public objectivefunctioninterface getobjectivefunction(){ return this.oobjectivefunction; } | cmyxt502/aim-project-2020 | [
0,
1,
0,
0
] |
16,806 | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Bundle args = getArguments();
TierCategory category = (TierCategory) args.getSerializable("category");
String tier = args.getString("tier");
// Inflate th... | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Bundle args = getArguments();
TierCategory category = (TierCategory) args.getSerializable("category");
String tier = args.getString("tier");
V... | @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { bundle args = getarguments(); tiercategory category = (tiercategory) args.getserializable("category"); string tier = args.getstring("tier"); view view = inflater.inflate(r.layout.fragment_tier_list, container, ... | chinhodado/BBDB | [
1,
0,
0,
0
] |
16,807 | @Override
protected void onPostExecute(Void param) {
if (pageDOM == null) {
return; // instead of try-catch
}
Elements tierTables = pageDOM.getElementsByClass("wikitable");
// calculate the width of the images to be displayed later on
D... | @Override
protected void onPostExecute(Void param) {
if (pageDOM == null) {
return;
}
Elements tierTables = pageDOM.getElementsByClass("wikitable");
Display display = activity.getWindowManager().getDefaultDisplay();
Point si... | @override protected void onpostexecute(void param) { if (pagedom == null) { return; } elements tiertables = pagedom.getelementsbyclass("wikitable"); display display = activity.getwindowmanager().getdefaultdisplay(); point size = new point(); display.getsize(size); int screenwidth = size.x; int scalewidth = screenwidth ... | chinhodado/BBDB | [
0,
1,
0,
0
] |
33,203 | protected void processProperty(String beanName, BeanDefinition definition, PropertyDescriptor descriptor) throws BeansException {
Method method = descriptor.getWriteMethod();
if (method != null) {
// TODO should we handle the property.name() attribute?
// maybe add this to XBean ... | protected void processProperty(String beanName, BeanDefinition definition, PropertyDescriptor descriptor) throws BeansException {
Method method = descriptor.getWriteMethod();
if (method != null) {
Property property = method.getAnnotation(Property.class);
i... | protected void processproperty(string beanname, beandefinition definition, propertydescriptor descriptor) throws beansexception { method method = descriptor.getwritemethod(); if (method != null) { property property = method.getannotation(property.class); if (property != null) { if (property.required()) { string propert... | codehaus/xbean | [
1,
0,
0,
0
] |
16,856 | protected List<String> findBestTrailForUrlPathElems(Delegator delegator, List<List<String>> possibleTrails, List<AltUrlPartResults> pathElems) throws GenericEntityException {
if (pathElems.isEmpty()) return null;
List<String> bestTrail = null;
for(List<String> trail : possibleTrails) {
... | protected List<String> findBestTrailForUrlPathElems(Delegator delegator, List<List<String>> possibleTrails, List<AltUrlPartResults> pathElems) throws GenericEntityException {
if (pathElems.isEmpty()) return null;
List<String> bestTrail = null;
for(List<String> trail : possibleTrails) {
... | protected list<string> findbesttrailforurlpathelems(delegator delegator, list<list<string>> possibletrails, list<alturlpartresults> pathelems) throws genericentityexception { if (pathelems.isempty()) return null; list<string> besttrail = null; for(list<string> trail : possibletrails) { if (pathelems.size() > trail.size... | codesbyzhangpeng/scipio-erp | [
1,
0,
0,
0
] |
16,860 | protected List<List<String>> getProductRollupTrails(Delegator delegator, String productId, Set<String> topCategoryIds) {
return ProductWorker.getProductRollupTrails(delegator, productId, topCategoryIds, true);
} | protected List<List<String>> getProductRollupTrails(Delegator delegator, String productId, Set<String> topCategoryIds) {
return ProductWorker.getProductRollupTrails(delegator, productId, topCategoryIds, true);
} | protected list<list<string>> getproductrolluptrails(delegator delegator, string productid, set<string> topcategoryids) { return productworker.getproductrolluptrails(delegator, productid, topcategoryids, true); } | codesbyzhangpeng/scipio-erp | [
0,
1,
0,
0
] |
16,861 | protected List<List<String>> getCategoryRollupTrails(Delegator delegator, String productCategoryId, Set<String> topCategoryIds) {
return CategoryWorker.getCategoryRollupTrails(delegator, productCategoryId, topCategoryIds, true);
} | protected List<List<String>> getCategoryRollupTrails(Delegator delegator, String productCategoryId, Set<String> topCategoryIds) {
return CategoryWorker.getCategoryRollupTrails(delegator, productCategoryId, topCategoryIds, true);
} | protected list<list<string>> getcategoryrolluptrails(delegator delegator, string productcategoryid, set<string> topcategoryids) { return categoryworker.getcategoryrolluptrails(delegator, productcategoryid, topcategoryids, true); } | codesbyzhangpeng/scipio-erp | [
0,
1,
0,
0
] |
33,286 | @Override
public void handleIncoming(SoeUdpConnection connection, ClientIdMsg message) throws Exception {
// Validate client version
if (!message.getClientVersion().equals(requiredClientVersion)) {
ErrorMessage error = new ErrorMessage("Login Error", "The client you are attempting to con... | @Override
public void handleIncoming(SoeUdpConnection connection, ClientIdMsg message) throws Exception {
if (!message.getClientVersion().equals(requiredClientVersion)) {
ErrorMessage error = new ErrorMessage("Login Error", "The client you are attempting to connect with does not match th... | @override public void handleincoming(soeudpconnection connection, clientidmsg message) throws exception { if (!message.getclientversion().equals(requiredclientversion)) { errormessage error = new errormessage("login error", "the client you are attempting to connect with does not match that required by the server.", fal... | bacta/cu | [
0,
1,
0,
0
] |
25,102 | private void addSKOSDataProperties(final OWLNamedIndividual concept,
final Stream<OWLAnnotation> annos) {
// Need a method in the OWL API to get Annotation by URI...
final Map<IRI, OWLDataProperty> annoMap = mapper.getAnnotationMap();
final AtomicBoolean inSchemeAdded = new AtomicBoolean(false);
a... | private void addSKOSDataProperties(final OWLNamedIndividual concept,
final Stream<OWLAnnotation> annos) {
final Map<IRI, OWLDataProperty> annoMap = mapper.getAnnotationMap();
final AtomicBoolean inSchemeAdded = new AtomicBoolean(false);
annos.forEach(anno -> {
final OWLDataProperty prop = an... | private void addskosdataproperties(final owlnamedindividual concept, final stream<owlannotation> annos) { final map<iri, owldataproperty> annomap = mapper.getannotationmap(); final atomicboolean inschemeadded = new atomicboolean(false); annos.foreach(anno -> { final owldataproperty prop = annomap.get(anno.getproperty()... | autayeu/obo2skos | [
1,
1,
0,
0
] |
16,966 | @SuppressWarnings("deprecation")
private static void broadcastStateChange(String title, boolean preparing, boolean titleOrSongHaveChanged) {
if (notificationBroadcastPending) {
localHandler.removeMessages(MSG_BROADCAST_STATE_CHANGE);
notificationBroadcastPending = false;
}
final long now = SystemClock.upti... | @SuppressWarnings("deprecation")
private static void broadcastStateChange(String title, boolean preparing, boolean titleOrSongHaveChanged) {
if (notificationBroadcastPending) {
localHandler.removeMessages(MSG_BROADCAST_STATE_CHANGE);
notificationBroadcastPending = false;
}
final long now = SystemClock.upti... | @suppresswarnings("deprecation") private static void broadcaststatechange(string title, boolean preparing, boolean titleorsonghavechanged) { if (notificationbroadcastpending) { localhandler.removemessages(msg_broadcast_state_change); notificationbroadcastpending = false; } final long now = systemclock.uptimemillis(); f... | carlosrafaelgn/FPlayAndroid | [
0,
1,
1,
0
] |
25,223 | public Node<N> join(Node<N> x, Node<N> y) {
// TODO this.majorants should return an iterator
SortedSet<Node<N>> xMajorants = new TreeSet<Node<N>>(this.majorants(x));
xMajorants.add(x);
SortedSet<Node<N>> yMajorants = new TreeSet<Node<N>>(this.majorants(y));
yMajorants.add(y);
... | public Node<N> join(Node<N> x, Node<N> y) {
SortedSet<Node<N>> xMajorants = new TreeSet<Node<N>>(this.majorants(x));
xMajorants.add(x);
SortedSet<Node<N>> yMajorants = new TreeSet<Node<N>>(this.majorants(y));
yMajorants.add(y);
xMajorants.retainAll(yMajorants);
DA... | public node<n> join(node<n> x, node<n> y) { sortedset<node<n>> xmajorants = new treeset<node<n>>(this.majorants(x)); xmajorants.add(x); sortedset<node<n>> ymajorants = new treeset<node<n>>(this.majorants(y)); ymajorants.add(y); xmajorants.retainall(ymajorants); dagraph<n, e> graph = this.getsubgraphbynodes(xmajorants);... | chdemko/java-lattices | [
1,
0,
0,
0
] |
8,840 | public static void resetData(BitbucketTestedProduct stash) {
YaccRepoSettingsPage settingsPage = stash.visit(BitbucketLoginPage.class)
.loginAsSysAdmin(YaccRepoSettingsPage.class);
settingsPage.clickEditYacc()
.clearSettings();
settingsPage.clickSubmit();
... | public static void resetData(BitbucketTestedProduct stash) {
YaccRepoSettingsPage settingsPage = stash.visit(BitbucketLoginPage.class)
.loginAsSysAdmin(YaccRepoSettingsPage.class);
settingsPage.clickEditYacc()
.clearSettings();
settingsPage.clickSubmit();
... | public static void resetdata(bitbuckettestedproduct stash) { yaccreposettingspage settingspage = stash.visit(bitbucketloginpage.class) .loginassysadmin(yaccreposettingspage.class); settingspage.clickedityacc() .clearsettings(); settingspage.clicksubmit(); settingspage.clickdisable(); yaccglobalsettingspage globalsettin... | christiangalsterer/yet-another-commit-checker | [
1,
0,
0,
0
] |
17,204 | public void getDagInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
Map<String, Set<String>> counterNames = getCounterListFromRequest();
Map<String, Object> dagInfo = new HashMap<String, Object>();
dagInfo.put("id",... | public void getDagInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
Map<String, Set<String>> counterNames = getCounterListFromRequest();
Map<String, Object> dagInfo = new HashMap<String, Object>();
dagInfo.put("id",... | public void getdaginfo() { if (!setupresponse()) { return; } dag dag = checkandgetdagfromrequest(); if (dag == null) { return; } map<string, set<string>> counternames = getcounterlistfromrequest(); map<string, object> daginfo = new hashmap<string, object>(); daginfo.put("id", dag.getid().tostring()); daginfo.put("progr... | chenjunbiao001/tez | [
0,
1,
0,
0
] |
17,205 | private Map<String, Object> getVertexInfoMap(Vertex vertex,
Map<String, Set<String>> counterNames) {
Map<String, Object> vertexInfo = new HashMap<String, Object>();
vertexInfo.put("id", vertex.getVertexId().toString());
vertexInfo.put("status", vertex.getState(... | private Map<String, Object> getVertexInfoMap(Vertex vertex,
Map<String, Set<String>> counterNames) {
Map<String, Object> vertexInfo = new HashMap<String, Object>();
vertexInfo.put("id", vertex.getVertexId().toString());
vertexInfo.put("status", vertex.getState(... | private map<string, object> getvertexinfomap(vertex vertex, map<string, set<string>> counternames) { map<string, object> vertexinfo = new hashmap<string, object>(); vertexinfo.put("id", vertex.getvertexid().tostring()); vertexinfo.put("status", vertex.getstate().tostring()); vertexinfo.put("progress", float.tostring(ve... | chenjunbiao001/tez | [
0,
1,
0,
0
] |
17,206 | public void getTasksInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
int limit = MAX_QUERIED;
try {
limit = getQueryParamInt(WebUIService.LIMIT);
} catch (NumberFormatException e) {
//Ignore
}
L... | public void getTasksInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
int limit = MAX_QUERIED;
try {
limit = getQueryParamInt(WebUIService.LIMIT);
} catch (NumberFormatException e) {
}
List<Task>... | public void gettasksinfo() { if (!setupresponse()) { return; } dag dag = checkandgetdagfromrequest(); if (dag == null) { return; } int limit = max_queried; try { limit = getqueryparamint(webuiservice.limit); } catch (numberformatexception e) { } list<task> tasks = getrequestedtasks(dag, limit); if(tasks == null) { retu... | chenjunbiao001/tez | [
0,
1,
0,
0
] |
17,207 | public void getAttemptsInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
int limit = MAX_QUERIED;
try {
limit = getQueryParamInt(WebUIService.LIMIT);
} catch (NumberFormatException e) {
//Ignore
}
... | public void getAttemptsInfo() {
if (!setupResponse()) {
return;
}
DAG dag = checkAndGetDAGFromRequest();
if (dag == null) {
return;
}
int limit = MAX_QUERIED;
try {
limit = getQueryParamInt(WebUIService.LIMIT);
} catch (NumberFormatException e) {
}
List<Ta... | public void getattemptsinfo() { if (!setupresponse()) { return; } dag dag = checkandgetdagfromrequest(); if (dag == null) { return; } int limit = max_queried; try { limit = getqueryparamint(webuiservice.limit); } catch (numberformatexception e) { } list<taskattempt> attempts = getrequestedattempts(dag, limit); if(attem... | chenjunbiao001/tez | [
0,
1,
0,
0
] |
824 | public DIDDocument resolveUntrustedDid(DID did, boolean force)
throws DIDResolveException {
log.debug("Resolving untrusted DID {}...", did.toString());
if (resolveHandle != null) {
DIDDocument doc = resolveHandle.resolve(did);
if (doc != null)
return doc;
}
DIDBiography bio = resolveDidBiography(di... | public DIDDocument resolveUntrustedDid(DID did, boolean force)
throws DIDResolveException {
log.debug("Resolving untrusted DID {}...", did.toString());
if (resolveHandle != null) {
DIDDocument doc = resolveHandle.resolve(did);
if (doc != null)
return doc;
}
DIDBiography bio = resolveDidBiography(di... | public diddocument resolveuntrusteddid(did did, boolean force) throws didresolveexception { log.debug("resolving untrusted did {}...", did.tostring()); if (resolvehandle != null) { diddocument doc = resolvehandle.resolve(did); if (doc != null) return doc; } didbiography bio = resolvedidbiography(did, false, force); did... | chenyukaola/Elastos.DID.Java.SDK | [
1,
0,
0,
0
] |
1,011 | @Override
protected ImmutableList<String> getShellCommandInternal(ExecutionContext context) {
ImmutableList.Builder<String> builder = ImmutableList.builder();
builder.addAll(commandPrefix);
builder.add("compile");
builder.add("--legacy"); // TODO(dreiss): Maybe make this an option?
bui... | @Override
protected ImmutableList<String> getShellCommandInternal(ExecutionContext context) {
ImmutableList.Builder<String> builder = ImmutableList.builder();
builder.addAll(commandPrefix);
builder.add("compile");
builder.add("--legacy");
builder.add("-o");
builder.add(outputPath... | @override protected immutablelist<string> getshellcommandinternal(executioncontext context) { immutablelist.builder<string> builder = immutablelist.builder(); builder.addall(commandprefix); builder.add("compile"); builder.add("--legacy"); builder.add("-o"); builder.add(outputpath.tostring()); builder.add("--dir"); buil... | chancila/buck | [
1,
0,
0,
0
] |
25,614 | private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception {
checkState(
stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName());
checkState(
stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName());
... | private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception {
checkState(
stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName());
checkState(
stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName());
... | private void processelementwithsdkharness(windowedvalue<inputt> element) throws exception { checkstate( stagebundlefactory != null, "%s not yet prepared", stagebundlefactory.class.getname()); checkstate( staterequesthandler != null, "%s not yet prepared", staterequesthandler.class.getname()); outputreceiverfactory rece... | chinasaur/beam | [
1,
1,
0,
0
] |
9,325 | public static AuthorizationHandler getAuthZHandler() {
return (AuthenticationData authN) -> {
try {
//framework checks for null authN so this shouldn't happen
if (authN == null) {
throw new RuntimeException("Null AuthN data passed in!");
... | public static AuthorizationHandler getAuthZHandler() {
return (AuthenticationData authN) -> {
try {
if (authN == null) {
throw new RuntimeException("Null AuthN data passed in!");
}
if ... | public static authorizationhandler getauthzhandler() { return (authenticationdata authn) -> { try { if (authn == null) { throw new runtimeexception("null authn data passed in!"); } if (authn instanceof clientnameauthenicationdata) { final clientnameauthenicationdata data = (clientnameauthenicationdata) authn; final str... | bgklika/aws-iot-device-sdk-java-v2 | [
1,
0,
0,
0
] |
17,543 | public Object checkIfAlreadyRegistered(Object object, ClassDescriptor descriptor) {
// Don't register read-only classes
if (isClassReadOnly(object.getClass(), descriptor)) {
return null;
}
// Check if the working copy is again being registered in which case we return the same... | public Object checkIfAlreadyRegistered(Object object, ClassDescriptor descriptor) {
if (isClassReadOnly(object.getClass(), descriptor)) {
return null;
}
Object registeredObject = getCloneMapping().get(object);
if (registeredObject != null) {
return... | public object checkifalreadyregistered(object object, classdescriptor descriptor) { if (isclassreadonly(object.getclass(), descriptor)) { return null; } object registeredobject = getclonemapping().get(object); if (registeredobject != null) { return object; } if (hasnewobjects()) { registeredobject = getnewobjectsorigin... | chenjiafan/eclipselink | [
0,
0,
1,
0
] |
17,549 | public void performRemove(Object toBeDeleted, Map visitedObjects) {
if (toBeDeleted == null) {
return;
}
ClassDescriptor descriptor = getDescriptor(toBeDeleted);
if ((descriptor == null) || descriptor.isDescriptorTypeAggregate()) {
throw new IllegalArgumentExcepti... | public void performRemove(Object toBeDeleted, Map visitedObjects) {
if (toBeDeleted == null) {
return;
}
ClassDescriptor descriptor = getDescriptor(toBeDeleted);
if ((descriptor == null) || descriptor.isDescriptorTypeAggregate()) {
throw new IllegalArgumentExcepti... | public void performremove(object tobedeleted, map visitedobjects) { if (tobedeleted == null) { return; } classdescriptor descriptor = getdescriptor(tobedeleted); if ((descriptor == null) || descriptor.isdescriptortypeaggregate()) { throw new illegalargumentexception(exceptionlocalization.buildmessage("not_an_entity", n... | chenjiafan/eclipselink | [
0,
0,
1,
0
] |
17,557 | protected Map cloneMap(Map map){
// bug 270413. This method is needed to avoid the class cast exception when the reference mode is weak.
if (this.referenceMode != null && this.referenceMode != ReferenceMode.HARD) return (IdentityWeakHashMap)((IdentityWeakHashMap)map).clone();
return (IdentityHashM... | protected Map cloneMap(Map map){
if (this.referenceMode != null && this.referenceMode != ReferenceMode.HARD) return (IdentityWeakHashMap)((IdentityWeakHashMap)map).clone();
return (IdentityHashMap)((IdentityHashMap)map).clone();
} | protected map clonemap(map map){ if (this.referencemode != null && this.referencemode != referencemode.hard) return (identityweakhashmap)((identityweakhashmap)map).clone(); return (identityhashmap)((identityhashmap)map).clone(); } | chenjiafan/eclipselink | [
0,
0,
1,
0
] |
1,232 | protected void deleteAllInstancesForConcept(ActionContext pAc, CeConcept pConcept) {
// Note that instances are not referenced by any other model entity, so
// they can be safely deleted here
// without leaving any references in place.
// If there are textual references to the instance (i.e. in a property
// ... | protected void deleteAllInstancesForConcept(ActionContext pAc, CeConcept pConcept) {
ArrayList<CeInstance> allInsts = getAllInstancesForConcept(pConcept);
for (CeInstance thisInst : allInsts) {
deleteInstanceNoRefs(thisInst);
}
this.instancesByConcept.remove(pConcept);
pAc.getMode... | protected void deleteallinstancesforconcept(actioncontext pac, ceconcept pconcept) { arraylist<ceinstance> allinsts = getallinstancesforconcept(pconcept); for (ceinstance thisinst : allinsts) { deleteinstancenorefs(thisinst); } this.instancesbyconcept.remove(pconcept); pac.getmodelbuilder().removeunusedsentencesandsour... | ce-store/ce-store | [
0,
1,
0,
0
] |
25,901 | @Test
public void testGetVotesForInstance() {
System.out.println("getVotesForInstance");
FeS2 classifier = new FeS2();
Instance x = trainingSet.instance(0);
classifier.subspaceStrategyOption.setChosenIndex(0);
classifier.distanceStrategyOption.setChosenIndex(2);
class... | @Test
public void testGetVotesForInstance() {
System.out.println("getVotesForInstance");
FeS2 classifier = new FeS2();
Instance x = trainingSet.instance(0);
classifier.subspaceStrategyOption.setChosenIndex(0);
classifier.distanceStrategyOption.setChosenIndex(2);
class... | @test public void testgetvotesforinstance() { system.out.println("getvotesforinstance"); fes2 classifier = new fes2(); instance x = trainingset.instance(0); classifier.subspacestrategyoption.setchosenindex(0); classifier.distancestrategyoption.setchosenindex(2); classifier.initialclusterweightoption.setvalue(0.1); clas... | bigfastdata/SluiceBox | [
0,
1,
0,
0
] |
34,109 | public ReportHeaderGroup getReportHeaderGroup(int col)
{
/* no report header groups? */
if (ListTools.isEmpty(this.rptHdrGrps)) {
return null;
}
/* search for column */
for (ReportHeaderGroup rhg : this.rptHdrGrps) {
int C = rhg.getColIndex();
... | public ReportHeaderGroup getReportHeaderGroup(int col)
{
if (ListTools.isEmpty(this.rptHdrGrps)) {
return null;
}
for (ReportHeaderGroup rhg : this.rptHdrGrps) {
int C = rhg.getColIndex();
if (col == C) {
return rhg;
... | public reportheadergroup getreportheadergroup(int col) { if (listtools.isempty(this.rpthdrgrps)) { return null; } for (reportheadergroup rhg : this.rpthdrgrps) { int c = rhg.getcolindex(); if (col == c) { return rhg; } } return null; } | aungphyopyaekyaw/gpstrack | [
1,
0,
0,
0
] |
9,544 | @Override
public int getPreferredHeight() {
// The superclass uses getOffsetHeight, which won't work for us.
return ComponentConstants.VIDEOPLAYER_PREFERRED_HEIGHT;
} | @Override
public int getPreferredHeight() {
return ComponentConstants.VIDEOPLAYER_PREFERRED_HEIGHT;
} | @override public int getpreferredheight() { return componentconstants.videoplayer_preferred_height; } | be1be1/appinventor-polyu | [
0,
0,
1,
0
] |
25,966 | private void buildConstant(JSONObject obj, Map<String, PhaserType> typeMap) {
if (obj.getString("kind").equals("constant")) {
String name = obj.getString("name");
String desc = obj.optString("description", "");
Object defaultValue = obj.opt("defaultvalue");
String[] types;
if (obj.has("type")) {
JS... | private void buildConstant(JSONObject obj, Map<String, PhaserType> typeMap) {
if (obj.getString("kind").equals("constant")) {
String name = obj.getString("name");
String desc = obj.optString("description", "");
Object defaultValue = obj.opt("defaultvalue");
String[] types;
if (obj.has("type")) {
JS... | private void buildconstant(jsonobject obj, map<string, phasertype> typemap) { if (obj.getstring("kind").equals("constant")) { string name = obj.getstring("name"); string desc = obj.optstring("description", ""); object defaultvalue = obj.opt("defaultvalue"); string[] types; if (obj.has("type")) { jsonarray jsontypes = o... | boniatillo-com/rayo | [
1,
0,
1,
0
] |
1,477 | @Override
public String getName() {
return "Manage services";
} | @Override
public String getName() {
return "Manage services";
} | @override public string getname() { return "manage services"; } | civts/AAC | [
1,
0,
0,
0
] |
9,669 | @Override
public void testSave() {
// TODO Embedded Elasticsearch integration tests do not support has child operations
} | @Override
public void testSave() {
} | @override public void testsave() { } | commitd/jonah-server | [
0,
1,
0,
0
] |
1,489 | public void downloadTiles(){
setVisible(false);
final ProgressDialog progressDialog = new ProgressDialog(this, Messages.getString("TileBundleDownloadDialog.DOWNLOADING.TILES")); //$NON-NLS-1$
int numberTiles = 0;
final int startZoom = (Integer) startSpinner.getValue();
final int endZoom = (Integer) endSpinner... | public void downloadTiles(){
setVisible(false);
final ProgressDialog progressDialog = new ProgressDialog(this, Messages.getString("TileBundleDownloadDialog.DOWNLOADING.TILES"));
int numberTiles = 0;
final int startZoom = (Integer) startSpinner.getValue();
final int endZoom = (Integer) endSpinner.getValue();
... | public void downloadtiles(){ setvisible(false); final progressdialog progressdialog = new progressdialog(this, messages.getstring("tilebundledownloaddialog.downloading.tiles")); int numbertiles = 0; final int startzoom = (integer) startspinner.getvalue(); final int endzoom = (integer) endspinner.getvalue(); for (int zo... | brownsys/android-app-modes-osmand | [
0,
1,
0,
0
] |
26,161 | @Override
public boolean saveSettings() {
// We might even consider updating the user-supplied file, if any...
return false;
} | @Override
public boolean saveSettings() {
return false;
} | @override public boolean savesettings() { return false; } | chbi/gerrit-gitblit-plugin | [
1,
0,
0,
0
] |
34,429 | public void setValue(Object newValue) {
Object checkedValue = checkValue(newValue);
setDirty(isDifferent(baseValue, checkedValue));
if (isDifferent(value, checkedValue)){ // firePropertyChange doesn't do this check sufficiently
firePropertyChange(VALUE, value, value = checkedValue); ... | public void setValue(Object newValue) {
Object checkedValue = checkValue(newValue);
setDirty(isDifferent(baseValue, checkedValue));
if (isDifferent(value, checkedValue)){
firePropertyChange(VALUE, value, value = checkedValue);
}
} | public void setvalue(object newvalue) { object checkedvalue = checkvalue(newvalue); setdirty(isdifferent(basevalue, checkedvalue)); if (isdifferent(value, checkedvalue)){ firepropertychange(value, value, value = checkedvalue); } } | canoo/open-dolphin | [
1,
0,
0,
0
] |
26,262 | @Override
public TestThread<ResourcePoolT, ProtocolBuilderNumeric> next() {
// TODO Should be split into different tests for mean, variance, covariance, covariancematrix
return new TestThread<ResourcePoolT, ProtocolBuilderNumeric>() {
private final List<Integer> data1 = Arrays.asList(543, 520, 5... | @Override
public TestThread<ResourcePoolT, ProtocolBuilderNumeric> next() {
return new TestThread<ResourcePoolT, ProtocolBuilderNumeric>() {
private final List<Integer> data1 = Arrays.asList(543, 520, 532, 497, 450, 432);
private final List<Integer> data2 = Arrays.asList(432, 620, 232, 3... | @override public testthread<resourcepoolt, protocolbuildernumeric> next() { return new testthread<resourcepoolt, protocolbuildernumeric>() { private final list<integer> data1 = arrays.aslist(543, 520, 532, 497, 450, 432); private final list<integer> data2 = arrays.aslist(432, 620, 232, 337, 250, 433); private final lis... | basitkhurram/fresco | [
0,
0,
0,
1
] |
1,728 | public String generateSmtForClause(AnalysisContract ac, ContractClause cc, boolean verifyOrFind) {
// prepare for a new iteration, clean the state
clearData();
// handle contract clause itself first (implicitly includes traversing unknown types and properties)
String clauseOutput = "";
if (verifyOrFind)
c... | public String generateSmtForClause(AnalysisContract ac, ContractClause cc, boolean verifyOrFind) {
clearData();
String clauseOutput = "";
if (verifyOrFind)
clauseOutput += generateSmtContractClauseVerify(cc);
else
clauseOutput += generateSmtContractClauseFind(cc);
traverseInputOutput(ac);
... | public string generatesmtforclause(analysiscontract ac, contractclause cc, boolean verifyorfind) { cleardata(); string clauseoutput = ""; if (verifyorfind) clauseoutput += generatesmtcontractclauseverify(cc); else clauseoutput += generatesmtcontractclausefind(cc); traverseinputoutput(ac); string deffactoutput = psg.gen... | bisc/active | [
0,
0,
1,
0
] |
34,500 | @NonNull
public static Geopoint[] getTrack(final Geopoint start, final Geopoint destination) {
if (brouter == null || Settings.getRoutingMode() == RoutingMode.STRAIGHT) {
return defaultTrack(start, destination);
}
// avoid updating to frequently
final long timeNow = Syste... | @NonNull
public static Geopoint[] getTrack(final Geopoint start, final Geopoint destination) {
if (brouter == null || Settings.getRoutingMode() == RoutingMode.STRAIGHT) {
return defaultTrack(start, destination);
}
final long timeNow = System.currentTimeMillis();
i... | @nonnull public static geopoint[] gettrack(final geopoint start, final geopoint destination) { if (brouter == null || settings.getroutingmode() == routingmode.straight) { return defaulttrack(start, destination); } final long timenow = system.currenttimemillis(); if ((timenow - timelastupdate) < 1000 * update_min_delay_... | cayacdev/cgeo | [
0,
1,
0,
0
] |
26,309 | public static void load(Preferences options) {
fontFamily.init(options, "fontFamily", null, value -> safeFontFamily(value));
fontSize.init(options, "fontSize", DEF_FONT_SIZE);
markdownExtensions.init(options, "markdownExtensions");
// TODO rewrite after add extension dialogs
setM... | public static void load(Preferences options) {
fontFamily.init(options, "fontFamily", null, value -> safeFontFamily(value));
fontSize.init(options, "fontSize", DEF_FONT_SIZE);
markdownExtensions.init(options, "markdownExtensions");
setMarkdownExtensions(MarkdownExtensions.ids());... | public static void load(preferences options) { fontfamily.init(options, "fontfamily", null, value -> safefontfamily(value)); fontsize.init(options, "fontsize", def_font_size); markdownextensions.init(options, "markdownextensions"); setmarkdownextensions(markdownextensions.ids()); showlineno.init(options, "showlineno", ... | baobab-it/notebookFX | [
0,
1,
0,
0
] |
26,319 | @Override
public void close()
{
// TODO: Connect
} | @Override
public void close()
{
} | @override public void close() { } | ankitaagar/felix-dev | [
0,
1,
0,
0
] |
26,320 | @Override
public String getEntryAsNativeLibrary(String entryName)
{
// TODO: Connect
return null;
} | @Override
public String getEntryAsNativeLibrary(String entryName)
{
return null;
} | @override public string getentryasnativelibrary(string entryname) { return null; } | ankitaagar/felix-dev | [
0,
1,
0,
0
] |
26,321 | @Override
public URL getEntryAsURL(String name)
{
// TODO: Connect
return null;
} | @Override
public URL getEntryAsURL(String name)
{
return null;
} | @override public url getentryasurl(string name) { return null; } | ankitaagar/felix-dev | [
0,
1,
0,
0
] |
1,778 | public void testLayerHandle() throws Exception {
NbModuleProject project = TestBase.generateStandaloneModule(getWorkDir(), "module");
LayerHandle handle = LayerHandle.forProject(project);
FileObject expectedLayerXML = project.getProjectDirectory().getFileObject("src/org/example/module/resources/... | public void testLayerHandle() throws Exception {
NbModuleProject project = TestBase.generateStandaloneModule(getWorkDir(), "module");
LayerHandle handle = LayerHandle.forProject(project);
FileObject expectedLayerXML = project.getProjectDirectory().getFileObject("src/org/example/module/resources/... | public void testlayerhandle() throws exception { nbmoduleproject project = testbase.generatestandalonemodule(getworkdir(), "module"); layerhandle handle = layerhandle.forproject(project); fileobject expectedlayerxml = project.getprojectdirectory().getfileobject("src/org/example/module/resources/layer.xml"); assertnotnu... | arusinha/incubator-netbeans | [
0,
0,
0,
1
] |
26,391 | private DeferredParameter loadObjectInstanceImpl(Object param, Map<Object, DeferredParameter> existing,
Class<?> expectedType, boolean relaxedValidation) {
//null is easy
if (param == null) {
return new DeferredParameter() {
@Override
ResultHandle ... | private DeferredParameter loadObjectInstanceImpl(Object param, Map<Object, DeferredParameter> existing,
Class<?> expectedType, boolean relaxedValidation) {
if (param == null) {
return new DeferredParameter() {
@Override
ResultHandle doLoad(MethodCo... | private deferredparameter loadobjectinstanceimpl(object param, map<object, deferredparameter> existing, class<?> expectedtype, boolean relaxedvalidation) { if (param == null) { return new deferredparameter() { @override resulthandle doload(methodcontext creator, methodcreator method, resulthandle array) { return method... | cdhermann/quarkus | [
0,
0,
1,
0
] |
26,392 | private DeferredParameter loadComplexObject(Object param, Map<Object, DeferredParameter> existing,
Class<?> expectedType, boolean relaxedValidation) {
//a list of steps that are performed on the object after it has been created
//we need to create all these first, to ensure the required obje... | private DeferredParameter loadComplexObject(Object param, Map<Object, DeferredParameter> existing,
Class<?> expectedType, boolean relaxedValidation) {
List<SerialzationStep> setupSteps = new ArrayList<>();
List<SerialzationStep> ctorSetupSteps = new ArrayList<>();
... | private deferredparameter loadcomplexobject(object param, map<object, deferredparameter> existing, class<?> expectedtype, boolean relaxedvalidation) { list<serialzationstep> setupsteps = new arraylist<>(); list<serialzationstep> ctorsetupsteps = new arraylist<>(); boolean relaxedok = false; if (param instanceof collect... | cdhermann/quarkus | [
1,
1,
0,
0
] |
34,583 | public String readLine(String prompt, final Character mask, String buffer) throws IOException {
// prompt may be null
// mask may be null
// buffer may be null
/*
* This is the accumulator for VI-mode repeat count. That is, while in
* move mode, if you type 30x it will ... | public String readLine(String prompt, final Character mask, String buffer) throws IOException {
int repeatCount = 0;
this.mask = mask != null ? mask : this.echoCharacter;
if (prompt != null) {
setPrompt(prompt);
}
else {
... | public string readline(string prompt, final character mask, string buffer) throws ioexception { int repeatcount = 0; this.mask = mask != null ? mask : this.echocharacter; if (prompt != null) { setprompt(prompt); } else { prompt = getprompt(); } try { if (buffer != null) { buf.write(buffer); } if (!terminal.issupported(... | boris-gelman/jline2 | [
0,
1,
1,
0
] |
10,081 | public int undo()
{
if (turn == 1)
{
return 0;
}
// Restore game history (pop current moves frame and reset selected move):
moves_frame = moves[moves_frame + 1];
final var move = moves[moves_frame + 2];// TODO: fix when moves_selected contains index not move
moves[moves_frame + 2] = 0;
// Restore ca... | public int undo()
{
if (turn == 1)
{
return 0;
}
moves_frame = moves[moves_frame + 1];
final var move = moves[moves_frame + 2]
moves[moves_frame + 2] = 0;
final var x = Move.x(move);
final var y = Move.y(move);
final var X = Move.X(move);
final var Y = Move.Y(move);
final var figure_move... | public int undo() { if (turn == 1) { return 0; } moves_frame = moves[moves_frame + 1]; final var move = moves[moves_frame + 2] moves[moves_frame + 2] = 0; final var x = move.x(move); final var y = move.y(move); final var x = move.x(move); final var y = move.y(move); final var figure_moved = move.figure_moved(move); fin... | christoff-buerger/pmChess | [
1,
0,
0,
0
] |
34,697 | public static void SyncMonitorDataValidation(WebDriver driver, String emplid, String contenttype, String content, TestParameters testParameters, String direction)
throws InterruptedException {
driver.get(testParameters.mURLMyInsead+testParameters.msyncMonitor);
Assert.assertEquals(driver.getTitle(), "MyINSEAD - Sync... | public static void SyncMonitorDataValidation(WebDriver driver, String emplid, String contenttype, String content, TestParameters testParameters, String direction)
throws InterruptedException {
driver.get(testParameters.mURLMyInsead+testParameters.msyncMonitor);
Assert.assertEquals(driver.getTitle(), "MyINSEAD - Sync... | public static void syncmonitordatavalidation(webdriver driver, string emplid, string contenttype, string content, testparameters testparameters, string direction) throws interruptedexception { driver.get(testparameters.murlmyinsead+testparameters.msyncmonitor); assert.assertequals(driver.gettitle(), "myinsead - sync mo... | aurelienartus/testproject | [
1,
0,
0,
0
] |
1,954 | public static String updatePublishLinks(HttpServletRequest request, HttpServletResponse response) {
HttpSession session = request.getSession();
Security security = (Security)request.getAttribute("security");
GenericValue userLogin = (GenericValue)session.getAttribute("userLogin");
Servle... | public static String updatePublishLinks(HttpServletRequest request, HttpServletResponse response) {
HttpSession session = request.getSession();
Security security = (Security)request.getAttribute("security");
GenericValue userLogin = (GenericValue)session.getAttribute("userLogin");
Servle... | public static string updatepublishlinks(httpservletrequest request, httpservletresponse response) { httpsession session = request.getsession(); security security = (security)request.getattribute("security"); genericvalue userlogin = (genericvalue)session.getattribute("userlogin"); servletcontext servletcontext = sessio... | atb/ofbiz | [
1,
0,
0,
0
] |
1,998 | public boolean storedRSVs(String operator) {
return true;
} | public boolean storedRSVs(String operator) {
return true;
} | public boolean storedrsvs(string operator) { return true; } | automenta/java-unidu-pire | [
1,
0,
0,
0
] |
34,787 | @NotNull
@Override
public UserReference toReference(@NotNull RedditClient reddit) {
return reddit.user(getName());
} | @NotNull
@Override
public UserReference toReference(@NotNull RedditClient reddit) {
return reddit.user(getName());
} | @notnull @override public userreference toreference(@notnull redditclient reddit) { return reddit.user(getname()); } | andsala/JRAW | [
1,
0,
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.