content stringlengths 40 137k |
|---|
"public void doTask() {\n if (x.allocationMode() == DataBuffer.AllocationMode.HEAP) {\n if (x.dataType() == DataBuffer.Type.FLOAT) {\n float[] xf = (float[]) x.array();\n float[] yf = (float[]) y.array();\n if (incrX == 1 && incrY == 1 && (x == z || incrZ == 1)) {\n ... |
"public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n firstTime = icicle != null ? icicle.getBoolean(Restore.KEY_FIRST_TIME) : false;\n if (firstTime == false) {\n Bundle extras = getIntent().getExtras();\n firstTime = extras ... |
"public void addToObjectsToCommit(IdEObject idEObject) throws BimDatabaseException {\n if (idEObject.getOid() == -1) {\n throw new BimDatabaseException(\"String_Node_Str\");\n }\n objectsToCommit.forcePut(idEObject, idEObject.getOid());\n}\n"
|
"public boolean removeFromZone(Game game, Zone fromZone, UUID sourceId) {\n boolean removed = false;\n MageObject lkiObject = null;\n switch(fromZone) {\n case GRAVEYARD:\n removed = game.getPlayer(ownerId).removeFromGraveyard(this, game);\n break;\n case HAND:\n ... |
"public static List<String> parseErrors(String responseBody) {\n List<String> errors = new ArrayList<String>();\n String[] lines = responseBody.split(\"String_Node_Str\");\n int lineToStartWith = 0;\n int lastLine = lines.length - 1;\n String openTag = \"String_Node_Str\";\n String closeTag = \"String... |
"public void run() {\n boolean finished = false;\n while (!finished) {\n RawPage rp = null;\n Language lang = null;\n try {\n rp = queue.poll(100, TimeUnit.MILLISECONDS);\n if (rp == POISON_PILL) {\n queue.put(rp);\n finished = true;\n ... |
"public static <P, F, S> boolean decide1equality(SFT<P, F, S> sft1withEps, SFT<P, F, S> sft2withEps, BooleanAlgebraSubst<P, F, S> ba) {\n SFTProduct<P, F, S> product = SFTProduct.MkSFTProduct(sft1withEps, sft2withEps, ba);\n HashMap<Integer, Pair<List<S>, List<S>>> reached = new HashMap<Integer, Pair<List<S>, Lis... |
"public void removeAndGetFile(RemoveAndGetFileMessage msg) {\n ArgumentNotValid.checkNotNull(msg, \"String_Node_Str\");\n jmsCon.resend(msg, this.allBa);\n}\n"
|
"public void hostedVirtLimitAltersBonusPoolQuantity() {\n when(config.getBoolean(ConfigProperties.STANDALONE)).thenReturn(false);\n Subscription s = createVirtLimitSub(\"String_Node_Str\", 10, \"String_Node_Str\");\n consumer.setType(new ConsumerType(ConsumerTypeEnum.CANDLEPIN));\n List<Pool> pools = poolRu... |
"private Response buildResponseForApplicationException(ODataApplicationException exception) {\n ResponseBuilder responseBuilder = Response.noContent();\n int statusCode = extractStatus(exception);\n return responseBuilder.entity(exception.getMessage()).status(statusCode).build();\n}\n"
|
"public boolean equalsAsOption(PossibleAction action) {\n if (!(action.getClass() == LayTile.class))\n return false;\n LayTile a = (LayTile) action;\n return (Objects.equal(a.locationNames, locationNames) && (Objects.equal(a.tiles, tiles) && specialProperty == null || Objects.equal(a.specialProperty, sp... |
"public void testParseDescription() {\n try {\n List<Issue> issues = loadRedmine11IssuesXml();\n Issue issue65 = RedmineTestUtils.findIssueInList(issues, 65);\n assertTrue(issue65.getDescription().startsWith(\"String_Node_Str\"));\n assertTrue(issue65.getDescription().endsWith(\"String_No... |
"private void blackListIncompatibleCallerAndRestartResolveIfPossible(IvySettings settings, IvyNode parent, IvyNode selected, IvyNode evicted) {\n Stack callerStack = new Stack();\n callerStack.push(evicted);\n final Collection toBlacklist = blackListIncompatibleCaller(settings.getVersionMatcher(), parent, sele... |
"public static void main(final String[] args) throws InjectionException {\n try (final REEFEnvironment reef = REEFEnvironment.fromConfiguration(LOCAL_DRIVER_MODULE, DRIVER_CONFIG, ENVIRONMENT_CONFIG)) {\n reef.run();\n final ReefServiceProtos.JobStatusProto status = reef.getLastStatus();\n LOG.l... |
"public void buildWorkflowTask(Workflow workflow, final Crawler<?> crawler, boolean downloadOnlyIfNewer) throws IOException {\n if (getCurrentPath() != null) {\n getCurrentPath().toFile().delete();\n }\n PathGen destGen = new PathGen() {\n public URI getURI() throws URISyntaxException {\n ... |
"private void getNightAugments() {\n World world = player.getWorld();\n if (isNight(world)) {\n if (GeneralMethods.hasRPG()) {\n if (isLunarEclipse(world)) {\n spearRange = spearRangeFullMoon;\n spearSphere = spearSphereFullMoon;\n spearDuration = spe... |
"protected void prepareHandlers(final Context context) {\n super.prepareHandlers(context);\n addHandler(Attributes.RatingBar.NumStars, new StringAttributeProcessor<T>() {\n public void handle(ParserContext parserContext, String attributeKey, String attributeValue, T view, ProteusView proteusView, ProteusVi... |
"public int getInMachineCount() {\n return 2 * JasminClass.sizeOfType(getOpType());\n}\n"
|
"synchronized public void refreshAuthoritativeResourceCache() {\n final LocalDate date = dateTimeProvider.getCurrentDate();\n final long lastImportTime = dailySchedulerDao.getDailyTaskFinishTime(date, AuthoritativeResourceImportTask.class);\n if (lastImportTime > lastRefresh) {\n LOGGER.debug(\"String_N... |
"public void execute() {\n CommandStack stack = SessionHandleAdapter.getInstance().getCommandStack();\n stack.startTrans(TRANS_LABEL_SET_CONSTRAINT);\n try {\n if (DesignerConstants.TRACING_COMMANDS) {\n System.out.println(\"String_Node_Str\" + DEUtil.getDisplayLabel(model) + \"String_Node_St... |
"public void run() {\n PlotMain.sendConsoleSenderMessage(\"String_Node_Str\");\n PlotMain.sendConsoleSenderMessage(\"String_Node_Str\");\n ArrayList<com.intellectualcrafters.plot.Plot> createdPlots = new ArrayList<com.intellectualcrafters.plot.Plot>();\n Map<String, UUID> uuidMap = new HashMap<String, UUID>... |
"public Widget mouseClick(int x, int y, int button) {\n int newSelected = -1;\n int top = bounds.y;\n for (int i = first; i < first + getCountSelected() && i < children.size(); i++) {\n Rectangle r = new Rectangle(0, top, bounds.width, rowheight);\n if (r.contains(x, y)) {\n newSelecte... |
"private void updateScrollPositionOnExpandInBottom(ExpandableView view) {\n if (view instanceof ExpandableNotificationRow) {\n ExpandableNotificationRow row = (ExpandableNotificationRow) view;\n if (row.isUserLocked() && row != getFirstChildNotGone()) {\n if (row.isSummaryWithChildren()) {\n... |
"public void inject2Conf() {\n for (String key : disconfStoreProcessor.getConfKeySet()) {\n LOGGER.debug(\"String_Node_Str\" + key + \"String_Node_Str\");\n DisconfCenterItem disconfCenterItem = (DisconfCenterItem) disconfStoreProcessor.getConfData(key);\n inject2OneConf(key, disconfCenterItem);... |
"public void transitionFromPassToFail() throws Exception {\n healthService.register(\"String_Node_Str\", 1, TimeUnit.SECONDS);\n healthService.checkIn(\"String_Node_Str\", HealthStatus.PASS);\n countDownLatch = new CountDownLatch(1);\n result = new AtomicBoolean();\n healthService.findHealthyNodes(names ... |
"protected void handleFormatBtnSelected() {\n String sAxisTitle = Messages.getString(\"String_Node_Str\");\n try {\n String sTitleString = getAxisForProcessing().getTitle().getCaption().getValue();\n int iSeparatorIndex = sTitleString.indexOf(ExternalizedTextEditorComposite.SEPARATOR);\n if (... |
"public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {\n if (BlockUtil.isIRRail(world, pos)) {\n TileRailBase te = TileRailBase.get(world, pos);\n if (te != null) {\n ItemStack stack = player.... |
"private void prepareModelFromOutput(List<XMLFileNode> root, List<XMLFileNode> loop, List<XMLFileNode> group) {\n TreeNode rootNode = null;\n TreeNode lastTreeNode = schemaNode;\n TreeNode temp = null;\n TreeNode mainNode = parentNode;\n String mainPath = null;\n String lastXmlPath = null;\n for (i... |
"private void preparePageContext(final Map<String, String> pageContext, final String rawRequestPath) {\n String viewName = rawRequestPath;\n if ('/' == viewName.charAt(0)) {\n viewName = viewName.substring(1);\n }\n List<String> menuItems = new ArrayList<String>();\n this.addIfMbeanPresent(menuIte... |
"private void _updateLinks(ComponentRelation relation) {\n List linkedObjects = relation.linkedObjectsList();\n int linkedObjectsCount = linkedObjects.size();\n Iterator links = new LinkedList(_linkSet).iterator();\n while (links.hasNext()) {\n Link link = (Link) links.next();\n Object tail = ... |
"private boolean validOpeningAndResponse() {\n Call responderCall = auction.getPartnersLastCall();\n if (responderCall != null && responderCall.getBid().hasTrump()) {\n Call myOpeningBid = auction.getPartnersCall(responderCall);\n if (myOpeningBid != null && !myOpeningBid.isPass()) {\n re... |
"protected void readIndexes(DatabaseSnapshot snapshot, String schema, DatabaseMetaData databaseMetaData) throws DatabaseException, SQLException {\n Database database = snapshot.getDatabase();\n updateListeners(\"String_Node_Str\" + database.toString() + \"String_Node_Str\");\n String query = \"String_Node_Str\... |
"public void replace(CellArea origin, CellArea dest) {\n int index = children.indexOf(origin);\n if (index >= 0) {\n children.remove(origin);\n children.add(index, dest);\n dest.setParent(this);\n }\n}\n"
|
"public synchronized static String formatDate(String pattern, java.util.Date date) {\n if (date instanceof TalendTimestampWithTZ) {\n DateFormat format = FastDateParser.getInstance(pattern);\n format.setTimeZone(((TalendTimestampWithTZ) date).getTimeZone());\n return format.format(date.getTime()... |
"public void should_parse_and_load_configuration_file_from_container_configuration_file() throws IOException {\n File newFile = testFolder.newFile(\"String_Node_Str\");\n Files.write(Paths.get(newFile.toURI()), CONTENT.getBytes());\n Map<String, String> parameters = new HashMap<String, String>();\n paramete... |
"public void install(final PurchaseObserver observer, PurchaseManagerConfig config) {\n this.observer = observer;\n this.config = config;\n Object[] configuration = (Object[]) config.getStoreParam(PurchaseManagerConfig.STORE_NAME_ANDROID_OUYA);\n String developerID = (String) configuration[0];\n applicat... |
"public void activate() {\n if (!activated) {\n activated = true;\n for (String sid : p.getStreamIds()) {\n Track t = control.getTrack(sid);\n if (t instanceof CloudTrack)\n control.findSources(sid, this);\n trackUpdated(sid, t);\n }\n }\n}\n"
|
"public Pair<EntityCoupleableRollingStock, CouplerType> potentialCouplings(CouplerType coupler) {\n List<EntityCoupleableRollingStock> train = this.getTrain();\n List<EntityCoupleableRollingStock> nearBy = world.getEntities(EntityCoupleableRollingStock.class, new Predicate<EntityCoupleableRollingStock>() {\n ... |
"public void handleClient(Session session, LoginMessage message) {\n session.getDataMap().put(SpoutProtocol.PLAYER_ENTITY_ID, message.getExtraInt());\n session.setState(Session.State.GAME);\n session.getEngine().getEventManager().callEvent(new ClientPlayerConnectedEvent(session, message.getProtocolVersion()));... |
"private void updateReplicaFileInfoChecksumCorrupt(long replicafileinfoId) {\n try {\n String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n PreparedStatement statement = null;\n dbConnection.setAutoCommit(false);\n Date now = new Date(Calendar.getInstance().getT... |
"public void sendMidiSystemExclusive(int cable, final byte[] systemExclusive) {\n ByteArrayOutputStream transferDataStream = new ByteArrayOutputStream();\n for (int sysexIndex = 0; sysexIndex < systemExclusive.length; sysexIndex += 3) {\n if ((sysexIndex + 3 < systemExclusive.length)) {\n transf... |
"public void testQuery2() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n StreamDefinition streamDefinition = StreamDefinition.id(\"String_Node_Str\").attribute(\"String_Node_Str\", Attribute.Type.STRING).attribute(\"String_Node_Str\", Attri... |
"private int executeInProcess(ExecutionContext context) {\n if (D8.equals(dexTool)) {\n D8DiagnosticsHandler diagnosticsHandler = new D8DiagnosticsHandler();\n try {\n Set<Path> inputs = new HashSet<>();\n for (Path rawFile : filesToDex) {\n Path toDex = filesystem.... |
"protected final void doPost(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {\n log.debug(\"String_Node_Str\", request.getRemoteAddr(), request.getRemotePort());\n if (gravity == null) {\n log.error(\"String_Node_Str\");\n return;\n }\n ... |
"public String getRequestURI() {\n return this.cocoonRequest.getRequestURI();\n}\n"
|
"private void saveExtendedFieldValues(Connection c, Domain d) throws SQLException {\n List<ExtendedFieldValue> list = d.getExtendedFieldValues();\n for (int i = 0; i < list.size(); i++) {\n ExtendedFieldValue efv = list.get(i);\n efv.setInstanceID(d.getID());\n ExtendedFieldValueDBDAO dao = (... |
"public StaticNatRule createStaticNatRule(StaticNatRule rule, boolean openFirewall) throws NetworkRuleConflictException {\n Account caller = UserContext.current().getCaller();\n Long ipAddrId = rule.getSourceIpAddressId();\n IPAddressVO ipAddress = _ipAddressDao.findById(ipAddrId);\n if (ipAddress == null) ... |
"static ImmutablePair<MetricsRequest, MetricsRequestContext> parseRequestAndContext(URI requestURI) throws MetricsPathException {\n MetricsRequestBuilder builder = new MetricsRequestBuilder(requestURI);\n String uriPath = requestURI.getRawPath();\n int index = uriPath.lastIndexOf(\"String_Node_Str\");\n bui... |
"public void setScale(float scale) {\n this.scale = scale;\n final float scaleX = scale * scaleFactor;\n final float scaleY = scale * scaleFactor * scaleFactorY;\n baseLayout.setScaleY(scaleFactorY);\n topPart.setScaleX(scaleX);\n topPart.setScaleY(scaleY);\n bottomPart.setScaleX(scaleX);\n bott... |
"public boolean afterPaintingGeometry(Geometry g) {\n if (aggregationType == AggregationType.LAST) {\n return false;\n }\n if (aggregationType == AggregationType.AVERAGE && totalPainter != null) {\n ((WeightedComposite) composite).setWeight(1.0);\n totalPainter.setBounds(b);\n total... |
"public String execute(String[] args) {\n if (args.length > 1) {\n if (checkModelDefined()) {\n if (getCurrentModel().endsWith(\"String_Node_Str\")) {\n return editEntityDSL(args[1]);\n } else {\n editDBModelFile();\n }\n }\n } else {\n ... |
"public void run() {\n System.out.println(\"String_Node_Str\");\n try {\n JSONParser parser = new JSONParser();\n InputStreamReader reader = new InputStreamReader(new FileInputStream(path), \"String_Node_Str\");\n JSONObject completeLogFile = (JSONObject) parser.parse(reader);\n Date l... |
"public PriceListLine getPriceListLine(SalesOrderLine salesOrderLine, PriceList priceList) {\n return priceListService.getPriceListLine(salesOrderLine.getProduct(), salesOrderLine.getQty(), priceList);\n}\n"
|
"private void _epmem_respond_to_cmd_parse(List<WmeImpl> cmds, boolean good_cue, int path, long retrieve, SymbolImpl next, SymbolImpl previous, SymbolImpl query, SymbolImpl neg_query, List<Long> prohibit, long before, long after, Set<SymbolImpl> currents, Set<WmeImpl> cue_wmes) {\n cue_wmes.clear();\n retrieve.val... |
"private void handleMemberFaultEvent(String clusterId, String memberId) {\n try {\n AbstractClusterMonitor monitor = getMonitor(clusterId);\n NetworkPartitionContext nwPartitionCtxt;\n try {\n TopologyManager.acquireReadLock();\n Member member = findMember(memberId);\n ... |
"public void testForceDeleteClusterWhenStopSucceed() {\n AmbariImpl spy = Mockito.spy(provider);\n Mockito.when(spy.echo()).thenReturn(true);\n Mockito.when(spy.isProvisioned(Mockito.anyString())).thenReturn(true);\n Mockito.doReturn(true).when(spy).onStopCluster(Mockito.<ClusterBlueprint>any(), Mockito.<Cl... |
"public final Function_decl_specifiersContext function_decl_specifiers() throws RecognitionException {\n Function_decl_specifiersContext _localctx = new Function_decl_specifiersContext(_ctx, getState());\n enterRule(_localctx, 10, RULE_function_decl_specifiers);\n int _la;\n try {\n enterOuterAlt(_lo... |
"private void registerUiTestAutomationServiceLocked(IAccessibilityServiceClient client) {\n IAccessibilityManager manager = IAccessibilityManager.Stub.asInterface(ServiceManager.getService(Context.ACCESSIBILITY_SERVICE));\n AccessibilityServiceInfo info = new AccessibilityServiceInfo(true);\n info.eventTypes =... |
"private BrowseInfo browseByItem(BrowserScope bs) throws BrowseException {\n log.info(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\"));\n ItemDAO itemDAO = ItemDAOFactory.getInstance(context);\n try {\n dao.setTable(browseIndex.getTableName(scope.inCommunity(), scope.inCollection... |
"ICompletionProposal[] getAttributeValueProposals(IAssistTagState assistState) {\n Assert.isNotNull(assistState, \"String_Node_Str\");\n DefaultAssistAttributeState attrState = prepareForValueAssist(assistState);\n ArrayList valueContributors = ((ICFEFileDocument) assistState.getIDocument()).getContentAssistMa... |
"public static void convert(List<Move> moves, String pathName) {\n try {\n BufferedWriter out = new BufferedWriter(new FileWriter(FileUtility.getCompletedGamesFile(pathName)));\n String toWrite = \"String_Node_Str\";\n for (int i = 0, j = 1; i < moves.size(); i++) {\n String turn = mo... |
"public void push(ValueInfo value, boolean addContinueMarker) {\n if (Type.VOID.equals(value.getType()) && !value.isThisReference())\n return;\n stack.add(value);\n if (addContinueMarker && value.usesTwoSlots()) {\n stack.add(ValueInfo.CONTINUED);\n }\n}\n"
|
"protected boolean load(GL2ES2 gl, Collection<ShaderCode> codes) {\n if (this.loaded)\n return true;\n this.state = new ShaderState();\n this.state.setVerbose(true);\n this.program = new ShaderProgram();\n for (ShaderCode code : codes) {\n boolean success = this.program.add(gl, code, System... |
"private void firebaseAuthWithFacebook(final AccessToken accessToken) {\n Log.d(TAG, \"String_Node_Str\");\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Task<AuthResult> authResultTask;\n if (firebaseUser ... |
"public void modifyText(ModifyEvent e) {\n if (okBtn != null)\n okBtn.setEnabled(true);\n internalLabel.setText(getInternalName());\n}\n"
|
"protected boolean isValid() {\n ModelElement modelElement = PropertyHelper.getModelElement(((IRepositoryViewObject) selectedObj).getProperty());\n return modelElement instanceof Connection;\n}\n"
|
"public float getTotalInstructionCoverage() {\n if (this.getCoverageResults().size() <= 0) {\n return 0.0f;\n }\n float totalInstr = this.getInstructionCoverage() / this.getCoverageResults().size();\n totalInstr = Utils.roundFloat(1, RoundingMode.HALF_EVEN, totalInstr);\n return totalInstr;\n}\n"
|
"public void onEntityTarget(EntityTargetEvent event) {\n if (CreatureTask.getCreature(event.getEntity()) != null) {\n HumanNPC creature = CreatureTask.getCreature(event.getEntity()).npc;\n if (creature.isEvil()) {\n if (e.getNpcReason() == NpcTargetReason.NPC_RIGHTCLICKED) {\n ... |
"public void onTrackEnd(IPlayer player, AudioTrack track, AudioTrackEndReason endReason) {\n if (endReason != AudioTrackEndReason.REPLACED && endReason != AudioTrackEndReason.STOPPED) {\n ((LavalinkPlayer) player).clearTrack();\n }\n}\n"
|
"public void configure() {\n bind(JPAInitializer.class).asEagerSingleton();\n bindConstant().annotatedWith(JpaUnit.class).to(\"String_Node_Str\");\n bind(CertificateResource.class);\n bind(ConsumerResource.class);\n bind(PoolResource.class);\n bind(EntitlementResource.class);\n bind(OwnerResource.c... |
"public void javaToNative(Object object, TransferData transferData) {\n if (checkText(object) && isSupportedType(transferData)) {\n try {\n super.javaToNative(((String) object).getBytes(\"String_Node_Str\"), transferData);\n } catch (UnsupportedEncodingException e) {\n super.javaT... |
"public static void main(String[] args) {\n new RtThread(10, 1 * 100) {\n\n public void run() {\n up = true;\n flag = false;\n value = 10;\n speed = 0x400;\n while (true) {\n if (state == STATE_ALL) {\n counter++;\n ... |
"protected void activate(ComponentContext context) throws ServletException, NamespaceException {\n logger.info(\"String_Node_Str\", context.getProperties());\n init(context);\n}\n"
|
"private void closeChannels() {\n for (SocketChannelHolder h : channels) {\n closeChannel(h, true);\n }\n}\n"
|
"public <T extends Map> void dropBigMap(String name, T map) {\n map.clear();\n if (isDBopen()) {\n db.delete(name);\n }\n}\n"
|
"public DTMasterParams doCompute(MasterContext<DTMasterParams, DTWorkerParams> context) {\n if (context.isFirstIteration()) {\n return buildInitialMasterParams();\n }\n if (this.cpMasterParams != null) {\n DTMasterParams tmpMasterParams = rebuildRecoverMasterResultDepthList();\n this.cpMas... |
"public void determineSimilarities(ISet set, Integer iVAIdContent, Integer iVAIdStorage, EClustererType eClustererType) {\n this.iVAIdContent = iVAIdContent;\n this.iVAIdStorage = iVAIdStorage;\n IVirtualArray contentVA = set.getVA(iVAIdContent);\n IVirtualArray storageVA = set.getVA(iVAIdStorage);\n IDi... |
"public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {\n monitor.beginTask(DefaultMessagesImpl.getString(\"String_Node_Str\", analysis.getName()), IProgressMonitor.UNKNOWN);\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n if (listener != null) {... |
"public final void updateResourceSchemaNames(final ResourceTO resourceTO) {\n try {\n resourceSchemaNames = (resourceTO != null && resourceTO.getConnectorId() != null) ? restClient.getSchemaNames(resourceTO.getName()) : Collections.EMPTY_LIST;\n } catch (Exception e) {\n LOG.warn(\"String_Node_Str\"... |
"private static StringBuffer _translateSingleFSMActor(FSMActor actor, String span, boolean isController, String controllerName, String refinementStateName) throws IllegalActionException {\n String refinementStateActivePremise = \"String_Node_Str\" + refinementStateName.trim();\n StringBuffer returnSmvFormat = new... |
"public Object setValue(Object newValue) {\n final Object previousValue = this.value;\n this.value = newValue;\n return oldValue;\n}\n"
|
"private static void computeModels(Map<URI, URI> pluginMap, Map<String, URI> nsURIMap) {\n IWorkspaceRoot root = getWorkspaceRoot();\n Object[] activeModels = (Object[]) invoke(null, PLUGIN_REGISTRY_GET_ACTIVE_MODELS_METHOD, Boolean.FALSE);\n LOOP: for (Object activeModel : activeModels) {\n Object bund... |
"private Vector<String> ContainerLinks(String url) {\n Vector<String> links = new Vector<String>();\n boolean fileDownloaded = false;\n if (!url.startsWith(\"String_Node_Str\"))\n url = \"String_Node_Str\" + url;\n try {\n RequestInfo reqinfo = getRequest(new URL(url));\n String cookie ... |
"public String getReplacementName(String oldName) {\n return whitelist.contains(oldName) ? delegate.getReplacementName(oldName) : null;\n}\n"
|
"public static void main(String[] args) {\n String argument = args[0];\n Properties props = readCybsProperty();\n String requestID;\n String decision;\n Document authReply;\n Document captureReply;\n int choice = sample.enum_exist(argument);\n switch(choice) {\n case 0:\n authR... |
"public void testReplaceIndexedWithUnindexedByByYear() throws Exception {\n testReplaceIndexedColWithUnindexed(PartitionBy.YEAR, 1000000 * 60 * 5 * 24L * 10L, 2, false);\n}\n"
|
"void publish(MessagingService messagingService) throws IOException {\n if (payloads.isEmpty()) {\n return;\n }\n int failureCount = 0;\n long startTime = -1L;\n boolean done = false;\n while (!done) {\n try {\n messagingService.publish(StoreRequestBuilder.of(topicId).addPaylo... |
"private UpdateReference createUpdatedReferenceOperation(EObject left, EObject right, EReference reference, EObject addedValue, EObject deletedValue) {\n final UpdateReference operation = DiffFactory.eINSTANCE.createUpdateReference();\n operation.setLeftElement(left);\n operation.setRightElement(right);\n o... |
"public File getMapDBFile() {\n return MapDBManager.createPath(ResourceManager.getMapDBFilePath(), ResourceManager.getMapDBFileName(this));\n}\n"
|
"public static void setPosixOwners(String path, int ownerId, int groupId) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException {\n Class<?> fileSystemsClass = Class.forName(\"String_Node_Str\");\n Class<?> fileSyste... |
"public void onBindViewHolder(ConnectionViewHolder holder, int position) {\n final PublicizeConnection connection = mConnections.get(position);\n holder.txtUser.setText(connection.getExternalDisplayName());\n holder.divider.setVisibility(position == 0 ? View.GONE : View.VISIBLE);\n if (connection.hasExterna... |
"private void loginToWPCom(WebView view, SiteModel site) {\n String authenticationURL = WPWebViewActivity.getSiteLoginUrl(site);\n String postData = WPWebViewActivity.getAuthenticationPostData(authenticationURL, mRedirectPage, site.getUsername(), site.getPassword(), mAccountStore.getAccessToken());\n view.post... |
"private SetMap<BufferedInitialSet> populateDivets(FlatFile file) {\n SetMap<BufferedInitialSet> tSet = new SetMap<>();\n readNameMappings divMaps = new readNameMappings();\n ArrayList<ReadPair> tempholder = new ArrayList<>();\n BufferedReader divetReader = ReaderReturn.openFile(file.getDivet().toFile());\n... |
"public final void compute(Bounds bo) throws ChartException, IllegalArgumentException {\n bo = bo.scaledInstance(dPointToPixel);\n dSeriesThickness = (ids.getDpiResolution() / 72d) * cwa.getSeriesThickness();\n double dX = bo.getLeft() + insCA.getLeft();\n double dY = bo.getTop() + insCA.getTop();\n doub... |
"public BigDecimal setScale(final BigDecimal decimal) {\n return decimal.setScale(PRECISION, ROUNDING_MODE);\n}\n"
|
"public static Connection createConnection(Sql2o sql2o) {\n Properties conProps = new Properties();\n conProps.put(\"String_Node_Str\", sql2o.getUser());\n conProps.put(\"String_Node_Str\", sql2o.getPass());\n Connection con;\n try {\n if (!sql2o.getUrl().startsWith(\"String_Node_Str\")) {\n ... |
"private void onPanelDragged(int newTop) {\n mSlideState = PanelState.DRAGGING;\n mSlideOffset = computeSlideOffset(newTop);\n if (mParallaxOffset > 0 && mSlideOffset >= 0) {\n int mainViewOffset = getCurrentParalaxOffset();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n ... |
"protected static String locateSystemLog() {\n String filename = null;\n String osName = service.getInfo().getOsName();\n if (osName.equals(\"String_Node_Str\"))\n filename = \"String_Node_Str\";\n else if (osName.equals(\"String_Node_Str\")) {\n String[] filenames = { \"String_Node_Str\", \"S... |
"public void run() {\n refreshSummary(summary);\n}\n"
|
"public void remove() throws Exception {\n IShardingKey<?> shardingValue = new ShardingKey<Integer>(CLUSTER_KLSTORAGE, 1);\n DB db = cacheClient.getDbCluster().selectDbFromMaster(\"String_Node_Str\", shardingValue);\n primaryCache.remove(db, 1);\n Assert.assertNull(primaryCache.get(db, 1));\n for (int i ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.