content stringlengths 40 137k |
|---|
"public boolean onMotionEvent(MotionEvent event, int policyFlags) {\n final float x = event.getX();\n final float y = event.getY();\n final long time = event.getEventTime();\n mPolicyFlags = policyFlags;\n switch(event.getActionMasked()) {\n case MotionEvent.ACTION_DOWN:\n mDoubleTapDet... |
"public static <T> T coercedTypeCasting(Object source, Class<T> clazz) throws IllegalArgumentException {\n if (null == clazz) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (source instanceof JsonValue) {\n source = ((JsonValue) source).getObject();\n }\n Class<T> tar... |
"public static void update(Context context, boolean updateDate) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Calendar calendar = Utils.makeCalendarFromDate(new Date());\n CivilDate civil = new CivilDate(calendar);\n PersianDate persian = Utils.getToday();\n Intent intent = new Intent(context, M... |
"public void onFinish(String identifier) {\n totalTime += System.nanoTime() - startTime;\n if (--currentCounter == 0 && count > 0) {\n Log.debug(\"String_Node_Str\", identifier, totalTime / count);\n currentCounter = count;\n totalTime = 0L;\n }\n}\n"
|
"private static String getInternalTypeName(String typeDesc) {\n return typeDesc.substring(1, typeDesc.length() - 1);\n}\n"
|
"public void loadService() throws Exception {\n serviceRrepository = new SimpleServiceRepository();\n provider = new FieldBackedPropertyProvider();\n locator = new CumulativeFieldInformerLocator();\n locator.add(new BasicFieldInformerLocator());\n locator.add(new ServiceBackedFieldLocator(repository));\n... |
"private boolean insertIntoTable(String className, Product product) {\n try {\n int originalCount = getRecordCount(className);\n Class<?> c = product.getClass();\n Field[] fields = c.getFields();\n fields = sortFields(fields);\n String sql = \"String_Node_Str\" + className + \"Stri... |
"private VirtualMouseMoveAnalogReplayHandler readMouseMoveAnalogHandler(String section, String handlerIdentifier) {\n int sensitivityX = this.propertiesStorage.read(section, handlerIdentifier + \"String_Node_Str\", VirtualMouseMoveAnalogReplayHandler.DefaultSensitivity);\n int sensitivityY = this.propertiesStorag... |
"private void goToEnemy(IAttackable enemy) {\n if (inSaveGotoMode) {\n goToSavely(enemy);\n } else {\n ShortPoint2D pos = movable.getPos();\n EDirection dir = EDirection.getApproxDirection(pos, enemy.getPos());\n if (super.goInDirection(dir, EGoInDirectionMode.GO_IF_ALLOWED_AND_FREE)) ... |
"public void testCreateExist() throws Exception {\n StreamAdmin streamAdmin = getStreamAdmin();\n String streamName = \"String_Node_Str\";\n Id.Stream streamId = Id.Stream.from(FOO_NAMESPACE, streamName);\n Id.Stream otherStreamId = Id.Stream.from(OTHER_NAMESPACE, streamName);\n Assert.assertFalse(stream... |
"public <O> List<O> recordAndProcess(final StreamInfo streamInfo, final Object stop, final RunnableWithInputStream runnable, final Class<O> returnType) throws SoundTransformException {\n final ByteBuffer targetByteBuffer = this.startRecordingAndReturnByteBuffer(streamInfo, stop);\n final List<InputStream> streams... |
"private synchronized Map<String, DbColumnInfo> getPropertyDbColumnInfoMap(Class entityClass) {\n if (entityClass == null) {\n throw new NullPointerException(ENTITY_CLASS);\n }\n Map<String, DbColumnInfo> propertyDbColumnMap;\n if (dbColumnInfoCacheMap.containsKey(entityClass)) {\n propertyDbC... |
"protected void onFileLoaded(QBFile file) {\n QBSendGroupDialogMessageCommand.start(GroupDialogActivity.this, chatJidId, null, file);\n}\n"
|
"public Peer connectToLocalHost() {\n lock.lock();\n try {\n final PeerAddress localhost = PeerAddress.localhost(params);\n backoffMap.put(localhost, new ExponentialBackoff(peerBackoffParams));\n return connectTo(localhost, true, vConnectTimeoutMillis);\n } finally {\n lock.unlock()... |
"private void fillNode(ITestResultPO keyword, TestResultNode resultNode) {\n INodePO node = resultNode.getNode();\n keyword.setKeywordName(node.getName());\n keyword.setInternalKeywordGuid(node.getGuid());\n keyword.setKeywordComment(node.getComment());\n keyword.setTaskId(resultNode.getTaskId());\n k... |
"public void build(Progress p) throws IOException, JobFailedException, JobCancelledException {\n MrsImagePyramid inputPyramid = RasterMapOp.flushRasterMapOpOutput(sourceRaster, 0);\n if (aggregatorName == null) {\n MrsImagePyramidMetadata.Classification classification = inputPyramid.getMetadata().getClassi... |
"public void add(Runnable runnable, Executor executor) {\n if (runnable == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n synchronized (this) {\n if (!executed) {\n runnables = new RunnableExecutorPair(runnable, executor, runnables);\n return;\n ... |
"public static void setProjectStatus(Properties properties, String status) {\n if (status == null) {\n properties.remove(IPropertiesContext.KEY_PROJECT_STATUS);\n } else {\n properties.put(IPropertiesContext.KEY_PROJECT_STATUS, status);\n }\n}\n"
|
"public void setLifelineCategories(LifelineCategories[] categories) {\n lifelineCategories = Arrays.copyOf(categories, categories.length);\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + getDescription();\n}\n"
|
"private Result renderCheckoutPaymentPage(final UserContext userContext, final Cart cart) {\n final CheckoutPaymentPageContent content = new CheckoutPaymentPageContent(cart, userContext, productDataConfig, i18nResolver(), reverseRouter());\n final SunrisePageData pageData = pageData(userContext, content, ctx(), s... |
"public <T> Converter<T> getCustomConverter(Class<T> type) {\n return (null == customConverterMap) ? null : (Converter<T>) customConverterMap.get(type);\n}\n"
|
"public Result getPerson() {\n Person person = new Person();\n person.name = \"String_Node_Str\";\n return Results.json().render(person);\n}\n"
|
"public void run() {\n try {\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n String line = null;\n while ((line = br.readLine()) != null) log.debug(type + \"String_Node_Str\" + line);\n } catch (Exception ioe) {\n ioe.printSt... |
"public boolean d(int i, int j, int k) {\n if (this.a instanceof EntityPlayer) {\n CraftServer server = ((WorldServer) this.b).getServer();\n org.bukkit.block.Block block = ((WorldServer) this.b).getWorld().getBlockAt(i, j, k);\n org.bukkit.entity.Player player = (org.bukkit.entity.Player) this.... |
"private void assignPresetController(GCController controller, int playerIndex) {\n APAPlayer player = players.get(playerIndex);\n if (player == null) {\n player = new APAPlayer();\n players.set(pi, player);\n updateHUD(player, APAHUDState.Connected, \"String_Node_Str\");\n }\n if (playe... |
"static LocationInterpreter interpretContinent(Location locationRecord) {\n return (ExtendedRecord extendedRecord) -> VocabularyParsers.continentParser().map(extendedRecord, parseResult -> {\n Interpretation<ExtendedRecord> interpretation = Interpretation.of(extendedRecord);\n if (parseResult.isSuccess... |
"public T peek() {\n return queues.peekFirst().peek();\n}\n"
|
"protected int onExecuteUpdate() {\n EntityMetadata m = getEntityMetadata();\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n String query = appMetadata.getQuery(getJPAQuery());\n boolean isNative = kunderaQuery.isNative();\n if (isNative) {\n ((CassandraCli... |
"public static void renderComponentProgressBar(AgriGuiWrapper gui, GuiComponent<Supplier<Integer>> component) {\n final int width = component.getBounds().width;\n final int height = component.getBounds().height;\n final double progress = MathHelper.inRange(component.getComponent().get(), 0.0, 1.0);\n GuiUti... |
"private boolean unregisterCommand(CommandSender sender, String[] args) {\n if (sender instanceof Player) {\n Player player = (Player) sender;\n if (!xAuthPermissions.has(player, \"String_Node_Str\")) {\n xAuthMessages.send(\"String_Node_Str\", player);\n return true;\n } e... |
"public Transaction addMultiSign(Transaction tx, int M, byte[][] pubKeys, byte[] signatureData) throws Exception {\n pubKeys = Program.sortPublicKeys(pubKeys);\n if (tx.sigs == null) {\n tx.sigs = new Sig[0];\n } else {\n if (tx.sigs.length > Common.TX_MAX_SIG_SIZE || M > pubKeys.length || M <= 0... |
"private void createMiscArea() {\n cmpMisc = new Composite(cmpRight, SWT.NONE);\n cmpMisc.setLayout(new GridLayout(4, false));\n cmpMisc.setLayoutData(new GridData(GridData.FILL_BOTH));\n lblDimension = new Label(cmpMisc, SWT.WRAP);\n {\n GridData gd = new GridData();\n gd.widthHint = LABEL... |
"public void attach(String targetParentName, String sourceRootName, String prefix) {\n logger.info(\"String_Node_Str\" + sourceFile);\n sourceUtils = new OBOUtils(sourceFile.getAbsolutePath());\n logger.info(\"String_Node_Str\");\n logger.info(\"String_Node_Str\" + target.getTerms().size());\n logger.inf... |
"private static <P, F, S> void backtrack(List<List<Integer>> chains, List<Integer> tempList, SFTProduct<P, F, S> sft, Integer currentState, int remainSteps) {\n if (remainSteps < 0)\n return;\n else if (remainSteps == 0)\n chains.add(new ArrayList<SFTProductInputMove<P, F, S>>(tempList));\n else ... |
"public Error.Type render() {\n gui.status(\"String_Node_Str\");\n RenderProcess process = getProcessRender();\n String core_script = \"String_Node_Str\";\n if (getUseGPU() && config.getGPUDevice() != null && config.getComputeMethod() != ComputeType.CPU) {\n core_script = \"String_Node_Str\" + config... |
"private static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties rootProperty, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new A... |
"public synchronized final Object[][] toArray(int limit) {\n if (limit > _qSize)\n limit = _qSize;\n Object[][] result = new Object[2][limit];\n int index = 0;\n int currentBucket = _minBucket;\n long virtualBucket = _minVirtualBucket;\n long minimumNextVirtualBucket = Long.MAX_VALUE;\n int ... |
"public StackedTimePlot2D getLayout() {\n final CollapsibleTimePlot2D plot = new CollapsibleTimePlot2D();\n plot.setShowLabels(true);\n plot.setLabelSize(30);\n plot.setIndentSubplots(true);\n plot.setIndentSize(30);\n GroupInfo topGroup1 = plot.createGroup();\n topGroup1.setLabelText(\"String_Node... |
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n Map<String, String> tags = ArgumentParser.parseMap(arguments.getOptional(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\");\n List<MetricTagValue> results = client.searchTags(tags);\n for (MetricTagValue result : r... |
"public void createPartControl(Composite parent) {\n parent.setLayout(new FillLayout());\n m_scrollComposite = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);\n m_child = new Composite(m_scrollComposite, SWT.NONE);\n m_child.setLayout(new FillLayout());\n m_imgWidget = new Label(m_child, SWT.... |
"public MemberContext startInstance(MemberContext memberContext) throws IllegalArgumentException, UnregisteredCartridgeException {\n if (memberContext == null) {\n String msg = \"String_Node_Str\";\n log.error(msg);\n throw new IllegalArgumentException(msg);\n }\n String clusterId = member... |
"protected void __handleTextBox() throws Exception {\n JspWriter writer = pageContext.getOut();\n String encParamId = ParameterAccessor.htmlEncode(param.getId());\n String encParamName = ParameterAccessor.htmlEncode(param.getName());\n boolean isNullValue = param.getValue() == null;\n String displayTextI... |
"public final IPreparedQuery prepareQuery(DataSetHandle dataSet, ParamBindingHandle[] bindingParams, boolean useColumnHints, boolean useFilters) throws BirtException {\n IBaseDataSetDesign dataSetDesign = getDataSetDesign(dataSet, useColumnHints, useFilters);\n return session.prepare(getQueryDefinition(dataSetDes... |
"private boolean parseApplication(Package owner, Resources res, XmlPullParser parser, AttributeSet attrs, int flags, String[] outError) throws XmlPullParserException, IOException {\n final ApplicationInfo ai = owner.applicationInfo;\n final String pkgName = owner.applicationInfo.packageName;\n TypedArray sa = ... |
"public void setColorPressed(int colorPressed) {\n mColorPressed = getColor(colorPressed);\n updateBackground();\n}\n"
|
"public String getBedName() {\n String fkey = this.gbFeature.getGBFeatureKey();\n TreeMap<QualKey, String> t = new TreeMap<QualKey, String>();\n if (this.gbFeature.getGBFeatureQuals() != null && this.gbFeature.getGBFeatureQuals().getGBQualifier() != null) {\n for (GBQualifier q : this.gbFeature.getGBFea... |
"public List<LabeledRectangle> getVisibleTargetComponents() {\n return getVisibleRectangles(cdmComponents);\n}\n"
|
"public long next(long previousTime) throws DelayException {\n if (previousTime < currentTime) {\n throw new DelayException();\n }\n try {\n while (previousTime >= currentTime) {\n Thread.sleep(1);\n }\n } catch (InterruptedException e) {\n System.out.println(\"String_... |
"private void exportToSVG() {\n NodeToSVGConverter converter = new NodeToSVGConverter();\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"String_Node_Str\");\n fileChooser.setInitialDirectory(new File(System.getProperty(\"String_Node_Str\")));\n fileChooser.getExtensionFilters().ad... |
"public void learn(Classification<T, K> classification) {\n System.out.println(\"String_Node_Str\" + classification);\n for (T feature : classification.getFeatureset()) this.incrementFeature(feature, classification.getCategory());\n this.incrementCategory(classification.getCategory());\n this.memoryQueue.of... |
"protected void configure() {\n install(new SystemDatasetRuntimeModule().getInMemoryModules());\n install(new FactoryModuleBuilder().implement(DatasetDefinitionRegistry.class, DefaultDatasetDefinitionRegistry.class).build(DatasetDefinitionRegistryFactory.class));\n bind(DatasetFramework.class).annotatedWith(Na... |
"public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement ps = connection.prepareStatement(SQL_SAVE_IP, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, model.getHandle());\n ps.setBytes(2, IpUtil.ipToByteArray(model.getEndAddress()));\n ps.setByte... |
"public void exportJsonDataSource() throws Exception {\n getExporter(DESIGN_REPORT_JSON_CUSTOMERS, \"String_Node_Str\", \"String_Node_Str\").addSubreport(\"String_Node_Str\", \"String_Node_Str\").addJSONParams(\"String_Node_Str\", \"String_Node_Str\", Locale.ENGLISH, Locale.US).setJsonSource().exportPdf();\n}\n"
|
"private boolean _isValid() throws NameDuplicationException, IllegalActionException {\n if (_attributesListPanel.getAttributeCount() == 0 && _attributesListPanel.getModelName().trim().isEmpty()) {\n return true;\n }\n if (!_attributesListPanel.getModelName().trim().isEmpty()) {\n try {\n ... |
"public void setDisplay(HasRows display) {\n if (rangeChangeHandler != null) {\n rangeChangeHandler.removeHandler();\n rangeChangeHandler = null;\n }\n if (rowCountChangeHandler != null) {\n rowCountChangeHandler.removeHandler();\n rowCountChangeHandler = null;\n }\n this.disp... |
"protected boolean canRun() {\n ColumnIndicator[] columnIndicators = treeViewer.getColumnIndicator();\n if (columnIndicators == null || columnIndicators.length == 0) {\n return new ReturnCode(\"String_Node_Str\", false);\n }\n for (ColumnIndicator columnIndicator : columnIndicators) {\n if (co... |
"private static Date toDateISO8601(String source) throws BirtException {\n Date resultDate = null;\n source = source.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n for (int i = 0; i < simpleDateFormatter.length - 1; i++) {\n try {\n resultDate = simpleDateFormatter[i].parse(source)... |
"public int getCurrentMode() {\n return currentMode;\n}\n"
|
"private void notifyUser(Context context, NotificationManager notificationManager) {\n ArrayList<Chargeable> data = LogStoreService.getInstance().get(context, Settings.getBillingStartDate(context), Settings.getBillingEndDate(context));\n String operator = Settings.getOperator(context);\n String planName = Sett... |
"static void compareSecondaryIndices(String tableName, List<?> indices1, List<?> indices2, boolean isGlobal) {\n int numIndices1 = indices1 == null ? 0 : indices1.size();\n int numIndices2 = indices2 == null ? 0 : indices2.size();\n if (numIndices1 != numIndices2) {\n throw new BridgeInitializationExcep... |
"protected UnivariateFunction getFunction(Sound fs) {\n double[] time = new double[fs.getSamples().length];\n for (int i = 0; i < time.length; i++) {\n time[i] = i;\n }\n return new SplineInterpolator().interpolate(time, fs.getSamples());\n}\n"
|
"protected static String toString(Object o) {\n if (o == null) {\n return (\"String_Node_Str\");\n }\n return (SmartStringifier.toString(o));\n}\n"
|
"public void create(Table table) {\n character = new SteeringActor(container.badlogicSmall, false);\n target = new SteeringActor(container.target);\n inputProcessor = new Scene2dTargetInputProcessor(target);\n character.setMaxLinearSpeed(100);\n character.setMaxLinearAcceleration(300);\n final Arrive<... |
"private void parseRelations(String persistenceUnit, List<TableInfo> tableInfos, EntityMetadata entityMetadata, TableInfo tableInfo, List<Relation> relations) {\n for (Relation relation : relations) {\n Class entityClass = relation.getTargetEntity();\n EntityMetadata targetEntityMetadata = KunderaMetad... |
"public boolean save() {\n FileOutputStream stream = null;\n File parent = file.getParentFile();\n if (parent != null) {\n parent.mkdirs();\n }\n try {\n stream = new FileOutputStream(file);\n OutputStreamWriter writer = new OutputStreamWriter(stream, \"String_Node_Str\");\n i... |
"public int getSignatureMatch(String name, IValue instance, IArguments arguments) {\n if (name == null) {\n return 1;\n }\n if (!name.equals(this.qualifiedName)) {\n return 0;\n }\n if (arguments == null) {\n return 1;\n }\n int pOff = 0;\n int match = 1;\n int len = argu... |
"private void showTimeoutDialog() {\n int timeoutInSeconds = (int) LockPatternUtils.FAILED_ATTEMPT_TIMEOUT_MS / 1000;\n String message = mContext.getString(R.string.lockscreen_too_many_failed_attempts_dialog_message, mUpdateMonitor.getFailedAttempts(), timeoutInSeconds);\n final AlertDialog dialog = new AlertD... |
"static Double getDoubleArg(Evaluator evaluator, Exp[] args, int index) {\n Object o = getScalarArg(evaluator, args, index);\n if (o instanceof Double) {\n return (Double) o;\n } else if (o instanceof Number) {\n return new Double(((Number) o).doubleValue());\n } else if (o instanceof Throwabl... |
"void translate(KunderaQuery query, EntityMetadata m, ClientMetadata clientMetadata) {\n String idColumn = ((AbstractAttribute) m.getIdAttribute()).getJPAColumnName();\n for (Object obj : query.getFilterClauseQueue()) {\n boolean isIdColumn = false;\n if (obj instanceof FilterClause) {\n ... |
"protected List<Restaurant> doInBackground(Void... voids) {\n try {\n List<Restaurant> rest = RESTrepository.listRestaurants();\n return rest;\n } catch (Exception e) {\n if (e instanceof SocketTimeoutException) {\n Log.e(TAG, \"String_Node_Str\");\n } else {\n Lo... |
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.getEntity() instanceof Player) {\n Player p = (Player) event.getEntity();\n if (this.plugin.AuthDB_AuthTime.containsKey(p.getName())) {\n long timestamp = System.currentTimeMillis() / 1000;\n long difference = time... |
"public String popup(PopupField field) {\n ActivationDialog dialog = new ActivationDialog(EncogWorkBench.getInstance().getMainWindow());\n if (field == this.activationFieldHidden) {\n dialog.setActivation(this.activationFunctionHidden);\n } else if (field == this.activationFieldOutput) {\n dialog... |
"private Driver findDriver(String className) throws JDBCException {\n Class driverClass = null;\n boolean driverInClassPath = false;\n try {\n driverClass = Class.forName(className);\n logger.info(\"String_Node_Str\" + className);\n driverInClassPath = true;\n } catch (ClassNotFoundExce... |
"private void storageStore(User user) {\n PreparedStatement statement = null;\n Connection connection = ConnectionManager.getConnection();\n try {\n statement = connection.prepareStatement(\"String_Node_Str\" + \"String_Node_Str\");\n statement.setString(1, user.getLogin());\n statement.se... |
"public void setReference(String reference) {\n super.setReference(reference);\n}\n"
|
"public void handlePathwayElementSelection(SelectionType selectionType, int externalID) {\n setDisplayListDirty();\n if (vertexSelectionManager.getElements(SelectionType.SELECTION).size() == 1) {\n pathStartVertexRep = pathwayItemManager.getPathwayVertexRep((Integer) vertexSelectionManager.getElements(Sele... |
"public int print(Graphics g, PageFormat pf, int pi) throws PrinterException {\n int temp = 0;\n while (basict.getTheLastIndex() > line) {\n int height = 0;\n while ((int) pf.getImageableHeight() > height + basict.getHeightOfCommands(temp)) {\n if (basict.getTheLastIndex() == line) {\n ... |
"public void run() {\n new MOOSEFileHandler().setupVariables(modelTree);\n new MOOSEFileHandler().setupAuxVariables(modelTree);\n}\n"
|
"void refreshItems() {\n pageNumber = 1;\n gifts.clear();\n apiRequest.getGifts(new GetGiftPathQuery(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", null, null));\n onItemsLoadComplete();\n}\n"
|
"public String toString() {\n return valueType.toString() + \"String_Node_Str\" + real + \"String_Node_Str\" + imaginary + \"String_Node_Str\" + (unit == null ? \"String_Node_Str\" : unit.toString());\n}\n"
|
"public static Object invokeInitializer(Class cls, int methodID, VM_Address argAddress, boolean isJvalue, boolean isDotDotStyle) throws Exception {\n VM_Method mth = VM_MemberReference.getMemberRef(methodID).asMethodReference().resolve();\n Constructor constMethod = java.lang.reflect.JikesRVMSupport.createConstru... |
"public DataEntry withParents(List<String> transform) {\n return new DataEntry(permissions, options, transform == null ? null : ImmutableList.copyOf(transform), defaultValue);\n}\n"
|
"public void addFolder() {\n String resp = CustomDialog.showInputDialog(JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, panel, \"String_Node_Str\", \"String_Node_Str\");\n if (resp != null) {\n if (resp.equals(\"String_Node_Str\")) {\n CustomDialog.showInfo(JOptionPane.WARNING_MESSAGE, ... |
"public static Collection<BinaryItemSet> divideSet(BinaryItemSet inputSet) {\n return divideSet(inputSet.getAttributeVector(), inputSet.getNumberOfAttributes());\n}\n"
|
"public Object getColumnValue() throws DataException {\n Context cx = Context.enter();\n try {\n Object leftValue = ScriptEvalUtil.evalExpr(this.expr, cx, this.scope, ScriptExpression.defaultID, 0);\n return leftValue;\n } finally {\n Context.exit();\n }\n}\n"
|
"public void setLatLng(LatLng latLng) {\n if (latLng == null) {\n this.lat = null;\n this.lng = null;\n } else {\n this.lat = latLng.getLat();\n this.lng = latLng.getLng();\n }\n}\n"
|
"public void onItemSelected(String id) {\n if (mTwoPane) {\n } else {\n Iterator<ProviderItem> preseeded_providers_iterator = ProviderListContent.ITEMS.iterator();\n while (preseeded_providers_iterator.hasNext()) {\n ProviderItem current_provider_item = preseeded_providers_iterator.next()... |
"public void finalizeProperties() {\n for (TypeInfo tInfo : getTypeInfo().values()) {\n if (tInfo.isTransient()) {\n continue;\n }\n String[] propOrder = tInfo.getPropOrder();\n boolean hasPropOrder = propOrder.length > 0 && !(propOrder.length == 1 && propOrder[0].equals(Consta... |
"public static ImageGeoBoundary computeImageGeoBoundary(final Product sourceProduct) throws OperatorException {\n final ImageGeoBoundary geoBoundary = new ImageGeoBoundary();\n final GeoCoding geoCoding = sourceProduct.getGeoCoding();\n if (geoCoding == null) {\n throw new OperatorException(\"String_Nod... |
"public void doSave(StreamWrapper streamsWrapper, boolean isSubQuery) throws DataException {\n if (streamsWrapper.getStreamForGroupInfo() != null) {\n this.resultSetPopulator.getGroupProcessorManager().getGroupCalculationUtil().doSave(streamsWrapper.getStreamForGroupInfo());\n }\n if (isSubQuery == fals... |
"public boolean isValidInput() {\n System.out.println(\"String_Node_Str\" + super.getOWLEditorKit().getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass());\n System.out.println(\"String_Node_Str\" + super.getOWLEditorKit().getWorkspace());\n view = new DLLearnerView(\"String_Node_Str\", this.getOWLEd... |
"private void initData() {\n mPresenter.getRelateTopic(mTopicId, 1, mOrder, System.currentTimeMillis());\n}\n"
|
"private Object eval(String expression) throws ScriptException {\n if (valueExpressions == null || rsIterator == null)\n return null;\n Iterator exprIt = valueExpressions.iterator();\n while (exprIt.hasNext()) {\n IBaseExpression expr = (IBaseExpression) exprIt.next();\n if (!(expr instanc... |
"public ArrayList<TTSlot> getTT(int Day) {\n ArrayList<TTSlot> today = new ArrayList<TTSlot>();\n if (Day == Calendar.SUNDAY || Day == Calendar.SATURDAY)\n Day = Calendar.MONDAY;\n set_day(Day);\n try {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_WEEK, D... |
"public void append(boolean bit) {\n int i = size / 8;\n if (i >= vector.length) {\n byte[] n = new byte[(int) (vector.length * 1.2) + 1];\n System.arraycopy(vector, 0, n, 0, vector.length);\n n[vector.length] = 0;\n vector = n;\n }\n int r = size % 8;\n if (bit) {\n ve... |
"private static Class<? extends AutoScalingMetadata> subclassFor(Class<? extends AutoScalingMetadata> metadataInstance) {\n return metadataClassMap.getUnchecked(metadataInstance);\n}\n"
|
"public int getTotal() {\n if (!socket.isOpen())\n return Integer.MAX_VALUE - 1;\n return playerPenalty + cpuPenalty + deficitFramePenalty + nullFramePenalty;\n}\n"
|
"public String getCacheRelativePathOrURL() {\n return makeCachePath(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", size + \"String_Node_Str\");\n}\n"
|
"private Operator instantiate(Signature signature, OperatorMap operatorMap, ConversionMap conversionMap) {\n List<Operator> instantiations = new ArrayList<Operator>();\n int lowestConversionScore = Integer.MAX_VALUE;\n Operator instantiation = null;\n for (GenericOperator genericOperator : genericOperators.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.