content stringlengths 40 137k |
|---|
"public void removeSessionFromManagerCache(Session session) {\n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"String_Node_Str\" + this.getClass().getName() + \"String_Node_Str\" + session);\n }\n if (session == null) {\n return;\n }\n Session removed = null;\n removed = sessions.r... |
"private Statement handleTranslationWithPlaceholders(MsgNode msg, List<String> escapingDirectives, Expression soyMsg) {\n Expression placeholderMap = variables.getMsgPlaceholderMapField().accessor(thisVar);\n Map<String, Statement> placeholderNameToPutStatement = new LinkedHashMap<>();\n putPlaceholdersIntoMap... |
"public void onCommand(Command cmd) throws IOException {\n LOGGER.log(Level.FINEST, \"String_Node_Str\", cmd.toString());\n switch(cmd.getType()) {\n case Command.SUCCESS:\n {\n if (!retransforming) {\n result.set(true);\n latch.countDown();\n... |
"public int getMaximumGeneralization(final String attribute) {\n checkQuasiIdentifier(attribute);\n Integer result = maxGeneralization.get(attribute);\n if (result != null)\n return result;\n if (this.getHierarchy(attribute) != null) {\n String[][] hierarchy = this.getHierarchy(attribute);\n ... |
"protected JsonValue convertToRepoObject(final ResourcePath firstResourcePath, final JsonValue object) {\n final JsonValue properties = object.get(FIELD_PROPERTIES);\n if (properties != null) {\n properties.remove(FIELD_CONTENT_ID);\n properties.remove(FIELD_CONTENT_REVISION);\n }\n if (isReve... |
"public boolean onUpdateSelection(final SettingsValues settingsValues, final int oldSelStart, final int oldSelEnd, final int newSelStart, final int newSelEnd, final int composingSpanStart, final int composingSpanEnd) {\n if (mConnection.isBelatedExpectedUpdate(oldSelStart, newSelStart, oldSelEnd, newSelEnd)) {\n ... |
"public void testSign() throws Exception {\n CardApplicationPath cardApplicationPath = new CardApplicationPath();\n CardApplicationPathType cardApplicationPathType = new CardApplicationPathType();\n cardApplicationPathType.setCardApplication(cardApplication);\n cardApplicationPath.setCardAppPathRequest(card... |
"private static void getFormat(MediaInfo.StreamType streamType, DLNAMediaInfo media, DLNAMediaAudio audio, String value, File file) {\n String format = null;\n if (value.startsWith(\"String_Node_Str\")) {\n format = FormatConfiguration.MATROSKA;\n } else if (value.equals(\"String_Node_Str\") || value.eq... |
"public int getGroupCount() {\n return sMifosGroups.size();\n}\n"
|
"public static void initialCalibration(int bg1, int bg2, Context context) {\n CalibrationRequest.clearAll();\n List<Calibration> pastCalibrations = Calibration.allForSensor();\n if (pastCalibrations != null) {\n for (Calibration calibration : pastCalibrations) {\n calibration.slope_confidence... |
"void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) {\n String q = theQualifier;\n String resourceType = null;\n if (isNotBlank(q)) {\n if (q.startsWith(\"String_Node_Str\")) {\n int nextIdx = q.indexOf('.');\n if (nextIdx... |
"private void populateFields() {\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n if ((RowId != null) && (RowId > 0)) {\n CategoryEntry catEntry = Passwords.getCategoryEntry(RowId);\n nameText.setText(catEntry.plainName);\n }\n}\n"
|
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n this.currentPath = this.currentPath + \"String_Node_Str\" + qName;\n for (XMLNode node : nodes.getNodesCollection()) {\n node.outputText = false;\n if (this.currentPath.equals(node.lo... |
"public void keyPress(int keyCode) {\n switch(keyCode) {\n case Keyboard.KEY_RETURN:\n String command = buffer.getBuffer().get(0).toString();\n String[] args = command.split(\"String_Node_Str\");\n for (String a : args) {\n System.out.println(a + \"String_Node_S... |
"protected void drawCubic(Canvas c, LineDataSet dataSet, List<Entry> entries) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n Entry entryFrom = dataSet.getEntryForXIndex(mMinX);\n Entry entryTo = dataSet.getEntryForXIndex(mMaxX);\n int minx = Math.max(dataSet.getEntryPosition(e... |
"public Page download(Request request, Task task) {\n Site site = task.getSite();\n logger.info(\"String_Node_Str\" + request.getUrl());\n HttpClient httpClient = HttpClientPool.getInstance(poolSize).getClient(site);\n String charset = site.getCharset();\n try {\n HttpGet httpGet = new HttpGet(req... |
"public Iterator<CanvasMatches> call(final Integer partitionIndex, final Iterator<OrderedCanvasIdPair> pairIterator) throws Exception {\n LogUtilities.setupExecutorLog4j(\"String_Node_Str\" + partitionIndex);\n final Logger log = LoggerFactory.getLogger(SIFTPointMatchClient.class);\n final CanvasDataCache data... |
"private IDataRowExpressionEvaluator createCubeEvaluator(CubeHandle cube, DataRequestSession session) throws BirtException {\n IBaseCubeQueryDefinition qd = new ChartCubeQueryHelper(itemHandle, context.getModel()).createCubeQuery(null);\n session.defineCube(cube);\n IPreparedCubeQuery ipcq = session.prepare((I... |
"public static int levelCount(Dataset dataset, double lztd, Sector sector, int tilesize) {\n double width = dataset.getRasterXSize();\n double height = dataset.getRasterYSize();\n double lonPixels = sector.getDeltaLongitude() / width;\n double latPixels = sector.getDeltaLatitude() / height;\n double texe... |
"public final int changeFlash() {\n if (mCamera == null) {\n return -1;\n }\n Camera.Parameters parameters = mCamera.getParameters();\n List<String> flashModes = parameters.getSupportedFlashModes();\n if (flashModes == null || flashModes.size() <= 1) {\n return 0;\n }\n if (onCameraSe... |
"public void nextHandshakeUpstreamHandler(WebSocket ws, ByteBuffer buffer, StreamHandlerChain chain) throws WebSocketException {\n if (!upstreamQueue.offer(buffer)) {\n throw new WebSocketException(3031, \"String_Node_Str\");\n }\n}\n"
|
"public Time getMediaTime() {\n if ((audioProperties != null) && audioProperties.containsKey(AUDIO_LENGTH_BYTES) && audioProperties.containsKey(\"String_Node_Str\")) {\n return new Time(bytesRead);\n }\n return new Time(0);\n}\n"
|
"private void outputHtmlText(IForeignContent foreign) {\n boolean bIndent = writer.isIndent();\n writer.setIndent(false);\n Object rawValue = foreign.getRawValue();\n String text = rawValue == null ? null : rawValue.toString();\n Document doc = new TextParser().parse(text, TextParser.TEXT_TYPE_HTML);\n ... |
"public void testIgnorePaths() throws IOException {\n ProjectFilesystem filesystem = EasyMock.createMock(ProjectFilesystem.class);\n EasyMock.expect(filesystem.getPathRelativizer()).andReturn(IdentityPathRelativizer.getIdentityRelativizer()).times(2);\n BuildTargetParser parser = EasyMock.createMock(BuildTarge... |
"private void compileReplacePattern(VirtualColumn arg) throws ParserException {\n CharSequence pattern = arg.getFlyweightStr(null);\n if (pattern == null) {\n throw QueryError.$(arg.getPosition(), \"String_Node_Str\");\n }\n int pos = arg.getPosition();\n int start = 0;\n int index = -1;\n i... |
"public void textMessage(TextMessage msg) {\n ClientPlayer player = players.get(msg.playerId);\n if (player != null) {\n if (player.isAlive()) {\n hud.postMessage(player.getName() + \"String_Node_Str\" + msg.message);\n } else {\n hud.postMessage(\"String_Node_Str\" + player.ge... |
"protected void propagateGeneSelection(int iExternalID, ArrayList<Integer> iAlOldSelection) {\n int iAccessionID = getAccesionIDFromStorageIndex(iExternalID);\n generalManager.getSingelton().getViewGLCanvasManager().getInfoAreaManager().setData(iUniqueId, iAccessionID, EInputDataType.GENE, getInfo());\n ArrayL... |
"protected Diagnostic doComputeEPackages(Monitor monitor) throws Exception {\n Diagnostic diagnostic = Diagnostic.OK_INSTANCE;\n List<URI> locationURIs = getModelLocationURIs();\n if (locationURIs.isEmpty()) {\n diagnostic = new BasicDiagnostic(Diagnostic.ERROR, EcoreImporterPlugin.getPlugin().getBundle... |
"protected void drawHighlights() {\n if (mHighlightEnabled && valuesToHighlight()) {\n float offsetY = mDeltaY * 0.04f;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int index = mIndicesToHightlight[i].getXIndex();\n if (index < mData.getYValCount() && index >= 0) {\... |
"public double integrate(final FirstOrderDifferentialEquations equations, final double t0, final double[] y0, final double t, final double[] y) throws DerivativeException, IntegratorException {\n sanityChecks(equations, t0, y0, t, y);\n setEquations(equations);\n resetEvaluations();\n final boolean forward ... |
"private List<LogEntry> extractTransactionFromLog(long txId, long expectedVersion, ReadableByteChannel log) throws IOException {\n buffer.clear();\n buffer.limit(16);\n log.read(buffer);\n long versionInLog = buffer.getLong();\n assertExpectedVersion(expectedVersion, versionInLog);\n long prevTxId = b... |
"public void testCredentials() {\n final Config config = new Config();\n config.getGroupConfig().setName(\"String_Node_Str\").setPassword(\"String_Node_Str\");\n hazelcastFactory.newHazelcastInstance(config);\n final ClientConfig clientConfig = new ClientConfig();\n final ClientSecurityConfig securityCon... |
"public String getName() {\n return name;\n}\n"
|
"private boolean authenticateSupport(String headers, URL resource, String user, String pw) {\n boolean result;\n boolean auto_auth = param_auto_auth != null && param_auto_auth.getValue();\n if (!pw_enable.getValue()) {\n String whitelist = p_no_pw_whitelist.getValue().trim();\n if (whitelist.equa... |
"public int asInt() {\n try {\n return Integer.valueOf(element.replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n } catch (NumberFormatException ex) {\n dB.echoError(\"String_Node_Str\" + element + \"String_Node_Str\");\n return 0;\n }\n}\n"
|
"public void tstConfigLocationsInMetaInfWithHeader() {\n Dictionary headers = new Hashtable();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n EntryLookupControllingMockBundle aBundle = new EntryLookupControllingMockBundle(headers);\n aBundle.setResultsToReturnOnNextCallToFindEntries(META_INF_SPR... |
"private void addProcessorModelOptions() {\n config.addOption(Config.PROCESSOR_MODEL);\n JOPConfig.registerOptions(config);\n}\n"
|
"private QueueConsumer createQueueConsumer() {\n int groupId = 100000 + Objects.hashCode(getAccountId(), getApplicationId(), getFlowId(), getFlowletId());\n QueueConfig config = new QueueConfig(QueuePartitioner.PartitionerType.FIFO, !asyncMode);\n return new QueueConsumer(getInstanceId(), groupId, getInstanceC... |
"public void perform(Rewrite rewrite, EvaluationContext context) {\n if (!(rewrite instanceof GraphRewrite))\n throw new IllegalArgumentException(\"String_Node_Str\");\n GraphRewrite event = (GraphRewrite) rewrite;\n List<Rule> rules = config.getRules();\n final EvaluationContextImpl subContext = new... |
"protected boolean addInner(final E elem) {\n int putIdx, getIdx, loop = 0;\n for (; ; ) {\n putIdx = putIndex.get();\n final int checkLimit = checkLimit(putIdx);\n if (checkLimit == SIZE_MAXED)\n return false;\n else if (checkLimit == SIZE_OK && putIndex.compareAndSet(putId... |
"public Object executeMethod(String context, String methodname, Object[] arguments, final boolean async) throws Exception {\n if (application.getSolution() != null) {\n final MethodExecutor method = new MethodExecutor(context, methodname, arguments, async);\n synchronized (method) {\n if (ap... |
"protected ASTNode findDeclarationForDynamicVariable(VariableExpression var, ClassNode owner, VariableScope scope, int resolveStrategy) {\n ASTNode candidate = null;\n List<ClassNode> callArgs = scope.getMethodCallArgumentTypes();\n boolean isLhsExpr = (scope.getWormhole().remove(\"String_Node_Str\") == var);\... |
"protected final void drawGuiContainerBackgroundLayer(final float f, final int x, final int y) {\n final int ox = this.guiLeft;\n final int oy = this.guiTop;\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.drawBG(ox, oy, x, y);\n final List<Slot> slots = this.getInventorySlots();\n for (final S... |
"public void init(boolean fromBackup) {\n if (!fromBackup && store.isEnabled()) {\n Set<Long> keys = store.loadAllKeys();\n if (keys != null) {\n for (Long key : keys) {\n QueueItem item = new QueueItem(this, key, null);\n getItemQueue().offer(item);\n ... |
"public void process(Purchase purchase) {\n URL serviceURL = getContext().getServiceURL(PurchaseApp.APP_NAME, CatalogLookupService.SERVICE_NAME);\n if (serviceURL != null) {\n String catalog = getCatalogId(serviceURL, purchase.getProduct());\n if (catalog != null) {\n purchase.setCatalogI... |
"private void startNioServerForPostUpload() {\n int port = 8210;\n HttpProcessor httpproc = HttpProcessorBuilder.create().add(new ResponseDate()).add(new ResponseServer(\"String_Node_Str\")).add(new ResponseContent()).add(new ResponseConnControl()).build();\n UriHttpAsyncRequestHandlerMapper reqistry = new Uri... |
"public void sendCVSProjectUpdateRequest(User touser, String msg) {\n ID receiver = null;\n if (touser != null) {\n receiver = touser.getID();\n }\n try {\n final SharedObjectMsg m = SharedObjectMsg.createMsg(null, HANDLE_CVS_PROJECT_UPDATE_REQUEST_MSG, getUser(), msg);\n forwardMsgTo(r... |
"public void delete(final Id.Artifact artifactId) throws IOException {\n try {\n transactional.execute(new TxRunnable() {\n public void run(DatasetContext context) throws Exception {\n ArtifactCell artifactCell = new ArtifactCell(artifactId);\n Table metaTable = getMet... |
"public SWTBotMenu click() {\n log.debug(MessageFormat.format(\"String_Node_Str\", this));\n waitForEnabled();\n if (SWTUtils.hasStyle(widget, SWT.CHECK)) {\n toggleCheckSelection();\n } else if (SWTUtils.hasStyle(widget, SWT.RADIO)) {\n setRadioSelection();\n }\n notify(SWT.Selection);\... |
"public String generatePutCode(IOPort sourcePort, String offset, String token) throws IllegalActionException {\n TypedIOPort sinkPort = (TypedIOPort) getComponent().getContainer();\n if (sinkPort.isOutput()) {\n StringBuffer code = new StringBuffer();\n ptolemy.cg.adapter.generic.program.procedural.... |
"public void execute(Bundle bundle) {\n Exception exception = (Exception) bundle.getSerializable(QBServiceConsts.EXTRA_ERROR);\n int errorCode = bundle.getInt(QBServiceConsts.EXTRA_ERROR_CODE);\n parseExceptionMessage(exception);\n}\n"
|
"public String execute(Map params, String body, RenderContext renderContext) throws MacroException {\n String user = (String) params.get(USER_PARAM);\n if (user == null) {\n throw new MacroException(\"String_Node_Str\");\n }\n int maxEntries = -1;\n try {\n maxEntries = Integer.parseInt((St... |
"private void setUpOrgs(final View view) {\n final ImageView icon = (ImageView) view.findViewById(R.id.iconOrgs);\n IconicsDrawable githubIconDrawable = drawable(view.getContext(), Octicons.Icon.oct_organization);\n icon.setImageDrawable(githubIconDrawable);\n textOrgs = (TextView) view.findViewById(R.id.te... |
"private static void writeMovieToFile(Movie scrapedMovie, File scrapeTarget) {\n MoviescraperPreferences preferences = MoviescraperPreferences.getInstance();\n File nfoFile = new File(Movie.getFileNameOfNfo(scrapeTarget, preferences.getNfoNamedMovieDotNfo()));\n File posterFile = new File(Movie.getFileNameOfPo... |
"public IStatus install(IProgressMonitor progress, List<URI> allRepoUris) throws Exception {\n IStatus installStatus = super.install(progress, allRepoUris);\n if (installStatus.isOK()) {\n try {\n copyJars2PluginsFolder();\n } catch (MalformedURLException e) {\n MultiStatus mul... |
"public void processSpecificStudyEnvUuid(HttpServletRequest request, UserAccount ub) {\n HttpSession session = request.getSession();\n String studyEnvUuid = (String) request.getParameter(\"String_Node_Str\");\n if (StringUtils.isEmpty(studyEnvUuid))\n return allUserRolesUpdated;\n StudyDAO studyDAO =... |
"public boolean performOk() {\n for (int i = 0; i < bindingName.size(); i++) {\n try {\n String value = null;\n Text propertyText = (Text) propertyTextList.get(i);\n if (!propertyText.isDisposed() && propertyText.getText() != null && propertyText.getText().trim().length() > 0)... |
"public List<Parameter> getParameters() {\n if (this.paramters != null) {\n return Collections.unmodifiableList(this.paramters);\n }\n return null;\n}\n"
|
"public List<Statistics> find(String tenantId, String name, Map<String, String> dimensions, DateTime startTime, DateTime endTime, List<String> statistics, int period) throws Exception {\n String serieNameRegex = buildSerieNameRegex(tenantId, name, dimensions);\n String statsPart = buildStatsPart(statistics);\n ... |
"public FaunusGraph exceptEdgeLabels(final String... labels) throws IOException {\n this.mapSequenceConfiguration.setStrings(ExceptEdgeLabels.LABELS + \"String_Node_Str\" + this.mapSequenceClasses.size(), labels);\n this.mapSequenceClasses.add(ExceptEdgeLabels.Map.class);\n return this;\n}\n"
|
"public Object invoke(Object object, Object[] arguments) {\n arguments = ParameterUtils.getActualArguments(arguments, length, varArgsClass, 1);\n arguments[0] = object;\n return method.invoke(object, arguments);\n}\n"
|
"public String[] getValues() {\n if (this.state == STATE_COMBO) {\n OptionItem item = (OptionItem) this.comboBox.getSelectedItem();\n return item == null ? null : new String[] { item.getValue() };\n } else {\n List<OptionItem> values = this.list.getSelectedValuesList();\n if (values ==... |
"public static String invokeAsync(CommandRunner.CommandInvocation commandInvocation) {\n if (commandInvocation == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n CountDownLatch latch = new CountDownLatch(1);\n DetachedCommandHelper helper = new DetachedCommandHelper(commandIn... |
"static Step createDxStepForDxPseudoRule(Iterable<Path> filesToDex, String outputPath, EnumSet<Option> dxOptions) {\n if (outputPath.endsWith(DexStore.XZ.getExtension())) {\n List<Step> steps = Lists.newArrayList();\n String tempDexJarOutput = outputPath.replaceAll(\"String_Node_Str\", \"String_Node_St... |
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n this.addPositionalNodes(xPathFragment, namespaceResolver);\n try {\n if (isStartElementOpen) {\n getWriter().write('>');\n }\n if (!isLastEventText) {\n if (numberOfTabs >... |
"public List<String> processJson(List<Filter> corpusFilters, String jsonFilepath, String keyFields) throws JsonSyntaxException, JsonIOException, IOException, ParseException {\n if (null == corpusFilters)\n corpusFilters = new ArrayList<Filter>();\n List<String> parentKeys = JsonParser.getParentKeys(jsonFil... |
"private Service parseService(Package owner, Resources res, XmlPullParser parser, AttributeSet attrs, int flags, String[] outError) throws XmlPullParserException, IOException {\n TypedArray sa = res.obtainAttributes(attrs, com.android.internal.R.styleable.AndroidManifestService);\n if (mParseServiceArgs == null) ... |
"public void randomMove() {\n Random generator = new Random();\n float f = generator.nextFloat() * 100;\n if ((int) f < 50 && currentTurn.wallCount() > 0) {\n wall();\n float wall = generator.nextFloat() * (wallBackerList.size() - 1);\n PlaceWall tmp = wallBackerList.get((int) wall);\n ... |
"public void UpdateCursor() {\n try {\n LoaderManager loader = getActivity().getSupportLoaderManager();\n loader.initLoader(0, null, new LoaderCallbacks<Cursor>() {\n public Loader<Cursor> onCreateLoader(int id, Bundle args) {\n return new NewsDetailCursorLoader(getActivity(),... |
"private void addMesh(EntityRef entity) {\n MeshComponent meshComponent = entity.getComponent(MeshComponent.class);\n if (meshComponent != null && meshComponent.material != null) {\n if (meshComponent.translucent) {\n translucentMeshSorter.add(entity);\n } else {\n opaqueMesh.p... |
"public void replacePrevPos(SearchState searchState, long newValue) {\n checkValueForPut(newValue);\n long prevPos = searchState.searchPos;\n if (!searchState.putAfterFailedSearch)\n prevPos = stepBack(prevPos);\n if (oldValueInPositions) {\n int oldEntry = bytes.readInt(prevPos);\n lon... |
"protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {\n NodeRef nextDispositionActionNodeRef = getNextDispostionAction(actionedUponNodeRef);\n boolean checkError = true;\n Boolean checkErrorValue = (Boolean) action.getParameterValue(PARAM_NO_ERROR_CHECK);\n if (checkErrorValue != null) {... |
"public IValue checkArguments(MarkerList markers, ICodePosition position, IContext context, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n if ((this.modifiers & Modifiers.PREFIX) == Modifiers.PREFIX && !this.isStatic()) {\n IValue argument = arguments.get... |
"public void run() {\n try {\n JSONArray j = (JSONArray) t.getJsonResult();\n setItems(j);\n } catch (Exception e) {\n list.setAdapter(new ArrayAdapter<String>(getActivity(), R.layout.pl_error_listitem, android.R.id.text1, new String[] { t.getURL(), \"String_Node_Str\" + e.getMessage(), Max.g... |
"public <T> T get(Object object, String xpath, Class<T> target) throws IllegalArgumentException {\n Bounded b = (Bounded) object;\n Object value = null;\n if (\"String_Node_Str\".equals(xpath)) {\n value = b.bounds().orNull();\n } else {\n final Node node;\n if (b instanceof NodeRef) {\... |
"public void testRemoveAll_nullCollectionReferenceEmptySubject() {\n try {\n collection.removeAll(null);\n } catch (NullPointerException tolerated) {\n }\n}\n"
|
"protected char[] ensurePadding(char[] chars) {\n char[] result = chars;\n int paddingCount = 0;\n int remainder = chars.length % 4;\n if (remainder == 2 || remainder == 3) {\n paddingCount = 4 - remainder;\n }\n if (paddingCount > 0) {\n result = new char[chars.length + paddingCount];\n... |
"public void actionPerformed(ActionEvent e) {\n if (parent == null) {\n return;\n }\n Configuration config = parent.getConfiguration();\n if (config == null) {\n return;\n }\n if (cacheDir != null) {\n File fromConfig = config.getStorageDir();\n if (fromConfig != null && fr... |
"public void update(OrderRequest orderRequest) {\n OrderRequest o = repository.getOne(orderRequest.getID());\n o.setDay(orderRequest.getDay());\n o.setHour(orderRequest.getHour());\n o.setMonth(orderRequest.getMonth());\n o.setPublishedBy(orderRequest.getPublishedBy());\n o.setDescription(orderRequest... |
"static DatumShiftGridFile<Angle, Length> getOrLoad(final Path file, final double[] averages, final double scale) throws FactoryException {\n final Path resolved = DataDirectory.DATUM_CHANGES.resolve(file).toAbsolutePath();\n DatumShiftGridFile<?, ?> grid = DatumShiftGridFile.CACHE.peek(resolved);\n if (grid =... |
"public void delete() {\n if (input.parameterNumber() >= 2) {\n final String[] parameters = Arrays.copyOfRange(input.getParameters(), 1, input.parameterNumber());\n try {\n for (final String parameter : parameters) {\n schemaSyncopeOperations.delete(input.firstParameter(), par... |
"public DTWorkerParams doCompute(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n if (context.isFirstIteration()) {\n return new DTWorkerParams();\n }\n DTMasterParams lastMasterResult = context.getLastMasterResult();\n final List<TreeNode> trees = lastMasterResult.getTrees();\n final Ma... |
"public void clearInstanceCache() throws IOException {\n instanceCache.clear();\n replacementCache.clear();\n externalizers.clear();\n instanceSeq = 0;\n if (byteOutput != null) {\n write(TC_RESET);\n }\n}\n"
|
"public void initialize() throws IllegalActionException {\n super.initialize();\n CompositeActor ca = (CompositeActor) this.getContainer();\n List<HlaManager> hlaManagers = null;\n while (ca != null) {\n hlaManagers = ca.attributeList(HlaManager.class);\n if (hlaManagers.size() < 1) {\n ... |
"private Map<String, byte[]> compile(MemoryJavaFileManager manager, Iterable<? extends JavaFileObject> compUnits, Writer err, String sourcePath, String classPath) {\n DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>();\n List<String> options = new ArrayList<String>();\n ... |
"public static void createSubset(Product sourceProduct, Rectangle bounds) {\n if (MultiSizeIssue0.isMultiSize(sourceProduct)) {\n final Product resampledProduct = MultiSizeIssue0.maybeResample(sourceProduct);\n if (resampledProduct != null) {\n sourceProduct = resampledProduct;\n } el... |
"public void testUpdateCatalogEntryForm() throws IOException, URISyntaxException {\n RestConnection conn = new RestConnection();\n assertTrue(conn.login(\"String_Node_Str\", \"String_Node_Str\"));\n URI uri = UriBuilder.fromUri(getContextURI()).path(\"String_Node_Str\").path(entry2.getKey().toString()).build()... |
"public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {\n if (SuperConductorMod.pass == 0) {\n renderer.renderStandardBlock(block, x, y, z);\n return true;\n } else {\n renderGlow(world, x, y, z, block, renderer);\n }\n ... |
"public void validate() throws ValidationException {\n boolean invalid = true;\n try {\n if (Throwable.class.isAssignableFrom(Class.forName(methodDesc.returnTypeAsString()))) {\n invalid = false;\n }\n }\n if (invalid) {\n throw new ValidationException(\"String_Node_Str\", me... |
"public void removeOpenOffer(OpenOffer openOffer, ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {\n if (!offersToBeEdited.containsKey(openOffer.getId())) {\n Offer offer = openOffer.getOffer();\n if (openOffer.isDeactivated()) {\n openOffer.setStorage(openOfferTradabl... |
"public void doAfterCompose(Component comp) throws Exception {\n super.doAfterCompose(comp);\n boolean isEE = \"String_Node_Str\".equals(Version.getEdition());\n UserActionManager uam = ss.getUserActionManager();\n uam.registerHandler(DefaultUserActionManagerCtrl.Category.AUXACTION.getName(), AuxAction.NEW_... |
"public void addCustomTranslation(final String key, final String locale, final String customTranslation) {\n Map<String, String> localeAndCustomTranslation = Maps.newHashMap();\n localeAndCustomTranslation.put(locale, customTranslation);\n getTenantCustomTranslationsCache().put(key, localeAndCustomTranslation)... |
"private List<Class<? extends Annotation>> loadTargetAnnotations(ClassLoader loader) {\n List<Class<? extends Annotation>> targetAnnotationClasses = null;\n if (!targetAnnotationNames.isEmpty()) {\n targetAnnotationClasses = new ArrayList<Class<? extends Annotation>>(targetAnnotationNames.size());\n ... |
"protected void createPropertiesColumn() {\n PropertiesColumn[] columnsForNodeTable = { PropertiesColumn.NODE_ID, PropertiesColumn.NODE_LABEL };\n PropertiesColumn[] columnsForEdgeTable = { PropertiesColumn.EDGE_ID, PropertiesColumn.EDGE_LABEL, PropertiesColumn.EDGE_WEIGHT };\n for (PropertiesColumn columnForN... |
"public void drawPath(Path path, Paint paint) {\n AwtPaint awtPaint = AwtGraphicFactory.getAwtPaint(paint);\n AwtPath awtPath = AwtGraphicFactory.getAwtPath(path);\n setColorAndStroke(awtPaint);\n this.graphics2D.setPaint(awtPaint.texturePaint);\n Style style = awtPaint.style;\n switch(style) {\n ... |
"protected synchronized void authenticate(Context context, String consumerKey, String consumerSecret, AuthProviderData authProviderData, SocializeAuthListener authListener, boolean do3rdPartyAuth) {\n if (checkKeys(consumerKey, consumerSecret, authListener)) {\n if (assertInitialized(context, authListener)) {... |
"public void appTransitionStarting(long startTime, long duration) {\n if (!mKeyguardFadingAway && duration > 0) {\n mIconController.appTransitionStarting(startTime, duration);\n }\n if (mIconPolicy != null) {\n mIconPolicy.appTransitionStarting(startTime, duration);\n }\n}\n"
|
"private boolean getPermanentParameter(String[] params) {\n return params[params.length - 2].equalsIgnoreCase(\"String_Node_Str\");\n}\n"
|
"public void set() throws Exception {\n EnumSet<Type> types = EnumSet.of(Type.High, Type.Lower);\n EnumSet set = baseHession2Serialize(types);\n assertTrue(set.contains(Type.High));\n assertFalse(set.contains(Type.Normal));\n}\n"
|
"public void use(AbstractPlayer p, AbstractMonster m) {\n if (this.upgraded) {\n this.scaling = .5;\n } else {\n this.scaling = .33;\n }\n AbstractDungeon.actionManager.addToBottom(new DamageAction((AbstractCreature) m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.