content
stringlengths
40
137k
"public void getServiceCallTrend(MetricValue firstDate, MetricValue secondDate, final AsyncCallback<List<TimeSlotData>> callback) {\n try {\n final TimeSlotData firstDateRange = new TimeSlotData();\n final TimeSlotData secondDateRange = new TimeSlotData();\n this.getServiceCallTrendForDate(first...
"private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) {\n if (files != null) {\n Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>();\n for (String f : files) {\n boolean isPatch = f.startsWith(\"String_Node_Str\");\n if (isPatch) {\n St...
"public void write(Collection<? extends Annotation> annotations) {\n try {\n Map<Class, Annotation> bag = constructAnnotationBag(annotations);\n callWriteMethod(bag, this.writeMethod);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e);\n } catch (IllegalAccessExcept...
"public void sortPermanents(Map<String, JComponent> ui, Collection<MagePermanent> permanents, Map<String, String> options) {\n if (ui == null)\n throw new RuntimeException(\"String_Node_Str\");\n JComponent component = ui.get(\"String_Node_Str\");\n JComponent component2 = ui.get(\"String_Node_Str\");\n...
"private void writeDataFormat(StyleEntry style) {\n Integer type = (Integer) style.getProperty(StyleConstant.DATA_TYPE_PROP);\n if (type == null)\n return;\n if (type == SheetData.DATE && style.getProperty(StyleConstant.DATE_FORMAT_PROP) != null) {\n writer.openTag(\"String_Node_Str\");\n ...
"public String generateMaskedRow(String str) {\n if ((str == null || EMPTY_STRING.equals(str)) && keepNull) {\n return str;\n } else {\n if (str != null && !EMPTY_STRING.equals(str) && integerParam > 0) {\n parameter = integerParam > str.length() ? str.length() : integerParam;\n ...
"public static void main(String[] args) {\n int errorEstimationMethod = Integer.parseInt(args[0]);\n String filename = \"String_Node_Str\";\n String separator = \"String_Node_Str\";\n double[] classificationThresholds = new double[] { 0.1, 0.1, 0.1, 0.1 };\n List<boolean[][]> functionOutputs = new ArrayL...
"public boolean retryResetCachesAndReturnSuccess(final SettingsValues settingsValues, final boolean tryResumeSuggestions, final int remainingTries, final LatinIME.UIHandler handler) {\n final boolean shouldFinishComposition = mConnection.hasSelection() || !mConnection.isCursorPositionKnown();\n if (!mConnection.r...
"public static final boolean stoppedSlowCart(Minecart cart, Vector velocity) {\n switch(Direction.getVerticalDirection(cart.getLocation())) {\n case DOWN:\n case UP:\n return false;\n }\n if (MathUtil.abs(velocity.getX()) < min_movement && MathUtil.abs(velocity.getZ()) < min_movement) ...
"public void onNodeDragEnd(NodeDragEndEvent event) {\n final boolean accepts = this.shapeControl.dragEnd(new WiresDragControlContext(event.getX(), event.getY(), event.getSource()));\n if (!accepts) {\n event.getDragContext().reset();\n }\n}\n"
"public void init(GLAutoDrawable drawable) {\n GL gl = drawable.getGL();\n String renderer = gl.glGetString(GL.GL_RENDERER);\n String version = gl.glGetString(GL.GL_VERSION);\n int[] buff = new int[2];\n gl.glGetIntegerv(GL3.GL_MAJOR_VERSION, buff, 0);\n gl.glGetIntegerv(GL3.GL_MINOR_VERSION, buff, 1)...
"private void handleBackspace() {\n if (VOICE_INSTALLED && mVoiceInputHighlighted) {\n mVoiceInput.incrementTextModificationDeleteCount(mVoiceResults.candidates.get(0).toString().length());\n revertVoiceInput();\n return;\n }\n boolean deleteChar = false;\n InputConnection ic = getCurre...
"public void run() {\n String header = null;\n HashMap<String, String> headers = new HashMap<String, String>();\n String url = null;\n String method = null;\n try {\n String[] requestLine = this.fromClient.readLine().split(\"String_Node_Str\");\n method = requestLine[0].trim().toUpperCase()...
"private void showReader() {\n Intent intent = new Intent(WPDrawerActivity.this, ReaderPostListActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(intent);\n}\n"
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlCompositeCollectionMapping.isReadOnly()) {\n return false;\n }\n ContainerPolicy cp = getContainerPolicy();\n Object collection = x...
"public void visitIntInsn(int opcode, int operand) {\n if (include) {\n getAdaptee().visitIntInsn(opcode, operand);\n }\n}\n"
"private void breakBlockInFront(World world, int x, int y, int z) {\n int meta = world.getBlockMetadata(x, y, z);\n int i = AdvancedDispensersLib.INSTANCE.getI(meta, x);\n int j = AdvancedDispensersLib.INSTANCE.getJ(meta, y);\n int k = AdvancedDispensersLib.INSTANCE.getK(meta, z);\n Block block = world.g...
"public void playLoopedSound(int index) {\n if (!isSoundPlaying) {\n float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n mSoundPool.play((Integer) mSoundPoolMap.get(index), s...
"public void executeUpdate(Rider rider) {\n if (rider != null) {\n rider.setTarget(null);\n LivingEntity ride = rider.getRide();\n if (target == null) {\n isGoalDone = true;\n } else {\n if (target.isDead()) {\n target = null;\n goalMana...
"public void scheduleWithFixedDelay(Runnable task, long initialDelay, long recurringDelay) {\n if (task == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n } else if (initialDelay < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n } else if (recurringDelay < 0...
"public String getVersion() {\n try {\n return AvconvConvertPluginUtils.getVersion();\n } catch (CommandException | IOException | UnsupportedOperationException e) {\n LoggerFactory.getLogger(SoxConvertPlugin.class).debug(\"String_Node_Str\");\n return new String();\n }\n}\n"
"public ClientResponse handle(final ClientRequest request) throws ClientHandlerException {\n boolean reqHadAuthHeaders = false;\n if (state.get().nextNonce != null) {\n reqHadAuthHeaders = true;\n String qopStr = null;\n if (state.get().qop != null) {\n qopStr = (state.get().qop ==...
"public TaskWrapper[] getAssignedTasksForGivenUser(String workspaceId, String userLogin) throws UserNotFoundException, UserNotActiveException, WorkspaceNotFoundException, WorkspaceNotEnabledException {\n User user = userManager.checkWorkspaceReadAccess(workspaceId);\n TaskDAO taskDAO = new TaskDAO(new Locale(user...
"private void exportData(Graph graph) throws Exception {\n stringBuilder = new StringBuilder();\n int max = graph.getNodeCount();\n Progress.start(progressTicket, max);\n if (!list) {\n if (header) {\n writer.append(SEPARATOR);\n Node[] nodes = graph.getNodes().toArray();\n ...
"public final void init(final FilterConfig config) throws ServletException {\n filterConfig = config;\n servletContext = config.getServletContext();\n servletContext.setAttribute(WEB_FILTER_ATTRIBUTE_KEY, this);\n loadProperties();\n initCookieParams();\n initParams();\n String mapName = getParam(\...
"public static boolean isHidden(Context context, String schema, String element, String qualifier) throws SQLException {\n if (context != null && AuthorizeManager.isAdmin(context))\n return false;\n if (!isInitialized()) {\n init();\n }\n if (qualifier == null) {\n Set<String> elts = hid...
"public WorkflowResponse getWorkflowModels(String workspaceId, int startOffset, int chunkSize) throws ApplicationException {\n WorkflowModelDTO[] response = getWorkflowModels(workspaceId);\n if (startOffset < response.length) {\n WorkflowModelDTO[] chunk;\n if (startOffset + chunkSize <= response.le...
"public Object[] currentState() {\n return new Object[] { groupByKeyEvents };\n}\n"
"public int getNumNonNBases(final int start, final int end) {\n int count = 0;\n for (int index = start; index < end; index++) {\n if (!isN(_seq[index]))\n count++;\n }\n return count;\n}\n"
"public void setPF(PixelFormat pf) {\n if (!(pf.bpp == 32) && !(pf.bpp == 16) && !(pf.bpp == 8))\n throw new Exception(\"String_Node_Str\" + pf.bpp + \"String_Node_Str\");\n format = pf;\n switch(pf.depth) {\n case 3:\n case 6:\n case 8:\n int rmask = pf.redMax << pf.redS...
"public void onResult(Boolean aBoolean) {\n if (isLoadedOldMessages) {\n messagesAdapter.setList(combinationMessagesList, false);\n messagesAdapter.notifyItemRangeInserted(0, totalEntries);\n } else {\n messagesAdapter.addList(combinationMessagesList);\n scrollMessagesToBottom();\n ...
"public void attach(Job attached, JobInfo jobInfo, AdminCommandContext context, String jobName) {\n ActionReport ar = context.getActionReport();\n String attachedUser = SubjectUtil.getUsernamesFromSubject(context.getSubject()).get(0);\n if ((attached == null && jobInfo == null) || (attached != null && attached...
"public void addPotentialComponent(Var part, Var whole, List<Arg> key) {\n assert (!key.isEmpty());\n Node wholeNode = getVarNode(whole);\n Node partNode = getVarNode(part);\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + whole + \"String_Node_Str\" + keyToString(key) + \"String...
"public void addDroppedPacket(int numberOfPackets) {\n this.numberOfDroppedPackets += numberOfPackets;\n}\n"
"public boolean destroySecStorageVm(long vmId) {\n SecondaryStorageVmVO ssvm = _secStorageVmDao.findById(vmId);\n try {\n _itMgr.expunge(ssvm.getUuid());\n _secStorageVmDao.remove(ssvm.getId());\n HostVO host = _hostDao.findByTypeNameAndZoneId(ssvm.getDataCenterId(), ssvm.getHostName(), Host....
"public void printTotal(String sPayment, double dpaid) {\n try {\n m_fiscal.printRecTotal(0, roundFiscal(dpaid), sPayment);\n } catch (JposException e) {\n }\n}\n"
"public void getMethodMatches(List<MethodMatch> list, IValue instance, Name name, IArguments arguments) {\n for (int i = 0; i < this.usingCount; i++) {\n this.usings[i].getMethodMatches(list, instance, name, arguments);\n }\n for (int i = 0; i < this.includeCount; i++) {\n this.includes[i].getMet...
"public IPropertyValue addOp(StringPropertyValue value2) throws EvaluationException {\n String v1 = value1.getValue();\n if (\"String_Node_Str\".equals(v1)) {\n } else if (\"String_Node_Str\".equals(v1)) {\n } else if (\"String_Node_Str\".equals(v1)) {\n } else {\n throw new EvaluationException(\"...
"public void render(final Listitem item, final Object data, final int index) throws Exception {\n final Listbox listbox = (Listbox) item.getParent();\n final int size = listbox.getModel().getSize();\n final String subtype = item instanceof Listgroup ? \"String_Node_Str\" : item instanceof Listgroupfoot ? \"Str...
"public static void main(String[] args) {\n Config.overwrite(\"String_Node_Str\", \"String_Node_Str\");\n boolean get = false;\n int times = 1;\n boolean b = false;\n boolean r = false;\n Network nw0 = new Regular(100, 4, r, b, null);\n Network nw1 = new Regular(200, 4, r, b, null);\n Network nw...
"protected List<Object> populateEntities(EntityMetadata m, Client client) {\n log.debug(\"String_Node_Str\");\n List<Object> result = null;\n ((RDBMSEntityReader) getReader()).setConditions(getKunderaQuery().getFilterClauseQueue());\n ((RDBMSEntityReader) getReader()).setFilter(getKunderaQuery().getFilter()...
"public static boolean[] generate(int w, int h, float fill, int clustering, boolean forceFillRate) {\n int length = w * h;\n boolean[] cur = new boolean[length];\n boolean[] off = new boolean[length];\n int fillDiff = -Math.round(length * fill);\n if (forceFillRate && clustering > 0) {\n fill += (...
"public NodeList replaceValue(XMLField xmlField, Node parent, Object value, AbstractSession session) throws XMLMarshalException {\n NodeList nodes = unmarshalXPathEngine.selectNodes(parent, xmlField, getNamespaceResolverForField(xmlField));\n int numberOfNodes = nodes.getLength();\n XMLNodeList createdElements...
"public void testHome() {\n loadPage(baseUrl, 30);\n WebDriverWait wait = new WebDriverWait(getWebDriver(), 30);\n wait.until(ExpectedConditions.titleContains(\"String_Node_Str\"));\n}\n"
"public void checkParameters() throws CosXmlClientException {\n if (bucket == null) {\n throw new CosXmlClientException(\"String_Node_Str\");\n }\n if (cosPath == null) {\n throw new CosXmlClientException(\"String_Node_Str\");\n }\n if (appid == null) {\n throw new CosXmlClientExcept...
"private void writeStatesToHdfs(Path out, DTMasterParams masterParams) {\n FSDataOutputStream fos = null;\n try {\n fos = FileSystem.get(conf).create(out);\n int treeLength = trees.size();\n fos.writeInt(treeLength);\n for (TreeNode treeNode : trees) {\n treeNode.write(fos);...
"private static int findFrequency(Sound channel1) {\n final int threshold = 100;\n double sum = 0;\n final double[] magnitude = new double[channel1.getSamples().length / threshold + 1];\n SoundTransformation magnFreqTransform = new NoOpFrequencySoundTransformation() {\n int index = 0;\n public...
"public void onCreate() {\n super.onCreate();\n AVOSCloud.initialize(this, \"String_Node_Str\", \"String_Node_Str\");\n ChatManager.setDebugEnabled(true);\n AVOSCloud.setDebugLogEnabled(true);\n ChatManager.getInstance().init(this);\n ChatManager.getInstance().setChatManagerAdapter(new ChatManagerAdap...
"public boolean preHandleMouseUp() {\n if (getRequest().getNewObjectType() instanceof ScalarParameterHandle) {\n try {\n Object newObj = getRequest().getNewObject();\n if (newObj instanceof Object[]) {\n Object[] newObjs = (Object[]) newObj;\n newObj = UIUti...
"public boolean canTarget(UUID controllerId, UUID id, Ability source, Game game) {\n if (super.canTarget(controllerId, id, source, game)) {\n Permanent creature = game.getPermanent(id);\n if (creature != null) {\n for (Object object : getTargets()) {\n UUID targetId = (UUID) o...
"public void display(GL2 gl) {\n checkForHits(gl);\n processEvents();\n handleBrickResize(gl);\n if (isBaseDisplayListDirty)\n buildBaseDisplayList(gl);\n GLStratomex stratomex = getBrickColumn().getStratomexView();\n gl.glPushName(stratomex.getPickingManager().getPickingID(stratomex.getID(), E...
"public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point canvasPosition) {\n if (this.latLong == null || this.bitmap == null) {\n return;\n }\n double pixelX = MercatorProjection.longitudeToPixelX(this.latLong.longitude, zoomLevel);\n double pixelY = MercatorProjec...
"private static void log(Level level, String msg, boolean quit, int exitCode) {\n Mediator.getLogger(CpadDataExtract.class.getName()).log(level, msg);\n if (quit) {\n System.exit(exitCode);\n }\n}\n"
"private boolean uriStartsWithAnyString(String uri, String[] startsWithArray) {\n if (startsWithArray == null || startsWithArray.length == 0) {\n return true;\n }\n for (String startsWith : startsWithArray) {\n if (uri.startsWith(startsWith)) {\n return true;\n }\n return false;\...
"private ArrayList<ILaunchConfiguration> findCDTLaunchConfigFromProject(final IProject project) {\n ArrayList<ILaunchConfiguration> applicableLaunchConfigs = new ArrayList<ILaunchConfiguration>();\n if (project != null) {\n try {\n ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager()...
"public void refreshView() {\n if (messages != null) {\n messagesViewer.getTreeViewer().setInput(messages);\n if (hasDynamicContent && messages[0] instanceof ValgrindInfo) {\n showCoreAction.setEnabled(false);\n showToolPage();\n } else {\n showCoreAction.setEnab...
"public Var tryPiggyBack(RefCountsToPlace increments, RefCountType type, RCDir dir) {\n for (RefCount startIncr : startIncrements) {\n if (startIncr.type == type) {\n long incr = increments.getCount(startIncr.var);\n if ((dir == RCDir.DECR && incr < 0) || (dir == RCDir.INCR && incr > 0))...
"private AtlasEntity getEntity(String guid) throws AtlasBaseException {\n if (guidEntityJsonMap.containsKey(guid)) {\n AtlasEntityWithExtInfo extInfo = getEntityWithExtInfo(guid);\n return (extInfo != null) ? extInfo.getEntity() : null;\n }\n return null;\n}\n"
"public void returnToken(MFRequester mfRequester, MFResponse mfResponse) {\n switch(mfRequester.getTypeOfTokenToReturn()) {\n case NEW:\n GetSessionTokenResponse newSessionTokenResponse = mfResponse.getResponseObject(GetSessionTokenResponse.class);\n MFSessionToken newSessionToken = crea...
"private Collection<ResourceHolder> handleEntityDeath(EntityDeathEvent event, LivingEntity entity, Player killer) {\n boolean hasKiller = (killer != null);\n Integer id = entity.getEntityId();\n Configuration config = null;\n Action action = null;\n List<ResourceHolder> generated = null;\n Collection<...
"private void writeProperties() {\n Properties p = new Properties();\n p.setProperty(this.WTK_PATH, this.wtkPath);\n p.setProperty(this.NEW_FORM, this.newForm);\n p.setProperty(this.ORIGINAL_JAR_DIR, this.origJarDir);\n p.setProperty(this.OPEN_XML_WITH, openXMLWith);\n p.setProperty(this.OPEN_AT_END, ...
"private void writeProgramSystemMetadata(ApplicationId appId, ProgramType programType, Iterable<? extends ProgramSpecification> specs) {\n for (ProgramSpecification spec : specs) {\n ProgramId programId = appId.program(programType, spec.getName());\n Map<String, String> properties = metadataStore.getPr...
"public void onNext(QuoteModel quoteModel) {\n String quote = quoteModel.getResult().getQuote();\n if (quote.length() > 224) {\n setQuoteToBottomSheet(getQuoteObservableFromPresenter());\n } else {\n quoteTV.setText(quoteModel.getResult().getQuote());\n authorTV.setText(quoteModel.getResul...
"private String getPathToMerge(CubeSegment segment) {\n return getJobWorkingDir(segment.getLastBuildJobID()) + \"String_Node_Str\" + getCubeName() + \"String_Node_Str\";\n}\n"
"public static LValue luaBinOpDoubleDouble(int opcode, double lhs, double rhs) {\n switch(opcode) {\n case Lua.OP_ADD:\n return new LDouble(lhs + rhs);\n case Lua.OP_SUB:\n return new LDouble(lhs - rhs);\n case Lua.OP_MUL:\n return new LDouble(lhs * rhs);\n ...
"private byte[] decodePackbits(byte[] data, int arraySize, byte[] dst) {\n if (dst == null) {\n dst = new byte[arraySize];\n }\n int srcCount = 0, dstCount = 0;\n byte repeat, b;\n try {\n while (dstCount < arraySize && srcCount < srcArraySize) {\n b = data[srcCount++];\n ...
"protected BootstrapState createBootstrapState() {\n return new BootstrapState(!myConfig.isAutoDiscoverServers());\n}\n"
"public static <T> File writeLines(Collection<T> list, File file, String charset, boolean isAppend) throws IORuntimeException {\n return FileWriter.create(file, CharsetUtil.charset(charset)).writeLines(list, isAppend);\n}\n"
"private void setSecurityProperties() {\n try {\n if (getProperty(ServerConstants.REGISTRY_SCHEME, \"String_Node_Str\").equalsIgnoreCase(\"String_Node_Str\")) {\n conf.setProperty(ISecurityProperties.REGISTRY_SSL_ENABLED, \"String_Node_Str\");\n }\n if (\"String_Node_Str\".equalsIgnor...
"public String execStart(String containerId, String... commands) {\n ExecCreateCmdResponse execCreateCmdResponse = this.dockerClient.execCreateCmd(containerId).withAttachStdout(true).withAttachStdin(false).withAttachStderr(false).withTty().withCmd(commands).exec();\n InputStream consoleOutputStream = dockerClient...
"protected void storeHeader(_State state, String field, String value) {\n OutgoingMessage self = this;\n value = value.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n state.messageHeader += field + \"String_Node_Str\" + value + http.CRLF;\n if (Pattern.matches(connectionExpression, field)) {\n ...
"public void onNodesUpdated(List<NodeReport> nodeReports) {\n if (nodeReports.size() <= 0) {\n return;\n }\n LOGGER.logDebug(\"String_Node_Str\", nodeReports.size());\n transitionTaskStateQueue.queueSystemTask(() -> {\n updateNodeReports(nodeReports);\n });\n}\n"
"public void run() {\n Plugin.setProjectNameInTitlebar(null, null, null);\n Plugin.closeAllOpenedJubulaEditors();\n ded.fireTestresultChanged(TestresultState.Refresh);\n setTreeViewerInputNull(Constants.TESTRE_ID);\n setTreeViewerInputNull(Constants.TC_BROWSER_ID);\n setTreeViewerInputNull(Constants.T...
"private void copyFromToken(Token token, Game game) {\n this.name = token.getName();\n this.abilities.clear();\n for (Ability ability : token.getAbilities()) {\n this.addAbility(ability, game);\n }\n this.manaCost.clear();\n for (ManaCost cost : token.getManaCost()) {\n this.getManaCost(...
"private static boolean explodeFuncCalls(Logger logger, Function fn, ExecContext execCx, Block block) {\n boolean changed = false;\n Set<String> empty = Collections.emptySet();\n ListIterator<Instruction> it = block.instructionIterator();\n while (it.hasNext()) {\n Instruction i = it.next();\n ...
"public static Section buildPregnancyHistorySection(Patient patient) {\n List<Concept> ConceptsList = new ArrayList<Concept>();\n Map<String, String> mappings = new HashMap<String, String>();\n Section section = CDAFactory.eINSTANCE.createSection();\n PregnancyHistorySection ccs = new PregnancyHistorySectio...
"public void onClick(View v) {\n int id = v.getId();\n if (id == R.id.event_top_teams_container) {\n ((ViewEventActivity) getActivity()).getPager().setCurrentItem(2);\n return;\n } else if (id == R.id.event_top_opr_container) {\n ((ViewEventActivity) getActivity()).getPager().setCurrentIte...
"public void enterTypedef_stmt(Typedef_stmtContext ctx) {\n ASTNode parent = stack.peek();\n TypeDefinition typeDefinition = new TypeDefinition(parent);\n updateNamedNode(typeDefinition, ctx);\n module.getTypeDefinitions().add(typeDefinition);\n stack.push(typeDefinition);\n}\n"
"public <T extends IdEObject> Map<Long, T> query(IfcModelInterface model, Condition condition, Class<T> clazz, QueryInterface query) throws BimserverDatabaseException {\n Map<Long, T> map = new HashMap<Long, T>();\n Set<EClass> eClasses = new HashSet<EClass>();\n condition.getEClassRequirements(eClasses);\n ...
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {\n GraphTargetItem functionName = stack.pop();\n long numArgs = popLong(stack);\n List<GraphTa...
"public void createContent(String id, Element parent) {\n Document dom = parent.getOwnerDocument();\n if (ContentConstants.INSERT_DATA.equals(id)) {\n Element tr = dom.createElement(\"String_Node_Str\");\n Element td = dom.createElement(\"String_Node_Str\");\n String style = \"String_Node_Str...
"private void writeJsonFile(Map<String, Object> clusterConfig, File file) {\n Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().setPrettyPrinting().create();\n String jsonStr = gson.toJson(clusterConfig);\n AuAssert.check(jsonStr != null);\n logger.debug(\"String_Node_Str\" + jsonStr + \"...
"public static void main(String[] args) {\n String email = \"String_Node_Str\";\n CustomerProxy proxy = new CustomerProxy(email);\n HashMap<Integer, Assignment> assignmentList = proxy.getAssignmentList();\n Assignment assignmentProva = assignmentList.get(1);\n GUIWriteReview prova = new GUIWriteReview(as...
"protected INDArray newShape(int[] newShape, char ordering) {\n ensureNotCleanedUp();\n if (Arrays.equals(newShape, this.shape()))\n return this;\n else if (Shape.isVector(newShape) && isVector()) {\n if (isRowVector() && Shape.isColumnVectorShape(newShape)) {\n return create(data, new...
"private void createResourceUiRenderer(XMLElement elem, String resourceName, JClassType resourceType, JClassType matchingResourceType) throws UnableToCompleteException {\n FieldWriter fieldWriter;\n if (resourceType != null && !resourceType.getErasedType().isAssignableFrom(matchingResourceType.getErasedType())) {...
"private void assertValues(long[][] values, KVIndex index) {\n for (int i = 0; i < values.length; i++) {\n try (DirectLongList array = index.getValues(i)) {\n Assert.assertEquals(values[i].length, array.size());\n for (int k = 0; k < values[i].length; k++) {\n Assert.asser...
"protected void initFilterCheckboxes() {\n boolean settings = Utils.getSettingBool(this, Const.CALENDAR_FILTER_CANCELED, true);\n menuItemFilterCanceled.setChecked(settings);\n applyFilterCanceled(settings);\n int savedMin = Integer.parseInt(Utils.getSetting(this, Const.CALENDAR_FILTER_HOUR_LIMIT_MIN, Const...
"public ActionReportResult hack(ParameterMap data) {\n if (data != null && data.containsKey(\"String_Node_Str\")) {\n List<String> l = data.get(\"String_Node_Str\");\n if (l.contains(\"String_Node_Str\")) {\n data.remove(\"String_Node_Str\");\n }\n }\n return processDeleteLegacy...
"public void deleteResourcePool(final String rpName) {\n logger.debug(\"String_Node_Str\" + rpName);\n VcResourcePoolEntity entity = VcResourcePoolEntity.findByName(rpName);\n if (entity == null) {\n throw VcProviderException.RESOURCE_POOL_NOT_FOUND(rpName);\n }\n List<String> clusterNames = Clust...
"private void initFormatField() {\n if ((DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(getSelectedDataType())) || (DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(getSelectedDataType(...
"String generateNewAnonID() {\n String uuid = UUID.randomUUID().toString().replace(\"String_Node_Str\", \"String_Node_Str\");\n AppLog.d(AppLog.T.STATS, \"String_Node_Str\" + this.getClass().getSimpleName() + \"String_Node_Str\" + uuid);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPrefe...
"public void onOpened() {\n try {\n if (findWorldByName(selectedWorld).getWorldGenerator() == null) {\n worldGenerator = WorldGeneratorManager.createWorldGenerator(findWorldByName(selectedWorld).getWorldGeneratorInfo().getUri(), context, environment);\n findWorldByName(selectedWorld).set...
"public Rating scrapeRating() {\n Element ratingElement = document.select(\"String_Node_Str\").first();\n if (ratingElement != null) {\n String ratingImgUrl = ratingElement.attr(\"String_Node_Str\");\n String ratingIntegerIntegerPart = ratingImgUrl.substring(ratingImgUrl.length() - 7, ratingImgUrl.l...
"public void write(byte[] b, int off, int len) throws IOException {\n if (len < checkStep) {\n out.write(b, off, len);\n increase(len);\n } else {\n offset = off;\n rest = len;\n while (rest != 0) {\n todo = rest;\n if (todo > checkStep)\n to...
"public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(KEY_WECHAT_SCAN)) {\n Intent intent = new Intent(ACTION_WECHAT_SCAN_CHANGED);\n intent.putExtra(KEY_WECHAT_SCAN, sharedPreferences.getBoolean(KEY_WECHAT_SCAN, false));\n sendBroadcast(inten...
"private void updateIcon() {\n AttributeType type = model.getInputDefinition().getAttributeType(attribute);\n if (type == AttributeType.QUASI_IDENTIFYING_ATTRIBUTE) {\n tabItem.setImage(IMAGE_QUASI_IDENTIFYING);\n } else if (type == AttributeType.INSENSITIVE_ATTRIBUTE) {\n tabItem.setImage(IMAGE_...
"final public void run(String args) {\n final ArrayList<PointMatch> matches = new ArrayList<PointMatch>();\n if (!setup())\n return;\n final ImagePlus target = template.createImagePlus();\n final ImageProcessor ipSource = source.getProcessor();\n final ImageProcessor ipTarget = source.getProcessor...
"private final int computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP, boolean doingAll, long now) {\n if (mAdjSeq == app.adjSeq) {\n return app.curRawAdj;\n }\n if (app.thread == null) {\n app.adjSeq = mAdjSeq;\n app.curSchedGroup = Process.THREAD_GROUP_BG_NONINTE...
"private void checkWindowStates() {\n Boolean isThereATWindow = false;\n Node node = null;\n if (nodeContainer != null) {\n node = nodeContainer.getNode();\n if (node != null) {\n isThereATWindow = true;\n }\n }\n if (!isThereATWindow) {\n return;\n }\n IEleme...
"public static String normalize(String token) {\n Matcher duplicateMatcher = duplicateCharacters.matcher(token);\n String normalizedToken = duplicateMatcher.replaceAll(\"String_Node_Str\");\n normalizedToken = normalizedToken.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n normalizedToken = normaliz...