content stringlengths 40 137k |
|---|
"private boolean isSet(Object object) {\n Boolean isSet;\n try {\n Boolean isSet = (Boolean) PrivilegedAccessHelper.invokeMethod(getIsSetMethod(object.getClass()), object, isSetParameters);\n return isSet.booleanValue();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n ... |
"public void actionMenuEditAnonymize() {\n if (model == null) {\n main.showInfoDialog(main.getShell(), Resources.getMessage(\"String_Node_Str\"), Resources.getMessage(\"String_Node_Str\"));\n return;\n }\n if (model.getInputConfig().getInput() == null) {\n main.showInfoDialog(main.getShell... |
"public void run() {\n new CreateNewAnalysisAction().run(null, null);\n AnalysisEditor editor = (AnalysisEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\n if (editor != null) {\n ColumnMasterDetailsPage page = (ColumnMasterDetailsPage) editor.getMasterPage... |
"protected boolean performInsert(Object model, PropertyHandle propertyHandle, String type, String position, Map extendData) throws Exception {\n if (type == null) {\n if (propertyHandle == null) {\n DesignElementHandle handle = ((CrosstabCellHandle) ((ExtendedItemHandle) model).getReportItem()).get... |
"protected int scan(final ReadSet readIndexFilter, final IndexedIdentifier targetIds, final AlignmentWriter writer, final AlignmentTooManyHitsWriter tmhWriter) throws IOException {\n int numAligns = 0;\n final ProgressLogger progress = new ProgressLogger(LOG);\n SAMFileReader.setDefaultValidationStringency(SAM... |
"private synchronized boolean _hasOutsideToken(Workspace workspace, DDEDirector director, TimeKeeper timeKeeper, boolean _hideNullTokens) {\n timeKeeper.resortRcvrList();\n if (timeKeeper.getNextTime() == INACTIVE) {\n requestFinish();\n }\n if (getRcvrTime() == INACTIVE && !_terminate) {\n re... |
"void clearChunkIds() {\n this.chunkIdMap.clear();\n}\n"
|
"public boolean retryExecution() throws KeeperException, InterruptedException {\n int doneWorkers;\n synchronized (LOCK) {\n doneWorkers = (int) NettyMasterCoordinator.this.iterResults.size();\n }\n if (System.nanoTime() % 30 == 0) {\n LOG.info(\"String_Node_Str\", context.getCurrentIteration(... |
"protected void finalProcess(List<GraphTargetItem> list, int level, FinalProcessLocalData localData) throws InterruptedException {\n boolean[] toDelete = new boolean[list.size()];\n for (int i = 0; i < list.size(); i++) {\n if (Thread.currentThread().isInterrupted()) {\n throw new InterruptedExc... |
"public RestfulResponse getNodeList(NodePaginationReq request) {\n RestfulResponse response = new RestfulResponse();\n request.setLimit(10000);\n PaginationRsp<Node> paginationRsp = appContext.getBackendRegistrySrv().getOnlineNodes(request);\n response.setSuccess(true);\n response.setResults(CollectionUt... |
"public String sendGetAttributes(String ontid) throws SDKException, ConnectorException, IOException {\n if (contractAddress == null) {\n throw new SDKException(ErrorCode.NullCodeHash);\n }\n byte[] parabytes = buildParams(ontid.getBytes());\n Transaction tx = sdk.vm().makeInvokeCodeTransaction(contra... |
"private boolean resolveChanges() {\n if (newSelectedObject == null) {\n return;\n }\n Object key = getKey(newSelectedObject);\n boolean sameKey = curKey == null ? key == null : curKey.equals(key);\n boolean changed = false;\n if (newSelected) {\n changed = !sameKey;\n curSelectio... |
"public void downloadAndInstall(String url, String mimetype, AppInfo appInfo) {\n if (null == url || null == mimetype || null == appInfo) {\n throw new NullPointerException();\n }\n if (null == appInfo.mAppCode || null == appInfo.mAppVersion || null == appInfo.mAppName) {\n throw new IllegalArgum... |
"public static soot.Local getThisGivenOuter(soot.Type sootType, HashMap getThisMap, soot.Body body, LocalGenerator lg, soot.Local t2) {\n if (InitialResolver.v().hierarchy() == null) {\n InitialResolver.v().hierarchy(new soot.FastHierarchy());\n }\n soot.FastHierarchy fh = InitialResolver.v().hierarchy(... |
"public static org.hl7.fhir.dstu2016may.model.Narrative convertNarrative(org.hl7.fhir.dstu3.model.Narrative src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Narrative tgt = new org.hl7.fhir.dstu2016may.model.Narrative();\n copyElement(src, t... |
"public boolean putMulti(Request req) {\n Record record = getRecord(req);\n boolean added = true;\n if (record == null) {\n record = toRecord(req);\n } else {\n if (!record.isActive()) {\n markAsActive(record);\n }\n if (record.containsValue(req.value)) {\n ... |
"public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {\n Messager messager = processingEnv.getMessager();\n Elements elements = processingEnv.getElementUtils();\n ProvidedChecker providedChecker = new ProvidedChecker(messager);\n for (Element element : roundEnv.getEleme... |
"private void atualizaNomeJogador() {\n nomeJogadorTextView = (TextView) findViewById(R.id.text_view_jogador_adedonha);\n nomeJogadorTextView.setText(\"String_Node_Str\" + this.jogador.nome());\n nomeJogadorTextView.setFocusableInTouchMode(true);\n nomeJogadorTextView.requestFocus();\n}\n"
|
"private static String constructOuterOrderByClause(SqlgGraph sqlgGraph, List<LinkedList<SchemaTableTree>> subQueryLinkedLists) {\n String result = \"String_Node_Str\";\n int countOuter = 1;\n MutableBoolean mutableOrderBy = new MutableBoolean(false);\n for (LinkedList<SchemaTableTree> subQueryLinkedList : s... |
"protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n dbViewerFragment.loadingText.setVisibility(View.GONE);\n stringBuilder.append(\"String_Node_Str\");\n for (String s : schemaList) {\n stringBuilder.append(\"String_Node_Str\").append(s).append(\"String_Node_Str\");\n }\n ... |
"private Boolean isFloatLimitImpl() {\n Boolean fl = this.isFloatLimit;\n if (fl == null) {\n Object parent = this.getOriginalOrCurrentParent();\n if (!(parent instanceof RBlock)) {\n fl = Boolean.TRUE;\n this.isFloatLimit = Boolean.TRUE;\n }\n RBlock blockParent ... |
"public void registerLocation(URL url) {\n if (url == null)\n return;\n try {\n if (url.toString().endsWith(\"String_Node_Str\")) {\n locations.add(ResourceLocation.jar(url.toString()));\n } else {\n locations.add(ResourceLocation.file(new File(url.toURI())));\n }... |
"public void onClick(View v) {\n int position = (Integer) v.getTag();\n StorjNode selectedNode = mItems.get(position);\n alertDialog.cancel();\n deleteNode(selectedNode);\n if (!AlarmReceiver.mRunning) {\n pullSotrjNodeStats(mContext);\n } else {\n AlarmReceiver.mRetrigger = true;\n }... |
"private boolean checkJavaIndicatorIsEixt() {\n String className = this.getClassNameForSave();\n String jarPath = this.getJarPathForSave();\n if (className != null && jarPath != null && !className.trim().equals(PluginConstant.EMPTY_STRING) && !jarPath.trim().equals(PluginConstant.EMPTY_STRING)) {\n for ... |
"private void doNew() {\n doEdit(new ComputedColumn(), true);\n}\n"
|
"public void startExecution() {\n final ReplayThread thread = this.environment.getExecutingThread();\n thread.start();\n}\n"
|
"private void startForeachSplit(String procName, Var arrayVar, String contentsVar, int splitDegree, int leafDegree, boolean haveKeys, List<PassedVar> usedVars, List<RefCount> perIterIncrs) {\n pointStack.peek().add(Turbine.containerSize(TCLTMP_CONTAINER_SIZE, varToExpr(arrayVar)));\n Value containerSize = new Val... |
"public static Pokemon getPokemon(PokemonSpecies species) {\n Pokemon pokemon = new Pokemon(species);\n pokemon.setLevel(1);\n pokemon.setGender(Gender.MALE);\n pokemon.setAbility(Abilities.OVERGROW);\n pokemon.setSlot1(Main.mMoveArray[1]);\n pokemon.setHPStat(setHPStat(pokemon, species));\n for (S... |
"public void testFindRefCells() {\n String formulaValue = \"String_Node_Str\";\n Formula formula = new Formula(formulaValue, null);\n Set refCells = formula.findRefCells();\n assertEquals(\"String_Node_Str\", refCells.size(), 7);\n assertTrue(contains(refCells, \"String_Node_Str\"));\n assertTrue(cont... |
"public int process(Buffer input, Buffer output) {\n if (!checkInputBuffer(input))\n return BUFFER_PROCESSED_FAILED;\n }\n outputWidth = (int) voutput.getSize().getWidth();\n outputHeight = (int) voutput.getSize().getHeight();\n if (!checkInputBuffer(input)) {\n return BUFFER_PROCESSED_FAIL... |
"public Object unpack() {\n synchronized (evaluated) {\n if (evaluated.booleanValue()) {\n return super.unpack();\n }\n int size = unExpandedRef.size();\n boolean safe = true;\n ;\n for (int i = 0; i < size; ++i) {\n if (unExpandedRef.getPredicate(i) !=... |
"public int loadTreeAnalysis(String[] args) throws Exception {\n if (args.length < 4) {\n System.out.println(\"String_Node_Str\");\n return 1;\n }\n String filename = args[1];\n String taxaloaded = args[3];\n boolean tloaded = true;\n boolean isSubset = false;\n if (taxaloaded.toLower... |
"private void updateCachedAssets() {\n boolean isViewVisible = isViewLoaded() && getView().getWindow() != null;\n if (!isViewVisible)\n return;\n CGRect preheatRect = getCollectionView().getBounds();\n preheatRect = preheatRect.inset(0.0, -0.5 * preheatRect.getHeight());\n double delta = Math.abs(... |
"public void checkCreateSubcategory() throws URISyntaxException, IOException {\n RepositoryEntryVO[] wikiVO = new RepositoryEntryVO[COURSES];\n for (int i = 0; i < COURSES; i++) {\n wikiVO[i] = functionalVOUtil.importWiki(deploymentUrl);\n }\n CourseVO[] courseVO = new CourseVO[COURSES];\n for (in... |
"public void onPictureTaken(final byte[] jpegData, final android.hardware.Camera camera) {\n if (mPausing) {\n return;\n }\n mJpegPictureCallbackTime = System.currentTimeMillis();\n mRawPictureAndJpegPictureCallbackTime = mJpegPictureCallbackTime - mRawPictureCallbackTime;\n Log.v(TAG, \"String_No... |
"private void testFactTableSaveAndLoad3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = ... |
"public ICustomerDataset getCustomerDataset() {\n ComparatorsFactory.sort(units, ComparatorsFactory.TEXT_STATISTICS_COMPARATOR_ID);\n CustomerDefaultCategoryDataset customerdataset = new CustomerDefaultCategoryDataset();\n for (IndicatorUnit unit : units) {\n double value = Double.parseDouble(unit.getVa... |
"private CharSequence parseNode(Theme theme, Post post, Node node) {\n if (node instanceof TextNode) {\n String text = ((TextNode) node).text();\n SpannableString spannable = new SpannableString(text);\n detectLinks(theme, post, text, spannable);\n return spannable;\n } else {\n ... |
"public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {\n int first_cpu;\n int nb_cpus;\n Long pid_in = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_PID);\n if (pid_in != null) {\n if (pid_in == 0L) {\n first_cpu = 0;\n nb_cpus = traceSt.getNumberOfCPUs();\n... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = game.getObject(source.getSourceId());\n if (sourceObject != null && controller != null) {\n Permanent targetPermanent = game.getPermanent(getTargetPointer().getF... |
"private Integer getPivotRow(SimplexTableau tableau, final int col) {\n List<Integer> minRatioPositions = new ArrayList<Integer>();\n double minRatio = Double.MAX_VALUE;\n for (int i = tableau.getNumObjectiveFunctions(); i < tableau.getHeight(); i++) {\n final double rhs = tableau.getEntry(i, tableau.ge... |
"public static void determineIconSize() {\n int trayScalingFactor = 0;\n int menuScalingFactor = 0;\n if (SystemTray.AUTO_TRAY_SIZE) {\n if (OS.isWindows()) {\n String windowsVersion = \"String_Node_Str\";\n try {\n ByteArrayOutputStream byteArrayOutputStream = new B... |
"private boolean needsSetCachedMetaData(DataSetHandle dataSetHandle, IResultMetaData rsMeta) throws BirtException {\n if (dataSetHandle.getCachedMetaDataHandle() == null || rsMeta == null || rsMeta.getColumnCount() == 0)\n return true;\n List list = new ArrayList();\n for (Iterator iter = dataSetHandle.... |
"public void run() {\n if (!bluetooth.isConnected()) {\n if (bluetooth.checkBluetoothAvailable()) {\n bluetooth.connect();\n }\n } else {\n robotControl.sendCommandString(RobotControl.UPDOWN_AXIS, updownValue);\n robotControl.sendCommandString(RobotControl.SIDEWAYS_AXIS, sid... |
"public Collection<AuditResult> getResults() {\n try {\n ImmutableList.Builder<AuditResult> listBuilder = ImmutableList.<AuditResult>builder();\n for (TaskAssignment a : unusedTaskAssignments()) {\n listBuilder.add(new AuditResult(AuditResultType.warning, String.format(\"String_Node_Str\", a... |
"public void testAddStrongCheck() {\n final int MAX = 5000;\n PageAccessFile paf = createPageAccessFile();\n PagedOidIndex ind = new PagedOidIndex(paf);\n for (int i = 1000; i < 1000 + MAX; i++) {\n ind.insertLong(i, 32, 32 + i);\n for (int j = 1000; j <= i; j++) {\n FilePos fp2 = i... |
"public void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n Guild guild = event.getGuild();\n TextChannel tc = ldm.getServerlogChannel(guild);\n TextChannel channel = FinderUtil.getDefaultChannel(event.getGuild());\n User oldmember = event.getMember().getUser();\n Calendar calendar = GregorianCalend... |
"private int compressGraphLabels(List<DirectedMultigraphWithRoot<Vertex<StringBuffer>, Edge<StringBuffer>>> graphs, Map<String, String> labelDict, int currentLabel) {\n String label;\n for (DirectedGraph<Vertex<StringBuffer>, Edge<StringBuffer>> graph : graphs) {\n for (Edge<StringBuffer> edge : graph.getE... |
"public HttpResponse<NameUsageMatch2> getMatch(ExtendedRecord extendedRecord) {\n HttpResponse<NameUsageMatch2> response = tryNameMatch(extendedRecord.getCoreTerms());\n if (isSuccessfulMatch(response) || !hasIdentifications(extendedRecord)) {\n return response;\n }\n LOG.info(\"String_Node_Str\");\n... |
"public void start() {\n dB.log(\"String_Node_Str\" + id + \"String_Node_Str\" + ticks + \"String_Node_Str\");\n if (ticks > 0)\n taskId = Bukkit.getScheduler().scheduleSyncRepeatingTask(DenizenAPI.getCurrentInstance(), new Runnable() {\n public void run() {\n revolve();\n ... |
"public void datasetLineage(HttpRequest request, HttpResponder responder, String namespaceId, String datasetId, String startStr, String endStr, int levels) throws Exception {\n checkLevels(levels);\n TimeRange range = parseRange(startStr, endStr);\n Id.DatasetInstance datasetInstance = Id.DatasetInstance.from(... |
"public void describeTenant(final String domainName) throws CommandException {\n try {\n Type listType = new TypeToken<ArrayList<TenantInfoBean>>() {\n }.getType();\n List<TenantInfoBean> tenantList = (List<TenantInfoBean>) restClient.listEntity(ENDPOINT_LIST_TENANTS, listType, \"String_Node_Str... |
"public void updated(Dictionary<String, ?> props) throws ConfigurationException {\n if (props == null) {\n configs.clear();\n configs.putAll(defaults);\n } else {\n try {\n Enumeration<String> keys = props.keys();\n while (keys.hasMoreElements()) {\n Strin... |
"private void createEntrance(World world, Random random) {\n int y = getAverageGroundLevel(world, BoundingBoxHelper.getCorrectBox(coordBaseMode, getXWithOffset(42, 0), 0, getZWithOffset(42, 0), 5, 7, 0, xShift));\n if (checkGround(world, 42, 47, y)) {\n this.fillWithRandomizedBlocks(world, boundingBox, 42,... |
"private ClassBuilder constructClass(EndpointState curr) {\n Set<IOAction> as = curr.getTakeable();\n IOAction a = as.iterator().next();\n if (a instanceof Send) {\n return new SendSocketGenerator(this, curr).generateType();\n } else if (a instanceof Receive) {\n return (as.size() > 1) ? new B... |
"public boolean isPoweringTo(ForgeDirection side) {\n if (this.prevDian <= 0 && this.dian <= 0) {\n return false;\n }\n return this.doScan() && this.detectedMissiles.size() > 0;\n}\n"
|
"public static String hidePassword(final String password) {\n if (password == null) {\n return PASS_COVER + PASS_COVER;\n }\n String testPassword = password.trim();\n if (testPassword.startsWith(ContextParameterUtils.JAVA_NEW_CONTEXT_PREFIX)) {\n String variableName = testPassword.substring(Co... |
"private String applyFont(String fontName, int fontStyle, float fontSize, String text) {\n if (isIntrinsicFont(fontName)) {\n return applyIntrinsicFont(fontName, fontStyle, fontSize, text);\n } else {\n try {\n String fontPath = getFontPath(fontName);\n if (fontPath == null) {\... |
"public String getMessage() {\n return handle.getMessage().toLegacy();\n}\n"
|
"public boolean reloadOutlinePage() {\n if (!getActivePageInstance().getId().equals(XMLSourcePage_ID) || outlinePage == null || !getCurrentPageInstance().getId().equals(XMLSourcePage_ID)) {\n return false;\n }\n if (outlinePage.getCurrentPage() instanceof DesignerOutlinePage || outlinePage.getCurrentPag... |
"public String toString() {\n StringBuilder b = new StringBuilder();\n b.append(this.nickname);\n b.append(\"String_Node_Str\").append(guid).append(\"String_Node_Str\");\n b.append(\"String_Node_Str\").append(level);\n b.append(\"String_Node_Str\").append(level);\n b.append(\"String_Node_Str\").append... |
"private void generateInlineAccessors(ClassFile classFile, final InlineAccessFieldBinding accessField, final ResolvedMember field) {\n final FieldBinding fieldBinding = factory.makeFieldBinding(field);\n generateMethod(classFile, accessField.reader, makeEffectiveSignatureAttribute(field, Shadow.FieldGet, false), ... |
"protected void onTypeRef(SourceTypeBinding referencedType, CompilationUnitDeclaration unitOfReferrer) {\n String referencedFn = String.valueOf(referencedType.getFileName());\n if (!unchangedCudsByFileName.containsKey(referencedFn) && !changedCudsByFileName.containsKey(referencedFn)) {\n String referrerFn ... |
"public boolean saveResource(Resource resource) {\n try {\n resourceManager.saveResource(resource);\n return true;\n } catch (PersistenceException e) {\n return false;\n }\n}\n"
|
"public void submitCallableToMember_withMultiExecutionCallback() throws Exception {\n final IExecutorService service = client.getExecutorService(randomString());\n final CountDownLatch responseLatch = new CountDownLatch(CLUSTER_SIZE);\n final CountDownLatch completeLatch = new CountDownLatch(CLUSTER_SIZE);\n ... |
"public double[] getExtrema() {\n try {\n MrsImageDataProvider dp = getDataProvider();\n if (dp != null) {\n MrsPyramidMetadata metadata = dp.getMetadataReader().read();\n ImageStats stats = metadata.getStats(0);\n if (stats != null) {\n return new double... |
"public void onGet(Object item) {\n if (checkValidCache(item)) {\n ArrayList<Event> events = (ArrayList<Event>) item;\n mAdapter.addAll(events);\n setIsLoading(false);\n Snackbar.make(getView(), R.string.cached_content, Snackbar.LENGTH_SHORT).show();\n } else {\n modelCache.remo... |
"public synchronized TooltipPainter setUnlimitedWidth() {\n this.isFixedWidth = false;\n this.textLayout = null;\n return this;\n}\n"
|
"private void marshal(Object object, Writer writer, ABSTRACT_SESSION session, DESCRIPTOR xmlDescriptor) throws XMLMarshalException {\n if ((object == null) || (writer == null)) {\n throw XMLMarshalException.nullArgumentException();\n }\n boolean isXMLRoot = false;\n String version = DEFAULT_XML_VERSI... |
"public void RegisterRecipes() {\n ItemStack var1 = new ItemStack(Block.stone);\n new ItemStack(Block.cobblestone);\n ItemStack var3 = new ItemStack(Block.dirt);\n ItemStack var4 = new ItemStack(Block.sand);\n ItemStack var5 = new ItemStack(Block.gravel);\n ItemStack var6 = new ItemStack(Block.glass);... |
"public void run() {\n while (!fExecutor.isShutdown()) {\n final TmfExperiment<?> experiment = TmfExperiment.getCurrentExperiment();\n if (experiment != null) {\n final TmfEventRequest request = new TmfEventRequest<TmfEvent>(TmfEvent.class, TmfTimeRange.ETERNITY, 0, ExecutionType.FOREGROUND)... |
"public Long startCluster(String clusterName) throws Exception {\n logger.info(\"String_Node_Str\" + clusterName);\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n if (cluster == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw BddExcep... |
"public String generateInitializeCode() throws IllegalActionException {\n CodeStream codeStream = _templateParser.getCodeStream();\n codeStream.clear();\n LinkedList args = new LinkedList();\n Parameter stopTime = ((ptolemy.actor.lib.DiscreteClock) getComponent()).stopTime;\n double doubleStopTime = ((Do... |
"public void deleteFromTableTest3() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_No... |
"public void readXML(Element textModelElement) {\n Element showNodeE = (Element) textModelElement.getElementsByTagName(\"String_Node_Str\").item(0);\n showNodeLabels = Boolean.parseBoolean(showNodeE.getAttribute(\"String_Node_Str\"));\n Element showEdgeE = (Element) textModelElement.getElementsByTagName(\"Stri... |
"public TCTokenResponse handleActivate(TCTokenRequest request) {\n final DynamicContext dynCtx = DynamicContext.getInstance(TR03112Keys.INSTANCE_KEY);\n boolean performChecks = TCTokenHacks.isPerformTR03112Checks(request);\n if (!performChecks) {\n logger.warn(\"String_Node_Str\");\n }\n boolean i... |
"public ObjectMessages validate(final RpslObject rpslObject) {\n final ObjectMessages objectMessages = new ObjectMessages();\n final ObjectType rpslObjectType = rpslObject.getType();\n final Map<AttributeType, Integer> attributeCount = Maps.newEnumMap(AttributeType.class);\n for (final AttributeTemplate att... |
"public static Css parse(final String css) {\n if (css == null) {\n return null;\n }\n List<Entry> colorDefinitions = getColorDefinition(css);\n int endOfColorDefinitions = css.indexOf(\"String_Node_Str\");\n for (int lineStart = endOfColorDefinitions; lineStart > 0; lineStart--) {\n if (cs... |
"public String getProviderForServiceInNetwork(long networkId, Service service) {\n SearchCriteria<NetworkServiceMapVO> sc = AllFieldsSearch.create();\n sc.setParameters(\"String_Node_Str\", networkId);\n sc.setParameters(\"String_Node_Str\", service.getName());\n NetworkServiceMapVO ntwkSvc = findOneBy(sc);... |
"public void setConfused(boolean confused) {\n this.isConfused = confused;\n}\n"
|
"public void onBindViewHolder(DocumentHolder holder, int position) {\n final Context context = getContext();\n final State state = getDisplayState(DirectoryFragment.this);\n final DocumentInfo doc = getArguments().getParcelable(EXTRA_DOC);\n final RootsCache roots = DocumentsApplication.getRootsCache(contex... |
"public boolean set(int sequence, String message) throws IOException {\n msgFile.seek(msgFile.length());\n headerFile.seek(headerFile.length());\n long offset = msgFile.getFilePointer();\n if (offset > 0) {\n headerBuffer.append(' ');\n }\n int size = message.length();\n messageIndex.put(new... |
"public IStatus doRun() {\n try {\n TimeMeasure.display = CommonsPlugin.isDebugMode();\n TimeMeasure.displaySteps = CommonsPlugin.isDebugMode();\n TimeMeasure.measureActive = CommonsPlugin.isDebugMode();\n TimeMeasure.begin(\"String_Node_Str\");\n jetFilesCompileFail.clear();\n ... |
"public PurchaseOrderLine createPurchaseOrderLine(PurchaseOrder purchaseOrder, PurchaseOrderLine purchaseOrderLine) throws AxelorException {\n LOG.debug(\"String_Node_Str\", new Object[] { purchaseOrderLine.getProductName() });\n return purchaseOrderLineService.createPurchaseOrderLine(purchaseOrder, purchaseOrder... |
"boolean doesMatch(String[] otherFields, double errorMargin) {\n if (!(fields.length == otherFields.length)) {\n if (debug)\n System.err.printf(\"String_Node_Str\", fields.length, otherFields.length);\n return false;\n for (int i = 0; i < fields.length; i++) {\n if (i == doublePlus... |
"public static <X> X timeout(Callable<X> c, long timeout) {\n final Ref<X> ret = new Ref<>();\n final Ref<Throwable> thr = new Ref<>();\n Thread t = new Thread(() -> {\n try {\n X x = c.call();\n synchronized (ret) {\n ret.set(x);\n }\n } catch (Exc... |
"public void entryRemoved(EntryEvent<E, V> event) {\n itemListener.itemRemoved(event.getValue());\n}\n"
|
"public final boolean finishActivity(IBinder token, int resultCode, Intent resultData, boolean finishTask) {\n if (resultData != null && resultData.hasFileDescriptors() == true) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n synchronized (this) {\n ActivityRecord r = ActivityR... |
"private void stopBatch(ConfigurableApplicationContext ctx, String jobName) throws Exception {\n int returnCode = 0;\n try {\n findBeans(ctx);\n Set<Long> runningJobExecutionIDs = operator.getRunningExecutions(jobName);\n if (runningJobExecutionIDs.isEmpty()) {\n throw new JobExecu... |
"public float getMediumFontSize() {\n return 9f * 1000.0f;\n}\n"
|
"public static void main(String[] args) {\n Server server = new Server(new CoreModuleLoader(), new JarModuleLoader());\n new EventListener<ModuleEnableEvent, ModuleEnableEvent>() {\n public void onEvent(ModuleEnableEvent event) {\n }\n }.register(ModuleEnableEvent.class, server.getEventManager())... |
"public void registerIcons(IIconRegister iconRegister) {\n ((TextureMap) iconRegister).setTextureEntry(\"String_Node_Str\", (TextureAtlasSprite) (itemIcon = new TextureBiomeCompass(\"String_Node_Str\")));\n locations = new ArrayList<>(IslandBiomeBase.biomeList.size());\n for (int a = 0; a < IslandBiomeBase.bio... |
"public String getStormpathSecret() {\n return getProperty(ENTERPRISE_STORMPATH_SECRET);\n}\n"
|
"public int getTerrainHeightAt(int x, int z) {\n int height = worldObj.getHeight(TCGenUtils.getBlockPos(x, 0, z)).getY() + 1;\n for (int y = height; y > 0; y--) {\n Block block = worldObj.getBlockState(getBlockPos(x, y, z)).getBlock();\n if (block == Blocks.DIRT || block == Blocks.GRASS || block == ... |
"protected void __handleNonSoapException(HttpServletRequest request, HttpServletResponse response, Exception exception) throws ServletException, IOException {\n exception.printStackTrace();\n BirtUtility.appendErrorMessage(response.getOutputStream(), exception);\n}\n"
|
"public SkyValue compute(SkyKey skyKey, Environment env) throws LoadSkylarkAspectFunctionException, InterruptedException {\n SkylarkAspectLoadingKey aspectLoadingKey = (SkylarkAspectLoadingKey) skyKey.argument();\n String skylarkValueName = aspectLoadingKey.getSkylarkValueName();\n PathFragment extensionFile =... |
"public static void dispatch(final Runnable runnable) {\n currentDisplay.syncExec(runnable);\n}\n"
|
"public DatabaseField buildField(DatabaseField field) {\n try {\n Map<DatabaseField, DatabaseField> builtFields = getObjectBuilder().getFieldsMap();\n DatabaseField builtField = builtFields.get(field);\n if (builtField == null) {\n XMLField xmlField = (XMLField) field;\n xm... |
"public void testTypes() {\n builder.recordReturnType(new JSTypeExpression(JsDocInfoParser.parseTypeString(\"String_Node_Str\"), \"String_Node_Str\"));\n JSDocInfo info = builder.build(null);\n assertEquals(\"String_Node_Str\", JSDocInfoPrinter.print(info));\n builder.recordThisType(new JSTypeExpression(IR.... |
"public void drawVertices(RenderObject robj, DrawMode mode) {\n boolean enableLighting = false;\n if (isLightingEnabled() && !robj.hasNormals()) {\n enableLighting = true;\n setLightingEnabled(false);\n }\n maybeUpdateState(gl);\n boolean selecting = isSelecting();\n boolean hasColors = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.