content stringlengths 40 137k |
|---|
"public UmaProviderSettings get(HttpServletRequest request, String realm) throws NotFoundException {\n synchronized (providerSettingsMap) {\n UmaProviderSettingsImpl providerSettings = providerSettingsMap.get(realm);\n if (providerSettings == null) {\n OAuth2ProviderSettings oAuth2ProviderSe... |
"public boolean remove(Data key, Object value, String source, int completionId, String origin) {\n final long now = Clock.currentTimeMillis();\n final long start = System.nanoTime();\n R record = records.get(key);\n int hitCount = 0;\n boolean removed = false;\n try {\n if (recordNotExistOrExpi... |
"public int insert(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n getHTable(_table);\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\" + e);\n return ServerError;\n }\n if (_debug) {\n System.out.println(\"String_Node_Str\" + key);\... |
"public static int getDataType(Class objClass) {\n for (int i = 0; i < classes.length; i++) {\n if (classes[i].equals(objClass)) {\n return typeCodes[i];\n }\n }\n return UNKNOWN_TYPE;\n}\n"
|
"public boolean tryInvPush(Block invBlock, Block startBlock, BlockFace forward, Material[] materials, int amount) {\n Inventory inventory;\n BlockState state = invBlock.getState();\n if (state instanceof ContainerBlock)\n inventory = ((ContainerBlock) state).getInventory();\n else\n return deb... |
"public boolean isStandard() {\n return ordinal < MAX_ORDINAL;\n}\n"
|
"private void testNestAggregation(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = \"Stri... |
"private void removeUnusedSymbols(Collection<NameInfo> allNameInfo) {\n boolean changed = false;\n for (NameInfo nameInfo : allNameInfo) {\n if (!nameInfo.isReferenced()) {\n for (Symbol declaration : nameInfo.getDeclarations()) {\n boolean canRemove = false;\n if (... |
"public BigDecimal getSplitFactor() {\n return numerator.divide(denominator, 10, RoundingMode.HALF_UP);\n}\n"
|
"public static String EREPLACE(String oldStr, String newStr, String replacement) {\n return CHANGE(oldStr, newStr, replacement);\n}\n"
|
"private int findBranchIndex(Label jumpSource, Label jumpTarget) {\n for (int i = branches.size() - 2; i >= 0; i -= 2) {\n if (jumpSource == branches.get(i).label && jumpTarget == branches.get(i + 1).label) {\n return i;\n }\n }\n return -1;\n}\n"
|
"public static void beforeClass() throws IOException {\n zkServer = InMemoryZKServer.builder().setDataDir(TEMP_FOLDER.newFolder()).build();\n zkServer.startAndWait();\n CConfiguration conf = CConfiguration.create();\n conf.set(Constants.Zookeeper.QUORUM, zkServer.getConnectionStr());\n conf.setInt(Consta... |
"static private String parsePoints(String geometryStr, String geometryType) {\n StringBuilder geometry = new StringBuilder();\n String regex = \"String_Node_Str\";\n String[] pointsArray = geometryStr.split(regex);\n if (geometryStr.contains(\"String_Node_Str\") || geometryStr.contains(\"String_Node_Str\"))... |
"public Pair<Integer, String> execute(String command) throws IOException {\n Pair<Integer, String> r;\n if (remoteHost == null) {\n r = runNativeCommand(command, logAppender);\n } else {\n r = runRemoteCommand(command);\n }\n if (r.getFirst() != 0) {\n throw new IOException(\"String_... |
"public boolean equals(Object compared) {\n if (compared instanceof CallForwardingRule) {\n return toString().equals(((CallForwardingRule) compared).toString());\n }\n return false;\n}\n"
|
"public static String ECGeneralMsg(String cause, Throwable throwable) {\n String msg = \"String_Node_Str\";\n msg = msg + \"String_Node_Str\";\n if (cause.equals(\"String_Node_Str\")) {\n msg = msg + \"String_Node_Str\";\n } else {\n msg = msg + \"String_Node_Str\" + cause + \"String_Node_Str\... |
"public static void main(String[] args) {\n PistachiosClient client;\n try {\n client = new PistachiosClient();\n } catch (Exception e) {\n logger.info(\"String_Node_Str\", e);\n return;\n }\n Random rand = new Random();\n while (true) {\n try {\n long id = rand.... |
"private static void executeSqlScript(JdbcTemplate jdbcTemplate, EncodedResource resource, String databaseName, boolean continueOnError) throws DataAccessException {\n long startTime = System.currentTimeMillis();\n List<String> statements = new LinkedList<String>();\n LineNumberReader reader = null;\n try {... |
"private String extractDirectColumn(IBaseExpression dataExpr, ScriptContext cx, boolean isRow) throws BirtException {\n if (dataExpr instanceof IScriptExpression && !BaseExpression.constantId.equals(dataExpr.getScriptId())) {\n String exprText = ((IScriptExpression) dataExpr).getText();\n if (isRow) {\... |
"public void printContent() {\n StringBuilder row;\n boolean isFirstCol = true;\n row = new StringBuilder();\n for (String col : columnNames) {\n if (isFirstCol) {\n row.append(col);\n isFirstCol = false;\n } else {\n row.append(\"String_Node_Str\" + col);\n ... |
"public boolean next() throws IOException {\n while (true) {\n if (first)\n first = false;\n else {\n if (!super.next()) {\n curTerm = null;\n return false;\n }\n }\n curTerm = super.term();\n if (stopWords == null)\n ... |
"public String canCraft(IFusionCraftingInventory inventory, World world, BlockPos pos) {\n if (!isRecipeCatalyst(inventory.getStackInCore(0))) {\n return \"String_Node_Str\";\n }\n if (!inventory.getStackInCore(1).isEmpty()) {\n return \"String_Node_Str\";\n }\n IUpgradableItem item = (IUpg... |
"public void run() throws IOException {\n if (s_logger.isLoggable(Level.FINE))\n s_logger.fine(\"String_Node_Str\");\n for (; ; ) {\n m_selector.select();\n Set<SelectionKey> selectedKeys = m_selector.selectedKeys();\n for (SelectionKey key : selectedKeys) {\n ChannelHandler... |
"public void updatePoolSubProvidedProductsChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n Product subProd = TestUtil.createProduct(owner);\n p.setDerivedProduct(subProd);\n Product product1 = TestUtil.createProduct(owner);\n Product product2 = TestUtil.createProduct(ow... |
"private ResponseData readRequest() throws IOException {\n int lastSearchPos = inputBufferPosition;\n String headers = null;\n while (true) {\n for (int i = lastSearchPos; i < inputBufferAvail - 3; ++i) {\n if (inputBuffer[i + 0] == '\\r' && inputBuffer[i + 1] == '\\n' && inputBuffer[i + 2] =... |
"protected void createQueryForShowIfBlank() {\n IBaseResultSet[] blankRsets = new IBaseResultSet[1];\n blankRsets[0] = new BlankResultSet();\n rsets = blankRsets;\n context.setResultSets(rsets);\n rsetEmpty = false;\n}\n"
|
"public QueueDto get(RouterObject routerObject) throws NotFoundException {\n return getItem(new RouterObjectId(routerObject.getId(), routerObject.getRouterId()));\n}\n"
|
"public void onError(final int error) {\n if (error == SpeechRecognizer.ERROR_NO_MATCH && affectedWithGoogleSearchProblem() && !wasReadyForSpeech) {\n return;\n }\n if (recognitionActive) {\n recognitionActive = false;\n final AIError aiError;\n if (errorMessages.containsKey(error))... |
"protected void createRoot() {\n if (!isFirst) {\n int startColumn = cellContent.getColumn();\n int endColumn = startColumn + cellContent.getColSpan();\n columnWidth = tableLM.getCellWidth(startColumn, endColumn);\n }\n if (root == null) {\n CellArea cell = AreaFactory.createCellAre... |
"public void endContainer(IContent content, boolean finished, IContentEmitter emitter, boolean visible) {\n switch(content.getContentType()) {\n case IContent.TABLE_CONTENT:\n INode[] nodeList = currentBuffer.getNodeStack();\n nestCount--;\n if (currentTableIndex == nestCount ... |
"public void show() {\n frame = new JFrame(\"String_Node_Str\" + version);\n frame.setResizable(true);\n frame.setLocation(300, 300);\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n JPanel pane = (JPanel) frame.getContentPane();\n pane.setBackground(BG_COLOR);\n GridLayout layout... |
"public void untoggle(boolean toggle) {\n this.ignoreInput = toggle;\n}\n"
|
"void maybeFinishPendingAttribute(SourceLocation.Point currentPoint) {\n if (hasUnquotedAttributeValueParts()) {\n createUnquotedAttributeValue(currentPoint);\n } else if (hasQuotedAttributeValueParts()) {\n errorReporter.report(currentPoint.asLocation(filePath), FOUND_END_OF_ATTRIBUTE_STARTED_IN_AN... |
"public Object[] getChildren(Object parentElement) {\n if (parentElement instanceof IContainer) {\n IContainer container = (IContainer) parentElement;\n IResource[] members = null;\n try {\n members = container.members();\n } catch (CoreException e) {\n log.error(\"S... |
"public void testGetFreeToPlayChampions() throws Exception {\n try {\n Future<List<BasicChampData>> ftpChamps = handler.getFreeToPlayChampions();\n assertNotNull(ftpChamps.get(1, MINUTES));\n assertEquals((ftpChamps.get()).size(), 10);\n } catch (RequestException ex) {\n if (isNotServe... |
"public void registerEntitys() {\n int id = 0;\n EntityRegistry.registerModEntity(EntityVampireHunter.class, \"String_Node_Str\", id, VampirismMod.instance, 80, 1, true);\n EntityRegistry.addSpawn(EntityVampireHunter.class, 2, 0, 1, EnumCreatureType.monster, allBiomes);\n id++;\n EntityRegistry.registerM... |
"public void run() {\n List<ServiceConfiguration> checkServicesList = ServiceConfigurations.collect(new Predicate<ServiceConfiguration>() {\n public boolean apply(ServiceConfiguration arg0) {\n if (Bootstrap.isCloudController()) {\n return true;\n } else {\n ... |
"private void putItemsFromGround(EnumFacing currentSide) {\n int radius = 3;\n BlockPos offset = new BlockPos(currentSide.getDirectionVec());\n offset = new BlockPos(offset.getX() * radius, offset.getY() * radius, offset.getZ() * radius);\n AxisAlignedBB aabb = new AxisAlignedBB(this.pos, this.pos).expandXy... |
"private void dumpParameters(PortletRequest req) {\n if (logger.isLoggable(Level.FINEST)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\").append(type).append(\"String_Node_Str\");\n for (String name : parms.getNames()) {\n sb.append(\"String_Node_Str\").ap... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n if (fileToLargeError != null) {\n VelocityContainer vc = (VelocityContainer) formLayout.getComponent();\n vc.contextPut(\"String_Node_Str\", fileToLargeError);\n } else {\n htmlElement = uifactor... |
"public void startData(IDataContent data) {\n super.startData(data);\n HyperlinkDef url = parseHyperLink(data);\n if (((StyledElementDesign) data.getGenerateBy()).getMap() != null && ((StyledElementDesign) data.getGenerateBy()).getMap().getRuleCount() > 0) {\n engine.addData(data.getText().trim(), data.... |
"public void create() throws ResourceAllocationException {\n try {\n IpAddress ip = _networkService.allocateIP(getNetworkId(), _accountService.getAccount(getEntityOwnerId()));\n if (ip != null) {\n this.setEntityId(ip.getId());\n } else {\n throw new ServerApiException(Base... |
"protected boolean is_connected() {\n GoogleAuthentication googleAuthentication = GoogleAuthentication.getInstance(activity);\n boolean isConnected = googleAuthentication.isConnected();\n if (!isConnected) {\n mAchievementsClient = null;\n }\n return isConnected;\n}\n"
|
"public Map getRowValue() throws DataException {\n if (lastRowIndex == currRowIndex)\n return this.exprValueMap;\n lastRowIndex = currRowIndex;\n try {\n if (this.rowCount == 0) {\n if (this.exprValueMap == null)\n this.exprValueMap = this.getValueMap();\n } else ... |
"public boolean visit(IResource resource) throws CoreException {\n if (!resource.exists() || !new File(resource.getLocation().toOSString()).exists()) {\n return false;\n }\n if (IResource.PROJECT == resource.getType()) {\n return true;\n } else if (IResource.FILE == resource.getType() && Resou... |
"static public Project getProject(File dir) {\n File projectFile = new File(dir, \"String_Node_Str\");\n Project ret = null;\n if (projectFile.exists()) {\n Digester d = new Digester();\n d.push(\"String_Node_Str\", dir);\n d.addRuleSet(new ProjectRuleSet(\"String_Node_Str\"));\n tr... |
"private void defineDefaultSettingFile(IvyVariableContainer variableContainer) {\n String settingsFileName = variableContainer.getVariable(\"String_Node_Str\");\n if (settingsFileName != null && !settingsFileName.equals(variableContainer.getVariable(\"String_Node_Str\"))) {\n info(\"String_Node_Str\");\n ... |
"protected void cycleProxy(SdlDisconnectedReason disconnectedReason) {\n if (_cycling)\n return;\n synchronized (CYCLE_LOCK) {\n try {\n _cycling = true;\n cleanProxy(disconnectedReason);\n initializeProxy();\n if (!SdlDisconnectedReason.LEGACY_BLUETOOTH_M... |
"public Control createControl(Composite subComposite, IElementParameter param, int numInRow, int nbInRow, int top, Control lastControl) {\n FormData data;\n CLabel labelLabel = getWidgetFactory().createCLabel(subComposite, param.getDisplayName());\n data = new FormData();\n if (lastControl != null) {\n ... |
"private void collectAndSendDataLocked(final HBBaseDataCollector collector, final HBDataSenderService hbDataSenderService) throws JobExecutionException {\n try {\n List<HBData> data = collector.collectData();\n hbDataSenderService.sendData(data);\n } catch (final Exception e) {\n logger.error... |
"public void testIsString_ownDefs() {\n boolean result = stringArrayFixture.isString();\n assertFalse(result);\n}\n"
|
"public static List<SupportedMetadataTypeBundle> retrieveSupportedMetadata(User user, IndexedAIP aip, IndexedRepresentation representation, Locale locale) throws GenericException {\n Messages messages = RodaCoreFactory.getI18NMessages(locale);\n List<String> types = RodaUtils.copyList(RodaCoreFactory.getRodaConfi... |
"public String getUsageInfo() {\n List<String> hostInfoList = zooKeeperDriver.getConf(zooConfig.getZookeeperUrlPrefix());\n return StringUtils.join(hostInfoList, '\\n');\n}\n"
|
"private static List<Text> getRightTextNodesInSameP(Range range) {\n Range rightRange = range.cloneRange();\n Node parentPNode = getAncestorParagraph(range.getEndContainer());\n rightRange.setEnd(parentPNode, parentPNode.getChildCount());\n return getTextNodes(rightRange);\n}\n"
|
"private void setButtons() throws ServiceException {\n Shooting activeShooting = shootingService.searchIsActive();\n if (activeShooting != null && activeShooting.getActive()) {\n startButton.setVisible(false);\n stopButton.setVisible(true);\n storage.setVisible(false);\n canclebutton.s... |
"public void refreshUI() {\n resizeTableColumns();\n canUpdate = false;\n CloudFoundryApplicationModule appModule = getApplication();\n int state = appModule.getState();\n refreshPublishState();\n setCurrentStartDebugApplicationAction();\n instanceSpinner.setSelection(appModule.getInstanceCount());... |
"public synchronized void create(final NamespaceMeta metadata) throws Exception {\n Preconditions.checkArgument(metadata != null, \"String_Node_Str\");\n NamespaceId namespace = new NamespaceId(metadata.getName());\n if (exists(namespace.toId())) {\n throw new NamespaceAlreadyExistsException(namespace.t... |
"public void registerCallback(String name, Callback callback) {\n updatesHandler.registerCallback(name, callback);\n}\n"
|
"public Set<Parameter> getParameters() {\n return parameters = nonNullSet(parameters, Parameter.class);\n}\n"
|
"private void process() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_DISPLAY);\n KeyEvent lastKey = null;\n long lastKeyTime = SystemClock.uptimeMillis();\n long nextKeyTime = lastKeyTime + LONG_WAIT;\n long downTime = 0;\n int keyRepeatCount = 0;\n boolean con... |
"protected Object unwrapIfNeeded(Object value) {\n return value;\n}\n"
|
"static ObjectType join(ObjectType obj1, ObjectType obj2) {\n if (obj1.isTopObject() || obj2.isTopObject()) {\n return obj1.commonTypes.getTopObjectType();\n }\n if (obj1.equals(obj2)) {\n return obj1;\n }\n if (obj1.isPrototypeObject() && obj2.isPrototypeObject()) {\n return join(ob... |
"private static void applyUserRestrictionLR(Context context, int userId, String key, boolean newValue) {\n if (UserManagerService.DBG) {\n Log.d(TAG, \"String_Node_Str\" + userId + \"String_Node_Str\" + key + \"String_Node_Str\" + newValue);\n }\n final ContentResolver cr = context.getContentResolver();... |
"public void commitGraph() {\n logger.debug(\"String_Node_Str\");\n try {\n full_graph.close();\n FileInputStream sourceFIS = null;\n FileOutputStream destFOS = null;\n FileChannel sourceChannel = null;\n FileChannel destChannel = null;\n try {\n sourceFIS = ne... |
"private boolean compareVectorForComp(Vector myVector, String jndiName) {\n if (!compareVectorForModule(myVector, jndiName)) {\n return false;\n }\n for (int j = 0; j < myVector.size(); j++) {\n String firstElement = (String) myVector.firstElement();\n if (firstElement.contains(\"String_No... |
"private void buildServiceInstance(ModelController controller, String serviceUuid) {\n ContrailManager manager = controller.getManager();\n ApiConnector api = controller.getApiAccessor();\n _serviceUuid = serviceUuid;\n ServiceInstanceModel siModel = manager.getDatabase().lookupServiceInstance(serviceUuid);... |
"private void createChildrenNode(Tree tree, TreeItemContainer parentItem, TreeColumn[] treeColumns, IIndicatorNode[] branchNodes) {\n for (int i = 0; i < branchNodes.length; i++) {\n IIndicatorNode indicatorNode = branchNodes[i];\n if (!indicatorNode.getLabel().equals(\"String_Node_Str\")) {\n ... |
"private void openCreateJigsawDialog() {\n CharSequence[] levels = new CharSequence[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n MaterialDialog.Builder builder = new MaterialDialog.Builder(this).title(R.string.level_difficulty).items(levels).itemsCallback(getMDListCallback());\n build... |
"private void renderScreen(int mouseX, int mouseY, float partialTickTime) {\n GL11.glEnable(GL12.GL_RESCALE_NORMAL);\n GL11.glColor4f(1F, 1F, 1F, 1F);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n renderBackgroundGUI();\n float offY = ptt(offsetY... |
"public static String checkAndMkdirs(String dir) {\n File file = new File(dir);\n if (!file.exists()) {\n file.mkdirs();\n }\n return file;\n}\n"
|
"public static void executeMainClass() throws Exception {\n try {\n WebServiceLocator.getInstance().setClientSideEnabled(true);\n ServiceLocator.getInstance().setConfigurator(getConfigurator());\n ParametersHandler parametersHandler = ServiceLocator.getInstance().getParametersHandler();\n ... |
"private boolean unoptimizableChooseStep(List<Step> steps, int index) {\n List<Step> toCome = steps.subList(index, steps.size());\n Step step = toCome.get(0);\n Preconditions.checkState(step instanceof ChooseStep, \"String_Node_Str\" + step.getClass().getSimpleName() + \"String_Node_Str\");\n ChooseStep cho... |
"public void postUser() {\n userID = new SyncUser().getUserID(email, personName);\n}\n"
|
"public IFD getImageIFD() {\n if (imageIFD != null) {\n return imageIFD;\n } else {\n if (reader != null) {\n if (!reader.isDataLoaded()) {\n try {\n reader.read();\n } catch (IOException e) {\n e.printStackTrace();\n ... |
"private static SAPFunctionUnit createFunctionUnit(String tableName, SAPConnection connection, JCoFunction function) {\n SAPFunctionUnit functionUnit;\n OutputSAPFunctionParameterTable outputParameterTable;\n InputSAPFunctionParameterTable inputParameterTable;\n MetadataTable metadataTable;\n SAPTestInpu... |
"private void populateRegistrationDomain() {\n NSURL settingsBundleURL = NSBundle.getMainBundle().findResourceURL(\"String_Node_Str\", \"String_Node_Str\");\n NSDictionary<NSString, ?> appDefaults = loadDefaults(\"String_Node_Str\", settingsBundleURL);\n NSUserDefaults.getStandardUserDefaults().registerDefault... |
"public void verify_A$String$OAuthConsumer$OAuthAccessToken$HttpMethod$SignatureMethod_AdditionalParameters() throws Exception {\n String authorizationHeader = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"S... |
"private void buildDocHits(int group, ResultGroup resultGroup) {\n PriorityQueue queue = hitQueue[group];\n int nFound = queue.size();\n DocHitImpl[] hitArray = new DocHitImpl[nFound];\n float maxDocScore = 0.0f;\n for (int i = 0; i < nFound; i++) {\n int index = nFound - i - 1;\n hitArray[... |
"protected String getElementText(RepositoryNode node) {\n if (node.getType() == ENodeType.REPOSITORY_ELEMENT || node.getType() == ENodeType.SIMPLE_FOLDER) {\n boolean isDeleted = false;\n boolean isModified = false;\n boolean inRef = false;\n boolean isFolder = false;\n IRepository... |
"public static boolean hasNature(IResource resource, String natureId) {\n if (resource != null && resource.isAccessible()) {\n IProject project = resource.getProject();\n if (project != null) {\n try {\n return project.hasNature(natureId);\n } catch (CoreException e... |
"public void addTabsChromeListener(TabsChromeListener listener) {\n if (!this.tabsChromeListeners.contains(listener)) {\n this.tabsChromeListeners.add(listener);\n }\n}\n"
|
"public Object getValue() {\n if (!column.getOrigin().isDelegate()) {\n System.out.println(\"String_Node_Str\" + column.getOrigin());\n System.out.println(\"String_Node_Str\" + column.getOrigin().isDelegate());\n System.out.println();\n return value;\n else {\n Object delegateId... |
"public void suppressedLog(boolean remoteLog) {\n boolean firstSuppressed = (suppressedLocalLogCount.get() + suppressedRemoteLogCount.get() == 0);\n if (remoteLog) {\n suppressedRemoteLogCount.incrementAndGet();\n } else {\n suppressedLocalLogCount.incrementAndGet();\n }\n if (firstSuppress... |
"public Type getResultType(Validator validator, Exp[] args) {\n if (args.length == 0) {\n Dimension defaultTimeDimension = validator.getQuery().getCube().getTimeDimension();\n if (defaultTimeDimension == null) {\n throw MondrianResource.instance().NoTimeDimensionInCube.ex(getName());\n ... |
"private void testDimensionIterator(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension dimension = createDimension(documentManager);\n ILevel[] level = dimension.getHierarchy().getLevels();\n ISelection[][] filter = new ISelection[1][1];\n filter[0][0] = Selecti... |
"public boolean execute() {\n try {\n DQStructureManager manager = DQStructureManager.getInstance();\n IFolder createNewFoler = manager.createNewReadOnlyFolder(ResourceManager.getLibrariesFolder(), DQStructureManager.EXCHANGE);\n TdqPropertieManager.getInstance().addFolderProperties(createNewFol... |
"public void onBrowserEvent(Event event) {\n super.onBrowserEvent(event);\n if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) {\n History.newItem(getTargetHistoryToken());\n DOM.eventPreventDefault(event);\n }\n}\n"
|
"public <T extends Comparable<T>> int binarySearch(T[] ts, int start, int end, T t) {\n return Collections.binarySearch(Arrays.asList(ts).subList(start, end), t, RolapUtil.ROLAP_COMPARATOR);\n}\n"
|
"public Set<ItemReferenceBean> checkItemReferenceBeans(IProxyRepositoryFactory factory, DeleteActionCache deleteActionCache, IRepositoryViewObject object) {\n Item nodeItem = object.getProperty().getItem();\n boolean needCheckJobIfUsedInProcess = false;\n if (nodeItem instanceof ProcessItem) {\n needChe... |
"public JsonNode apply(final JsonNode tree) {\n if (tree == null) {\n return null;\n }\n final JsonNode temp = tree.get(\"String_Node_Str\");\n if (temp == null) {\n return null;\n }\n for (final JsonNode mastery : temp) {\n final JsonNode idNode = mastery.get(\"String_Node_Str\")... |
"public void prepareRun(BatchSinkContext context) throws Exception {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setOutputPath(arguments, Constants.Connector.DATA_DIR + \"String_Node_Str\" + phaseName);\n context.addOutput(Output.ofDataset(datasetName, arguments));\n}\n"
|
"private CSSExpressionMemberMathProduct _createExpressionMathProduct(final CSSNode aNode) {\n _expectNodeType(aNode, ECSSNodeType.MATHPRODUCT);\n final CSSExpressionMemberMathProduct ret = new CSSExpressionMemberMathProduct();\n ret.setSourceLocation(aNode.getSourceLocation());\n for (final CSSNode aChildNo... |
"public void onVisitorGetDamage(EntityDamageEvent e) {\n if (!Settings.invincibleVisitors || !(e.getEntity() instanceof Player) || !e.getCause().equals(DamageCause.ENTITY_ATTACK)) {\n return;\n }\n if (Settings.visitorDamagePrevention.contains(e.getCause()))\n e.setCancelled(true);\n if (e.get... |
"public void computeData(Graph g, Network n, Hashtable<String, Metric> m) {\n this.timer = new Timer();\n boolean onlyOut = GraphProperties.bidirectional(g) || Config.getBoolean(\"String_Node_Str\");\n this.lcc = this.computeLCC(g.nodes, onlyOut);\n Arrays.sort(this.lcc);\n this.lccShort = this.computeLC... |
"public void hookCommandStack(WrapperCommandStack stack) {\n if (stack != null) {\n stack.addCommandStackListener(commandStackListener);\n }\n}\n"
|
"public boolean saveModifiedResources() {\n EMFUtil util = EMFUtil.getInstance();\n boolean saveFlag = true;\n Iterator<Resource> iterator = modifiedResources.iterator();\n while (iterator.hasNext()) {\n saveFlag = util.saveSingleResource(iterator.next());\n if (!saveFlag) {\n break... |
"public void testTcpSource3() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String inStreamDefinition = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = (\"String_Node_Str\" + \"Str... |
"public void setValues(PreparedStatement preparedStatement, int i) throws SQLException {\n preparedStatement.setObject(1, payload.getId());\n preparedStatement.setObject(2, payload.getClients().get(i));\n preparedStatement.setObject(3, payload.getProductId());\n preparedStatement.setObject(4, 0);\n prepa... |
"public User getUser(HttpServletRequest request, HttpServletResponse response) {\n HttpSession session = request.getSession(true);\n User user = (User) session.getAttribute(ATT_USER);\n if (null == user) {\n Cookie cookie = getCookie(request, COOKIE_NAME);\n if (cookie != null) {\n Str... |
"private boolean recursiveMove(EntityCoupleableRollingStock parent, int tickOffset) {\n if (this.positions.size() < tickOffset) {\n System.out.println(\"String_Node_Str\" + tickOffset);\n return true;\n }\n TickPos currentPos = this.positions.get(tickOffset - 1);\n TickPos parentPos = parent.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.