content stringlengths 40 137k |
|---|
"protected DecimalFormat initialValue() {\n DecimalFormat fmt = new DecimalFormat(\"String_Node_Str\", new DecimalFormatSymbols(Locale.US));\n fmt.setParseBigDecimal(true);\n return fmt;\n}\n"
|
"public static String encode(Object s) {\n if (null == s)\n return \"String_Node_Str\";\n try {\n return new String(s.toString().getBytes(), Encoding.CHARSET_UTF8.name());\n } catch (UnsupportedEncodingException e) {\n throw Lang.wrapThrow(e);\n }\n}\n"
|
"public void paintComponent(Graphics g) {\n boolean doRender = (renderAgain || image == null) && transfer != null && aggregates != null;\n if (doRender && !renderError) {\n renderThread = new Thread(new TransferRender(), \"String_Node_Str\");\n renderThread.setDaemon(true);\n renderThread.sta... |
"public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Node nd = (Node) adapterView.getItemAtPosition(i);\n setTitle(service.getForumName() + \"String_Node_Str\" + nd.getName());\n drawerList.setItemChecked(i, true);\n drawerLayout.closeDrawer(drawerList);\n current_node_id = ... |
"public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {\n configuration.setAttribute(ATTR_REPORT_FILE_NAME, getDefaultFileName());\n configuration.setAttribute(ATTR_ENGINE_HOME, \"String_Node_Str\");\n configuration.setAttribute(ATTR_TEMP_FOLDER, getDefaultTempFolder());\n configuration.se... |
"private static Calendar getEventStartFromCursor(Cursor cEvents) {\n String eventStart = cEvents.getString(5);\n Calendar result = Calendar.getInstance();\n result.setTime(Utils.getDateTime(eventStart));\n return result;\n}\n"
|
"public S3TO toS3TO() {\n Boolean httpsFlag = null;\n if (this.httpsFlag != null) {\n httpsFlag = this.httpsFlag == 0 ? false : true;\n }\n return new S3TO(this.id, this.uuid, this.accessKey, this.secretKey, this.endPoint, this.bucketName, httpsFlag, this.connectionTimeout, this.maxErrorRetry, this.s... |
"public void onPathSelection(PathwayPathSelectionEvent event) {\n pathSegments = event.getPathSegments();\n updatePathLinks();\n}\n"
|
"private Record getRecordInternal(Data dataKey, boolean enableIndex) {\n Record record = null;\n if (mapContainer.getStore() != null) {\n final Object value = mapContainer.getStore().load(mapService.toObject(dataKey));\n if (value != null) {\n record = mapService.createRecord(name, dataKe... |
"void addToLibrary() {\n if (_completeFile.isFile())\n RouterService.getFileManager().addFileIfShared(_completeFile);\n else if (_completeFile.isDirectory())\n RouterService.getFileManager().addSharedFolder(_completeFile);\n}\n"
|
"protected void parseStructureDefinitionProperties(JsonObject json, StructureDefinition res) throws IOException, FHIRFormatError {\n parseDomainResourceProperties(json, res);\n if (json.has(\"String_Node_Str\"))\n res.setUrlElement(parseUri(json.get(\"String_Node_Str\").getAsString()));\n if (json.has(\... |
"private void setUpHeader() {\n mDayLabels = new String[mDaysPerWeek];\n for (int i = 0; i < mDaysPerWeek; i++) {\n final int j = i + mFirstDayOfWeek;\n final int calendarDay = (j > Calendar.SATURDAY) ? j - Calendar.SATURDAY : j;\n mDayLabels[i] = tinyWeekdayNames[calendarDay];\n }\n Te... |
"public KeyValuePair<K, V> deserialize(DataInput in) {\n try {\n KeyValuePair<K, V> pair = getInstance();\n pair.read(in);\n return pair;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n}\n"
|
"public byte[] serialize() {\n return staticSerialize(x);\n}\n"
|
"private String getPrivateGetterMethodName() {\n if (getterName == null || getterName.length() == 0) {\n String newName = referencedColumnFieldName.substring(0, 1).toUpperCase() + (referencedColumnFieldName.length() > 1 ? referencedColumnFieldName.substring(1) : \"String_Node_Str\");\n return \"String_... |
"public void start(BundleContext context) throws Exception {\n super.start(context);\n bundleContext = context;\n plugin.getPluginPreferences().setDefault(WebViewer.MASTER_PAGE_CONTENT, true);\n plugin.getPluginPreferences().setDefault(WebViewer.PREVIEW_MAXROW, DEFAULT_MAX_ROWS);\n plugin.getPluginPrefer... |
"protected void sendResponse(SessionContext context, String path, int rev) throws IOException, SVNException {\n final SvnServerWriter writer = context.getWriter();\n writer.listBegin().word(\"String_Node_Str\").listBegin().number(rev).listEnd().listEnd();\n final String tokenId = createTokenId();\n final in... |
"private static int GetFieldID(JNIEnvironment env, int classJREF, Address fieldNameAddress, Address descriptorAddress) {\n if (traceJNI)\n VM.sysWrite(\"String_Node_Str\");\n RuntimeEntrypoints.checkJNICountDownToGC();\n try {\n if (traceJNI)\n VM.sysWriteln(\"String_Node_Str\", classJ... |
"public void testNameWithGenerics() {\n VmTypeName.get(\"String_Node_Str\");\n}\n"
|
"private Bytes blockingFetchReadOnly(long timeoutTime, final long transactionId) {\n try {\n return blockingFetchThrowable(timeoutTime, transactionId);\n } catch (IOException e) {\n close();\n throw new IORuntimeException(e);\n } catch (RuntimeException e) {\n close();\n thro... |
"private IDimension[] populateDimensions(CubeMaterializer cubeMaterializer, TabularCubeHandle cubeHandle, Map appContext, Map<ReportElementHandle, QueryDefinition> queryMap, Map<ReportElementHandle, List<ColumnMeta>> metaMap) throws AdapterException {\n List dimHandles = cubeHandle.getContents(CubeHandle.DIMENSIONS_... |
"public boolean playMana(ManaCost unpaid, Game game) {\n payManaMode = true;\n boolean result = playManaHandling(unpaid, promptText, game);\n payManaMode = false;\n return result;\n}\n"
|
"public void purgeJMSDestination(String destName, String destType, String tgtName) throws Exception {\n logger.log(Level.FINE, \"String_Node_Str\");\n MQJMXConnectorInfo[] mqInfos = getMQJMXConnectorInfos(target, config, serverContext, domain, connectorRuntime);\n if (mqInfos != null && mqInfos.length > 0) {\n... |
"public boolean activate(boolean primary, int effectId) {\n if (level > 0) {\n if (primary) {\n if (!primaryActive.containsKey(effectId)) {\n return false;\n } else if (primaryActive.get(effectId)) {\n setPrimaryEffectId(effectId);\n return tr... |
"void executionStateChanged(final JobID jobID, final ExecutionVertexID id, final Task task, final ExecutionState newExecutionState, final String optionalDescription) {\n if (newExecutionState == ExecutionState.RUNNING || newExecutionState == ExecutionState.RUNNING) {\n synchronized (this.runningTasks) {\n ... |
"public void shouldFetch_withAttributeQueryOnPrimaryKey() throws Exception {\n final AttributeQuery query = mock(AttributeQuery.class);\n final Condition mockCondition = mock(Condition.class);\n when(mockCondition.getComparisonOperator()).thenReturn(Operators.EQUALS);\n when(mockCondition.hasMissingComparis... |
"protected void setupProxies() {\n if (proxy == null) {\n try {\n proxy = ProxySetupHelper.getProxy(directoryOrFile.toExternalForm());\n } catch (NoClassDefFoundError e) {\n Activator.logNoProxyWarning(e);\n }\n }\n if (proxy != null)\n setupProxy(proxy);\n}\n"... |
"private static void setValidTarget(TRelationshipType relationshipType, Resource relationshipTypeResource) throws RequiredResourceNotFoundException, MultiplePropertyValuesException {\n Resource target = calculateInferredPropertyValue(relationshipTypeResource, (RDFS.range));\n String namespace = getXMLNamespace(ta... |
"public String[] getChoiceSet(Object item, String key) {\n if (key.equals(SortKey.DIRECTION_MEMBER)) {\n choiceSet = ChoiceSetFactory.getStructChoiceSet(SortKey.SORT_STRUCT, key);\n return ChoiceSetFactory.getDisplayNamefromChoiceSet(choiceSet);\n }\n if (item instanceof GroupHandle) {\n i... |
"protected void customRun() {\n Packet packet;\n try {\n Connection oldConnection = connection;\n connection = client.connectionManager.getConnection();\n if (oldConnection != null && restoredConnection(oldConnection, connection)) {\n redoUnfinishedCalls(oldConnection);\n }\... |
"public void lockMap(Request request) {\n if (request.operation == CONCURRENT_MAP_LOCK_MAP) {\n if (lockEntireMap == null) {\n lockEntireMap = new DistributedLock();\n }\n if (!lockEntireMap.isLockedBy(request.lockAddress, request.lockThreadId)) {\n lockEntireMap.lock(reque... |
"public PollResultCode getResultCode() {\n if (result == null || result.isEmpty()) {\n result = \"String_Node_Str\";\n }\n return PollResultCode.fromInt(Integer.parseInt(result));\n}\n"
|
"public final void execute() throws MojoExecutionException, MojoFailureException {\n try {\n final File file = new File(targetDirectory(), filename());\n final InetAddress host = hostAddress();\n getLog().info(String.format(\"String_Node_Str\", goal(), file, host.getHostName(), host.getHostAddre... |
"protected Boolean isChildSelected() {\n long packed = this.getSelectedPosition();\n return isChild(packed);\n}\n"
|
"public void createPreviewCharts(final ScrolledForm form, final Composite composite, final boolean isCreate) {\n List<Composite> previewChartList = new ArrayList<Composite>();\n if (ColumnsetPackage.eINSTANCE.getWeakCorrelationIndicator() == columnSetMultiIndicator.eClass()) {\n GraphBuilder gBuilder = new... |
"protected void doAction(HttpServletRequest req, CoordEvalEditHelper helper) throws EntityDoesNotExistException {\n EvaluationData newEval = CoordEvalServlet.extractEvaluationData(req);\n if (newEval.course == null && newEval.name == null) {\n helper.redirectUrl = Common.PAGE_COORD_EVAL;\n return;\n... |
"protected void onClickInternal(final AjaxRequestTarget target) {\n securityQuestionModal.header(new ResourceModel(\"String_Node_Str\"));\n securityQuestionModal.setFormModel(new SecurityQuestionTO());\n securityQuestionModal.size(Modal.Size.Large);\n target.add(securityQuestionModal.setContent(new Security... |
"public static boolean sendRegistrationToBackend(Activity activity, String gcmId) {\n Log.i(Constants.LOG_TAG, \"String_Node_Str\" + gcmId);\n GoogleAccountCredential currentCredential = AccountHelper.getSelectedAccountCredential(activity);\n try {\n String token = currentCredential.getToken();\n } c... |
"public void testCompletion() {\n myFixture.configureByFiles(\"String_Node_Str\", \"String_Node_Str\");\n myFixture.complete(CompletionType.BASIC, 1);\n List<String> strings = myFixture.getLookupElementStrings();\n assertTrue(strings.containsAll(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"Stri... |
"String codeToString(int code) {\n if (DEBUG_MESSAGES) {\n switch(code) {\n case LAUNCH_ACTIVITY:\n return \"String_Node_Str\";\n case PAUSE_ACTIVITY:\n return \"String_Node_Str\";\n case PAUSE_ACTIVITY_FINISHING:\n return \"String_... |
"public static OpInfo getInfo() {\n OpInfo info = new OpInfo();\n try {\n OpInfoRunner opxml = (OpInfoRunner) OprofileCorePlugin.getDefault().getOpxmlProvider().info(info);\n boolean ret = opxml.run0(null);\n if (ret == false)\n info = null;\n } catch (InvocationTargetException ... |
"int testMatch(String port, String type) {\n boolean input = (type.indexOf(\"String_Node_Str\") > -1 || type.indexOf(\"String_Node_Str\") > -1);\n boolean output = (type.indexOf(\"String_Node_Str\") > -1);\n if (!input && !output) {\n MyOptionPane.showMessageDialog(driver.frame, \"String_Node_Str\" + po... |
"private static <T> T inst(final Class<T> cl) {\n Constructor<?> con;\n try {\n con = cl.getDeclaredConstructor();\n } catch (final NoSuchMethodException e) {\n throw new IllegalStateException(\"String_Node_Str\" + cl.getName() + \"String_Node_Str\" + cl.isArray() + \"String_Node_Str\");\n }\n... |
"public void setCpu(Long cpu) {\n if (cpu != null) {\n this.cpu = cpu;\n } else {\n this.cpu = 0L;\n }\n}\n"
|
"private Object computInput() {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n File file = specifiedPath == null ? ResourceManager.getRootProject().getLocation().toFile() : workspace.getRoot().getFolder(new Path(specifiedPath)).getLocation().toFile();\n return new ItemRecord(file);\n}\n"
|
"private static Map<ResourceLocation, EntryAbstract> buildVampire() {\n Map<ResourceLocation, EntryAbstract> entries = new LinkedHashMap<>();\n String base = \"String_Node_Str\";\n List<IPage> gettingStarted = new ArrayList<>();\n gettingStarted.addAll(PageHelper.pagesForLongText(UtilLib.translate(base + \"... |
"private Set<AccountWithDataSet> findValidAccountsWithDataSets(String table) {\n Set<AccountWithDataSet> accountsWithDataSets = new HashSet<AccountWithDataSet>();\n Cursor c = mActiveDb.get().rawQuery(\"String_Node_Str\" + RawContacts.ACCOUNT_NAME + \"String_Node_Str\" + RawContacts.ACCOUNT_TYPE + \"String_Node_S... |
"public void updateNodeAction(NodeEntity node, String action) {\n node = getNodeWithNicsByMobId(node.getMoId());\n node.setAction(action);\n node.setActionFailed(false);\n node.setErrMessage(null);\n update(node);\n}\n"
|
"public void cloneTest() throws ParseException {\n ReasonerComponent rs = TestOntologies.getTestOntology(TestOntology.EMPTY);\n Description d = KBParser.parseConcept(\"String_Node_Str\");\n ConceptTransformation.cleanConcept(d);\n ELDescriptionTree tree = new ELDescriptionTree(rs, d);\n boolean testPerfo... |
"public TypePair getTypesUnderEquality(JSType that) {\n if (that.isUnionType()) {\n TypePair p = that.toMaybeUnionType().getTypesUnderEquality(this);\n return new TypePair(p.typeB, p.typeA);\n }\n switch(testForEquality(that)) {\n case FALSE:\n return new TypePair(null, null);\n... |
"public boolean isNPC(Player p) {\n if (Plugin.getServer().getPluginManager().getPlugin(\"String_Node_Str\") != null) {\n return com.fullwall.Citizens.NPCs.NPCManager.isNPC(p);\n }\n}\n"
|
"private void restoreJar() {\n jarChanged = true;\n if (jarViewer.getTable().getSelectionIndex() >= 0 && jarViewer.getTable().getSelectionIndex() < jarViewer.getTable().getItemCount()) {\n Map.Entry fn = (Map.Entry) jarViewer.getTable().getSelection()[0].getData();\n ((JarFile) fn.getValue()).setRes... |
"public static int compare(Object o1, Object o2) {\n int retval;\n if (o1 == null && o2 == null) {\n retval = 0;\n } else if (o1 == null) {\n retval = -1;\n } else if (o2 == null) {\n retval = 1;\n } else if (o1.getClass() == String.class) {\n retval = compareIgnoreCase((Strin... |
"public <A, B extends Editor> boolean visit(Context<B> context) {\n Editor editor = context.getEditor();\n ModelDriver<?> driver = context.getDriver();\n MessageHelper messageHelper = driver.getMessageHelper();\n if (messageHelper != null && editor instanceof EditorLeaf) {\n Path path = context.getPa... |
"protected void updateROI() {\n if (realLocation == null) {\n return;\n }\n LatLong gcsCoord = realLocation.getCoord();\n double bearing = realLocation.getBearing();\n double distanceTraveledSinceLastPoint = realLocation.getSpeed() * (System.currentTimeMillis() - timeOfLastLocation) / 1000f;\n ... |
"private void bandCountChanged() {\n GridBagConstraints c;\n Object[] outsideBackup = readNumberFields(outsideFields);\n Object[] minBackup = readNumberFields(minFields);\n Object[] maxBackup = readNumberFields(maxFields);\n Object[] replaceBackup = readNumberFields(replaceFields);\n Object[] otherwis... |
"private RpslObject getSubmittedObject(final HttpServletRequest request, final WhoisResources whoisResources) {\n if (whoisResources.getWhoisObjects().isEmpty() || whoisResources.getWhoisObjects().size() > 1) {\n throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(createError... |
"private static boolean checkFlag(Player player, Faction playerFaction, Faction chunkFaction, FactionFlagTypes flagType) {\n if (playerFaction.Name.equals(chunkFaction.Name)) {\n FactionMemberType memberType = PlayerManager.getFactionMemberType(player, playerFaction);\n return chunkFaction.Flags.get(me... |
"protected void computeGeometricalProperties() {\n if (getTree(false).getCut() == null) {\n setBarycenter((Point<Euclidean1D>) Vector1D.NaN);\n setSize(((Boolean) getTree(false).getAttribute()) ? Double.POSITIVE_INFINITY : 0);\n } else {\n double size = 0.0;\n double sum = 0.0;\n ... |
"public void performAction() {\n Thread openThread;\n AbstractFile parent;\n if ((parent = mainFrame.getActiveTable().getFolderPanel().getCurrentFolder().getParentSilently()) != null) {\n openThread = mainFrame.getActiveTable().getFolderPanel().tryChangeCurrentFolder(parent);\n if ((parent = main... |
"public void run() {\n try {\n collectBandwidthData();\n } catch (Throwable t) {\n RouterService.error(t);\n }\n}\n"
|
"public void execute() throws BuildException {\n ClassLoader al = createLoader();\n if (!definerSet) {\n if (getURI() == null) {\n throw new BuildException(\"String_Node_Str\" + getTaskName() + \"String_Node_Str\", getLocation());\n }\n if (getURI().startsWith(MagicNames.ANTLIB_PRE... |
"public void pauseSourceStreams() {\n if (!(lastPacketSent || failedRedist))\n upstreamSet.pauseSourceStreams();\n}\n"
|
"public Token get() {\n Actor actor = (Actor) super.getContainer().getContainer();\n IOPort currentPort = (IOPort) super.getContainer();\n Director director = ((Actor) actor).getDirector();\n if (director instanceof DTDirector) {\n DTDirector dtDirector = (DTDirector) director;\n dtDirector.se... |
"protected void handleSelectionKey(SelectionKey sk) {\n if (sk.isValid() && sk.isReadable()) {\n readEvents++;\n SelectionHandler handler = (SelectionHandler) sk.attachment();\n handler.handle();\n }\n}\n"
|
"public void update(TimeStep timeStep) {\n if (entityOwner != null && entityOwner.isAlive()) {\n this.memory.update(timeStep);\n this.sensors.update(timeStep);\n this.motion.update(timeStep);\n this.thoughtProcess.think(timeStep, this);\n this.targetingSystem.update(timeStep);\n ... |
"public void reInit() {\n cm = ComponentManager.getInstance();\n source = null;\n reasoner = null;\n rs = null;\n lp = null;\n la = null;\n needsInit = new boolean[4];\n threadIsRunning = false;\n algorithmRunStartTime = null;\n algorithmRunStopTime = null;\n}\n"
|
"int getZone(Char c){\n\tif (! ('a' <= c && c <= 'z') || ! ('A' <= c && c <= 'Z'))\n\t\treturn 0;\n\tChart cc = toUpper(c);\n\tint result = 0;\n\tswitch(c){\n\t\tcase 'A': \n\t\t\tresult += 1; break;\n\t\tcase 'B':\n\t\tcase 'C':\n\t\t\tresult += 2;\n\t\t\tbreak;\n\t\tcase 'F': {}\n\t\tcase 'D':\n\t\tcase 'E':\n\t\t\tr... |
"private Integer findWorkflowAction(Long workflowEntryId, String actionName) {\n WorkflowDescriptor workflowDescriptor = userWorkflow.getWorkflowDescriptor(Constants.USER_WORKFLOW);\n int[] actions = userWorkflow.getAvailableActions(workflowId, null);\n Integer actionId = null;\n for (int i = 0; i < actions... |
"protected void extractIndexedMeta(String comment, Map<String, HashSet<String>> indexedVals) {\n if (comment.indexOf(\"String_Node_Str\") < 0) {\n return;\n }\n String meta = comment.substring(comment.indexOf(\"String_Node_Str\"), comment.lastIndexOf(\"String_Node_Str\"));\n meta = meta.replace(\"Str... |
"public Object getOriginalTypedValue(CellEditor cellEditor, Object cellEditorTypedValue) {\n Object returnedValue = null;\n if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {\n int index = (Integer) cellEditorTypedValue;\n String[] namesSet = ((CCombo) cellEditor.getContr... |
"public void onUpdate() {\n super.onUpdate();\n if (!worldObj.isRemote) {\n ItemStack is = getEntityItem();\n if ((rockLife -= rand.nextInt(isInWater() ? 5 : 3)) < 0) {\n if (--is.stackSize == 0)\n setDead();\n else {\n rockLife = 700;\n ... |
"private Collection<Resource> getConceptsToCheck(Float randomSubsetSize_percent) throws OpenRDFException {\n if (randomSubsetSize_percent == null) {\n return authoritativeConcepts.getResult().getData();\n } else {\n return new RandomSubSet<>(authoritativeConcepts.getResult().getData(), randomSubsetS... |
"public void drawScene() {\n if (hasChangedProjection) {\n if (mainCamera.getProjectionType() == Camera.PERSPECTIVE) {\n Matrix4.createFrustum(projectionMatrix, -ratio, ratio, -1, 1, 1, mainCamera.getRange());\n } else {\n Matrix4.createOrtho(projectionMatrix, -ratio, ratio, -1, 1... |
"public static void stopRecording(String roomId) {\n log.debug(\"String_Node_Str\" + roomId);\n try {\n if (roomId != null && roomFileMap.get(roomId) != null) {\n WhiteboardVideoVO obj = (WhiteboardVideoVO) roomFileMap.get(roomId);\n DataOutputStream os = obj.getOs();\n os.... |
"protected BoundInformationLoss<InformationLossDefault> evaluateInternal(final Node node, final IHashGroupify g) {\n int suppressedTuples = 0;\n int unsuppressedTuples = 0;\n HashGroupifyEntry m = g.getFirstEntry();\n while (m != null) {\n unsuppressedTuples += m.isNotOutlier ? m.count : 0;\n ... |
"protected void init() throws IOException {\n _selector = Selector.open();\n Task task = null;\n try (SocketChannel sch = SocketChannel.open()) {\n sch.configureBlocking(true);\n s_logger.info(\"String_Node_Str\" + _host + \"String_Node_Str\" + _port);\n if (_bindAddress != null) {\n ... |
"private void initValidationRules() {\n List<OPmodelLinkValidationRule> rawLinkRules = interpretation.getLinkValidationRules();\n List<OPmodelContainmentValidationRule> rawContainmentRules = interpretation.getContainmentValidationRules();\n for (OPmodelLinkValidationRule rule : rawLinkRules) {\n Element... |
"public void execute(Bundle bundle) {\n ArrayList<ParcelableQBDialog> parcelableDialogsList = bundle.getParcelableArrayList(QBServiceConsts.EXTRA_CHATS_DIALOGS);\n if (parcelableDialogsList == null) {\n emptyListTextView.setVisibility(View.VISIBLE);\n }\n}\n"
|
"public IStatus doAction() {\n try {\n conceptList = WorkbenchClipboard.getWorkbenchClipboard().getConcepts();\n XSDFactory factory = XSDFactory.eINSTANCE;\n if (!conceptList.isEmpty()) {\n typeList = Util.getTypeDefinition(conceptList.get(0).getSchema());\n for (Iterator i... |
"public void addActor(String name) throws PtalonRuntimeException {\n try {\n if (_currentActorTree == null) {\n throw new PtalonRuntimeException(\"String_Node_Str\");\n }\n String symbol = _currentActorTree.getSymbol();\n if (symbol.equals(\"String_Node_Str\")) {\n _... |
"protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String longUrl = req.getParameter(\"String_Node_Str\");\n log.info(\"String_Node_Str\" + longUrl);\n ShortenerService service = new ShortenerService();\n ShortUrl shortUrl = service.shorten(long... |
"private static String[] extractAccountDetails(String smsMsg, int mIndx) {\n String reqMatch = \"String_Node_Str\";\n String[] searchFor = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n int[] getGroup = { 4, 4, 1, 1 };\n int mFound = 1;\n String[] accountDetails... |
"private void loadPlugin(String pluginClassName) throws PluginException {\n try {\n if (pluginClassName != null)\n loadPlugin((Class<? extends T>) Lang.loadClass(pluginClassName));\n } catch (Throwable e) {\n }\n}\n"
|
"private void modifyContextConstructors() {\n if (typeCheckElimination.getTypeFieldSetterMethod() != null) {\n AST contextAST = sourceTypeDeclaration.getAST();\n MethodDeclaration[] contextMethods = sourceTypeDeclaration.getMethods();\n for (MethodDeclaration methodDeclaration : contextMethods) ... |
"public void onTagDeleted(ReaderTag tag) {\n mTagsChanged = true;\n AnalyticsTracker.track(AnalyticsTracker.Stat.READER_UNFOLLOWED_READER_TAG);\n if (mLastAddedTagName != null && mLastAddedTagName.equalsIgnoreCase(tag.getTagName())) {\n mLastAddedTagName = null;\n }\n String labelRemovedTag = getS... |
"public List<TResult> search(String query, long maxId, int numResults) throws TException {\n TQuery q = new TQuery();\n q.text = query;\n q.max_id = maxId;\n q.num_results = numResults;\n q.group = group;\n q.token = token;\n List<TResult> results = client.search(q);\n transport.close();\n re... |
"boolean startCleanup(boolean forced) {\n if (cleanupActive.compareAndSet(false, true)) {\n try {\n final long now = System.currentTimeMillis();\n if (nearCache != null) {\n nearCache.evict(now, false);\n }\n final Set<Record> recordsDirty = new HashS... |
"private String wrapFilename(String fileName) {\n StringBuilder newFileName = new StringBuilder();\n if (debugPrefix != null) {\n newFileName.append(debugPrefix);\n }\n newFileName.append(fileName);\n if (suffixDateFormat != null && rotationInterval > 0) {\n synchronized (suffixDateFormat) ... |
"public List<Tile<?>> preAlign() throws NotEnoughDataPointsException, IllDefinedDataPointsException {\n final ArrayList<Tile<?>> unAlignedTiles = new ArrayList<Tile<?>>();\n final ArrayList<Tile<?>> alignedTiles = new ArrayList<Tile<?>>();\n if (getFixedTiles().size() == 0) {\n final Iterator<Tile<?>> i... |
"public void stop() {\n NettyServer.finished = true;\n while (!NettyServer.sendFinished) {\n }\n bindFuture.channel().closeFuture();\n logger.info(\"String_Node_Str\");\n workerGroup.shutdownGracefully();\n bossGroup.shutdownGracefully();\n}\n"
|
"private String encodeURL(final String url, final String sessionURLPhrase) {\n if (url != null || req == null || req.isRequestedSessionIdFromCookie()) {\n final int prefix = url.indexOf(sessionURLPhrase);\n if (prefix != -1) {\n int suffix = url.indexOf(\"String_Node_Str\", prefix);\n ... |
"public static void main(String[] args) throws Exception {\n String pdbCode = \"String_Node_Str\";\n AtomCache cache = new AtomCache();\n cache.setUseMmCif(true);\n StructureIO.setAtomCache(cache);\n Structure structure = StructureIO.getStructure(pdbCode);\n System.out.println(structure.getPDBCode());... |
"public String getTableRootPath(String tableName) {\n Object tableInfo = this.tableInfos.get(tableName == null ? \"String_Node_Str\" : tableName.trim());\n if (tableInfo != null)\n return ((TableInfo) tableInfo).getRootPath();\n else\n return null;\n}\n"
|
"protected XMLDescriptor findReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Mapping mapping, UnmarshalKeepAsElementPolicy policy) {\n XMLDescriptor referenceDescriptor = super.findReferenceDescriptor(xPathFragment, unmarshalRecord, atts, mapping, policy);\n if (... |
"public void testGetKeyForStudent() throws InvalidParametersException {\n StudentData student = new StudentData(\"String_Node_Str\", \"String_Node_Str\");\n BackDoor.createStudent(student);\n String key = BackDoor.getKeyForStudent(student.course, student.email);\n System.out.println(\"String_Node_Str\" + st... |
"public void testBadTemplateType2() throws Exception {\n testTypes(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", TypeInference.TEMPLATE_TYPE_NOT_OBJECT_TYPE.format(\"String_Node_Str\"));\n}\n"
|
"public void delete(String alertId) {\n String sql = \"String_Node_Str\";\n Map<String, String> params = ImmutableMap.of(\"String_Node_Str\", alertId);\n int deleted = this.namedJdbcTemplate.update(sql, params);\n LOG.debug(\"String_Node_Str\", deleted);\n}\n"
|
"private static Marshaller createMarshaller() {\n try {\n return JAXB_CONTEXT.createMarshaller();\n } catch (JAXBException e) {\n throw new IOException(e.getMessage(), e);\n }\n}\n"
|
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xPathFragment.hasLeafElementType()) {\n marshalRecord.setLeafElementType(xPathFra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.