content stringlengths 40 137k |
|---|
"public void initialize(DatabaseMapping mapping, Session session) {\n try {\n ConversionManager cMgr = session.getDatasourcePlatform().getConversionManager();\n Class<? extends DomHandler> domHandlerClass = cMgr.convertClassNameToClass(domHandlerClassName);\n this.domHandler = domHandlerClass.ne... |
"public List<SuspiciousCode> searchGZoltar(String location, List<String> testsToExecute, List<String> toInstrument, HashSet<String> cp, String srcFolder) throws FileNotFoundException, IOException {\n candidates.clear();\n failingTestCases.clear();\n Double thr = ConfigurationProperties.getPropertyDouble(\"Stri... |
"public void elementChanged(DesignElementHandle focus, NotificationEvent ev) {\n PropertyEvent event = (PropertyEvent) ev;\n String propertyName = event.getPropertyName();\n if (propertyName.equals(StyleHandle.BORDER_BOTTOM_WIDTH_PROP) || propertyName.equals(StyleHandle.BORDER_TOP_WIDTH_PROP) || propertyName.e... |
"public void reconcileBeanConfig(AnnotatedMethodStore ams) {\n if (isDebug) {\n StringBuilder txt = new StringBuilder();\n txt.append(\"String_Node_Str\").append(ams.getPortletNames().toString());\n LOG.debug(txt.toString());\n }\n ams.setDefaultNamespace(pad.getDefaultNamespace());\n f... |
"public void setSettings(String settings, List<String> settingsKey) {\n if (isSpawn) {\n setSpawnDefaults();\n } else {\n setIgsDefaults();\n }\n if (settings == null || settings.isEmpty())\n return;\n if (settingsKey.size() != settings.length()) {\n plugin.getLogger().severe(... |
"public void close() throws Exception {\n if (isClosed.compareAndSet(false, true)) {\n if ((request != null) && (request.isUpgrade())) {\n Context context = request.getContext();\n HttpUpgradeHandler httpUpgradeHandler = request.getHttpUpgradeHandler();\n Exception exception =... |
"public int read() throws IOException {\n if (++bytePos >= active.length) {\n if (++currentPos >= parts.length) {\n return -1;\n }\n bytePos = 0;\n active = parts[currentPos].getBodyPartBytes();\n }\n return active[bytePos] & 0xFF;\n}\n"
|
"public void serverCheckStatus() throws Exception {\n projectModel.serverName.set(\"String_Node_Str\");\n project = projectModel.getProject();\n final LHProtos.Pledge scrubbedPledge = makeScrubbedPledge();\n ObservableMap<Project, LighthouseBackend.CheckStatus> statuses = backend.mirrorCheckStatuses(gate);\... |
"public void mouseClicked(MouseEvent e) {\n int selectedIndex = this.getSelectedIndex();\n Object selectedValue = this.getSelectedValue();\n if (selectedIndex < 0)\n return;\n ContactListCellRenderer renderer = (ContactListCellRenderer) this.getCellRenderer().getListCellRendererComponent(this, select... |
"public void switchToFilter() {\n try {\n if (shootingservice.searchIsActive().getActive()) {\n if (profile != null) {\n if (profile.getId() != shootingservice.searchIsActive().getProfileid()) {\n profile = profileservice.get(shootingservice.searchIsActive().getPro... |
"public String getPublicFileUrl(WBCloudFile file) {\n String partialPath = file.getBucket() + \"String_Node_Str\" + sanitizeCloudFilePath(file.getPath());\n return basePublicUrlPath + partialPath;\n}\n"
|
"public Object[] getChildren(final Object element) {\n if (element instanceof Node) {\n Node node = (Node) element;\n List<Node> navChildren = new ArrayList<Node>();\n if (node instanceof PropertyNode || node instanceof VersionAggregateNode || node instanceof VersionNode) {\n navChild... |
"public TableElement elementForIndexInSegment(GuiTable table, int index, int segment) {\n if (isListSegment(segment)) {\n T t = list.get(index);\n TableCellButton[] cells = getEntryActions(index);\n for (TableCellButton cell : cells) {\n cell.addAction(() -> {\n T entry... |
"public boolean equals(java.lang.Object otherKey) {\n if (otherKey instanceof PK) {\n PK o = (PK) otherKey;\n return ((this.inventoryID.equals(o.inventoryID)) && (this.order_orderID == o.order_orderID));\n }\n return false;\n}\n"
|
"public void getConnection(ProxyTarget target, HttpServerExchange exchange, ProxyCallback<ProxyConnection> callback, long timeout, TimeUnit timeUnit) {\n Realm realm = realmCache.matches(exchange.getRequestPath());\n if (realm != null) {\n parseToken(exchange).ifPresent(token -> {\n Optional<Use... |
"public void testBuildJob() throws Exception {\n Map<ExportChoice, Object> exportChoiceMap = new HashMap<ExportChoice, Object>();\n exportChoiceMap.put(ExportChoice.needLauncher, true);\n exportChoiceMap.put(ExportChoice.needSystemRoutine, true);\n exportChoiceMap.put(ExportChoice.needUserRoutine, true);\n ... |
"private MD5 parse(InputStream stream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream, Charsets.UTF_8));\n MD5 md5 = new MD5();\n String line = MD5ParserCommon.readToLine(reader, \"String_Node_Str\");\n md5.version = Integer.parseInt(line.split(\"String_Node_S... |
"public static void makeARFF(List<File> files, String targetPath) {\n Set<String> authors = new HashSet<>();\n List<String> allLines = new LinkedList<String>();\n for (File f : files) {\n try {\n printInstanceData((FeatureSet) getExtractor(f), new File(targetPath));\n } catch (IOExcept... |
"public String toString() {\n return \"String_Node_Str\" + run.getClass() + \"String_Node_Str\";\n}\n"
|
"protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String pathString = req.getPathInfo();\n if (pathString.startsWith(\"String_Node_Str\")) {\n login = pathString.substring(\"String_Node_Str\".length());\n user = (User) userAdmin.getUser(... |
"public String getActionText(String... args) {\n Validate.notNull(args);\n if (args.length < 1) {\n throw new InvalidInputException(\"String_Node_Str\");\n }\n String sentenceList = StringUtil.buildSentenceList(args[0].split(\"String_Node_Str\"));\n String additional = \"String_Node_Str\";\n if... |
"public void run() {\n ReactInstanceManager reactInstanceManager;\n try {\n reactInstanceManager = ReactInstanceManager.builder().setApplication(instrumentation.newApplication(MyTestApplication.class.getClassLoader(), MyTestApplication.class.getName(), getInstrumentation().getContext())).setBundleAssetName... |
"public raven.goals.Goal.curStatus process() {\n activateIfInactive();\n m_iStatus = ProcessSubgoals();\n if (m_iStatus == Goal.curStatus.completed && !m_Path.isEmpty()) {\n activate();\n }\n return m_iStatus;\n}\n"
|
"public String importFile(File file, String extension) {\n final JFrame frame = JmeClientMain.getFrame().getFrame();\n if (isContentExists(file) == true) {\n int result = JOptionPane.showConfirmDialog(frame, \"String_Node_Str\" + file.getName() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_St... |
"public void execute(RepositoryNode sourceNode, RepositoryNode targetNode) throws Exception {\n if (!validateAction(sourceNode, targetNode)) {\n return;\n }\n if (targetNode.getType() == ENodeType.REPOSITORY_ELEMENT) {\n targetNode = targetNode.getParent();\n }\n IPath path = RepositoryNode... |
"public List<Pair<DimletDescriptor, List<DimletDescriptor>>> getDimletsWithModifiers() {\n List<Pair<DimletDescriptor, List<DimletDescriptor>>> result = new ArrayList<Pair<DimletDescriptor, List<DimletDescriptor>>>();\n String ds = descriptionString;\n if (ds.startsWith(\"String_Node_Str\")) {\n ds = ds... |
"private void checkUnsavedChanges() {\n if (mOriginal != null && mInput.isShown() && !mOriginal.equals(mInput.getText().toString())) {\n new MaterialDialog.Builder(this).title(R.string.unsavedchanges).content(R.string.unsavedchangesdesc).positiveText(R.string.yes).negativeText(R.string.no).positiveColor(getCo... |
"public void testSpecializeTypesAfterNullableDereference() {\n typeCheck(LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), NewTypeInference.NULLABLE_DEREFERENCE);\n typeCheck(LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"Strin... |
"public void testSort3() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.cre... |
"public static ThriftServer createServer(int serverIndex, BlurConfiguration configuration) throws Exception {\n Configuration config = new Configuration();\n TableContext.setSystemBlurConfiguration(configuration);\n TableContext.setSystemConfiguration(config);\n String bindAddress = configuration.get(BLUR_S... |
"private void _getActuators(Refinement refinement, Time modePeriod) {\n List<IOPort> outputPorts = refinement.outputPortList();\n for (IOPort outputPort : outputPorts) {\n int frequency = TDLModuleDirector.getFrequency((NamedObj) outputPort);\n IOPort connectedPort = null;\n List<IOPort> task... |
"public void testRelateWithSorting() throws OseeCoreException {\n when(container1.getRelation(node1, TYPE_1, node2, INCLUDE_DELETED)).thenReturn(null);\n when(container2.getRelation(node1, TYPE_1, node2, INCLUDE_DELETED)).thenReturn(null);\n when(relationFactory.createRelation(eq(node1), eq(TYPE_1), eq(node2),... |
"public String sign(String elements, OAuthSecrets secrets) {\n Mac mac;\n try {\n mac = Mac.getInstance(SIGNATURE_ALGORITHM);\n } catch (NoSuchAlgorithmException nsae) {\n throw new IllegalStateException(nsae);\n }\n StringBuffer buf = new StringBuffer();\n String secret = secrets.getCon... |
"public IResultObject next() throws DataException {\n if (this.rowFetchLimit <= 0 || this.rowCount < this.rowFetchLimit) {\n IResultObject result = doNext();\n if (result != null)\n this.rowCount++;\n return result;\n }\n return null;\n}\n"
|
"private boolean checkIsRMCICOPaymentRequest() {\n return _bitcoinUri != null && _bitcoinUri.callbackURL != null && new RmcApiClient(_mbwManager.getNetwork()).isCallbackMine(_bitcoinUri.callbackURL);\n}\n"
|
"protected void processImage(IImageContent image) {\n String altText = localize(image, image.getAltTextKey(), image.getAltText());\n image.setAltText(altText);\n String helpText = localize(image.getHelpKey(), image.getHelpText());\n image.setHelpText(helpText);\n}\n"
|
"public BigDecimal getLatestUSDPerBTC() throws USDBTCFxException {\n Optional<ExchangeAggregateRate> exchangeAggregateRate = exchangeAggregateRateRepository.findFirstOptionalByOrderByCreationDateDesc();\n return exchangeAggregateRate.flatMap((aggregateRate) -> aggregateRate.getExchangeAggregateCurrencyRates(Curre... |
"public static void openIssue(Issue issue, String username, String password) throws IOException {\n try {\n String apiPage = \"String_Node_Str\" + issue.user + \"String_Node_Str\" + issue.project + \"String_Node_Str\";\n String authString = username + \"String_Node_Str\" + password;\n byte[] aut... |
"public IWSResponse execute(int operation, String input) {\n if (operation == PublicWSProvider2.GET) {\n return new WSResponse(getImageInputStream(), IMAGE_MIME_TYPE);\n }\n return null;\n}\n"
|
"protected boolean checkMeasureVerticalSpanOverlapped(ColumnEvent ev) {\n if (ev.measureIndex == -1 && totalMeasureCount != 1) {\n return false;\n }\n LevelHandle spanLevel = null;\n switch(ev.type) {\n case ColumnEvent.MEASURE_CHANGE:\n case ColumnEvent.COLUMN_EDGE_CHANGE:\n ... |
"public void setUp() throws Exception {\n this.con = H2EmbeddedHandler.getInstance().getTestConnection();\n when(mockH2Handler.getConnection()).thenReturn(mockConnection);\n when(mockPreparedStatement.executeQuery()).thenReturn(mockResultSet);\n when(mockStatement.executeQuery(anyString())).thenReturn(mockR... |
"MemberAndArguments getMemberAndArguments(List tmArgs, BeansWrapper unwrapper) throws TemplateModelException {\n MaybeEmptyMemberAndArguments fixArgsRes = null;\n MaybeEmptyMemberAndArguments varargsRes = null;\n if ((fixArgsRes = fixArgMethods.getMemberAndArguments(tmArgs, unwrapper)) instanceof MemberAndArgu... |
"public Inventory inventoryView(int size, String name) {\n Inventory view = Bukkit.createInventory(this, size, name);\n for (StockItem item : sellStock) {\n ItemStack chk = new ItemStack(item.getItemStack().getType(), item.getItemStack().getAmount(), item.getItemStack().getDurability());\n chk.addEn... |
"public String link(Location loc, short code) {\n if (loc.world != world()) {\n return \"String_Node_Str\";\n }\n Pos pos = loc.toPos();\n if (!pos.isAboveBedrock()) {\n return \"String_Node_Str\";\n }\n if (distance(pos) > MAX_LINK_DISTANCE) {\n return \"String_Node_Str\";\n }... |
"private void visitVar(Node nameNode, Node parent) {\n String name = nameNode.getString();\n boolean isDefinedLocally = this.currentScope.isDefinedLocally(name, false);\n if (isDefinedLocally && this.currentScope.isNamespace(name)) {\n return;\n }\n if (NodeUtil.isTypedefDecl(nameNode) || NodeUtil... |
"public void testAccept() {\n for (int i = 0; i < CHECKPOINTS_INSERT_NUM; i++) {\n TmfCheckpoint checkpoint = new TmfCheckpoint(new TmfTimestamp(i), new TmfLongLocation(i), 0);\n fBTree.insert(checkpoint);\n }\n final TmfCheckpoint checkpoint = new TmfCheckpoint(new TmfTimestamp(123), new TmfLong... |
"public boolean isDone() {\n return isPrintConfirmed() || isCancelled();\n}\n"
|
"protected void onEvent(Event event) {\n InstanceCleanupClusterEvent instanceCleanupClusterEvent = (InstanceCleanupClusterEvent) event;\n if (mockMemberContext.getClusterId().equals(instanceCleanupClusterEvent.getClusterId()) && mockMemberContext.getClusterInstanceId().equals(instanceCleanupClusterEvent.getCluste... |
"public void removeDeletedMessages() {\n final EventList<StoredMessage> eventList = getWritableMessageEventList();\n eventList.getReadWriteLock().writeLock().lock();\n try {\n final int count = countDeletedMessages(eventList);\n if (count == 0) {\n return;\n }\n final Lis... |
"private void fireAccount() {\n for (int i = 0; i < playerNum; i++) {\n if (allPlayers[i].stratDecision == GambleChecker.FIRE) {\n if (allPlayers[i].fireTarget == -1)\n break;\n PlayerChecker.fire(map, allPlayers[i], allPlayers[allPlayers[i].fireTarget]);\n healthPo... |
"public boolean createDQStructure() {\n Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();\n try {\n IProject project = this.createNewProject(DATA_PROFILING, shell);\n this.createNewFoler(project, ANALYSIS);\n this.createNewFoler(project, REPORTS);\n project = this.... |
"private <T, P> Getter<? super S, ? extends P> getterFromFactory(PropertyMapping<T, P, K, FieldMapperColumnDefinition<K>> propertyMapping, Type propertyType) {\n Getter<? super S, ? extends P> getter = null;\n if (propertyMapping.getColumnDefinition().hasCustomFactory()) {\n GetterFactory<? super S, K> cGe... |
"private void updateYarnInfo(IHDistribution hiveDistribution, IHDistributionVersion hiveVersion) {\n if (hiveDistribution == null) {\n hiveDistribution = getCurrentHiveDistribution(true);\n }\n IHadoopDistributionService hadoopDistributionService = getHadoopDistributionService();\n if (hiveDistributi... |
"private void onCleanup(Object connection) {\n if (this.connection != null) {\n if (settings != null) {\n ((Jedis) connection).configResetStat();\n }\n factory.releaseConnection((Jedis) connection);\n }\n}\n"
|
"private ServiceGroup populateServiceGroupPojo(ServiceGroupDefinition serviceGroupDefinition) throws ServiceGroupDefinitioException {\n ServiceGroup servicegroup = new ServiceGroup();\n servicegroup.setGroupscalingEnabled(serviceGroupDefinition.isGroupScalingEnabled);\n List<ServiceGroupDefinition> groupsDef =... |
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + id + \"String_Node_Str\" + publishedBy + \"String_Node_Str\" + description + '\\'' + \"String_Node_Str\" + maxCost + \"String_Node_Str\" + buyer + \"String_Node_Str\" + seller + \"String_Node_Str\" + verifiedByBuyer + \"String_Node_Str\... |
"protected Object buildNewInstanceUsingDefaultConstructor() throws DescriptorException {\n try {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) {\n try {\n return AccessController.doPrivileged(new PrivilegedInvokeConstructor(getDefaultConstructor(), (Object[]) null));\n ... |
"public int getMaxSimultanFreeDownloadNum() {\n return 20;\n}\n"
|
"protected void putToCacheAndUpdateFromOtherNodeThenGetUpdatedFromClientNearCache(InMemoryFormat inMemoryFormat) {\n NearCacheConfig nearCacheConfig = createNearCacheConfig(inMemoryFormat);\n nearCacheConfig.setInvalidateOnChange(true);\n NearCacheTestContext nearCacheTestContext1 = createNearCacheTest(DEFAULT... |
"public void run() {\n FeatureSet fSet = SWQEFactory.getQueryInterface().getAtomBySGID(FeatureSet.class, this.featureSetID);\n this.modelManager = SWQEFactory.getModelManager();\n modelManager.persist(fSet);\n if (this.getTagSetIDs() != null) {\n for (SGID tagSetID : this.getTagSetIDs()) {\n ... |
"protected void doWork(IProgressMonitor monitor) throws Exception {\n OseeClient client = ServiceUtil.getOseeClient();\n TransactionEndpoint txEndpoint = client.getTransactionEndpoint();\n String deleteTxs = Collections.toString(\"String_Node_Str\", txIdsToDelete);\n try {\n Response result = txEndpo... |
"public void swipeTest() {\n MobileElement slider = driver.findElementByClassName(\"String_Node_Str\");\n Dimension size = slider.getSize();\n TouchAction swipe = new TouchAction(driver).press(slider, size.width / 2 + 2, size.height / 2).waitAction(2000).moveTo(slider, 1, size.height / 2).release();\n swipe... |
"public void performfp() {\n allLines.clear();\n sm(ChatColor.DARK_PURPLE, \"String_Node_Str\" + ChatColor.GREEN + \"String_Node_Str\" + ChatColor.DARK_PURPLE + \"String_Node_Str\");\n sm(\"String_Node_Str\" + (UConf.get(usender).factionPowerMax > 0.0 ? badColor + \"String_Node_Str\" + msgColor1 + UConf.get(us... |
"public void testGetDocumentWithLargeJSON() {\n Map<String, Object> props = new HashMap<String, Object>();\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n char[] chars = new char[(int) (2.1 * 1024 * 1024)];\n Arrays.fill(chars, 'a');\n String str = new String(chars);\n props.put(\"String_Node... |
"public void testIOFailureThrown() throws IOException {\n File passwordFile = new File(TestInfo.WORKING_DIR, \"String_Node_Str\");\n FileUtils.remove(passwordFile);\n File tempDir = mtf.newTmpDir();\n hl = getHeritrixLauncher(TestInfo.DEFAULT_ORDERXML_FILE, TestInfo.SEEDS_FILE, tempDir, passwordFile, new Fi... |
"protected Collection<Integer> getRequiredOpenPorts(Entity entity) {\n Set<Integer> ports = MutableSet.of(22);\n for (ConfigKey<?> k : entity.getEntityType().getConfigKeys()) {\n Object value;\n if (PortRange.class.isAssignableFrom(k.getType()) || k.getName().matches(\"String_Node_Str\")) {\n ... |
"public static LabelRenderer createLabel(ILabelProvider label, AGLView view) {\n return new LabelRenderer(view, view.getTextRenderer(), label);\n}\n"
|
"public List<NutResource> loadResource(String regex, String... paths) {\n List<NutResource> list = new LinkedList<NutResource>();\n for (String path : paths) {\n list.addAll(scan(path, regex));\n }\n if (list.size() < 1 && paths.length > 0)\n throw Lang.makeThrow(RuntimeException.class, \"Stri... |
"private void showProviderDetails() {\n mConfigState.setAction(SETTING_UP_PROVIDER_SHOW_PROVIDER_DETILS);\n try {\n FragmentTransaction fragment_transaction = fragment_manager.removePreviousFragment(ProviderDetailFragment.TAG);\n DialogFragment newFragment = ProviderDetailFragment.newInstance();\n ... |
"public void execute() {\n elem.setPropertyValue(updataComponentParamName, new Boolean(true));\n boolean allowAutoSwitch = true;\n IElementParameter elemParam = elem.getElementParameter(EParameterName.REPOSITORY_ALLOW_AUTO_SWITCH.getName());\n if (elemParam != null) {\n elemParam.setValue(Boolean.FAL... |
"private int getOffsetLoc(Chunk c) {\n return c.getX() + c.getZ() * 32;\n}\n"
|
"private boolean executeQuery(Indicator indicator, Connection connection, Expression query) throws AnalysisExecutionException {\n try {\n List<Object[]> myResultSet = executeQuery(catalogOrSchema, connection, query.getBody());\n String tableName = getAnalyzedTable(indicator);\n boolean reversion... |
"private boolean performQaFrameworkBuild(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) {\n QAFrameworkPostBuildActionSetup qaFrameworkPostBuildActionSetup = (QAFrameworkPostBuildActionSetup) sourceQAFramework;\n QAFrameworkInstallationConfiguration qaFrameworkInstallationConfiguration = QA... |
"public void writeField(FieldKey f, String v) {\n try {\n this.tag.setField(f, v.replace(\"String_Node_Str\", \"String_Node_Str\").trim());\n } catch (KeyNotFoundException | FieldDataInvalidException e) {\n Logging.log(\"String_Node_Str\" + f, e);\n }\n}\n"
|
"public static org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent convertBundleLinkComponent(org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl... |
"public boolean verifySource() {\n parse();\n if (CommonUtils.isJava118())\n return true;\n PublicKey pubKey = null;\n FileInputStream fis = null;\n ObjectInputStream ois = null;\n try {\n File file = new File(CommonUtils.getUserSettingsDir(), \"String_Node_Str\");\n fis = new Fil... |
"public void testLifecycleListenerRemoval() {\n PersistenceManager pm = TestTools.openPM();\n pm.currentTransaction().begin();\n ListenerCreate lc = new ListenerCreate();\n pm.addInstanceLifecycleListener(lc, TestClass.class);\n TestClass t1 = new TestClass();\n assertTrue(calls.isEmpty());\n pm.ma... |
"public synchronized int getMaster() {\n try {\n String root = getRoot();\n List<String> children = zooKeeper.getChildren(root, false);\n int currentMasterId = -1;\n int lowestSeq = Integer.MAX_VALUE;\n for (String child : children) {\n int index = child.indexOf('_');\n ... |
"public static int getDistanceThreshold() {\n return _instance._distanceThreshold;\n}\n"
|
"public static void empty(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Template template) {\n int lastX = Integer.MAX_VALUE, lastY = Integer.MAX_VALUE, lastZ = Integer.MAX_VALUE;\n for (int y = yMax; y >= yMin; y--) {\n for (int x = xMin; x <= xMax; ++x) {\n for (int z = zMin; z <... |
"public Concept evaluateFunction(List<Concept> argValues) throws IllegalActionException {\n if (argValues == null) {\n throw new IllegalActionException(\"String_Node_Str\" + this + \"String_Node_Str\");\n } else if (_numArgsIsFixed) {\n if (argValues.size() != getNumberOfArguments()) {\n ... |
"public void visitTypeInsn(int opcode, String type) {\n checkInternalNameOrArrayDescriptor(type);\n super.visitTypeInsn(opcode, type);\n}\n"
|
"public MimeMessageBuilder setFrom(final String from) throws MessagingException {\n InternetAddress address = parseAddress(from);\n if (null != address) {\n message.setFrom(address);\n } else {\n try {\n message.setFrom();\n } catch (Exception ex) {\n message.setFrom(... |
"private int createDirectories() throws CommandException {\n if (!agentConfigDir.isDirectory()) {\n if (!agentConfigDir.mkdirs()) {\n throw new CommandException(Strings.get(\"String_Node_Str\", agentConfigDir.getPath()));\n }\n }\n writeProperties();\n FileInputStream in = null;\n ... |
"private Promise<ActionResponse, ResourceException> handle(Context context, ActionRequest actionRequest) {\n Reject.ifFalse(context.containsContext(RealmContext.class));\n final JsonValue actionContent = actionRequest.getContent();\n String realm = context.asContext(RealmContext.class).getResolvedRealm();\n ... |
"public int genLegalDests(Board board) {\n getLegalDests().clear();\n getGuardSquares().clear();\n setPinnedBy(null);\n boolean done = false;\n Square dest;\n boolean wraparound = board.isWraparound();\n if (movements.containsKey('E')) {\n int northMax = movements.get('E') + curSquare.getCol... |
"private void dfs(Graph g, Node n, TreeNode root, ArrayList<Integer> visited) {\n int otherEnd;\n if (visited.contains(n.getIndex())) {\n return;\n }\n visited.add(n.getIndex());\n TreeNode current = new TreeNode(root, n.getIndex(), root.depth + 1);\n root.children.add(current);\n if (curren... |
"private SecuritySession getSecuritySession() {\n return (SecuritySession) getContextSession().get(SecuritySystemConstants.SECURITY_SESSION_KEY);\n}\n"
|
"public int write(byte[] buffer, int offset, int length) {\n RawPacket pkt = this.transformer.transform(new RawPacket(buffer, offset, length));\n for (int i = 0; i < this.remoteAddrs.size(); ++i) {\n InetAddress remoteAddr = this.remoteAddrs.elementAt(i);\n int remotePort = (this.remotePorts.element... |
"public ResponseEntity<OAuth2Exception> translate(Exception e) throws Exception {\n OAuth2Exception oAuth2Exception;\n if (e instanceof InvalidGrantException && StringUtils.equals(BAD_MSG, e.getMessage())) {\n oAuth2Exception = new InvalidGrantException(\"String_Node_Str\", e);\n } else if (e instanceof... |
"public IAnswerData getAnswer() {\n comboBox.dismissDropDown();\n String enteredText = comboBox.getText().toString();\n if (choiceTexts.contains(enteredText)) {\n int i = choiceTexts.indexOf(enteredText);\n return new SelectOneData(new Selection(choices.elementAt(i)));\n } else if (\"String_No... |
"public void endElement(String uri, String localName, String qName) throws SAXException {\n spConsumer.manipulateData(pathHolder.getPath(), this.currentCacheValue.trim());\n this.currentCacheValue = \"String_Node_Str\";\n spConsumer.detectNewRow(pathHolder.getPath(), false);\n String path = pathHolder.getPa... |
"public static boolean isFilenameValid(String filename) {\n filename = filename.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n return filename.startsWith(Environment.getDownloadCacheDirectory().toString()) || filename.startsWith(Environment.getExternalStorageDirectory().toString());\n}\n"
|
"public ProjectInstance addTableDescToProject(String tables, String projectName) throws IOException {\n ProjectInstance projectInstance = getProject(projectName);\n String[] tokens = StringUtils.split(tables, \"String_Node_Str\");\n for (int i = 0; i < tokens.length; i++) {\n String token = tokens[i].tr... |
"public IMessage onMessage(SpawnCustomParticlePacket message, MessageContext ctx) {\n try {\n switch(message.data.getInteger(\"String_Node_Str\")) {\n case 0:\n for (int i = 0; i < message.amount; i++) {\n FlyingBloodParticle.addParticle(new FlyingBloodParticle(mes... |
"public void testSuspendResumeListener() throws Exception {\n client.connect(\"String_Node_Str\", getListenerPort());\n client.disconnect();\n server.getListener(\"String_Node_Str\").suspend();\n try {\n client.connect(\"String_Node_Str\", port);\n fail(\"String_Node_Str\");\n } catch (IOEx... |
"public String getGDriveId() throws InvalidPathException, UnsupportedEncodingException {\n String pathWithoutTrailingSlash = mAccountLocalPath;\n if (pathWithoutTrailingSlash.endsWith(\"String_Node_Str\"))\n pathWithoutTrailingSlash = pathWithoutTrailingSlash.substring(0, pathWithoutTrailingSlash.length() ... |
"public void execute() {\n DesignElementHandle newObject = getNewObject();\n if (DesignerConstants.TRACING_COMMANDS) {\n System.out.println(\"String_Node_Str\");\n }\n try {\n if (parent instanceof SlotHandle) {\n if (after != null) {\n int pos = DEUtil.findInsertPosi... |
"public void getIdleRegions(HttpRequest request, HttpResponder responder, int numRegions) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n if (!initializePruningDebug(responder)) {\n return;\n }\n SortedSet<? extends RegionPruneInfo> pruneInfos = prun... |
"private void encodeVar(final Alignments.SequenceVariation seqVar) {\n final String from = seqVar.getFrom();\n final String to = seqVar.getTo();\n final ByteString toQualities = seqVar.getToQuality();\n final int fromLength = from.length();\n final int toLength = to.length();\n final boolean hasToQual... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.