content
stringlengths
40
137k
"private boolean parametersMatch(final List<japa.parser.ast.body.Parameter> methodParameters, final Collection<Parameter> parameters) {\n if (methodParameters == null && parameters.isEmpty()) {\n return true;\n }\n boolean matches = methodParameters != null && methodParameters.size() == parameters.size(...
"public static boolean validateCredentials(Project project, String ticket) throws ServerException, IOException, URISyntaxException {\n URIBuilder requestUri = MMSUtils.getServiceUri(project);\n if (requestUri == null) {\n return \"String_Node_Str\";\n }\n requestUri.setPath(requestUri.getPath() + \"S...
"public boolean apply(Snapshot snap) {\n if (!State.EXTANT.equals(snap.getState())) {\n return false;\n } else if (!RestrictedTypes.filterPrivileged().apply(snap)) {\n throw Exceptions.toUndeclared(\"String_Node_Str\" + request.getSnapshotId() + \"String_Node_Str\" + ctx.getUser().getName(), new Euc...
"public void modelConnectionExpired(ProxyModelInfrastructure remoteModel) {\n LOGGER.severe(\"String_Node_Str\" + remoteModel.getTicket());\n LOGGER.severe(\"String_Node_Str\" + remoteModel.getPingPongLatency() + \"String_Node_Str\");\n try {\n close(remoteModel.getTicket());\n } catch (Throwable e) ...
"static public String getUriWithFilterMany(RequestContext context, String dbName, String collName, Object[] ids) throws UnsupportedDocumentIdException {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\").append(dbName).append(\"String_Node_Str\").append(collName).append(\"String_Node_Str\"...
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n setupEndMonthSpinner();\n if (getStartingYear().compareTo(getEndingYear()) < 0) {\n ArrayAdapter<String> startMonthAdapter;\n if (endingYearIsCurrent()) {\n startMonthAdapter = new ArrayAdapter<>(getA...
"public IDBResource getSlaveGlobalDBResource(String clusterName, String tableName, EnumDBMasterSlave masterSlave) throws DBClusterException {\n DBClusterInfo dbClusterInfo = this.dbClusterInfoC.find(clusterName);\n if (dbClusterInfo == null) {\n throw new DBClusterException(\"String_Node_Str\" + clusterNam...
"public static void handleApplicationInstanceTerminatedEvent(String appId, String instanceId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appId);\n }\n Applications applications = ApplicationHolder.getApplications();\n if (!applications.applicationExists(appId)) {\n log.w...
"public void init(Config cfg, DataFlowOperation op, Map<Integer, List<Integer>> expectedIds) {\n int maxBytesInMemory = MPIContext.getShuffleMaxBytesInMemory(cfg);\n int maxRecordsInMemory = MPIContext.getShuffleMaxRecordsInMemory(cfg);\n String path = MPIContext.getShuffleDirectoryPath(cfg);\n finished = n...
"public void releaseSoldier(ESoldierType soldierType) {\n Iterator<SoldierRequest> searchedSoldiersIterator = searchedSoldiers.iterator();\n while (searchedSoldiersIterator.hasNext()) {\n SoldierRequest soldierRequest = searchedSoldiersIterator.next();\n if (soldierRequest.soldierType == soldierType...
"public static synchronized ConfigOption[] getAllOptions() {\n final List<ConfigOption> allOptions = new ArrayList<ConfigOption>();\n allOptions.addAll(Arrays.asList(ConfigUtils.createConfigOptionsFromJCommander(storeFactoryFamily.getDataStoreFactory().createOptionsInstance(), includeHidden)));\n return allOpt...
"private void gCodeCutterUp(Writer w, final Point3d p) throws IOException {\n if (w != null) {\n if (isOutputAbsoluteCoordinates()) {\n w.write(\"String_Node_Str\" + gCodeFormat.format(convertUnits(p.x) + getAbsoluteXStart()) + \"String_Node_Str\" + gCodeFormat.format(convertUnits(p.y) + getAbsolut...
"int getData2() {\n switch(type) {\n case Y:\n case Both:\n return ay;\n }\n return 0;\n}\n"
"public static boolean propagate(Configuration dest, Configuration src, String key) {\n String val = src.get(key);\n if (val != null) {\n String[] origin = src.getPropertySources(key);\n if (origin != null && origin.length > 0) {\n dest.set(key, val, origin[0]);\n } else {\n ...
"public void upgrade(ISkillInfo upgrade, boolean quiet) {\n if (upgrade instanceof LightningInfo) {\n boolean valuesEdit = false;\n if (upgrade.getProperties().getValue().containsKey(\"String_Node_Str\")) {\n if (!upgrade.getProperties().getValue().containsKey(\"String_Node_Str\") || ((Strin...
"public void drop(DropTargetEvent event) {\n super.drop(event);\n retrieveInsertionIndicator().setVisible(false);\n UIManager uiManager = getUiManager();\n DraggedData draggedData = TableEntriesTransfer.getInstance().getDraggedData();\n DropContextAnalyzer analyzer = analyzeDropTarget(event, draggedData)...
"private IMethod getFunctionCallTarget(CGNode caller, CallSiteReference site, IClass receiver) {\n int nargs = getNumberOfArgsPassed(caller, site);\n if (nargs < 2)\n return null;\n String key = getKey(nargs, caller, site);\n if (callModels.containsKey(key)) {\n return callModels.get(key);\n ...
"protected MetaProperty<?> metaPropertyGet(String propertyName) {\n switch(propertyName.hashCode()) {\n case 467061063:\n return forename;\n case -1852993317:\n return surname;\n case 926656063:\n return numberOfCars;\n case -1377524046:\n retur...
"protected boolean canAttack(Char enemy) {\n if (beamCooldown == 0) {\n Ballistica aim = new Ballistica(pos, enemy.pos, Ballistica.STOP_TERRAIN);\n if (enemy.invisible == 0 && !isCharmedBy(enemy) && Level.fieldOfView[enemy.pos] && aim.subPath(1, aim.dist).contains(enemy.pos)) {\n beam = aim;...
"public void receiveFamilyRegistration(BlockUri familyUri, Map<String, Integer> registration) {\n BlockFamily family;\n if (isFreeformFamily(familyUri)) {\n family = blockLoader.loadWithShape(familyUri);\n } else {\n family = getAvailableBlockFamily(familyUri);\n }\n if (family != null) {\n...
"public Consumer create(Consumer consumer, Principal principal, String userName, String ownerKey, String activationKeys) throws BadRequestException {\n Set<String> keyStrings = splitKeys(activationKeys);\n if ((principal instanceof NoAuthPrincipal) && (keyStrings.size() == 0)) {\n throw new ForbiddenExcept...
"private void postEndTransactionEvent(boolean success) {\n Bus bus = getBus();\n if (bus != null && tableNameChanges != null) {\n bus.post(new DatabaseEndTransactionEvent(success, databaseName, tableNameChanges));\n }\n}\n"
"public void needsRefresh() {\n if (this.panel != null) {\n this.panel.needsRefresh();\n }\n}\n"
"public void keyboardPrev() {\n if (hasKeyboardPrev()) {\n setKeyboardSelectedRow(getKeyboardSelectedRow() - 1, true, false);\n }\n}\n"
"private final void updateOverlayScales(AllAxes aax, double dAxisStart, double dAxisEnd, double dBlockStart, double dBlockLength) throws ChartException, IllegalArgumentException {\n final Axis[] axa = ((ChartWithAxesImpl) cwa).getPrimaryBaseAxes();\n final Axis axPrimaryBase = axa[0];\n final Axis[] axaOrthogo...
"public void postToken(final WorkflowInputPort inputPort, final Token token) {\n checkNotNull(token);\n checkNotNull(inputPort);\n final StepState originStepState = token.getOrigin().getStep().getState();\n checkState(originStepState == WORKING || originStepState == DONE, \"String_Node_Str\" + originStepSta...
"public void testJointDataSet() throws Exception {\n OdaDataSetDesign dset1 = new OdaDataSetDesign(\"String_Node_Str\");\n dset1.setDataSource(this.dataSource.getName());\n dset1.setQueryText(\"String_Node_Str\" + this.getTestTableName());\n dset1.setExtensionID(JDBCOdaDataSource.DATA_SET_TYPE);\n OdaDat...
"public void testConfigLoad() throws IOException {\n File cfgFile = FileUtils.toFile(this.getClass().getResource(\"String_Node_Str\"));\n File outDir = temp.newFolder(\"String_Node_Str\");\n String jobPrefix = \"String_Node_Str\";\n RampartArgs args = new RampartArgs(cfgFile, outDir, jobPrefix, RampartStage...
"public static AttributeAggregatorExtensionHolder getInstance(ExecutionPlanContext executionPlanContext) {\n ConcurrentHashMap<Class, AbstractExtensionHolder> extensionHolderMap = executionPlanContext.getSiddhiContext().getExtensionHolderMap();\n AbstractExtensionHolder abstractExtensionHolder = extensionHolderMa...
"private <T extends ETLConfig> void upgrade(ApplicationId appId, ArtifactSummary appArtifact, T config) throws IOException {\n AppRequest<T> updateRequest = new AppRequest<>(appArtifact, config);\n try {\n appClient.update(appId, updateRequest);\n } catch (Exception e) {\n LOG.error(\"String_Node...
"private Result rollbackCoinData(Transaction tx) throws IOException {\n byte[] txHashBytes = txHashBytes = tx.getHash().serialize();\n BatchOperation batch = utxoLedgerUtxoStorageService.createWriteBatch();\n CoinData coinData = tx.getCoinData();\n if (coinData != null) {\n List<Coin> froms = coinDat...
"public static int getImageWidth(IImageContent image, int width, int imageWidthDpi) {\n int dpi = imageWidthDpi;\n DimensionType value = image.getWidth();\n if (value != null) {\n width = getElementWidth(value, parentWidth, dpi);\n } else {\n try {\n Image imageInfo = EmitterUtil.pa...
"private void setFieldValue(final Field field, final BaseCmd cmdObj, final Object paramObj, final Parameter annotation) throws IllegalArgumentException, ParseException {\n try {\n field.setAccessible(true);\n final CommandType fieldType = annotation.type();\n switch(fieldType) {\n cas...
"private void buildUnixUserList() throws Throwable {\n File f = new File(UNIX_USER_PASSWORD_FILE);\n if (f.exists()) {\n BufferedReader reader = null;\n reader = new BufferedReader(new FileReader(f));\n String line = null;\n while ((line = reader.readLine()) != null) {\n if ...
"public long getLoginCount() {\n return channel.attr(ClientBean.LOGIN_COUNT).get();\n}\n"
"public void persist(Node node) {\n Object entity = node.getData();\n Object id = node.getEntityId();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, node.getDataClass());\n isUpdate = node.isUpdate();\n List<RelationHolder> relationHolders = getRelationHolders(node)...
"private boolean upgradeFiveSix(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.beginTransaction();\n try {\n db.execSQL(\"String_Node_Str\");\n DbUtil.createNumbersTable(db);\n db.execSQL(EntityStorageCache.getTableDefinition());\n EntityStorageCache.createIndexes(db);\n ...
"public void getSecondHalf(StringBuffer sb, String tag) {\n if (tag != null) {\n final String tn = tag.toLowerCase(java.util.Locale.ENGLISH);\n if (\"String_Node_Str\".equals(tn) || HTMLs.isOrphanTag(tn))\n return;\n sb.append(\"String_Node_Str\").append(tag).append('>');\n }\n}\n"...
"private boolean isExistPreviouDeparCon(Node previousNode) {\n boolean hasDeparInPreviousCon = false;\n if (previousNode.getIncomingConnections().size() > 0) {\n for (IConnection con : previousNode.getIncomingConnections()) {\n if (con.getElementParameter(EParameterName.DEPARTITIONER.getName()) ...
"public int getRowCount() {\n return entries == null ? 0 : entries.size();\n}\n"
"protected void toggleDropdownList() {\n Rectangle r = findArrowIconArea();\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + r + \"String_Node_Str\" + getRealComponent());\n }\n getRobot().click(getRealComponent(), r, ClickOptions.create().setScrollToVisible(true).setConfirmClick(false...
"public void onClick(View v) {\n switch(position) {\n case 0:\n {\n ColorPickerDialog colorPickerDialog = new ColorPickerDialog(context, HookMethods.editText.getCurrentTextColor(), new ColorPickerDialog.OnColorSelectedListener() {\n public void onColorSelected(int ...
"protected Answer copyFromS3ToNfs(CopyCommand cmd, DataTO srcData, S3TO s3, DataTO destData, NfsTO destImageStore) {\n final String storagePath = destImageStore.getUrl();\n final String destPath = destData.getPath();\n try {\n String downloadPath = determineStorageTemplatePath(storagePath, destPath);\n ...
"protected void calculateSpecifiedHeight() {\n if (content != null) {\n int calHeight = getDimensionValue(content.getHeight());\n if (calHeight > 0) {\n this.specifiedHeight = Math.min(calHeight, context.getMaxHeight());\n }\n }\n}\n"
"private String createMethodLabel(MethodNode node) {\n StringBuilder sb = new StringBuilder();\n sb.append(createClassLabel(node.getReturnType()));\n sb.append(\"String_Node_Str\");\n sb.append(createClassLabel(node.getDeclaringClass()));\n sb.append(\"String_Node_Str\");\n sb.append(node.getName());\...
"public double getMatchingWeight(String[] record1, String[] record2) {\n double matchingWeight = 0;\n for (IRecordMatcher matcher : matchers) {\n double currentWeight = matcher.getMatchingWeight(record1, record2);\n if (currentWeight >= matchingWeight) {\n lastPositiveMatcher = matcher;\n...
"public static long readHexLong(final String str, int position) {\n int low = OutputUtils.readHexInt(str, position);\n int high = OutputUtils.readHexInt(str, position + 8);\n long value = ((long) high) << 32 | (((long) low) & 4294967295L);\n return value;\n}\n"
"public void startNetwork(String serverURL) {\n this.serverURL = serverURL;\n Thread starterThread = new Thread(new Runnable() {\n public void run() {\n try {\n getGraph();\n connected = true;\n } catch (Exception e) {\n connected = false;\...
"public void showAsDropDown(View anchor, int xoff, int yoff) {\n if (isShowing() || mContentView == null) {\n return;\n }\n registerForScrollChanged(anchor, xoff, yoff);\n mIsShowing = true;\n mIsDropdown = true;\n WindowManager.LayoutParams p = createPopupLayout(anchor.getWindowToken());\n ...
"public void drawValues(Canvas c) {\n if (mChart.getLineData().getYValCount() < mChart.getMaxVisibleCount() * mViewPortHandler.getScaleX()) {\n List<LineDataSet> dataSets = mChart.getLineData().getDataSets();\n for (int i = 0; i < dataSets.size(); i++) {\n LineDataSet dataSet = dataSets.get(...
"public void initEngine() {\n this.mWorld = new World(new Vector2(), true);\n this.mDebugRenderer = new Box2DDebugRenderer();\n this.mDebugRenderer.setDrawBodies(false);\n RayHandler.setGammaCorrection(true);\n RayHandler.useDiffuseLight(true);\n this.mRayHandler = new RayHandler(this.mWorld);\n th...
"void addExtraBipartitionsByInput(Map<Integer, Set<Vertex>> clusters, List<Tree> trees, Map<String, String> taxonMap, boolean extraTreeRooted) {\n int sigmaN = 0;\n int k = trees.size();\n String[] leaves = stTaxa;\n int n = leaves.length;\n STITreeCluster all = clusters.get(n).iterator().next()._cluster...
"protected void showContactRequestNotification(Bundle extras) {\n int senderUserId = extras.getInt(QBServiceConsts.EXTRA_USER_ID);\n senderUser = UsersDatabaseManager.getUserById(activity, senderUserId);\n String message = extras.getString(QBServiceConsts.EXTRA_MESSAGE);\n String dialogId = ChatDatabaseMana...
"private boolean validateRoles(ClusterBlueprint blueprint, List<String> distroRoles) throws ValidationException {\n assert (blueprint != null && distroRoles != null);\n List<String> failedMsgList = new ArrayList<String>();\n List<String> warningMsgList = new ArrayList<String>();\n checkUnsupportedRoles(blue...
"public final String getDidlString(RendererConfiguration mediaRenderer) {\n PmsConfiguration configuration = PMS.getConfiguration(mediaRenderer);\n StringBuilder sb = new StringBuilder();\n boolean subsAreValidForStreaming = false;\n boolean xbox360 = mediaRenderer.isXbox360();\n if (!isFolder()) {\n ...
"private void jumpAndHighlightFromLearningHistory(AjaxRequestTarget aTarget, LearningRecord record) throws IOException {\n actionShowSelectedDocument(aTarget, record.getSourceDocument(), record.getOffsetCharacterBegin());\n JCas jCas = this.getJCasProvider().get();\n if (record.getUserAction().equals(LearningR...
"protected void paintGrid(Graphics g, IFigure f, org.eclipse.draw2d.geometry.Point origin, int distanceX, int distanceY) {\n FreeformFigure ff = (FreeformFigure) this.getParent();\n Rectangle clientArea = getClientArea();\n Rectangle bounds = ff.getFreeformExtent().getCopy();\n bounds.union(clientArea.x, cl...
"private static boolean copyIntegers(int[] data, ByteBuffer targetBuffer, SerializeState state) {\n int totalBytes = state.getTotalBytes();\n int remainingCapacity = targetBuffer.remaining();\n int bytesCopied = state.getBytesCopied();\n int remainingToCopy = data.length * 4 - bytesCopied;\n int canCopy ...
"private void saveClassComplexity(org.sonar.api.resources.File sonarFile, SourceFile squidFile) {\n Collection<SourceCode> classes = scanner.getIndex().search(new QueryByParent(squidFile), new QueryByType(SourceClass.class));\n double complexityInClasses = 0;\n Set<SourceCode> children = squidFile.getChildren(...
"public void fromMap(Map map) throws ParseException {\n if (map.containsKey(OpsGenieClientConstants.API.FIELD)) {\n String fieldName = (String) map.get(OpsGenieClientConstants.API.FIELD);\n for (Field field : Field.values()) if (field.value().equals(fieldName)) {\n setField(field);\n ...
"protected void deleteComments() {\n for (int i = 0; i < checkedComments.size(); i++) {\n if (checkedComments.get(i).toString().equals(\"String_Node_Str\")) {\n client = new XMLRPCClient(WordPress.currentBlog.getUrl(), WordPress.currentBlog.getHttpuser(), WordPress.currentBlog.getHttppassword());\n...
"public void setShipStrategy(ShipStrategy strategy) {\n if (strategy == ShipStrategy.FORWARD && sourcePact.getDegreeOfParallelism() < targetPact.getDegreeOfParallelism()) {\n if (this.interestingProps != null) {\n for (InterestingProperties props : this.interestingProps) {\n Partitio...
"public void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException {\n String payload = readPayloadAsUtf8(httpRequest);\n try {\n RPCRequest rpcRequest = RPC.decodeRequest(payload);\n Object targetInstance = getInstanceToHandleRequest(httpReque...
"public void execute(CommandSender sender, List<String> args) {\n if (!hasPermission(sender) || !correctLength(sender, args.size(), 1, 2)) {\n return;\n }\n Player player = Bukkit.getPlayer(args.get(0));\n if (player == null) {\n if (args.size() == 1) {\n Element e = Element.fromStr...
"public ControllerProfile load(String identifier) {\n this.propertiesStorage.load();\n ControllerProfile profile = new ControllerProfile();\n String section = getControllerProfileSectionName(identifier);\n profile.setLeftThumbStickXHandler(readKeyAnalogHandler(section, \"String_Node_Str\", ControllerProfile...
"protected Void doInBackground(Short... params) {\n if (callbacks == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Log.d(Constants.LOG_TAG, \"String_Node_Str\" + Arrays.deepToString(params));\n Short[] dataToLoad;\n if (params == null) {\n dataToLoad = new Short[]...
"public static DBObject getDbProps(String dbName) {\n if (!DBDAO.doesDbExists(dbName))\n return null;\n DBCollection propscoll = CollectionDAO.getCollection(dbName, \"String_Node_Str\");\n DBObject row = propscoll.findOne(METADATA_QUERY);\n if (row != null) {\n row.put(\"String_Node_Str\", dbN...
"public Friend getFriend() {\n return new Friend(getId().substring(0, getId().indexOf(':')));\n}\n"
"public synchronized void addEntry(File incompleteFile, VerifyingFile vf) {\n try {\n incompleteFile = FileUtils.getCanonicalFile(incompleteFile);\n } catch (IOException ignored) {\n }\n blocks.put(incompleteFile, vf);\n if (!ioproblem)\n registerIncompleteFile(incompleteFile);\n}\n"
"private void predict() {\n System.out.println(\"String_Node_Str\" + dx + \"String_Node_Str\" + dy + \"String_Node_Str\" + dYaw);\n double xDrift, yDrift, dir;\n if (particleList.size() < PARTICLE_TOLERANCE * NUM_PARTICLES) {\n int[] indexCopyList = resample();\n for (int i = 0; i < indexCopyList...
"public void onLocationChanged(android.location.Location loc) {\n ContentValues values = new ContentValues();\n DecimalFormat formatter = new DecimalFormat(\"String_Node_Str\");\n String tmpLongitude = formatter.format(loc.getLongitude());\n String tmpLatitude = formatter.format(loc.getLatitude());\n if ...
"private void failed() {\n _manager.unregisterPushObserver(pushDetails, false);\n if (!directConnectOnFailure) {\n if (forgetOnFailure) {\n _manager.forgetRFD(_rfd);\n }\n finishConnect();\n _manager.workerFinished(DownloadWorker.this);\n } else {\n connectDirectly...
"public boolean check(RequirementsContext context, List<String> args) throws RequirementCheckException {\n boolean outcome = true;\n if (Depends.economy != null) {\n balance = Depends.economy.getBalance(context.getPlayer().getName());\n dB.echoDebug(\"String_Node_Str\" + balance);\n } else {\n ...
"private static void deleteFolder(File folder) {\n try {\n IFolder reportsFolder = ResourceManager.getReportsFolder();\n IFolder tempFolder = WorkspaceUtils.fileToIFolder(folder);\n if (tempFolder != null && tempFolder.exists()) {\n IProject fsProject = ResourceModelUtils.getProject(P...
"public void onViewCreated(final View view, Bundle savedInstanceState) {\n ExpandingLayout anim = (ExpandingLayout) getActivity().findViewById(R.id.layoutDetails);\n anim.setAnimationBounds(mStartTop, mFinalTop, mStartBottom, mFinalBottom);\n super.onViewCreated(view, savedInstanceState);\n if (mListener !=...
"static Conversation get(ContactList list) {\n synchronized (sInstance) {\n if (DEBUG) {\n LogTag.debug(\"String_Node_Str\" + list);\n dumpCache();\n }\n for (Conversation c : sInstance.mCache) {\n if (c.getRecipients().equals(list)) {\n return c;\...
"private static int findMaxCompoundId(List<Compound> compounds) {\n return Collections.max(compounds, new Comparator<Compound>() {\n public int compare(Compound o1, Compound o2) {\n return new Integer(o1.getMolId()).compareTo(o2.getMolId());\n }\n }).getMolId();\n}\n"
"private void removeSingleTx(SQLiteDatabase db, String tx) {\n String deleteTx = \"String_Node_Str\" + tx + \"String_Node_Str\";\n String deleteIn = \"String_Node_Str\" + tx + \"String_Node_Str\";\n String deleteOut = \"String_Node_Str\" + tx + \"String_Node_Str\";\n String deleteAddressesTx = \"String_Node...
"public Container add(short i) {\n if (!contains(i)) {\n bitmap[toIntUnsigned(i) / 64] |= (1l << (i % 64));\n ++cardinality;\n }\n return this;\n}\n"
"public static void validateAssemble(AssembleCommand params) {\n boolean fails_validation = false;\n StringBuilder msg = new StringBuilder();\n if (params.strandedness == null) {\n fails_validation = true;\n msg.append(Util.sprintf(\"String_Node_Str\"));\n }\n if (params.bam != null && para...
"private static void importBooks() {\n try {\n TestHttpClient publisherClient = new TestHttpClient(SERVER_ADDRESS + \"String_Node_Str\").init();\n String contractsJson = Resources.toString(getResource(\"String_Node_Str\"), UTF_8);\n TypeReference<List<RegisterPublisherContractRequest>> listOfReg...
"public final void heartBeater() {\n if (!node.joined())\n return;\n long now = System.currentTimeMillis();\n if (isMaster()) {\n List<Address> lsDeadAddresses = null;\n for (MemberImpl memberImpl : lsMembers) {\n final Address address = memberImpl.getAddress();\n if ...
"public void onAnimationStarted() {\n if (!mStartAnimationTriggered) {\n Intent intent = new Intent(RecentsActivity.ACTION_START_ENTER_ANIMATION);\n intent.setPackage(mContext.getPackageName());\n intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);\n mContext.sendBroadcastA...
"protected VoteType castVote(Proposition p) {\n String groupId = this.getDataModel().getGroupId();\n String proposerGroup = p.getOwnerGroup();\n ProposalType agentProposal;\n VoteType vote;\n if (groupId != null) {\n if (groupId.equals(proposerGroup)) {\n double groupEconomicPosition = ...
"public static String autoGetUnrarCommand() {\n String programm = null;\n String OS = System.getProperty(\"String_Node_Str\").toLowerCase();\n if ((OS.indexOf(\"String_Node_Str\") > -1) || (OS.indexOf(\"String_Node_Str\") > -1)) {\n try {\n File unrarexe = new File(JDUtilities.getJDHomeDirect...
"protected void imageImpl(PImage src, float x1, float y1, float x2, float y2, int u1, int v1, int u2, int v2) {\n if (src.bitmap == null && src.format == ALPHA) {\n src.bitmap = Bitmap.createBitmap(src.width, src.height, Config.ARGB_8888);\n int[] px = new int[src.pixels.length];\n for (int i = ...
"public void timeRangeUpdated(TmfRangeSynchSignal signal) {\n assert (signal != null);\n if (fCurrentExperiment != null) {\n fWindowStartTime = signal.getCurrentRange().getStartTime().normalize(0, -9).getValue();\n fWindowEndTime = signal.getCurrentRange().getEndTime().normalize(0, -9).getValue();\n...
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n String loopPath = this.loopPath;\n String subLoopPath = this.subLoopPath;\n selectColumns.clear();\n if (loopPath.indexOf(\"String_Node_Str\") != -1) {\n loopPath = this.loopPath.repla...
"public void testGetRecentGames() throws Exception {\n try {\n Thread.sleep(1500);\n handler.getRecentGames(SUMMONER_ID_2);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex.printStackTrace();\n }\n}\n"
"private boolean checkServer(Element root) {\n List properties = root.elements(\"String_Node_Str\");\n for (Iterator iterator = properties.iterator(); iterator.hasNext(); ) {\n Element ele = (Element) iterator.next();\n if (ele.element(\"String_Node_Str\").getText().equals(endpointsCombo.getText()) ...
"public void removeDimension(int index) throws SemanticException {\n DimensionViewHandle dimensionView = getDimension(index);\n if (dimensionView == null) {\n logger.log(Level.SEVERE, MessageConstants.CROSSTAB_EXCEPTION_DIMENSION_NOT_FOUND, String.valueOf(index));\n return;\n }\n CommandStack ...
"public void performAction(int newRep, int newShading) {\n ViewDB.getInstance().setApplyAppearanceChange(false);\n Vector<OneComponentNode> nodes = collectAffectedComponentNodes();\n for (int i = 0; i < nodes.size(); i++) {\n OpenSimObjectNode objectNode = (OpenSimObjectNode) nodes.get(i);\n if (...
"private void createResultColumnsForTableFunction(TypeDescriptor td) throws StandardException {\n String[] columnNames = td.getRowColumnNames();\n TypeDescriptor[] types = td.getRowTypes();\n for (int i = 0; i < columnNames.length; i++) {\n String columnName = columnNames[i];\n DataTypeDescriptor...
"public void unlock(Item obj) throws PersistenceException, LoginException {\n if (!(obj instanceof FolderItem) && (obj.eResource() == null || obj.getProperty().eResource() == null)) {\n obj = getUptodateProperty(obj.getProperty()).getItem();\n }\n if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || ...
"public Request createRegisterRequest(Address addressOfRecord, int registrationsExpiration, CallIdHeader callIdHeader, long cSeqValue) throws InvalidArgumentException, ParseException, OperationFailedException {\n FromHeader fromHeader = protocolProvider.getHeaderFactory().createFromHeader(addressOfRecord, SipMessage...
"private boolean checkAppendingThread() {\n Thread appendingThread = this.appendingThread;\n Thread currentThread = Thread.currentThread();\n if (appendingThread != null) {\n if (appendingThread == currentThread)\n throw new IllegalStateException(\"String_Node_Str\");\n throw new Illeg...
"static ASN1EncodableVector generateSignerInfo(final X509Certificate cert, final String digestAlgorithmName, final byte[] datos, final String policyIdentifier, final String policyQualifier, final boolean signingCertificateV2, final byte[] messageDigest) throws NoSuchAlgorithmException, IOException, CertificateEncodingE...
"private void checkEkfPositionState(msg_ekf_status_report ekfStatus) {\n if (ekfStatus == null)\n return;\n int flags = ekfStatus.flags;\n boolean isOk = this.armed ? (flags & EKF_STATUS_FLAGS.EKF_POS_HORIZ_ABS) != 0 && (flags & EKF_STATUS_FLAGS.EKF_CONST_POS_MODE) == 0 : (flags & EKF_STATUS_FLAGS.EKF_P...
"public static void main(String[] args) throws Exception {\n logger.info(\"String_Node_Str\");\n Gateway gateway = Guice.createInjector(new Module(), Flags.asModule(args)).getInstance(Gateway.class);\n gateway.bind(new InetSocketAddress(gateway.host, gateway.port));\n}\n"
"public void run() throws ParseException, IOException {\n DepTreebank trainTreebank;\n DmvModel goldModel = null;\n if (trainType == DatasetType.PTB || trainType == DatasetType.CONLL_X || trainType == DatasetType.CONLL_2009) {\n log.info(\"String_Node_Str\" + train);\n Alphabet<Label> alphabet = ...