content stringlengths 40 137k |
|---|
"protected boolean checkPathStepPreconditions(ShortPoint2D pathTarget, int step) {\n boolean result = !((state == ESoldierState.SEARCH_FOR_ENEMIES || state == ESoldierState.HITTING) && step >= 2);\n if (!result && oldPathTarget == null) {\n oldPathTarget = pathTarget;\n }\n return result;\n}\n"
|
"protected void refreshData() {\n try {\n if (this.comitting)\n return;\n this.refreshing = true;\n WSTransformerV2 wsTransformer = (WSTransformerV2) (getXObject().getWsObject());\n desAntionComposite.getTextWidget().setText(wsTransformer.getDescription() == null ? \"String_Nod... |
"public void attemptConnection() {\n if (mConnectionState == STATE_DISCONNECTED) {\n ActiveBluetoothDevice btDevice = new Select().from(ActiveBluetoothDevice.class).orderBy(\"String_Node_Str\").executeSingle();\n if (btDevice != null) {\n mDeviceName = btDevice.name;\n mDeviceAddr... |
"private Object buildObjectValuesFromDOMRecord(DOMRecord record, AbstractSession session, ObjectBuildingQuery query, JoinedAttributeManager joinManager) {\n Node root = record.getDOM();\n NodeList children = root.getChildNodes();\n ContainerPolicy cp = getContainerPolicy();\n Object container = cp.container... |
"private Collection<Address> getPossibleAddresses() {\n final Collection<String> possibleMembers = getMembers();\n final Set<Address> setPossibleAddresses = new HashSet<Address>();\n final Address thisAddress = node.address;\n for (String host : possibleMembers) {\n try {\n final AddressHo... |
"private List<MetadataColumn> extractTheColumns(NoSQLConnection connection, String cypher) throws NoSQLExtractSchemaException {\n List<MetadataColumn> metadataColumns = new ArrayList<MetadataColumn>();\n try {\n ClassLoader classLoader = NoSQLClassLoaderFactory.getClassLoader(connection);\n Neo4jCon... |
"public T newInstance() {\n try {\n if (subject != null) {\n try {\n T callback = callbackClass.getConstructor(subject.getClass()).newInstance(subject);\n return callback;\n } catch (NoSuchMethodException nsmex) {\n T callback = callbackClass.... |
"protected void updateForProperties() {\n Properties desProps = getDesignerProperties();\n if (desProps == null || desProps.isEmpty()) {\n return;\n }\n IContainer project = DesignerPropertiesUtil.getProject(designerProperties);\n IContainer srcFolderResrc = DesignerPropertiesUtil.getSourcesFolder... |
"public void onPublishMessage(String senderAddress, String subject, Object args) {\n try {\n NetworkVO network = (NetworkVO) args;\n String bridgeName = generateBridgeNameForVpc(network.getVpcId());\n if (network.getVpcId() != null & isVpcEnabledForDistributedRouter(network.getVpcId())) {\n ... |
"public OQueryDataProvider<ODocument> prepareDataProviderForProperty(OProperty property, IModel<ODocument> documentModel) {\n String sql;\n if (CustomAttributes.CALCULABLE.getValue(property, false)) {\n String sql = CustomAttributes.CALC_SCRIPT.getValue(property);\n sql = sql.replace(\"String_Node_S... |
"public int getPrayerPoints() {\n int points = 1;\n for (InvItem item : inventory.getItems()) {\n ItemWieldableDef def = ItemAttributes.getWieldable(item.id);\n if (item.wielded && def != null) {\n points += def.getPrayerPoints();\n }\n }\n return points < 1 ? 1 : points;\n}\... |
"protected void alterTable(TableName name, AlterOptions alterOptions, Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {\n if (alterOptions.getOption() == AlterOperation.ADD_COLUMN) {\n String streamName = StreamUtil.createStreamName(name);\n com.stratio.stre... |
"public static NamedReferencePair createEjbPair(EjbDescriptor referant, EjbDescriptor referee) {\n if (referant instanceof Descriptor)\n return new NamedReferencePair((Descriptor) referant, referee, EJB);\n else\n return null;\n}\n"
|
"public boolean overrides(IMethod candidate, ITypeContext typeContext) {\n if (candidate.getName() != this.name || this.typeArity() != candidate.typeArity() || candidate.hasModifier(Modifiers.STATIC_FINAL)) {\n return false;\n }\n final ParameterList candidateParameters = candidate.getParameters();\n ... |
"public void modify(Object element, String property, Object value) {\n if (element instanceof Item) {\n element = ((Item) element).getData();\n }\n SelectionChoice choice = ((SelectionChoice) element);\n {\n String newValue = UIUtil.convertToModelString((String) value, false);\n if (COL... |
"public List<Long> getCurrentDeviceGeofences(Position position) {\n List<Long> result = new ArrayList<>();\n for (Long geofenceId : getAllDeviceGeofences(position.getDeviceId())) {\n if (getGeofence(geofenceId).getGeometry().containsPoint(position.getLatitude(), position.getLongitude())) {\n res... |
"public void onSubmit() {\n DateRange range = datepicker.getModelObject();\n if (range != null) {\n DateFormat df = new SimpleDateFormat(\"String_Node_Str\");\n info(String.format(\"String_Node_Str\", df.format(dateRange.getStart()), df.format(dateRange.getEnd())));\n } else {\n warn(\"Str... |
"private void startRow(RowArea row) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", PPTXUtil.convertToEnums(canvas.getScaledValue(row.getHeight())));\n}\n"
|
"public void findMaximalFlowTap(Network network, String phaseShifterId) {\n TwoWindingsTransformer phaseShifter = network.getTwoWindingsTransformer(phaseShifterId);\n if (phaseShifter == null) {\n throw new RuntimeException(\"String_Node_Str\" + phaseShifterId + \"String_Node_Str\");\n }\n if (phaseS... |
"protected double dsdot(int N, INDArray X, int incX, INDArray Y, int incY) {\n throw new UnsupportedOperationException();\n}\n"
|
"public static void main(String[] args) throws IOException {\n Set<Fragment> frags = new HashSet<Fragment>();\n for (String arg : args) {\n try {\n File file = new File(arg);\n SourceCode sc = SourceCode.readFile(file);\n Fragment f = Csc258Compiler.compile(sc);\n ... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_item_detail, container, false);\n Cursor studyRoomCursor = new StudyRoomGroupManager(getActivity()).getStudyRoomsFromDb(mStudyRoomGroupId);\n RecyclerView re... |
"public List<TextureAtlasSprite> getParticleTextures(CableBusRenderState renderState) {\n CableCoreType coreType = CableCoreType.fromCableType(renderState.getCableType());\n AEColor cableColor = renderState.getCableColor();\n if (coreType != null) {\n return Collections.singletonList(cableBuilder.getCor... |
"double getDistant(int x, int y){\n\treturn Math.pow(x, 0.5 * y) - Math.sqrt(Math.pow(x, y));\n}\n"
|
"public boolean isColumnBoolean() {\n return realmGetter$columnBoolean();\n}\n"
|
"public void setUsername(String username) {\n this.username = StringUtils.getUTF8Bytes(username);\n}\n"
|
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == action) {\n String string = ((StringToken) action.getToken()).stringValue();\n variableName.setExpression(string);\n if (getContainer() instanceof CompositeActor) {\n CompositeActor c... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_HOME_AS_UP);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().... |
"public LowLevelHttpResponse execute() throws IOException {\n lowLevelExecCalls++;\n MockLowLevelHttpResponse response = new MockLowLevelHttpResponse();\n String contentRangeHeader = getFirstHeaderValue(\"String_Node_Str\");\n if (testServerError || testIOException) {\n switch(lowLevelExecCalls) {\n ... |
"protected int exportCluster(TMDMService service, String tempFolderPath, String dName, IProgressMonitor monitor) {\n String encodedID = null;\n WSDataClusterPK pk = new WSDataClusterPK(dName);\n try {\n List<String> items = new ArrayList<String>();\n List<WsItemPKsByCriteriaResponseResults> resul... |
"public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {\n if (!cmd.getName().equalsIgnoreCase(\"String_Node_Str\"))\n return false;\n if (sender instanceof Player) {\n Player player = (Player) sender;\n Trader trader = traderManager.getOngoingTrades(... |
"public void setCatalog(String catalog) throws SQLException {\n getDelegate().setCatalog(catalog);\n}\n"
|
"public synchronized void put(SecureKeyId secureKeyId, SecureKeyCreateRequest secureKeyCreateRequest) throws Exception {\n Principal principal = authenticationContext.getPrincipal();\n NamespaceId namespaceId = new NamespaceId(secureKeyId.getNamespace());\n authorizer.enforce(namespaceId, principal, Action.WRI... |
"public static boolean containsNoCase(String text, String phrase, boolean ignore) {\n return ignore ? text.contains(phrase) : containsNoCase(text, phrase);\n}\n"
|
"public static EventHandlerChain<RegisterInstancesEvent> onRegisterInstances() {\n if (onRegisterInstancesChain == null) {\n onRegisterInstancesChain = new EventHandlerChain<RegisterInstancesEvent>() {\n public EventHandlerChain<RegisterInstancesEvent> build() {\n return this;\n }\n ... |
"public ISensor create(Object source) throws IOException {\n AccelerationSensor sensor = null;\n Path path = pathFromSource(source);\n if (!checkPath(path))\n return sensor;\n sensor = new AccelerationSensor();\n sensor.sourceDirectory = (Path) source;\n sensor.instance = true;\n return sens... |
"private void checkNewInstalled() {\n boolean ch = false;\n String links = \"String_Node_Str\";\n for (PackageData pa : getPackageData()) {\n if (pa.isInstalled()) {\n pa.setInstalled(false);\n ch = true;\n links += JDLocale.LF(\"String_Node_Str\", \"String_Node_Str\", p... |
"public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {\n String mob = findSelectedMobName(entity);\n if (mob != null) {\n String prevMob = null;\n NBTTagCompound tagCompound = stack.getTagCompound();\n if (tagCompound != null) {\n prevId = tagCompo... |
"public void onMessage(Message message) {\n if (isDisabled()) {\n return;\n }\n lastMessage = message;\n if (!(message instanceof TextMessage)) {\n return;\n }\n final String text;\n try {\n text = ((TextMessage) message).getText();\n } catch (JMSException e) {\n e.pr... |
"protected void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline p = ch.pipeline();\n int bytesPreSecond = 0;\n if (clientSession != null) {\n bytesPreSecond = oneNetClientContext.getKBps() * OneNetCommonConstants.KByte;\n }\n p.addLast(new WriteTimeoutHandler(5)).addLast(CHANNEL... |
"public void setLong(int pos, long i) {\n buffer[(start + pos++) & mask] = (byte) (i >> 56);\n buffer[(start + pos++) & mask] = (byte) (i >> 48);\n buffer[(start + pos++) & mask] = (byte) (i >> 40);\n buffer[(start + pos++) & mask] = (byte) (i >> 32);\n buffer[(start + pos++) & mask] = (byte) (i >> 24);\... |
"protected void checkStateServer() {\n if (scrambling > 0) {\n scrambling--;\n if (scrambling == 0) {\n int id = KnownDimletConfiguration.getRandomDimlet(bonus, worldObj.rand);\n InventoryHelper.mergeItemStack(this, new ItemStack(ModItems.knownDimlet, 1, id), 3, 4);\n }\n ... |
"static public void displaySubscriptionDetails(PushSubscription subscription) {\n System.out.println(\"String_Node_Str\" + subscription.getId());\n System.out.println(\"String_Node_Str\" + subscription.getName());\n System.out.println(\"String_Node_Str\" + subscription.getStatus());\n System.out.println(\"S... |
"public void postGuiInit() {\n fileManager.initialize(callback);\n downloader.postGuiInit(this);\n}\n"
|
"public void run() {\n try {\n Progress.start(progressTicket);\n Progress.setDisplayName(progressTicket, NbBundle.getMessage(SaveTask.class, \"String_Node_Str\"));\n FileObject fileObject = FileUtil.toFileObject(file);\n if (FileUtil.isArchiveFile(fileObject)) {\n fileObject = ... |
"private BillEto update(BillEto bill) {\n Objects.requireNonNull(bill, \"String_Node_Str\");\n Long billId = bill.getId();\n BillEntity targetBill = getBillDao().findOne(billId);\n List<Long> orderPositionIds = bill.getOrderPositionIds();\n if (targetBill == null) {\n List<OrderPositionEto> orderP... |
"private void trySetupSwipeRefresh() {\n mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_layout);\n if (mSwipeRefreshLayout != null) {\n mSwipeRefreshLayout.setColorSchemeResources(R.color.refresh_progress_1, R.color.refresh_progress_2, R.color.refresh_progress_3);\n mSwip... |
"public void validate(Object object, Errors errors) {\n Survey survey = (Survey) object;\n if (StringUtils.isBlank(survey.getName())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (StringUtils.isBlank(survey.getIdentifier())) {\n errors.rejectValue(\"String_Node_St... |
"public void run() {\n final long start = Clock.currentTimeMillis();\n startExecution(name, start - creationTime);\n Object result = null;\n try {\n super.run();\n result = get();\n } catch (Exception e) {\n final ILogger logger = getLogger();\n logger.log(Level.FINEST, \"Stri... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n final ToggleButton togglebutton = (ToggleButton) findViewById(R.id.ToggleButton01);\n runner = StrobeRunner.getInstance();\n if (runner.isRunning) {\n } else {\n try {\n ... |
"public int getSignatureMatch(Name name, IValue instance, IArguments arguments) {\n if (name != null && name != this.name) {\n return 0;\n }\n if ((this.modifiers & Modifiers.SYNTHETIC) != 0) {\n return 0;\n }\n if (arguments == null) {\n return 1;\n }\n if (instance == null &&... |
"public void setResult(Object result) {\n Object finalResult = result;\n if (finalResult instanceof Throwable && !(finalResult instanceof CancellationException)) {\n if (!(finalResult instanceof CancellationException)) {\n finalResult = new ExecutionException((Throwable) finalResult);\n }... |
"public void before() throws Exception, HandlerConnectionException {\n String job = \"String_Node_Str\";\n String KEYSPACENAME = CATALOG_CONSTANT;\n String TABLENAME_1 = TABLE1_CONSTANT.getName();\n String TABLENAME_2 = TABLE2_CONSTANT.getName();\n Integer CQLPORT = 9042;\n Integer RPCPORT = 9160;\n ... |
"public org.hl7.fhir.dstu2.model.Patient.AnimalComponent convertAnimalComponent(org.hl7.fhir.dstu3.model.Patient.AnimalComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.Anima... |
"private ResourceApk createApk(RuleContext ruleContext, boolean isLibrary, ResourceDependencies resourceDeps, ResourceConfigurationFilter configurationFilters, List<String> uncompressedExtensions, boolean crunchPng, List<String> densities, boolean incremental, ResourceContainer maybeInlinedResourceContainer, LocalResou... |
"public void setTextureOffset(int w, int h) {\n if (w > 0)\n mTextureW = w;\n if (h > 0)\n mTextureH = h;\n mTextureOffset = 0;\n}\n"
|
"private static Parameters createSimulationParameters(Solver solver, String[] args, SBAModel sbaModel) throws WrongArgumentsException {\n Parameters requiredParams = solver.getRequiredParameters();\n Parameters parameters = new Parameters();\n for (Parameter param : requiredParams.arrayOfKeys()) {\n par... |
"private double getWordDistance(int[] user, int[] word) {\n if (word.length > user.length)\n return Float.MAX_VALUE;\n double dist = 0;\n int currentWordIndex = 0;\n for (int i = 0; i < user.length / 2; i++) {\n int ux = user[i * 2];\n int uy = user[i * 2 + 1];\n double d = dist(... |
"public Object intercept(Object proxy, Method method, Object[] arguments, MethodProxy methodProxy) throws Throwable {\n return new InterceptedMethodInvocation(proxy, methodProxy, arguments, 0).proceed();\n}\n"
|
"public void doesNotDecodeAgainIfBitmapWithTransformationsAlreadyInCache() throws Exception {\n ImageView target1 = mock(ImageView.class);\n ImageView target2 = mock(ImageView.class);\n Transformation transformation = mock(Transformation.class);\n when(transformation.transform(any(Bitmap.class))).thenReturn... |
"private int find(Pattern regExp, String searchString, boolean caseSensitive, boolean wholeWord, boolean forwardSearch, boolean[] cols) {\n int startingRow = getStartingRow(forwardSearch);\n int endRow = (forwardSearch) ? logEntryTable.getRowCount() - 1 : 0;\n FieldPosition pos = new java.text.FieldPosition(0)... |
"public void start(Stage mainStage) throws IOException {\n this.mainStage = mainStage;\n double screenWidth = Screen.getPrimary().getBounds().getWidth();\n double screenHeight = Screen.getPrimary().getBounds().getHeight();\n LOGGER.info(\"String_Node_Str\" + screenWidth + \"String_Node_Str\" + screenHeight)... |
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n if (resourceType == null) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n r... |
"protected TypeAndOwner _getFieldTypeAndOwner(Class c, String name) {\n if (c.isArray() && name.equals(\"String_Node_Str\"))\n return new TypeAndOwner(Type.INT, Type.createType(c.getName()));\n Field field;\n List workList = new LinkedList();\n Set handledSet = new HashSet();\n workList.add(c);\n ... |
"public void load() {\n try {\n mainConfig.load(mainConfigFile);\n regionConfig.load(regionConfigFile);\n grillConfig.load(grillConfigFile);\n bridgeConfig.load(bridgeConfigFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n ... |
"private void load(String type) throws Exception {\n log(LogCategory.PROGRESS, \"String_Node_Str\" + type);\n for (FetchedFile f : fileList) {\n for (FetchedResource r : f.getResources()) {\n if (r.getElement().fhirType().equals(type)) {\n log(LogCategory.PROGRESS, \"String_Node_S... |
"public void step() {\n double x0 = x, y0 = y, t0 = t;\n x += v * Math.cos(t) * dt;\n y += -v * Math.sin(t) * dt;\n t += vt * dt;\n while (t < -Math.PI) t += 2 * Math.PI;\n while (t >= Math.PI) t -= 2 * Math.PI;\n if (playfield.collision(this, true)) {\n x = x0;\n y = y0;\n t =... |
"private ArrayList<LayoutElementParcelable> listDocs() {\n ArrayList<LayoutElementParcelable> docs = new ArrayList<>();\n final String[] projection = { MediaStore.Files.FileColumns.DATA };\n Cursor cursor = c.getContentResolver().query(MediaStore.Files.getContentUri(\"String_Node_Str\"), projection, null, null... |
"public CourseDao getCourseDao() {\n if (courseDao == null) {\n courseDao = new SQLCourseDao(new CoursesRemoveBehavior(this, new SimpleRemoveBehavior<CourseEntity>()));\n }\n return courseDao;\n}\n"
|
"public void setColumnRealmList(RealmList<Dog> columnRealmList) {\n realmSetter$columnRealmList(columnRealmList);\n}\n"
|
"private int readAllLabelsInCodeBlock(int u, int codeLength, int codeStart, int codeEnd) {\n byte[] b = code;\n readLabel(codeLength + 1);\n while (u < codeEnd) {\n int offset = u - codeStart;\n int opcode = b[u] & 0xFF;\n switch(TYPE[opcode]) {\n case NOARG:\n case I... |
"private void setCDMDatasetForStations(NetcdfDataset netCDFDataset, String[] stationNames, String[] eventTime, Map<String, String> latLonRequest) throws IOException {\n System.out.println(\"String_Node_Str\" + getDatasetFeatureType().name());\n String[] editedStationNames = new String[stationNames.length];\n i... |
"public void fillContextMenu(IMenuManager menu) {\n TreeSelection treeSelection = ((TreeSelection) this.getContext().getSelection());\n List<IFile> selectedFiles = new ArrayList<IFile>();\n if (treeSelection.size() == 1) {\n Object obj = treeSelection.getFirstElement();\n if (obj instanceof IFold... |
"private Vector<String> ContainerLinks(String url) {\n Vector<String> links = new Vector<String>();\n boolean fileDownloaded = false;\n if (!url.startsWith(\"String_Node_Str\"))\n url = \"String_Node_Str\" + url;\n try {\n RequestInfo reqinfo = getRequest(new URL(url));\n String cookie ... |
"protected void onLayout(boolean changed, int l, int t, int r, int b) {\n int childCount = Math.min(mChildren.size(), NUMBER_OF_CHILDREN_WHEN_CHILDREN_EXPANDED);\n for (int i = 0; i < childCount; i++) {\n View child = mChildren.get(i);\n if (child.getVisibility() == View.GONE) {\n continu... |
"private void init() {\n List<String> distributionsDisplay = new ArrayList<String>();\n IDistributionsManager distributionManager = getDistributionsManager();\n if (distributionManager != null) {\n IHDistribution[] distributions = distributionManager.getDistributions();\n if (distributions != nul... |
"public static DefaultFeatureType metropolis() {\n final Map<String, Object> identification = new HashMap<>(4);\n assertNull(identification.put(DefaultFeatureType.NAME_KEY, \"String_Node_Str\"));\n assertNull(identification.put(DefaultFeatureType.NAME_KEY + \"String_Node_Str\", \"String_Node_Str\"));\n retu... |
"public static ItemStack[] getInventory(Player player) {\n eBean eBeanClass = eBean.find(player);\n if (eBeanClass != null) {\n String data = eBeanClass.getInventory();\n if (data != \"String_Node_Str\" && data != null) {\n String[] inv = Util.split(data, \"String_Node_Str\");\n ... |
"public List<ImportItem> populateImportingItems(ResourcesManager resManager, boolean overwrite, IProgressMonitor progressMonitor, boolean enableProductChecking, boolean needCheck) throws Exception {\n IProgressMonitor monitor = progressMonitor;\n if (monitor == null) {\n monitor = new NullProgressMonitor()... |
"public static void main(String[] args) throws IOException, URISyntaxException {\n Graph graph = GraphFactory.getDBpediaGraph();\n for (String fullUri : fullUris) {\n Vertex v = Graphs.vertexByFullUri(graph, URLDecoder.decode(fullUri, \"String_Node_Str\"));\n String id = (v == null) ? \"String_Node_... |
"protected void determineBackgroundColor(EventBasedSelectionManager selectionManager) {\n ArrayList<SelectionType> selectionTypes = selectionManager.getSelectionTypes(node.getPathwayVertexRep().getName().hashCode());\n backgroundColor = DEFAULT_BACKGROUND_COLOR;\n Collections.sort(selectionTypes);\n Collect... |
"protected String getCommonSuperClass(String left, String right) {\n boolean leftIsGenerated = left.startsWith(Names.INTERNAL_CLASS_PREFIX);\n boolean rightIsGenerated = right.startsWith(Names.INTERNAL_CLASS_PREFIX);\n if (!leftIsGenerated && !rightIsGenerated) {\n if ((left.equals(PROTO_EXTENDABLE_BUIL... |
"protected void proposalExists(ICompletionProposal[] proposals, String name, int expectedCount, boolean isType) {\n int foundCount = 0;\n for (ICompletionProposal proposal : proposals) {\n String propName = proposal.getDisplayString();\n if (propName.startsWith(name + \"String_Node_Str\")) {\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n storiesProgressView = (StoriesProgressView) findViewById(R.id.stories);\n storiesProgressView.setStoriesCount(PROGRESS_COUNT);\n storiesProgressView.setStoryDuration(300... |
"private BaseFont getPhysicalFont(FontMappingManager fontManager, String physicalFont, int fontStyle) {\n BaseFont font = (BaseFont) fonts.get(physicalFont);\n if (font == null) {\n font = fontManager.createFont(physicalFont, fontStyle);\n if (font != null) {\n fonts.put(physicalFont, fon... |
"protected void initWidget() {\n mImgOutAccountIcon = (ImageView) findViewById(R.id.out_account_icon);\n mImgInAccountIcon = (ImageView) findViewById(R.id.in_account_icon);\n mTvoOutAccountName = (TextView) findViewById(R.id.out_account_name);\n mTvInAccountName = (TextView) findViewById(R.id.in_account_nam... |
"public static String makeSimpleName(String localName, String qualifiedName) {\n if (localName != null && localName.length() > 0)\n return localName;\n }\n int nameSpaceIndex = qualifiedName.indexOf(\"String_Node_Str\");\n return (nameSpaceIndex == -1 ? qualifiedName : qualifiedName.substring(nameSpa... |
"private void _setPatternObject(NamedObj replacementObject, String patternObjectName, boolean mergeWithPrevious) {\n if (patternObjectName.equals(\"String_Node_Str\")) {\n try {\n PatternObjectAttribute attribute = GTTools.getPatternObjectAttribute(replacementObject, false);\n if (attrib... |
"public void setHideSensitive(boolean hideSensitive, boolean animated, long delay, long duration) {\n boolean oldShowingPublic = mShowingPublic;\n mShowingPublic = mSensitive && hideSensitive;\n if (mShowingPublicInitialized && mShowingPublic == oldShowingPublic) {\n return;\n }\n if (mPublicLayou... |
"private long calculateForkSizeRecursive(FSEntry[] selection, LinkedList<String> pathStack, ProgressMonitor pm, FSForkType... forkTypes) {\n long res = 0;\n for (FSEntry curEntry : selection) {\n if (pm.cancelSignaled()) {\n break;\n }\n if (curEntry instanceof FSLink) {\n ... |
"private void testFileHeaderCorruption() throws Exception {\n String fileName = getBaseDir() + \"String_Node_Str\";\n MVStore s = openStore(fileName);\n s.setRetentionTime(0);\n MVMap<Integer, byte[]> map;\n map = s.openMap(\"String_Node_Str\");\n map.put(0, new byte[100]);\n for (int i = 0; i < 10... |
"public static CodeArray allocateCode(int numInstrs, boolean isHot) {\n RVMArray type = RVMType.CodeArrayType;\n int headerSize = ObjectModel.computeArrayHeaderSize(type);\n int align = ObjectModel.getAlignment(type);\n int offset = ObjectModel.getOffsetForAlignment(type, false);\n int width = type.getLo... |
"public org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent convertDocumentReferenceRelatesToComponent(org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu... |
"public void run() {\n double acc = 0, f = 0;\n double p5 = 0, p10 = 0, p20 = 0;\n double map = 0, rPrec = 0;\n List<String> labels;\n for (int i = 0; i < seeds.length; i++) {\n createRandomSubSet(200, 200, seeds[i]);\n double[][] matrixA = kernelA.compute(trainGraphsA);\n double[][]... |
"public void editorCreated(EditorFactoryEvent event) {\n final Editor editor = event.getEditor();\n isBlockCursor = editor.getSettings().isBlockCursor();\n isSmoothScrolling = editor.getSettings().isAnimatedScrolling();\n EditorData.initializeEditor(editor);\n DocumentManager.getInstance().addListeners(e... |
"public ArgumentListBuilder getToolCmd(EnvVars envVars) {\n ArgumentListBuilder toolCmd = new ArgumentListBuilder();\n if (getTool().equals(\"String_Node_Str\")) {\n toolCmd.add(\"String_Node_Str\", \"String_Node_Str\");\n if (!StringUtils.isEmpty(getOutput())) {\n toolCmd.add(\"String_No... |
"public T setType(KnowledgeFragmentType type, int price) {\n if ((price != 0) ^ (type == KnowledgeFragmentType.SECRET)) {\n throw new IllegalArgumentException(price == 0 ? \"String_Node_Str\" : \"String_Node_Str\");\n }\n this.type = type;\n this.price = 0;\n return (T) this;\n}\n"
|
"public void initialize() throws IllegalActionException {\n _exception = null;\n _vertx = VertxFactory.newVertx();\n _client = _vertx.createHttpClient().setHost(_host).setPort(_port);\n _openWebSocket();\n _periodicPing = _vertx.setPeriodic(5000, new Handler<Long>() {\n\n public void handle(Long t... |
"public String[] getFirstInQueue() {\n open();\n Cursor cur = db.query(SQLitehelper.QUEUE_TABLE_NAME, new String[] { KEY_ID, KEY_NUMBER_REFERENCE, KEY_MESSAGE }, KEY_ID + \"String_Node_Str\" + KEY_ID + \"String_Node_Str\" + SQLitehelper.QUEUE_TABLE_NAME + \"String_Node_Str\", null, null, null, null);\n if (cur... |
"private void startWebActivity(String themeId, ThemeWebActivity.ThemeWebActivityType type) {\n String toastText = getString(R.string.no_network_message);\n if (NetworkUtils.isNetworkAvailable(this)) {\n if (mCurrentTheme != null) {\n boolean isCurrentTheme = mCurrentTheme.getId().equals(themeId)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.