content stringlengths 40 137k |
|---|
"public void testThatDispenseToFacilityExists() throws Exception {\n DispenseActivity activity = getDispenseActivity();\n assertThat(activity.checkboxCommoditySelected, is(notNullValue()));\n}\n"
|
"protected void configure() {\n String persistenceUnitName = ninjaProperties.get(NinjaConstant.PERSISTENCE_UNIT_NAME);\n if (persistenceUnitName != null) {\n String connectionUrl = ninjaProperties.get(NinjaConstant.DB_CONNECTION_URL);\n String connectionUsername = ninjaProperties.get(NinjaConstant.D... |
"void dumpAISee(FileWriter f) throws IOException {\n f.write(\"String_Node_Str\" + id + \"String_Node_Str\" + getWord() + \"String_Node_Str\" + getId() + \"String_Node_Str\" + getBeginTime() + \"String_Node_Str\" + getEndTime() + \"String_Node_Str\");\n}\n"
|
"private void createFieldArea(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout());\n GridData gd = new GridData(GridData.FILL_BOTH);\n gd.widthHint = 200;\n composite.setLayoutData(gd);\n new Label(composite, SWT.NONE).setText(GROUP_DLG_... |
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.getEntity() instanceof Wolf) {\n Wolf wolf = (Wolf) event.getEntity();\n if (wolf.isTamed()) {\n if (event instanceof EntityDamageByEntityEvent && wolf.getOwner() instanceof Player) {\n EntityDamageByEntityEven... |
"public void actionPerformed(final ActionEvent evt) {\n final String action = evt.getActionCommand();\n String menu, option;\n final int z = action.indexOf('.');\n if (z == -1) {\n menu = action;\n option = \"String_Node_Str\";\n } else {\n menu = action.substring(0, z);\n opt... |
"private void selectPointType(PointAction action) {\n final ShortPoint2D actionPosition = action.getPosition();\n final IGuiMovable selectedMovable = getSelectableMovable(actionPosition.x, actionPosition.y);\n if (selectedMovable == null) {\n setSelection(new SelectionSet());\n return;\n }\n ... |
"public void validate() {\n if (isFlatFileLocalMode() || isFlatFileUrlMode()) {\n if (this.fileInfoMap.isEmpty()) {\n setStatus(new Status(IStatus.ERROR, PLUGIN_ID, getString(\"String_Node_Str\")));\n return;\n }\n boolean noneProcessed = true;\n for (ITeiidMetadataF... |
"public void readFields(Object object, Importer importer, boolean useReader) throws IOException {\n if (_reader != null && useReader) {\n try {\n _reader.invoke(object, importer);\n } catch (InvocationTargetException ite) {\n Throwable t = ite.getTargetException();\n if... |
"public void testSMGetHitAll() {\n try {\n keyList = new ArrayList<String>();\n for (int i = 0; i < 50; i++) {\n mc.delete(KEY + i).get();\n keyList.add(KEY + i);\n }\n for (int i = 0; i < 50; i++) {\n mc.asyncBopInsert(KEY + i, i, \"String_Node_Str\".getB... |
"public void posNegLPLearningTests() throws ComponentInitException {\n KB kb = new KB();\n String ns = \"String_Node_Str\";\n NamedClass[] nc = new NamedClass[5];\n for (int i = 0; i < 5; i++) {\n nc[i] = new NamedClass(ns + \"String_Node_Str\" + i);\n }\n Individual[] ind = new Individual[100]... |
"public void setLines(InvoicingProject invoicingProject, ProjectTask projectTask, int counter) {\n if (counter > ProjectTaskService.MAX_LEVEL_OF_PROJECT) {\n return;\n }\n counter++;\n this.fillLines(invoicingProject, projectTask);\n List<ProjectTask> projectTaskChildrenList = Beans.get(ProjectTas... |
"public void testRecursiveFunctions() throws IOException {\n runSemanticTest(\"String_Node_Str\", 1);\n}\n"
|
"private void processCaseReferral(TreeElement referral, Case c, Date date) throws MalformedCaseModelException {\n Vector referralIds = referral.getChildrenWithName(\"String_Node_Str\");\n if (referralIds.size() < 1) {\n throw new MalformedCaseModelException(\"String_Node_Str\", \"String_Node_Str\");\n }... |
"public static <T> T parse(final String value, final Class<T> type) {\n if (Boolean.class.isAssignableFrom(type)) {\n return type.cast(parseBoolean(value));\n } else if (TimeUnit.class.isAssignableFrom(type)) {\n type.cast(parseTimeUnit(value));\n }\n return null;\n}\n"
|
"public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {\n final ListCalc listCalc = compiler.compileList(call.getArg(0));\n final Calc calc = call.getArgCount() > 1 ? compiler.compileScalar(call.getArg(1), true) : new ValueCalc(call);\n return new AbstractCalc(call) {\n public Object eval... |
"PropertyIndex createPropertyIndex(String key) {\n Transaction tx = getTransaction();\n if (tx == null) {\n throw new NotInTransactionException(\"String_Node_Str\" + key);\n }\n TxCommitHook hook = txCommitHooks.get(tx);\n if (hook == null) {\n hook = new TxCommitHook();\n txCommitHo... |
"private void processProperty(List<ElementDefinition> list, String dtn, Element prop, String param) throws FHIRFormatError {\n ElementDefinition ed = new ElementDefinition();\n String n = prop.getAttribute(\"String_Node_Str\");\n PropStatus p = getPropStatus(dtn, n);\n if (p == PropStatus.IGNORE)\n r... |
"private void addPreferredActivityInternal(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, boolean always, int userId) {\n int callingUid = Binder.getCallingUid();\n enforceCrossUserPermission(callingUid, userId, true, \"String_Node_Str\");\n if (filter.countActions() == 0) {\n ... |
"public List<String> getPredicateNames() {\n return new ArrayList<String>(Arrays.asList(name));\n}\n"
|
"protected void _resolveProperties(ModelAnalyzer analyzer) throws KernelException {\n super._resolveProperties(analyzer);\n PropertyConstraintHelper toplevelHelper = (PropertyConstraintHelper) getHelper(toplevel());\n toplevelHelper.reinitialize();\n toplevelHelper._addDefaultConstraints(_getConstraintType(... |
"private void adjustBounds() {\n if (mUser.dimFullscreen()) {\n getBoundsForFullscreen(mBounds);\n }\n if (mDimSurface != null) {\n mDimSurface.setPosition(xPos, yPos);\n mDimSurface.setSize(dw, dh);\n }\n mLastBounds.set(mBounds);\n}\n"
|
"public static List<RuleRepNode> getRuleRepNodes(IRepositoryNode parrentNode, boolean recursiveFind, boolean withDeleted) {\n List<RuleRepNode> result = new ArrayList<RuleRepNode>();\n if (parrentNode != null && (parrentNode instanceof RulesSQLFolderRepNode || parrentNode instanceof RulesSubFolderRepNode)) {\n ... |
"public final String formatCategoryValue(int iType, Object oValue, int iDateTimeUnit) {\n if (oValue == null) {\n return IConstants.NULL_STRING;\n }\n if ((iType & IConstants.TEXT) == IConstants.TEXT) {\n if (oValue instanceof Number) {\n return formatCategoryValue(IConstants.NUMERICAL... |
"public boolean canPay(UUID sourceId, UUID controllerId, Game game) {\n return targets.canChoose(sourceId, controllerId, game);\n}\n"
|
"public static int normalizeOffset(final Editor editor, int offset, final boolean allowEnd) {\n if (offset <= 0) {\n offset = 0;\n }\n final int textLength = editor.getDocument().getTextLength();\n if (offset > textLength) {\n offset = textLength;\n }\n if (offset > 0 && !allowEnd && edi... |
"private <T> MembersInjectorImpl<T> createWithListeners(TypeLiteral<T> type, Errors errors) throws ErrorsException {\n int numErrorsBefore = errors.size();\n Set<InjectionPoint> injectionPoints;\n try {\n injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type);\n } catch (ConfigurationExce... |
"public static short readShort(byte[] buffer) {\n return (short) (((buffer[1] & 0xff)) | ((buffer[0] & 0xff) << 8));\n}\n"
|
"public void onExecute(Message receivedMessage) {\n log.fine(\"String_Node_Str\" + receivedMessage);\n log.fine(\"String_Node_Str\" + Element.as(nativeNode).getString());\n TreeOperation operation = (TreeOperation) receivedMessage.getOperation();\n int position = operation.getPosition();\n final Node tar... |
"public void setup(org.dspace.content.Bitstream bitstream, String expand, Context context) throws SQLException {\n List<String> expandFields = new ArrayList<String>();\n if (expand != null) {\n expandFields = Arrays.asList(expand.split(\"String_Node_Str\"));\n }\n if (bitstream.getBundles() != null &... |
"public void ticket_number_is_found() throws Exception {\n addToIndex(LogFileHelper.createLogFile(logDirectory, \"String_Node_Str\"));\n addToIndex(LogFileHelper.createLogFile(logDirectory, \"String_Node_Str\"));\n final String response = getUpdates(\"String_Node_Str\");\n assertThat(response, containsStrin... |
"private void generateLogs(LoggingContext loggingContext, Id.Program id, ProgramRunStatus runStatus) throws InterruptedException {\n String entityId = LoggingContextHelper.getEntityId(loggingContext).getValue();\n RunId runId = null;\n Long stopTs = null;\n for (int i = 0; i < MAX; ++i) {\n if (i == ... |
"private void createConnectionGroupPermissions(int user_id, Collection<ConnectionGroupPermission> permissions) throws GuacamoleException {\n if (permissions.isEmpty())\n return;\n Set<Integer> administerableConnectionGroupIDs = Sets.<Integer>newHashSet(permissionCheckService.retrieveConnectionGroupIDs(this... |
"public void testCsv() throws Exception {\n open(\"String_Node_Str\");\n p.of(this.address, this.len);\n Assert.assertEquals(TextFileFormat.CSV, p.getFormat());\n Assert.assertEquals(0d, p.getStdDev(), 0.0000001d);\n Assert.assertEquals(104, p.getAvgRecLen());\n}\n"
|
"protected ReferenceTypeDelegate resolveIfBootstrapDelegate(ReferenceType ty) {\n String name = ty.getName();\n Reference bootRef = (Reference) bootstrapTypes.get(name);\n if (bootRef != null) {\n ReferenceTypeDelegate rtd = (ReferenceTypeDelegate) bootRef.get();\n if (rtd != null) {\n ... |
"private void applyStringFilter(String filterString) {\n try {\n FilterExpression filter = Parser.parse(filterString);\n if (filter != null) {\n this.applyFilterExpression(filter);\n } else {\n this.applyFilterExpression(Qualifier.EMPTY);\n }\n } catch (FilterExce... |
"public Response execute() {\n DatabaseAccessor db = null;\n try {\n db = initDB();\n Map<String, Integer> anno = db.getAnnotations();\n if (!anno.containsKey(oldName)) {\n return new ErrorResponse(StatusCode.BAD_REQUEST, \"String_Node_Str\" + oldName + \"String_Node_Str\");\n ... |
"public static SqlDriver getSqlDriver(String aDialect) {\n if (ClientConstants.SERVER_PROPERTY_ORACLE_DIALECT.equalsIgnoreCase(aDialect)) {\n return new OracleSqlDriver();\n } else if (ClientConstants.SERVER_PROPERTY_MSSQL_DIALECT.equalsIgnoreCase(aDialect)) {\n return new MsSqlSqlDriver();\n } e... |
"public void translateToWorld(Vec3d transform) {\n super.translateToWorld(transform);\n Vec3d pos = new Vec3d(entityNBT.getInteger(\"String_Node_Str\"), entityNBT.getInteger(\"String_Node_Str\"), entityNBT.getInteger(\"String_Node_Str\"));\n pos = pos.add(transform);\n Vec3i floored = Utils.convertFloor(pos... |
"public RequestBuilder charset(Charset charset) {\n this.charset = charset;\n return this;\n}\n"
|
"private Pair<List<AccountJoinVO>, Integer> searchForAccountsInternal(ListAccountsCmd cmd) {\n Account caller = CallContext.current().getCallingAccount();\n Long domainId = cmd.getDomainId();\n Long accountId = cmd.getId();\n String accountName = cmd.getSearchName();\n boolean isRecursive = cmd.isRecursi... |
"private void setState(AsyncNetworkClientFactoryState state) {\n if (this.state == AsyncNetworkClientFactoryState.CLOSED) {\n close();\n } else {\n this.state = state;\n }\n synchronized (lock) {\n lock.notifyAll();\n }\n}\n"
|
"public List<DictionaryAddOnAndBuilder> getBuildersForKeyboard(AnyKeyboard keyboard) {\n List<DictionaryAddOnAndBuilder> builders = new ArrayList<>();\n final String dictionaryValue = mSharedPreferences.getString(getDictionaryOverrideKey(keyboard), null);\n if (TextUtils.isEmpty(dictionaryValue)) {\n fi... |
"protected void finishRound() {\n ReportBuffer.add(\"String_Node_Str\");\n ReportBuffer.add(LocalText.getText(\"String_Node_Str\", String.valueOf(getStockRoundNumber())));\n if (raiseIfSoldOut) {\n for (PublicCompany company : gameManager.getCompaniesInRunningOrder()) {\n if (company.hasStock... |
"public void run() {\n long timeElapsed = System.currentTimeMillis() - lastLocationTime;\n Log.d(TAG, \"String_Node_Str\" + timeElapsed + \"String_Node_Str\" + MAX_TIME_WITHOUT_NEW_LOCATION);\n if (timeElapsed > MAX_TIME_WITHOUT_NEW_LOCATION && locationAdded) {\n removeLocationListener();\n Log.d... |
"int addRowTry(Row row) throws SQLException {\n index.getPageStore().logUndo(this, data);\n int rowLength = getRowLength(row);\n int pageSize = index.getPageStore().getPageSize();\n int last = entryCount == 0 ? pageSize : offsets[entryCount - 1];\n int keyOffsetPairLen = 2 + data.getVarLongLen(row.getKey... |
"private void selectArea(SelectAreaAction action) {\n SelectionSet selectionSet = new SelectionSet();\n for (ShortPoint2D curr : new MapShapeFilter(action.getArea(), grid.getWidth(), grid.getHeight())) {\n IGuiMovable movable = grid.getMovable(curr.x, curr.y);\n if (movable != null && canSelectPlaye... |
"private void rotate() {\n if (rotatable) {\n synchronized (lock) {\n try {\n if (!logFile.exists()) {\n File creatingDeletedLogFile = new File(logFile.getAbsolutePath());\n if (creatingDeletedLogFile.createNewFile()) {\n l... |
"public static void addInputPartition(Map<String, String> arguments, Partition partition) {\n addInputPartitions(arguments, Collections.singletonList(partition));\n}\n"
|
"public boolean handleValidate(Object obj) {\n if (obj instanceof DimensionHandle) {\n if ((getPositionType().equals(ICrosstabCellAdapterFactory.CELL_LEVEL_HANDLE) || getPositionType().equals(ICrosstabCellAdapterFactory.CELL_FIRST_LEVEL_HANDLE)) && CrosstabUtil.canContain(crosstab, (DimensionHandle) obj)) {\n... |
"public void testAccuracyStrings() {\n int seed = 7364181;\n Random r = new Random(seed);\n int numItems = 1000000;\n String[] xs = new String[numItems];\n int maxScale = 20;\n for (int i = 0; i < numItems; i++) {\n int scale = r.nextInt(maxScale);\n xs[i] = RandomStringUtils.random(scal... |
"public void initialize() throws IOException {\n try {\n for (; ; ) {\n try {\n registerServices(-1);\n break;\n } catch (PBRPCException ex) {\n if (ex.getPOSIXErrno() == POSIXErrno.POSIX_ERROR_EAGAIN) {\n if (Logging.isInfo... |
"public void setCountdown(Camera camera, int countdown) {\n for (SimCameraThread cameraThread : simulatedCameraThreadList) {\n if (cameraThread.getCamera().getId() == camera.getId()) {\n cameraThread.setCountdown(countdown);\n }\n }\n}\n"
|
"public Message copy() {\n return INSTANCE;\n}\n"
|
"public boolean add(T o) {\n return addRaw(o);\n}\n"
|
"public int size() {\n return AbstractVanillaSharedHashMap.this.size();\n}\n"
|
"public List<Job> getJobs(final String id, final String name, final String userName, final String status, final String clusterName, final String clusterId, int page, int limit) throws GenieException {\n LOG.info(\"String_Node_Str\");\n LOG.info(id + \"String_Node_Str\" + name + \"String_Node_Str\" + userName + \"... |
"public MethodSpec generateMethodSpec(TypeUtil typeUtil) {\n String returnVarName = getReturnVarName(RETURN_VAR_NAME_ROOT);\n MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(name).addAnnotation(Override.class).addModifiers(PUBLIC).returns(ClassName.get(typeUtil.intentType)).addStatement(\"String_Node_... |
"public boolean skipTo(int target) throws IOException {\n moreText = textSpans.skipTo(target);\n moreType = typeSpans.skipTo(target);\n return advance();\n}\n"
|
"public void run(IProgressMonitor monitor) throws CoreException {\n saveMetaData();\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n RepositoryUpdateManager.updateMultiSchema(connectionItem, oldMetadataTable, oldTableMap);\n closeLockStrategy();\n }\n ... |
"protected Fragment loadPageHints(List pageSequence) throws IOException {\n if (pageSequence.size() == 1) {\n if (context.getReportDocument().isComplete()) {\n long[] pages = (long[]) pageSequence.get(0);\n if (pages[0] == 1 && pages[1] == hintsReader.getTotalPage()) {\n r... |
"public void renameProject(Project project, final String name) {\n project.getLookup().lookup(ProjectInformationImpl.class).setName(name);\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = (JFrame) WindowManager.getDefault().getMainWindow();\n String... |
"private void renderData() {\n QrCodeMaskPattern mask = qr.mask;\n int count = 0;\n int length = bitLocations.size() - bitLocations.size() % 8;\n while (count < length) {\n int bits = qr.dataRaw[count / 8] & 0xFF;\n int N = Math.min(8, bitLocations.size() - count);\n for (int i = 0; i <... |
"private static LongRange getSplitBounds(FileSplit split, TileBounds partFileTileBounds, int zoomLevel, FileSystem fs, Configuration conf) throws IOException {\n long startOffset = split.getStart();\n long endOffset = startOffset + split.getLength();\n Path indexPath = new Path(split.getPath().getParent(), \"S... |
"public boolean doRemove(XtentisPort port, Object wsObj) throws RemoteException {\n WSTransformerV2PK pk = new WSTransformerV2PK();\n String name = cmd.getObjName();\n pk.setPk(name);\n port.deleteTransformerV2(new WSDeleteTransformerV2(pk));\n TreeObjectUtil.deleteSpecificationFromAttachedRole(port, nam... |
"private void testDimensionFind(IDocumentManager documentManager) throws DataException, IOException {\n IDimension dimension;\n IHierarchy hierarchy;\n ILevel[] level;\n Dimension realDimension;\n dimension = DimensionFactory.loadDimension(\"String_Node_Str\", documentManager);\n hierarchy = dimension... |
"public void onMapLongClick(LatLng coord) {\n getPreferences();\n if (isGuidedModeEnabled) {\n drone.guidedPoint.newGuidedPoint(coord);\n markers.updateMarker(drone.guidedPoint);\n }\n}\n"
|
"protected void setupProxies() {\n if (proxy == null) {\n try {\n IProxyService proxyService = Activator.getDefault().getProxyService();\n if (proxyService != null && proxyService.isProxiesEnabled()) {\n URL target = directoryOrFile;\n final IProxyData[] pro... |
"public long getAndIncrement() {\n long value;\n return value;\n}\n"
|
"public void testGroupFilter() throws Exception {\n FilterGroupDescriptor groupIdFilter = new FilterGroupDescriptor();\n FilterDescriptor idFilter1 = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.GREATER_THAN, \"String_Node_Str\");\n FilterDescriptor idFilter2 = new FilterDescri... |
"public static String getSensTypeInArea(String lsmMetaGraph, double longitude, double latitude, float radius) {\n StringBuilder update = new StringBuilder();\n String str = (\"String_Node_Str\" + \"String_Node_Str\" + lsmMetaGraph + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_S... |
"private JCheckBoxMenuItem createMenuItem(String textKey, Icon icon, String name) {\n JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem(GuiActivator.getResources().getI18NString(textKey), icon);\n menuItem.setName(name);\n menuItem.addActionListener(this);\n add(menuItem);\n return menuItem;\n}\n"
|
"protected final void emit_fastore() {\n VM_Barriers.compileModifyCheck(asm, 8);\n asm.emitMOV_Reg_RegDisp(T0, SP, 4);\n asm.emitMOV_Reg_RegDisp(S0, SP, 8);\n genBoundsCheck(asm, T0, S0);\n asm.emitMOV_Reg_RegDisp(T1, SP, 0);\n asm.emitMOV_RegIdx_Reg(S0, T0, asm.WORD, 0, T1);\n asm.emitADD_Reg_Imm(... |
"public Module getInMemoryModules() {\n return new DataFabricInMemoryModule(txClientId);\n}\n"
|
"public void characters(char[] ch, int start, int length) {\n Node currentNode = this.nodes.peek();\n if (currentNode != this.document) {\n final String text = String.valueOf(ch, start, length);\n currentNode.appendChild(this.document.createTextNode(text));\n }\n}\n"
|
"void callStaticModifiers(RevenueAdapter revenueAdapter) {\n for (RevenueStaticModifier modifier : staticModifiers.viewSet()) {\n modifier.modifyCalculator(revenueAdapter);\n }\n}\n"
|
"protected void configure() {\n install(new SystemDatasetRuntimeModule().getDistributedModules());\n install(new FactoryModuleBuilder().implement(DatasetDefinitionRegistry.class, DefaultDatasetDefinitionRegistry.class).build(DatasetDefinitionRegistryFactory.class));\n bind(DatasetFramework.class).annotatedWith... |
"public void testWithDateFromAndTOAsInput() {\n UkaProgramService service = new UkaProgramService();\n UkaProgramRepository mock = Mockito.mock(UkaProgramRepository.class);\n service.setUkaProgramRepository(mock);\n Date from = new Date();\n Date to = new Date(from.getTime() + 8640000);\n service.getU... |
"protected IFigure createFigure() {\n ReportRootFigure figure = new ReportRootFigure();\n figure.setOpaque(true);\n figure.setShowMargin(showMargin);\n ReportDesignLayout layout = new ReportDesignLayout(this);\n Dimension size = DEFAULTSIZE;\n Rectangle bounds = new Rectangle(0, 0, size.width - 1, siz... |
"public static void main(File m2Home, File remotingJar, File interceptorJar, int tcpPort, File interceptorOverrideJar) throws Exception {\n try {\n m2Home = m2Home.getCanonicalFile();\n } catch (IOException e) {\n }\n if (!m2Home.exists()) {\n System.err.println(\"String_Node_Str\" + m2Home);\... |
"private boolean validateInput() {\n if (newName.length() == 0) {\n setErrorMessage(Messages.ServerDefDialog_NameCanNotBeEmpty);\n nameText.setFocus();\n return false;\n }\n if (ServerDefService.isExistServerDefName(newName)) {\n if ((!isUpdateServerDef) || (isUpdateServerDef() && (... |
"public static void handleApplicationInstanceInactivateEvent(String appId, String instanceId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appId + \"String_Node_Str\" + instanceId);\n }\n Applications applications = ApplicationHolder.getApplications();\n Application application =... |
"public static byte[] cryptoSecretBoxEasy(byte[] message, byte[] nonce, byte[] key) throws SodiumLibraryException {\n int nonce_length = sodium().crypto_secretbox_noncebytes().intValue();\n if (nonce_length != nonce.length) {\n throw new SodiumLibraryException(\"String_Node_Str\" + nonce.length + \"String_... |
"private void authenticate() {\n driven.authenticateAsync(credential, new Task.WithErrorReporting<Result<DrivenException>>() {\n\n public void onCompleted(Result<DrivenException> result) {\n if (!result.isSuccess()) {\n driven.getDropboxApi().getSession().startOAuth2Authentication(Dr... |
"public List<String> getMessageForNextDosage(DateTime nextDosageDateTime) {\n List<String> messages = new ArrayList<String>();\n if (nextDosageDateTime.getHourOfDay() == 0 || nextDosageDateTime.getHourOfDay() == 12) {\n messages.add(iVRMessage.getNumberFilename(12));\n } else {\n messages.add(iVR... |
"public void asynRead() throws IOException {\n if (isClosed.get()) {\n return;\n }\n if (!rwLock.compareAndSet(false, true)) {\n return;\n }\n lastReadTime = TimeUtil.currentTimeMillis();\n try {\n for (; ; ) {\n int position = mappedByteBuffer.position();\n ... |
"public void onEntityDeath(PlayerDeathEvent event) {\n Collection<DropEvent> events = Collections.emptySet();\n if (EventUtils.isPVPDeath(event)) {\n events = plugin.getDropEventFactory().createEvents(PlayerKilledEvent.createEvent(event));\n } else if (EventUtils.isNotSuicide(event)) {\n events =... |
"private void sortPlatesAction() {\n PlateAttributeDialog dialog = new PlateAttributeDialog(heatMapModel);\n dialog.setVisible(true);\n String[] selectedAttributes = dialog.getSelectedAttributeTitles();\n List<String> inverted = Arrays.asList(selectedAttributes);\n Collections.reverse(inverted);\n for... |
"public void publish(LogRecord record) {\n try {\n ConsoleLogThread.recordQueue.put(record);\n } catch (InterruptedException e) {\n e.printStackTrace(errCache);\n }\n if (currInt) {\n Thread.currentThread().interrupt();\n }\n}\n"
|
"public void run() {\n device.clearCache();\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.Para... |
"public void setupMediaElements() throws InterruptedException {\n pipeline.newWebRtcEndpoint().buildAsync(cont);\n pipeline.newWebRtcEndpoint().buildAsync(cont);\n sdp = creationResults.poll(2, SECONDS);\n sdp2 = creationResults.poll(2, SECONDS);\n Assert.assertNotNull(sdp);\n Assert.assertNotNull(sdp... |
"public long getMinFrequency() {\n return MIN_FREQUENCY + frequencyShift;\n}\n"
|
"public boolean execute(Player plr, String... args) {\n if (!PlayerFunctions.isInPlot(plr)) {\n PlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);\n return true;\n }\n if (PlayerFunctions.getPlayerPlotCount(plr.getWorld(), plr) >= PlayerFunctions.getAllowedPlots(plr)) {\n PlayerFunctions.sen... |
"private void getInfo() throws IOException {\n HttpSession session = ServletActionContext.getRequest().getSession();\n setState((int) session.getAttribute(\"String_Node_Str\"));\n Locale locale = (Locale) session.getAttribute(\"String_Node_Str\");\n if (locale == null) {\n locale = Locale.ROOT;\n ... |
"protected Dataset loadDataset() throws Exception {\n Dataset instance = constructor.newInstance(constructorArgs);\n instance.setName(this.getName());\n if (instance instanceof InitializableDataset) {\n ((InitializableDataset) instance).init();\n }\n SameAsRetriever retriever = DatasetBasedSameAsR... |
"private void maybeContinueLoading() {\n long nextLoadPositionUs = loadingPeriodHolder.mediaPeriod.getNextLoadPositionUs();\n if (nextLoadPositionUs != C.TIME_END_OF_SOURCE) {\n long loadingPeriodPositionUs = rendererPositionUs - loadingPeriodHolder.rendererPositionOffsetUs;\n long bufferedDurationU... |
"public void handlePacket(IPv6Packet packet) {\n TCPPacket tcpPacket = (TCPPacket) packet.getIPPayload();\n TCPConnection connection = findConnection(packet, tcpPacket);\n if (connection == null) {\n connection = findListenConnection(packet, tcpPacket);\n if (connection == null) {\n Sy... |
"private void assignRealDownloadDir(ExtractionController controller) {\n Boolean usesub = this.getPluginConfig().getBooleanProperty(ExtractionConstants.CONFIG_KEY_USE_SUBPATH, false);\n if (usesub) {\n if (this.getPluginConfig().getIntegerProperty(ExtractionConstants.CONFIG_KEY_SUBPATH_MINNUM, 0) > control... |
"protected void setUpSecureDexClassLoader() {\n if (!effectiveSecureDexClassLoader)\n return;\n Log.i(TAG_MAIN, \"String_Node_Str\");\n SecureLoaderFactory mSecureLoaderFactory = new SecureLoaderFactory(this);\n SecureDexClassLoader mSecureDexClassLoader;\n String listAPKPaths = Environment.getExt... |
"public static CompiledTemplate loadCompiled(InputStream source) {\n String template;\n try (Scanner scanner = new Scanner(source, \"String_Node_Str\").useDelimiter(\"String_Node_Str\")) {\n template = scanner.next();\n }\n template = template.replace(\"String_Node_Str\", \"String_Node_Str\").replace... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.