content stringlengths 40 137k |
|---|
"private int dmaTransferPPUOnce(int fromBank, int fromAddress, int toBank, int toAddress) {\n int size = 0;\n int tmp = 0;\n if (transferMode == 0x0) {\n tmp = Core.mem.get(Size.BYTE, fromBank, fromAddress);\n Core.mem.set(Size.BYTE, toBank, toAddress, tmp);\n size = 1;\n } else if (tra... |
"protected void initializeDefaultPreferences(IPreferenceStore store) {\n ValgrindCommand valCommand = new ValgrindCommand();\n try {\n store.setDefault(ValgrindPreferencePage.VALGRIND_PATH, valCommand.whichValgrind());\n } catch (IOException e) {\n store.setDefault(ValgrindPreferencePage.VALGRIND... |
"public void handleMessage(Message msg) {\n progress.dismiss();\n showApplications();\n}\n"
|
"public void engineUpdate() {\n final ItemStack stack = getStackInSlot(0);\n if (stack != null) {\n LiquidStack liquid = LiquidContainerRegistry.getLiquidForFilledItem(stack);\n if (liquid == null && heat > IDEAL_HEAT) {\n liquid = IronEngineCoolant.getLiquidCoolant(stack);\n }\n ... |
"private void doFinish(BuildInfoHolder infoHolder, IProgressMonitor monitor) throws CoreException {\n try {\n monitor.beginTask(\"String_Node_Str\" + infoHolder.appName, 2);\n monitor.worked(1);\n monitor.setTaskName(\"String_Node_Str\");\n newProject = RhodesProjectSupport.createProject(... |
"public static CategoricalPercentageRankColumnModel create(final Object category, final CategoricalTable<?> table) {\n final CategoryProperty<?> property = table.getCategoryDescriptions().getCategoryProperty(category);\n String catName = property.getCategoryName();\n IFloatFunction<IRow> data = new AFloatFunct... |
"public boolean process(Set<? extends TypeElement> elements, RoundEnvironment env) {\n Messager messager = processingEnv.getMessager();\n try {\n Map<String, List<String>> classes = new HashMap<String, List<String>>();\n for (TypeElement te : elements) {\n for (Element e : env.getElements... |
"public PluginStep doStep(PluginStep step, DownloadLink parameter) {\n DownloadLink downloadLink = null;\n try {\n logger.info(\"String_Node_Str\" + step);\n downloadLink = (DownloadLink) parameter;\n switch(step.getStep()) {\n case PluginStep.STEP_WAIT_TIME:\n reque... |
"public static void reloadViewers(SavesReloadEvent event) {\n for (Viewer viewer : viewers.values()) {\n Bukkit.getScheduler().cancelTask(viewer.getTask());\n }\n viewers.clear();\n FileConfiguration saves = DenizenAPI.getCurrentInstance().getSaves();\n if (saves.contains(\"String_Node_Str\"))\n ... |
"public void push(Csar csar, String username, String password, String remoteBranch) {\n Path archiveGitPath = csarRepositry.getExpandedCSAR(csar.getName(), csar.getVersion());\n RepositoryManager.push(archiveGitPath, username, password, remoteBranch);\n}\n"
|
"protected synchronized Class<?> findClass(String className) throws ClassNotFoundException {\n if (className == null) {\n throw new ClassNotFoundException(\"String_Node_Str\", new NullPointerException());\n }\n if (isInStandardJavaPackage(className)) {\n throw new ClassNotFoundException(className... |
"private IndexOutput wrapOutput(String name) throws IOException {\n return new CompressedIndexOutput(name, _directory, _compression, _writingBlockSize);\n}\n"
|
"private ScrollView carregaBotoesItens() {\n List<Letra> itensDesejados = this.configuracao.itensDesejados();\n ScrollView layout = (ScrollView) View.inflate(this, R.layout.page_jogo_adedonha, null);\n LinearLayout vTblRow = (LinearLayout) layout.findViewById(R.id.group_itens_adedonha);\n for (int i = 0; i ... |
"public void run() {\n final HazelcastInstance h = instances[instanceIndex];\n try {\n warmUpPartitions(h);\n counts.offer(getLocalPartitionsCount(h));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n}\n"
|
"public void extract(final RandomAccessReader reader, final Metadata metadata) {\n PhotoshopDirectory directory = new PhotoshopDirectory();\n metadata.addDirectory(directory);\n final int preambleLength = PREAMBLE.length();\n int pos;\n try {\n pos = reader.getString(0, preambleLength).equals(PREA... |
"public static List<Class<?>> getGenericClasses(Field collectionField) {\n List<Class<?>> genericClasses = new ArrayList<Class<?>>();\n if (collectionField == null) {\n return genericClasses;\n }\n Type[] parameters = ReflectUtils.getTypeArguments(collectionField);\n if (parameters != null) {\n ... |
"private void setReadLocation(long value) {\n readLocationAtomic.set(value);\n}\n"
|
"protected void setDataWithOCAttributes(StudyBean study, DatasetBean dataset, OdmClinicalDataBean data, String odmVersion, Iterator iter, HashMap<Integer, String> oidPoses, String odmType) {\n String subprev = \"String_Node_Str\";\n HashMap<String, Integer> sepos = new HashMap<String, Integer>();\n String sepr... |
"private void create(String[] args, Player player) {\n String text = \"String_Node_Str\";\n ArrayList<String> texts = new ArrayList<String>();\n if (args.length >= 3) {\n int i = 0;\n for (String s : args) {\n if (i == 2 && !s.isEmpty() && !s.equals(\"String_Node_Str\")) {\n ... |
"protected void handleAddElement(ModelElementChangeRightTarget addElement) {\n EObject rightElement = addElement.getRightElement();\n ColumnSet columnSetSwitch = SwitchHelpers.COLUMN_SET_SWITCH.doSwitch(rightElement);\n if (columnSetSwitch != null) {\n if (isValidTableHandle(columnSetSwitch) || isValidV... |
"public List<ImdbChartMoviemeter> getChartMoviemeter() {\n WrapperChartMoviemeter wrapper = ApiBuilder.getWrapper(WrapperChartMoviemeter.class, \"String_Node_Str\", Collections.<String, String>emptyMap());\n if (wrapper == null) {\n return Collections.emptyList();\n } else {\n return wrapper.getD... |
"public void visitIfElse(IfStatement node) {\n node.getBooleanExpression().visit(this);\n Map<String, ClassNode[]> types = inferInstanceOfType(node.getBooleanExpression(), scopes.getLast());\n scopes.add(new VariableScope(scopes.getLast(), node.getIfBlock(), false));\n for (Map.Entry<String, ClassNode[]> en... |
"public static PGPSecretKey createKey(int algorithmChoice, int keySize, String passPhrase) throws NoSuchAlgorithmException, PGPException, NoSuchProviderException, GeneralException, InvalidAlgorithmParameterException {\n if (keySize < 512) {\n throw new GeneralException(\"String_Node_Str\");\n }\n Securi... |
"private Node readNode(String path, Revision rev) {\n String id = Utils.getIdFromPath(path);\n Map<String, Object> map = store.find(DocumentStore.Collection.NODES, id);\n if (map == null) {\n return null;\n }\n Revision min = getLiveRevision(map, rev);\n if (min == null) {\n return null;... |
"public void spvSendFundsResult(SpvSendFundsResult event) {\n if (!event.operationId.equals(lastOperationId)) {\n return;\n }\n if (!event.isSuccess) {\n new AlertDialog.Builder(getActivity()).setTitle(R.string.error).setMessage(\"String_Node_Str\" + event.message).setNegativeButton(R.string.clos... |
"private void doRemoveEndpoint(Connection connection, ClientEndpoint endpoint) {\n removeEndpoint(connection, true);\n if (!endpoint.isFirstConnection()) {\n return;\n }\n NodeEngine nodeEngine = node.nodeEngine;\n Collection<MemberImpl> memberList = nodeEngine.getClusterService().getMemberList();... |
"private final void bringDownServiceLocked(ServiceRecord r) {\n for (int conni = r.connections.size() - 1; conni >= 0; conni--) {\n ArrayList<ConnectionRecord> c = r.connections.valueAt(conni);\n for (int i = 0; i < c.size(); i++) {\n ConnectionRecord cr = c.get(i);\n cr.serviceDe... |
"public void onEntityDeath(final EntityDeathEvent event) {\n if (Configuration.USE_LEVEL_SYSTEM) {\n LivingEntity deadEntity = event.getEntity();\n if (deadEntity instanceof CraftMyPet) {\n return;\n }\n if (!Experience.GAIN_EXP_FROM_MONSTER_SPAWNER_MOBS && event.getEntity().ha... |
"public void markName(String name, int lineno, int charno) {\n if (currentMarker != null) {\n JSDocInfo.TrimmedStringPosition position = new JSDocInfo.TrimmedStringPosition();\n position.setItem(name);\n position.setPositionInformation(lineno, charno, lineno, charno + name.length());\n cu... |
"public void startIncomeCallTimer() {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n if (singleTheadScheduledExecutor == null) {\n initIncomingCallTask();\n }\n closeIncomeCallFutureTask = singleTheadScheduledExecutor.schedule(closeIncomeCallTimerTask, QBRTCConfig.getAnswerTimeInterval(), TimeU... |
"public static void checkValidSenses(Graph graph, Collection<Vertex> senses) {\n if (senses == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (senses.size() == 0)\n throw new IllegalArgumentException(\"String_Node_Str\");\n for (Vertex v : senses) {\n if (v == null) {\n ... |
"private FunctionDeclNode getFunctionField(TerminalNode identifier, MxParser.ParamExprFieldContext paramExprFieldContext, MxParser.FunctionBodyContext functionBodyContext) {\n Location identifierLocation = new Location(identifier);\n Location paramLocation = new Location(paramExprFieldContext);\n Location func... |
"public String stringClean(String toClean) {\n return toClean.replace('\\\"', '_').replace('\\'', '_').replace(';', '_').replace(',', '_');\n}\n"
|
"private static void applyMetadata(Table table, ResultSetMetaData metadata) throws SQLException {\n table.setName(metadata.getTableName(1));\n for (int colIdx = 1; colIdx <= metadata.getColumnCount(); colIdx++) {\n String colName;\n if (quirksMode == QuirksMode.DB2) {\n colName = metadata... |
"public static String versionInfo() {\n String tempUserAgent = String.format(\"String_Node_Str\", Spark.APP_NAME, Spark.APP_VERSION, Build.VERSION.RELEASE, Strings.capitalize(Build.MANUFACTURER), Strings.capitalize(Build.DEVICE), Strings.capitalize(Build.BRAND), Strings.capitalize(Build.MODEL));\n return Strings.... |
"private void remapTargets(Map<InstructionHandle, InstructionHandle> instrMap, InstructionHandle last, InstructionHandle oldLast) {\n InstructionHandle src = oldLast;\n InstructionHandle ih = last;\n while (src != null) {\n Instruction i = src.getInstruction();\n Instruction c = ih.getInstruction... |
"public void actionPerformed(ActionEvent e) {\n aborted = false;\n this.setVisible(false);\n}\n"
|
"private void initalize(PageDef page) {\n axis = new AxisProcessor();\n axis.addCoordinate(page.contentwidth);\n setCacheSize();\n Rule rule = new Rule(0, page.contentwidth);\n cache = new DataCache(MAX_COLUMN);\n engine = new StyleEngine(this);\n containers.push(createContainer(rule, page.style));... |
"private void modifyInheritanceHierarchy() {\n IContainer contextContainer = (IContainer) sourceFile.getParent();\n PackageDeclaration contextPackageDeclaration = sourceCompilationUnit.getPackage();\n IContainer rootContainer = contextContainer;\n if (contextPackageDeclaration != null) {\n String pac... |
"public FormElement getFormElement(IFormElement formElement, FlattenedSolution fs, PropertyPath propertyPath, final boolean designer) {\n if (designer || (fs.getSolutionCopy(false) != null)) {\n if (propertyPath == null) {\n propertyPath = new PropertyPath();\n propertyPath.setShouldAddE... |
"protected String getValue() {\n String value = owner.getName() + \"String_Node_Str\";\n for (int i = 0; i < mods.size(); i++) {\n if (i != 0) {\n value += \"String_Node_Str\";\n }\n value += mods.get(i).getName();\n }\n value += \"String_Node_Str\";\n for (int i = 0; i < ... |
"private ServiceCommand<ResponseListener<Object>> getMuteStatus(boolean isSubscription, final MuteListener listener) {\n ServiceCommand<ResponseListener<Object>> request;\n ResponseListener<Object> responseListener = new ResponseListener<Object>() {\n public void onSuccess(Object response) {\n t... |
"public void addChild(int index, FOXTreeNode child) {\n if (index < children.size() && index >= 0) {\n children.add(index, child);\n } else {\n children.add(child);\n }\n child.setParent(this);\n}\n"
|
"private void init() {\n register(new SystemProcessors.Exit());\n register(new SystemProcessors.Help());\n register(new SystemProcessors.Version());\n register(new BlockProcessors.GetBestBlockHeader());\n register(new BlockProcessors.GetBlock());\n register(new BlockProcessors.GetBlockHeader());\n ... |
"public static void renderLevel(FontRenderer fontRenderer, int xoffset, int currenty, String[] screenData, String label, boolean hidebar, boolean hidetext, boolean showpct, boolean showdiff, int poscolor, int negcolor, int gradient1, int gradient2) {\n if (screenData == null) {\n return;\n }\n long maxC... |
"private boolean isProductive() {\n switch(building.getBuildingType()) {\n case FISHER:\n EDirection fishDirection = super.getStrategyGrid().getDirectionOfSearched(super.getPos(), ESearchType.FISHABLE);\n if (fishDirection != null) {\n return hasProductiveResources(fishDir... |
"public boolean hasAuthority(NodeRef nodeRef, String userName) {\n boolean result = false;\n Map<Pair<NodeRef, String>, Boolean> transactionCache = TransactionalResourceHelper.getMap(getTransactionCacheName());\n Pair<NodeRef, String> key = new Pair<NodeRef, String>(nodeRef, userName);\n if (transactionCach... |
"public Client getClient(Connection connection) throws TTransportException, IOException {\n BlockingQueue<Client> blockingQueue = getQueue(connection);\n if (blockingQueue.isEmpty()) {\n return newClient(connection);\n }\n while (true) {\n WeightedClient client = (WeightedClient) blockingQueue... |
"public static void preInit() {\n CHAMELEON_SPAWNS = registerSpawnNormal(new PrimitiveMobsSpawnEntry(EntityChameleon.class, 0.25F) {\n public boolean isBiomeSuitable(Biome biome) {\n return BiomeDictionary.hasType(biome, BiomeDictionary.Type.PLAINS) && super.isBiomeSuitable(biome);\n }\n ... |
"private void drawYLabels() {\n if (!mDrawYLabels)\n return;\n mYLabelPaint.setTypeface(mYLabels.getTypeface());\n mYLabelPaint.setTextSize(mYLabels.getTextSize());\n mYLabelPaint.setColor(mYLabels.getTextColor());\n PointF c = getCenterOffsets();\n float factor = getFactor();\n int labelCou... |
"public void setNextPlotId(final long id) {\n this.nextPlotId = id;\n try (Statement statement = getConnection().createStatement()) {\n statement.execute(\"String_Node_Str\");\n statement.execute(\"String_Node_Str\" + id + \"String_Node_Str\");\n } catch (SQLException e) {\n plugin.getLogg... |
"public void onActivityCreated(Bundle bundle) {\n super.onActivityCreated(bundle);\n ListView list = getListView();\n list.setDivider(getResources().getDrawable(R.drawable.list_divider));\n list.setDividerHeight(1);\n list.setHeaderDividersEnabled(false);\n if (getNote() == null)\n return;\n ... |
"public void setSize(int size) {\n if (mSize != size) {\n mSize = size;\n updateCircleSize();\n updateDrawableSize();\n updateBackground();\n }\n}\n"
|
"public HashMap<String, Object> fillValues(View v, HashMap<String, Object> data, HashMap<String, Object> parentData) {\n super.fillValues(v, data, parentData);\n AbsSeekBar sb = (AbsSeekBar) v;\n data.put(\"String_Node_Str\", sb.getThumbOffset());\n return data;\n}\n"
|
"public void addOutput(Output output) {\n if (output instanceof Output.DatasetOutput) {\n providedOutput = Outputs.transform((Output.DatasetOutput) output, this);\n } else if (output instanceof Output.OutputFormatProviderOutput) {\n addOutput(output.getAlias(), ((Output.OutputFormatProviderOutput) o... |
"public void testBcelVerifier() throws ClassHierarchyException {\n AnalysisScope scope = CallGraphTestUtil.makeJ2SEAnalysisScope(TestConstants.BCEL);\n ClassHierarchy cha = ClassHierarchy.make(scope);\n Iterable<Entrypoint> entrypoints = com.ibm.wala.ipa.callgraph.impl.Util.makeMainEntrypoints(scope, cha, Test... |
"public boolean deleteDirectory(String path) throws FileException {\n FileConnection directory = null;\n try {\n directory = (FileConnection) Connector.open(path);\n if (directory.exists() && directory.isDirectory()) {\n directory.delete();\n dirDeleted = true;\n }\n ... |
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n dList locations = new dList();\n dList entities = new dList();\n boolean added_entities = false;\n for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {\n if (arg.matchesPrefix(\"String_Node_Str\")) {\n ... |
"public TopLevel createCopy(TopLevel topLevel, String URIprefix, String displayId, String version) throws SBOLValidationException {\n checkReadOnly();\n topLevel.isURIcompliant();\n if (URIprefix == null) {\n URIprefix = extractURIprefix(topLevel.getIdentity());\n URIprefix = URIcompliance.checkU... |
"private boolean handleNodeStatus(ClusterReport report, boolean lastUpdate) {\n boolean finished = report.isFinished();\n ClusterEntity cluster = findByName(report.getName());\n Map<String, NodeReport> nodeReportMap = report.getNodeReports();\n for (NodeGroupEntity group : cluster.getNodeGroups()) {\n ... |
"public ItemRecord[] getElements() {\n List<ItemRecord> itemRecords = new ArrayList<ItemRecord>();\n Object[] checkedElements = repositoryTree.getCheckedElements();\n for (Object obj : checkedElements) {\n if (obj instanceof ItemRecord) {\n ItemRecord record = (ItemRecord) obj;\n i... |
"private int getColumnIndex(int index) throws BirtException {\n if (selectedColumns == null) {\n return index;\n }\n String name = selectedColumns[index];\n if (null != parentMetaData) {\n for (int i = 0; i < parentMetaData.getColumnCount(); i++) {\n String columnName = parentMetaDa... |
"public void preProcess(MultiDataSet toPreProcess) {\n int numFeatures = toPreProcess.numFeatureArrays();\n int numLabels = toPreProcess.numLabelsArrays();\n for (int i = 0; i < numFeatures; i++) {\n strategy.preProcess(toPreProcess.getFeatures(i), getFeatureStats(i));\n }\n if (isFitLabel()) {\n ... |
"private void sarsa(int reward, Weights weights, double Qsa, int[][] internal_board, Rules gameRules, int player_id) {\n double eta = 0.9;\n double gamma = 0.9;\n FeatureExplorer f = new FeatureExplorer();\n double[] features = new double[FeatureExplorer.getNumFeatures()];\n double[] w = weights.getWeigh... |
"public String readComment() {\n long expectedLineCount = lineCount + 1;\n try {\n do {\n char ch = nextChar();\n if (ch <= ' ') {\n ch = skipWhitespace(ch, normalizedLineSeparator, normalizedLineSeparator);\n }\n tmp.appendUntil(ch, this, normaliz... |
"public Set<File> sources() {\n SourceSet sourceSet = sourceSet(project);\n Set<File> src = new LinkedHashSet<>(sourceSet.getResources().getSrcDirs());\n sourceSet.getJava().getSrcDirs().forEach(f -> src.add(f.getParentFile()));\n return src;\n}\n"
|
"public void logMethodReturn(String methodName, Object[] params, Object result) {\n try {\n if (methodName.equals(\"String_Node_Str\")) {\n activityLog.add(now() + \"String_Node_Str\" + ((Map) result).get(\"String_Node_Str\") + \"String_Node_Str\");\n sessions.put(\"String_Node_Str\" + (... |
"public void getStatuses(HttpRequest request, HttpResponder responder, String namespaceId) throws IOException, BadRequestException {\n List<BatchProgram> programs = validateAndGetBatchInput(request, BATCH_PROGRAMS_TYPE);\n List<BatchProgramStatus> statuses = new ArrayList<>(programs.size());\n for (BatchProgra... |
"public void update(final ModelEvent event) {\n if (event.part == ModelPart.MODEL) {\n model = (Model) event.data;\n } else if (event.part == ModelPart.SELECTED_NODE) {\n final ARXNode selected = (ARXNode) event.data;\n if (selected == null) {\n reset();\n } else {\n ... |
"private void setData(ViewGroup view, int position) {\n TextView route = (TextView) view.findViewById(R.id.route);\n TextView destination = (TextView) view.findViewById(R.id.destination);\n TextView time = (TextView) view.findViewById(R.id.time);\n TextView status = (TextView) view.findViewById(R.id.status)... |
"private void processCategoryIndicator() {\n List<IndicatorEnum> categoryEnumList = new ArrayList<IndicatorEnum>();\n listCopy(categoryEnumList, flatIndicatorEnumList);\n Iterator<IndicatorEnum> iterator = flatIndicatorEnumList.iterator();\n List<IndicatorEnum> currentCountsChildren = new ArrayList<Indicato... |
"void handleData(final Uri data) {\n String filename = secret.addFile(this, data);\n Uri thumbnail = storage.saveThumbnail(this, data, filename);\n if (thumbnail != null) {\n secret.addFile(this, thumbnail);\n new java.io.File(thumbnail.getPath()).delete();\n }\n try {\n this.getCont... |
"public void writeImage(File dest) throws IOException {\n if (source == IImage.INVALID_IMAGE) {\n logger.log(Level.SEVERE, \"String_Node_Str\", id);\n return;\n }\n InputStream input = null;\n if (in != null) {\n input = in;\n } else if (data != null) {\n input = new ByteArray... |
"private boolean isClassnameValid(String className, ICorpusClass selectedCorpusClass) {\n if (className.isEmpty()) {\n corpusMgmtViewform.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n } else {\n corpusMgmtViewform.get... |
"public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {\n mSettingsValuesLock.lock();\n try {\n if (mSettingsValues == null) {\n Log.w(TAG, \"String_Node_Str\");\n return;\n }\n loadSettings(mSettingsValues.mLocale, mSettingsValues.mInpu... |
"protected boolean runSerially() {\n boolean useful = false;\n final int n = epoll.poll();\n int watermark = pending.size();\n final long timestamp = clock.getTicks();\n int offset = 0;\n if (n > 0) {\n for (int i = 0; i < n; i++) {\n epoll.setOffset(offset);\n offset += E... |
"public Result validPassword(Account account, String password) {\n if (null == account) {\n return Result.getFailed(AccountErrorCode.PARAMETER_ERROR);\n }\n if (!StringUtils.validPassword(password)) {\n return Result.getFailed(AccountErrorCode.PASSWORD_IS_WRONG);\n }\n if (!account.isEncryp... |
"protected void reportingPeriodUpdated() {\n Calendar startDate = Calendar.getInstance();\n startDate.setTime(Dates.today());\n startDate.add(Calendar.YEAR, -getReportingYears());\n startDate.set(Calendar.DAY_OF_MONTH, 1);\n startDate.add(Calendar.DATE, -1);\n ClientPerformanceSnapshot snapshot = new ... |
"private Oparg renameRangeArg(Oparg val, Map<String, Oparg> renames) {\n if (val.type == OpargType.VAR) {\n String vName = val.getVar().getName();\n if (renames.containsKey(vName)) {\n Oparg o = renames.get(vName);\n assert (o != null);\n return o;\n }\n }\n ... |
"private void publishWebSocketEndpoint(WebSocketHandlerRegistry wsHandlerRegistry, JsonRpcHandler<?> handler, List<String> paths) {\n ProtocolManager protocolManager = (ProtocolManager) ctx.getBean(\"String_Node_Str\", handler);\n JsonRpcWebSocketHandler wsHandler = new JsonRpcWebSocketHandler(protocolManager);\n... |
"public void onClick(DialogInterface dialog, int which) {\n boolean success = BroadcastTransactionActivity.callMe(getActivity(), _mbwManager.getSelectedAccount(), record.txid);\n if (!success) {\n Utils.showSimpleMessageDialog(getActivity(), _context.getString(R.string.message_rebroadcast_failed));\n }\... |
"protected Dollars charge(int usage, Date start, Date end) {\n Dollars result = calculateSummerWinterRate(usage, start, end);\n result.times(1 + TAX_RATE);\n result.plus(new Dollars(usage * FUEL).times(1 + TAX_RATE));\n result.round(2);\n return result;\n}\n"
|
"private String promptBranchName() throws MojoFailureException, CommandLineException {\n final String hotfixBranches = gitFindBranches(gitFlowConfig.getHotfixBranchPrefix(), false);\n if (StringUtils.isBlank(hotfixBranches)) {\n throw new MojoFailureException(\"String_Node_Str\");\n }\n String[] bran... |
"public void writeToNBT(NBTTagCompound tag) {\n super.writeToNBT(tag);\n this.getComponent().writeToNBT(tag);\n}\n"
|
"public void onClick(View v) {\n switch(v.getId()) {\n case R.id.backbutton:\n Intent i = new Intent(this, Marketplace.class);\n startActivity(i);\n break;\n case R.id.homebutton:\n Intent j = new Intent(this, TabWidget.class);\n startActivity(j);\... |
"public Action evaluate() {\n if (ant.isFoodAhead()) {\n ((Action) getChild(0).evaluate()).execute();\n } else {\n ((Action) getChild(1).evaluate()).execute();\n }\n return Action.DO_NOTHING;\n}\n"
|
"public static List<URL> getProjectDependantJars_DLTK(IScriptProject vProject) {\n IBuildpathEntry[] entries = getResolvedBuildpath(vProject);\n List<URL> urlsString = new ArrayList<URL>(entries.length);\n for (int i = 0; i < entries.length; i++) {\n IBuildpathEntry entry = entries[i];\n if (entr... |
"public Object resolveVariable(XelContext ctx, Object base, Object onm) {\n if (base != null) {\n Object o = ((ExecutionCtrl) _exec).getExtraXelVariable(ctx, base, onm);\n if (o != null)\n return o;\n final Page page = ((ExecutionCtrl) _exec).getCurrentPage();\n return page != ... |
"protected ZKLoadRebalanceListener registerConsumerInternal(final ZKLoadRebalanceListener loadBalanceListener) throws UnknownHostException, InterruptedException, Exception {\n final ZKGroupDirs dirs = this.metaZookeeper.new ZKGroupDirs(loadBalanceListener.consumerConfig.getGroup());\n final String topicString = t... |
"public VmVolumeAttachment lookupVolumeAttachment(final String volumeId) {\n final EntityTransaction db = Entities.get(VmInstance.class);\n try {\n final VmInstance entity = Entities.merge(this);\n VmVolumeAttachment volumeAttachment = null;\n AttachedVolume ret = null;\n try {\n ... |
"public Token zero() throws IllegalActionException {\n Object[] labelsObj = _fields.keySet().toArray();\n String[] labels = new String[labelsObj.length];\n Token[] values = new Token[labels.length];\n for (int i = 0; i < labels.length; i++) {\n labels[i] = (String) labelsObj[i];\n values[i] = ... |
"public EclipseTypeMunger makeEclipseTypeMunger(ConcreteTypeMunger concrete) {\n if (concrete instanceof EclipseTypeMunger)\n return (EclipseTypeMunger) concrete;\n if (concrete.getMunger() != null && EclipseTypeMunger.supportsKind(concrete.getMunger().getKind())) {\n return new EclipseTypeMunger(th... |
"public void rcWaitForWindowToClose(final String title, final String operator, int pTimeout, int delay) {\n final Stage s = getStageByTitle(title, operator);\n if (s == null) {\n return;\n }\n final CountDownLatch signal = new CountDownLatch(1);\n final EventHandler<WindowEvent> closeHandler = new... |
"public static String queryToPattern(String query) {\n String pattern = query;\n int i = 1;\n Collection<String> literals = findLiterals(query);\n if (literals.size() == 0) {\n return pattern;\n }\n if (literals.size() == 1) {\n if (literalInFilterClause(query, literals.iterator().next()... |
"public MetadataDescriptor getOwningDescriptor() {\n if (getOwningDescriptors() != null && getOwningDescriptors().size() > 0) {\n return getOwningDescriptors().get(0);\n }\n return this.getDescriptor();\n}\n"
|
"public NetworkResponse createNetworkResponse(Network network) {\n NetworkProfile profile = ApiDBUtils.getNetworkProfile(network.getId());\n NetworkResponse response = new NetworkResponse();\n response.setId(network.getUuid());\n response.setName(network.getName());\n response.setDisplaytext(network.getD... |
"public void run() {\n CConn cc = null;\n Socket sock = null;\n if (via.getValueStr() != null) {\n StringParameter gatewayHost = new StringParameter(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n StringParameter remoteHost = new StringParameter(\"String_Node_Str\", \"String_Nod... |
"private static void doSaveSettings(String string, List<Config> cfg) throws Exception {\n PreparedStatement pre = SQLUtils.getPreparedSQL(\"String_Node_Str\");\n for (Config c : cfg) {\n for (ConfigTuple sel : c.getSelected()) {\n pre.setString(1, wpid);\n pre.setString(2, c.getBeschr... |
"private IMetadataColumn getSourceColumn(String sourceTreeName, String sourceNodeName) {\n List<IODataComponent> inputs = manager.getMapperComponent().getIODataComponents().getInputs();\n IMetadataColumn columnSource = null;\n for (IConnection incoming : connections) {\n if (incoming.getName().equals(so... |
"public void channelRead(ChannelHandlerContext ctx, Object msg) {\n if (logger.isDebugEnabled()) {\n logger.info(\"String_Node_Str\", ctx.channel().hashCode());\n }\n MetricBuilder.requestMeter.mark();\n final PBAPNSEvent pbapnsEvent;\n try {\n byte[] bytes = (byte[]) msg;\n pbapnsEv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.