content
stringlengths
40
137k
"final ReadWriteListener.ReadWriteEvent read_internal(final UUID serviceUuid, final UUID characteristicUuid, final UUID descriptorUuid, final Type type, DescriptorFilter descriptorFilter, final ReadWriteListener listener) {\n final ReadWriteEvent earlyOutResult = serviceMngr_device().getEarlyOutEvent(serviceUuid, ch...
"public Object updateTopicView(PrestoContext context, TopicView topicView, boolean returnParent) {\n PrestoContextRules rules = getPrestoContextRules(context);\n Status status = new Status();\n topicView = processor.preProcessTopicView(topicView, rules, status);\n if (status.isValid()) {\n PrestoTopi...
"private synchronized Object getObject(Backend.Identity id) {\n WeakReference<Object> objRef = idToObject.get(id);\n Object obj = objRef == null ? null : objRef.get();\n if (obj == null) {\n try {\n obj = objectClass.newInstance();\n } catch (Exception e) {\n throw new Runti...
"public void export(TrackReader trackReader, TrackExporterConfiguration config, File file, String title) throws IOException {\n this.trackReader = trackReader;\n this.config = config;\n this.writer = new BufferedWriter(new FileWriter(file));\n this.title = title;\n boolean trackStarted = false;\n try ...
"public void testInternalPrecision() {\n long millis = 1283895273475L;\n Time today = new Time(millis);\n Time after = new Time(today.getTime() + 1);\n Time before = new Time(today.getTime() - 1);\n assertTrue(after.after(today));\n assertTrue(before.before(today));\n}\n"
"private soot.Local getArrayInitLocal(polyglot.ast.ArrayInit arrInit, polyglot.types.Type lhsType) {\n soot.Local local = generateLocal(lhsType);\n soot.jimple.NewArrayExpr arrExpr = soot.jimple.Jimple.v().newNewArrayExpr(((soot.ArrayType) local.getType()).getElementType(), soot.jimple.IntConstant.v(arrInit.eleme...
"private void createAnalyzedColumnSetsSection(String mainTitle, String description) {\n columnsComparisonSection = masterPage.createSection(form, parentComp, mainTitle, description);\n Composite sectionClient = toolkit.createComposite(columnsComparisonSection);\n sectionClient.setLayout(new GridLayout());\n ...
"private static String format(Object value) {\n if (value instanceof Double || value instanceof Float) {\n return DECIMAL_FORMAT.format(value);\n } else {\n return value.toString();\n }\n}\n"
"public void drawNode(PoincareNode node, int mode) {\n float[] size = new float[2];\n if (node != this.getCenteredNode()) {\n size = getMetric(node.getPosition(), nodeSize);\n }\n int iPickingID = pickingManager.getPickingID(iUniqueID, EPickingType.DATAW_NODE, node.iComparableValue);\n gl.glPushNa...
"public long estimatedRemainingInstances() {\n long baseEstimatedRemainingInstances = baseStream.estimatedRemainingInstances();\n if (baseEstimatedRemainingInstances < 0) {\n return baseEstimatedRemainingInstances;\n }\n long numRemaining = (baseEstimatedRemainingInstances * (numPartitions - 1)) / (n...
"void endFile() {\n super.endFile();\n if (!preferLineBreakAtEndOfFile) {\n return;\n }\n if (lineLength > lineLengthThreshold / 2) {\n append(\"String_Node_Str\");\n startNewLine();\n } else if (prevCutPosition > 0) {\n code.setCharAt(prevCutPosition, ' ');\n lineStart...
"public synchronized void update() {\n super.update();\n Arrays.fill(marks, false);\n content.setPosition(0, 0, 0, getSize());\n content.update1stStep();\n content.update2ndStep();\n for (int i = 0; i < marks.length; i++) {\n boolean mark = marks[i];\n if (!mark) {\n setSlot(i...
"private void checkState() {\n Bundle[] bundles = context.getBundleContext().getBundles();\n List<String> bundleFailures = new ArrayList<String>();\n List<String> fragmentFailures = new ArrayList<String>();\n for (Bundle bundle : bundles) {\n if (requiredBundles.contains(bundle.getSymbolicName())) {\...
"private void readConfigFileLocked(XmlPullParser parser) {\n final PackageManager pm = getContext().getPackageManager();\n try {\n int type;\n while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) {\n ;\n }\n if (type != XmlPullParse...
"public ProfessorDao getProfessorDao() {\n if (professorDao == null) {\n professorDao = new SQLProfessorDao(new ProfessorsRemoveBehavior(this, new SimpleRemoveBehavior<ProfessorEntity>()));\n }\n return professorDao;\n}\n"
"public static ClassInfo getMethodNamesAlreadyExists(IFile javaFile) throws Exception {\n ClassInfo classInfo = new ClassInfo();\n List<MethodInfo> methodStringInfos = new ArrayList<MethodInfo>();\n boolean enabled = Activator.getDefault().getPreferenceStore().getBoolean(Preference.TestMethodGen.ENABLE);\n ...
"protected Control createContents(Composite parent) {\n Composite mainComposite = new Composite(parent, SWT.NONE);\n mainComposite.setLayout(new GridLayout());\n mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n Label header = new Label(mainComposite, SWT.WRAP);\n header.setText(DefaultMes...
"public Iterator<E> iterator() {\n return AbstractMapBasedSet.this.map().keyIterator();\n}\n"
"private boolean run() {\n try {\n project.setTopLevelLogger(exec.getExecLogger());\n exec.info(\"String_Node_Str\");\n project.initialize();\n MethodInfo largestMethod = project.getWCETProcessorModel().getMethodCache().checkCache();\n int minWords = MiscUtils.bytesToWords(largestM...
"public void getList() throws Exception {\n logTestName(logger);\n Client client = createAuthenticatedHTTPClient();\n WebResource discoveryRequest = client.resource(discoveryApiUrl).path(InformationService.DOCTYPE);\n SoaNodeInformations soaNodes = discoveryRequest.get(SoaNodeInformations.class);\n Asser...
"public static void main(String[] args) {\n long[] seeds = { 11, 21, 31, 41, 51, 61, 71, 81, 91, 101 };\n double[] cs = { 0.001, 0.01, 0.1, 1, 10, 100, 1000 };\n int[] depths = { 1, 2, 3 };\n int[] depths2 = { 1, 2, 3 };\n int[] iterations = { 0, 2, 4, 6 };\n createAffiliationPredictionDataSet(1);\n ...
"public static String getPKGNameFromAddr(Context cxt, String localIP, int localPort, String remoteIP, int remotePort) {\n if (AppNameQueryEngine.isValidQuery(remoteIP, remotePort, localPort) == false)\n return null;\n String knownService = AppNameQueryEngine.queryServiceByPort(remotePort);\n if (knownSe...
"public void convert(Trait parent, String path, List<ABCContainerTag> abcTags, ABC abc, boolean isStatic, ScriptExportMode exportMode, boolean makePackages, int scriptIndex, int classIndex, NulWriter writer, List<String> fullyQualifiedNames, boolean parallel) throws InterruptedException {\n if (!parallel || traits.s...
"public SubtitleOutputBuffer dequeueOutputBuffer() throws SubtitleDecoderException {\n if (availableOutputBuffers.isEmpty()) {\n return null;\n }\n while (!queuedInputBuffers.isEmpty() && queuedInputBuffers.peek().timeUs <= playbackPositionUs) {\n SubtitleInputBuffer inputBuffer = queuedInputBuff...
"public void socRemoveDef() {\n if (!superProxy.subClasses.remove(this)) {\n throw DBLogger.newFatalInternal(\"String_Node_Str\");\n }\n}\n"
"private void write(MDSKey id, BusinessMetadataRecord record) {\n Put put = new Put(id.getKey());\n put.add(Bytes.toBytes(KEYVALUE_COLUMN), Bytes.toBytes(record.getKey().toLowerCase() + KEYVALUE_SEPARATOR + record.getValue().toLowerCase()));\n put.add(Bytes.toBytes(CASE_INSENSITIVE_VALUE_COLUMN), Bytes.toBytes...
"protected void LRD(String path, Object item) {\n if (clude) {\n return;\n }\n int isFilter = 0;\n for (String p : items) {\n System.out.println(p + \"String_Node_Str\" + path);\n if (!(p.equals(path) || path.startsWith((p + \"String_Node_Str\")) || p.startsWith(path + \"String_Node_Str...
"protected DepTreebank decode(SentenceCollection sentences, Map<String, Double> result) {\n Map<String, Integer> cwDeltaCounts = new HashMap<String, Integer>();\n for (Entry<String, Double> entry : result.entrySet()) {\n String zimplVar = entry.getKey();\n Double value = entry.getValue();\n S...
"public void stop(BundleContext context) throws Exception {\n if (jobListener != null) {\n ProxyRepositoryFactory.getInstance().removePropertyChangeListener(jobListener);\n }\n plugin = null;\n super.stop(context);\n}\n"
"private void startFlushingSpeechItems(Object callerIdentity) {\n synchronized (mFlushedObjects) {\n if (callerIdentity == null) {\n mFlushAll += 1;\n } else {\n mFlushedObjects.add(callerIdentity);\n }\n }\n}\n"
"private int getPhoneTypeFromNetworkType(int phoneId) {\n String mode = getTelephonyProperty(phoneId, \"String_Node_Str\", null);\n if (mode != null && !mode.isEmpty()) {\n return TelephonyManager.getPhoneType(Integer.parseInt(mode));\n }\n return TelephonyManager.PHONE_TYPE_NONE;\n}\n"
"public Edge next(PeekingIterator<Entry<Key, Value>> iterator) {\n Entry<Key, Value> kv = iterator.next();\n String[] parts = kv.getKey().getColumnQualifier().toString().split(Constants.ID_DELIM);\n String label = (new String(kv.getValue().get())).split(Constants.ID_DELIM)[1];\n AccumuloEdge edge;\n if (...
"public void doWork(Window dialog, MouseEvent event) {\n AddGroupDialog addGroupDialog = (AddGroupDialog) dialog;\n String groupName = groupNameField.getText().trim();\n if (\"String_Node_Str\".equals(groupName)) {\n JOptionPane.showMessageDialog(null, \"String_Node_Str\");\n } else if (!FileUtil.dir...
"private void submitSearch(final String query, boolean delayed) {\n mSearchQuery = query;\n if (delayed) {\n mHandler.postDelayed(new Runnable() {\n public void run() {\n if (StringUtils.equals(query, mSearchQuery)) {\n submitSearch(query, false);\n ...
"public boolean isPreserveSourceData() {\n return readDataVersion.isOnlyReader();\n}\n"
"protected void decorate() {\n int start = roomExit.top * WIDTH + roomExit.left + 1;\n int end = start + roomExit.width() - 1;\n for (int i = start; i < end; i++) {\n if (i != exit && map[i] == Terrain.WALL) {\n map[i] = Terrain.WALL_DECO;\n map[i + WIDTH] = Terrain.WATER;\n ...
"public void drawDocumentBackground(String bgcolor, String backgroundImageUrl) {\n writer.openTag(\"String_Node_Str\");\n if (backgroundImageUrl != null && backgroundHeight == null && backgroundWidth == null) {\n byte[] backgroundImageData = EmitterUtil.getImageData(backgroundImageUrl);\n drawDocume...
"public static String getCharset(String contentType) {\n Matcher matcher = patternForCharset.matcher(contentType);\n if (matcher.find()) {\n String charset = matcher.group(1);\n if (Charset.isSupported(charset)) {\n return charset;\n }\n }\n}\n"
"public void deleteByKey(K key) {\n Map<String, String> familyMap = this.cassandraMapping.getFamilyMap();\n deleteColumn(key, familyMap.values().iterator().next(), null);\n}\n"
"protected void generateValue() {\n if (inconsistent_state || converter == null)\n return;\n conjuction = chain.stream().filter(g -> g.on.get()).map(g -> g.chained.getValue()).filter(ISNTØ).map(g -> converter.apply(g._2, g._1)).reduce(Predicate::and).orElse(ALL);\n if (onFilterChange != null)\n o...
"public List<AddressTx> insertOut(IDb db, Tx txItem) {\n String existSql = \"String_Node_Str\";\n String updateHDAccountIdSql = \"String_Node_Str\";\n String queryHDAddressSql = \"String_Node_Str\";\n String updateHDAddressIssuedSql = \"String_Node_Str\";\n String queryPrevTxHashSql = \"String_Node_Str\"...
"public void open() {\n CellServerState state = editor.getCellServerState();\n AudioTreatmentComponentServerState compState = (AudioTreatmentComponentServerState) state.getComponentServerState(AudioTreatmentComponentServerState.class);\n if (state == null) {\n return;\n }\n originalGroupId = state...
"public void updateSearchPos() {\n searchPos.setText((foundPos + 1) + \"String_Node_Str\" + found.size());\n ScriptPack pack = found.get(foundPos);\n setAbc(pack.abc);\n decompiledTextArea.setScript(pack, swf.abcList);\n hilightScript(found.get(foundPos));\n decompiledTextArea.setCaretPosition(0);\n ...
"public FormInstance parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException {\n this.checkNode(\"String_Node_Str\");\n String fixtureId = parser.getAttributeValue(null, \"String_Node_Str\");\n if (fixtureId == null) {\n throw new InvalidStructure...
"public void onBrowserEvent(Event event) {\n MenuItem item = findItem(DOM.eventGetTarget(event));\n switch(DOM.eventGetType(event)) {\n case Event.ONCLICK:\n {\n FocusPanel.impl.focus(getElement());\n if (item != null) {\n doItemAction(item, true,...
"protected void readField(int version, int filedId, DataInputStream in, ClassLoader loader) throws IOException {\n switch(filedId) {\n case FIELD_NAME:\n name = IOUtil.readString(in);\n break;\n case FIELD_X:\n x = new DimensionType();\n x.readObject(in);\n ...
"public void ensureApplicationCreated() {\n if (isApplicationCreated()) {\n synchronized (this) {\n try {\n application.onCreate();\n if (receivers != null && receivers.size() > 0) {\n for (ResolveInfo resolveInfo : receivers) {\n ...
"Object handleInvocation(Object mock, int mockAccess, String mockClassDesc, String mockNameAndDesc, String genericSignature, boolean withRealImpl, Object[] args) throws Throwable {\n mock = configureMatchingOnMockInstanceIfSpecified(mock);\n ExpectedInvocation invocation = new ExpectedInvocation(mock, mockAccess,...
"public static it.acubelab.batframework.data.Annotation translateAnnotation2BatAnnotation(Annotation annotation) {\n int wikiId = -1;\n if (annotation instanceof DisambiguatedAnnotation) {\n wikipediaTitle = dbpediaApi.dbpediaToWikipedia(((DisambiguatedAnnotation) annotation).getUri().replace(\"String_Node...
"public static double getHoursSpentTotal(IAtsObject atsObject, IStateToken state) throws OseeCoreException {\n double hours = 0.0;\n if (atsObject instanceof IAtsWorkItem) {\n IAtsWorkItem workItem = (IAtsWorkItem) atsObject;\n hours = getHoursSpentTotalSMAState(hours, workItem) + getHoursSpentFromT...
"public float score() {\n float coordFactor = (float) (matchNumCells + 1) / (nClauses + 1);\n float distFactor = similarity.sloppyFreq(matchDist) / (nClauses + 1);\n return matchTotalScore * (coordFactor + distFactor) * query.getBoost();\n}\n"
"void renderHorizontalAxisByType(ComputationContext context, double dXEnd, double dZEnd, double dZ, double dStaggeredLabelOffset) throws ChartException {\n final int iDirection = sc.getDirection() == IConstants.BACKWARD ? -1 : 1;\n IAxisTypeComputation computation = createAxisTypeComputation(context);\n comput...
"public void onPlayerRespawn(final PlayerRespawnEvent event) {\n final Player player = event.getPlayer();\n final String spawn = ConfigEnum.GSPAWN.getString();\n Location loc = null;\n String worldName = player.getWorld().getName();\n final Environment worldEnv = player.getWorld().getEnvironment();\n ...
"public Operation getBackupOperation() {\n return new CompareAndRemoveBackupOperation(proxyId, dataKey, idMap.keySet());\n}\n"
"public int getWidgetLeft(Widget w) {\n checkWidgetParent(w);\n return DOM.getAbsoluteLeft(w.getElement()) - DOM.getAbsoluteLeft(getElement());\n}\n"
"private String getAlias(String colName, DateGrain dateAggregationType) {\n if (dbms().supportAliasesInGroupBy()) {\n return \"String_Node_Str\" + unquote(colName) + dateAggregationType.getName() + \"String_Node_Str\";\n } else {\n return \"String_Node_Str\";\n }\n}\n"
"private boolean checkInvokeWithView(Method method) {\n Class<?>[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length == 0) {\n return false;\n } else if (parameterTypes.length == paramterNum) {\n if (paramterClass.length == parameterTypes.length) {\n for (int i =...
"private TreeNode createNode(final EntityTreeNode entityTreeNode, final Deque<String> nodeNumberChain) {\n entityTreeNode.setField(NODE_NUMBER_FIELD, TreeNumberingServiceImpl.convertCollectionToString(nodeNumberChain));\n List<EntityTreeNode> childs = entityTreeNode.getChildren();\n TreeDataType entityType = d...
"public <T> CompletableFuture<ArangoCursor<T>> queryAsync(final String query, final Map<String, Object> bindVars, final AqlQueryOptions options, final Class<T> type) throws ArangoDBException {\n final Request request = new Request(name, RequestType.POST, ArangoDBConstants.PATH_API_CURSOR);\n request.setBody(seria...
"private int growCapacity(int newSize) {\n return newSize + (newSize >> 1);\n}\n"
"public void execute() {\n antProject = AntUtils.createProject();\n boolean hasDbUnit = projectContainsPluginArtifact(\"String_Node_Str\");\n if (hasDbUnit) {\n log(\"String_Node_Str\");\n installSampleData();\n }\n if (project.getPackaging().equals(\"String_Node_Str\") || (project.getPacka...
"static boolean isJUnitTestMethod(JMethod method, boolean acceptArgs) {\n if (!method.getName().startsWith(\"String_Node_Str\")) {\n return false;\n }\n if (!method.isPublic()) {\n return false;\n }\n return acceptArgs || method.getParameters().length == 0 && !acceptArgs;\n}\n"
"public void testGetMaps() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getMaps().get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"public String execute(String input) {\n if (input == null) {\n return null;\n }\n if (length != -1) {\n int begin = 0;\n while (input.charAt(begin) <= ' ') {\n begin++;\n }\n }\n return input.trim();\n}\n"
"private TypeDeclaration evalDeclSpecifier(IASTDeclSpecifier declSpecifier) throws DOMException {\n if (declSpecifier instanceof IASTCompositeTypeSpecifier) {\n IASTCompositeTypeSpecifier compositeTypeSpecifier = (IASTCompositeTypeSpecifier) declSpecifier;\n print(\"String_Node_Str\");\n TypeDec...
"public boolean nextKeyValue() throws IOException {\n if (!it.hasNext())\n return false;\n final VariantContext v = codec.decode(line);\n Integer chromIdx = contigDict.get(v.getChr());\n if (chromIdx == null)\n chromIdx = (int) MurmurHash3.murmurhash3(v.getChr(), 0);\n key.set((long) chromI...
"public void onChange(ListDataEvent event) {\n if (_model instanceof ListSelectionModel) {\n ListSelectionModel smodel = (ListSelectionModel) _model;\n setSelectedIndex(smodel.getMinSelectionIndex());\n }\n if (event.getType() != ListDataEvent.SELECTION_CHANGED) {\n postOnInitRender();\n ...
"String evaluatePropertyBindingExpr(String expr) throws BirtException {\n Object result = JavascriptEvalUtil.evaluateScript(null, jsScope, expr, \"String_Node_Str\", 0);\n return result == null ? null : result.toString();\n}\n"
"public static byte[] getCodeTweakFile(String filename) throws IOException {\n InputStream is = FileFunctions.class.getResourceAsStream(\"String_Node_Str\" + filename);\n byte[] buf = new byte[is.available()];\n int offs = 0, read = 0;\n while (offs < buf.length && (read = is.read(buf, offs, buf.length - of...
"private ITreeContextualAction getAction(RepositoryNode obj) {\n final boolean isCDC = isLinkCDCNode(obj);\n final ERepositoryObjectType nodeType = (ERepositoryObjectType) obj.getProperties(EProperties.CONTENT_TYPE);\n for (ITreeContextualAction current : contextualsActions) {\n if (current.getClassForD...
"public void onErrorResponse(VolleyError error) {\n updateRefreshMap(StatsViewType.TOP_AUTHORS, -1);\n AppLog.e(T.STATS, \"String_Node_Str\");\n}\n"
"private void setupWordViewsTextAndColor(final SuggestedWords suggestedWords, final int countInStrip) {\n for (int positionInStrip = 0; positionInStrip < countInStrip; ++positionInStrip) {\n mWordViews.get(positionInStrip).setText(null);\n if (SuggestionStripView.DBG) {\n mDebugInfoViews.get...
"public static long write(final KeyValue kv, final DataOutput out) throws IOException {\n int length = kv.getLength();\n out.writeInt(length);\n out.write(kv.getBuffer(), kv.getOffset(), length);\n return (long) length + Bytes.SIZEOF_INT;\n}\n"
"public void createMissingRolesWithPermissionForProjects(Map<Integer, Map<RoleAndPermission, Set<Permission>>> r) {\n for (Entry<Integer, Map<RoleAndPermission, Set<Permission>>> projIdToRolesAndPermissions : r.entrySet()) {\n int projectId = projIdToRolesAndPermissions.getKey();\n Set<String> currentR...
"private String buildUrl(String url) {\n URI uri = URI.create(url);\n StringBuilder buildedUrl = new StringBuilder();\n if (uri.getScheme() != null) {\n buildedUrl.append(uri.getScheme());\n buildedUrl.append(\"String_Node_Str\");\n }\n if (uri.getAuthority() != null) {\n buildedUrl....
"public void addEndpoint(int index, Endpoint endpoint) {\n endpoints.get(currentSetting)[index - 1] = endpoint;\n}\n"
"public boolean update(Profile profile) throws PersistenceException {\n LOGGER.debug(\"String_Node_Str\" + profile);\n if (profile == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n LOGGER.debug(\"String_Node_Str\");\n ResultSet rs;\n String sqlString;\n PreparedStatement stm...
"private void createNewDataSet() {\n List existingDataSets = getDataSets();\n DefaultDataSetWizard wizard = new DefaultDataSetWizard();\n wizard.setWindowTitle(Messages.getString(\"String_Node_Str\"));\n WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard);...
"private static int parseHTTPCode(String str) throws IOException {\n if (str == null)\n throw new IOException(\"String_Node_Str\");\n StringTokenizer tokenizer = new StringTokenizer(str, \"String_Node_Str\");\n String token;\n if (!tokenizer.hasMoreTokens())\n throw new IOException();\n tok...
"public WishlistDataCursor queryWishlistDataId(long id) {\n String[] wdColumns = null;\n String wdSelection = \"String_Node_Str\" + S.COLUMN_WISHLIST_DATA_ID + \"String_Node_Str\";\n String[] wdSelectionArgs = new String[] { String.valueOf(id) };\n String wdGroupBy = null;\n String wdHaving = null;\n ...
"private void loadArchives(Path rootDirectory) {\n if (!Files.exists(rootDirectory) || !Files.isDirectory(rootDirectory)) {\n log.warn(\"String_Node_Str\", rootDirectory.toString());\n return;\n }\n SecurityContextImpl adminContext = new SecurityContextImpl();\n Set<SimpleGrantedAuthority> aut...
"public void processRequest() throws Exception {\n resetPanel();\n panel.setStudyInfoShown(false);\n panel.setOrderedData(true);\n FormProcessor fp = new FormProcessor(request);\n String module = fp.getString(MODULE);\n session.setAttribute(MODULE, module);\n String action = request.getParameter(\"...
"public static ItemStack extractItemsByRecipe(IEnergySource energySrc, BaseActionSource mySrc, IMEMonitor<IAEItemStack> src, World w, IRecipe r, ItemStack output, InventoryCrafting ci, ItemStack providedTemplate, int slot, IItemList<IAEItemStack> aitems, Actionable realForFake) {\n if (energySrc.extractAEPower(1, Ac...
"public Content get(String path, ContentKey key) {\n Collection<String> servers = cluster.getRandomServers();\n for (String server : servers) {\n ClientResponse response = null;\n try {\n setThread(path);\n response = query_client.resource(HubHost.getScheme() + server + \"Strin...
"public static void registerSteamPower() {\n SteamcraftRegistry.addCategory(\"String_Node_Str\");\n SteamcraftRegistry.addResearch(\"String_Node_Str\", \"String_Node_Str\", new BookPageItem(\"String_Node_Str\", \"String_Node_Str\", new ItemStack(BOILER.getBlock())), new BookPageCrafting(\"String_Node_Str\", \"Str...
"public void mutate(FloatBuffer data, double[] min, double[] max, int[] dim) {\n data.clear();\n for (int i = 0; i < dataSizeX; i++) for (int j = 0; j < dataSizeY; j++) {\n double x0 = 2 * PI * i / dataSizeX;\n double x1 = 2 * PI * j / dataSizeY;\n data.put((float) (1000 * (abs(sin(x0 + w * f...
"protected Response setOrAddAttribute(String persistenceUnit, String type, String key, String attribute, HttpHeaders hh, UriInfo ui, URI baseURI, InputStream in) {\n PersistenceContext app = getPersistenceFactory().get(persistenceUnit, baseURI, null);\n if (app == null || app.getClass(type) == null) {\n if...
"private boolean onAppsSelected() {\n mToolbar.setTitle(R.string.nav_apps);\n Fragment frag = new AppsListFragment();\n setFragment(frag, true);\n}\n"
"public byte[] getLastRender() {\n try {\n HttpURLConnection httpCon = this.HTTPRequest(this.getPage(\"String_Node_Str\"));\n InputStream inStrm = httpCon.getInputStream();\n if (httpCon.getResponseCode() != HttpURLConnection.HTTP_OK) {\n this.log.debug(\"String_Node_Str\" + httpCon.g...
"private void connect_private(BleTransaction.Auth authenticationTxn, BleTransaction.Init initTxn, final boolean isReconnect) {\n if (is_internal(INITIALIZED)) {\n getManager().ASSERT(false, \"String_Node_Str\");\n return;\n }\n BleTransaction.Auth auth = authenticationTxn != null ? authentication...
"public static void initBootstrappers() {\n for (Bootstrapper bootstrap : BootstrapperDiscovery.getBootstrappers()) {\n try {\n Class<ComponentId> compType;\n String bc = bootstrap.getClass().getCanonicalName();\n Bootstrap.Stage stage = bootstrap.getBootstrapStage();\n ...
"private void handleConnectorException(ServerContext context, Request request, ConnectorException exception, String resourceId, JsonValue before, JsonValue after, ResultHandler<?> handler, ActivityLogger connectorExceptionActivityLogger) {\n String message = MessageFormat.format(\"String_Node_Str\", request.getReque...
"public static int expand(OPT_IR ir) {\n OPT_PhysicalRegisterSet phys = ir.regpool.getPhysicalRegisterSet();\n for (OPT_Instruction next, p = ir.firstInstructionInCodeOrder(); p != null; p = next) {\n next = p.nextInstructionInCodeOrder();\n p.setmcOffset(-1);\n p.scratchObject = null;\n ...
"protected void updateDependencies(IProgressMonitor monitor, IProcessor processor, Model projectModel) throws Exception {\n if (!isUpdateDependencies()) {\n return;\n }\n IFile basePomFile = getBasePomFile();\n if (isStandardJob() && basePomFile != null && basePomFile.getLocation().toFile().exists())...
"public void on_update(int downloaded_size) {\n Log.i(\"String_Node_Str\", Long.toString(Thread.currentThread().getId()));\n Log.i(\"String_Node_Str\", Integer.toString(downloaded_size));\n Log.i(\"String_Node_Str\", Integer.toString(fd2.get_file_size()));\n progress_bar.setMax(fd2.get_file_size());\n pr...
"void grantUriPermissionLocked(int callingUid, String targetPkg, Uri uri, int modeFlags, ActivityRecord activity) {\n modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n if (modeFlags == 0) {\n return;\n }\n grantUriPermissionUncheckedLocked(targetUid, tar...
"public String toString() {\n return getClass().getSimpleName() + \"String_Node_Str\" + cell + \"String_Node_Str\" + ((component != null) ? component.getClass().getName() : \"String_Node_Str\") + \"String_Node_Str\" + window + \"String_Node_Str\" + super.toString();\n}\n"
"protected boolean needRepeat() {\n ITableContent table = (ITableContent) content;\n if (table != null && table.isHeaderRepeat()) {\n IContent header = (IContent) table.getHeader();\n if (header != null) {\n return true;\n }\n }\n return false;\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.frag_simple_pie, container, false);\n mChart = (PieChart) v.findViewById(R.id.pieChart1);\n mChart.setDescription(\"String_Node_Str\");\n Typeface tf = Typeface.createFro...
"public StaticRouteResponse createStaticRouteResponse(StaticRoute result) {\n StaticRouteResponse response = new StaticRouteResponse();\n response.setId(result.getUuid());\n if (result.getVpcId() != null) {\n Vpc vpc = ApiDBUtils.findVpcById(result.getVpcId());\n if (vpc != null) {\n r...