content stringlengths 40 137k |
|---|
"private void refactorNonPackageFiles() {\n try {\n String[] extensions = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n Iterator filesInMain = FileUtils.iterateFiles(new File(this.workBaseDir), extensions, true);\n while (filesInMa... |
"public final void remove(EntityMetadata metadata, Object entity, String key) {\n if (indexer != null) {\n if (indexer.getClass().isAssignableFrom(LuceneIndexer.class)) {\n ((com.impetus.kundera.index.lucene.Indexer) indexer).unindex(metadata, key);\n } else {\n indexer.unIndex(me... |
"public void widgetSelected(SelectionEvent e) {\n if (columnList.remove(((IStructuredSelection) columnsElementViewer.getSelection()).getFirstElement())) {\n columnsElementViewer.setInput(columnList);\n enabledButtons(buttons, false);\n masterPage.setDirty(true);\n computeRefreshDataPrevie... |
"public static boolean isChainPureNonPolymer(Chain c) {\n for (Group g : c.getAtomGroups()) {\n ChemComp cc = g.getChemComp();\n ResidueType resType = cc.getResidueType();\n PolymerType polType = cc.getPolymerType();\n if ((resType == ResidueType.lPeptideLinking || PolymerType.PROTEIN_ONL... |
"public void run() {\n while (true) {\n synchronized (_notificationMsgs) {\n try {\n _notificationMsgs.wait(1000);\n } catch (InterruptedException e) {\n }\n }\n ClusterManagerMessage msg = null;\n while ((msg = getNextNotificationMessage())... |
"public String processSubmit(Customer customer, BindingResult result, SessionStatus status) {\n singUpValidator.validate(customer, result);\n if (result.hasErrors()) {\n return \"String_Node_Str\";\n } else {\n status.setComplete();\n try {\n String userName = customer.getFirstN... |
"public synchronized void setButtons(boolean visible) {\n if (_fillButton == null) {\n URL img = getClass().getResource(\"String_Node_Str\");\n ImageIcon fillIcon = new ImageIcon(img);\n _fillButton = new JButton(fillIcon);\n _fillButton.setBorderPainted(false);\n _fillButton.setPr... |
"private String getSummaryStats(List<Integer> list) {\n double[] a = list.stream().mapToDouble(Integer::intValue).toArray();\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\" + StatUtils.max(a) + \"String_Node_Str\");\n sb.append(\"String_Node_Str\" + StatUtils.min(a) + \"String_Node... |
"public int isValid() {\n if (name == null || name.trim().equals(\"String_Node_Str\")) {\n return NAME_NULL;\n }\n if (!namePattern.matcher(name).matches()) {\n return NAME_INVALID;\n }\n if (minVersion != null && !minVersion.trim().equals(\"String_Node_Str\")) {\n Matcher matcher = ... |
"private CameraProxy getCameraProxy() {\n Drone drone = droneMgr.getDrone();\n Camera droneCamera = drone.getCamera();\n List<Footprint> footprints = droneCamera.getFootprints();\n final int printsCount = footprints.size();\n List<FootPrint> proxyPrints = new ArrayList<FootPrint>(footprints.size());\n ... |
"private void editKey(long keyId) {\n Intent intent = new Intent(EditKeyActivity.ACTION_EDIT_KEY);\n intent.putExtra(EditKeyActivity.EXTRA_KEY_ID, keyId);\n startActivityForResult(intent, 0);\n}\n"
|
"public void run() {\n try {\n socket = new DatagramSocket();\n while (!canceled) {\n try {\n Thread.sleep(500L);\n byte[] data = NetworkConstants.Server.BROADCAST_MESSAGE.getBytes();\n broadcast(NetworkConstants.Server.BROADCAST_PORT, socket, dat... |
"public void setBottomView(IBottomWrapper bottom, int height) {\n if (bottom == null)\n return;\n this.mBottomWrapper = bottom;\n this.mBottomView = bottom.getBottomView();\n this.childBottomHeight = height;\n addView((View) mBottomView);\n}\n"
|
"private void loadeggprices() {\n File folder = new File(\"String_Node_Str\");\n File configFile = new File(\"String_Node_Str\");\n if (configFile.exists()) {\n try {\n mobprice.clear();\n Properties theprices = new Properties();\n theprices.load(new FileInputStream(conf... |
"public void createModelIfNecessary(FormIndex index) {\n if (index.isInForm()) {\n IFormElement e = getForm().getChild(index);\n if (e instanceof GroupDef) {\n GroupDef g = (GroupDef) e;\n if (g.getRepeat() && g.getCountReference() != null) {\n IAnswerData count = g... |
"public void genHomeland() {\n for (int attempt = 0, placed = 0, amount = rand.nextInt(3) + 5; attempt < 170 && placed < amount; attempt++) {\n if (generateStructure(genGooLake))\n ++placed;\n }\n for (int cx = 0; cx < world.getChunkAmountX(); cx++) {\n for (int cz = 0; cz < world.getC... |
"public Object visitFreeFormItem(FreeFormItemDesign container, Object value) {\n BaseQueryDefinition query = createQuery(container, value);\n for (int i = 0; i < container.getItemCount(); i++) build(query, container.getItem(i));\n finishVisit(container, query);\n return getResultQuery(query, value);\n}\n"
|
"public void actionCurrentUserBookmarkedList(int page, int limit) {\n Session session = Session.getInstance(context);\n actionBookmarkList(session.getCurrentUser().getId(), page, limit);\n}\n"
|
"public static void addDataItem(CrosstabReportItemHandle crosstab, MeasureViewHandle measureView, String function, String rowDimension, String rowLevel, String colDimension, String colLevel) throws SemanticException {\n if (crosstab == null || measureView == null)\n return;\n AggregationCellHandle cell = m... |
"public StateMachine<ServiceConfiguration, Component.State, Component.Transition> getStateMachine() {\n try {\n return this.lookupService().getStateMachine();\n } catch (NoSuchServiceException ex) {\n LOG.error(ex, ex);\n throw new IllegalStateException(\"String_Node_Str\" + this.getName(), e... |
"private void onProgressComplete(NotificationBean notificationBean) {\n Notification notification = getNotification(notificationBean.getUuid());\n if (notification != null) {\n notification.getData().setTitle(notificationBean.getTitle());\n notification.getData().setMessage(notificationBean.getMessa... |
"public <T> List<T> query(String query, Class<T> classOfT) {\n InputStream instream = null;\n List<T> result = new ArrayList<T>();\n try {\n Reader reader = new InputStreamReader(instream = queryForStream(query));\n JsonObject json = new JsonParser().parse(reader).getAsJsonObject();\n if (... |
"public byte[] encodePacket() {\n byte[] buffer = new byte[6 + len + 2];\n int i = 0;\n buffer[i++] = (byte) MAVLINK_STX;\n buffer[i++] = (byte) len;\n buffer[i++] = (byte) seq;\n buffer[i++] = (byte) sysid;\n buffer[i++] = (byte) compid;\n buffer[i++] = (byte) msgid;\n for (int j = 0; j < pa... |
"public void stop(BundleContext bc) {\n storageManager.storeContactListAndStopStorageManager();\n bc.removeServiceListener(this);\n Iterator providers = this.currentlyInstalledProviders.values().iterator();\n while (providers.hasNext()) {\n ProtocolProviderService pp = (ProtocolProviderService) provi... |
"public void onChatChanged(ChatChangedEvent event) {\n if (event.isCreated()) {\n createChat(event.getChat(), Visibility.notFocused);\n }\n if (event.isOpened()) {\n final PairChatPage page = chatPages.get(event.getChat());\n if (page != null) {\n page.requestVisibility(Visibili... |
"public void actionPerformed(ActionEvent evt) {\n if (call != null) {\n if (isSelected()) {\n boolean startedRecording = false;\n try {\n startedRecording = startRecording();\n } finally {\n if (!startedRecording && (recorder != null)) {\n ... |
"public List<Object[]> subList(long fromIndex, long toIndex, Map<Long, K> indexMap, DataValidation dataValiator) {\n boolean stratToRecord = false;\n List<Object[]> returnList = new ArrayList<Object[]>();\n if (!checkIndex(fromIndex, toIndex)) {\n return returnList;\n }\n K fromKey = null;\n K ... |
"void doAppendToDocument(Document doc, Element parent) {\n int mods = jclass.getModifiers();\n boolean is_annotation = false;\n Element e = doc.createElement(jclass.isInterface() && !jclass.isAnnotation() ? \"String_Node_Str\" : \"String_Node_Str\");\n if (!jclass.isInterface() || jclass.isAnnotation()) {\n... |
"private boolean isEvictableHeapPercentage(final MapContainer mapContainer) {\n final long usedHeapSize = getUsedHeapSize(mapContainer);\n if (usedHeapSize == -1L) {\n return false;\n }\n final MaxSizeConfig maxSizeConfig = mapContainer.getMapConfig().getMaxSizeConfig();\n final double maxSize = g... |
"private static Path executeAvconv(Path input, Path output, String commandArguments, String outputArguments) throws CommandException, IOException, UnsupportedOperationException {\n String command = RodaCoreFactory.getRodaConfigurationAsString(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n comma... |
"protected void createButtonsForButtonBar(Composite parent) {\n createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true);\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_pull_to_zoom_list_view);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n listView = (PullToZoomListViewEx) findViewById(R.id.listview);\n String[] adapterData = new St... |
"public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext unmarshallingContext) {\n final String nodeName = reader.getNodeName();\n switch(nodeName) {\n case \"String_Node_Str\":\n while (reader.hasMoreChildren()) {\n reader.moveDown();\n final ... |
"public void testGetItem() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getItem(2003, ItemData.CONSUME_ON_FULL).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
|
"private void getHeadersFromFrame() {\n byte[] hbf = null;\n if (currentFrame.getFrameType() == FrameTypes.HEADERS) {\n hbf = ((FrameHeaders) currentFrame).getHeaderBlockFragment();\n } else if (currentFrame.getFrameType() == FrameTypes.CONTINUATION) {\n hbf = ((FrameContinuation) currentFrame).g... |
"private void reloadAllIIDesc() throws IOException {\n ResourceStore store = getStore();\n logger.info(\"String_Node_Str\" + store.getReadableResourcePath(ResourceStore.II_DESC_RESOURCE_ROOT));\n iiDescMap.clear();\n List<String> paths = store.collectResourceRecursively(ResourceStore.II_DESC_RESOURCE_ROOT, ... |
"public void onMessageReceived(RemoteMessage remoteMessage) {\n super.onMessageReceived(remoteMessage);\n Map<String, String> data = remoteMessage.getData();\n String requestType = data.get(MESSAGE_TYPE);\n if (requestType == null) {\n return;\n }\n if (requestType.equals(CALL_REQUEST_TYPE)) {\... |
"public IPropertyValue evaluate(List<IPropertyValue> params) throws EvaluationException {\n return params.get(0);\n}\n"
|
"private void ensureDocumentSize() {\n if (document.getLength() > Constants.CHAT_BUFFER_SIZE) {\n int msgElementCount = 0;\n Element firstMsgElement = null;\n int firstMsgIndex = 0;\n Element rootElement = this.document.getDefaultRootElement();\n for (int i = 0; i < rootElement.get... |
"private Set<Integer> getGreater(Object key, boolean includeKey) throws DataException {\n try {\n key = DataTypeUtil.convert(key, this.keyDataType);\n } catch (BirtException e1) {\n throw DataException.wrap(e1);\n }\n BTreeCursor bCursor = btree.createCursor();\n Set<Integer> result = new H... |
"public static void setThumbnailImageView(ImageView v, byte[] imgdata) {\n Bitmap thumbnailBm;\n if (null != imgdata && imgdata.length > 0)\n thumbnailBm = BitmapFactory.decodeByteArray(imgdata, 0, imgdata.length);\n else\n thumbnailBm = sBmIcUnknownImage;\n Drawable drawable = v.getDrawable()... |
"static String addText(String text, String added, StringDirection from) {\n return from == FROM_START ? added + text : text + added;\n}\n"
|
"public void doPostExplode() {\n super.doPostExplode();\n if (!this.worldObj.isRemote) {\n if (this.canFocusBeam(this.worldObj, position) && this.thread.isComplete) {\n List<EntityLiving> livingEntities = worldObj.getEntitiesWithinAABB(EntityLiving.class, AxisAlignedBB.getBoundingBox(position.x ... |
"public static String getErrorMessage(final Context context, boolean suggestMediaOptimization, final MediaModel media, final MediaStore.MediaError error) {\n if (context == null || media == null || error == null) {\n return null;\n }\n switch(error.type) {\n case FS_READ_PERMISSION_DENIED:\n ... |
"protected OCCChecksumMetadata getMetadata(String metadataIdentificationString, JavaType aspectName, PhysicalTypeMetadata governorPhysicalTypeMetadata, String itdFilename) {\n Path path = Path.SRC_MAIN_JAVA;\n JavaType entityType = governorPhysicalTypeMetadata.getMemberHoldingTypeDetails().getName();\n String ... |
"protected void showDeployStatus(IStatus status) {\n String prompt;\n if (status.getSeverity() < IStatus.ERROR) {\n prompt = Messages.bind(Messages.AbstractDeployAction_deployMessage, count);\n } else {\n prompt = Messages.bind(Messages.AbstractDeployAction_deployFailure, status.getChildren().len... |
"public void rename(TestStructure testStructure, String newName) throws SystemException {\n if (testStructure instanceof TestScenario) {\n changedItems = renameScenario((TestScenario) testStructure, newName);\n } else if (testStructure instanceof TestSuite) {\n renameTestSuite((TestSuite) testStruct... |
"private static double computeValue(int x, int y, int[] line, ArrayList<int[]> pixel, ArrayList<double[]> value) {\n final int leftYIdx = findLeftOfBracket(y, line);\n final int rightYIdx = (y == line[leftYIdx]) ? leftYIdx : leftYIdx + 1;\n double val = 0.0;\n checkBracket(leftYIdx, rightYIdx, line.length -... |
"private void startAsync(String procName, List<Variable> waitVars, List<Variable> usedVariables, List<Variable> containersToRegister, boolean shareWork) {\n List<String> args = new ArrayList<String>();\n args.add(Turbine.LOCAL_STACK_NAME);\n for (Variable v : toPassIn) {\n args.add(prefixVar(v.getName()... |
"private void processImageOuter(ImageBase image) {\n long startTime = System.currentTimeMillis();\n processImage(image);\n if (!visualizeOnlyMostRecent || startTime > timeOfLastUpdated) {\n timeOfLastUpdated = startTime;\n if (showBitmap) {\n synchronized (bitmapLock) {\n ... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n ResponseItem other = (ResponseItem) obj;\n if (content == null) {\n if (other.content != null)\n return fa... |
"protected void onPause() {\n super.onPause();\n Contact.stopPresenceObserver();\n removeRecipientsListeners();\n}\n"
|
"private OModuleMetadata getModule(Element mainElement) {\n OModuleMetadata module = new OModuleMetadata();\n List<Element> elements = mainElement.elements();\n for (Element element : elements) {\n switch(element.getName()) {\n case ID:\n module.setId(Integer.valueOf(element.ge... |
"protected void accessHeader(ListingDesign list, IContentEmitter emitter) {\n ITableContent tableContent = (ITableContent) context.getContent();\n TableBandDesign bandDesign = ((TableItemDesign) list).getHeader();\n if (bandDesign != null) {\n ITableBandContent header = report.createTableHeader();\n ... |
"public void testEven4ParityOnePointCrossover() {\n final int LOWER_SUCCESS = 50;\n final int UPPER_SUCCESS = 50;\n Evolver evolver = getEvolver();\n final EvenParity model = new EvenParity(evolver, 4);\n setupModel(model);\n model.setCrossover(new OnePointCrossover(evolver));\n final int noSuccess... |
"public void writeTag(Tag tag, String openhabUri) {\n Log.i(TAG, \"String_Node_Str\");\n NdefRecord[] ndefRecords;\n ndefRecords = new NdefRecord[1];\n ndefRecords[0] = NdefRecord.createUri(openhabUri);\n NdefMessage message = new NdefMessage(ndefRecords);\n NdefFormatable ndefFormatable = NdefFormata... |
"public double doTask() {\n double sum = op.zeroDouble();\n if (x.allocationMode() == DataBuffer.AllocationMode.HEAP) {\n if (x.dataType() == DataBuffer.Type.FLOAT) {\n float[] xf = (float[]) x.array();\n if (incrX == 1) {\n for (int i = 0; i < n; i++) {\n ... |
"private synchronized void computeTerrainClusterCenters(final PolBandUtils.PolSourceBand srcBandList, final PolarimetricClassificationOp op) {\n if (clusterCentersComputed) {\n return;\n }\n category = new Categories[srcHeight][srcWidth];\n cluster = new int[srcHeight][srcWidth];\n final double[][... |
"public Request withMethodPut() {\n return appendTemporaryMethodPlaceholderStoreMethod(HttpMethod.PUT.name());\n}\n"
|
"public static void createPopulationEPL(File path, PrgPopulation pop) {\n CreateEPLPopulationDialog dialog = new CreateEPLPopulationDialog();\n if (pop != null) {\n dialog.getPopulationSize().setValue(pop.size());\n for (String varName : pop.getContext().getDefinedVariables()) {\n dialog.... |
"public RayPixel castRay(SpaceVector cameraAt, SpaceVector cameraDir) {\n float closest_t = Float.POSITIVE_INFINITY;\n RayPixel hit = new RayPixel();\n float t;\n boolean inside;\n for (int i = 0; i < universe.rows; i++) {\n for (int j = 0; j < universe.cols; j++) {\n System.out.println... |
"public TerrariumDataProvider buildDataProvider() {\n int heightOrigin = this.properties.getInteger(HEIGHT_ORIGIN);\n SrtmHeightSource heightSource = new SrtmHeightSource(this.srtmRaster, \"String_Node_Str\");\n DataLayer<ShortRasterTile> heightSampler = new ShortTileSampleLayer(heightSource);\n DataLayer<S... |
"public boolean isWriteLocked() {\n return (lockImpl.isWriteLocked.get() != LockImpl.NONE);\n}\n"
|
"public void restore() {\n Preferences prefs = Preferences.userNodeForPackage(LoggerTableModel.class);\n prefs = prefs.node(\"String_Node_Str\");\n try {\n for (String loggerName : prefs.keys()) {\n Level level = Level.parse(prefs.get(loggerName, \"String_Node_Str\"));\n Logger cre... |
"public DifferentialFunction<X> inversei() {\n throw new UnsupportedOperationException();\n}\n"
|
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.isPlayer(cs)) {\n return;\n }\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (!r.checkArgs(args, 0)) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n if (!r... |
"public void run() {\n List<KeyValue> list;\n lock.lock();\n try {\n list = recordsInMemory;\n recordsInMemory = new ArrayList<>();\n } finally {\n lock.unlock();\n }\n if (numOfBytesInMemory > maxBytesToKeepInMemory || recordsInMemory.size() > maxRecordsInMemory) {\n Colle... |
"private List<Map<Integer, RegexpMatchingIndicator>> organizeTableInput() {\n List<Map<Integer, RegexpMatchingIndicator>> returnList = new ArrayList<Map<Integer, RegexpMatchingIndicator>>();\n AllMatchIndicatorImpl allMatchIndicator = this.selectPatternsWizard.getAllMatchIndicator();\n if (allMatchIndicator ==... |
"private static Link matchSpan(final List<Link> linkList, final SpanBo span) {\n if (CollectionUtils.isEmpty(linkList)) {\n return null;\n }\n linkList.sort(new Comparator<Link>() {\n public int compare(Link first, Link second) {\n return (int) (first.startTimeMillis - second.startTime... |
"public void processArtifact(Model model, Artifact artifact, ArtifactReporter reporter, ArtifactRepository repository) throws ReportProcessorException {\n if (!\"String_Node_Str\".equals(repository.getProtocol())) {\n throw new UnsupportedOperationException(\"String_Node_Str\" + repository.getUrl() + \"String... |
"private void initializeResultClass(DataEngineImpl dataEngine, Map appContext) throws DataException {\n try {\n IQueryResults left = getResultSetQuery(dataEngine, dataSet.getLeftDataSetDesignName(), appContext, dataSet.getJoinConditions(), true);\n IQueryResults right = getResultSetQuery(dataEngine, da... |
"private void playPrevious() {\n mVpPlayView.setCurrentItem(mVpPlayView.getCurrentItem() - 1, true);\n refreshFavoriteIcon();\n}\n"
|
"public void initData() {\n if (set == null)\n set = dataDomain.getSet();\n super.initData();\n bRenderOnlyContext = (glRemoteRenderingView != null && glRemoteRenderingView.getViewType().equals(\"String_Node_Str\"));\n initLists();\n}\n"
|
"protected void finishProcess() {\n if (processManagerStack.size() > 0) {\n ProcessManager pm = processManagerStack.pop();\n setContent(pm);\n pm.reloadTask();\n pm.setWindow(this);\n setCaption(pm.getLabel());\n processManager = pm;\n } else {\n if (processManager... |
"public void testREADLock() {\n if (isOnServer()) {\n return;\n }\n EntityManager em = createEntityManager(\"String_Node_Str\");\n beginTransaction(em);\n Employee employee = null;\n try {\n employee = new Employee();\n employee.setFirstName(\"String_Node_Str\");\n employee... |
"public void getPruneInfo(HttpRequest request, HttpResponder responder, String regionName) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n Method method = debugClazz.getMethod(\"String_Node_Str\", String.class);\n method.setAccessible(true);\n Object response =... |
"public int getWeaponPowerPoints() {\n int points = 1;\n for (InvItem item : inventory.getItems()) {\n ItemWieldableDef def = ItemAttributes.getWieldable(item.id);\n if (item.wielded && def != null) {\n points += def.getWeaponPowerPoints();\n }\n }\n points -= 1;\n return ... |
"private void writeValue(Object value, SerializeOpts serializeOpts) throws CoreException, IOException {\n if (value instanceof XValue) {\n XValue xv = (XValue) value;\n IXdmValueOutputStream dest = getStdout().asXdmValueOutputStream(serializeOpts);\n dest.write(xv.asXdmValue());\n } else {\n ... |
"private Control addTextField(Composite composite, String label, String key, int textLimit, int indentation, boolean isNumber) {\n Label labelControl = new Label(composite, SWT.NONE);\n labelControl.setText(label);\n GridData gd = new GridData(32);\n gd.horizontalIndent = indentation;\n labelControl.setL... |
"public int initFromPage(long valueCount, byte[] page, int offset) throws IOException {\n if (DEBUG)\n LOG.debug(\"String_Node_Str\" + offset + \"String_Node_Str\" + (page.length - offset));\n this.in = new ByteArrayInputStream(page, offset, page.length - offset);\n int bitWidth = BytesUtils.readIntLitt... |
"public void renderTarget(Object layout, double length3D, GrayF32 image, List<Point2D_F64> points2D) {\n ConfigCircleHexagonalGrid config = (ConfigCircleHexagonalGrid) layout;\n double radiusPixels = 20;\n double centerDistancePixels = 2 * radiusPixels * config.centerDistance / config.circleDiameter;\n doub... |
"public void relayout() {\n isLayoutDirty = true;\n}\n"
|
"public Time fireAt(Actor actor, Time time, int index) throws IllegalActionException {\n if (actor == this.getContainer()) {\n fireContainerAt(time);\n return time;\n }\n int newIndex = index;\n if (_currentLogicalTime != null) {\n if (_currentLogicalTime.compareTo(time) == 0 && index <... |
"public void shutdown() {\n if (!isInitialized) {\n return;\n }\n if (logger.isTraceEnabled())\n logger.trace(\"String_Node_Str\" + this.accountID.getUserID());\n closeConnection();\n if (isRegistered()) {\n try {\n unregister();\n } catch (OperationFailedException ... |
"public void muffleSounds(PlaySoundEvent event) {\n if (event.getName().contains(\"String_Node_Str\")) {\n float x = event.getSound().getXPosF();\n float y = event.getSound().getYPosF();\n float z = event.getSound().getZPosF();\n List<EntityLivingBase> entities = Minecraft.getMinecraft().... |
"public static String indexToAlpha(int index) {\n String reply = \"String_Node_Str\";\n if (index < 26) {\n char first = (char) (index + 65);\n reply = first + \"String_Node_Str\";\n } else {\n char last = (char) (index - ((index / 26) * 26) + 65);\n String rest = indexToAlpha((inde... |
"public void addPort(String name, String value) throws IllegalActionException, NameDuplicationException {\n _portHash.put(name, value);\n ConfigurableAttribute port = new ConfigurableAttribute(this, \"String_Node_Str\" + name);\n port.configure(null, null, value);\n}\n"
|
"private void onLoad() {\n immutableTags = ImmutableList.copyOf(tags != null ? tags.stream().map(t -> new InstanceTag() {\n private String key = t.getKey();\n private String value = t.getValue();\n public String getKey() {\n return this.key;\n }\n public void setKey(Stri... |
"public SubHyperplane<Euclidean2D> apply(final SubHyperplane<Euclidean2D> sub, final Hyperplane<Euclidean3D> original, final Hyperplane<Euclidean3D> transformed) {\n if (original != cachedOriginal) {\n final Plane oPlane = (Plane) original;\n final Plane tPlane = (Plane) transformed;\n final Vec... |
"public long getCacheTime() {\n return Cache.EXPIRED;\n}\n"
|
"public void flush() throws IOException {\n throw new IOException(Messages.getString(ResourceConstants.READ_ONLY_ARCHIVE));\n}\n"
|
"public static VM_Address unwindNativeStackFrame(VM_Address currfp) throws VM_PragmaUninterruptible {\n VM_Address ip, callee_fp;\n VM_Address fp = VM_Magic.getCallerFramePointer(currfp);\n do {\n callee_fp = fp;\n ip = VM_Magic.getReturnAddress(fp);\n fp = VM_Magic.getCallerFramePointer(f... |
"private void extractData(Path p, Path outRoot, int resultLimit, int maxAmbigiousWordCount) throws IOException {\n List<Path> files = Files.walk(p, 1).filter(s -> s.toFile().isFile()).collect(Collectors.toList());\n BatchResult result = new BatchResult();\n int i = 0;\n for (Path file : files) {\n Lo... |
"public void onActionDown(MotionEvent event) {\n super.onActionDown(event);\n final int x = (int) event.getX();\n final int y = (int) event.getY();\n if (mTweetFlow.elementAt(mEditorView.scaledX(x), mEditorView.scaledY(y))) {\n mTweetFlow.setTouchElementModeMarked();\n mEditorView.setState(EDI... |
"public void close() {\n d1.unsubscribe();\n d2.unsubscribe();\n d3.unsubscribe();\n}\n"
|
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n Parser parser = new Parser(PATTERN, (String) msg);\n if (!parser.matches()) {\n return null;\n }\n Position position = new Position();\n position.setProtocol(getProtocolName());\n DeviceSessi... |
"public static String slurp(final InputStream is, final Charset charSet) {\n final List<String> tokenOrEmpty = tokenSlurp(is, charSet, \"String_Node_Str\");\n return tokenOrEmpty.isEmpty() ? StringUtil.EMPTY_STRING : CollectionUtil.getSoleElement(tokenOrEmpty);\n}\n"
|
"static SetterData createHint(String hintName, Object value) {\n SetterData data = new SetterData(SetterType.HINT);\n data.string1 = hintName;\n data.object1 = value;\n return data;\n}\n"
|
"public void initialize() throws IllegalActionException {\n super.initialize();\n try {\n _generatingCode = true;\n if (_modelChanged()) {\n super.preinitialize();\n executeChangeRequests();\n _generateCode();\n }\n String className = CodeGeneratorAdapt... |
"public static byte[] cryptoPwhashScrypt(byte[] passwd, byte[] salt) throws SodiumLibraryException {\n NativeLong salt_length = sodium().crypto_pwhash_scryptsalsa208sha256_saltbytes();\n if (salt.length != salt_length.intValue()) {\n throw new SodiumLibraryException(\"String_Node_Str\" + salt.length + \"St... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.