content stringlengths 40 137k |
|---|
"private void optimizeMC(int maxIter) throws StructureException {\n lengthHistory = new ArrayList<Integer>();\n rmsdHistory = new ArrayList<Double>();\n scoreHistory = new ArrayList<Double>();\n int conv = 0;\n int stepsToConverge = Math.max(maxIter / 50, 1000);\n int i = 1;\n while (i < maxIter &&... |
"private void updateStateForChildTransitioningInBottom(StackScrollAlgorithmState algorithmState, float transitioningPositionStart, float bottomPeakStart, float currentYPosition, StackScrollState.ViewState childViewState, int childHeight) {\n algorithmState.partialInBottom = 1.0f - ((transitioningPositionStart - curr... |
"public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Path target = Files.copy(file, toPath.resolve(fromPath.relativize(file)), copyOption);\n target.toFile().setWritable(false);\n return FileVisitResult.CONTINUE;\n}\n"
|
"private void processDownloadedUpdates(List<UFXProtocol.Update> updates, List<Path> files) throws IOException, Ex.BadUpdateHash {\n int cursor = 0;\n for (Path path : files) {\n UFXProtocol.Update update = updates.get(cursor);\n Path base = pathToOrigJar;\n if (update.getVersion() > highestLo... |
"private void buildGraphForBuildTargets(Set<BuildTarget> targets, Executor executor) throws QueryException, InterruptedException {\n try {\n graph = params.getParser().buildTargetGraph(params.getBuckEventBus(), params.getCell(), enableProfiling, executor, targets);\n } catch (BuildFileParseException | Buil... |
"private void skipNonIncluded() {\n while (hasNext && !included[iter.i][iter.j][iter.k]) {\n hasNext = iter.next();\n }\n}\n"
|
"private LinkedList<SearchToken> getRecentQueue() {\n LinkedList<SearchToken> queue = (LinkedList<SearchToken>) preferenceProvider.getObject(SessionIndex.RECENT_STORE_SEARCH);\n if (queue == null) {\n return new LinkedList<RecentSearchToken>();\n } else {\n return queue;\n }\n}\n"
|
"public void testGetChildrenModules_noChildren() {\n INode node = mock(INode.class);\n IComponent component = mock(IComponent.class);\n when(node.getComponent()).thenReturn(component);\n when(component.getName()).thenReturn(\"String_Node_Str\");\n List<ModuleNeeded> childrenModules = JavaProcessUtil.getC... |
"public IdentifierImpl highest_active_goal_propose(IdentifierImpl start_goal) {\n for (IdentifierImpl goal = start_goal; goal != null; goal = goal.lower_goal) {\n if ((!goal.ms_i_assertions.isEmpty()) || (!goal.ms_retractions.isEmpty()))\n return goal;\n }\n if (!context.soarReteListener.nil_... |
"public String decrypt(String ciphertext) throws CryptoException {\n try {\n decryptCipher.init(Cipher.DECRYPT_MODE, key);\n return new String(decryptCipher.doFinal(Base64.decode(ciphertext)), \"String_Node_Str\");\n } catch (BadPaddingException e) {\n throw new CryptoException(CryptoExceptio... |
"public Instant getGregorianCutover() {\n return iCutoverInstant;\n}\n"
|
"public ItemStack decrStackSize(int index, int amount) {\n if (CrafterContainerFactory.getInstance().isGhostSlot(index) || CrafterContainerFactory.getInstance().isGhostOutputSlot(index)) {\n ItemStack old = stacks[index];\n stacks[index] = null;\n if (old == null) {\n return null;\n ... |
"public void refreshRecordTypeBucket(TypeBucket typeBucket) {\n String bucketId = typeBucket.getBucketId();\n incCount();\n synchronized (getBucketMonitor(bucketId)) {\n List<RecordType> recordTypes = typeBucket.getRecordTypes();\n Map<SchemaId, RecordType> bucket = buckets.get(bucketId);\n ... |
"public void addValue(int index, IValue value) {\n IValue[] temp = new IValue[++this.valueCount];\n System.arraycopy(this.values, 0, temp, 0, index);\n temp[index] = value;\n System.arraycopy(this.values, index, temp, index + 1, this.valueCount - index - 1);\n this.values = temp;\n}\n"
|
"private String _buildGlobalCacheKey(String whereSql, String clusterName, String tableName) {\n StringBuilder cacheKey = new StringBuilder(\"String_Node_Str\");\n cacheKey.append(clusterName).append(\"String_Node_Str\");\n cacheKey.append(tableName).append(\"String_Node_Str\");\n if (StringUtil.isNotBlank(w... |
"private boolean evalCallProperties(Context context, FunctionCall fc, TaskProps propVals, Map<String, String> renames) throws UserException {\n if (fc.annotations().isEmpty()) {\n return false;\n }\n List<Pair<TaskPropKey, Var>> propFutures = new ArrayList<Pair<TaskPropKey, Var>>();\n List<Var> waitV... |
"protected Composite getComponent(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.POPUP_LEGEND_TITLE);\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glMain = new GridLayout();\n glMain.horizontalSpacing = 5;\n glMain.verticalSpacing = 5;\n g... |
"public void onPageSelected(int position) {\n invalidateOptionsMenu();\n if (position == PAGE_CONTENT) {\n setTitle(StringUtils.unescapeHTML(WordPress.getCurrentBlog().getBlogName()));\n } else if (position == PAGE_SETTINGS) {\n setTitle(mPost.isPage() ? R.string.page_settings : R.string.post_set... |
"public void mouseUp(MouseEvent e) {\n txtStopWords.setText(\"String_Node_Str\");\n FileDialog fd = new FileDialog(shell, SWT.OPEN);\n fd.open();\n String oFile = fd.getFileName();\n String dir = fd.getFilterPath();\n txtStopWords.setText(dir + System.getProperty(\"String_Node_Str\") + oFile);\n}\n"
|
"private OperandRef resolveOperandRef(String identifier) {\n if (!functionDefs.empty()) {\n for (OperandDef operand : functionDefs.peek().getOperand()) {\n if (operand.getName().equals(identifier)) {\n return (OperandRef) of.createOperandRef().withName(identifier).withResultType(oper... |
"public Tx buildTx(Address address, String changeAddress, List<Tx> unspendTxs, Tx tx) {\n List<Out> outs = TxBuilder.getUnspendOuts(unspendTxs);\n Collections.sort(outs, new Comparator<Out>() {\n public int compare(Out out1, Out out2) {\n int depth1 = 0;\n int depth2 = 0;\n ... |
"private static Member createPropertyMemberIfValidProperty(Clazz clazz, TypeElement interfaceElement, Configuration configuration, ExecutableElement methodElement, PropertyKind kind, DiagnosticMessageConsumer errorConsumer) throws Exception {\n TypeMirror propertyType;\n List<? extends VariableElement> setterPara... |
"public void actionPerformed(ActionEvent e) {\n if (parent == null) {\n return;\n }\n Configuration config = parent.getConfiguration();\n if (config == null) {\n return;\n }\n if (cacheDir != null) {\n File fromConfig = config.getStorageDir();\n if (fromConfig != null && fr... |
"public void showSessionForActiveService(IVoiceInteractionSessionShowCallback showCallback) {\n enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);\n synchronized (this) {\n if (mImpl == null) {\n Slog.w(TAG, \"String_Node_Str\" + \"String_Node_Str\");\n re... |
"private String getSingleColumnValue(List call, String column) {\n VariantPropertyType type = getColumnType(column);\n Object value = call.get(indexMap.get(column));\n switch(type) {\n case STRING:\n return value.toString();\n case NUMERIC_COLLECTION:\n case STRING_COLLECTION:\n... |
"public UnitOfWork begin() {\n if (rollbackOnly) {\n return this;\n }\n active(session, trx -> log.debug(\"String_Node_Str\", oid(session), oid(trx)), trx -> {\n log.debug(\"String_Node_Str\", oid(session), oid(trx));\n trx.begin();\n });\n return this;\n}\n"
|
"private Mapper createMapperInstance(String userMapper) {\n try {\n return (Mapper) context.getConfiguration().getClassLoader().loadClass(userMapper).newInstance();\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\" + userMapper);\n throw Throwables.propagate(e);\n }\n}\n"
|
"public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(STATE_SELECTED_YEAR_SPINNER_POSITION, mCurrentSelectedYearPosition);\n outState.putInt(STATE_SELECTED_NAV_ID, mCurrentSelectedNavigationItemId);\n}\n"
|
"public Object AopTestMethod(ProceedingJoinPoint call) throws Throwable {\n TransactionLegacy txn = TransactionLegacy.open(call.getSignature().getName());\n Object ret = null;\n try {\n ret = call.proceed();\n } finally {\n txn.close();\n }\n return ret;\n}\n"
|
"private boolean craftOneItemNew(CraftingRecipe craftingRecipe) {\n IRecipe recipe = craftingRecipe.getCachedRecipe(worldObj);\n if (recipe == null) {\n return false;\n }\n Map<Integer, ItemStack> undo = new HashMap<Integer, ItemStack>();\n if (!testAndConsumeCraftingItems(craftingRecipe, undo)) {... |
"public static void removeServiceFunctionFromChain(ServiceFunction serviceFunction) {\n LOG.debug(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n ServiceFunctionChains serviceFunctionChains = getServiceFunctionChainsRef();\n if (serviceFunctionChains != null) {\n List<ServiceFunctionC... |
"public void checkErrors(DownloadLink theLink, boolean checkAll, String passCode) throws NumberFormatException, PluginException {\n if (checkAll) {\n if (BRBEFORE.contains(\"String_Node_Str\") || BRBEFORE.contains(\"String_Node_Str\") || BRBEFORE.contains(\"String_Node_Str\")) {\n logger.warning(\"... |
"public DockerClientConfigBuilder withProperties(Properties p) {\n return withUri(p.getProperty(DOCKER_IO_URL_PROPERTY)).withVersion(p.getProperty(DOCKER_IO_VERSION_PROPERTY)).withUsername(p.getProperty(DOCKER_IO_USERNAME_PROPERTY)).withPassword(p.getProperty(DOCKER_IO_PASSWORD_PROPERTY)).withEmail(p.getProperty(DOC... |
"public void register(SInternalServicePluginConfiguration internalServicePluginConfiguration, final PluginConfiguration pluginConfiguration) {\n ServiceDescriptor clashDetection = StoreFactory.eINSTANCE.createServiceDescriptor();\n clashDetection.setProviderName(\"String_Node_Str\");\n clashDetection.setIdenti... |
"public void initialize() {\n pilot.setTravelSpeed(speed);\n pilot.setRotateSpeed(speed / (WHEEL_BASE * Math.PI) * 360.0f);\n registerStopButtonInterrupt();\n Timer matchTimer = initMatchTimer();\n startSonicAvoidanceThread();\n footUp();\n while (light.getColorID() == Color.BLACK) {\n compe... |
"public void parseDependenciese(Node node) {\n NamedNodeMap attributes = node.getAttributes();\n Long valueReference = modelVariables.get(Integer.parseInt(attributes.getNamedItem(\"String_Node_Str\").getNodeValue()) - 1).valueReference;\n Node dependencyNode = attributes.getNamedItem(\"String_Node_Str\");\n ... |
"private List<StatusDescription> validateInternalConfiguration(CourseEditorEnv cev) {\n List<StatusDescription> sdList = new ArrayList<>(5);\n ModuleConfiguration config = getModuleConfiguration();\n boolean hasScoring = config.getBooleanSafe(GTASK_GRADING);\n if (hasScoring) {\n if (!config.getBoole... |
"public Group getAltLocGroup(Character altLoc) {\n try {\n if (getAtom(0).getAltLoc().equals(altLoc)) {\n return this;\n }\n if (altLocs == null || altLocs.size() == 0)\n return null;\n for (Group group : altLocs) {\n if (group.getAtoms().isEmpty())\n ... |
"public IndexingContext createIndexContext(ManagedRepository repository) throws RepositoryAdminException {\n IndexingContext context = indexer.getIndexingContexts().get(repository.getId());\n if (context != null) {\n log.debug(\"String_Node_Str\", repository.getId());\n return context;\n }\n F... |
"public List<ClassInfo> findOrder() {\n printDependency(false);\n Set<ClassInfo> cliSet = clinit.keySet();\n List<ClassInfo> order = new LinkedList<ClassInfo>();\n int maxIter = cliSet.size();\n for (int i = 0; i < maxIter && cliSet.size() != 0; ++i) {\n Iterator itCliSet = cliSet.iterator();\n ... |
"private State _getNonTransientState() throws IllegalActionException {\n FSMActor controller = getController();\n State currentState = controller.currentState();\n TypedActor[] currentRefinements = currentState.getRefinement();\n while (currentRefinements == null) {\n chooseTransition(currentState);\... |
"private String convertToString(Map<String, String> map) {\n StringBuilder buffer = new StringBuilder(256);\n for (Map.Entry<String, String> entry : map.entrySet()) {\n buffer.append(entry.getKey()).append(\"String_Node_Str\").append(entry.getValue()).append(\"String_Node_Str\");\n }\n return buffer.... |
"static String generateHREFName(IProgramElement decl) {\n String hrefLink = decl.toLabelString().replace(\"String_Node_Str\", \"String_Node_Str\");\n return hrefLink;\n}\n"
|
"private TdTable createTdTable() {\n Connection conn = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n Catalog catalog = CatalogHelper.createCatalog(\"String_Node_Str\");\n ConnectionHelper.addCatalog(catalog, conn);\n List<TdTable> tables = new ArrayList<TdTable>();\n TdTable tdTable = Relatio... |
"private static AbstractAlgorithm createNoneNone(final SolutionSpace solutionSpace, NodeChecker checker, FLASHStrategy strategy) {\n PhaseAnonymityProperty anonymityProperty = PhaseAnonymityProperty.ANONYMITY;\n NodeAction triggerSkip = new NodeAction() {\n public boolean appliesTo(Transformation node) {\n... |
"public void checkpoint() throws BabuDBException, InterruptedException {\n if (replication_isSlave()) {\n throw new BabuDBException(ErrorCode.REPLICATION_FAILURE, slaveProtection);\n }\n List<LSMDatabase> dbListCopy;\n synchronized (dbModificationLock) {\n dbListCopy = new ArrayList<LSMDatabas... |
"public void appendSet(StringBuilder sqlSb, SetOperationType setType, boolean isSubquery, List<String> operands, List<? extends OrderByElement> orderByElements, String limit, String offset) {\n if (isSubquery) {\n sqlSb.insert(0, '(');\n }\n if (operands.size() > 0) {\n String operator = getOpera... |
"public static void saveAll() {\n for (Map.Entry<String, Region> entry : RegionManager.getRegionMap().entrySet()) {\n Region region = entry.getValue();\n for (Entry<RegionSetting, Object> setting : region.settings.entrySet()) regionConfig.setProperty(region.Name + \"String_Node_Str\" + setting.getKey()... |
"public boolean canAuthenticate() {\n return this != HUDSON_3_0;\n}\n"
|
"public void dispose(GLContext context) {\n GL gl = context.getGL();\n if (textureHandles != null && textureHandles.length != 0) {\n gl.glDeleteTextures(textureHandles.length, textureHandles, 0);\n }\n if (vertexCoordHandles != null && vertexCoordHandles.length != 0) {\n gl.glDeleteBuffers(ver... |
"public void stop() {\n workerGroup.shutdownGracefully().syncUninterruptibly();\n}\n"
|
"public void test() {\n EntityManager manager = createEntityManager();\n ((JpaEntityManager) manager).getUnitOfWork().getParent().getIdentityMapAccessor().initializeAllIdentityMaps();\n manager.getTransaction().begin();\n for (int count = 0; count < 500; count++) {\n Employee employee = new Employee(... |
"public void testValidJAR() throws IOException {\n File jar = folder.newFile(\"String_Node_Str\");\n SimpleIndexSearcher mockedIndexer = mock(SimpleIndexSearcher.class);\n when(mockedIndexer.searchByFingerprint(Fingerprints.sha1(exampleFile))).thenReturn(Optional.fromNullable(\"String_Node_Str\"));\n Finger... |
"public double getExplosiveSize() {\n return ExplosiveRegistry.getExplosiveSize(explosive);\n}\n"
|
"private void __renderDocument(OutputStream out) throws Exception {\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n String documentFile = ParameterAccessor.getReportDocument(request, viewer.getReportDocument(), false);\n IReportDocument doc = ReportEngineService.getInstance().op... |
"private static Container populateContainerBuilderWithFile(ContainerBuilder builder, TemporaryFolder testFolder) throws IOException {\n File testFile = createTestFile(testFolder);\n Container container = builder.withConfiguration(new Configuration(Configuration.Mode.TEST)).withDataFile(testFile.getPath(), \"Strin... |
"private String getPartialSentence(Integer userSelection, String[] sentenceArray) {\n StringBuilder lastSentenceTemp = new StringBuilder();\n for (int i = 0; i < userSelection; i++) {\n String s = sentenceArray[i];\n lastSentenceTemp.append(s).append(\"String_Node_Str\");\n }\n return lastSent... |
"protected void okPressed() {\n TableUtils.export(dataChooserComposite.getDataDomain(), sFileName, dataChooserComposite.getRecordPerspective(), dataChooserComposite.getDimensionPerspective(), null, null, false, false);\n super.okPressed();\n}\n"
|
"public void register(final ExecutionVertexID vertexID, final Environment environment, final Set<ChannelID> activeOutputChannels) {\n final TaskContext taskContext = new TaskContext();\n synchronized (this.registeredChannels) {\n for (int i = 0; i < environment.getNumberOfOutputGates(); ++i) {\n ... |
"public void testLockMissing_TempIndex() throws Exception {\n final File idx = new File(db.getDirectory(), \"String_Node_Str\");\n final File lck = new File(db.getDirectory(), \"String_Node_Str\");\n assertFalse(idx.exists());\n assertFalse(lck.exists());\n final DirCache dc = DirCache.lock(idx, db.getFS... |
"public String generateXpath(List<String> list) throws Exception {\n StringBuilder b = new StringBuilder();\n for (String ppath : list) {\n String[] path = splitPath(ppath);\n if (path[path.length - 1].endsWith(\"String_Node_Str\")) {\n ElementDefn defn = definitions.getElementDefn(path[0... |
"public void start(BundleContext bundleContext) throws Exception {\n Activator.context = bundleContext;\n Activator.instance = this;\n initializeProxyServiceFactoryBundle();\n rsaProps = new Properties();\n rsaProps.put(RemoteServiceAdmin.SERVICE_PROP, new Boolean(true));\n String[][] supportedConfigs... |
"private static void mergeHints(DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet) {\n Iterator elmtIter;\n if (modelDataSet instanceof OdaDataSetHandle) {\n elmtIter = modelDataSet.resultSetIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n OdaRe... |
"public void run() throws PersistenceException {\n try {\n for (String name : names) {\n String path = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();\n path = path + File.separatorChar + projectLabel + File.separatorChar + ERepositoryObjectType.getFolderN... |
"private final void removeHistoryEntry(final Node node) {\n final int[] snapshot = nodeToSnapshot.remove(node);\n switch(requirements) {\n case ARXConfiguration.REQUIREMENT_COUNTER | ARXConfiguration.REQUIREMENT_SECONDARY_COUNTER | ARXConfiguration.REQUIREMENT_DISTRIBUTION:\n for (int i = 0; i <... |
"public ClassDefinitionBuilder addCharField(String fieldName) {\n check();\n fieldDefinitions.add(new FieldDefinitionImpl(index++, fieldName, FieldType.CHAR));\n return this;\n}\n"
|
"static void analyzeMistakes(Config config, IMLGradientBoosting boosting, MultiLabelClfDataSet dataSet) throws Exception {\n int numClassesInTrain = getNumClassesInTrain(config);\n int numClassesInTest = dataSet.getNumClasses();\n LabelTranslator labelTranslator = dataSet.getSetting().getLabelTranslator();\n ... |
"private void removeApp(int index) {\n final int count = mState.iconCount - index - 1;\n final int src = index + 1;\n System.arraycopy(mIcons, src, mIcons, index, count);\n System.arraycopy(mIconIds, src, mIconIds, index, count);\n System.arraycopy(mLabels, src, mLabels, index, count);\n System.arrayc... |
"public String getColumnText(Object element, int columnIndex) {\n SelectionChoice choice = ((SelectionChoice) element);\n final int valueIndex = valueTable.getColumnProperties().length - 2;\n String text = null;\n if (valueTable.getColumnProperties().length == 4 && columnIndex == 1) {\n if (isDefault... |
"protected final boolean isLandscapeBlocking(short x, short y) {\n ELandscapeType landscape = landscapeGrid.getLandscapeTypeAt(x, y);\n return landscape.isWater() || landscape == ELandscapeType.MOOR || landscape == ELandscapeType.MOORINNER || landscape == ELandscapeType.SNOW;\n}\n"
|
"private void checkPropertyAccessHelper(JSType objectType, String propName, NodeTraversal t, Node n) {\n if (!objectType.isEmptyType() && reportMissingProperties && (!NodeUtil.isPropertyTest(compiler, n) || objectType.isStruct())) {\n if (!typeRegistry.canPropertyBeDefined(objectType, propName)) {\n ... |
"public static Type retrievedType(Typed t, boolean recursive) {\n if (isScalarFuture(t) || isScalarUpdateable(t)) {\n return new ScalarValueType(t.type().primType());\n } else if (isFile(t)) {\n return new FileValueType(t.type().fileKind());\n } else if (isRef(t)) {\n return t.type().baseT... |
"static OPT_Instruction instanceOf(OPT_Instruction s, OPT_IR ir) {\n OPT_RegisterOperand result = InstanceOf.getClearResult(s);\n VM_TypeReference LHStype = InstanceOf.getType(s).getTypeRef();\n OPT_Operand ref = InstanceOf.getClearRef(s);\n OPT_Instruction next = s.nextInstructionInCodeOrder();\n if (ne... |
"public void actionPerformed(ActionEvent e) {\n int action = JOptionPane.showConfirmDialog(null, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.YES_NO_OPTION);\n if (action == JOptionPane.YES_OPTION) {\n proxy.removeAssignment(todayAssigment.get(i).getCode());\n guiDailyAssignments.dispatchEv... |
"public static Result processResults(ProcessOutput output) {\n Result result = new Result();\n result.errorOutput = output.getStderr();\n try {\n List<FileResult> fileResults = parseInternal(output.getStdout());\n if (!fileResults.isEmpty()) {\n result.warns = fileResults.get(0).messag... |
"public void get(HttpRequest httpRequest, HttpResponder httpResponder, String namespace, String name) throws Exception {\n SecureKeyId secureKeyId = new SecureKeyId(namespace, name);\n httpResponder.sendContent(HttpResponseStatus.OK, ChannelBuffers.wrappedBuffer(secureStore.getSecureData(namespace, name).get()), ... |
"public void testImportCourse() throws IOException, URISyntaxException {\n URL cpUrl = CoursesTest.class.getResource(\"String_Node_Str\");\n assertNotNull(cpUrl);\n File cp = new File(cpUrl.toURI());\n assertTrue(conn.login(\"String_Node_Str\", \"String_Node_Str\"));\n URI request = UriBuilder.fromUri(ge... |
"private static Set<FileSystemClient> createClients(EventScheduler scheduler, Set<Machine> machines, MetadataServer herald) {\n Set<FileSystemClient> newClients = new HashSet<FileSystemClient>();\n for (Machine machine : machines) {\n newClients.add(new FileSystemClient(aPlaceForEventsGeneratedBySimulation... |
"public boolean authenticate(final Request request, final Response response, final LoginConfig loginConfig) {\n Principal principal = request.getUserPrincipal();\n final AuthorizationHeader authorizationHeader = new AuthorizationHeader(request);\n final boolean ntlmPost = authorizationHeader.isNtlmType1PostAut... |
"private void showProcessorParameters() {\n while (parametersTableModel.getRowCount() > 0) {\n parametersTableModel.removeRow(0);\n }\n ProcessorPreset selectedProcessor = (ProcessorPreset) processorsList.getSelectedValue();\n if (selectedProcessor != null) {\n Map<String, Object> params = sel... |
"public void datesNameChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n Pool p1 = TestUtil.clone(p);\n p1.setEndDate(new Date());\n List<Pool> existingPools = Arrays.asList(p1);\n List<PoolUpdate> updates = this.poolRules.updatePools(p, existingPools, p.getQuantity(), ne... |
"public void error(SAXParseException exception) throws SAXException {\n if (null == errorHandler) {\n throw exception;\n }\n errorHandler.error(marshalSAXParseException(exception));\n}\n"
|
"private void initializeDefaultPreferences() {\n final IEclipsePreferences defaultCorePreferences = DefaultScope.INSTANCE.getNode(PLUGIN_ID);\n defaultCorePreferences.putInt(EMFComparePreferenceConstants.PREFERENCES_KEY_SEARCH_WINDOW, EMFComparePreferenceConstants.PREFERENCES_DEFAULT_SEARCH_WINDOW);\n}\n"
|
"public boolean cancelExEntry(final Editor editor, final DataContext context) {\n CommandState.getInstance(editor).popState();\n KeyHandler.getInstance().reset(editor);\n ExEntryPanel panel = ExEntryPanel.getInstance();\n panel.deactivate(true);\n return true;\n}\n"
|
"public List<ContactDuplicatedProperty> extractProperties(Contact newContact, Contact oldContact, Language language) {\n if (!Objects.equals(newContact.getContactModel().getId(), oldContact.getContactModel().getId())) {\n throw new IllegalStateException(\"String_Node_Str\" + newContact.getContactModel().getId... |
"protected Iterator<EndpointInterface> getLoop(TemplateModel model) throws TemplateException {\n WsdlInfo wsdl = this.wsdl;\n if (wsdl == null) {\n throw new MissingParameterException(\"String_Node_Str\");\n }\n return wsdl.getEndpointInterfaces().iterator();\n}\n"
|
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n int index = TransformerMainPage.this.stepsList.getSelectionIndex();\n if (index > 0) {\n TransformerMainPage.this.comitting = true;\n String val = TransformerMainPage.this.stepsList.getItem(index);\n TransformerMainPage.... |
"public void init(Execution exec, Execution parent) throws Exception {\n Desktop desktop = exec.getDesktop();\n desktop.removeListener(_deferredActivator);\n BinderImpl.this.didActivate();\n}\n"
|
"private boolean downloadCertificateRemotelyViaHttps(String packageName) {\n NetworkInfo activeNetworkInfo = mConnectivityManager.getActiveNetworkInfo();\n if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) {\n String urlString = packageNameToCertificateMap.get(packageName);\n HttpsUR... |
"private void openFile() {\n mLogger.debug(\"String_Node_Str\");\n closeFile();\n mNextRolloverTime = MiscUtil.getNextRolloverTime(mNextRolloverTime, (mRolloverIntervalSeconds * 1000L));\n long startTime = MiscUtil.getRolloverStartTime(mNextRolloverTime, (mRolloverIntervalSeconds * 1000L));\n mHdfsFilena... |
"private IAggregationResultSet[] populateRs(CubeQueryExecutor executor, AggregationDefinition[] aggrDefns, CubeQueryExecutorHelper cubeQueryExcutorHelper2, MeasureNameManager manager, StopSign stopSign, boolean saveToRD) throws IOException, BirtException {\n IAggregationResultSet[] rs;\n String id = null;\n if... |
"public void testMissingArguments() {\n String messageFormat = \"String_Node_Str\";\n Exception ex = new OseeCoreException(messageFormat, 1, 0);\n Assert.assertTrue(ex.getMessage(), ex.getMessage().contains(\"String_Node_Str\" + messageFormat + \"String_Node_Str\"));\n}\n"
|
"public void loadAll_1Found1Not() throws Exception {\n SimpleCacheLoader<Integer> loader = new SimpleCacheLoader<Integer>();\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>().setCacheLoaderFactory(Factories.of(loader)));\n Intege... |
"protected String generatePrimaryFragmentString(TreeLogger logger, LinkerContext context, String strongName, String js, int length) throws UnableToCompleteException {\n StringBuffer b = new StringBuffer();\n b.append(getModulePrefix(logger, context, strongName, length));\n b.append(js);\n b.append(getModule... |
"public int getRingBufferSize() {\n return mRingBufSize - 1;\n}\n"
|
"private void getlocal(LuaState vm) {\n LuaState threadVm = vm;\n if (vm.gettop() >= 4) {\n threadVm = vm.checkthread(2).vm;\n vm.remove(2);\n }\n int level = vm.checkint(2);\n int local = vm.checkint(3);\n LString name = getlocal(threadVm, threadVm.cc - (level - 1), local);\n if (nam... |
"public static void debug(Object info, Object... info2) {\n if (isDeObf) {\n StringBuilder temp = new StringBuilder(\"String_Node_Str\" + info);\n for (Object t : info2) temp.append(\"String_Node_Str\").append(t);\n logger.info(temp.toString());\n }\n}\n"
|
"protected void createInvoiceCfonbFile(Batch batchToExport) {\n try {\n AccountingBatch accountingBatch = Batch.find(batch.getId()).getAccountingBatch();\n cfonbExportService.exportInvoiceCFONB(batch.getStartDate(), accountingBatch.getDebitDate(), (List<Invoice>) Invoice.filter(\"String_Node_Str\", bat... |
"public void run(Document document, String type) {\n try {\n NamedEntitiesInText namedEntities = document.getNamedEntitiesInText();\n algorithmicResult = new HashMap<Integer, String>();\n DirectedSparseGraph<Node, String> graph = new DirectedSparseGraph<Node, String>();\n log.debug(\"Stri... |
"private boolean rearrangeWaitsRec(Logger logger, Function fn, Block block, ExecContext currContext) {\n List<WaitStatement> toInline = new ArrayList<WaitStatement>();\n boolean changed = false;\n for (Continuation c : block.getContinuations()) {\n ExecContext newContext = c.childContext(currContext);\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.