content
stringlengths
40
137k
"public static Zone getInstanceInternalZone() {\n try {\n Name name = getInternalName();\n long serial = 1;\n long refresh = 86400;\n long retry = ttl;\n long expires = 2419200;\n long minimum = 600;\n Record soarec = new SOARecord(name, DClass.IN, ttl, host, admin, s...
"public Document execute(RemoteMethod method) throws RemoterException {\n String methodname = method.getMethodName();\n try {\n if (RemoteConstants.METHOD_GETBIBLES.equals(methodname)) {\n List lbmds = Books.getBooks(BookFilters.getFaster(Books.SPEED_SLOWEST));\n BibleMetaData[] bmds ...
"public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {\n RemoteWorkerDelegate worker = getWorkerDelegate(ctx);\n worker.remoteProcessMessageResult = (Boolean) e.getMessage();\n worker.semaphore.release();\n}\n"
"public static int extractIssueParent(String issueBody) {\n if (issueBody == null) {\n return -1;\n }\n String[] lines = issueBody.split(REGEX_SPLIT_LINES);\n int seperatorLineIndex = getSeparatorIndex(lines);\n for (int i = 0; i < seperatorLineIndex; i++) {\n String line = lines[i];\n ...
"private void runTest(MockitoComponentMockingRule<SignerFactory> mocker) throws Exception {\n Signer signer = mocker.getComponentUnderTest().getInstance(true, privateKey);\n runTestSignatureVerification(signer, factory.getInstance(false, publicKey, signer.getEncoded()));\n}\n"
"private void setCapabilities() {\n appendCapabilites(Application, Application_Params, Application_List, AppStore, AppStore_Params, Display_Image, Display_Video, Display_Audio, FastForward, Rewind, Play, Pause, Stop, Back, Down, Home, Left, Right, Up, OK, Send, Send_Delete, Send_Enter);\n}\n"
"private Set<ModuleNeeded> getAllModuleNeededWithTestCase() throws PersistenceException {\n Set<ModuleNeeded> neededLibraries = new HashSet<>();\n boolean needTestCase = false;\n List<ProcessItem> testContainers = null;\n ProcessItem item = null;\n if (processor.getProperty() != null && processor.getProp...
"public float getCursorX() {\n return canvasWidth == 0 ? 0 : cursorX;\n}\n"
"public void start() {\n new BaseNulsThread(networkModule, \"String_Node_Str\") {\n\n public void run() {\n ConnectionManager.this.run();\n }\n }.start();\n}\n"
"protected void beforeActivityLaunched() {\n SettingsUtils.markTosAccepted(InstrumentationRegistry.getTargetContext(), true);\n mAccountName = LoginUtils.setFirstAvailableAccountAsActive(InstrumentationRegistry.getTargetContext());\n mStubLoginAndAuth = new StubLoginAndAuth(mAccountName, true, true);\n Logi...
"public Date rescheduleJob(TriggerKey triggerKey, Trigger newTrigger) throws SchedulerException {\n return (Date) invoke(\"String_Node_Str\", new Object[] { triggerKey, newTrigger }, new String[] { TriggerKey.class.getName(), Trigger.class.getName() });\n}\n"
"private static URL getToolsJar() throws ToolsJarNotFoundException {\n File jreHome = new File(System.getProperty(\"String_Node_Str\"));\n File toolsJar = new File(jreHome.getParent(), \"String_Node_Str\");\n if (!toolsJar.exists()) {\n throw new ToolsJarNotFoundException(toolsJar);\n }\n try {\n ...
"public void back() {\n ((BrowserWindow) handle).back();\n}\n"
"private void createHadoopPropertiesForHive(Composite parent) {\n compositeTableForHive = Form.startNewDimensionnedGridLayout(parent, 1, parent.getBorderWidth(), 150);\n GridData gridData = new GridData(GridData.FILL_HORIZONTAL);\n gridData.horizontalSpan = 3;\n gridData.widthHint = 200;\n compositeTable...
"public void changeAvatarOnClick(View view) {\n canPerformLogout.set(false);\n imageUtils.getImage();\n}\n"
"private String getPath(AbsFile f, boolean remote) {\n if (isDirect(f)) {\n return f.getAbsolutePath();\n } else if (this.transform == Transform.RELATIVE) {\n return PathUtils.remotePathName(f);\n } else if (isLocal(f) || f.getHost() == null) {\n return f.getPath();\n } else {\n ...
"void validate() {\n try {\n SubtleUtil.validateNotExists(outFile);\n SubtleUtil.validateExists(configFile);\n SubtleUtil.validateExists(credentialFile);\n SubtleUtil.validateExists(inFile);\n } catch (Exception e) {\n SubtleUtil.die(e.toString());\n }\n}\n"
"public void createGroupConversation(List<String> members, final AVIMConversationCreatedCallback callback) {\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(ConversationType.TYPE_KEY, ConversationType.Group.getValue());\n final String name = MessageHelper.nameByUserIds(members);\n map.p...
"public Iterator iterator() {\n if (isList()) {\n return new StructureIterator(this);\n }\n int typeCode = getTypeCode();\n if (typeCode == IPropertyType.LIST_TYPE || (typeCode == IPropertyType.CONTENT_ELEMENT_TYPE && getDefn().isList())) {\n return new SimpleIterator(this);\n }\n return...
"private int getCellWidth(int cellWidth, IStyle style) {\n int leftPadding = getPadding(style.getProperty(IStyle.STYLE_PADDING_LEFT));\n int rightPadding = getPadding(style.getProperty(IStyle.STYLE_PADDING_RIGHT));\n if (leftPadding > cellWidth) {\n leftPadding = 0;\n }\n if (rightPadding > cellWi...
"public TransportMessage buildMessage(FormInstance tree, SubmissionProfile profile) {\n if (profile == null) {\n profile = SubmissionTransportHelper.defaultPostSubmission(PropertyManager._().getSingularProperty(DemoAppProperties.POST_URL_PROPERTY));\n }\n if (profile.getMethod().toLowerCase().equals(\"S...
"public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {\n final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();\n final ResourceRoot root = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);\n VirtualFile descriptor = null;\n for (f...
"private static void processRequests(BraintreeFragment fragment) {\n if (sRequestQueue.size() == 0) {\n return;\n }\n ArrayList<AnalyticsRequest> requests = new ArrayList<>();\n requests.addAll(sRequestQueue);\n sRequestQueue.clear();\n try {\n JSONArray events = new JSONArray();\n ...
"public void update(float elapsedTime) {\n Point2D selStart = ((BattlefieldInputInterpreter) inputInterpreter).clicInitialCoord;\n if (selStart != null) {\n Point2D p = Translator.toPoint2D(inputManager.getCursorPosition());\n view.drawSelectionArea(selStart, p);\n ((BattlefieldInputInterpret...
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n float lineHeight = pText.getFontSpacing();\n rect.set(0, 0, nColumns * columnWidth, columnHeight);\n rect.offset(0, headerHeight);\n drawGrid(canvas, rect);\n String previousMonth = \"String_Node_Str\";\n pGraph.setColor(primaryColor...
"private synchronized void waitForBatchToFinish() {\n long totalWaitTime = 0;\n long period = 3000;\n while (batch != null) {\n try {\n this.wait(period);\n if (batch == null) {\n return;\n }\n timeout += period;\n if (timeout >= MAX_...
"private static int appendQuoteContent(StringBuilder buffer, String source, int start, char endQuoteSymbol) {\n int end = CssUtils.findNextUnescapedChar(source, endQuoteSymbol, start);\n if (end == -1) {\n end = source.length();\n LoggerFactory.getLogger(CssPropertyNormalizer.class).warn(MessageForm...
"public static Gauge get(ItemStack stack) {\n if (stack.getTagCompound() != null && stack.getTagCompound().hasKey(\"String_Node_Str\")) {\n return Gauge.from(stack.getTagCompound().getDouble(\"String_Node_Str\"));\n }\n EntityRollingStockDefinition def = ItemDefinition.get(stack.copy());\n if (def !=...
"public IChoiceSet getChoices() {\n PropertyChoice[] propertyChoices = property.getChoices();\n ChoiceSet choiceSet = new ChoiceSet();\n if (propertyChoices != null && propertyChoices.length > 0) {\n choiceSet = new ChoiceSet();\n IChoice[] choices = new ODAChoice[propertyChoices.length];\n ...
"private JarFile getRtJar() {\n for (Iterator MS = getModules(getPrimordialLoader()).iterator(); MS.hasNext(); ) {\n Module M = (Module) MS.next();\n if (M instanceof JarFileModule) {\n JarFile JF = ((JarFileModule) M).getJarFile();\n if (JF.getName().endsWith(File.separator + \"S...
"public GRecursion leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GRecursion gr = (GRecursion) visited;\n RecVarNode recvar = gr.recvar.clone();\n LProtocolBlock block = (LProtocolBlock) ((ProjectionEnv) gr.block.del().env()).getProjection();\...
"public void hostedVirtLimitUnlimitedBonusPoolQuantity() {\n when(config.getBoolean(ConfigProperties.STANDALONE)).thenReturn(false);\n Subscription s = createVirtLimitSub(\"String_Node_Str\", 10, \"String_Node_Str\");\n List<Pool> pools = poolRules.createPools(s);\n assertEquals(2, pools.size());\n Pool ...
"public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n afpChain.setCa1Length(ca1.length);\n afpChain.setCa2Length(ca2.length);\n int[] focusRes1 = afpChain.getFocusRes1();\n int[] focusRes2 = afpChain.getFocusRes2();\n if (focusRes1 == null) {\n ...
"protected Object getImplClass(CAPTestResponseMessage response) {\n Object implClass = null;\n final MessageCap messageCap = m_capTestMessage.getMessageCap();\n IComponentIdentifier ci = messageCap.getCi();\n if (LOG.isInfoEnabled()) {\n LOG.info(\"String_Node_Str\" + (ci == null ? \"String_Node_Str\...
"public Template decorate(final Template subject, Object... data) {\n Supplier<VolumeParameterConfig> config = Suppliers.memoize(() -> {\n try {\n Platform platform = Platform.platform(subject.cloudPlatform());\n VmType vmType = virtualMachines.get().get(platform).stream().filter(curr ->...
"public Set<Template> buildTemplates(String s) {\n boolean clearAgain = true;\n String tagged;\n if (UNTAGGED_INPUT) {\n s = pp.normalize(s);\n tagged = tagger.tag(s);\n logger.trace(\"String_Node_Str\" + tagged);\n } else {\n tagged = s;\n }\n String newtagged = pp.condens...
"public void onBlockDamage(BlockDamageEvent event) {\n Player player = event.getPlayer();\n Block block = event.getBlock();\n int dmg = event.getDamageLevel().getLevel();\n if (dmg == 3 && !mcConfig.getInstance().isBlockWatched(block)) {\n if (block.getTypeId() == 1) {\n int t = player.get...
"public boolean retryExecution() throws KeeperException, InterruptedException {\n int doneWorkers;\n synchronized (LOCK) {\n doneWorkers = (int) NettyMasterCoordinator.this.iterResults.size();\n }\n if (System.nanoTime() % 30 == 0) {\n LOG.info(\"String_Node_Str\", context.getCurrentIteration(...
"public ClassDefinitionBuilder addUTFField(String fieldName) {\n check();\n fieldDefinitions.add(new FieldDefinitionImpl(index++, fieldName, FieldType.UTF));\n return this;\n}\n"
"public void partOpened(IWorkbenchPartReference partRef) {\n if (Constants.TC_BROWSER_ID.equals(partRef.getId())) {\n m_tcb.add(partRef);\n if (getOpenTCBs().size() > 0) {\n setMainTCB(getOpenTCBs().get(0));\n }\n fireStateChanged();\n }\n}\n"
"private void updateFirstChildHeightWhileExpanding(ViewGroup hostView) {\n mFirstChildWhileExpanding = (ExpandableView) findFirstVisibleChild(hostView);\n if (mFirstChildWhileExpanding != null) {\n if (mExpandedOnStart) {\n mFirstChildMaxHeight = mFirstChildWhileExpanding.getActualHeight();\n ...
"public void onErrorResponse(VolleyError error) {\n updateRefreshMap(StatsViewType.SEARCH_ENGINE_TERMS, -1);\n AppLog.e(T.STATS, \"String_Node_Str\");\n}\n"
"public void testAddCustomTestCaseStatus() {\n Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);\n Assume.assumeTrue(TestIntegrationSuite.testInstance != null);\n TestStatus.addStatus(\"String_Node_Str\", 6);\n TestResult result = new TestResult();\n result.setTestId(TestIntegrationSuite.testIn...
"protected Collection<Artifact<?>> doEmitCompilation(TreeLogger logger, LinkerContext context, CompilationResult result) throws UnableToCompleteException {\n String[] js = result.getJavaScript();\n byte[][] bytes = new byte[js.length][];\n bytes[0] = generatePrimaryFragment(logger, context, result, js, artifac...
"void validate() throws MibLoaderException {\n MibSymbol symbol;\n MibValueSymbol value;\n int errors = log.errorCount();\n for (int i = 0; i < symbolList.size(); i++) {\n symbol = (MibSymbol) symbolList.get(i);\n try {\n symbol.initialize(log);\n } catch (MibException e) {\n...
"public String[] getTargets() {\n return targets.clone();\n}\n"
"public void setMode(int mode) {\n IAudioService service = getService();\n try {\n service.setMode(mode, mICallBack);\n } catch (RemoteException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n }\n}\n"
"public SnapshotResponse createSnapshotResponse(Snapshot snapshot) {\n SnapshotResponse snapshotResponse = new SnapshotResponse();\n snapshotResponse.setId(snapshot.getUuid());\n populateOwner(snapshotResponse, snapshot);\n VolumeVO volume = findVolumeById(snapshot.getVolumeId());\n String snapshotTypeSt...
"public static synchronized Observation createObservation(String vehicleId, String timestamp, String latStr, String lonStr, String velocity, String heading, String accuracy) throws NumberFormatException, ParseException, TransformException, TimeOrderException {\n final double lat = Double.parseDouble(latStr);\n fi...
"public static void main(String[] args) {\n DataReader reader = new DataReader();\n Graph graph = new Graph();\n reader.fill(graph);\n System.out.println(\"String_Node_Str\" + graph.nodes.size());\n System.out.println(\"String_Node_Str\" + graph.edges.size());\n ClusteringPhase cp = new ClusteringPhas...
"public void sendTypingNotification(Contact to, int typingState) throws IllegalStateException, IllegalArgumentException {\n assertConnected();\n if (!(to instanceof ContactSipImpl))\n throw new IllegalArgumentException(\"String_Node_Str\" + to);\n Document doc = opSetPersPresence.createDocument();\n ...
"private FileOutputStream ensureFile() throws IOException {\n if (fileOutputStream == null) {\n file = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n file.deleteOnExit();\n fileOutputStream = new FileOutputStream(file);\n }\n return fileOutputStream;\n}\n"
"public boolean checkIntegrity() {\n if (path == null)\n return false;\n boolean ok = path.checkIntegrity();\n if (!ok) {\n Logger.log(new Status(IStatus.ERROR, \"String_Node_Str\", \"String_Node_Str\" + path.toString()));\n }\n return ok;\n}\n"
"public boolean equals(Object p) {\n if (p instanceof MyPoint) {\n MyPoint y = (MyPoint) p;\n double dist = coord.distance(y.getCoordinate()) + (coord.z - y.getZ()) * coord.z - y.getZ();\n return dist < MyTools.EPSILON2;\n } else {\n return false;\n }\n}\n"
"public int hashCode() {\n return callSite.hashCode() * 19 + super.hashCode();\n}\n"
"public void testSetToAddressFromDestinationWithNullDestination() {\n AmqpJmsMessageFacade message = Mockito.mock(AmqpJmsMessageFacade.class);\n helper.setToAddressFromDestination(message, null);\n Mockito.verify(message).setToAddress(null);\n Mockito.verify(message).removeAnnotation(TO_TYPE_MSG_ANNOTATION_...
"public void onClick(View v) {\n EditText priceEditText = (EditText) portfolioItemEdit.findViewById(R.id.portfolio_item_price);\n String price = priceEditText.getText().toString();\n EditText dateEditText = (EditText) portfolioItemEdit.findViewById(R.id.portfolio_item_date);\n String date = dateEditText.get...
"protected IStatus run(IProgressMonitor monitor) {\n getConsole().writeLine(NLS.bind(Messages.TaskRepositoryConnectionTest, almRepositoryName));\n IStatus connectionStatus = ALMAccess.testConnection(almRepositoryName);\n if (connectionStatus.isOK()) {\n getConsole().writeLine(NLS.bind(Messages.TaskRepos...
"public static Set<Vertex> verticesFromSenses(Graph graph, Collection<? extends Sense> senses) {\n Set<Vertex> vertices = new HashSet<>(senses.size());\n for (Sense sense : senses) {\n Vertex v = Graphs.vertexByFullUri(graph, sense.fullUri());\n if (v != null)\n vertices.add(v);\n }\n ...
"public void writeAdapter(ProcessingEnvironment processingEnvironment) throws IOException {\n JavaWriter javaWriter = new JavaWriter(processingEnvironment.getFiler().createSourceFile(getQualifiedAdapterName()).openWriter());\n javaWriter.emitPackage(packageName);\n javaWriter.emitImports(Classes.QUERY_MODEL_AD...
"public boolean isAuthenticated(AuthProviderType providerType) {\n if (isAuthenticated()) {\n if (providerType.equals(AuthProviderType.SOCIALIZE)) {\n return true;\n }\n UserAuthData userAuthData = session.getUserAuthData(providerType);\n if (userAuthData == null) {\n ...
"protected void execute(ApplicationNode selectedNode) {\n ServerSessionAdapter session = (ServerSessionAdapter) selectedNode.getValue();\n if (session.usesExternalConnectionPooling()) {\n promptUserToTurnOffExternalConnectionPooling();\n } else {\n navigatorSelectionModel().pushExpansionState();\...
"public void processRequestTriggers(CaptureRequest captureRequest, Camera.Parameters parameters) {\n checkNotNull(captureRequest, \"String_Node_Str\");\n int afTrigger = ParamsUtils.getOrDefault(captureRequest, CONTROL_AF_TRIGGER, CONTROL_AF_TRIGGER_IDLE);\n final String afMode = parameters.getFocusMode();\n ...
"public String toString() {\n PeerAddress addr = vAddress;\n if (addr == null) {\n return \"String_Node_Str\";\n } else {\n return addr.toString();\n }\n}\n"
"public void run() {\n Log.i(TAG, \"String_Node_Str\");\n LocalRouterService newestServiceReceived = getLocalBluetoothServiceComapre();\n LocalRouterService self = getLocalRouterService();\n if (newestServiceReceived != null && self.isNewer(newestServiceReceived)) {\n Log.d(TAG, \"String_Node_Str\" +...
"private int generateWidth(int percent) {\n return (int) (1.24 * percent);\n}\n"
"public static Group addGroupByName(String groupName, List<String> groupMemberNames, List<String> userMemberNames) throws ApplicationException {\n Validator.validateGroupName(groupName);\n Group group = findGroup(groupName);\n if (group == null) {\n group = new Group(groupName);\n addMembersByNam...
"public static String getRootDirName(DatabaseRO database, long rootParentId) throws BabuDBException {\n byte[] rootParentIdBytes = ByteBuffer.wrap(new byte[8]).putLong(rootParentId).array();\n ResultSet<byte[], byte[]> it = database.prefixLookup(BabuDBStorageManager.FILE_INDEX, rootParentIdBytes, null).get();\n ...
"public List<RequirementEffect> getApplicableRequirementEffects(Permanent permanent, Game game) {\n List<RequirementEffect> effects = new ArrayList<RequirementEffect>();\n for (RequirementEffect effect : requirementEffects) {\n Ability ability = requirementEffects.getAbility(effect.getId());\n if (!...
"public void testCursorModel1() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptExpres...
"public void setAtomInfo(String atomName, int serialNumber, char alternativeLocationId, float x, float y, float z, float occupancy, float temperatureFactor, String element, int charge) {\n Atom atom = new AtomImpl();\n Group altGroup = null;\n atom.setPDBserial(serialNumber);\n atom.setName(atomName.trim())...
"public void onComplete() {\n resultCallback.onComplete();\n command.close();\n}\n"
"private void removeObsoletePathToPathLinks(User user, String workspaceId) throws UserNotFoundException, WorkspaceNotFoundException, UserNotActiveException, PartRevisionNotFoundException, AccessRightException {\n Locale locale = new Locale(user.getLanguage());\n ConfigurationItemDAO configurationItemDAO = new Con...
"public List transformCell(String sheetName, CellRef cellRef) {\n List cells = null;\n String refSheetName = cellRef.getSheetName();\n if (block.getSheet().getSheetName().equalsIgnoreCase(refSheetName) || (cellRef.getSheetName() == null && block.getSheet().getSheetName().equalsIgnoreCase(sheetName))) {\n ...
"private void createPropertyGetterSetter(ClassNode classNode, PropertyNode originalProp) {\n Expression initExp = originalProp.getInitialExpression();\n originalProp.getField().setInitialValueExpression(null);\n PropertyNode fxProperty = createFXProperty(originalProp);\n List<AnnotationNode> methodAnnotatio...
"public ListCell<TurboComment> call(ListView<TurboComment> list) {\n return new DetailsCell(issue, displayType, handler);\n}\n"
"private List<User> selectUsers(ModelAndView mav, Locale locale) {\n List<User> users = new ArrayList<>();\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n conn = jdbcTemplate.getDataSource().getConnection();\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"Str...
"public void onClick(View v) {\n final String number = phoneBox.getText().toString();\n String text = messageBox.getText().toString();\n if (number.length() > 0 && text.length() > 0) {\n try {\n if (Prephase2Activity.dba.isTrustedContact(number) && Prephase2Activity.sharedPrefs.getBoolean(\"S...
"public void setup() throws SchemaException, CQLException, Exception {\n dataStore = createDataStore();\n type = DataUtilities.createType(\"String_Node_Str\", \"String_Node_Str\");\n dataStore.createSchema(type);\n stime = DateUtilities.parseISO(\"String_Node_Str\");\n etime = DateUtilities.parseISO(\"St...
"public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelInactive();\n logger.error(\"String_Node_Str\" + ctx.channel());\n ClientProxyDelegate.instance.remove(ctx.channel());\n reconnect();\n}\n"
"public GregorianCalendar getStart() {\n return startTime;\n}\n"
"private List<ExportFileResource> getProcesses(List<RepositoryNode> nodes, String path) {\n List<ExportFileResource> value = new ArrayList<ExportFileResource>();\n for (final RepositoryNode node : nodes) {\n if (node.getType() == ENodeType.SYSTEM_FOLDER || node.getType() == ENodeType.SIMPLE_FOLDER) {\n ...
"public AttributeMatcherType getMatchType() {\n return AttributeMatcherType.CUSTOM;\n}\n"
"public static PolygonalMesh readBinary(PolygonalMesh mesh, InputStream is, double tol) throws IOException {\n boolean _printDebug = false;\n is.skip(80);\n byte[] bbuf = new byte[4];\n is.read(bbuf, 0, 4);\n long numFacets = 0;\n numFacets |= bbuf[3] & 0xFF;\n numFacets <<= 8;\n numFacets |= bb...
"public void run() {\n final CommandState state = new CommandState(index, graphDb);\n threadState.set(STARTING);\n while (state.alive) {\n try {\n latch = new CountDownLatch(1);\n log(\"String_Node_Str\");\n latch.await();\n threadState.set(RUNNING);\n ...
"public static List<FOXTreeNode> parseMDMUpdateReport(Shell shell, boolean needConfirm) {\n boolean fileExist = false;\n String filePath = \"String_Node_Str\";\n try {\n Bundle b = Platform.getBundle(\"String_Node_Str\");\n if (b == null) {\n return null;\n URL fileUrl = FileLoc...
"public ClassLoader getClassLoader() {\n if (classLoader == null) {\n final URL[] urls = new URL[1];\n try {\n urls[0] = jarFile.getAbsoluteFile().toURL();\n classLoader = new URLClassLoader(urls);\n } catch (Exception e) {\n e.printStackTrace();\n }\n ...
"public void invalidAbsolutePositionOptionsShouldFailOnBuild() throws Exception {\n final List<ActionOptions> invalidOptions = new ArrayList<>();\n invalidOptions.add(new PressOptions().withElement(DUMMY_ELEMENT).withAbsoluteOffset(0, 0));\n invalidOptions.add(new LongPressOptions().withRelativeOffset(0, 0));\...
"void keyValueAgentCleanup() {\n mBackupDataName.delete();\n mStageName.delete();\n try {\n if (mBackupData != null)\n mBackupData.close();\n } catch (IOException e) {\n }\n try {\n if (mNewState != null)\n mNewState.close();\n } catch (IOException e) {\n }\n ...
"protected int validateFunctionPathExpression(CompoundExpression expression) {\n int result = 0;\n if (expression.hasLeftExpression()) {\n StateFieldPathExpression pathExpression = getStateFieldPathExpression(expression.getLeftExpression());\n if (pathExpression != null) {\n boolean valid...
"private Collection createDynamicSelectionChoices(String pattern, String dataSetName, String labelStmt, String valueStmt, String dataType, int limit, boolean fixedOrder, boolean isDistinct, String sortDirection, String sortBy) {\n boolean sortDirectionValue = \"String_Node_Str\".equalsIgnoreCase(sortDirection);\n ...
"public void backupPreferences() {\n if (!PREFERENCES_BACKUP_FILE.exists()) {\n try {\n Common.PREFERENCES_BACKUP_FILE.createNewFile();\n } catch (Exception e) {\n }\n }\n ObjectOutputStream output = null;\n try {\n output = new ObjectOutputStream(new FileOutputStream(...
"private void readDeviceInfoMessage(DeviceInfoMesg mesg) {\n final Integer garminProductId = mesg.getGarminProduct();\n if (garminProductId != null && garminProductId.intValue() > 100) {\n String productName = getGarminProductConstantName(garminProductId);\n if (productName != null) {\n e...
"public void callback(final MyPetPlayer joinedPlayer) {\n if (joinedPlayer != null) {\n PlayerList.setOnline(joinedPlayer);\n if (BukkitUtil.isInOnlineMode()) {\n if (joinedPlayer instanceof OnlineMyPetPlayer) {\n ((OnlineMyPetPlayer) joinedPlayer).setLastKnownName(player.getN...
"private static String createURL(String servletName, String report, String format, boolean inDesigner, String resourceFolder, String maxrows) {\n String encodedReportName = null;\n try {\n encodedReportName = URLEncoder.encode(report, \"String_Node_Str\");\n } catch (UnsupportedEncodingException e) {\n ...
"public void testTmfTraceIndexing() throws Exception {\n assertEquals(\"String_Node_Str\", BLOCK_SIZE, fExperiment.getCacheSize());\n assertEquals(\"String_Node_Str\", NB_EVENTS, fExperiment.getNbEvents());\n assertEquals(\"String_Node_Str\", 1, fExperiment.getTimeRange().getStartTime().getValue());\n asser...
"public Object invoke(Object state, Object key, Object val) {\n if (((Counter) state).i++ != 0)\n writer.writeComma();\n writer.writeFieldName(convertFieldName(key));\n try {\n JSONGenerator.forObj(writer, val);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n retu...
"public static boolean isAuthorized(String vendor, String resourceType, String resourceName, Account resourceAccount, String action, User requestUser) {\n Context context = null;\n try {\n context = Contexts.lookup();\n } catch (IllegalContextAccessException e) {\n LOG.debug(\"String_Node_Str\", ...
"public void testMakeCQLforInsert() throws CQLGenerationException, CObjectParseException, IOException {\n Subject s = new Subject(0);\n s.testMakeCQLforInsert();\n}\n"
"public void run() {\n while (true) {\n try {\n synchronized (this) {\n while (buildingType == null) {\n this.wait();\n }\n }\n while (buildingType != null) {\n if (!NetworkTimer.isPausing()) {\n ...