content
stringlengths
40
137k
"protected void startUp() throws Exception {\n LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getNamespace(), Constants.Logging.COMPONENT_NAME, Constants.Service.APP_FABRIC_HTTP));\n Futures.allAsList(ImmutableList.of(notificationService.start(), provisioningService.start(),...
"public void testCrawl() {\n int n = 8;\n int m = 32;\n long runTime = 21600000;\n fService.purgeAVMStore(\"String_Node_Str\");\n BulkLoader loader = new BulkLoader();\n loader.setAvmService(fService);\n for (int i = 0; i < m; i++) {\n fService.createAVMStore(\"String_Node_Str\" + i);\n ...
"protected void installPackage(Uri uri, Uri originatingUri, String packageName) {\n Uri sanitizedUri;\n try {\n sanitizedUri = Installer.prepareApkFile(context, uri, packageName);\n } catch (InstallFailedException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n sendBroadcastInstall(uri, origi...
"public void testEJBAppSecurity30() throws Exception {\n String response;\n String queryString;\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\" + getCurrentTestName());\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\");\n WCApplicationHelper.createWar(myServer, TEMP_DIR, EJB_...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n StreamId streamId = cliConfig.getCurrentNamespace().stream(arguments.get(ArgumentName.STREAM.toString()));\n StreamProperties config = streamClient.getConfig(streamId);\n Table table = Table.builder().setHeader(\"String_Node_Str...
"public void testDropAllInNamespace() throws Exception {\n StreamAdmin streamAdmin = getStreamAdmin();\n Id.Stream otherStream = Id.Stream.from(OTHER_NAMESPACE, \"String_Node_Str\");\n List<Id.Stream> fooStreams = Lists.newArrayList();\n for (int i = 0; i < 4; i++) {\n fooStreams.add(Id.Stream.from(F...
"public void load(BindContext ctx) {\n final Component comp = getComponent();\n final BindEvaluatorX eval = getBinder().getEvaluatorX();\n Object value = eval.getValue(ctx, comp, _accessInfo.getProperty());\n if (!(value instanceof Form)) {\n final Form form = getFormBean();\n if (form instanc...
"public MainGrid load(InputStream inStream) throws MapLoadException {\n try {\n final ObjectInputStream ois = new ObjectInputStream(inStream);\n LoadRunnable runnable = new LoadRunnable(ois);\n Thread t = new Thread(null, runnable, \"String_Node_Str\", LOAD_STACK_SIZE);\n t.start();\n ...
"public boolean doSupportHive1() {\n return false;\n}\n"
"public QueryContext peekQueryContext() {\n return getScope().getQueries().peek();\n}\n"
"public void loadUserFromCookie(HttpServletRequest request) {\n if (request.getAttribute(User.USER) != null) {\n return;\n }\n Cookie[] cookies = request.getCookies() == null ? new Cookie[] {} : request.getCookies();\n boolean idFound = false;\n boolean oAuthFound = false;\n boolean active = fa...
"public void init(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n Properties props = context.getProps();\n try {\n SourceType sourceType = SourceType.valueOf(props.getProperty(CommonConstants.MODELSET_SOURCE_TYPE, SourceType.HDFS.toString()));\n this.modelConfig = CommonUtils.loadModelCon...
"private Configuration getConfig(File configFile) throws IOException {\n if (!configFile.exists()) {\n InputStream inputStream = ecoCreature.class.getResourceAsStream(\"String_Node_Str\" + DEFAULT_CONFIG_FILE);\n FileOutputStream outputStream = new FileOutputStream(configFile);\n byte[] buffer =...
"public void testFileContentAbove() throws Exception {\n final File e = new File(expDir, \"String_Node_Str\");\n assertEquals(new HashSet<String>(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")), readLines(new File(e, \"String_Node_Str\")));\n assertEquals(Collections.emptySet(), r...
"private final int pushBytes(Operation op, final String vcardString) {\n if (vcardString == null) {\n Log.w(TAG, \"String_Node_Str\");\n return ResponseCodes.OBEX_HTTP_OK;\n }\n byte[] vcardBytes = vcardString.getBytes();\n int vcardStringLen = vcardBytes.length;\n if (D)\n Log.d(TAG...
"private Model execModel(Model model) {\n HttpQuery httpQuery = makeHttpQuery();\n httpQuery.setAccept(WebContent.contentTypeNTriplesAlt);\n InputStream in = httpQuery.exec();\n String actualContentType = httpQuery.getContentType();\n if (actualContentType == null || actualContentType.equals(\"String_Nod...
"public void handleEvent(Event event) {\n TreeItem item = (TreeItem) event.item;\n if (item == null)\n return;\n if (isSchemaNode(item) || (item == rootNode)) {\n return;\n }\n String tableName = Utility.getTreeItemsName(item);\n String catalogName = metaDataProvider.getCatalog();\n S...
"private long ensureConsumerWhenNeeded(Boolean hasNetwork) {\n if (hasNetwork == null) {\n hasNetwork = networkUtil instanceof NetworkEventProvider ? hasNetwork() : true;\n }\n Long nextRunNs;\n synchronized (nonPersistentJobQueue) {\n nextRunNs = nonPersistentJobQueue.getNextJobDelayUntilNs(h...
"public boolean applies(GameEvent event, Ability source, Game game) {\n Permanent brand = game.getPermanent(source.getSourceId());\n if (brand != null && brand.getAttachedTo() != null) {\n UUID enchantedController = game.getPermanent(brand.getAttachedTo()).getControllerId();\n if (Objects.equals(enc...
"public Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {\n boolean importData = false;\n if (req.getParameter(ARG_IMPORT) != null) {\n importData = Boolean.parseBoolean(req.getParameter(ARG_IMPORT));\n }\n String siteName = RmSiteType.DEFAULT_SITE_NAME;\n if (req...
"public String bindDn() {\n return (overrides != null && overrides.containsKey(\"String_Node_Str\")) ? (String) overrides.get(\"String_Node_Str\") : \"String_Node_Str\";\n}\n"
"public void testFromJSON() throws JSONException, ParseException {\n AndroidMock.expect(factoryService.getFactoryFor(Application.class)).andReturn(appFactoryMock);\n AndroidMock.expect(factoryService.getFactoryFor(User.class)).andReturn(userFactoryMock);\n AndroidMock.expect(factoryService.getFactoryFor(Entity...
"public void onTouchMove(float x, float y) {\n if (!BBTHGame.DEBUG && !tutorial.isFinished()) {\n tutorial.touchMove(x, y);\n return;\n }\n x -= BBTHSimulation.GAME_X;\n y -= BBTHSimulation.GAME_Y;\n if (x < 0 || y < 0) {\n simulateWallGeneration();\n } else if (currentWall != nul...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n int minLand = Integer.MAX_VALUE;\n Cards landsToSacrifice = new CardsImpl();\n for (UUID playerId : controller.getInRange()) {\n Player p...
"public String getVersion() {\n if (mod == null || mod.getVersion() == null) {\n return \"String_Node_Str\";\n }\n return mod.getVersion();\n}\n"
"void finalizeAddedStorages() {\n if ((this.getClass().equals(Set.class))) {\n Tree<ClusterNode> tree = defaultStorageData.getStorageTree();\n int count = 1;\n for (Integer storageID : defaultStorageData.getStorageVA()) {\n ClusterNode node = new ClusterNode(tree, get(storageID).getLa...
"public int onStartCommand(Intent intent, int flags, int startId) {\n Log.e(\"String_Node_Str\", \"String_Node_Str\");\n APIService service = Client.getService();\n Call<StackAnswer> call = service.getAnswer();\n call.enqueue(new Callback<StackAnswer>() {\n public void onResponse(Call<StackAnswer> ca...
"public boolean isEnable() {\n return exportVisibility;\n}\n"
"private void setWorkerInstances(ProgramId programId, int instances) throws ExecutionException, InterruptedException {\n int oldInstances = store.getWorkerInstances(programId.toId());\n if (oldInstances != instances) {\n store.setWorkerInstances(programId.toId(), instances);\n ProgramRuntimeService....
"public void run() {\n long start = System.currentTimeMillis();\n int width = ARDisplay.this.getWidth();\n int height = ARDisplay.this.getHeight();\n try {\n Aggregates<Color> colors = renderer.transfer((Aggregates) aggregates, (Transfer) transfer);\n image = Util.asImage(colors, ARDisplay.thi...
"public void stop() {\n for (DiscoveryProvider provider : discoveryProviders) {\n provider.stop();\n }\n if (multicastLock.isHeld()) {\n multicastLock.release();\n }\n if (!mShouldResume)\n unregisterBroadcastReceiver();\n}\n"
"public void signalUpdatedFile(File iFile) {\n synchronized (this) {\n ScreenConfiguration d = configuration.get(iFile.getName());\n if (d != null) {\n if (d.getFile().equals(iFile)) {\n log.warn(\"String_Node_Str\" + iFile);\n try {\n d.load(...
"public void checkCreateUsingEditor() throws FileNotFoundException, IOException {\n Assert.assertTrue(functionalUtil.login(browser, functionalUtil.getUsername(), functionalUtil.getPassword(), true));\n Assert.assertTrue(functionalUtil.openSite(browser, OlatSite.LEARNING_RESOURCES));\n Assert.assertTrue(functio...
"public static List<IComponent> filterNeededComponents(Item item, ERepositoryObjectType type) {\n EDatabaseComponentName name = EDatabaseComponentName.getCorrespondingComponentName(item, type);\n String productNameWanted = filterProductNameWanted(name, item);\n boolean hl7Related = false;\n boolean hl7Outpu...
"public void onViewCreated(final View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n mListener.onHomeSetTitle(getResources().getString(R.string.title_home));\n refreshReceiver = new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n ...
"public void tearDown() {\n ArchiveUtil.deleteAllFiles(new File(ARCHIVE_NAME));\n}\n"
"protected int getLastBlock(int level, FatBlock fatBlock) throws IOException {\n for (int index = 1023; index >= 0; index--) {\n int blockId = fatBlock.getBlock(index);\n if (blockId > 0) {\n if (level == 0) {\n fatBlock.setBlock(index, -1);\n return blockId;\n ...
"public CompilationUnit applyState(CompilerState state, IContext context) {\n if (state == CompilerState.TOKENIZE) {\n this.tokens = Dyvilc.parser.tokenize(this.getFile());\n return this;\n } else if (state == CompilerState.PARSE) {\n Dyvilc.parser.pushParser(new CompilationUnitParser(this));...
"private org.eclipse.birt.data.engine.api.IResultIterator getSubQueryIterator(SubqueryLocator subqueryLocator, org.eclipse.birt.data.engine.api.IResultIterator sourceResultIterator) throws BirtException {\n org.eclipse.birt.data.engine.api.IResultIterator resultIterator = sourceResultIterator;\n if (subqueryLocat...
"public void configure(long txn, long txPin) throws JournalException {\n String loc = journal.getKey().getId();\n LOG.debug().$(\"String_Node_Str\").$(loc).$(\"String_Node_Str\").$(txn).$(\"String_Node_Str\").$(txPin).$('}').$();\n journalServerState.reset();\n journal.refresh();\n long thisTxn = journal...
"public TaxLine getTaxLine(LocalDate date, Product product, Company company, FiscalPosition fiscalPosition, boolean isPurchase) throws AxelorException {\n TaxLine taxLine = new TaxService().getTaxLine(this.getProductTax(product, company, fiscalPosition, isPurchase), date);\n if (taxLine != null) {\n return...
"public void testCursorModel5() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = this.creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptE...
"void initialClusterState(ClusterState initialState) {\n clusterServiceLock.lock();\n try {\n final ClusterState currentState = getState();\n if (currentState != ClusterState.ACTIVE && currentState != initialState) {\n logger.warning(\"String_Node_Str\" + \"String_Node_Str\" + currentStat...
"private SDOProperty processRef(GlobalRef globalRef) {\n boolean isElement = globalRef.isElement();\n SDOProperty p = null;\n SDOProperty refProp = getExistingGlobalProperty(globalRef.getUri(), globalRef.getLocalName(), isElement);\n if (refProp != null && refProp.isFinalized()) {\n p = (SDOProperty)...
"public void moveRight(float percent) {\n releaseEdgeEffects();\n computeScrollSurfaceSize(mSurfaceSizeBuffer);\n mScrollerStartViewport.set(mCurrentViewport);\n float moveDistance = mContentRect.width() * percent;\n int startX = (int) (mSurfaceSizeBuffer.x * (mScrollerStartViewport.left - Viewport.AXIS_...
"public void undeployApplication(String applicationId) throws CommandException {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n try {\n HttpResponse response = restClient.doPost(httpClient, restClient.getBaseURL() + ENDPOINT_UNDEPLOY_APPLICATION.replace(\"String_Node_Str\", applicationId), \"S...
"public void splitPixels_multiple() {\n SplitMergeLineFitLoop alg = new SplitMergeLineFitLoop(0.001, MINIMUM_SPLIT_FRACTION, 100);\n alg.contour = new ArrayList<Point2D_I32>();\n alg.contour.add(new Point2D_I32(0, 0));\n alg.contour.add(new Point2D_I32(10, 10));\n alg.contour.add(new Point2D_I32(20, 20))...
"public static void main(String[] args) {\n String vendor = System.getProperty(\"String_Node_Str\");\n String vm = System.getProperty(\"String_Node_Str\");\n if (vendor == null || !vendor.toLowerCase().contains(\"String_Node_Str\") || vm == null || vm.toLowerCase().contains(\"String_Node_Str\")) {\n log...
"public void run() {\n LOG.info(\"String_Node_Str\");\n if (this.failedVertices.isEmpty()) {\n LOG.error(\"String_Node_Str\");\n }\n Iterator<ExecutionVertex> vertexIter = this.failedVertices.iterator();\n while (vertexIter.hasNext()) {\n ExecutionVertex failed = vertexIter.next();\n ...
"public static void loadGameCharacterVariablesFromXML(GameCharacter character, StringBuilder log, Element parentElement, Document doc) {\n NodeList nodes = parentElement.getElementsByTagName(\"String_Node_Str\");\n Element element = (Element) nodes.item(0);\n if (((Element) element.getElementsByTagName(\"Strin...
"public static BlockRayBuilder from(Entity entity) {\n checkNotNull(entity, \"String_Node_Str\");\n final Vector3d rotation = entity.getRotation();\n final Vector3d direction = Quaterniond.fromAxesAnglesDeg(rotation.getY(), 360 - rotation.getX(), rotation.getZ()).getDirection();\n final Location location = ...
"private LTTngTextTrace initializeEventStream() {\n if (testStream == null) {\n try {\n URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(tracepath1), null);\n File testfile = new File(FileLocator.toFileURL(location).toURI());\n LTTngTextTra...
"public void setUp() throws Exception {\n DataExplorerTestHelper.initDataExplorer();\n patternExplorer = new RegexPatternExplorer();\n PatternMatchingIndicator indicator = mock(PatternMatchingIndicator.class);\n when(indicator.eClass()).thenReturn(null);\n ModelElement element = mock(ModelElement.class);...
"public JsonElement serialize(JsonFluidStack src, Type typeOfSrc, JsonSerializationContext context) {\n JsonObject jsonObject = new JsonObject();\n jsonObject.addProperty(\"String_Node_Str\", src.fluid.getName());\n jsonObject.addProperty(\"String_Node_Str\", src.amount);\n if (src.tag != null) {\n j...
"public void onSuccess(DescriptiveMetadataEditBundle bundle) {\n callback.onSuccess(new EditDescriptiveMetadata(aipId, representationId, bundle));\n}\n"
"private void doBeforeLayout() {\n Layer oldLayer = (lastVisibleWidget == null) ? null : (Layer) lastVisibleWidget.getLayoutData();\n Layer newLayer = (visibleWidget == null) ? null : (Layer) visibleWidget.getLayoutData();\n int oldIndex = getWidgetIndex(lastVisibleWidget);\n int newIndex = getWidgetIndex(v...
"private void skipPadding() {\n while (ch == padding && length-- > 0 && ch != '\\0') {\n ch = input.nextChar();\n }\n}\n"
"public String getNodeDisplayName(Object model) {\n if (model instanceof ScriptsNode) {\n return SCRIPS_NODE_NAME;\n } else if (model instanceof ScriptElementNode) {\n Object designElementModel = ((ScriptElementNode) model).getParent();\n return getFlatHirarchyPathName(designElementModel);\n ...
"private void expandResource(Context context, final JsonValue value, List<JsonPointer> fieldsList) throws ResourceException {\n if (!value.isNull() && value.get(SchemaField.FIELD_REFERENCE) != null) {\n ReadRequest request = Requests.newReadRequest(value.get(SchemaField.FIELD_REFERENCE).asString());\n ...
"private final String bringUpServiceLocked(ServiceRecord r, int intentFlags, boolean execInFg, boolean whileRestarting) {\n if (r.app != null && r.app.thread != null) {\n sendServiceArgsLocked(r, execInFg, false);\n return null;\n }\n if (!whileRestarting && r.restartDelay > 0) {\n return ...
"public FeedbackDao getFeedbackDao() {\n if (feedbackDao == null) {\n feedbackDao = new SQLFeedbackDao(new SimpleRemoveBehavior<FeedbackEntity>());\n }\n return feedbackDao;\n}\n"
"public static void checkLastGenerationHasCompilationError(boolean updateProblemsView) throws ProcessorException {\n if (updateProblemsView && CommonsPlugin.isHeadless()) {\n updateProblemsView = false;\n }\n boolean ret = false;\n boolean isJob = true;\n Item item = null;\n IProxyRepositoryFac...
"public Class<? extends JAXBElement> getType() {\n return (Class<? extends JAXBElement>) super.getType();\n}\n"
"public boolean nextBlock() {\n if (blockCount == masterSequence.getBlockCount(atomicCount)) {\n currentBlock = null;\n rowIndex = -5;\n blockCount = 0;\n if (atomicCount >= masterSequence.getAtomicCount()) {\n throw new NoSuchElementException(\"String_Node_Str\");\n }\n...
"private void popupFormatBuilder(boolean refresh) {\n String type = getSelectedDataType();\n int style;\n if (DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals(type)) {\n return;\n }\n if (DesignChoiceConstants.PARAM_TYPE_STRING.equals(type)) {\n style = FormatBuilder.STRING;\n } else if (...
"public Block getConvertInternalIDToBlock(int internalID) {\n Block block = null;\n if (!getVersion().equals(\"String_Node_Str\") || internalID > blockIDHighestVanilla) {\n if (blockMappingInternalIDToBlock.containsKey(internalID)) {\n block = blockMappingInternalIDToBlock.get(internalID);\n ...
"protected void fillUIContents() {\n boolean isOnlyRemoteConnection = brandingService.getBrandingConfiguration().isOnlyRemoteConnection();\n List<ConnectionBean> storedConnections = loginHelper.getStoredConnections();\n storedConnections = LoginHelper.filterUsableConnections(storedConnections);\n for (Conne...
"protected void onRestoreInstanceState(Bundle state) {\n super.onRestoreInstanceState(state);\n mScrollPosition = state.getFloat(STATE_SCROLL_POSITION, INVALID_POSITION);\n mSelectedIndex = state.getInt(STATE_SELECTED_INDEX, 0);\n}\n"
"public void testDestinationReport() {\n final Properties destinationProperties = new Properties();\n destinationProperties.put(\"String_Node_Str\", \"String_Node_Str\");\n destinationProperties.put(\"String_Node_Str\", csvFile.getAbsolutePath());\n prepareFile(csvFile);\n try {\n final CsvDestina...
"public static List<org.talend.core.model.metadata.builder.connection.MetadataTable> getTablesFromSpecifiedDataPackageWithOders(DatabaseConnection dbconn) {\n IMetadataConnection iMetadataConnection = ConvertionHelper.convert(dbconn);\n String schema = dbconn.getUiSchema();\n String catalog = dbconn.getSID();\...
"public void testGenericClass_UnboundWildcard() throws NotFoundException {\n TypeOracle oracle = moduleContext.getOracle();\n JGenericType genericType = getGenericTestType();\n JWildcardType upperBoundWildcard = oracle.getWildcardType(BoundType.EXTENDS, oracle.getJavaLangObject());\n JClassType type = oracl...
"public void fire(ArrayList<PacketOutputListener> listeners) {\n for (PacketOutputListener listener : listeners) {\n listener.onSentPacket(this);\n if (isCancelled())\n break;\n }\n}\n"
"private static String getTextBodyFromBodyPart(MimeBodyPart part) throws MessagingException {\n final String type = lowercaseUnlessNull(part.getContentType());\n final String disposition = lowercaseUnlessNull(part.getDisposition());\n try {\n final Object content = part.getContent();\n if (conten...
"public void reusesIdWhenHeaderPresent() throws Exception {\n String headerId = UUID.randomUUID().toString();\n when(request.getHeader(RequestTrackerConstants.DEFAULT_HEADER)).thenReturn(headerId);\n requestTrackerServletFilter.doFilter(request, response, chain);\n String idInLog = MDC.get(RequestTrackerCon...
"protected static void clearTestedFieldsIfAny() {\n SharedFieldTypeRedefinitions sharedRedefinitions = TestRun.getSharedFieldTypeRedefinitions();\n if (sharedRedefinitions != null) {\n TestedClassInstantiations testedClasses = sharedRedefinitions.getTestedClassInstantiations();\n if (testedClasses !...
"static List<Converters> loadConverters(ClassLoader cl) {\n List<Converters> ret = new ArrayList<>();\n ServiceLoader.load(Converters.class, cl).iterator().forEachRemaining(ret::add);\n ret.sort(Comparator.comparing(Converters::getPriority));\n return ret;\n}\n"
"public XpathNode convert(final StringNode from) {\n XpathNode ret = new XpathNode(from.getBaseUrl(), (String) null);\n ret.setModel(new SipNodes(Lists.newLinkedList(Iterables.transform(from.createOrGetModel(), new Function<String, SIPNode>() {\n public SIPNode apply(String input) {\n try {\n ...
"public int getIndexAt(int x, int y) {\n double vx = screenXToValueX(x);\n return FindIndexOfValueX(vx, serie);\n}\n"
"public boolean layTile(LayTile action) {\n String errMsg = null;\n int cost = 0;\n SpecialTileLay stl = null;\n boolean extra = false;\n PublicCompanyI company = action.getCompany();\n String companyName = company.getName();\n TileI tile = action.getLaidTile();\n MapHex hex = action.getChosenHe...
"public So2Pose inverse() {\n double[][] mArray = { { Math.cos(orientation), -Math.sin(orientation), getX() }, { Math.sin(orientation), Math.cos(orientation), getY() }, { 0, 0, 1 } };\n Matrix mMatrix = new Matrix(mArray);\n Matrix mMatrixInv = mMatrix.inverse();\n double th = Util.normilizeAngleRad(Math.at...
"public URL getServiceURL(long timeout, TimeUnit timeoutUnit) {\n try {\n Tasks.waitFor(true, new Callable<Boolean>() {\n public Boolean call() throws Exception {\n try {\n serviceClient.checkAvailability(serviceId);\n return true;\n ...
"void parseResponse(JSONObject response) throws JSONException {\n InsightsTodayModel model = new InsightsTodayModel(123456, response);\n assertEquals(model.getDate(), \"String_Node_Str\");\n assertEquals(model.getBlogID(), \"String_Node_Str\");\n assertEquals(model.getViews(), 56);\n assertEquals(model.g...
"public String getName() {\n return CompSystemI18n.getString(getUniqueId(), true);\n}\n"
"public void expand(ARXNode center) {\n if (this.isComplete()) {\n return;\n }\n int[] indices = center.getTransformation();\n Transformation transformation = solutions.getTransformation(indices);\n LongArrayList neighbors = transformation.getPredecessors();\n LongArrayList successors = transfo...
"public void doDispatch(MuleEvent event) throws Exception {\n logger.debug(\"String_Node_Str\" + event.getEndpoint().getEndpointURI().toString());\n String evaluatedEndpoint = event.getMuleContext().getExpressionManager().parse(event.getEndpoint().getEndpointURI().toString(), event.getMessage());\n logger.debu...
"private Button getSubmitButton() {\n List<Field> fields = getFields(this, IButton.class);\n switch(fields.size()) {\n case 0:\n throw JDISettings.exception(\"String_Node_Str\", toString());\n case 1:\n return (Button) ReflectionUtils.getFieldValue(fields.get(0), this);\n ...
"public static String getCurrentStep(Player player, String scriptName) {\n if (scriptName == null)\n return null;\n if (DenizenAPI._saves().contains(\"String_Node_Str\" + player.getName() + \"String_Node_Str\" + \"String_Node_Str\" + scriptName.toUpperCase() + \"String_Node_Str\" + \"String_Node_Str\")) {\...
"protected Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {\n Map<String, String> templateVars = req.getServiceMatch().getTemplateVars();\n Map<String, String[]> params = new TreeMap<String, String[]>();\n Map<String, String[]> headers = new TreeMap<String, String[]>();\n ...
"protected Object _getRelated(ObjectContext ctx, String name) throws RepositoryException {\n if (ctx.getStatus() != Status.PERSISTENT) {\n throw new IllegalStateException();\n }\n Node node = ctx.state.getNode();\n Node related = sessionWrapper.getReferenced(node, name);\n if (related != null) {\n...
"public void execute() throws BuildException {\n if (usedMatchingTask) {\n log(\"String_Node_Str\" + \"String_Node_Str\", quiet ? Project.MSG_VERBOSE : verbosity);\n }\n if (file == null && dir == null && filesets.size() == 0 && rcs == null) {\n throw new BuildException(\"String_Node_Str\" + \"St...
"public void test() throws Exception {\n Trie trie = createFirstTrie();\n System.out.println(\"String_Node_Str\" + trie.getClass().getName());\n int c = 0, chars = 0;\n long b = 0;\n LapTimer t = new LapTimer();\n for (String word : new WikipediaTitles(wikipediaFilename)) {\n t.lap();\n ...
"public void addParameterLine(String paramLine) throws SystemException {\n String[] elementListTemp = paramLine.substring(1).split(\"String_Node_Str\", -1);\n String[] elementList = Arrays.copyOf(elementListTemp, elementListTemp.length - 1);\n TestDataRow actParams = new TestDataRow(elementList);\n if (getD...
"public void endDraw() {\n if (!clear && screenTex != null) {\n copyFrameToScreenTexture();\n }\n gl.glFlush();\n report(\"String_Node_Str\");\n}\n"
"private int getPolyCoeffIndex(final double time) {\n final int nv = orbitStateVectors.length;\n if (time < orbitStateVectors[0].time_mjd) {\n return 0;\n }\n if (time >= orbitStateVectors[nv - 1].time_mjd) {\n return nv - 2;\n }\n for (int i = 0; i < nv - 1; i++) {\n if (time >= ...
"public static long getPID() {\n if (isLinux()) {\n try {\n final Process process = new ProcessBuilder().command(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").start();\n final byte[] returnBytes = new byte[128];\n process.getInputStream().read(returnBytes);\n ...
"public Value<Void> newDelayedValue(long delaySeconds) {\n PromisedValueImpl<Void> promisedValue = (PromisedValueImpl<Void>) newPromise(Void.class);\n PipelineManager.registerDelayedValue(updateSpec, thisJobRecord, delaySeconds, promisedValue.getSlot());\n return promisedValue;\n}\n"
"private void doLayout() {\n double left = 0, top = 0, right = 0, bottom = 0;\n for (Widget child : getChildren()) {\n LayoutData data = (LayoutData) child.getLayoutData();\n Layer layer = data.layer;\n switch(data.direction) {\n case NORTH:\n layer.setLeftRight(left...
"protected void processHttpResponse(final Element httpResponse, final Map<SerializationProperty, String> serializationProperties, final HttpResponse response) throws RestXqServiceException {\n final String strStatus = httpResponse.getAttribute(STATUS_ATTR_NAME);\n HttpStatus httpStatus = null;\n if (strStatus ...
"public void testClientException() {\n this.request(\"String_Node_Str\").jsonGet();\n}\n"
"public Object deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n Object entity = BeanUtils.instantiateClass(getValueClass());\n for (JsonToken tok = jp.nextToken(); tok != JsonToken.END_OBJECT; tok = jp.nextToken()) {\n String name = jp.getCurrentName()...