content
stringlengths
40
137k
"public void explore(Artifact artifact) throws OseeCoreException {\n if (artifact == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n setPartName(\"String_Node_Str\" + artifact.getBranchToken().getShortName());\n if (branch != null && artifact.getBranch().equals(branch)) {\n ...
"public void unsubscribe(int sectionNum, ActivateEventListener listener) {\n if (sectionNum >= 0 && sectionNum < sections.size()) {\n sections.get(sectionNum).removeListener(listener);\n }\n}\n"
"private void CalculateBoundsForFeatureSet() throws IOException {\n FeatureType featype = this.getDatasetFeatureType();\n if (featype != null) {\n this.stationDateRange = new HashMap<Integer, CalendarDateRange>();\n this.stationBBox = new HashMap<Integer, LatLonRect>();\n CalendarDate start =...
"int getLevel(int n){\n\tif (n == null)\n\t\treturn 0;\n\tn = Math.max(n, 0.0);\n\tswitch(n){\n\t\tcase this.Data.r1:\n\t\t\tn ++;\n\t\tcase this.Data.r2:\n\t\t\tn = Math.pow(n, -0.5 * n);\n\t\tcase this.Data.r3:\n\t\t\tthis.list.append(Math.pow(n, -0.5 * dim));\n\t\t\tbreak;\n\t\tcase this.Data.r4:\n\t\t\tn --;\n\t\td...
"public static PythonPackageComponents getAllComponents(BuildRuleParams params, BuildRuleResolver ruleResolver, SourcePathResolver pathResolver, final PythonPackageComponents packageComponents, final PythonPlatform pythonPlatform, final CxxPlatform cxxPlatform, ImmutableList<? extends Arg> extraLdflags, final NativeLin...
"public static File resolveResourceFile(MavenProject project, String resourceFile) {\n File[] resoucesFolders = getFiles(project.getBasedir().getAbsolutePath(), project.getBuild().getResources(), Collections.EMPTY_LIST);\n for (File resourceFolder : resoucesFolders) {\n File resource = new File(resourceFol...
"public void createControl(Composite parent) {\n Composite client = new Composite(parent, SWT.NONE);\n client.setLayoutData(new GridData(GridData.FILL_BOTH));\n GridLayout layout = new GridLayout(3, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n client.setLayout(layout);\n Label lab...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_sync_interval_selector, container, false);\n String[] items = getResources().getStringArray(R.array.array_sync_interval);\n lvItems = (ListView) rootView.fin...
"private void placeComponents() {\n GridLayout glContent = new GridLayout(4, false);\n glContent.marginHeight = 2;\n glContent.marginWidth = 2;\n this.setLayout(glContent);\n grpAccLine = new Group(this, SWT.NONE);\n GridData gdGRPAccLine = new GridData(GridData.FILL_BOTH);\n gdGRPAccLine.horizonta...
"public void start(IReportContent report) {\n setupRenderOptions();\n ReportDesignHandle designHandle = report.getDesign().getReportDesign();\n parseReportOrientation(designHandle);\n parseReportLayout(designHandle);\n parseSheetName(designHandle);\n parsePageSize(report);\n IStyle style = report.g...
"public void testPojoToJsonPrettyPrint() {\n String json = String.format(\"String_Node_Str\");\n PojoToJsonMessageConverter messageConverter = new PojoToJsonMessageConverter();\n messageConverter.setPrettyPrint(true);\n Message<?> msg = (Message<?>) messageConverter.fromMessage(new GenericMessage<Foo>(new F...
"public IRecordInternal getRecord(int row) {\n return new PrintState(this, new Row(rowManager, data.getRow(row), sheet.getAllUnstoredCalculationNamesWithNoValue(), false) {\n protected void handleCalculationDependencies(Column column, String dataProviderID) {\n }\n });\n}\n"
"private int getMinutesToWaitForRequery(int numCalls) {\n switch(numCalls) {\n case 1:\n return 2;\n case 1:\n return 15;\n case 3:\n return 60;\n case 4:\n return 120;\n default:\n return 180;\n }\n}\n"
"public Double evaluate() {\n switch(values.setDocument(docId)) {\n case 0:\n return null;\n case 1:\n return values.nextValue();\n default:\n throw new GroupByOnArrayUnsupportedException(columnName());\n }\n return values.nextValue();\n}\n"
"public synchronized void initiate() throws ValueOutOfRangeException, InsufficientMoneyException {\n final NetworkParameters params = wallet.getParams();\n Transaction template = new Transaction(params);\n List<ECKey> keys = Lists.newArrayList(myKey, serverMultisigKey);\n TransactionOutput multisigOutput = ...
"public void onReceive(Context context, Intent intent) {\n synchronized (mLock) {\n populateAccessibilityServiceListLocked();\n manageServicesLocked();\n if (intent.getAction() == Intent.ACTION_BOOT_COMPLETED) {\n mIsEnabled = Settings.Secure.getInt(mContext.getContentResolver(), Sett...
"public void onAmountCheck(CurrencyAmountEvent event) {\n if (!event.getAmount().equals(BigDecimal.ZERO)) {\n return;\n }\n double balance = provider.getBalance(NameManager.getUsername(event.getAccount()), event.getWorld().getName());\n if (balance > Double.MAX_VALUE) {\n balance = Double.MAX_...
"public boolean exists() {\n if (info != null) {\n return true;\n }\n info = topFS.stat(fullPath);\n if (info == null) {\n return false;\n }\n return true;\n}\n"
"public void read(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException {\n TTupleProtocol iprot = (TTupleProtocol) prot;\n BitSet incoming = iprot.readBitSet(13);\n if (incoming.get(0)) {\n struct.id = iprot.readI64();\n struct.setIdIsSet(true);\n }\n ...
"private String property(String property) {\n return String.format(property, providerName);\n}\n"
"public void writeExpression(MethodWriter writer) {\n int i = this.instance.getValueType();\n if (i == FIELD_ACCESS) {\n FieldAccess access = (FieldAccess) this.instance;\n IField f = access.field;\n if (this.writeIINC(writer, f)) {\n return;\n }\n IValue instance = a...
"protected EObject createProxy(EClass eClass, String key) {\n if (resource.getPrimaryCache().hasKey(key)) {\n return resource.getPrimaryCache().getObjectByKey(key);\n } else {\n EObject object = EcoreUtil.create(eClass);\n setIdValue(object, key, ETripleEcoreUtil.getId(eClass));\n fina...
"final private JsonArray JsonArray() throws ParseException {\n JsonArray array = new JsonArray();\n jj_consume_token(20);\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case DIGITS:\n case QUOTE:\n case 15:\n case 19:\n case 21:\n case 22:\n case 23:\n ...
"private void handleDiggerRequest() {\n DiggerRequest request = diggerRequests.peek();\n if (request == null) {\n return;\n }\n if (request.requester.isDiggerRequestActive()) {\n IManageableDigger digger = joblessDiggers.removeObjectNextTo(request.getPos());\n if (digger != null) {\n ...
"public CharSequence getIterableTextForAccessibility() {\n if (!(mText instanceof Spannable)) {\n setText(mText, BufferType.SPANNABLE);\n }\n return super.getIterableTextForAccessibility();\n}\n"
"public void testCanopyEuclideanSeqJob() throws Exception {\n Path input = getTestTempDirPath(\"String_Node_Str\");\n Configuration conf = new Configuration();\n FileSystem fs = FileSystem.get(input.toUri(), conf);\n Collection<VectorWritable> points = new ArrayList<VectorWritable>();\n for (Vector v : r...
"public int lastIndexOf__II__I(MJIEnv env, int objref, int c, int fromIndex, FeatureExpr ctx) {\n int vref = env.getReferenceField(ctx, objref, \"String_Node_Str\").getValue();\n ElementInfo ei = env.getElementInfo(vref);\n char[] values = ((CharArrayFields) ei.getFields()).asCharArray().getValue();\n int l...
"private void setBookChapter(String osis) {\n book = osis.split(\"String_Node_Str\")[0];\n chapter = osis.split(\"String_Node_Str\")[1];\n Log.d(TAG, \"String_Node_Str\" + osis);\n setItemText(this.index);\n ((TextView) findViewById(R.id.version)).setText(bible.getVersionName(bible.getVersion()));\n (...
"public void run() {\n int level = levels - 1;\n int tilesize = tilesizeField.getValue();\n double lzts = lztsField.getValue();\n File outDir = new File(outputDirectory.getText());\n NumberArray outsideValues = null;\n NumberArray minReplace = null;\n NumberArray maxReplace = null;\n NullableNum...
"public void initialize() throws UnableToInitialize, NfcUnavailable, NfcDisabled, ApduExtLengthNotSupported {\n String errorMsg = SERVICE_RESPONSE_FAILED;\n if (initialized) {\n throw new UnableToInitialize(SERVICE_ALREADY_INITIALIZED);\n }\n Runnable delegatingRunnable = new Runnable() {\n pu...
"public void testK3UseCase() throws IOException {\n final Resource left = input.getK3Left();\n final Resource origin = input.getK3Origin();\n final Resource right = input.getK3Right();\n final IComparisonScope scope = new DefaultComparisonScope(left, right, origin);\n final Comparison comparison = EMFCom...
"protected static int launch(MsOfficeType type, String path, String url, boolean modeDisconnected, AuthenticationInfo auth) throws IOException, InterruptedException {\n logger.log(Level.INFO, \"String_Node_Str\", path);\n logger.log(Level.INFO, \"String_Node_Str\", url);\n logger.log(Level.INFO, \"String_Node_...
"public void run() {\n logger.info(\"String_Node_Str\");\n while (!stop) {\n try {\n selector.select();\n Set<SelectionKey> selectionKeys = selector.selectedKeys();\n for (SelectionKey selectionKey : selectionKeys) {\n hasTodo |= doDispatchSelectionKey(select...
"private static Intent preparePictureLibraryIntent(String title, boolean multiSelect) {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"String_Node_Str\");\n if (multiSelect) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n intent.putExtra(I...
"public LinkedList<Usr> getActiveUsers() {\n LinkedList<Usr> activeUsers = new LinkedList<Usr>();\n for (Usr u : getAllUsers()) {\n if (u.isActive()) {\n activeUsers.add(u);\n }\n }\n return activeUsers;\n}\n"
"public boolean newDLStartAllowed() {\n if (this.paused) {\n return false;\n }\n if (Reconnecter.getInstance().isReconnectInProgress()) {\n return false;\n }\n if (this.aborting || this.aborted) {\n return false;\n }\n if (Reconnecter.getInstance().isAutoReconnectEnabled() && S...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n try {\n if (isStartElementOpen) {\n writer.write('>');\n }\n if (!isLastEventText) {\n writer.write(Helper.cr());\n for (int x = 0; x < numberO...
"private void showDialogAfterDelay(FragmentManager fm, String tag) {\n startedShowing = true;\n FragmentTransaction ft = fm.beginTransaction();\n ft.add(this, tag);\n ft.commitAllowingStateLoss();\n}\n"
"public static INode getFirstPartionerTargetNode(IConnection con) {\n INode targetNode = null;\n if (con.getTarget() != null) {\n String partitioning = con.getTarget().getComponent().getPartitioning();\n if (!(partitioning.equals(\"String_Node_Str\"))) {\n targetNode = con.getTarget();\n ...
"private ColumnHintHandle findColumnHint(DataSetHandle handle, String columnName) {\n if (columnName == null || columnName.trim().length() == 0)\n return null;\n ColumnHintHandle hint = null;\n Iterator iter = handle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP).iterator();\n while (iter.hasNext...
"public void setShortDescription(String s) throws SQLException {\n BitstreamFormat unknown = null;\n ;\n try {\n unknown = findUnknown(bfContext);\n } catch (IllegalStateException e) {\n }\n if (unknown == null || unknown.getID() != getID()) {\n bfRow.setColumn(\"String_Node_Str\", s);\n...
"public boolean onSingleTapConfirmed(MotionEvent e) {\n if (!canHandleEvent())\n return false;\n select(mCurrentSelection, false);\n int index = computeSelectedIndex(e.getX(), e.getY());\n if (index >= 0 && index < mCount) {\n mListener.onImageTapped(index);\n return true;\n }\n r...
"private void addInitializingValue(SootClass clas, SootField f, Constant con) {\n if (con instanceof NullConstant) {\n return;\n } else if (con instanceof IntConstant) {\n if (((IntConstant) con).value == 0)\n return;\n } else if (con instanceof LongConstant) {\n if (((LongConst...
"public void testDropAllInNamespace() throws Exception {\n StreamAdmin streamAdmin = getStreamAdmin();\n Id.Stream otherStream = Id.Stream.from(OTHER_NAMESPACE, \"String_Node_Str\");\n List<Id.Stream> fooStreams = Lists.newArrayList();\n for (int i = 0; i < 4; i++) {\n fooStreams.add(Id.Stream.from(f...
"protected void aStarMovementAI(int x, int y, int px, int py, double xa, double ya, double speed, Mob mob, List<Node> path, int time) {\n xa = 0;\n ya = 0;\n Vector2i start = new Vector2i(x >> 3, y >> 3);\n Vector2i goal = new Vector2i(px >> 3, py >> 3);\n path = level.findPath(start, goal);\n if (pat...
"public Table executeAndFetchTable() {\n ResultSet rs;\n long start = System.currentTimeMillis();\n try {\n rs = statement.executeQuery();\n long afterExecute = System.currentTimeMillis();\n Table table = TableFactory.createTable(rs, this.isCaseSensitive(), this.connection.getSql2o().quirk...
"private void updateCompletedNotification(List<DownloadInfo> downloads) {\n for (DownloadInfo download : downloads) {\n if (!isCompleteAndVisible(download)) {\n continue;\n }\n Notification n = new Notification();\n n.icon = android.R.drawable.stat_sys_download_done;\n l...
"public void testDeterminant() {\n BigMatrix m = new BigMatrixImpl(bigSingular);\n assertEquals(\"String_Node_Str\", 0, m.getDeterminant().doubleValue(), 0);\n m = new BigMatrixImpl(detData);\n assertEquals(\"String_Node_Str\", -3d, m.getDeterminant().doubleValue(), normTolerance);\n m = new BigMatrixImp...
"public static RedefinableElement redefineAttribute(final Classifier clazz, final RedefinableElement re, final boolean createSpecializedType, final List<RedefinableElement> traveled) {\n if (re.isLeaf()) {\n Application.getInstance().getGUILog().log(re.getQualifiedName() + \"String_Node_Str\");\n }\n if...
"public Object createPrimaryKeyInstance(Object key, AbstractSession session) {\n KeyElementAccessor[] pkElementArray = this.getKeyClassFields(getPKClass());\n ObjectBuilder builder = getDescriptor().getObjectBuilder();\n if (pkElementArray.length == 1 && pkElementArray[0] instanceof KeyIsElementAccessor) {\n ...
"public void componentHidden(ComponentEvent e) {\n if (cbSortBy.getSelectedItem() instanceof SortBy) {\n this.currentView.drawCards(sortSetting);\n }\n}\n"
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Object collection = unmarshalRecord.getContainerInstance(this);\n startElementProcessText(unmarshalRecord, collection);\n XMLContext xmlContext = unmarshalRecord.getUnmarshalle...
"public void mouseUp(MouseEvent arg0) {\n if (disabled == false) {\n invoke(onclick);\n }\n}\n"
"protected SolutionMetaData showSolutionSelection(SolutionMetaData[] solutions) {\n if (selectSolutionDialog == null) {\n selectSolutionDialog = new SelectSolutionDialog(this);\n }\n showSolutionLoading(true);\n SolutionMetaData tmp = null;\n try {\n tmp = selectSolutionDialog.showDialog(so...
"public boolean checkTrigger(GameEvent event, Game game) {\n if (game.getPlayer(getControllerId()).hasOpponent(event.getPlayerId(), game)) {\n Permanent permanent = (Permanent) game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD);\n if (permanent != null && !(permanent instanceof Permane...
"public Ambiguous[] getAmbiguousSequence(SentenceData sentence) {\n Ambiguous[] awords = new Ambiguous[sentence.size() + 3];\n awords[0] = startWord;\n awords[1] = startWord;\n int i = 2;\n for (WordData word : sentence.allWordAnalyses) {\n int[] roots = new int[word.allAnalyses.size()];\n ...
"protected Object getValueFromSubject() {\n ReadConnectionPoolAdapter pool = (ReadConnectionPoolAdapter) subject;\n return pool.isExclusive();\n}\n"
"public float getExactHumidity() {\n return getBiome().getRainfall() + humidChange;\n}\n"
"public StringBuilder visitType(TypeElement t, Void _) {\n ClassTree ct = trees.getTree(t);\n if (ct == null)\n return null;\n switch(t.getNestingKind()) {\n case ANONYMOUS:\n String binaryName = elements.getBinaryName(t).toString();\n int idx = binaryName.lastIndexOf('$');\...
"protected IBaseResultSet doExecuteCube(IBaseResultSet parentResultSet, ICubeQueryDefinition query, Object queryOwner, boolean useCache) throws BirtException {\n if (useCache) {\n Object obj = cachedQueryToResults.get(query);\n String rsetId = obj == null ? null : String.valueOf(obj);\n query.se...
"public void removeWorkflowModel(WorkflowModelKey pKey) throws WorkflowModelNotFoundException {\n WorkflowModel model = loadWorkflowModel(pKey);\n removeAllActivityModels(pKey);\n em.remove(model);\n}\n"
"public String getQuery() {\n String fromQuery = whereBase.getQuery();\n QueryBuilder queryBuilder = new QueryBuilder().append(fromQuery).appendQualifier(\"String_Node_Str\", conditionGroup.getQuery()).appendQualifier(\"String_Node_Str\", QueryBuilder.join(\"String_Node_Str\", groupByList)).appendQualifier(\"Stri...
"protected void drawDataSet(Canvas c, IPieDataSet dataSet) {\n float angle = 0;\n float rotationAngle = mChart.getRotationAngle();\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n final RectF circleBox = mChart.getCircleBox();\n final int entryCount = dataSet.getEntryC...
"private static String computeName(JMethod method) {\n return method.getJsniSignature(true, true);\n}\n"
"public T previous() {\n if (!hasPrevious())\n throw new NoSuchElementException();\n if (lastDirection.contains(Direction.previous))\n zipper = zipper.previous();\n lastDirection = some(Direction.previous);\n return zipper.value();\n}\n"
"protected void okPressed() {\n try {\n if (!isEdit) {\n TabularMeasureHandle measure;\n if (input == null) {\n measure = DesignElementFactory.getInstance().newTabularMeasure(nameText.getText());\n else {\n measure = input;\n input....
"public void loadOrCreateIndex(ProgressListener listener) {\n ControlInfo ci = new ControlInformation();\n String indexName = hdtFileName + HDTVersion.get_index_suffix(\"String_Node_Str\");\n indexName = indexName.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n String versionName = indexName;\n F...
"public double toLogProb(double nonReal) {\n return FastMath.log(toReal(nonReal));\n}\n"
"public void serverCutText(String str, int len) {\n setContents(str);\n Clipboard cb = null;\n if (!cc.viewer.applet)\n cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n if (cb != null) {\n StringSelection ss = new StringSelection(str);\n try {\n cb.setContents(ss, ss)...
"public SearchFilter getSearchFilter(HttpServletRequest request, List<SortField> sortFields) {\n Validate.notNull(request, \"String_Node_Str\");\n SearchFilter ret = new SearchFilter();\n if (MapUtils.isEmpty(request.getParameterMap())) {\n ret.setParams(new HashMap<String, String>());\n }\n ret.s...
"public EasyJsonObject action(Sender sender, int command, EasyJsonObject requestObject) throws SQLException {\n String title = requestObject.getString(\"String_Node_Str\");\n String content = requestObject.getString(\"String_Node_Str\");\n int status = 1;\n if (requestObject.containsKey(\"String_Node_Str\")...
"public void testAssetsController404() throws Exception {\n AssetsController assetsController = new AssetsController(httpCacheToolkit, mimeTypes, ninjaProperties);\n when(contextRenerable.getRequestPath()).thenReturn(\"String_Node_Str\");\n Result result2 = assetsController.serve(null);\n Renderable rendera...
"private Object convertHistoryRecordToMessageEvent(HistoryRecord hr, Contact contact) {\n MessageImpl msg = new MessageImpl(hr);\n Date timestamp = null;\n if (msg.getMessageReceivedDate() != null) {\n if (msg.getMessageReceivedDate().after(hr.getTimestamp()) && (msg.getMessageReceivedDate().getTime() -...
"public void onCreateSetup(View view, InventoryModel base, Bundle savedInstanceState) {\n final CustomFragmentTabHost host = (CustomFragmentTabHost) view.findViewById(R.id.tabs_tabhost);\n host.setup(getActivity(), getChildFragmentManager(), R.id.tabs_tabcontent);\n addTab(host, \"String_Node_Str\", \"String_N...
"public static void growNearbyRandomly(boolean harvest, World world, double xCoord, double yCoord, double zCoord, EntityPlayer player) {\n int chance = harvest ? 16 : 32;\n for (int x = (int) (xCoord - 5); x <= xCoord + 5; x++) for (int y = (int) (yCoord - 3); y <= yCoord + 3; y++) for (int z = (int) (zCoord - 5)...
"public static void saveAbility(BendingPlayer bPlayer, int slot, String ability) {\n if (bPlayer == null)\n return;\n String uuid = bPlayer.uuid.toString();\n if (MultiAbilityManager.playerAbilities.containsKey(Bukkit.getPlayer(bPlayer.uuid)))\n return;\n HashMap<Integer, String> abilities = b...
"private void handleEntry(String entry, boolean isBeanArchive) throws ClassNotFoundException {\n if (legalClassName(entry)) {\n String className = filenameToClassname(entry);\n try {\n if (isBeanArchive) {\n beanClasses.add(getClassLoader().loadClass(className));\n ...
"public static UserCommentListingURL parse(Uri uri) {\n final String[] pathSegments;\n {\n final List<String> pathSegmentsList = uri.getPathSegments();\n final ArrayList<String> pathSegmentsFiltered = new ArrayList<>(pathSegmentsList.size());\n for (String segment : pathSegmentsList) {\n ...
"LevelNode selectorToNode(Selector sel, int expectedArity, boolean isFact, boolean isDef, ModuleNode cm) throws AbortException {\n Vector substInPrefix = new Vector();\n Vector params = new Vector();\n Vector allArgs = new Vector();\n UniqueString curName = null;\n UniqueString newName = null;\n Seman...
"public static com.vividsolutions.jts.geom.Point getPoint(WayPointType startPoint, CoordinateReferenceSystem targetCRS) {\n PositionType ptype = (PositionType) startPoint.getLocation().getValue();\n PointType pointType = ptype.getPoint();\n DirectPositionType ctype = pointType.getPos();\n CoordinateReferenc...
"private void disableParallelization(INode node) {\n if (node.getOutgoingConnections().size() > 0) {\n for (IConnection con : node.getOutgoingConnections()) {\n EConnectionType lineStyle = con.getLineStyle();\n if (lineStyle.hasConnectionCategory(IConnectionCategory.DATA)) {\n ...
"public SyncopeUser create(final UserTO userTO, final Set<Long> mandatoryRoles, final Set<String> mandatoryResources) throws WorkflowException, PropagationException {\n SyncopeUser user = userService.create(userTO);\n user.setStatus(\"String_Node_Str\");\n user = userDAO.save(user);\n Set<String> mandatoryR...
"public Choreography enact(String chorId) throws EnactmentException, ChoreographyNotFoundException {\n WebClient client = setupClient();\n client.path(\"String_Node_Str\");\n client.path(chorId);\n client.path(\"String_Node_Str\");\n Choreography chor;\n try {\n chor = client.post(null, Choreog...
"public PrivateKey getPrivateKey(PGPPrivateKey privKey) throws PGPException {\n if (privKey instanceof JcaPGPPrivateKey) {\n return ((JcaPGPPrivateKey) privKey).getPrivateKey();\n }\n PublicKeyPacket pubPk = privKey.getPublicKeyPacket();\n BCPGKey privPk = privKey.getPrivateKeyDataPacket();\n try ...
"protected void onDestroy() {\n super.onDestroy();\n BroadCastManager.unregister(FinestWebViewActivity.this, key);\n if (webLayout != null)\n webLayout.removeAllViews();\n webView.destroy();\n }\n}\n"
"public ConditionBuilder when() {\n return Query.find(FileModel.class).withProperty(FileModel.FILE_NAME, QueryPropertyComparisonType.REGEX, \"String_Node_Str\").withProperty(FileModel.IS_DIRECTORY, false);\n}\n"
"public void onSizeChanged(int w, int h, int oldWidth, int oldHeight) {\n initializeHexagons(w, h, oldWidth, oldHeight);\n}\n"
"private ItemStack[] readInventory(String name) {\n try {\n NBTInputStream in = new NBTInputStream(new FileInputStream(new File(dataDir, name + \"String_Node_Str\")));\n CompoundTag tag = (CompoundTag) in.readTag();\n in.close();\n ListTag inventory = (ListTag) tag.getValue().get(\"String...
"public synchronized void reset() {\n min = Double.POSITIVE_INFINITY;\n}\n"
"public Long getLongValue() {\n if (getType() == null || !\"String_Node_Str\".equals(getType())) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Long res;\n if (values == null && values.isEmpty()) {\n res = null;\n } else {\n res = (Long) values.iterator().next();\...
"public Set iterate() {\n Entries entries = new Entries(ConcurrentMapManager.this, name, CONCURRENT_MAP_ITERATE_KEYS, predicate);\n final Object response = getResultAsObject();\n if (response instanceof Throwable) {\n Util.throwUncheckedException((Throwable) response);\n }\n Pairs pairs = (Pairs) ...
"public void testSetTimeout_timeout() {\n delayTestFinish(TEST_FINISH_DELAY);\n try {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, getTestBaseURL() + \"String_Node_Str\");\n builder.setTimeoutMillis(2000);\n builder.sendRequest(null, new RequestCallback() {\n p...
"public void writeExpression(MethodWriter writer) {\n IClass iclass = this.type.getTheClass();\n if (iclass != null) {\n IField field = iclass.getInstanceField();\n if (field != null) {\n field.writeGet(writer, null);\n }\n }\n}\n"
"public static byte[] execute(final RedisRequest request, RedisFrontConnection frontCon) {\n int numArgs = request.getNumArgs();\n if (numArgs != 2 && numArgs != 3 && numArgs != 4) {\n return \"String_Node_Str\".getBytes();\n }\n byte[] arg1 = request.getArgs()[0];\n String arg2 = new String(reque...
"private static void generateContextInfo(JobInfo jobInfo, String selectedContextName, boolean statistics, boolean trace, boolean needContext, IProgressMonitor progressMonitor, IProcess currentProcess, String currentJobName, IProcessor processor) throws ProcessorException {\n if (isCodeGenerationNeeded(jobInfo, stati...
"private Entry<K, V> getNextElement() {\n for (; ; ) {\n int smallest = 0;\n for (int i = 1; i < nextElements.length; i++) {\n if (nextElements[i] == null)\n continue;\n if (nextElements[smallest] == null || comp.compare(nextElements[i].getKey(), nextElements[smalle...
"boolean isMethodInvocationConvertible(Class formal, Class actual) {\n if (formal.isAssignableFrom(actual)) {\n return true;\n }\n if (actual == Null.class && bugfixed) {\n return !formal.isPrimitive();\n }\n if (formal.isPrimitive()) {\n if (formal == Boolean.TYPE) {\n re...
"public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request) throws IOException {\n String url = request.getDefaultUrl() + \"String_Node_Str\" + Util.fromUtf8Bytes(request.getData());\n return executePost(dataSourceFactory, url, new byte[0], null);\n}\n"
"protected Object putInternal(K key, V value, ExpiryPolicy expiryPolicy, boolean isGet, boolean withCompletionEvent, boolean async) {\n long start = System.nanoTime();\n ensureOpen();\n validateNotNull(key, value);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, value);\n Data keyData = toData...
"public SqlConvertible createQuery(List<ExecutionInfoToken> tokens) throws VerdictDBException {\n ExecutionInfoToken token = tokens.get(0);\n AggMeta sourceAggMeta = (AggMeta) token.getValue(\"String_Node_Str\");\n Triple<List<ColumnOp>, SqlConvertible, Map<Integer, String>> aggColumnsAndQuery = createBaseQuer...