content stringlengths 40 137k |
|---|
"public static boolean isLowerCase(String in) {\n if (in == null || in.length() == 0)\n return false;\n for (int i = 0; i < in.length(); i++) {\n if (!Character.isLowerCase(in.charAt(i)))\n return false;\n }\n return true;\n}\n"
|
"public void activate() {\n m_iStatus = Goal.curStatus.active;\n switch(m_Edge.flags()) {\n case NavGraphEdge.SWIM:\n {\n getM_pOwner().SetMaxSpeed(script.GetDouble(\"String_Node_Str\"));\n }\n break;\n case crawl:\n {\n getM_... |
"public Mono<ListRouteMappingsResponse> retrieveRouteMapping(String appId) {\n RouteMappingEntity entity = null;\n if (appId.startsWith(APP_UUID_PREFIX)) {\n String appNumber = appId.substring(APP_UUID_PREFIX.length());\n entity = RouteMappingEntity.builder().applicationId(appId).routeId(APP_ROUTE_U... |
"public Conditional<Integer> apply(FeatureExpr ctx, Integer y) {\n FeatureExpr context = Conditional.and(bufferCTX, ctx);\n if (Conditional.isContradiction(context)) {\n return One.valueOf(y);\n }\n return Entry.create(x.intValue(), entry.isRef);\n}\n"
|
"protected void calcMinMax(boolean fixedValues) {\n super.calcMinMax(fixedValues);\n float space = mDeltaY / 100f * 10f;\n if (mStartAtZero) {\n mYChartMin = 0;\n } else {\n float spaceBottom = (mData.getYMax() - mYChartMin) / 100f * 10f;\n mYChartMin = mYChartMin - spaceBottom;\n }\... |
"public void modify(Object element, String property, Object value) {\n if (element instanceof Item) {\n element = ((Item) element).getData();\n }\n try {\n if (COLUMN_NAME.equals(property)) {\n String newName = UIUtil.convertToModelString((String) value, false);\n if (elemen... |
"public void execute() {\n SearchReplaceUI ui = Lookup.getDefault().lookup(SearchReplaceUI.class);\n if (Lookup.getDefault().lookup(DataTablesController.class).isNodeTableMode()) {\n ui.setMode(SearchReplaceUI.Mode.NODES_TABLE);\n } else {\n ui.setMode(SearchReplaceUI.Mode.EDGES_TABLE);\n }\n ... |
"public Piece classicPromotion(Piece p, boolean verified, String promo) {\n if (p.getPromotesTo() == null || p.getPromotesTo().size() == 0)\n return p;\n if (!verified) {\n lastPromoted = p.getName();\n klazz = p.getName();\n }\n if (verified && promo != null && !promo.equals(p.getName(... |
"private long getNbPDU(StreamDirection streamDirection) {\n StreamRTPManager rtpManager = mediaStreamImpl.queryRTPManager();\n long nbPDU = 0;\n StatisticsEngine statisticsEngine = mediaStreamImpl.getStatisticsEngine();\n if (statisticsEngine != null) {\n switch(streamDirection) {\n case U... |
"protected void writeToSourceFile(String pkg, String filename, String content, Element... originatingElements) {\n Writer writer = null;\n try {\n String name = !pkg.isEmpty() ? pkg + \"String_Node_Str\" + filename : filename;\n logger.info(\"String_Node_Str\" + name);\n FileObject fileRes = ... |
"private void throwIfInvalidConfigMakesClusterUnusable() throws ClusterConfigurationError {\n try {\n Logger.trace(\"String_Node_Str\");\n final List<Node> nodes = seqAsJavaList(kafkaAdminClient.findAllBrokers());\n final List<String> advertisedListeners = new ArrayList<>();\n for (Node n... |
"public void execute() {\n SwingUtil.invokeLater(new Runnable() {\n\n public void run() {\n Point location = MouseInfo.getPointerInfo().getLocation();\n Point locationOnScreen = getLocationOnScreen();\n Dimension size = getSize();\n if (location.x >= locationOnScree... |
"public int handle(CommandCaller caller, String input) {\n String[] parts = input.split(\"String_Node_Str\");\n String[] args;\n String command = parts[0].toLowerCase();\n if (parts.length == 1) {\n args = new String[0];\n } else {\n args = new String[parts.length - 1];\n System.arra... |
"public void test() throws InterruptedException {\n YamlLogging.setAll(false);\n char[] chars = new char[(1 << 20) * 2];\n Arrays.fill(chars, 'X');\n String data = new String(chars);\n final ConcurrentMap<String, String> map;\n final String type = System.getProperty(\"String_Node_Str\", \"String_Node_... |
"public List<String> getTheme() {\n List<String> themes = new ArrayList<String>();\n if (this.themes != null) {\n themes.addAll(pathsList(files(this.themes, getResourcesTargetDirectories())));\n }\n themes.addAll(PathUtil.pathsList(MavenUtils.getFiles(getDependencies(anyOf(type(SWC), type(CSS)), scop... |
"public void updateConnection() {\n ConnectionHelper.getTables(getConnection());\n EList root = getConnection().getRoot();\n EList loop = getConnection().getLoop();\n EList group = getConnection().getGroup();\n root.clear();\n loop.clear();\n group.clear();\n List<FOXTreeNode> node = (List<FOXTr... |
"public static Set<Class<?>> scanModules(Class<?> mainModule) {\n Modules ann = mainModule.getAnnotation(Modules.class);\n boolean scan = null == ann ? false : ann.scanPackage();\n List<Class<?>> list = new LinkedList<Class<?>>();\n list.add(mainModule);\n if (null != ann) {\n for (Class<?> module... |
"public static void load() {\n if (loaded) {\n return;\n }\n Badges.loadGlobal();\n if (Badges.global.contains(Badges.Badge.ALL_ITEMS_IDENTIFIED)) {\n for (LinkedHashMap<Class<? extends Item>, Boolean> cat : allCatalogs) {\n for (Class<? extends Item> item : cat.keySet()) {\n ... |
"protected void validateEmbedded(final IValidatable<T> validatable, final OProperty p, final Object fieldValue) {\n if (fieldValue instanceof ORecordId) {\n validatable.error(newValidationError(\"String_Node_Str\"));\n return;\n } else if (fieldValue instanceof OIdentifiable) {\n if (((OIdent... |
"static dPlayer valueOfInternal(String string, boolean announce) {\n if (string == null)\n return null;\n string = string.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n if (string.indexOf('-') >= 0) {\n try {\n UUID uuid = UUID.fr... |
"protected BasicOAuthStoreTokenIndex[] execute() {\n GadgetTokenContainer container = getGadgetTokenContainer();\n Collection<GadgetTokenEntry> tokenEntries = container.getGadgetTokens().values();\n List<BasicOAuthStoreTokenIndex> tokenHolder = new ArrayList<BasicOAuthStoreTokenIndex>();\n for (GadgetTokenE... |
"private void flushToOutputChunk(StreamEventCloner streamEventCloner, List<ComplexEventChunk<StreamEvent>> complexEventChunks, long currentTime) {\n ComplexEventChunk<StreamEvent> newEventChunk = new ComplexEventChunk<StreamEvent>(true);\n if (outputExpectsExpiredEvents) {\n if (expiredEventChunk.getFirst(... |
"protected void doWakefulWork(Intent intent) {\n try {\n String url = getUpdateUrl();\n if (url != null) {\n File book = download(url);\n File updateDir = new File(getFilesDir(), UPDATE_BASEDIR);\n updateDir.mkdirs();\n unzip(book, updateDir);\n bo... |
"public JournalPage[] getResearchPages(String[] pageNames) {\n JournalPage[] pages = new JournalPage[pageNames.length];\n for (int i = 0; i < pageNames.length; i++) {\n pages[i] = getResearchPage(pageNames[i]);\n }\n pages = ArrayHelper.removeNulls(pages, JournalPage.class);\n if (pages.length % 2... |
"private void initialize() {\n if (state == GuidedStates.UNINITIALIZED) {\n coord = myDrone.getGps().getPosition();\n altitude.set(getDroneAltConstrained(myDrone));\n state = GuidedStates.IDLE;\n myDrone.notifyDroneEvent(DroneEventsType.GUIDEDPOINT);\n }\n if (mPostInitializationTas... |
"public void drawFromBottomToTop(int level, int height, int MaxLevelPixelWidth) {\n if (level == 0 || level < topLevelToDraw) {\n return;\n }\n int total = levels.get(level).remove(0);\n int count = 1;\n for (int i = 0; i < levels.get(level).size(); i++) {\n int id = levels.get(level).get(i... |
"public void revoke(HttpRequest request, HttpResponder responder) throws Exception {\n Iterator<MethodArgument> arguments = parseArguments(request);\n EntityId entityId = deserializeNext(arguments);\n Principal principal = deserializeNext(arguments);\n Set<Action> actions = deserializeNext(arguments, SET_OF... |
"private void buildMenu() {\n fileChooser.setMultiSelectionEnabled(true);\n menuScanTextField.addKeyListener(this);\n JMenu menuFile = new JMenu(\"String_Node_Str\");\n JMenuItem exit = new JMenuItem(new AbstractAction(\"String_Node_Str\") {\n public void actionPerformed(ActionEvent t) {\n ... |
"static boolean check(String source, int lineNumber) {\n Context cx = Context.enter();\n Debugger oldDebugger = cx.getDebugger();\n Object oldContext = cx.getDebuggerContextData();\n boolean oldGenerate = cx.isGeneratingDebug();\n int oldLevel = cx.getOptimizationLevel();\n try {\n BreakableSou... |
"private boolean validateScalarParameter(ScalarParameterHandle paramHandle) throws ParameterValidationException {\n String paramName = paramHandle.getName();\n Object paramValue = runValues.get(paramName);\n String type = paramHandle.getDataType();\n if (paramValue == null) {\n if (!paramHandle.isReq... |
"public void run() {\n Map<Long, Heritrix3JobMonitor> tmpJobMonitorMap;\n Iterator<Heritrix3JobMonitor> jobmonitorIter;\n byte[] tmpBuf = new byte[1024 * 1024];\n try {\n LOG.info(\"String_Node_Str\");\n File tmpFolder = environment.tempPath;\n ;\n File[] oldFiles = tmpFolder.lis... |
"public void sendRosterAdd(String user, String name, String[] groups) throws IOException {\n Roster r = getRoster();\n r.createEntry(user, name, groups);\n}\n"
|
"public void setBaby(boolean flag) {\n if (flag) {\n this.datawatcher.watch(12, new Integer(-24000));\n } else {\n this.datawatcher.watch(12, 0);\n }\n ((MySheep) myPet).isBaby = flag;\n}\n"
|
"public void stepBack() {\n StackFrameStep recentPop = frame.popStep();\n syncState();\n while (this.getNeededData() == null || this.getNeededData() == SessionFrame.STATE_DATUM_COMPUTED) {\n recentPop = frame.popStep();\n syncState();\n }\n}\n"
|
"public void testSnepPut() throws Exception {\n snepClient.setSnepAgentListener(new SnepAgentListener() {\n public void onSnepConnection(SnepAgent snepAgent) {\n List<Record> records = new ArrayList<Record>();\n for (int x = 0; x < 50; x++) records.add(new UriRecord(\"String_Node_Str\"))... |
"private static void checkTerminalSet(WFState init, Set<WFState> termset, Set<Role> safety, Set<Role> liveness) throws ScribbleException {\n Iterator<WFState> i = termset.iterator();\n WFState s = i.next();\n Map<Role, WFState> ss = new HashMap<>();\n s.config.states.keySet().forEach((r) -> ss.put(r, s));\n... |
"public void handleData(T data) {\n super.handleData(data);\n for (ITmfDataRequest<T> request : fRequests) {\n if (data == null) {\n request.handleData(null);\n } else {\n if (request instanceof TmfEventRequest<?>) {\n TmfEventRequest<T> req = (TmfEventRequest<T>... |
"public void setPartitionAt(int x, int y, short newPartition) {\n if (getPartitionIdAt(x, y) != partitionRepresentatives[newPartition]) {\n if (x == 106 && y == 212) {\n System.out.println();\n }\n byte playerId = changePartitionUncheckedAt(x, y, newPartition);\n notifyPlayerCh... |
"public void testSaveAnalysisCase3() throws PersistenceException {\n AnalysisWriter createAnalysisWriter = ElementWriterFactory.getInstance().createAnalysisWrite();\n Analysis createAnalysis = AnalysisFactory.eINSTANCE.createAnalysis();\n AnalysisResult createAnalysisResult = AnalysisFactory.eINSTANCE.createAn... |
"public static List<Object[]> data() {\n return Arrays.asList(new Object[][] { { new AnnotatedDocumentImpl(\"String_Node_Str\", \"String_Node_Str\", Arrays.asList((Annotation) new AnnotationImpl(13, 8))) }, { new AnnotatedDocumentImpl(\"String_Node_Str\", \"String_Node_Str\", Arrays.asList((Annotation) new Annotatio... |
"protected boolean onUpdateTask() {\n super.onUpdateTask();\n if (this.sentry() instanceof IAutoSentry) {\n if (!this.sentry().isValidTarget(this.sentry().getTarget())) {\n this.sentry().setTarget(null);\n this.sentry().cancelRotation();\n return false;\n } else if (... |
"private void handleMetaResult() {\n if (SwingUtilities.isEventDispatchThread()) {\n final InfoFrame i = new InfoFrame(this.entry, this.d);\n if (this.d == null) {\n i.fillInfo(this.artist, this.title, this.album);\n }\n i.addActionListener(new ActionListener() {\n p... |
"static ImmutableSet<ObjectType> joinSets(ImmutableSet<ObjectType> objs1, ImmutableSet<ObjectType> objs2) {\n if (objs1.isEmpty()) {\n return objs2;\n } else if (objs2.isEmpty()) {\n return objs1;\n }\n List<ObjectType> objs = new ArrayList<>(objs1);\n objs.addAll(objs2);\n for (int i = ... |
"private void checkPodAttributes(long podId, String podName, long zoneId, String gateway, String cidr, String startIp, String endIp, String allocationStateStr, boolean checkForDuplicates, boolean skipGatewayOverlapCheck) {\n if (checkForDuplicates) {\n if (validPod(podName, zoneId)) {\n throw new I... |
"protected void onPostExecute(Object ex) {\n for (OnAsyncTaskCompletedListener listenerInstance : listener) {\n if (listenerInstance != null)\n listenerInstance.onAsyncTaskCompleted(task_id, ex);\n }\n if (ex == null && NetworkConnection.isNetworkAvailable(context)) {\n SharedPreferenc... |
"private void createFirewallRulesCommands(List<? extends FirewallRule> rules, VirtualRouter router, Commands cmds, long guestNetworkId) {\n List<FirewallRuleTO> rulesTO = null;\n if (rules != null) {\n rulesTO = new ArrayList<FirewallRuleTO>();\n for (FirewallRule rule : rules) {\n IpAddr... |
"protected void generateValueObject(VoClass voClass) {\n StringBuilder buffer = new StringBuilder();\n ClassName objectValueName = getValueObjectName(voClass);\n List<ModelField> fieldList = voClass.getFieldList();\n buffer.append(\"String_Node_Str\" + objectValueName.getPackageName() + \"String_Node_Str\")... |
"public synchronized ArchiveEntry createEntry(String name) throws IOException {\n throw new IOException(CoreMessages.getString(ResourceConstants.READ_ONLY_ARCHIVE));\n}\n"
|
"private void parseWaypointLines(BufferedReader reader) throws IOException {\n String line;\n waypoints.clear();\n while ((line = reader.readLine()) != null) {\n String[] RowData = line.split(\"String_Node_Str\");\n waypoint wp = new waypoint(Double.valueOf(RowData[8]), Double.valueOf(RowData[9])... |
"protected String[] getDistributionVersionsDisplay() {\n return new String[] { \"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"
|
"void createCube(DataEngine engine) throws IOException, BirtException, OLAPException {\n IDocumentManager documentManager = DocumentManagerFactory.createFileDocumentManager(documentPath + engine.hashCode(), cubeName);\n DocManagerMap.getDocManagerMap().set(String.valueOf(engine.hashCode()), documentPath + engine.... |
"private void analyze() {\n if (model == null) {\n return;\n }\n ModelConfiguration config = model.getOutputConfig();\n if (config == null) {\n config = model.getInputConfig();\n }\n DataHandle data = getHandle();\n if ((config == null) || (data == null)) {\n reset();\n ... |
"public static BigDecimal getValue(BigInteger value, BigInteger tokenId, RedisTemplate redisTemplate) {\n if (null == tokenId) {\n return null;\n }\n if (tokenId.equals(BigInteger.ZERO)) {\n return Convert.fromWei(new BigDecimal(value), Convert.Unit.ETHER);\n }\n String name = redisTemplate... |
"private void retrieveSource(String source) {\n SkeletonCacheEntry entry = skeletonCache.get(source);\n if (entry == null || entry.refCounter < 1) {\n loadSource(source);\n EngineAssetManager.getInstance().getManager().finishLoading();\n entry = skeletonCache.get(source);\n }\n if (entr... |
"protected void instrumentAndReplaceBody(MarkupStream markupStream, ComponentTag openTag, CharSequence bodyText) {\n boolean designMode = false;\n IFormUIInternal<?> formui = findParent(IFormUIInternal.class);\n if (formui != null && formui.isDesignMode()) {\n designMode = true;\n }\n String cssId... |
"public void selectionChanged(SelectionChangedEvent event) {\n ISelection selection = event.getSelection();\n if (selection != null) {\n Object[] sel = ((IStructuredSelection) selection).toArray();\n if (sel.length == 1) {\n if (sel[0] instanceof IPropertyDefn) {\n IPropert... |
"private TestCaseEditor askForNewTC() {\n TestCaseEditor editor = null;\n String standardName = InitialValueConstants.DEFAULT_TEST_CASE_NAME_OBSERVED;\n int index = 1;\n String newName = standardName + index;\n final Set<String> usedNames = new HashSet<String>();\n for (Object node : GeneralStorage.ge... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Object fieldValue = directMapping.getFieldValue(objectValue, session, marshalRecord);\n ... |
"public HttpResponse doRequest(String url, HttpMethod method, Map<String, Object> requestParameters, String charset) throws IOException {\n HttpResponse response = new HttpResponse();\n HttpURLConnection conn = getHttpURLConnection(url, method);\n if (method == HttpMethod.GET && requestParameters != null && re... |
"public void shutdownCompleted(final ShutdownSignalException exception) {\n AmqpAccessor.this.shouldReconnect = true;\n if (!exception.isInitiatedByApplication()) {\n AmqpAccessor.this.callbacks.handleException(exception, \"String_Node_Str\");\n AmqpAccessor.this.disconnect();\n }\n}\n"
|
"public static SessionTreeNode getSessionTreeNode(DatabaseConnection dbconnection, RepositoryNode repositoryNode, String selectedContext) throws Exception {\n IMetadataConnection iMetadataConnection = null;\n iMetadataConnection = ConvertionHelper.convert(dbconnection, false, selectedContext);\n String url = d... |
"public static TableId getConfigTableId(String namespace) {\n return TableId.from(namespace, QueueConstants.STATE_STORE_NAME + \"String_Node_Str\" + HBaseQueueDatasetModule.STATE_STORE_EMBEDDED_TABLE_NAME);\n}\n"
|
"public void up() {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n logger = LogManager.getLogg... |
"public int process(Callback[] callbacks, int state) throws LoginException {\n switch(state) {\n case STATE_BEGIN:\n if (!clientSideScriptEnabled || clientSideScript.isEmpty()) {\n clientSideScript = \"String_Node_Str\";\n }\n substituteUIStrings();\n ... |
"private void handleResponse(Operation op) throws Exception {\n boolean returnsResponse = op.returnsResponse();\n Object response = null;\n if (op instanceof BackupAwareOperation) {\n BackupAwareOperation backupAwareOp = (BackupAwareOperation) op;\n int syncBackupCount = 0;\n if (backupAwa... |
"private void injectFields(Finder finder) {\n Field[] fields = clazz.getDeclaredFields();\n for (Field field : fields) {\n Annotation[] annotations = field.getAnnotations();\n View view = null;\n for (Annotation annotation : annotations) {\n if (annotation.annotationType() == Injec... |
"private static List createRelationalMeasures(ICubeQueryDefinition queryDefn, IBaseExpression expression, ScriptContext cx) throws DataException {\n List<IMeasureDefinition> measures = new ArrayList<IMeasureDefinition>();\n List<IScriptExpression> exprTextList = getExprTextList(expression);\n for (int i = 0; i... |
"boolean shouldDestroy() {\n if (willExpireFlag == false) {\n return false;\n }\n if (!isTimedOut()) {\n if (isInvalid()) {\n if (checkInvalidSessionDefaultIdleTime()) {\n setState(Session.DESTROYED);\n ss.sendEvent(this, SessionEvent.DESTROY);\n ... |
"protected Command createButtonCommand(Button button) {\n if (checkForRepositoryShema(button)) {\n return null;\n }\n Button inputButton = button;\n IElementParameter switchParam = elem.getElementParameter(EParameterName.REPOSITORY_ALLOW_AUTO_SWITCH.getName());\n if (inputButton.getData(NAME).equa... |
"public void onInventoryClick(InventoryClickEvent event) {\n if (!(event.getWhoClicked() instanceof Player))\n return;\n Player p = (Player) event.getWhoClicked();\n if (p.getGameMode().equals(GameMode.CREATIVE) && event.getView().getType().equals(InventoryType.PLAYER))\n return;\n if ((p.getG... |
"public void testIssue1019() {\n Config config = new Config();\n MapStoreConfig mapStoreConfig = new MapStoreConfig();\n mapStoreConfig.setImplementation(new MapStoreAdapter<String, String>());\n config.getMapConfig(\"String_Node_Str\").setMapStoreConfig(mapStoreConfig);\n TestHazelcastInstanceFactory no... |
"private Callable<Integer> createTrainAndEvalTasks(final String subModelName, final String evalSetName) throws IOException {\n if (this.isToShuffleData) {\n ModelConfig subModelConfig = CommonUtils.loadModelConfig(subModelName + File.separator + Constants.MODEL_CONFIG_JSON_FILE_NAME, RawSourceData.SourceType.... |
"public static boolean FullHashCheck(List<MyFile> listoffiles, int i) throws Exception {\n boolean pass = true;\n DbConnect dbconnect = new DbConnect();\n List<MyFile> list = dbconnect.selectFullQuery(i);\n for (MyFile myfile : listoffiles) {\n for (MyFile dbfile : list) {\n if (myfile.get... |
"private void processBytes(int start, int length) {\n int len = 0;\n int chunkLen = 0;\n BigInteger mantisa;\n BigInteger total;\n BigInteger word;\n mantisa = new BigInteger(\"String_Node_Str\");\n total = new BigInteger(\"String_Node_Str\");\n if (length == 1 && lastMode == EncodingMode.TEX) {... |
"float axisY4canvasView(float y) {\n return axisBounds.height() * (yShift + y / yZoom) / canvasHeight + axisBounds.top;\n}\n"
|
"private String getMatchingRowsStatement() {\n String whereClause = \"String_Node_Str\";\n if (Java2SqlType.isDateInSQL(sqltype)) {\n Date date = new Date(entity.getValue());\n whereClause = dbmsLanguage.where() + this.columnName + dbmsLanguage.equal() + date.toString();\n } else {\n doubl... |
"public String createForm(String patientDocId, String clinicVisitId, Model uiModel, HttpServletRequest httpServletRequest) {\n ClinicVisit clinicVisit = allClinicVisits.get(patientDocId, clinicVisitId);\n final String treatmentAdviceId = clinicVisit.getTreatmentAdviceId();\n TreatmentAdvice adviceForPatient = ... |
"VersionedValue getValue(K key, long maxLog, VersionedValue data) {\n while (true) {\n if (data == null) {\n return null;\n }\n long id = data.operationId;\n if (id == 0) {\n return data;\n }\n tx = getTransactionId(id);\n if (tx == transaction.t... |
"public void fillPaymentModeAndCondition(ActionRequest request, ActionResponse response) {\n Invoice invoice = request.getContext().asType(Invoice.class);\n if (invoice.getOperationTypeSelect() != null) {\n try {\n PaymentMode paymentMode = InvoiceToolService.getPaymentMode(invoice);\n ... |
"public void onStartInput(EditorInfo attribute, boolean restarting) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\" + attribute.imeOptions + \"String_Node_Str\" + attribute.inputType + \"String_Node_Str\" + restarting + \"String_Node_Str\");\n super.onStartInput(attribute, restarting);\n mKeyboardSwitch... |
"public ListenableFuture<List<Row>> readRowsAsync(final ReadRowsRequest request) {\n final Call<ReadRowsRequest, ReadRowsResponse> readRowsCall = channel.newCall(BigtableServiceGrpc.CONFIG.readRows);\n CollectingStreamObserver<ReadRowsResponse> responseCollector = new CollectingStreamObserver<>(readRowsCall);\n ... |
"public Expression createScalarExpression(final String expression, final MacroConfiguration macroConfiguration, Set<String> usedMacros) {\n return getOrDefault(\"String_Node_Str\", delegate, expression, false, macroConfiguration, SCALAR_EXPRESSION_SUPPLIER);\n}\n"
|
"void setAppIdleParoleOn(boolean isAppIdleParoleOn) {\n boolean changed = false;\n synchronized (mTrackedTasks) {\n if (mAppIdleParoleOn == isAppIdleParoleOn) {\n return;\n }\n mAppIdleParoleOn = isAppIdleParoleOn;\n for (JobStatus task : mTrackedTasks) {\n String... |
"public void run() {\n try {\n mfHttpClientCleanup.returnToken(mfRequester, finalMfResponse);\n } catch (MFHttpException e) {\n MFConfiguration.getStaticMFLogger().e(TAG, e.getMessage(), e);\n }\n}\n"
|
"private ReturnValue runWorkflow(AbstractWorkflowDataModel objectModel) {\n ReturnValue ret = new ReturnValue(ReturnValue.SUCCESS);\n OozieClient wc = new OozieClient(this.dataModel.getEnv().getOOZIE_URL());\n try {\n Properties conf = wc.createConfiguration();\n String app_path = \"String_Node_S... |
"public Set<ITypeName> getSuperclasses() {\n return db.getSuperclassNames();\n}\n"
|
"public boolean parse(ParserManager pm, String value, IToken token) throws SyntaxError {\n if (this.mode == 0 || \"String_Node_Str\".equals(value) || \"String_Node_Str\".equals(value) && !this.isInMode(PARAMETERS_2)) {\n pm.popParser(true);\n return true;\n }\n if (this.isInMode(VALUE)) {\n ... |
"private Class<?> getTargetReturnType() {\n Type returnType = Type.getReturnType(invocation.getMethodNameAndDescription());\n Class<?> classForType = TypeDescriptor.getClassForType(returnType);\n return classForType;\n}\n"
|
"public void drawText(String text, float textX, float textY, float width, float height, FontInfo fontInfo, Color color, boolean rtl, String link) {\n BaseFont baseFont = fontInfo.getBaseFont();\n String fontName = getFontName(baseFont);\n println(\"String_Node_Str\" + (++shapeCount) + \"String_Node_Str\");\n ... |
"public int getString16Length(int pos) {\n return 2 + getShort(pos) * 2;\n}\n"
|
"public void applyORMMetadata(AbstractSession ormSession) {\n Iterator ormDescriptors = ormSession.getDescriptors().values().iterator();\n while (ormDescriptors.hasNext()) {\n ClassDescriptor ormDescriptor = (ClassDescriptor) ormDescriptors.next();\n Class javaClass = ormDescriptor.getJavaClass();\n... |
"public void export() {\n if (input.parameterNumber() >= 2) {\n final String[] parameters = Arrays.copyOf(input.getParameters(), input.parameterNumber() - 1);\n for (final String parameter : parameters) {\n try {\n final String result = reportSyncopeOperations.exportExecutionR... |
"public void declareWorkSheetOptions(String orientation) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n if (orientation != null) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String... |
"private String createSenderMonthlyExportCFONB(LocalDate localDate, BankDetails bankDetails) throws AxelorException {\n DateFormat ddmmFormat = new SimpleDateFormat(\"String_Node_Str\");\n String date = ddmmFormat.format(localDate.toDateTimeAtCurrentTime().toDate());\n date += String.format(\"String_Node_Str\"... |
"protected IStatus run(IProgressMonitor monitor) {\n ((LocalContextStore) ContextCore.getContextStore()).importContext(context);\n taskList.addTask(task);\n scheduleTaskActivationJob();\n return Status.OK_STATUS;\n}\n"
|
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n Parser parser = new Parser(PATTERN, (String) msg);\n if (!parser.matches()) {\n return null;\n }\n Position position = new Position();\n position.setProtocol(getProtocolName());\n position.se... |
"public void modifyText(ModifyEvent e) {\n String min = minValue.getText();\n if (min == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n } else if (!CheckValueUtils.isRealNumberValue(min)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_REAL_NUMBER);\n } else {\n updateStatu... |
"public Object getValueAt(int r, int c) {\n ColumnType colType = settings.getColumnAtIndex(c);\n Object cellDatum = null;\n AbstractComponent cellComponent = childrenList.get(r);\n switch(colType) {\n case ID:\n cellDatum = ABCD_6789;\n break;\n case TITLE:\n c... |
"public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n o... |
"private Band addBand(Product product, BandInfo bandInfo) {\n final Band band = product.addBand(bandInfo.wavebandInfo.bandName, SAMPLE_PRODUCT_DATA_TYPE);\n band.setSpectralBandIndex(bandInfo.bandIndex);\n band.setSpectralWavelength((float) bandInfo.wavebandInfo.wavelength);\n band.setSpectralBandwidth((flo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.