content stringlengths 40 137k |
|---|
"public String buildQuery(MoveLineReport moveLineReport) throws AxelorException {\n if (moveLineReport.getCompany() != null) {\n this.addParams(\"String_Node_Str\", moveLineReport.getCompany());\n }\n if (moveLineReport.getCashRegister() != null) {\n this.addParams(\"String_Node_Str\", moveLineRe... |
"public void setHex(ExportMode exportMode) {\n if (exportMode != ExportMode.HEX) {\n editor.setContentType(\"String_Node_Str\");\n if (exportMode == ExportMode.PCODE) {\n if (srcNoHex == null) {\n srcNoHex = getHilightedText(exportMode);\n }\n setText(src... |
"public Iterator getMemberValueIterator(TabularCubeHandle cubeHandle, String targetLevel, ILevelDefinition[] higherLevelDefns, Object[] values, Map appContext) throws AdapterException {\n try {\n if ((higherLevelDefns == null && values != null) || (higherLevelDefns != null && values == null) || cubeHandle == ... |
"public boolean performCheck(String permission, String worldName) {\n try {\n PermissionUser user = PermissionsEx.getUser(this.player);\n if (user == null) {\n return PermissionCheckResult.UNDEFINED;\n }\n String expression = user.getMatchingExpression(permission.toLowerCase(),... |
"private boolean isItemAccepted(ItemStack item) {\n boolean everythingNull = true;\n for (ItemStack invStack : inventory) {\n if (invStack != null) {\n if (ItemStackHelper.areStacksEqual(invStack, item, fuzzySetting)) {\n return true;\n }\n everythingNull = f... |
"public void onKillStreakEvent(KillStreakEvent event) {\n plugin.getRewardManager(event.getPlayer().getWorld()).registerKillStreak(event.getPlayer(), event.getKills());\n}\n"
|
"private void outputCSSStyles(String defaultStyleName, StringBuffer defaultStyleBuffer, Report reportDesign, ReportDesignHandle designHandle) {\n writer.openTag(HTMLTags.TAG_STYLE);\n writer.attribute(HTMLTags.ATTR_TYPE, \"String_Node_Str\");\n IStyle style;\n StringBuffer styleBuffer = new StringBuffer();\... |
"public boolean equals(Object obj) {\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n final ConnectionPermission other = (ConnectionPermission) obj;\n if (this.type != other.type)\n return false;\n if (identifier == null)\n return other.... |
"public void setValue(BindELContext ctx, Object value) {\n int idx = BindComboitemRenderer.this.getRenderedIndex(cb, nci.getIndex());\n ListModel<?> listmodel = cb.getModel();\n int idx = ((ListModelArray<Object>) listmodel).indexOf(data);\n if (listmodel instanceof ListModelArray) {\n ((ListModelArr... |
"protected void restoreWidgetValuesForESB() {\n IDialogSettings settings = getDialogSettings();\n if (settings != null) {\n String[] directoryNames = settings.getArray(STORE_DESTINATION_NAMES_ID);\n if (directoryNames != null && directoryNames.length > 0) {\n String fileName = getDefaultF... |
"private String queueCommand(final BaseCmd cmdObj, final Map<String, String> params) throws Exception {\n final CallContext ctx = CallContext.current();\n final Long callerUserId = ctx.getCallingUserId();\n final Account caller = ctx.getCallingAccount();\n if (cmdObj instanceof BaseAsyncCmd) {\n Long... |
"public boolean exportable() throws DataException {\n return this.exportable;\n}\n"
|
"public void rdb_load(ByteBuffer file, Visitor visitor) throws Exception {\n String header = readStrFromFile(file, 5);\n if (!header.equals(\"String_Node_Str\")) {\n throw new Exception(\"String_Node_Str\");\n }\n String version = readStrFromFile(file, 4);\n int rdbVersion = Integer.parseInt(versi... |
"public <T> void writeAll(Iterable<T> elements, Class<T> beanType, Writer output, String... headers) {\n setRowWriterProcessor(new BeanWriterProcessor<T>(beanType));\n try {\n if (headers.length > 0) {\n writerSettings.setHeaders(headers);\n writerSettings.setHeaderWritingEnabled(true... |
"public void focusLost(FocusEvent e) {\n String text = jsonFilePath.getText();\n if (isContextMode()) {\n ContextType contextType = ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(), true);\n text = TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalVa... |
"public long getSequence(long forWritePosition) {\n if (writePositionAndSequence == null)\n return Sequence.NOT_FOUND;\n final long sequenceValue = this.writePositionAndSequence.getVolatileValue2();\n if (sequenceValue == 0)\n return Sequence.NOT_FOUND;\n long writePositionAsCycle = toLongValu... |
"public void defineCube(CubeHandle cubeHandle) throws BirtException {\n CubeHandleUtil.defineCube(dataEngine, cubeHandle, this.sessionContext.getAppContext());\n ICubeInterceptor cubeInterceptor = CubeInterceptorFinder.find(cubeHandle);\n if (cubeInterceptor != null) {\n cubeInterceptor.preDefineCube(th... |
"private void secondWalk(int node, double x, double y, double lambda, double theta) {\n nodePositionsX[node] = x;\n nodePositionsY[node] = y;\n double dd = lambda * np[node].d;\n double gamma = theta + Math.PI;\n double freeSpace = np[node].f / children.length;\n double previous = 0;\n double currA... |
"public T endsWithIgnoreCase(String suffix) {\n Assert.parametersNotNull(\"String_Node_Str\", suffix);\n return addCrit(FilterOperator.EQUAL, Pattern.compile(suffix + \"String_Node_Str\", Pattern.CASE_INSENSITIVE));\n}\n"
|
"private void onRead(final SelectionKey key, final long approxTime) throws IOException, InterruptedException {\n final SocketChannel socketChannel = (SocketChannel) key.channel();\n final Attached attached = (Attached) key.attachment();\n if (attached == null) {\n LOG.info(\"String_Node_Str\" + socketCh... |
"private Optional<DataHubKey> findFirstDifferentResult(DataHubKey inputKey, QueryResult<OrderedRows<String, String, DataHubCompositeValue>> queryResult) {\n OrderedRows<String, String, DataHubCompositeValue> rows = queryResult.get();\n String inputKeyString = keyRenderer.keyToString(inputKey);\n while (canIter... |
"private String[] getScaledValues(String[] values, double factor) {\n AggregateFunction<String> function = AggregateFunction.forType(DataType.STRING).createSetFunction();\n double factor = (double) length / (double) values.length;\n String[] result = new String[length];\n int previous = 0;\n List<String>... |
"public void testNumericSort() {\n Integer[] x = { 3, 11, 2, 1 };\n Arrays.sort(x);\n assertEquals(2, x[1].intValue());\n assertEquals(11, x[3].intValue());\n}\n"
|
"public static Bundle getActiveGroovyBundle() {\n String version17 = \"String_Node_Str\";\n String version18 = \"String_Node_Str\";\n String version20 = \"String_Node_Str\";\n String versionToUse = version20;\n if (isGroovy20DisabledOrMissing()) {\n if (isGroovy18DisabledOrMissing()) {\n ... |
"protected <T> ICompletableFuture<T> putAsyncInternal(K key, V value, ExpiryPolicy expiryPolicy, boolean isGet, boolean withCompletionEvent) {\n ensureOpen();\n validateNotNull(key, value);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, value);\n final Data keyData = toData(key);\n final Data... |
"public void shouldInsertPaddingRecordPlusMessageOnBufferWrap() {\n final int length = 200;\n final int recordLength = align(length + HEADER_LENGTH, ALIGNMENT);\n final long tail = CAPACITY - HEADER_LENGTH;\n final long head = tail - (ALIGNMENT * 4);\n when(buffer.getLongVolatile(HEAD_COUNTER_INDEX)).the... |
"public Pair<double[], double[]> oneEval(Genotype<T> individual, int num) {\n player.setHeuristic((new NNBoardGameHeuristic(individual.getPhenotype(), featExtract)));\n BoardGamePlayer[] players = new BoardGamePlayer[] { player, opponent };\n return BoardGameUtil.playGame(MMNEAT.boardGame, players).get(0);\n}\... |
"public void drawBackgroundImage(String imageURI, byte[] imageData, float x, float y, float width, float height, float imageWidth, float imageHeight, float positionX, float positionY, int repeat) throws IOException {\n if (imageData == null || imageData.length == 0) {\n return;\n }\n org.eclipse.birt.re... |
"public boolean checkFieldsValue() {\n if (ftpHostText.getCharCount() == 0) {\n updateStatus(IStatus.ERROR, \"String_Node_Str\");\n return false;\n }\n if (ftpPortText.getCharCount() == 0) {\n updateStatus(IStatus.ERROR, \"String_Node_Str\");\n return false;\n }\n if (ftpUsern... |
"public RepositoryTable createTable(TableCreateDescriptor descriptor) throws InterruptedException, IOException {\n if (tableExists(descriptor.getName())) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", descriptor.getName()));\n }\n String hbaseTableName = RepoUtil.getHBaseTable... |
"static Endpoint read(ByteBuffer bytes) {\n Endpoint.Builder result = Endpoint.newBuilder();\n while (true) {\n ThriftField thriftField = ThriftField.read(bytes);\n if (thriftField.type == TYPE_STOP)\n break;\n if (thriftField.isEqualTo(IPV4)) {\n int ipv4 = bytes.getInt... |
"public void dropBlockAsItemWithChance(World world, int x, int y, int z, int meta, float f, int i) {\n if (!world.isRemote) {\n TileEntityCrop crop = (TileEntityCrop) world.getTileEntity(x, y, z);\n if (crop != null) {\n ArrayList<ItemStack> drops = new ArrayList<ItemStack>();\n i... |
"public void initialise() {\n for (int j = 0; j < BreakdownConfiguration.getNumberOfInitialExperiments(); j++) {\n RelativePosition point = createRandomPoint();\n MeasurementCacheResult measuredValue = cachedEnvironmentAccess.measure(point);\n cachedEnvironmentAccess.addToModel(point, measuredVa... |
"public void onMatchTopLevelClass(NullAway analysis, ClassTree tree, VisitorState state, Symbol.ClassSymbol classSymbol) {\n if (tbaseType == null) {\n tbaseType = getErasedTypeFromName(TBASE_NAME, state);\n }\n}\n"
|
"private Drawable getScaledDrawableForMimetype(FileHolder holder, Context context) {\n Drawable d = getDrawableForMimetype(holder, context);\n if (d == null) {\n return new BitmapDrawable(context.getResources(), BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_launcher_file));\n } else... |
"public Object get(String name, Scriptable start) {\n if (ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase(name)) {\n if (this.helper.getParent() != null)\n return helper.getParent().getScriptable();\n else\n throw Context.reportRuntimeError(DataResourceHandle.getInstance().g... |
"private void fillList() {\n String where = \"String_Node_Str\" + android.os.SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC, \"String_Node_Str\") + \"String_Node_Str\";\n Cursor cursor = managedQuery(Telephony.Carriers.CONTENT_URI, new String[] { \"String_Node_Str\", \"String_Node_Str\", \... |
"public ProxyDataFactory createProxyDataFactory(AttributeTypes attributeTypes) {\n return new AttributeDataProxyFactory(proxyProvider, jdbcClient, attributeTypes);\n}\n"
|
"public void runCommand(String command) {\n this.logger.log(\"String_Node_Str\" + command);\n try {\n if (!ServerThreadPool.forSpec(PoolSpec.PLUGINS).submit(() -> this.commandHandler.dispatch(command, this)).get()) {\n this.logger.log(\"String_Node_Str\" + command.split(\"String_Node_Str\")[0] +... |
"private String getString(final Tag tag) throws IOException {\n int pos = tag.text().indexOf(\"String_Node_Str\");\n final boolean fullFileRequested = pos == -1;\n if (fullFileRequested) {\n pos = tag.text().length();\n }\n final String fullyQualifiedClassName = tag.text().substring(0, pos);\n ... |
"private void testCacheInfo() {\n String fileName = getBaseDir() + \"String_Node_Str\";\n MVStore s = new MVStore.Builder().fileName(fileName).cacheSize(2).open();\n assertEquals(2, s.getCacheSize());\n MVMap<Integer, byte[]> map;\n map = s.openMap(\"String_Node_Str\");\n byte[] data = new byte[100 * ... |
"public int HTTPGetFile(String url_, String destination_, Gui gui_, String status_) throws FermeExceptionNoSpaceLeftOnDevice {\n try {\n HttpURLConnection httpCon = this.HTTPRequest(url_);\n InputStream inStrm = httpCon.getInputStream();\n if (httpCon.getResponseCode() != HttpURLConnection.HTTP_... |
"public UnitCellBoundingBox getTranslatedBbs(Vector3d translation) {\n UnitCellBoundingBox translatedBbs = new UnitCellBoundingBox(numOperatorsSg, numPolyChainsAu);\n for (int i = 0; i < numOperatorsSg; i++) {\n for (int j = 0; j < numChainsAu; j++) {\n translatedBbs.chainBbs[i][j] = new Boundin... |
"public void testGetById() throws Exception {\n testSave();\n listAll = dao.getAll();\n int size = listAll.size();\n Assert.assertEquals(1, size, DB_MUST_BE_NOT_EMPTY);\n for (Persistent p : listAll) {\n dao.delete(dao.get(p.getId()));\n }\n testDBEmpty();\n}\n"
|
"protected void performSaveAs(IProgressMonitor progressMonitor) {\n Shell shell = getSite().getShell();\n final IEditorInput input = getEditorInput();\n IDocumentProvider provider = getDocumentProvider();\n final IEditorInput newInput;\n if (input instanceof IURIEditorInput && !(input instanceof IFileEdi... |
"private void addCatchAllFormParametersArgument(final MimeType bodyMimeType, final JMethod method, final JDocComment javadoc, final JType argumentType) {\n method.param(argumentType, GENERIC_PAYLOAD_ARGUMENT_NAME);\n Map<String, List<FormParameter>> formParameters = bodyMimeType.getFormParameters();\n if (form... |
"public void testShortLine() throws IOException, StructureException {\n Structure s, ref;\n PDBFileParser pdbPars = new PDBFileParser();\n Structure s;\n try {\n s = pdbPars.parsePDBFile(is);\n } catch (Exception e) {\n is.close();\n throw new AssertionError(\"String_Node_Str\");\n ... |
"private boolean shouldAppendCharsetParameter(final String propertyValue) {\n return (!(mIsV30 && mUsesUtf8) && !VCardUtils.containsOnlyPrintableAscii(propertyValue));\n}\n"
|
"void freeChildren() throws SQLException {\n for (int i = 0; i <= entryCount; i++) {\n int childPageId = childPageIds[i];\n PageBtree child = index.getPage(childPageId);\n index.getPageStore().free(childPageId, false);\n child.freeChildren();\n }\n}\n"
|
"public List<DeploymentPolicy> retrieveDeploymentPolicies() {\n try {\n startTenantFlow();\n List<DeploymentPolicy> depPolicyList = new ArrayList<DeploymentPolicy>();\n RegistryManager registryManager = RegistryManager.getInstance();\n String[] depPolicyResourceList = (String[]) registryM... |
"public MediaFile getMediaFile(String src, Post post) {\n Cursor c = db.query(MEDIA_TABLE, null, \"String_Node_Str\" + post.getId() + \"String_Node_Str\" + src + \"String_Node_Str\", null, null, null, null);\n int numRows = c.getCount();\n c.moveToFirst();\n MediaFile mf = new MediaFile();\n if (numRows ... |
"protected void execute(CommandEvent event) {\n final User user = event.getAuthor();\n if (user == null || user.getId() == null || (!user.getId().equals(BotServerMain.BOT_CREATOR_USERID))) {\n event.replyInDM(\"String_Node_Str\" + String.valueOf(user.getId()));\n return;\n } else {\n if (e... |
"private void refreshCredentials() {\n try {\n Credentials refreshedCredentials = new Credentials();\n if (User.isSecurityEnabled()) {\n YarnTokenUtils.obtainToken(hConf, refreshedCredentials);\n }\n if (User.isHBaseSecurityEnabled(hConf)) {\n HBaseTokenUtils.obtainT... |
"public static GatewayVersion parseGatewayVersion(String version) throws Exception {\n if (\"String_Node_Str\".equals(version)) {\n return new GatewayVersion(0, 0, 0);\n } else {\n String regex = \"String_Node_Str\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = patte... |
"public static SpotifyError fromRetrofitError(RetrofitError error) {\n ErrorResponse errorResponse = null;\n try {\n errorResponse = (ErrorResponse) error.getBodyAs(ErrorResponse.class);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (errorResponse != null && errorResponse.error ... |
"public static void tearDown() {\n if (application != null) {\n application.delete();\n }\n}\n"
|
"private Node replaceCallNode(JsMessage message, Node callNode) throws MalformedException {\n checkNode(callNode, Token.CALL);\n Node getPropNode = callNode.getFirstChild();\n checkNode(getPropNode, Token.GETPROP);\n Node stringExprNode = getPropNode.getNext();\n checkStringExprNode(stringExprNode);\n ... |
"public static int getColor(final int r, final int g, final int b, final int a) {\n return (Math.min(255, Math.max(0, a)) & 0xFF) << 24 | (Math.min(255, Math.max(0, r)) & 0xFF) << 16 | (Math.min(255, Math.max(0, g)) & 0xFF) << 8 | (Math.min(255, Math.max(0, b)) & 0xFF) << 0;\n}\n"
|
"public void element(XPathFragment frag) {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n try {\n this.attributes.clear();\n String namespaceURI = frag.getNamespaceURI();\n if (namespaceURI == null) {\n namespaceURI = ... |
"public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {\n TrackBack trackback = new TrackBack(new VersionedIdentifier().withId(\"String_Node_Str\"), line, charPositionInLine, line, charPositionInLine);\n if (visitor.isDe... |
"public void onTransaction(final Transaction<Store> transaction) {\n getProjectsByIndex(Indexes.PROJECT_PROJECTFUNDINGS, id, callback, transaction);\n}\n"
|
"protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) {\n Raster source = sources[0];\n Rectangle srcRect = source.getBounds();\n int formatTag = MediaLibAccessor.findCompatibleTag(sources, dest);\n MediaLibAccessor srcAccessor = new MediaLibAccessor(source, srcRect, formatT... |
"public static InstanceProfileType getInstanceProfile(ServiceConfiguration configuration, String instanceProfileName, String effectiveUserId) throws Exception {\n InstanceProfileType retVal = null;\n boolean seenAllInstanceProfiles = false;\n String instanceProfileMarker = null;\n while (!seenAllInstancePro... |
"public Union.Right<InternalNode<K, V>, LeafNode<K, V>> split(K key, V value) {\n LeafNode<K, V> newNode = new LeafNode<K, V>(Arrays.copyOfRange(this.keys, (numKeysPerNode) / 2, numKeysPerNode), Arrays.copyOfRange(this.children, numKeysPerNode / 2, numKeysPerNode), numKeysPerNode / 2, this.parent, this.next);\n t... |
"private void pageSetup() {\n ((SyncopeApplication) getApplication()).setupNavigationPane(this, xmlRolesReader, true, version);\n feedbackPanel = new FeedbackPanel(\"String_Node_Str\");\n feedbackPanel.setOutputMarkupId(true);\n add(feedbackPanel);\n final String kind = getClass().getSimpleName().toLower... |
"protected void setupBottomButtons(Button secondaryButton, Button primaryButton) {\n secondaryButton.setText(R.string.login_text_otp);\n secondaryButton.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n if (isAdded()) {\n doAuthAction(R.string.requesting... |
"public void fireException(Throwable e) {\n LOG.debug(e);\n Logs.extreme().error(e, e);\n LOG.debug(\"String_Node_Str\" + this.getRequest().getVolumeId() + \"String_Node_Str\" + this.getRequest().getInstanceId());\n try {\n VmInstance vm = VmInstances.lookup(this.getRequest().getInstanceId());\n ... |
"public void activeRendererChanged(MultiFormRenderer multiFormRenderer, int rendererID, int previousRendererID, boolean wasTriggeredByUser) {\n if (pathInfo != null && pathInfo.isInitialized()) {\n if (multiFormRenderer == pathInfo.multiFormRenderer) {\n EEmbeddingID embeddingID = pathInfo.getEmbed... |
"private boolean onTick() {\n InvTweaksConfig config = cfgManager.getConfig();\n if (config == null) {\n return false;\n }\n InvTweaksConfig config = cfgManager.getConfig();\n GuiScreen currentScreen = getCurrentScreen();\n if (currentScreen == null || currentScreen instanceof GuiInventory) {\n... |
"private void movePackageInternal(final String packageName, final String volumeUuid, final int moveId) throws PackageManagerException {\n final UserHandle user = new UserHandle(UserHandle.getCallingUserId());\n final StorageManager storage = mContext.getSystemService(StorageManager.class);\n final PackageManag... |
"public static BigDecimal toBigDecimal(Object source) throws BirtException {\n if (source == null)\n return null;\n if (source instanceof BigDecimal) {\n return (BigDecimal) source;\n } else if (source instanceof Number) {\n String str = ((Number) source).toString();\n try {\n ... |
"public void repaint() {\n try {\n if (getBattleHexModel().isEntrance()) {\n map.repaint();\n } else {\n System.out.println(getBounds());\n map.repaint();\n }\n } catch (NullPointerException e) {\n }\n}\n"
|
"private <T> void scanSingle(MetaClassSingle<T> classMeta, DboTableMeta metaDbo) {\n if (classMeta.getProxyClass() != null)\n return;\n Class<? extends T> proxyClass = createTheProxy(classMeta.getMetaClass());\n classMeta.setProxyClass(proxyClass);\n scanFields(classMeta, metaDbo);\n alreadyScanne... |
"public void end(IReportContent report) {\n engine.complete();\n boolean isRTLSheet = false;\n String reportOrientation = report.getDesign().getReportDesign().getBidiOrientation();\n if (\"String_Node_Str\".equalsIgnoreCase(reportOrientation))\n isRTLSheet = true;\n ExcelWriter writer = new ExcelW... |
"public NewCRFBean toNewCRF(javax.sql.DataSource ds, ResourceBundle resPageMsg) throws IOException, CRFReadingException {\n String dbName = SQLInitServlet.getDBName();\n NewCRFBean ncrf = new NewCRFBean(ds, crfId);\n ncrf.setCrfId(crfId);\n StringBuffer buf = new StringBuffer();\n HSSFWorkbook wb = new H... |
"public void verifyCurrentPageHTMLWithRetry(String filepath, String url) throws Exception {\n String actual = null;\n String expected = null;\n for (int i = 0; i < PAGE_VERIFY_RETRY; i++) {\n pageSrc = getCurrentPageSource();\n inputStr = Common.readFile(filepath).replace(\"String_Node_Str\", Tes... |
"public Document createDocumentWithPublicIdentifier(String name, String publicIdentifier, String systemIdentifier) throws XMLPlatformException {\n try {\n if (null == publicIdentifier) {\n return createDocumentWithSystemIdentifier(name, systemIdentifier);\n }\n DocumentBuilder documen... |
"private void addPropertyParameters(final List<ElementParameter> listParam, final INode node, String formName, EComponentCategory category) {\n ComponentProperties props = node.getComponentProperties();\n Form form = props.getForm(formName);\n List<ElementParameter> parameters = ComponentsUtils.getParametersFr... |
"public void virtOnlyQuantityChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n p.getProduct().addAttribute(new ProductAttribute(\"String_Node_Str\", \"String_Node_Str\"));\n p.setQuantity(10L);\n when(productAdapterMock.getProductById(p.getProduct().getOwner(), p.getProduct... |
"private void exit() {\n try {\n serviceInterface.logout();\n } catch (Exception e) {\n myLogger.error(e);\n }\n WindowSaver.saveSettings();\n System.exit(0);\n}\n"
|
"public String toString() {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n sb.append(\"String_Node_Str\").append(this.jobId).append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n for (DataType param : this.paramTypes) {\n sb.append(\"String_Node_Str\").append(param);\n }... |
"private static Map<Service, Map<Capability, String>> setCapabilities() {\n Map<Service, Map<Capability, String>> capabilities = new HashMap<Service, Map<Capability, String>>();\n Map<Capability, String> dnsCapabilities = new HashMap<Capability, String>();\n dnsCapabilities.put(Capability.AllowDnsSuffixModific... |
"private LttngSyntheticEvent updateSynEvent(LttngEvent e) {\n if ((syntheticEvent == null) || (syntheticEvent.getBaseEvent() != e)) {\n syntheticEvent = new LttngSyntheticEvent(e);\n }\n ITmfTrace<?> inTrace = e.getTrace();\n LttngTraceState traceModel = traceToTraceStateModel.get(inTrace);\n synt... |
"public void setProxy(String proxyHost, String proxyPort, String proxyUsername, String proxyPassword, boolean httpProxy, boolean socksProxy, boolean httpsProxy) {\n Properties properties = System.getProperties();\n if (socksProxy && proxyHost != null && proxyPort != null) {\n if (properties.containsKey(Sal... |
"public void debug(String line) {\n if (isDebug()) {\n this.logger.info(\"String_Node_Str\" + this.prefix + line);\n toFile(Type.debug, line);\n }\n}\n"
|
"public void deleteFromTableTest1() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_No... |
"private String getXml(String filename) {\n try {\n String xmlFilePath = Script.findScript(scriptsDir, filename);\n if (xmlFilePath == null) {\n throw new Exception(\"String_Node_Str\" + filename);\n }\n try (InputStreamReader fr = new InputStreamReader(new FileInputStream(xmlF... |
"public void testSearchForTypesClass7() throws Exception {\n createUnit(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n doTestForTwoInClass(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
|
"public static void init() throws Exception {\n injector = Guice.createInjector(new LocationRuntimeModule().getInMemoryModules(), new DiscoveryRuntimeModule().getInMemoryModules(), new DataFabricModules().getInMemoryModules(), new AbstractModule() {\n protected void configure() {\n bind(MetricsColl... |
"private void accum(IntDoubleVector params, int[] batch, final Accumulator ac) {\n boolean isFullDataset = (batch.length == numExamples);\n if (isFullDataset) {\n ac.accumValue = true;\n ac.accumTrainLoss = true;\n ac.accumDevLoss = true;\n ac.accumWeight = true;\n }\n if (ac.acc... |
"public void elementGestureTest() {\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n MobileElement e = driver.findElement(MobileBy.AccessibilityId(\"String_Node_Str\"));\n e.tap(1, 1500);\n System.out.println(\"String_Node_Str\");\n MobileElement e2 = driver.findElementByClassName(\"St... |
"public void startContainerWithVolumes() throws DockerException {\n Volume volume1 = new Volume(\"String_Node_Str\");\n Volume volume2 = new Volume(\"String_Node_Str\");\n CreateContainerResponse container = dockerClient.createContainerCmd(\"String_Node_Str\").withVolumes(volume1, volume2).withCmd(\"String_Nod... |
"public boolean save() {\n FileOutputStream stream = null;\n File parent = file.getParentFile();\n if (parent != null) {\n parent.mkdirs();\n }\n try {\n stream = new FileOutputStream(file);\n yaml.dump(root, new OutputStreamWriter(stream, \"String_Node_Str\"));\n return true;... |
"public int length() {\n return PDU_LENGTH;\n}\n"
|
"public AuthenticateResponse loginUser(Credentials credentials, URL authenticationUrl) {\n try {\n String requestBody = AuthenticateRequest.userLogin(credentials).toJson();\n return authenticate(authenticationUrl, requestBody);\n } catch (Exception e) {\n return AuthenticateResponse.from(new ... |
"public static List<TdTable> getTables(Catalog catalog) {\n return TableHelper.getTables(catalog.getOwnedElement());\n}\n"
|
"public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n super.touchUp(event, x, y, pointer, button);\n if (draggingMode == DraggingModes.DRAGGING_ACTOR) {\n Ctx.project.getUndoStack().add(new UndoPosition(selActor, new Vector2(undoOrg)));\n } else if (draggingMode == Draggi... |
"public void onCreate() {\n super.onCreate();\n preferences.init(this);\n dataSource.openAsync(this);\n if (BuildConfig.DEBUG) {\n StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());\n StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().dete... |
"RangerAccessResult buildResult(boolean allowed, boolean audited, String reason) {\n RangerAccessResult result = _authorizer.createAccessResult(_request);\n if (result != null) {\n result.setIsAllowed(allowed);\n result.setReason(reason);\n result.setIsAudited(audited);\n }\n return res... |
"public JSONObject collect() throws Exception {\n JSONObject finalToken = new JSONObject();\n JSONObject mergedData = new JSONObject();\n IPreferenceStore preferenceStore = RepositoryPlugin.getDefault().getPreferenceStore();\n String records = preferenceStore.getString(PREF_TOS_JOBS_RECORDS);\n JSONObjec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.