content stringlengths 40 137k |
|---|
"public org.hl7.fhir.dstu2.model.Money convertMoney(org.hl7.fhir.dstu3.model.Money src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Money tgt = new org.hl7.fhir.dstu2.model.Money();\n copyElement(src, tgt);\n tgt.setValue(src.getValue());\n ... |
"public Result exitConsensus(WithdrawForm form) throws NulsException, IOException {\n AssertUtil.canNotEmpty(form);\n AssertUtil.canNotEmpty(form.getTxHash());\n AssertUtil.canNotEmpty(form.getAddress());\n if (!Address.validAddress(form.getAddress())) {\n return Result.getFailed(AccountErrorCode.ADD... |
"private void initXmlTreeData(List schemaList, List<HL7FileNode> root, List<HL7TreeNode> list) {\n if (hl7ui != null) {\n if (hl7ui.gethl7Manager() instanceof HL7OutputManager) {\n ((HL7OutputManager) hl7ui.gethl7Manager()).getContents().clear();\n }\n }\n HL7TreeNode rootNode = null;\... |
"public UserVmData newUserVmData(UserVm userVm) {\n UserVmData userVmData = new UserVmData();\n userVmData.setId(userVm.getId());\n userVmData.setName(userVm.getHostName());\n userVmData.setCreated(userVm.getCreated());\n userVmData.setGuestOsId(userVm.getGuestOSId());\n userVmData.setHaEnable(userVm.... |
"public void unparse(PrintWriter pw) {\n if (isMember) {\n pw.print(\"String_Node_Str\");\n if (mdxMember != null) {\n pw.print(mdxMember.getUniqueName());\n } else {\n pw.print(Util.quoteMdxIdentifier(names));\n }\n } else {\n pw.print(\"String_Node_Str\")... |
"public void setDataDomain(ATableBasedDataDomain dataDomain) {\n if (dataDomain == this.dataDomain)\n return;\n this.dataDomain = dataDomain;\n ASerializedSingleTablePerspectiveBasedView dcSerializedView = (ASerializedSingleTablePerspectiveBasedView) serializedView;\n dcSerializedView.setDataDomainID... |
"protected void setModel(ModuleHandle model) {\n super.setModel(model);\n if (model != null) {\n rulerComp.resetReportDesignHandle(model);\n }\n}\n"
|
"public void setValueIsAdjusting(boolean valueIsAdjusting) {\n this.valueIsAdjusting = valueIsAdjusting;\n if (!valueIsAdjusting) {\n if (fullChangeStart != -1 && fullChangeFinish != -1) {\n swingThreadSource.getReadWriteLock().writeLock().lock();\n try {\n fireSelectio... |
"public void doWork(Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException {\n WorkContextHandlerImpl contextHandler = createWorkContextHandler();\n validateWork(work, WorkCoordinator.getExecutionContext(execContext, work), contextHandler);\n if (logger.isLo... |
"protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception {\n HttpSession httpSession = request.getSession();\n String view = getFormView();\n if (Context.isAuthenticated()) {\n String[] conceptClassList = request.getPar... |
"public void leader() {\n LOG.info(\"String_Node_Str\");\n resourceCoordinator = new ResourceCoordinator(zkClient, discoveryServiceClient, new BalancedAssignmentStrategy());\n resourceCoordinator.startAndWait();\n resourceCoordinatorClient.modifyRequirement(Constants.Service.STREAMS, new ResourceModifier() ... |
"public void onWindowResized(int width, int height) {\n if (width == windowWidth) {\n return;\n }\n windowWidth = width;\n onWindowResizedImpl(width);\n}\n"
|
"private void displayWelcomeMessage() {\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
|
"public void onStart() {\n super.onStart();\n if (!hasPost()) {\n showPost();\n }\n}\n"
|
"private void addHeaders(HttpHeaders headers) {\n for (String name : headers.keySet()) {\n if (isDynamic(name) && outputStream != null) {\n continue;\n }\n if (name.equals(\"String_Node_Str\") && outputStream == null) {\n continue;\n }\n List<String> values = ... |
"public void selectionChanged(SelectionChangedEvent event) {\n XSDElementDeclaration decl = (XSDElementDeclaration) ((IStructuredSelection) event.getSelection()).getFirstElement();\n refreshRoleView(BROWSE_ITEMS + decl.getName());\n UpdateComplexViewButton(true);\n}\n"
|
"public void datarank() throws IOException {\n final FrequencyAnalyzer frequencyAnalyzer = new FrequencyAnalyzer();\n frequencyAnalyzer.setWordFrequenciesToReturn(200);\n frequencyAnalyzer.setMinWordLength(2);\n frequencyAnalyzer.setStopWords(loadStopWords());\n final List<WordFrequency> wordFrequencies ... |
"public SimpleHttpResponse post(String url, Map<String, String> headerValues, Map<String, Object> postParameters, HttpRequest request) {\n HttpURLConnection connection = null;\n connectionPool.put(request, connection);\n try {\n URL u = new URL(url);\n if (u.getProtocol().toLowerCase().equals(\"S... |
"public void mouseClicked(MouseEvent m) {\n EvaluatedDescription eDescription = null;\n if (view.getSuggestClassPanel().getSuggestList().getSelectedValue() != null) {\n SuggestListItem item = (SuggestListItem) view.getSuggestClassPanel().getSuggestList().getSelectedValue();\n String desc = item.getV... |
"protected void prepare() throws CommandException, CommandValidationException {\n try {\n processProgramOptions();\n initializeAuth();\n initializeRemoteAdminCommand();\n if (responseFormatType != null) {\n rac.setResponseFormatType(responseFormatType);\n }\n if (... |
"public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {\n if (!ModuleHelper.isEnabled(ForestryModuleUids.APICULTURE)) {\n return;\n }\n ItemRegistryApiculture items = ModuleApiculture.getItems();\n Preconditions.checkNotNull(items);\n ISubtypeRegistry.ISubtypeInterpreter beeSubtypeIn... |
"protected void createSecurityPolicyFile(File directory) {\n ArgumentNotValid.checkNotNull(directory, \"String_Node_Str\");\n try {\n File secPolFile = new File(directory, \"String_Node_Str\");\n FileWriter secfw = new FileWriter(secPolFile);\n String prop = FileUtils.readFile(inheritedSecuri... |
"public User[] awaitSelfUserFriends(String accessToken) {\n Uri.Builder uriBuilder = Uri.parse(getString(R.string.gf_api_base_url)).buildUpon().appendEncodedPath(getString(R.string.gf_api_users_path)).appendEncodedPath(getString(R.string.gf_api_users_self_path)).appendEncodedPath(getString(R.string.gf_api_users_frie... |
"private void updateFormatEvaluation(HlsMediaChunk previous, long playbackPositionUs) {\n clearStaleBlacklistedVariants();\n if (!seenFirstExternalTrackSelection) {\n if (!enabledVariantBlacklistFlags[getEnabledVariantIndex(variants[0].format)]) {\n evaluation.format = variants[0].format;\n ... |
"private void relayoutTaskViews(AnimationProps animation, boolean ignoreTaskOverrides) {\n cancelDeferredTaskViewLayoutAnimation();\n bindVisibleTaskViews(mStackScroller.getStackScroll(), ignoreTaskOverrides);\n List<TaskView> taskViews = getTaskViews();\n int taskViewCount = taskViews.size();\n for (int... |
"private void processAggregation(ProjectParsed queryData, ResultSet resultSet, SearchResponse response) throws ExecutionException {\n Map<Selector, String> alias = returnAlias(queryData);\n for (Aggregation aggregation : response.getAggregations()) {\n InternalTerms terms = (InternalTerms) aggregation;\n ... |
"private static HttpEntity executeMethod(DefaultHttpClient httpClient, HttpRequestBase req) throws Throwable {\n HttpResponse response = null;\n int redirects = 0;\n while (response == null || response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {\n if (response != null && response.ge... |
"protected void doWriteObject(final Object original, final boolean unshared) throws IOException {\n final ClassExternalizerFactory classExternalizerFactory = this.classExternalizerFactory;\n final ObjectResolver objectResolver = this.objectResolver;\n Object obj = original;\n Class<?> objClass;\n int id;... |
"public void updateOnlineController(String controller, int zookeeperId, String blurVersion) {\n int updatedCount = this.jdbc.update(\"String_Node_Str\", blurVersion, controller, zookeeperId);\n if (updatedCount == 0) {\n this.jdbc.update(\"String_Node_Str\", controller, zookeeperId, blurVersion);\n }\n}... |
"public Set<Tupel> query(URI u) {\n String sparql = sparqlQueryMaker.makeQueryUsingFilters(u.toString());\n String FromCache = cache.get(u.toString(), sparql);\n String xml = null;\n if (FromCache == null) {\n try {\n xml = sendAndReceiveSPARQL(sparql);\n } catch (IOException e) {\n... |
"public void editNoteRequest(NoteStruct note) {\n if (!note.isPainting()) {\n Intent intent = new Intent(activity, AddNoteActivity.class);\n intent.putExtra(AddNoteModel.FOLDER_ID, note.getFolderId());\n intent.putExtra(AddNoteModel.IS_EDITING, true);\n intent.putExtra(AddNoteModel.NOTE, ... |
"public NutritionOrderEnteralFormulaAdministrationComponent setRate(Type value) throws FHIRFormatError {\n if (value != null && !(value instanceof Quantity || value instanceof Ratio))\n throw new FHIRFormatError(\"String_Node_Str\" + value.fhirType());\n this.rate = value;\n return this;\n}\n"
|
"private void startLocationPermissionRequest() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[] { Manifest.permission.ACCESS_COARSE_LOCATION }, REQUEST_PERMISSIONS_REQUEST_CODE);\n}\n"
|
"public void unclassifiedDocumentPresentation() {\n openPage(documentLibrary, COLLAB_SITE_ID);\n Document document = documentLibrary.getDocument(UNCLASSIFIED_DOCUMENT);\n try {\n document.getBannerText(ContentBanner.CLASSIFICATION);\n fail(\"String_Node_Str\");\n } catch (TimeoutException e) {... |
"public double computeScore(double[] target, Prediction[] prediction) {\n Map<Double, Double> counts = new HashMap<Double, Double>();\n for (int i = 0; i < target.length; i++) {\n if (!counts.containsKey(target[i])) {\n counts.put(target[i], 1.0);\n } else {\n counts.put(target... |
"public static String getLocaleName(HttpSession session) {\n return (String) session.getAttribute(LOCALE_KEY);\n}\n"
|
"public boolean isThreadRunning(int id, int componentID, String option) throws ClientNotKnownException {\n ClientState state = getState(id);\n Component component = state.getComponent(componentID);\n if (option.equals(\"String_Node_Str\"))\n return ((SparqlKnowledgeSource) component).subjectThreadIsRunn... |
"public boolean hasNext() {\n return firstValidItem();\n}\n"
|
"public void startCall() {\n Log.d(CALL_INTEGRATION, \"String_Node_Str\");\n Runnable callTask = callTasksMap.get(START_CALL_TASK);\n executeCallTask(callTask);\n}\n"
|
"void chooseModel() {\n final ChooseFileDialog dlg = new ChooseFileDialog(DdlImporterUiI18n.CHOOSE_MODEL_FILE_DIALOG_TITLE, DdlImporterUiI18n.CHOOSE_MODEL_FILE_DIALOG_MSG, new ChooseFileDialogContentProvider() {\n boolean validFile(final IFile file) {\n return relationalModel(file);\n }\n ... |
"protected DataModel buildModel() throws IOException {\n FastByIDMap<Collection<Preference>> data = new FastByIDMap<Collection<Preference>>();\n FileLineIterator iterator = new FileLineIterator(getDataFile(), false);\n processFile(iterator, data, false);\n return new GenericDataModel(GenericDataModel.toData... |
"public static String urlEncode(String str) {\n if (StringUtils.isBlank(str)) {\n return str;\n }\n String result = str;\n try {\n UriComponents uriComponents = UriComponentsBuilder.fromHttpUrl(str).build();\n return uriComponents.encode().toUriString();\n } catch (Exception e) {\n ... |
"public static String getAudioCodecName(int audioEncoder) {\n if (audioEncoder != MediaRecorder.AudioEncoder.AMR_NB && audioEncoder != MediaRecorder.AudioEncoder.AMR_WB && audioEncoder != MediaRecorder.AudioEncoder.AAC && audioEncoder != MediaRecorder.AudioEncoder.AAC_PLUS && audioEncoder != MediaRecorder.AudioEncod... |
"private void buildRefElement(TypeBuilder.OCDType ocdType, List<TypeMember> xmlElements, ExtendedAttributeDefinition attributeDef, boolean requiredForThisAttribute, String baseId, OCDType ocdReference, boolean topLevel) {\n if (generateNested(attributeDef) && !!!ocdReference.isInternal() && (topLevel || (ocdReferenc... |
"private void finalizeMonitorServiceOnStrat(Commands cmds, DomainRouterVO router, Provider provider, long networkId) {\n NetworkVO network = _networkDao.findById(networkId);\n s_logger.debug(\"String_Node_Str\" + router + \"String_Node_Str\");\n List<MonitoringServiceVO> services = new ArrayList<MonitoringServ... |
"public void emitTableInstance(SchemaContext sc, TableInstance tr, StringBuilder buf, TableInstanceContext context) {\n Table<?> tab = tr.getTable();\n if (tab == null) {\n buf.append(tr.getSpecifiedAs(sc).getSQL());\n } else if (tab instanceof PEAbstractTable) {\n PEAbstractTable<?> pet = (PEAbs... |
"private boolean loadFromThreadId(long threadId) {\n Cursor c = mContext.getContentResolver().query(sAllThreadsUri, ALL_THREADS_PROJECTION, \"String_Node_Str\" + Long.toString(threadId), null, null);\n try {\n if (c.moveToFirst()) {\n fillFromCursor(mContext, this, c, true);\n } else {\n ... |
"public org.hl7.fhir.dstu2.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.d... |
"public void rotateGate(ActivateEvent event, EntityRef screwdriver) {\n final EntityRef target = event.getTarget();\n if (target.hasComponent(SignalGateComponent.class)) {\n final Vector3i targetLocation = new Vector3i(event.getTargetLocation());\n final Block block = worldProvider.getBlock(targetLo... |
"public static InvocationMatching mapImplicitInvocation(CtClass ctClassMP, CtAbstractInvocation inv0) {\n if (inv0 instanceof CtInvocation) {\n CtInvocation invocation0 = (CtInvocation) inv0;\n CtExpression tpr = invocation0.getTarget();\n if (tpr instanceof CtThisAccess) {\n CtThisAc... |
"public int getRelativeScrollYOffset() {\n if (!this.enableScrolling && this.parent instanceof Container) {\n Item walker = this.parent;\n int offset = 0;\n while (walker instanceof Container) {\n offset += walker.relativeY;\n walker = walker.getParent();\n }\n ... |
"public void create() {\n UnitUtil uu = new UnitUtil();\n uu.enrichementMap.put(\"String_Node_Str\", \"String_Node_Str\");\n Map<String, String> config = uu.createTaskConfig();\n SplunkSinkConnectorConfig connectorConfig = new SplunkSinkConnectorConfig(config);\n Assert.assertEquals(uu.enrichementMap, co... |
"public void onResume() {\n super.onResume();\n mainColor = getResources().getColor(ThemeUtil.getTheme(getActivity()).getMainColorID());\n mainDarkColor = getResources().getColor(ThemeUtil.getTheme(getActivity()).getMainDarkColorID());\n mAddRecordBt.setColorNormal(mainColor);\n mAddRecordBt.setColorPres... |
"private void synchronize() {\n XlsContainer rowContainer = getCurrentContainer();\n ContainerSizeInfo rowSizeInfo = rowContainer.getSizeInfo();\n int startCoordinate = rowSizeInfo.getStartCoordinate();\n int endCoordinate = rowSizeInfo.getEndCoordinate();\n int startColumnIndex = axis.getColumnIndexByCo... |
"private ArrayList addToEntries(ModifiedAttributeHASession modAttrSession, ArrayList entries, SessionAttributeMetadata.Operation op, ArrayList attrList) {\n String nextAttrName = null;\n Object nextAttrValue = null;\n byte[] nextValue = null;\n for (int i = 0; i < attrList.size(); i++) {\n nextAttrNa... |
"private ElementDefinition processPaths(String indent, StructureDefinitionSnapshotComponent result, StructureDefinitionSnapshotComponent base, StructureDefinitionDifferentialComponent differential, int baseCursor, int diffCursor, int baseLimit, int diffLimit, String url, String profileName, String contextPathSrc, Strin... |
"private String getBookmark(String url) {\n int start = url.indexOf(BOOKMARK_URL_PREFIX);\n int end = -1;\n if (start != -1) {\n start += BOOKMARK_URL_PREFIX.length();\n end = url.indexOf(\"String_Node_Str\", start);\n if (end == -1) {\n end = url.length();\n }\n r... |
"public void run() {\n while (!executorIsShutdown()) {\n final TmfExperiment experiment = TmfExperiment.getCurrentExperiment();\n if (experiment != null) {\n final TmfEventRequest request = new TmfEventRequest(TmfEvent.class, TmfTimeRange.ETERNITY, 0, ExecutionType.FOREGROUND) {\n ... |
"private void initPackedSlab() {\n packed = new byte[slabSize];\n packedPosition = 0;\n}\n"
|
"List<Redirect> generateRedirects(String key, List<String> registryUrls) {\n List<Redirect> redirects = new ArrayList<Redirect>();\n if (StringUtils.isBlank(key) || !removeEmptyUrlsAndValidate(registryUrls)) {\n logger.error(\"String_Node_Str\" + \"String_Node_Str\", key, registryUrls);\n return red... |
"private static String generateDiffHtml(String diffSource, String backgroundColor, String skin, boolean wrap) {\n return \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + skin + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node... |
"public boolean hasNonScalar() {\n return objs != null || EnumType.hasNonScalar(enums);\n}\n"
|
"static ObjectName createObjectName(final String domain, final PathAddress pathAddress) {\n if (pathAddress.size() == 0) {\n return ModelControllerMBeanHelper.createRootObjectName(domain);\n }\n final StringBuilder sb = new StringBuilder(domain);\n sb.append(\"String_Node_Str\");\n boolean first =... |
"protected void updateMask(BitSet todo, List<IRow> data, BitSet mask) {\n String regex = \"String_Node_Str\" + filter.replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\";\n for (int i = todo.nextSetBit(0); i >= 0; i = todo.nextSetBit(i + 1)) {\n String v = this.data.apply(data.get(i));\... |
"private void updateWeightedNormaliser() {\n if (normaliser == null) {\n float[] normalisation = weights.clone();\n KernelFilter kf = new KernelFilter(kernel, kw, kh, scale);\n kf.convolve(normalisation, weightWidth, weightHeight);\n normaliser = new PerPixelNormaliser(normalisation);\n ... |
"public void testAddNaradowskyFeatures() {\n CoNLL09Sentence sent = getSpanishConll09Sentence1();\n Alphabet<String> alphabet = new Alphabet<String>();\n SentFeatureExtractorPrm prm = new SentFeatureExtractorPrm();\n prm.useGoldSyntax = true;\n CorpusStatistics cs = new CorpusStatistics(prm);\n cs.ini... |
"private static void addClassPath(Job job, FileSystem fs, Path hdfsBase) throws IOException {\n HadoopFileUtils.create(job.getConfiguration(), hdfsBase);\n Configuration conf = job.getConfiguration();\n Set<String> existing = getClasspath(conf);\n String cpstr = System.getProperty(\"String_Node_Str\");\n ... |
"public void testPublishAndUnpublishEvaluation() throws Exception {\n ______TS(\"String_Node_Str\");\n restoreTypicalDataInDatastore();\n String[] methodNames = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n Class<?>[] paramTypes = new Class<?>[] { String.class, String.class };\n Object[] p... |
"public void layout() {\n int orient = (orientation == Orient.VERTICAL) ? JSlider.VERTICAL : JSlider.HORIZONTAL;\n slider = new JSlider(orient, this.min, this.max, Math.max(min, this.value));\n this.managedObject = slider;\n slider.setMajorTickSpacing(this.pageIncrement);\n slider.setSnapToTicks(false);\... |
"private void initInternal(int secureMode) {\n display = eglGetDisplay(EGL_DEFAULT_DISPLAY);\n Assertions.checkState(display != null, \"String_Node_Str\");\n int[] version = new int[2];\n boolean eglInitialized = eglInitialize(display, version, 0, version, 1);\n Assertions.checkState(eglInitialized, \"St... |
"public void storeTeams(ArrayList<Team> teams) {\n Semaphore dbSemaphore = null;\n try {\n dbSemaphore = getSemaphore();\n dbSemaphore.tryAcquire(10, TimeUnit.SECONDS);\n db.beginTransaction();\n for (Team team : teams) {\n try {\n if (!unsafeExists(team.getTe... |
"public String getControllerServletUri() {\n return PREFIX + portletWindow.getPortletName();\n}\n"
|
"public double getDistanceTraveled() {\n if (!start.getWorld().equals(end.getWorld())) {\n return 0;\n }\n return start.distance(end);\n}\n"
|
"public static String[] getBranch(String version) {\n version = getMainVersion(version);\n if (versionMap.isEmpty()) {\n getVersionList();\n }\n Collection<String> branch = versionMap.getCollection(version);\n return branch == null ? null : branch.toArray(new String[branch.size()]);\n}\n"
|
"private final int broadcastIntentLocked(ProcessRecord callerApp, String callerPackage, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, int appOp, boolean ordered, boolean sticky, int callingPid, int callingUid, int userId) {\n i... |
"public void run() {\n tree.setFocus();\n}\n"
|
"public int executeUpdate(SqlCompiledQuery aQuery, Consumer<Integer> onSuccess, Consumer<Exception> onFailure) throws Exception {\n Callable<Integer> doWork = () -> {\n int rowsAffected = 0;\n DataSource dataSource = obtainDataSource(aQuery.getDatasourceName());\n if (dataSource != null) {\n ... |
"public void pickSuggestionManually(int index, CharSequence suggestion) {\n final boolean correcting = TextEntryState.isCorrecting();\n final InputConnection ic = getCurrentInputConnection();\n if (ic != null) {\n ic.beginBatchEdit();\n }\n try {\n if (mCompletionOn && mCompletions != null ... |
"private void applyStyles(Chart model, StyledComponent type, EObject component, IStyleProcessor externalProcessor) {\n if (component instanceof Block) {\n if (component.eContainer() instanceof Chart) {\n IStyle style = getMingledStyle(model, type, externalProcessor);\n ColorDefinition ne... |
"private final int updateLruProcessInternalLocked(ProcessRecord app, long now, int index, String what, Object obj, ProcessRecord srcApp) {\n app.lastActivityTime = now;\n if (app.activities.size() > 0) {\n return index;\n }\n int lrui = mLruProcesses.lastIndexOf(app);\n if (lrui < 0) {\n Lo... |
"private static int collectSlavesToRemove(List<ElasticBoxSlave> slavesToRemove) throws IOException {\n ElasticBoxCloud cloud = ElasticBoxCloud.getInstance();\n Client ebClient = new Client(cloud.getEndpointUrl(), cloud.getUsername(), cloud.getPassword());\n int numOfInstances = 0;\n for (Node node : Jenkins... |
"private void handleClientMovement() {\n double d = calculateSpeed();\n handlePlatformMovement(d);\n if (bounds != null) {\n EntityPlayerSP player = Minecraft.getMinecraft().thePlayer;\n AxisAlignedBB aabb = getAABBAboveElevator(d);\n boolean on = Minecraft.getMinecraft().thePlayer.getEnti... |
"public static HazelcastInstance createInstance(final FilterConfig filterConfig, final Properties properties) throws ServletException {\n final String instanceName = properties.getProperty(INSTANCE_NAME);\n final String configLocation = properties.getProperty(CONFIG_LOCATION);\n final String useClientProp = pr... |
"private static void findHelpers() {\n Class[] classes = { AppleCoreHelper.class, BluePowerHelper.class, ChocoCraftHelper.class, ExNihiloHelper.class, HarvestcraftHelper.class, HungerOverhaulHelper.class, MagicalCropsHelper.class, MFRHelper.class, MinetweakerHelper.class, NaturaHelper.class, PlantMegaPackHelper.clas... |
"public boolean isAssignableFrom(IType type, ITypeContext typeContext) {\n if (!Types.isSuperType(this.getSafeUpperBound().getConcreteType(typeContext), type)) {\n return false;\n }\n final IType lowerBound = this.getLowerBound();\n return lowerBound == null || Types.isSuperType(type, lowerBound.getC... |
"public void onMouseDown(Widget sender, int x, int y) {\n dragging = true;\n DOM.setCapture(getElement());\n dragStartX = x;\n dragStartY = y;\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Player targetPlayer = game.getPlayer(source.getFirstTarget());\n MageObject sourceObject = game.getObject(source.getSourceId());\n Card card = null;\n if (controller != null && targetPlaye... |
"public static void scrollToPrecent(ScrollUtil.Direction direction, int precentRate) {\n AndroidDriver<AndroidElement> driver = DriverManger.getDriver();\n int width = ScreenUtil.getDeviceWidth() - 1;\n int height = ScreenUtil.getDeviceHeight() - 1;\n switch(direction) {\n case UP:\n drive... |
"protected boolean traverseChildren() {\n boolean hasNextPage = false;\n if (child != null) {\n hasNextPage = child.layout();\n if (hasNextPage) {\n if (currentChild.isFinished()) {\n currentChild = null;\n }\n return true;\n }\n }\n while... |
"public void doSetInput() {\n List<CatalogIndicator> indicatorList = null;\n if (this.analysis.getResults().getIndicators().size() > 0) {\n indicatorList = getCatalogIndicators();\n if (indicatorList.size() == 0) {\n catalogTableViewer.setInput(getSchemaIndicators());\n } else {\n ... |
"public void onMatrixError(MatrixError e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + userId + \"String_Node_Str\" + e.getMessage());\n}\n"
|
"void synchronizeModelEntry(final IProgressMonitor monitor) {\n final IFile workspaceFile = findFileInWorkspace();\n if (workspaceFile == null)\n return;\n clean();\n try {\n final Resource model = findModel();\n if (ModelUtil.isPhysical(model)) {\n final ModelResource mr = M... |
"public static MyPetMonsterExperience getMonsterExperience(EntityType type) {\n if (mobExp.containsKey(type)) {\n return mobExp.get(type);\n }\n return unknown;\n}\n"
|
"public EndpointState unfairTransform() {\n EndpointState init = this.clone();\n EndpointState term = ModelState.getTerminal(init);\n Set<EndpointState> seen = new HashSet<>();\n Set<EndpointState> todo = new LinkedHashSet<>();\n todo.add(init);\n while (!todo.isEmpty()) {\n Iterator<EndpointSt... |
"public Transferable paste() throws IOException {\n QueryNode queryNode = (QueryNode) dropNode;\n FilterController filterController = Lookup.getDefault().lookup(FilterController.class);\n FilterLibrary library = filterController.getModel().getLibrary();\n library.saveQuery(queryNode.getQuery());\n return... |
"private void visitInNewContext(List<CssNode> nodes) {\n MergeRulesByContentVisitor v = new MergeRulesByContentVisitor();\n v.acceptWithInsertRemove(nodes);\n rulesInOrder.addAll(v.rulesInOrder);\n}\n"
|
"private ProfileDefn parseProfileSheet(Definitions definitions, ConformancePackage ap, String n, List<String> namedSheets, boolean published) throws Exception {\n Sheet sheet;\n ResourceDefn resource = new ResourceDefn();\n resource.setPublishedInProfile(published);\n sheet = loadSheet(n + \"String_Node_Str... |
"public void print(StringBuffer toStringBuffer) {\n toStringBuffer.append(\"String_Node_Str\").append(getLocale()).append(\"String_Node_Str\").append(getEncoding());\n}\n"
|
"public boolean onLongClick(View arg0) {\n chooseAccount();\n return true;\n}\n"
|
"public boolean apply(Game game, Ability source) {\n int numberSpirits = 0;\n for (Cost cost : source.getCosts()) {\n if (cost instanceof SacrificeTargetCost) {\n numberSpirits += ((SacrificeTargetCost) cost).getPermanents().size();\n }\n }\n int amount = 2 + (numberSpirits * 2);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.