content stringlengths 40 137k |
|---|
"public boolean isTriggerActive(TileEntity tile, ForgeDirection side, IStatementContainer statementContainer, IStatementParameter[] parameters) {\n if (tile instanceof IFluidHandler) {\n IFluidHandler container = (IFluidHandler) tile;\n FluidStack searchedFluid = null;\n if (parameters != null &... |
"private void read() throws IOException {\n String tempDir = this.readRequiredString(\"String_Node_Str\");\n if (tempDir.endsWith(\"String_Node_Str\") || tempDir.endsWith(\"String_Node_Str\")) {\n backupDir = tempDir;\n } else if (tempDir.contains(\"String_Node_Str\")) {\n backupDir = tempDir + \... |
"void updateOffset(int y) {\n if (y <= mHeaderView.getHeight()) {\n mHeaderView.setVisibility(View.VISIBLE);\n final int newTop = Math.round(-y * PARALLAX_FRICTION);\n mHeaderView.offsetTopAndBottom(newTop - mHeaderView.getTop());\n if (mContentViewScrollListener != null) {\n m... |
"public void postParsing(CommandOption.List list) {\n assert (this.value instanceof ClassifierTrainer);\n classifierTrainers.add((ClassifierTrainer) this.value);\n}\n"
|
"private void syncData(OModel model, OUser user, ODomain domain_filter, SyncResult result, Boolean checkForDataLimit, Boolean createRelationRecords) {\n Log.v(TAG, \"String_Node_Str\" + model.getModelName() + \"String_Node_Str\" + ODateUtils.getDate());\n try {\n ODomain domain = new ODomain();\n do... |
"public void closeContainerTag() {\n writer.closeTag(HTMLTags.TAG_DIV);\n}\n"
|
"public IStatus doAction() {\n try {\n XSDElementDeclaration decl = null;\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n if (declNew != null)\n decl = declNew;\n else if (selection.getFirstElement() instanceof XSDElementDeclarat... |
"public Image crop(Image original, int x1, int x2, int y1, int y2, int maxX, int maxY) throws ServiceException {\n try {\n BufferedImage bufOriginal = ImageIO.read(new File(original.getImagepath()));\n int width = bufOriginal.getWidth();\n int height = bufOriginal.getHeight();\n double ra... |
"public void syncAllBeansForLogOn() throws SystemException {\n for (RoutineItem beanItem : getBeans(true)) {\n syncRoutine(beanItem, true, true, true);\n }\n}\n"
|
"public void testValidateNodes4() throws DataException {\n ExprManager em = new ExprManager(null);\n Map m = new HashMap();\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new Sc... |
"public void init(Graph graph, Directory dir) {\n if (edgesCount > 0)\n throw new AssertionError(\"String_Node_Str\");\n Directory d = new RAMDirectory();\n this.orsEdges = d.find(\"String_Node_Str\");\n}\n"
|
"private void showIsTyping(boolean isTyping) {\n notificationLabel.setText(isTyping ? NLS.bind(Messages.MessagesView_TypingNotification, getUserName(remoteID)) : \"String_Node_Str\");\n}\n"
|
"private int transitionOnInput(byte rawByte, int state) {\n switch(state) {\n case START_STATE:\n version = (rawByte & (byte) VERSION_MASK) >> 4;\n if (version == 0) {\n return ERROR_STATE;\n }\n compression = (1 == ((rawByte & (byte) COMPRESSION_MASK... |
"public T get() {\n if (instance == null) {\n synchronized (InjectorBuilderImpl.class) {\n if (instance == null) {\n T provided = creator.get();\n if (provided instanceof CircularDependencyProxy) {\n return provided;\n }\n ... |
"public void canGoBackwardsAndForwards() throws Exception {\n PersistentList<Character> values = list('a', 'b', 'c');\n ListIterator<Character> listIterator = new ZipperListIterator<Character>(zipper(values));\n assertThat(listIterator.next(), is('a'));\n assertThat(listIterator.next(), is('b'));\n asser... |
"protected void execP4Command(String command, P4Handler handler) throws BuildException {\n try {\n Commandline commandline = new Commandline();\n commandline.setExecutable(\"String_Node_Str\");\n if (P4Port != null && P4Port.length() != 0) {\n commandline.createArgument().setValue(P4P... |
"private void repopulatePlateGrid() {\n List<HeatScreen> heatmapSelection = createHeatMaps();\n int[] rowsColumns = calculateTrellisDimensions(heatmapSelection.size());\n int numRows = rowsColumns[0];\n int numColumns = rowsColumns[1];\n heatMapModel.updateTrellisConfiguration(numRows, numColumns);\n ... |
"private void mapFieldIndexes(Context context, Object[] row, String[] headers, int[] indexes, boolean columnsReordered) {\n if (headers == null) {\n headers = ArgumentUtils.EMPTY_STRING_ARRAY;\n }\n int last = headers.length > row.length ? headers.length : row.length;\n for (FieldMapping mapping : pa... |
"private GL3Object buildObjectGLO(GL3 gl, RenderObject robj, int pidx, int nidx, int cidx, int tidx, int oidx, GL3Object pointObject, float pointRadius) {\n GL3VertexAttributeArray[] pattribs = pointObject.getGL3VertexAttributes();\n int nattribs = pattribs.length;\n nattribs++;\n if (pidx >= 0) {\n ... |
"public HttpResponse doRequest(String url, HttpMethod method, Map<String, Object> requestParameters, String charset) throws IOException {\n HttpEntity entity = null;\n if (method == HttpMethod.GET) {\n List<NameValuePair> params = toNameValuePairList(requestParameters);\n String queryString = URLEnc... |
"public void exportBundles(List modules, FrameworkInstanceConfiguration config, final IPath location, final IPath tmpLocation) {\n final FeatureExportInfo info = new FeatureExportInfo();\n info.toDirectory = true;\n info.useJarFormat = true;\n info.exportSource = true;\n info.exportSourceBundle = false;\... |
"public void flush() throws OperationException {\n flushTxAwareDataSets();\n}\n"
|
"void bufferSeek(long seekOffset) throws IOException {\n flushBuffer();\n long newOffset = seekOffset - (seekOffset & (BUFFER_SIZE - 1L));\n if (newOffset == bufferOffset) {\n bufferPosition = (int) (seekOffset - bufferOffset);\n return;\n }\n bufferOffset = newOffset;\n bufferLength = (... |
"static <B extends Annotation> Pair<List<Cooccurrence>, List<SentenceExample>> getSvmSentences(JCas jCas, final Class<B> brClass) {\n List<Cooccurrence> retCooc = newArrayList();\n List<SentenceExample> retSentences = newArrayList();\n String pmId = getHeaderDocId(jCas);\n int sentenceId = 0;\n Map<Sente... |
"public Map getPropertyValues() {\n if (propertyValues == null) {\n propertyValues = new HashMap<Property, Object>(1);\n if (null != isElement) {\n propertyValues.put(SDOConstants.XMLELEMENT_PROPERTY, isElement);\n }\n }\n return propertyValues;\n}\n"
|
"public TmfEventContent clone() {\n TmfEventContent clone = null;\n try {\n clone = (TmfEventContent) super.clone();\n clone.fParentEvent = fParentEvent;\n clone.fRawContent = fRawContent;\n clone.fFields = fFields;\n } catch (CloneNotSupportedException e) {\n e.printStackTra... |
"public void init() {\n content.getChildren().addAll(table.getRoot());\n VBox.setVgrow(table.getRoot(), Priority.ALWAYS);\n table.setFixedCellSize(GUI.font.getValue().getSize() + 5);\n table.getSelectionModel().setSelectionMode(MULTIPLE);\n table.setkeyNameColMapper(name -> \"String_Node_Str\".equals(nam... |
"void stop() {\n if (DEBUG) {\n Log.d(TAG, \"String_Node_Str\");\n }\n commitCurrentLogUnit();\n if (mMainLogBuffer != null) {\n publishLogBuffer(mMainLogBuffer, mMainResearchLog, IS_LOGGING_EVERYTHING);\n mMainResearchLog.close(null);\n mMainLogBuffer = null;\n }\n if (mFe... |
"public String[] sensorLabels() {\n return task.preyEvolve ? (new NNTorusPredPreyController(null, false)).sensorLabels() : (new NNTorusPredPreyController(null, true)).sensorLabels();\n}\n"
|
"public Future<RpcResult<GetODLCertificateReqOutput>> getODLCertificateReq() {\n final SettableFuture<RpcResult<GetODLCertificateReqOutput>> futureResult = SettableFuture.create();\n final String certReq = aaaCertProvider.genODLKeyStoreCertificateReq(false);\n if (!Strings.isNullOrEmpty(certReq)) {\n fi... |
"public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {\n RemoteWorkerDelegate worker = getWorkerDelegate(ctx);\n if (worker != null) {\n worker.resultHandlerException = e.getCause();\n worker.semaphore.release();\n }\n}\n"
|
"private PackageSetting getPackageLP(String name, PackageSetting origPackage, String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, int vc, int pkgFlags, boolean create, boolean add) {\n PackageSetting p = mPackages.get(name);\n if (p != null) {\n if (!p.codePath.equals(codePath)... |
"public void buildUI(Composite parent) {\n container = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);\n container.setLayoutData(new GridData(GridData.FILL_BOTH));\n ((ScrolledComposite) container).setExpandHorizontal(true);\n ((ScrolledComposite) container).setExpandVertical(true);\n contain... |
"public boolean removeDependenciesBetweenModel(ModelElement supplier, ModelElement client) {\n boolean hasFind = false;\n EList<Dependency> supplierDependencies = supplier.getSupplierDependency();\n Iterator<Dependency> suppiterator = supplierDependencies.iterator();\n while (suppiterator.hasNext()) {\n ... |
"protected void createNewProject() {\n IProxyRepositoryFactory repositoryFactory = ProxyRepositoryFactory.getInstance();\n Context ctx = CorePlugin.getContext();\n RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);\n try {\n Project projectInfor... |
"public final int getDebugColorAt(int x, int y) {\n return flagsGrid.isMarked(x, y) ? Color.ORANGE.getARGB() : (objectsGrid.getMapObjectAt(x, y, EMapObjectType.INFORMABLE_MAP_OBJECT) != null ? Color.GREEN.getARGB() : (objectsGrid.getMapObjectAt(x, y, EMapObjectType.ATTACKABLE_TOWER) != null ? Color.RED.getARGB() : (... |
"public static List<String> parseAcceptHeaders(final String headerValue) throws BatchException {\n TreeSet<Accept> acceptTree = getAcceptTree();\n List<String> acceptHeaders = new ArrayList<String>();\n Scanner acceptHeaderScanner = new Scanner(headerValue);\n acceptHeaderScanner.useDelimiter(\"String_Node_... |
"public void setChar(Property property, char value) {\n convertValueAndSet(property, value);\n}\n"
|
"private void validateIdentificationVariables() {\n Map<String, List<IdentificationVariable>> identificationVariables = new HashMap<String, List<IdentificationVariable>>();\n collectDeclarationIdentificationVariables(queryContext.getCurrentContext(), identificationVariables);\n for (Map.Entry<String, List<Iden... |
"public void changeConfiguration(ReplicationConfig config, DispatcherState lastState) throws IOException, BabuDBException {\n if (config instanceof MasterConfig) {\n ((CheckpointerImpl) dbs.getCheckpointer()).checkpoint(true);\n dispatcher = new MasterRequestDispatcher((MasterConfig) config, dbs, lastS... |
"public static int removeTraps(List<Object> localData, AVM2GraphSource code, int addr, String path) {\n HashMap<GraphSourceItem, AVM2Code.Decision> decisions = new HashMap<>();\n HashMap<Integer, List<Integer>> refs = new HashMap<>();\n code.getCode().visitCode(0, code.size() - 1, refs);\n removeTraps(refs,... |
"public void onDeath(DamageSource source) {\n if (BALANCE.VAMPIRE_PLAYER_LOOSE_LEVEL && source.damageType.equals(\"String_Node_Str\") && source instanceof EntityDamageSource) {\n Entity src = source.getEntity();\n if (src instanceof EntityVampireHunter) {\n looseLevel();\n this.se... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlChoiceCollectionMapping.isReadOnly()) {\n return false;\n }\n Object value = xmlChoiceCollectionMapping.getAttributeValueFromObject(ob... |
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n boolean status = false;\n Resources resources = domain.getResources();\n String scope = \"String_Node_Str\";\n if (moduleName != null) {\n if (!poolUtil.isValidModule(applicationName, mod... |
"public int getAccessibilitySelectionStart() {\n return getSelectionStart();\n}\n"
|
"public void migrateInstance(final String instanceId, final Boolean destHostsWhiteList, final List<String> destHosts) throws Exception {\n if (this.gateLock.writeLock().tryLock(60, TimeUnit.SECONDS)) {\n try {\n List<VmInstance> currentMigrations = this.lookupCurrentMigrations();\n if (!... |
"public void frontier_list(HttpServletRequest req, HttpServletResponse resp, List<Integer> numerics) throws IOException {\n Locale locale = resp.getLocale();\n resp.setContentType(\"String_Node_Str\");\n ServletOutputStream out = resp.getOutputStream();\n Caching.caching_disable_headers(resp);\n Template... |
"public void setDataSource(URI file) throws NullPointerException, IOException, IllegalArgumentException, Exception {\n if (file != null) {\n if (adapter == null) {\n throw new NullPointerException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n final String message;\n if (!ad... |
"public String getAsXMLString(int sessionID, int queryID) throws ClientNotKnownException {\n ClientState state = getState(sessionID);\n ResultSet resultSet = SparqlQuery.JSONtoResultSet(state.getQuery(queryID).getResult());\n return SparqlQuery.getAsXMLString(resultSet);\n}\n"
|
"public static ZVerseBackendState getZVerseBackendState(SwordBookMetaData metadata, BlockType blockType) throws BookException {\n ensureNotShuttingDown();\n ZVerseBackendState state = getInstance(metadata);\n if (state == null) {\n LOGGER.trace(\"String_Node_Str\", metadata.getInitials());\n retu... |
"public static void showToastOrAuthAlert(Context context, String xmlrpcMessage, String friendlyMessage) {\n if (context == null)\n return;\n boolean isLoginLimitReached = false;\n if (!TextUtils.isEmpty(xmlrpcMessage)) {\n String lowerCaseXmlrpcMessage = xmlrpcMessage.toLowerCase();\n if (... |
"public TypeCheckEliminationResults generateTypeCheckEliminations() {\n TypeCheckEliminationResults typeCheckEliminationResults = new TypeCheckEliminationResults();\n Map<TypeCheckElimination, List<SimpleName>> staticFieldMap = new LinkedHashMap<TypeCheckElimination, List<SimpleName>>();\n Map<Integer, ArrayLi... |
"public void test_singleModel() throws Exception {\n SBOLDocument document = new SBOLDocument();\n document.setComplete(true);\n document.setDefaultURIprefix(\"String_Node_Str\");\n document.addNamespaceBinding(NamespaceBinding(\"String_Node_Str\", \"String_Node_Str\"));\n document.addNamespaceBinding(Na... |
"public void portRedirect(int from, int to) {\n Log.d(TAG, \"String_Node_Str\" + from + \"String_Node_Str\" + to);\n try {\n super.run(\"String_Node_Str\");\n super.run(\"String_Node_Str\");\n super.run(\"String_Node_Str\");\n super.run(\"String_Node_Str\");\n super.run(\"String... |
"public void setStatus(ConflictStatus status) throws OseeCoreException {\n if (status.equals(ConflictStatus.RESOLVED) && isWordAttribute() && ((WordAttribute) getAttribute()).containsWordAnnotations()) {\n throw new OseeStateException(RESOLVE_MERGE_MARKUP);\n }\n super.setStatus(status);\n}\n"
|
"public String getTargetItem() {\n return (String) getStateHelper().eval(PropertyKeys.targetItem, AbstractTogglePanel.META_NAME_NEXT);\n}\n"
|
"private void removeChildrenOfSameName(final EObject parent, final Class clazz, String name) {\n final String newName = this.validator.createValidName(name);\n if (newName != null)\n name = newName;\n final Iterator children = parent.eContents().iterator();\n while (children.hasNext()) {\n fin... |
"public boolean equals(java.lang.Object arg0) {\n if (!(arg0 instanceof Child)) {\n return false;\n }\n Child c2 = (Child) arg0;\n if ((id == c2.id) || ((id != null) && (c2.id != null) && id.equals(c2.id))) {\n return true;\n }\n return false;\n}\n"
|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_flight);\n fragmentManager = getSupportFragmentManager();\n mSlidingPanel = (SlidingUpPanelLayout) findViewById(R.id.slidingPanelContainer);\n enableSlidingUpPanel(this.drone);\n ... |
"public static BayesianNetwork serialLearnStatic(DAG dag, DataBase dataBase) {\n EF_BayesianNetwork efBayesianNetwork = new EF_BayesianNetwork(dag);\n final int[] count = { 0 };\n SufficientStatistics sum = dataBase.stream().peek(w -> {\n count[0]++;\n }).map(efBayesianNetwork::getSufficientStatistic... |
"public String getSubHeading(PropertiableFile propertiable) {\n String subheading = \"String_Node_Str\";\n switch(propertiable.getCategory()) {\n case AUDIO:\n {\n String albumTitle = getPropertyString(propertiable, FilePropertyKey.ALBUM);\n Long qualityScore = getQ... |
"public String toString() {\n StringBuilder sb = new StringBuilder(128);\n sb.append(\"String_Node_Str\");\n sb.append(Integer.toHexString(System.identityHashCode(this)));\n sb.append(' ');\n service.appendComponentShortName(sb);\n sb.append('}');\n return sb.toString();\n}\n"
|
"public final MoveList getMoves(final boolean check) {\n MoveList list = new MoveList(getBoard(), check);\n Position pos = getPosition();\n Board board = getBoard();\n int dir = direction();\n Position dest = new Position(pos, 0, 1 * dir);\n Move first = new Move(pos, dest);\n if (dest.getY() == up... |
"private String tryGetPriceFromApi(String pair) {\n Context context = getActivity();\n if (context != null) {\n Api api = BtcEApplication.get(context).getApi();\n CallResult<List<Ticker>> callResult = api.getPairInfo(Collections.singleton(pair));\n if (callResult.isSuccess()) {\n r... |
"public void describeGlobalSample() {\n try {\n DescribeGlobalResult describeGlobalResult = null;\n describeGlobalResult = binding.describeGlobal();\n String[] types = describeGlobalResult.getTypes();\n for (String type : types) {\n System.out.println(type);\n }\n ... |
"public void modifyText(final ModifyEvent e) {\n if (isContextMode()) {\n return;\n }\n IHDistribution newDistribution = getHBaseDistribution(hbaseDistributionCombo.getText(), true);\n if (newDistribution == null) {\n return;\n }\n String originalDistributionName = getConnection().getPar... |
"public void moveNode(final ComponentNode source, final LibraryNode destination) {\n if (destination == null || source == null) {\n LOGGER.warn(\"String_Node_Str\");\n return;\n }\n if (!destination.isTLLibrary()) {\n LOGGER.warn(\"String_Node_Str\");\n DialogUserNotifier.openInform... |
"private void setAttribute(Field field, Object o, Object value) {\n if (field != null) {\n try {\n field.setAccessible(true);\n field.set(o, value);\n } catch (Exception e) {\n logger.error(\"String_Node_Str\" + value.getClass().getCanonicalName(), e);\n }\n }... |
"public void testTokenAPITestCase() throws Exception {\n String APIName = \"String_Node_Str\";\n String APIContext = \"String_Node_Str\";\n String tags = \"String_Node_Str\";\n String url = getGatewayURLHttp() + \"String_Node_Str\";\n String description = \"String_Node_Str\";\n String providerName = p... |
"private void resetNetworkBindings(ConnectivityManager.NetworkCallback netCb) {\n Timber.i(\"String_Node_Str\");\n connectedSoloWifi.set(\"String_Node_Str\");\n try {\n connMgr.unregisterNetworkCallback(netCb);\n } catch (IllegalArgumentException e) {\n Timber.w(e, \"String_Node_Str\");\n }... |
"public void fetchObject(ReplaceableTagEvent event) {\n if (!event.getName().contains(\"String_Node_Str\"))\n return;\n String object_type = event.getName().split(\"String_Node_Str\")[0].toLowerCase();\n Class object_class = ObjectFetcher.getObjectClass(object_type);\n if (object_class == null) {\n ... |
"public void marshal(Object object, Writer writer) throws JAXBException {\n if (object == null || writer == null) {\n throw new IllegalArgumentException();\n }\n if (object instanceof JAXBElement) {\n object = createXMLRootFromJAXBElement((JAXBElement) object);\n }\n try {\n xmlMarsh... |
"protected void buildQueryForProcedureType(ProcedureType procType, Project orProject, Project oxProject, ProcedureOperationModel opModel, boolean hasPLSQLArgs) {\n StoredProcedureCall call;\n ArgumentType returnArg = procType.isFunctionType() ? ((FunctionType) procType).getReturnArgument() : null;\n boolean ha... |
"public static TileCache createTileCache(Context c, String id, int tileSize, float screenRatio, double overdraw) {\n int cacheSize = Math.round(AndroidUtil.getMinimumCacheSize(c, tileSize, overdraw, screenRatio));\n return createExternalStorageTileCache(c, id, cacheSize, tileSize);\n}\n"
|
"public void testWhenHopeOfGhirapurWasRemovedAndReturnedBack() {\n addCard(Zone.BATTLEFIELD, playerA, \"String_Node_Str\");\n addCard(Zone.BATTLEFIELD, playerA, \"String_Node_Str\", 1);\n addCard(Zone.HAND, playerA, \"String_Node_Str\");\n addCard(Zone.BATTLEFIELD, playerB, \"String_Node_Str\", 1);\n add... |
"public Set<MidiInputDevice> getMidiInputDevices() {\n Collection<Set<MidiInputDevice>> values = midiInputDevicesMap.values();\n Set<MidiInputDevice> result = new HashSet<>();\n for (Set<MidiInputDevice> value : values) {\n result.addAll(value);\n }\n return Collections.unmodifiableSet(result);\n}... |
"private final void handleCreateService(CreateServiceData data) {\n unscheduleGcIdler();\n PackageInfo packageInfo = getPackageInfoNoCheck(data.info.applicationInfo);\n Service service = null;\n try {\n java.lang.ClassLoader cl = packageInfo.getClassLoader();\n service = (Service) cl.loadClass... |
"private void readHeaders(InputStream in) throws IOException, RarException {\n markHead = null;\n newMhd = null;\n headers.clear();\n long position = 0;\n long read = 0;\n byte[] baseBlockBuffer = new byte[BaseBlock.BaseBlockSize];\n byte[] buff = BufferPool.getByteArray();\n BaseBlock block;\n ... |
"public CompatibilityStatus checkCompatibility() {\n CrosstabReportItemHandle crosstab = getCrosstab();\n if (crosstab.compStatus < 0) {\n ExtendedItemHandle exhandle = (ExtendedItemHandle) getModelHandle();\n Map illegalContents = exhandle.getIllegalContents();\n if (illegalContents.contains... |
"public ClassLoader getDefaultClassLoader() {\n return defaultClassLoader;\n}\n"
|
"public BufferedImage getBufferedImage(Mat m) {\n int type = BufferedImage.TYPE_BYTE_GRAY;\n if (m.channels() > 1) {\n type = BufferedImage.TYPE_3BYTE_BGR;\n }\n bufferedImage = new BufferedImage(m.cols(), m.rows(), type);\n m.get(0, 0, ((DataBufferByte) bufferedImage.getRaster().getDataBuffer()).... |
"private void writeInline(MethodWriter writer, IValue instance, IArguments arguments) {\n Label inlineEnd = new Label();\n writer.startInline(inlineEnd);\n if (instance != null) {\n instance.writeExpression(writer);\n writer.writeVarInsn(instance.getType().getStoreOpcode(), localCount);\n }\n ... |
"static <T> InternalFactory<? extends T> scope(Key<T> key, InjectorImpl injector, InternalFactory<? extends T> creator, Object source, Scoping scoping) {\n if (scoping.isNoScope()) {\n return creator;\n }\n Scope scope = scoping.getScopeInstance();\n Provider<T> scoped = scope.scope(key, new Provider... |
"public void resetRowHint() {\n if (!emptyPage) {\n hints.clear();\n hints.putAll(currentHints);\n currentHints.clear();\n }\n}\n"
|
"public void serialize(AgentInfo agentInfo, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {\n jgen.writeStartObject();\n jgen.writeStringField(\"String_Node_Str\", agentInfo.getApplicationName());\n jgen.writeStringField(\"String_Node_Str\", agentInfo.getAgentId()... |
"public void setToDefaults() {\n fontScale = 1;\n mcc = mnc = 0;\n locale = null;\n userSetLocale = false;\n touchscreen = TOUCHSCREEN_UNDEFINED;\n keyboard = KEYBOARD_UNDEFINED;\n keyboardHidden = KEYBOARDHIDDEN_UNDEFINED;\n hardKeyboardHidden = HARDKEYBOARDHIDDEN_UNDEFINED;\n navigation = N... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.importcontacts);\n confirm = (Button) findViewById(R.id.confirm);\n importList = (ListView) findViewById(R.id.import_contact_list);\n ContentResolver cr = getContentResolver();\n tc = new... |
"private Map<TableColumn, GridColumnsGroup> fillColumnsGroup(GridColumnsGroup aParent, List<DbGridColumn> aContents, boolean linkSource) throws Exception {\n Map<TableColumn, GridColumnsGroup> groups = new HashMap<>();\n for (DbGridColumn dCol : aContents) {\n GridColumnsGroup group;\n if (linkSourc... |
"public void setStaticFileName(String staticFileName) {\n if (staticFileName != null && staticFileName.length() > 3) {\n this.staticFileName = JDUtilities.removeEndingPoints(JDUtilities.validateFileandPathName(staticFileName));\n updatePartID();\n } else\n this.staticFileName = null;\n}\n"
|
"public static void notNull(Object obj, String message) {\n if (obj == null) {\n throw exeception;\n }\n}\n"
|
"public void invoke(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, String[] pathArgs) {\n try {\n req.setCharacterEncoding(inputCharset);\n } catch (UnsupportedEncodingException e) {\n if (log.isWarnEnabled())\n log.warn(getExceptionMessage(e), e);\n throw Lan... |
"protected void doWork() throws Throwable {\n componentService.beforePropertyActivate(getParameterName(), getSubProperties());\n update();\n}\n"
|
"public void test() throws Exception {\n IdService idService = new MapIdService();\n HTablePool pool = mock(HTablePool.class);\n HTableInterface htableInterface = mock(HTableInterface.class);\n when(pool.getTable(any(byte[].class))).thenReturn(htableInterface);\n when(htableInterface.batch(anyList())).th... |
"public static Try<URL> getResourceURL(final String resourceRelativePath) {\n final ClassLoader classLoader = Resources.class.getClassLoader();\n return Try.of(() -> classLoader).map(cl -> cl.getResource(resourceRelativePath)).map(Objects::requireNonNull).mapFailure(Case($(err -> err instanceof NullPointerExcepti... |
"public void testAddTo1() {\n long expected = TEST_TIME_NOW;\n expected = ISOChronology.getInstanceUTC().years().add(expected, 1);\n expected = ISOChronology.getInstanceUTC().months().add(expected, 2);\n expected = ISOChronology.getInstanceUTC().weeks().add(expected, 3);\n expected = ISOChronology.getIns... |
"private void collectAliasCandidates(NodeTraversal t, ReferenceMap referenceMap) {\n if (mode != Mode.CONSTANTS_ONLY) {\n for (Iterator<Var> it = t.getScope().getVars(); it.hasNext(); ) {\n Var v = it.next();\n ReferenceCollection referenceInfo = referenceMap.getReferences(v);\n ... |
"public void setProcess(final IProcess2 process) {\n if (process != null) {\n if (process.equals(this.process)) {\n if (checkIsSameContextParameter()) {\n return;\n }\n }\n this.process = process;\n contextComboViewer.getControl().setEnabled(true);\n ... |
"public void doParse(InputStream input, String baseUri, RDFNotation notation, RDFCallback callback) throws ParserException {\n this.callback = callback;\n try {\n switch(notation) {\n case NTRIPLES:\n LangNTriples langNtriples = RiotParsers.createParserNTriples(input, this);\n ... |
"public void add(LibraryMemberInterface lm) {\n getChildrenHandler().add((Node) lm);\n}\n"
|
"private Notification createInstalledSummaryNotification(ArrayList<AppUpdateStatusManager.AppUpdateStatus> installed) {\n String title = context.getString(R.string.notification_summary_installed, installed.size());\n StringBuilder text = new StringBuilder();\n NotificationCompat.BigTextStyle bigTextStyle = new... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.