content
stringlengths
40
137k
"protected static void assertSwapResults(String idxAdded, String idxPattern, String alias, Set<String> idxRemoved) {\n Response response = null;\n try {\n response = restClient.performRequest(HttpGet.METHOD_NAME, \"String_Node_Str\" + idxPattern + \"String_Node_Str\" + alias);\n } catch (IOException e) ...
"public void testImport_OpenOLATTest_extractItems() throws IOException, URISyntaxException {\n URL testUrl = QTIImportProcessorTest.class.getResource(\"String_Node_Str\");\n Assert.assertNotNull(testUrl);\n File testFile = new File(testUrl.toURI());\n QTIImportProcessor proc = new QTIImportProcessor(owner, ...
"protected void cartridge(Cartridge cartridge) {\n bus.cartridge(cartridge);\n if (cartridge.forcedVideoStandard() != null)\n videoStandardForced(cartridge.forcedVideoStandard());\n}\n"
"public DatabaseMapping generateCollectionMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n JavaClass javaClass = property.getActualType();\n if (property.isMixedContent()) {\n return generateAnyCollectionMapping(property, descriptor, namespaceInfo, true);\n }\n if...
"public void caseAssignStmt(AssignStmt stmt) {\n Value l = stmt.getLeftOp();\n Value r = stmt.getRightOp();\n TypeNode left = null;\n if (l instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) l;\n TypeNode base = hierarchy.typeNode(((Local) ref.getBase()).getType());\n if (!base.hasEleme...
"protected IStatus run(IProgressMonitor monitor) {\n cloudServer.getBehaviour().publishAdd(moduleName, monitor);\n return Status.OK_STATUS;\n}\n"
"public void onReceive(Context context, Intent intent) {\n mContext = context;\n if (MESSAGE_STATUS_RECEIVED_ACTION.equals(intent.getAction())) {\n Uri messageUri = intent.getData();\n byte[] pdu = (byte[]) intent.getExtra(\"String_Node_Str\");\n SmsMessage message = updateMessageStatus(conte...
"public TopicView updateTopic(PrestoContext context, TopicView topicView) {\n Status status = new Status();\n topicView = processor.preProcessTopicView(topicView, context, status);\n if (status.isValid()) {\n PrestoTopic result = updatePrestoTopic(context, topicView);\n PrestoContext parentContex...
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n BranchId branch = variableMap.getBranch(\"String_Node_Str\");\n ConnectionHandler.runPreparedUpdate(UPDATE_PARENT_BRANCHES + variableMap.getString(\"String_Node_Str\") + \"String_Node_Str\", branch.getUuid());\n}\n"
"public static boolean isEnabledWifiHotspot(Context context) {\n boolean enabled = false;\n Log.d(TAG, \"String_Node_Str\");\n WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n try {\n Method method = wm.getClass().getDeclaredMethod(\"String_Node_Str\");\n enable...
"public static void merge(DataEngineSession session, IBaseQueryDefinition queryDefn, IQueryResults queryResults) {\n try {\n if (session == null || queryResults.getResultMetaData() == null || queryResults.getResultMetaData().getColumnCount() == 0 || queryDefn instanceof ISubqueryDefinition)\n retur...
"public Integer generateMaskedRow(Integer i) {\n if (i == null && keepNull) {\n return null;\n } else {\n if (i != null && integerParam > 0) {\n if (i == 0) {\n return rnd.nextInt(9);\n } else {\n parameter = (int) Math.log10(i) + 1 <= integerParam...
"public Future<T> post(JsonElement element) {\n Callable<T> post = () -> {\n try {\n this.c.setRequestMethod(\"String_Node_Str\");\n this.c.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n this.c.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n ...
"public MKAnnotationView getAnnotationView(MKMapView mapView, MKAnnotation annotation) {\n final String annotationIdentifier = \"String_Node_Str\";\n if (mapView != PhotoMapViewController.this.mapView) {\n return null;\n }\n if (annotation instanceof PhotoAnnotation) {\n MKPinAnnotationView an...
"private void createButtons(int numButtons) {\n int[] supportedButtons = new int[numButtons];\n getSupportedButtons(supportedButtons);\n buttons = new LinuxAxis[numButtons];\n if (numButtons > 0) {\n getSupportedButtons(supportedButtons);\n for (int i = 0; i < numButtons; i++) {\n b...
"public boolean passesCheckpoint(int height, Sha256Hash hash) {\n Sha256Hash checkpointHash = checkpoints.get(Integer.valueOf(height));\n if (checkpointHash != null)\n return checkpointHash.equals(hash);\n return true;\n}\n"
"public String getIdAttribute() {\n notNull(entityMetadata.getIdProperty(), format(ID_MSG, entityMetadata.getType().getSimpleName()));\n return entityMetadata.getIdProperty().getFieldName();\n}\n"
"public void dump() throws IOException {\n ln(\"String_Node_Str\");\n ln_i(\"String_Node_Str\");\n ln(\"String_Node_Str\");\n ln(\"String_Node_Str\");\n addNote();\n for (Section s : sections) {\n ln_i(\"String_Node_Str\");\n ln(\"String_Node_Str\" + Utilities.escapeXml(s.title) + \"Stri...
"private static Class<?> getGenericType(Class<?> clazz, int index) {\n for (Type type : clazz.getGenericInterfaces()) {\n if (type instanceof ParameterizedType) {\n ParameterizedType parammeterizedType = (ParameterizedType) type;\n if (isGenericDao(parammeterizedType)) {\n ...
"private void loadSplashPage() {\n fc.showOpenDialog(Experiment.splashLoaderButton);\n if (filename.string != null) {\n if (splashLoadOpt.getSelectedIndex() == 0)\n splashPage.setText(filename.string);\n else {\n try {\n splashPage.setText(Slurpie.slurp(filename....
"public void onPageStarted(WebView view, String url, Bitmap favicon) {\n UrlInspector.getInstance().inspectUrl(url);\n Uri uri = Uri.parse(url);\n if (AppConfig.getInstance(mainActivity).loginDetectionUrl != null && isInternalUri(uri)) {\n mainActivity.updateMenu();\n }\n super.onPageStarted(view,...
"private void createCustomCompressedImageWithExceptions(String image, String directoryPath, int maxWidth, int maxHeight, int quality, final Callback successCb, final Callback failureCb) throws IOException {\n File imageFile = new ImageCompress(mContext).setMaxWidth(maxWidth).setMaxHeight(maxHeight).setQuality(qualit...
"public AtlasSearchResult searchRelatedEntities(String guid, String relation, String sortByAttributeName, SortOrder sortOrder, boolean excludeDeletedEntities, int limit, int offset) throws AtlasBaseException {\n AtlasSearchResult ret = new AtlasSearchResult(AtlasQueryType.RELATIONSHIP);\n if (StringUtils.isEmpty(...
"public void run() {\n while (NoC.isSending()) {\n }\n Native.wr(2, NoC.NOC_REG_SNDDST);\n Native.wr(CNT, NoC.NOC_REG_SNDCNT);\n for (int i = 0; i < CNT; ++i) {\n Native.wr(buffer[i], NoC.NOC_REG_SNDDATA);\n }\n}\n"
"protected void composeXhtml(String name, XhtmlNode html) throws IOException {\n if (!Utilities.noString(xhtmlMessage)) {\n xml.enter(XhtmlComposer.XHTML_NS, name);\n xml.comment(xhtmlMessage, false);\n xml.exit(XhtmlComposer.XHTML_NS, name);\n } else {\n XhtmlComposer comp = new Xhtml...
"private void register(List<AnnotationConfiguration> annotationConfigurations) {\n try {\n InitialContext ic = new InitialContext();\n try {\n ic.lookup(\"String_Node_Str\");\n } catch (NameNotFoundException e) {\n ic.createSubcontext(\"String_Node_Str\");\n }\n ...
"private static String decryptAndVerify(KonMessage message, PersonalKey myKey, PGPPublicKey senderKey) {\n String encryptedContent = message.getContent().getEncryptedContent();\n byte[] encryptedData = Base64.decode(encryptedContent);\n PGPObjectFactory pgpFactory = new PGPObjectFactory(encryptedData);\n By...
"public static void compileWithMainClass(String classPath, String target) {\n try {\n Project.singleton = null;\n String classpathElements = classPath;\n Assembly assembly = new Assembly();\n assembly.setEntryPointClassName(mainClass.getName());\n assembly.setTargetLocation(new Fil...
"private static void gameLoop() {\n Log.info(\"String_Node_Str\", \"String_Node_Str\");\n long lastTime = System.nanoTime();\n while (true) {\n long currentTime = System.nanoTime();\n game.update((currentTime - lastTime) * 1.0e-9);\n try {\n game.update((currentTime - lastTime) ...
"protected void build() {\n super.hierarchy = null;\n super.error = null;\n super.groupsizes = null;\n HierarchyBuilderIntervalBased<T> builder = null;\n try {\n builder = getBuilder();\n } catch (Exception e) {\n super.error = e.getMessage();\n return;\n }\n String error = ...
"private static String buildInvokeMethodErrorMessage(Method method, Object obj, Object... args) {\n StringBuilder message = new StringBuilder(String.format(\"String_Node_Str\", method.getName(), obj));\n if (args != null)\n for (int i = 0; i < args.length; i++) message.append((i > 0 ? \"String_Node_Str\" :...
"public static DataTable createData(ATableBasedDataDomain dataDomain, boolean createDefaultPerspectives) {\n LoadDataParameters loadDataParameters = dataDomain.getLoadDataParameters();\n ArrayList<Integer> dimensionIDs = loadDataParameters.getColumnIds();\n CmdDataCreateTable cmdCreateSet = (CmdDataCreateTable...
"private static void append0000(CharSink sink, int val) {\n int v = Math.abs(val);\n if (v < 10) {\n sink.put('0').put('0').put('0');\n } else if (val < 100) {\n sink.put('0').put('0');\n } else if (val < 1000) {\n sink.put('0');\n }\n Numbers.append(sink, val);\n}\n"
"private void onTerminationOfInstance(String childId, String instanceId) {\n removeInstanceFromFromInactiveMap(childId, instanceId);\n removeInstanceFromFromTerminatingMap(childId, instanceId);\n GroupInstance instance = (GroupInstance) instanceIdToInstanceMap.get(instanceId);\n if (instance != null) {\n ...
"public Object getAttributeValue(Object fieldValue, AbstractSession session, XMLRecord record) {\n boolean isNullRepresentedByEmptyNode = nullPolicy.isNullRepresentedByEmptyNode();\n boolean isNullRepresentedByXsiNil = nullPolicy.isNullRepresentedByXsiNil();\n if (XMLConstants.EMPTY_STRING.equals(fieldValue) &...
"public void printExportMoveLine(ActionRequest request, ActionResponse response) {\n MoveLineReport moveLineReport = request.getContext().asType(MoveLineReport.class);\n moveLineReport = moveLineReportRepo.find(moveLineReport.getId());\n try {\n if (moveLineReport.getExportTypeSelect() == null || moveLi...
"public void run() {\n if (!getShell().isDisposed()) {\n for (MedEditorPage medEditorPage : accessMedEditorPages().keySet()) {\n medEditorPage.updateAllMessages();\n }\n }\n}\n"
"private void writeComplexCollection(final EdmComplexType type, final Property property, final Set<List<String>> selectedPaths, final JsonGenerator json) throws IOException, SerializerException {\n json.writeStartArray();\n for (Object value : property.asCollection()) {\n switch(property.getValueType()) {\...
"public void exportMoveLineTypeSelect7FILE1(MoveLineReport moveLineReport, boolean replay) throws AxelorException, IOException {\n LOG.info(\"String_Node_Str\");\n Company company = moveLineReport.getCompany();\n String dateQueryStr = String.format(\"String_Node_Str\", company.getId());\n JournalType journa...
"public void processDeliveryUpdates(AmqpProvider provider) throws IOException {\n try {\n if (pendingDelivery != null && pendingDelivery.remotelySettled()) {\n DeliveryState state = pendingDelivery.getRemoteState();\n JmsTransactionId txId = (JmsTransactionId) pendingDelivery.getContext(...
"private void populateList() {\n try {\n getOkButton().setEnabled(false);\n selectValueList.removeAll();\n viewerValueList.clear();\n if (modelValueList != null) {\n Iterator iter = modelValueList.iterator();\n while (iter.hasNext()) {\n Object candiat...
"private void existProjectHandling(IProgressConsole io, ProjectDTO projectDTO) {\n String msg = NLS.bind(Messages.ErrorMessageIMPORT_PROJECT_FAILED, new String[] { ProjectNameBP.getInstance().getName(projectDTO.getUuid(), false) }) + StringConstants.NEWLINE + NLS.bind(Messages.ErrorMessageIMPORT_PROJECT_FAILED_EXIST...
"public void defineCube(CubeHandle cubeHandle) throws BirtException {\n int mode = this.sessionContext.getDataEngineContext().getMode();\n try {\n CubeMaterializer cubeMaterializer = null;\n if (mode == DataEngineContext.DIRECT_PRESENTATION) {\n cubeMaterializer = createCubeMaterializer(c...
"public boolean act(boolean enemyInFOV, boolean justAlerted) {\n if (beamCharged && enemy != null)\n enemyInFOV = true;\n return super.act(enemyInFOV, justAlerted);\n}\n"
"private void initializeScriptContext() {\n scriptContext = new ScriptContext();\n if (engine != null) {\n EngineConfig config = engine.getConfig();\n IStatusHandler statusHandler = config.getStatusHandler();\n if (statusHandler != null) {\n scriptContext.setAttribute(\"String_Node...
"public String getRule() {\n return \"String_Node_Str\" + vanishingAmount + \"String_Node_Str\" + CardUtil.numberToText(vanishingAmount) + \"String_Node_Str\";\n}\n"
"public static void compile(SWF swf, String src, String dst) {\n System.err.println(\"String_Node_Str\");\n try {\n initPlayer();\n ABC abc = new ABC(swf);\n ActionScriptParser parser = new ActionScriptParser(abc, playerABCs);\n parser.addScript(new String(Helper.readFile(src), \"Strin...
"public static X509Certificate generateIntermediateCert(PublicKey intKey, PrivateKey caKey, X509Certificate caCert) throws Exception {\n X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n certGen.setSerialNumber(BigInteger.valueOf(1));\n certGen.setIssuerDN(PrincipalUtil.getSubjectX509Pri...
"public void initialize(Canvas canvas, CameraComponent cameraComp) {\n if (this.canvas != null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n this.canvas = canvas;\n inputPicker.setCanvas(canvas);\n setCameraComponent(cameraComp);\n canvas.addKeyListener(this);\n if (ENABLE...
"private synchronized void show() {\n if (this.text != null) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n shellText.setText(text);\n shell.pack();\n shell.setLocation(currentX, currentY);\n ...
"public boolean returnResponse(Request request, Connection conn) {\n if (request.local) {\n final TargetAwareOp targetAwareOp = (TargetAwareOp) request.attachment;\n targetAwareOp.setResult(request.response);\n } else {\n Packet packet = obtainPacket();\n request.setPacket(packet);\n ...
"public void onValidated(FormDialogTether dlg) {\n dispatcher.execute(new UpdateEntity(model, model.getProperties()), dialog, new AsyncCallback<VoidResult>() {\n public void onFailure(Throwable caught) {\n }\n public void onSuccess(VoidResult result) {\n dialog.hide();\n in...
"public void incomingMessage(final MessageEvent event) throws Exception {\n if (event.getMessage() instanceof MappingHttpMessage) {\n MappingHttpMessage httpMessage = (MappingHttpMessage) event.getMessage();\n BaseMessage msg = null;\n Class msgType = null;\n String namespace = null;\n ...
"public Ranking<S> computeRanking(List<S> solutionSet) {\n List<S> population = solutionSet;\n int[] dominateMe = new int[population.size()];\n List<Integer>[] iDominate = new List[population.size()];\n List<Integer>[] front = new List[population.size() + 1];\n for (int i = 0; i < front.length; i++) {\n ...
"public void export(File file, org.dllearner.core.OntologyFormat format) {\n Reasoner kaon2Reasoner = KAON2Reasoner.getKAON2Reasoner(kb);\n String kaon2Format = null;\n if (format.equals(org.dllearner.core.OntologyFormat.RDF_XML))\n kaon2Format = OntologyFileFormat.OWL_RDF;\n else {\n System.e...
"public final void doReload(MaterialData data) {\n try {\n GameThread.synch(() -> {\n disposalAction.run();\n uniformLocationMap.clear();\n shader = (GLSLShader) data.getShader();\n recompile();\n rebindVariables(data);\n });\n } catch (Interrup...
"public Response postComment(UriInfo uriInfo, String id, String expand, CommentEntity model) throws Exception {\n if (model == null || model.getTitle() == null || model.getTitle().length() == 0) {\n throw new WebApplicationException(Response.Status.UNAUTHORIZED);\n }\n String authenticatedUser = Convers...
"public OverlayEdgeWrapper<V, E> next() {\n edge.we = idmap.getEdge(idmap.getEdgeId(wrappedIterator.next()), edge.ref);\n return edge;\n}\n"
"private void saveFileDetails(AudioRecorder.RecordTime currentRecordTime) {\n RecordingItem recordingItem = new RecordingItem();\n recordingItem.setName(mFile.getName());\n recordingItem.setFilePath(mFile.getPath());\n recordingItem.setLength(currentRecordTime.millis);\n recordingItem.setTime(System.curr...
"public ODocument getConfiguration() {\n return new ODocument().fromJSON(\"String_Node_Str\" + getCommonConfigurationParameters() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + stringArray2Json(ACTION.values(...
"public final boolean sameOriginallyDefinedInModule(SymbolNode otherNode) {\n if (this.getClass() == otherNode.getClass()) {\n ModuleNode thisModule = null;\n if (this instanceof OpDefNode) {\n OpDefNode thisSrc = ((OpDefNode) this).getSource();\n if (thisSrc != ((OpDefNode) other...
"public void deletePlaylist(Playlist p) {\n final long plId = p.getPlaylistId();\n log.debug(\"String_Node_Str\" + plId);\n User me = rbnb.getUserService().getMyUser();\n me.getPlaylistIds().remove(plId);\n boolean firePlaylistUpdate = false;\n synchronized (this) {\n p = playlists.get(plId);\n...
"public int getX() {\n return x;\n}\n"
"public void testLaunchWithValidRunTestView() throws Exception {\n ILaunchConfiguration configuration = mock(ILaunchConfiguration.class);\n String mode = ILaunchManager.RUN_MODE;\n ILaunch launch = mock(ILaunch.class);\n IProgressMonitor monitor = mock(IProgressMonitor.class);\n RunTestsView runTestsView...
"private ArgOrCV tryResolveRef(ComputedValue<Arg> val) {\n assert (val.isDerefCompVal());\n Arg ref = val.getInput(0);\n for (ArgOrCV v : findCongruentValues(ref)) {\n if (v.isCV()) {\n ArgCV v2 = v.cv();\n if (v2.isArrayMemberRef()) {\n return ComputedValue.derefArr...
"public void populatePayload() {\n payloadBuilder = new StringBuilder();\n payloadBuilder.append(\"String_Node_Str\" + getAppId());\n payloadBuilder.append(\"String_Node_Str\");\n payloadBuilder.append(\"String_Node_Str\" + getGroupName());\n payloadBuilder.append(\"String_Node_Str\");\n payloadBuilde...
"private FgExample getExForFts(String state1, String state2, FeatureTemplateList fts) {\n Var v1 = new Var(VarType.PREDICTED, 2, \"String_Node_Str\", Utilities.getList(\"String_Node_Str\", \"String_Node_Str\"));\n Var v2 = new Var(VarType.PREDICTED, 3, \"String_Node_Str\", Utilities.getList(\"String_Node_Str\", \...
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"String_Node_Str\");\n int i = this.nextSetBit(0);\n while (i >= 0) {\n sb.append(i);\n i = this.nextSetBit(i + 1);\n if (i >= 0)\n sb.append(\"String_Node_Str\");\n } while (i >= 0);\n sb....
"public DynamicEntity newEntity(Map<String, String> tenantId, String type) {\n JPADynamicHelper helper = new JPADynamicHelper(getEmf());\n DynamicEntity entity = null;\n try {\n entity = helper.newDynamicEntity(type);\n } catch (IllegalArgumentException e) {\n ClassDescriptor descriptor = getD...
"private void maybeSampleSyncParams() {\n long playbackPositionUs = audioTrackUtil.getPlaybackHeadPositionUs();\n if (playbackPositionUs == 0) {\n return;\n }\n long systemClockUs = System.nanoTime() / 1000;\n if (systemClockUs - lastPlayheadSampleTimeUs >= MIN_PLAYHEAD_OFFSET_SAMPLE_INTERVAL_US) ...
"public boolean onPreferenceClick(Preference preference) {\n Storage storage = PreferenceStorage.getInstance(PreferencesActivity.this);\n Cache cache = new PreferenceCache(PreferencesActivity.this);\n WidgetRepository widgetRepository = new AndroidWidgetRepository(PreferencesActivity.this);\n new PortfolioS...
"public final int getDebugColor(int x, int y) {\n if (CommonConstants.ENABLE_DEBUG_COLORS) {\n return debugColors[getIdx(x, y)];\n } else {\n return 0;\n }\n}\n"
"public MethodSpec getMethodSpec() {\n MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(\"String_Node_Str\").addAnnotation(Override.class).addModifiers(Modifier.PUBLIC, Modifier.FINAL).returns(ClassName.get(String.class));\n CodeBlock.Builder creationBuilder = CodeBlock.builder().add(\"String_Node_Str\...
"private void setScreenBrightnessMode(int mode) {\n boolean enabled = (mode == SCREEN_BRIGHTNESS_MODE_AUTOMATIC);\n if (mAutoBrightessEnabled != enabled) {\n mAutoBrightessEnabled = enabled;\n mLightSensorBrightness = -1;\n if (mHasHardwareAutoBrightness) {\n mHardware.setAutoBrigh...
"public boolean prefire() throws IllegalActionException {\n return super.prefire() && (_hasToken() || !_eventQueue.isEmpty());\n}\n"
"protected void readLine(String line, DeckCardLists deckList) {\n if (line.toLowerCase().contains(\"String_Node_Str\")) {\n sideboard = true;\n return;\n }\n if (line.startsWith(\"String_Node_Str\")) {\n return;\n }\n if (line.length() == 0) {\n emptyLinesInARow++;\n if...
"public void evaluate() throws Throwable {\n CompositeConfiguration config = (CompositeConfiguration) lcr.getConfiguration();\n Map<String, Appender> appendersMap = config.getLogger(\"String_Node_Str\").getAppenders();\n assertEquals(\"String_Node_Str\" + appendersMap.size(), 2, appendersMap.size());\n asse...
"public void error(String message) {\n getCurrentOrErrorDirectory().addError(message);\n}\n"
"private void buildUI() {\n tabDownloadTable = new TabDownloadLinks(this);\n progressBar = new TabProgress();\n statusBar = new StatusBar();\n splitpane = new JSplitPane();\n splitpane.setBottomComponent(progressBar);\n splitpane.setTopComponent(tabDownloadTable);\n splitpane.setOrientation(JSplitP...
"protected void finish() {\n try {\n if (!samRecords.isEmpty()) {\n flushContainer();\n CramIO.issueEOF(cramVersion, outputStream);\n outputStream.flush();\n if (indexer != null)\n indexer.finish();\n } catch (final RuntimeException re) {\n throw re;\n }...
"public byte[] receive(final long timeout) throws InterruptedException, TimeoutException {\n synchronized (itoaBuffer) {\n if (itoaBuffer.isEmpty()) {\n if (timeout > 0) {\n itoaBuffer.wait(timeout);\n } else {\n itoaBuffer.wait();\n }\n ...
"public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, StatCombiner<T> combiner) {\n synchronized (mLock) {\n if (intervalType < 0 || intervalType >= mIntervalDirs.length) {\n throw new IllegalArgumentException(\"String_Node_Str\" + intervalType);\n }\n fi...
"public synchronized void preloadRawTasks(boolean includeFrontMostExcludedTask) {\n int currentUserId = UserHandle.USER_CURRENT;\n updateCurrentQuietProfilesCache(currentUserId);\n mRawTasks = mSystemServicesProxy.getRecentTasks(ActivityManager.getMaxRecentTasksStatic(), currentUserId, includeFrontMostExcluded...
"protected void prepareHandlers(Context context) {\n super.prepareHandlers(context);\n addHandler(Attributes.LinearLayout.Orientation, new StringAttributeProcessor<T>() {\n public void handle(ParserContext parserContext, String attributeKey, String attributeValue, T view, ProteusView proteusView, ProteusVi...
"static private void updateFontModelWeights(List<Match> candidateMatches) {\n int w = candidateMatches.size();\n for (TextMatch m : candidateMatches) {\n m.fontModel.weight += w;\n w--;\n }\n}\n"
"public boolean breakOnOperation(AtomicOperation operation, ExecutionEntity execution) {\n boolean shouldBreak = true;\n shouldBreak &= processDefinitionId.equals(execution.getProcessDefinitionId());\n if (AT_TRANSITION.equals(breakPointSpec)) {\n shouldBreak &= transitionId.equals(execution.getTransiti...
"public String getName() {\n if (eContainer() != null && eContainer() instanceof XmlMapData) {\n return \"String_Node_Str\" + ((XmlMapData) eContainer()).getConnections().indexOf(this);\n }\n return null;\n}\n"
"public final void run() {\n if (!check.isEnabled()) {\n return;\n }\n try {\n Map<String, Optional<BigDecimal>> targetValues = targetChecker.check(check);\n if (targetValues.isEmpty()) {\n return;\n }\n DateTime now = new DateTime();\n BigDecimal warn = che...
"public void release() {\n synchronized (mService) {\n if (mContainerState == CONTAINER_STATE_FINISHING) {\n return;\n }\n mContainerState = CONTAINER_STATE_FINISHING;\n final Message msg = mHandler.obtainMessage(CONTAINER_TASK_LIST_EMPTY_TIMEOUT, this);\n mHandler.sendM...
"public ODocument getDocument() {\n IModel<ODocument> documentModel = getDocumentModel();\n return documentModel != null ? documentModel.getObject() : null;\n}\n"
"public void handleMouseWheel(GL gl, int amount, Point wheelPoint) {\n if (amount > 0) {\n DetailToOverviewTransition transition = (DetailToOverviewTransition) compareViewStateController.getState(ECompareViewStateType.DETAIL_TO_OVERVIEW_TRANSITION);\n indexOfHeatMapWrapperWithDendrogram = -1;\n ...
"private File getuserDirectory(X509Certificate x509) throws IOException {\n String dn = x509.getSubjectDN().getName();\n String dnHash = HashUtil.sha512UrlInBase64(dn);\n File userDir = new File(baseDir, dnHash);\n if (!userDir.exists()) {\n if (!userDir.mkdirs()) {\n throw new IOException...
"public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) {\n super.initialize(session);\n Descriptor xmlDescriptor = (Descriptor) getDescriptor();\n if (xmlDescriptor.hasInheritance()) {\n InheritancePolicy inheritancePolicy = xmlDescriptor.getInheritancePolicy();\n ...
"public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) {\n URI uri = null;\n HttpResponse netarkivetResponse = new HttpResponse(response);\n HttpRequest netarkivetRequest = new HttpRequest(request);\n try {\n uriResolver.lookup(netarkivetRequest, ne...
"public void preInit(FMLPreInitializationEvent event) {\n blaze_hopper = registerBlock(new BlockBlazeHopper(), \"String_Node_Str\");\n materials = registerItem(new ItemMetaDynamic(), \"String_Node_Str\");\n empty_bowls = registerItem(new ItemMetaDynamic(), \"String_Node_Str\");\n edibles = registerItem(new ...
"private void writeText(Data d) {\n writer.openTag(\"String_Node_Str\");\n int type = d.getDatatype();\n if (type == SheetData.NUMBER) {\n if (d.getText().equals(NaN) || d.isBigNumber() || d.isInfility()) {\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n ...
"private void syncGateExpansions() {\n resyncGateExpansions = false;\n for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {\n Gate gate = pipe.gates[i];\n if (gate == null) {\n continue;\n }\n GatePluggable gatePluggable = (GatePluggable) sideProperties.pluggab...
"private Consumer<WireIn> getWireInConsumer() throws IOException {\n return (metaDataWire) -> {\n try {\n readCsp(metaDataWire);\n readTid(metaDataWire);\n if (hasCspChanged(cspText)) {\n requestContext = RequestContext.requestContext(cspText);\n ...
"public static String getFilename(Uri uri) {\n File file = getFile(uri);\n if (file != null) {\n return file.getAbsolutePath();\n }\n return null;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowMan...