content
stringlengths
40
137k
"public Response execute() {\n DatabaseAccessor db = null;\n ProcessHandler processHandler;\n try {\n db = initDB();\n processHandler = new ProcessHandler();\n switch(processtype) {\n case PutProcessCommand.CMD_RAW_TO_PROFILE:\n Genome g = db.getGenomeRelease(geno...
"protected List<Action> getActions() {\n List<Action> actionList = new ArrayList<Action>();\n IActionFactory actionFactory = getActionFactory();\n actionList.add(actionFactory.getAction(\"String_Node_Str\"));\n if (enableDocker) {\n Action dockerAction = actionFactory.getAction(\"String_Node_Str\");\...
"public CartridgeBean[] getAvailableMultiTenantCartridges() throws RestAPIException {\n int tenantId = getTenantId();\n if (!availableMultiTenantCartridges.containsKey(tenantId) && !availableMultiTenantCartridges.containsKey(PUBLIC_DEFINITION)) {\n Collection<CartridgeBean> cartridges = new HashMap<String,...
"private void traceObjectWithoutMoving(TransitiveClosure trace, ObjectReference object) {\n Word markValue = Plan.NEEDS_LOG_BIT_IN_HEADER ? markState.or(ObjectHeader.UNLOGGED_BIT) : markState;\n Word oldMarkState = ObjectHeader.testAndMark(object, markValue);\n if (VM.VERIFY_ASSERTIONS)\n VM.assertions....
"private void onSelectLanguageInfoFrTree() {\n if (!isLanguageInfoSelected())\n return;\n LanguageInfo selectedLangInfo = getSelectedLanguageInfo();\n comboLanguage.select(allLanguages.indexOf(selectedLangInfo.getLanguage()));\n txtLabel.setText(selectedLangInfo.getLabel());\n}\n"
"protected Predicate getPredicate() {\n return predicate == null ? TruePredicate.INSTANCE : predicate;\n}\n"
"public CloseableIterator<ZooPC> readObjectFromIndex(ZooFieldDef field, long minValue, long maxValue, boolean loadFromCache) {\n SchemaIndexEntry se = schemaIndex.getSchema(field.getDeclaringType());\n LongLongIndex fieldInd = se.getIndex(field);\n LLEntryIterator iter = fieldInd.iterator(minValue, maxValue);\...
"private static List<ConnectedComponent> getComponents(BigLong2ShortHashMap hm, int k, int freqThreshold, BigLongHashSet processedKmers) {\n List<ConnectedComponent> ans = new ArrayList<ConnectedComponent>();\n processedKmers.reset();\n Iterator<MutableLongShortEntry> it = hm.entryIterator();\n while (it.ha...
"public static void write(FileChannel channel, StoredBlock block) throws IOException {\n ByteBuffer buf = ByteBuffer.allocate(Record.SIZE);\n buf.putInt(block.getHeight());\n byte[] chainWorkBytes = block.getChainWork().toByteArray();\n checkState(chainWorkBytes.length <= CHAIN_WORK_BYTES, \"String_Node_Str...
"public List<CourseVoVwFull> getSearchResults(String query) {\n CoursesFacade coursesFacade = facadeFactory.getCoursesFacade();\n Date beforeSearch = new Date();\n List<Long> search = coursesFacade.search(query);\n Date afterSearch = new Date();\n Config.getInstance().getServiceFactory().getLogService()....
"public static RepositoryResult<Statement> getPropertyStatementsSparql(RepositoryConnection conn, Resource subj, IRI pred, Value obj, int aLimit, boolean includeInferred, String language) throws QueryEvaluationException {\n String filter = \"String_Node_Str\";\n if (language != null) {\n filter = \"String_...
"public ImmutableMap<String, ClassMappings> getMappings() {\n return this.mappings.build();\n}\n"
"private void readConfidence(Transaction tx, Protos.TransactionConfidence confidenceProto, TransactionConfidence confidence) {\n if (!confidenceProto.hasType()) {\n log.warn(\"String_Node_Str\", tx.getHashAsString());\n return;\n }\n ConfidenceType confidenceType = TransactionConfidence.Confidenc...
"public XMLDBModel executeGetModelsTask(GetModelsTask task) throws DBExecutionException {\n try {\n if (task == null) {\n throw new DBExecutionException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n XmlDocument dbModel;\n try {\n dbModel = _xmlContainer.getDocume...
"public int onStartCommand(Intent intent, int flags, int startId) {\n super.onStartCommand(intent, flags, startId);\n new Thread(new Runnable() {\n public void run() {\n Log.d(TAG, \"String_Node_Str\");\n if (System.getUpdateManager().isUpdateAvailable()) {\n Intent upd...
"private <T> T parseFromCurrentLocation(Class<T> type) throws Exception {\n Mirror<T> me = Mirror.me(type);\n switch(cursor) {\n case -1:\n return null;\n case '[':\n Class<?> compType = componentType;\n boolean reurnAsList = true;\n List list = null;\n ...
"public void check(int w) {\n if (!REPORT_SLOW)\n return;\n if (Assert.VERIFY_ASSERTIONS)\n Assert._assert(VM_Thread.getCurrentThread() == thread);\n long diff = (REPORT_SLOW) ? VM_Time.cycles() - start : 0;\n boolean show = (verbose > 1) || (diff > SLOW_THRESHOLD);\n if (show) {\n V...
"public void onSuccess(List<GwtTradeoffReason> result) {\n System.out.println(\"String_Node_Str\" + result.size());\n System.out.println(\"String_Node_Str\" + result.get(0).getTradeoffreason());\n tradeoffReasons = result;\n loadRequirementRatings();\n}\n"
"public synchronized VMValue evaluate(String expression) {\n int currentState = debugger.currentState();\n if (currentState == VM_TERMINATED) {\n return null;\n }\n JsValue result = null;\n Debugger oldDebugger = cx.getDebugger();\n Object oldContextData = cx.getDebuggerContextData();\n int ...
"public void setServerLanguageCodeConfig(LanguageCode serverLanguageCode) {\n if (serverLanguageCode != null && !\"String_Node_Str\".equals(serverLanguageCode.getValue())) {\n this.serverLanguageCodeConfig = serverLanguageCode;\n configurationHasBeenSet();\n }\n}\n"
"private void syncITunesIfNecessary(Playlist p) {\n try {\n PlaylistConfig pc = getRobonobo().getDbService().getPlaylistConfig(p.getPlaylistId());\n if (\"String_Node_Str\".equalsIgnoreCase(pc.getItem(\"String_Node_Str\"))) {\n for (Long ownerId : p.getOwnerIds()) {\n User own...
"private Collection<URI> getURIsOfConcept(Resource concept) throws RepositoryException {\n Collection<URI> urisForConcept = new ArrayList<>();\n RepositoryResult<Statement> conceptAsSubject = repCon.getStatements(concept, null, null, false);\n while (conceptAsSubject.hasNext()) {\n Value object = concep...
"protected void setupEndMonthSpinner() {\n if (getStartingYear().compareTo(getEndingYear()) < 0) {\n return;\n }\n int selectedIndex = spinnerStartingMonth.getSelectedItemPosition();\n ArrayAdapter<String> endMonthAdapter = new ArrayAdapter<>(getApplicationContext(), R.layout.spinner_item_large, getM...
"public void onClick(View v) {\n try {\n if (mTaskCardView.isInDismissState()) {\n mTaskCardView.startDismissTaskAnimation(getRemoveAtListener(getAdapterPosition(), mTaskCardView.getTask()));\n } else {\n EventBus.getDefault().send(new LaunchTvTaskEvent(mTaskCardView, mTask, null,...
"private void computeGenKill(Node n, BitSet gen, BitSet kill, boolean conditional) {\n switch(n.getToken()) {\n case SCRIPT:\n case ROOT:\n case FUNCTION:\n case BLOCK:\n return;\n case WHILE:\n case DO:\n case IF:\n case FOR:\n computeGen...
"private void RenderScatterPoints(GL gl) {\n float XScale = renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;\n float YScale = renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;\n float x = 0.0f;\n float y = 0.0f;\n float xnormalized = 0.0f;\n float ynormalized = 0.0f;\n float x_2 = 0.0f;\n...
"public void testFullPathMatchesCaseInsensitive() {\n DirectoryScanner ds = new DirectoryScanner();\n ds.setCaseSensitive(false);\n ds.setBasedir(new File(getProject().getBaseDir(), \"String_Node_Str\"));\n ds.setIncludes(new String[] { \"String_Node_Str\" });\n ds.scan();\n compareFiles(ds, new Strin...
"public void visit(ExprNode node) throws ParserException {\n switch(node.type) {\n case ExprNode.LITERAL:\n int dot = node.token.indexOf('.');\n CharSequence name = extractColumnName(node.token, dot);\n indexes.add(resolveJournalIndex(parent, dot == -1 ? null : csPool.next().o...
"public void onReceive(Context context, Intent intent) {\n Bundle bundle = intent.getExtras();\n SmsMessage[] msgs = null;\n String msg = \"String_Node_Str\";\n String smsSenderNum = \"String_Node_Str\";\n if (bundle != null) {\n Object[] pdus = (Object[]) bundle.get(\"String_Node_Str\");\n ...
"private void _getTasks(State mode, Refinement refinement, Time modePeriod) throws IllegalActionException {\n List<TDLTask> tasks = (List<TDLTask>) refinement.entityList();\n for (TDLTask taskActor : tasks) {\n LetTask task = _analyzeSlotSelection(taskActor, modePeriod);\n List<ModalPort> sensors = ...
"public static UserDetails getUserDetails(HttpServletRequest httpRequest) {\n ApplicationConfigProvider.performSystemCheck();\n String authHeader = httpRequest.getHeader(\"String_Node_Str\");\n Cookie[] requestCookies = httpRequest.getCookies();\n Map<String, String> grafanaResponseCookies = new HashMap<Str...
"public void onScrollChanged() {\n View anchor = mAnchor.get();\n if (anchor != null && mPopupView != null) {\n WindowManager.LayoutParams p = (WindowManager.LayoutParams) mPopupView.getLayoutParams();\n updateAboveAnchor(findDropDownPosition(anchor, p, mAnchorXoff, mAnchorYoff));\n update(p....
"public void postEditService() {\n Validator validator = ServiceValidators.getServiceValidator();\n if (validator.isValid()) {\n try {\n this.servicesManager.updateService(this.in(\"String_Node_Str\"), this.in(\"String_Node_Str\", safeString()), this.in(\"String_Node_Str\", bigDecimalNumber()), ...
"public static void init() {\n network.registerMessage(PacketAlarm.class, PacketAlarm.class, 1, Side.CLIENT);\n network.registerMessage(PacketSensor.class, PacketSensor.class, 2, Side.CLIENT);\n network.registerMessage(PacketSensorTitle.class, PacketSensorTitle.class, 3, Side.CLIENT);\n network.registerMess...
"private WriteResult execute(DBObject condition) {\n List ids = null;\n if (dao.hasUserListener) {\n ids = dao.getCollection().distinct(Operator.ID, condition);\n }\n WriteResult wr = dao.getCollection().update(condition, modifier, false, true);\n if (!dao.getListenerList().isEmpty() && ids != nul...
"private void makeDocHits(ResultGroup group) {\n int nFound = hitQueue.size();\n DocHitImpl[] hitArray = new DocHitImpl[nFound];\n float maxDocScore = 0.0f;\n for (int i = 0; i < nFound; i++) {\n int index = nFound - i - 1;\n hitArray[index] = (DocHitImpl) hitQueue.pop();\n }\n int nHits...
"public void onResume() {\n super.onResume();\n if (mAccountStore.hasAccessToken() && NetworkUtils.isNetworkAvailable(getActivity())) {\n mDispatcher.dispatch(AccountActionBuilder.newFetchSettingsAction());\n }\n}\n"
"private void launchContactsFragment() {\n baseActivity.setCurrentFragment(SearchFragment.newInstance(), true);\n}\n"
"private void addControlListener(Control control) {\n if (DEBUG) {\n log.info(\"String_Node_Str\");\n }\n if (controlListener != null) {\n return;\n }\n controlListener = new ProposalListener();\n Listener[] listeners = control.getListeners(SWT.KeyDown);\n for (Listener lis : listener...
"public void handleReceived(ClientConnection connection) {\n TridentPlayer player = ((PlayerConnection) connection).getPlayer();\n World world = player.getWorld();\n StatusType type = StatusType.getStatus((int) this.actionId);\n switch(type) {\n case RESPAWN:\n PacketPlayOutPlayerRespawn r...
"public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) {\n if (Proxies.common.isSimulating(world)) {\n if (contained == null || itemstack.stackSize == 0)\n return itemstack;\n itemstack.stackSize--;\n EntityItem entity = new EntityItem(world, e...
"public void onFailure(Throwable t) {\n result.setException(t);\n}\n"
"public TaskCancelResult cancelTask() throws InterruptedException {\n while (true) {\n final ExecutionState previousState = this.executionState.get();\n if (previousState == ExecutionState.CANCELED) {\n return new TaskCancelResult(getID(), AbstractTaskResult.ReturnCode.SUCCESS);\n }\n...
"public void run() {\n float indicesInView = mDeltaX / mScaleX;\n float valsInView = mDeltaY / mScaleY;\n float[] pts = new float[] { xIndex - indicesInView / 2f, yVal + valsInView / 2f };\n Matrix save = new Matrix();\n save.set(mMatrixTouch);\n transformPointArray(pts);\n final float x = -pts[0] ...
"public void createControl(Composite parent) {\n if (getViewer() == null) {\n return;\n }\n tree = new Tree(parent, SWT.NONE);\n treeCommon.setTree(tree);\n treeCommon.setExpressionViewer(targetViewer);\n treeCommon.createDefaultExpressionTree();\n treeCommon.addMouseTrackListener();\n tr...
"public com.cloudant.client.api.model.Response update(Object object, int writeQuorum) {\n Response couchDbResponse = client.put(getDBUri(), object, false, writeQuorum, client.getGson());\n com.cloudant.client.api.model.Response response = new com.cloudant.client.api.model.Response(couchDbResponse);\n return re...
"private void paintFullCurve(Graphics g, MeasureCollection m, int mSelect, int pf, Color color) {\n if (m.getNumberOfValues(mSelect) == 0) {\n return;\n }\n int height = getHeight();\n int n = m.getNumberOfValues(mSelect);\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0; i <...
"public void loadAll_NullValue() throws Exception {\n CacheLoader<Integer, Integer> loader = new MockCacheLoader<Integer, Integer>() {\n public Map<Integer, Integer> loadAll(Iterable<? extends Integer> keys) {\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (Integer ...
"public void run() {\n try {\n Thread.sleep(15000);\n } catch (InterruptedException ignore) {\n }\n Thread thread = new Thread(healthStatReceiver);\n thread.start();\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\");\n }\n while (!terminated) {\n try {\n ...
"public void endElement(String uri, String localName, String name) throws SAXException {\n Assertion.mustNotBeNull(config, \"String_Node_Str\");\n Assertion.mustNotBeEmpty(name, \"String_Node_Str\");\n if (name.equals(\"String_Node_Str\")) {\n config.extInstantiations.add(currentInstantiation);\n ...
"void validateAndCorrectRunningRunRecords(ProgramType programType, Set<String> processedInvalidRunRecordIds) {\n final Map<RunId, RuntimeInfo> runIdToRuntimeInfo = runtimeService.list(programType);\n List<RunRecordMeta> invalidRunRecords = store.getRuns(ProgramRunStatus.RUNNING, new Predicate<RunRecordMeta>() {\n...
"private void createNatTable() {\n try {\n sampleTable.createNatTable(null, dataTableComp, analysisHandler.getSelectedColumns());\n } catch (SQLException e) {\n MessageDialog.openWarning(null, DefaultMessagesImpl.getString(\"String_Node_Str\"), e.getMessage());\n }\n}\n"
"public void buildEnvVars(AbstractBuild<?, ?> build, Map<String, String> env) {\n super.buildEnvVars(build, env);\n Logger.debug(\"String_Node_Str\");\n env.put(\"String_Node_Str\", IntegrityCheckpointAction.evalGroovyExpression(env, configPath));\n env.put(\"String_Node_Str\", hostName);\n env.put(\"Str...
"public char charAt(int index) {\n return (char) (buffer[index] & 0xff);\n}\n"
"public double angleAt(int pointIndex) {\n VectorXZ vecToNext = getPoint(pointIndex).xz().subtract(getPoint((pointIndex + 2) % 3).xz());\n VectorXZ vecToPrev = getPoint((pointIndex + 1) % 3).xz().subtract(getPoint(pointIndex).xz()).invert();\n return VectorXZ.angleBetween(vecToNext, vecToPrev);\n}\n"
"private void initInputReader() throws RuntimeException {\n RecordDeserializer<KeyValuePair<Key, Value>> deserializerPartition = new KeyValuePairDeserializer<Key, Value>(stub.getOutKeyType(), (Class<Value>) ((Class<? extends Value>) PactNull.class));\n RecordDeserializer<KeyValuePair<Key, Value>> deserializerRead...
"public static Object deserializeValue(ByteBuffer value, DataMessageType valueType, KryoMemorySerializer serializer) {\n switch(valueType) {\n case INTEGER:\n return deserializeInteger(value);\n case DOUBLE:\n return deserializeDouble(value);\n case SHORT:\n retu...
"public boolean mustBeProtect(final String s) {\n if (s == null)\n return false;\n int len = s.length();\n if (len == 0)\n return true;\n if (s.trim() != s)\n return true;\n char ch = s.charAt(0);\n if (isSpecial(ch) || isUnicode(ch))\n return true;\n for (int i = 1; i <...
"public void contactListInitCompleted(MsnMessenger messenger) {\n if (logger.isTraceEnabled())\n logger.trace(\"String_Node_Str\");\n isInitialized = true;\n if (logger.isDebugEnabled())\n printList();\n MsnContactList contactList = messenger.getContactList();\n MsnGroup[] groups = contactL...
"void setPropertyValue(String propertyName, SimpleValueInfo type, Object o) {\n try {\n Value value;\n if (o != null) {\n ValueFactory valueFactory = session.getJCRSession().getValueFactory();\n SimpleType st = type != null ? type.getSimpleType() : null;\n value = Value...
"private void updateEntry(SessionContext context, String wcPath, VcsFile oldFile, VcsFile newFile, String parentTokenId, boolean rootDir) throws IOException, SVNException {\n if (oldFile != null)\n if (newFile == null || !oldFile.getKind().equals(newFile.getKind()))\n removeEntry(context, wcPath, o...
"public static int[] testCraftItems(EntityPlayerMP player, int n, CraftingRecipe craftingRecipe, IItemSource itemSource) {\n IRecipe recipe = craftingRecipe.getCachedRecipe(player.worldObj);\n if (recipe == null) {\n return null;\n }\n if (craftingRecipe.getResult() != null && craftingRecipe.getResul...
"private List<Point3d> calcRepeatUnitCenters() {\n Set<Integer> uniqueModels = new HashSet<Integer>(subunits.getModelNumbers());\n int modelCount = uniqueModels.size();\n List<Integer> folds = this.subunits.getFolds();\n int maxFold = folds.get(folds.size() - 1);\n List<Point3d> repeatCenters = new Array...
"protected void onItemDrop(RecyclerView recyclerView, int position) {\n Logs.d(\"String_Node_Str\");\n ultimateRecyclerView.enableDefaultSwipeRefresh(true);\n}\n"
"public void resetObjectClass(int classID) {\n for (Octant o : leaves) {\n ParamAVLTree<ModelImpl> tree = o.getTree(classID);\n for (cleanObjectsIterator.setNode(tree); cleanObjectsIterator.hasNext(); ) {\n ModelImpl obj = cleanObjectsIterator.next();\n obj.resetOctant();\n ...
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n switch(action) {\n case UsbEventReceiverActivity.ACTION_USB_PERMISSION:\n {\n android.hardware.usb.UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);\n ...
"public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.isCancelled() || event.getAction() != Action.RIGHT_CLICK_BLOCK)\n return;\n Block block = event.getClickedBlock();\n if (block.getType() != Material.WALL_SIGN && block.getType() != Material.SIGN_POST && block.getType() != Material.CH...
"public final OperatorContext operator() throws RecognitionException {\n OperatorContext _localctx = new OperatorContext(_ctx, getState());\n enterRule(_localctx, 16, RULE_operator);\n int _la;\n try {\n setState(204);\n switch(_input.LA(1)) {\n case 18:\n case 42:\n ...
"public Result signUp() throws Exception {\n UserSession session = getSession();\n return ok(Boolean.toString(session.isConsent()));\n}\n"
"private static void checkNumberOfSuperColumns(Keyspace keyspace, String expectedColumnFamilyName, RowModel expectedRowModel, int size) throws Error {\n int countNumberOfSuperColumnsByKey = countNumberOfColumnsByKey(keyspace, expectedColumnFamilyName, expectedRowModel);\n if (countNumberOfSuperColumnsByKey != siz...
"public boolean authenticate(String username, String password, Long domainId, Map<String, Object[]> requestParameters) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + username);\n }\n UserAccount user = _userAccountDao.getUserAccount(username, domainId);\n if (user == null...
"public void onFade(BlockFadeEvent e) {\n Block b = e.getBlock();\n Location location = BukkitUtil.getLocation(b.getLocation());\n PlotArea area = location.getPlotArea();\n if (area == null) {\n return;\n }\n Plot plot = area.getOwnedPlot(location);\n if (plot == null) {\n event.setCa...
"public boolean checkRequirements(TileAbstractBuilder builder, Schematic slot) {\n LinkedList<ItemStack> tmpReq = new LinkedList<ItemStack>();\n try {\n LinkedList<ItemStack> req = new LinkedList<ItemStack>();\n slot.getRequirementsForPlacement(context, req);\n for (ItemStack stk : req) {\n ...
"public void onPageSelected(int pos) {\n mCalc.getCurrUnitType().clearUnitSelection();\n updateScreen(false);\n mCalc.setUnitTypePos(pos);\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n int padLeft = (int) (metrics.density * 8f + 0.5f);\n int padRight = (int) (metrics.density * 8f + ...
"public final boolean setBuilding(ShortPoint2D position, Building newBuilding) {\n if (MainGrid.this.isInBounds(position.x, position.y)) {\n FreeMapArea protectedArea = new FreeMapArea(position, newBuilding.getBuildingType().getProtectedTiles());\n if (canConstructAt(protectedArea)) {\n setP...
"public boolean createComment(String text) {\n try {\n ServiceManager.getInstance().createComment(issue.getId(), text);\n restartContentUpdate();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n}\n"
"private String printLabeledOuterFromClauseFor(String sql, int counter, Map<String, String> columnNameAliasMapCopy) {\n Map<String, PropertyType> propertyTypeMap = this.getFilteredAllTables().get(this.getSchemaTable().toString());\n int count = 1;\n for (Map.Entry<String, PropertyType> property : propertyTypeM...
"public void onPlayerJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n String name = player.getDisplayName();\n if (plugin.userManager.userExists(name)) {\n plugin.userManager.loadUser(player);\n } else {\n if (registerOnJoin) {\n plugin.userManager.registerUser(p...
"public <T> Invoker<T> refer(final Class<T> type, final URL url) throws RpcException {\n try {\n GenericObjectPoolConfig config = new GenericObjectPoolConfig();\n config.setTestOnBorrow(url.getParameter(\"String_Node_Str\", true));\n config.setTestOnReturn(url.getParameter(\"String_Node_Str\", f...
"protected ByteCodec<M> createCodec(CodecSupplier registry, FieldWrapper field) {\n FieldWrapper keyType = field.genericTypeOrThrow(0);\n ByteCodec keyCodec = registry.getCodecOrThrow(keyType).toByteCodec();\n FieldWrapper valueType = field.genericTypeOrThrow(1);\n ByteCodec valueCodec = registry.getCodecOr...
"public void copyTo(PactRecord target) {\n updateBinaryRepresenation();\n if (target.binaryData == null || target.binaryData.length < this.binaryLen) {\n target.binaryData = new byte[this.binaryLen];\n }\n if (target.offsets == null || target.offsets.length < this.numFields) {\n target.offsets...
"public List<Issue> getIssues(String projectKey, String queryId) throws IOException, AuthenticationException {\n URL url = buildGetIssuesByQueryURL(projectKey, queryId);\n WebConnector c = new WebConnector();\n List<Issue> allTasks = new ArrayList<Issue>();\n int offsetIssuesNum = 0;\n int totalIssuesFou...
"public void test() throws Exception {\n String[][] EJBQLTestString = { { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\", ...
"protected void onSuccess(final CacheManager.ReadableCacheFile cacheFile, long timestamp, UUID session, boolean fromCache, String mimetype) {\n final Bitmap image;\n try {\n image = BitmapFactory.decodeStream(cacheFile.getInputStream());\n } catch (IOException e) {\n BugReportActivity.handleGloba...
"final void killServicesLocked(ProcessRecord app, boolean allowRestart) {\n if (false) {\n if (app.services.size() > 0) {\n Iterator<ServiceRecord> it = app.services.iterator();\n while (it.hasNext()) {\n ServiceRecord r = it.next();\n for (int conni = r.con...
"public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent convertQuestionnaireResponseItemAnswerComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n ...
"public static void handleOnPageBreak(IAutoTextContent content, ExecutionContext context) {\n Object generateBy = content.getGenerateBy();\n if (generateBy == null) {\n return;\n }\n ReportItemDesign autoTextDesign = (ReportItemDesign) generateBy;\n try {\n if (!needOnPageBreak(autoTextDesi...
"public static Date getDate(Object object) throws OseeCoreException {\n if (Artifacts.isOfType(object, AtsArtifactTypes.Action)) {\n getDate(ActionManager.getFirstTeam(object));\n } else if (object instanceof AbstractWorkflowArtifact) {\n AbstractWorkflowArtifact awa = (AbstractWorkflowArtifact) obj...
"public Symbol<?> findSymbol(String name, SymbolType scope, SymbolType[] args, ReferenceType... referenceType) {\n Symbol<?> result = null;\n if (args == null) {\n return findSymbol(name, referenceType);\n } else {\n List<Symbol<?>> values = symbols.get(name);\n if (values != null) {\n ...
"protected Object getAccumulatedResult(final String key) {\n return accumulatedResults.get(key) == null ? null : accumulatedResults.get(key).getResult();\n}\n"
"public void handleQuery(ServerContext context, QueryRequest request, QueryResultHandler handler) {\n try {\n String objectClass = getObjectClass(context);\n RequestHandler delegate = objectClassHandlers.get(objectClass);\n if (null != delegate) {\n delegate.handleQuery(context, reque...
"public int getStartRowIndex() {\n int idx1 = rows.firstKey();\n NDataGrid dg = getDataGrid();\n if (dg == null || !dg.isSupportedDataStartEndIndex()) {\n return idx1;\n } else {\n int idx2 = dg.getStartRowIndex();\n if (idx1 < 0)\n return idx2;\n if (idx2 < 0)\n ...
"public void triggerJob(JobKey jobKey, JobDataMap data) throws SchedulerException {\n invoke(\"String_Node_Str\", new Object[] { jobKey, data }, new String[] { JobKey.class.getName(), JobDataMap.class.getName() });\n}\n"
"protected void doCheckOption() {\n Boolean isSqlSelected = TaggedValueHelper.getValueBoolean(TaggedValueHelper.IS_SQL_ENGIN_BEFORE_CHECK, getCurrentModelElement());\n if (isRunWithSampleData) {\n if (currentModelIsSqlEngine()) {\n changeExecuteLanguageToJava(false);\n if (!isSqlSelec...
"private static void printSimonTree(int level, Simon simon) {\n printSimon(level, simon);\n for (Simon child : simon.getChildren()) {\n printSimonTree(level + 1, child, sb);\n }\n}\n"
"public void testCopyFromFileStrictTable() throws Exception {\n execute(\"String_Node_Str\");\n ensureYellow();\n execute(\"String_Node_Str\", new Object[] { copyFilePath + \"String_Node_Str\" });\n assertThat(response.rowCount(), is(0L));\n}\n"
"protected void okPressed() {\n outBuffer.append(instanceNameText.getText().trim());\n if (Util.IsEnterPrise()) {\n List<Line> inputs = (List<Line>) complexTableViewer.getViewer().getInput();\n List<RoleEntry> list = roleEntries.get();\n RoleEntry entry = new RoleEntry(inputs, instanceNameTex...
"public void updateContent() throws InternalErrorException {\n super.updateContent();\n try {\n if (getDecorator() != null) {\n requestPort.removeAllChoices();\n List cqmInputPorts = ((CompositeResourceScheduler) getDecorator()).entityList(ResourceMappingInputPort.class);\n ...
"private void loadState() throws OplogManagerPersistException {\n Status<? extends Object> result = retrier.retry(() -> {\n try (ReadOnlyMongodTransaction transaction = connection.openReadOnlyTransaction()) {\n Status<FindResult> status = transaction.execute(new Request(OPLOG_DB, null, true, null),...
"public int compare(ItemRecord o1, ItemRecord o2) {\n if (o1.getProperty().getItem() instanceof RoutineItem && o2.getProperty().getItem() instanceof RoutineItem) {\n return 0;\n } else if (!(o1.getProperty().getItem() instanceof RoutineItem) && !(o2.getProperty().getItem() instanceof RoutineItem)) {\n ...