content stringlengths 40 137k |
|---|
"public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception {\n SolrIndexSearcher searcher = req.getSearcher();\n SchemaField uniqueKeyField = searcher.getSchema().getUniqueKeyField();\n ModifiableSolrParams params = new ModifiableSolrParams(req.getParams());\n configureSolr... |
"public NodeList replaceValue(XMLField xmlField, Node parent, Object value, AbstractSession session) throws XMLMarshalException {\n NodeList nodes = unmarshalXPathEngine.selectNodes(parent, xmlField, getNamespaceResolverForField(xmlField));\n int numberOfNodes = nodes.getLength();\n XMLNodeList createdElements... |
"private void addRelationshipType(int id) {\n setRecovered();\n RelationshipTypeData type;\n if (isRecovered()) {\n type = neoStore.getRelationshipTypeStore().getRelationshipType(id, true);\n } else {\n type = neoStore.getRelationshipTypeStore().getRelationshipType(id);\n }\n lockRelease... |
"public boolean performFinish() {\n final List<ItemRecord> itemRecords = getCheckedElements();\n for (ItemRecord itemRecord : itemRecords) {\n Item item = itemRecord.getProperty().getItem();\n if (item instanceof JobletProcessItem) {\n needToRefreshPalette = true;\n }\n if (... |
"public void setHasStartupDependents(boolean hasDependent) {\n hasStartupDependents = hasDependent;\n}\n"
|
"private FileCredentials getFileCredentials(int truncateEpoch, long snapTimestamp) {\n return FileCredentials.newBuilder().setXcap(new Capability(FILE_ID, SYSTEM_V_FCNTL.SYSTEM_V_FCNTL_H_O_RDONLY.getNumber(), 60, System.currentTimeMillis(), \"String_Node_Str\", truncateEpoch, false, SnapConfig.SNAP_CONFIG_ACCESS_SNA... |
"public void actionPerformed(final CommandEvent event) {\n final LayerSourceAssistantPane pane = new LayerSourceAssistantPane(VisatApp.getApp().getApplicationWindow(), \"String_Node_Str\");\n final LayerSourceDescriptor[] layerSourceDescriptors = BeamUiActivator.getInstance().getLayerSources();\n pane.show(new... |
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n if (mListener != null)\n mListener.onAlarmsSetTitle(getResources().getString(R.string.title_alarms));\n mAdapter.sort();\n}\n"
|
"public static void findCityDealsByLatLong(double lat, double lng, Date checkin, int nights) {\n if (validation.hasErrors()) {\n renderJSON(null);\n } else {\n List<City> cities = City.findActiveCities();\n City city = GeoHelper.getNearestCity(lat, lng, cities);\n Logger.debug(\"String... |
"public static boolean canView(String url) {\n boolean answer = false;\n if (url != null) {\n if (DataURL.isDataURL(url)) {\n try {\n DataURL dataURL = new DataURL(url);\n String mimeType = dataURL.getMimetype();\n if (mimeType != null) {\n ... |
"public boolean isModuleInstalledForBundle(String bundleName) {\n if (LibManagerUiPlugin.getDefault().getBundle().getBundleContext().getProperty(\"String_Node_Str\") != null) {\n return true;\n }\n List<ModuleNeeded> allModulesNeededExtensionsForPlugin = ModulesNeededProvider.getAllModulesNeededExtensio... |
"public static void main(String[] args) {\n List<Double> list = new LinkedList<Double>();\n for (int u = 0; u < close.length; u++) {\n list.add(close[u]);\n }\n Collections.reverse(list);\n for (int u = 0; u < list.size(); u++) {\n close[u] = list.get(u);\n }\n double[] jma = SX.rever... |
"public void run() {\n try {\n NetworkTimer.get().setGameTime(ois.readInt());\n grid = (MainGrid) ois.readObject();\n } catch (Throwable t) {\n t.printStackTrace();\n this.exception = t;\n }\n}\n"
|
"public Set<QueryableEntry> getSubRecords(ComparisonType comparisonType, Comparable searchedValue) {\n MultiResultSet results = new MultiResultSet();\n if (attributeType != null) {\n indexStore.getSubRecords(results, comparisonType, convert(searchedValue));\n }\n}\n"
|
"protected void doDSPost(Context c, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n String button = UIUtil.getSubmitButton(request, \"String_Node_Str\");\n if (button.equals(\"String_Node_Str\")) {\n Collection[] collectio... |
"public org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent convertProvenanceAgentComponent(org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent tgt... |
"public EnhanceEntity findById(Object primaryKey, EntityMetadata m, List<String> relationNames, Client client) {\n return super.findById(primaryKey, m, relationNames, client);\n}\n"
|
"public int hashCode() {\n return Objects.hash(publishedBy, description, maxCost);\n}\n"
|
"public SetResponse findRecords(Name name, int type) {\n if (name.toString().matches(\"String_Node_Str\")) {\n try {\n String[] tryIp = name.toString().replaceAll(\"String_Node_Str\", \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n ... |
"public CapabilityPriorityLevel getLauncherCapabilityLevel() {\n return CapabilityPriorityLevel.HIGH;\n}\n"
|
"public boolean onLongClick(View v) {\n if (mLocks != 0 || !isVisible()) {\n return true;\n }\n if (mRollo.checkClickOK() && mCurrentIconIndex == mDownIconIndex && mCurrentIconIndex >= 0 && mCurrentIconIndex < mAllAppsList.size()) {\n ApplicationInfo app = mAllAppsList.get(mCurrentIconIndex);\n ... |
"public String getErrorMessage() {\n String errorMessage1 = ERROR_MESSAGE_START;\n String errorMessage2 = ERROR_MESSAGE_MULTIPLE_DOC_TYPE;\n String message = null;\n final List<Problem> problems = getProblems();\n if (problems.isEmpty()) {\n return null;\n } else {\n for (Problem problem... |
"private final int jjMoveNfa_2(int startState, int curPos) {\n int[] nextStates;\n int startsAt = 0;\n jjnewStateCnt = 7;\n int i = 1;\n jjstateSet[0] = startState;\n int kind = 0x7fffffff;\n for (; ; ) {\n if (++jjround == 0x7fffffff)\n ReInitRounds();\n if (curChar < 64) ... |
"Collection copy(String URIprefix, String displayId, String version) {\n if (this.checkDescendantsURIcompliance() && isURIprefixCompliant(URIprefix) && isDisplayIdCompliant(displayId) && isVersionCompliant(version)) {\n Collection cloned = this.deepCopy();\n cloned.setWasDerivedFrom(this.getIdentity())... |
"public boolean canChoose(UUID sourceControllerId, Game game) {\n return canChoose(null, sourceControllerId, game);\n}\n"
|
"public static void copy(RollingUpdateStateEntity sourceEntity, RollingUpdateStateEntity destEntity) {\n destEntity.setAccountId(sourceEntity.getAccountId());\n destEntity.setStackId(sourceEntity.getStackId());\n destEntity.setLogicalResourceId(sourceEntity.getLogicalResourceId());\n destEntity.setMinSize(s... |
"private static Text formatNoChecks(Text template, Map<String, ?> replacements) {\n if (template instanceof Placeholder) {\n Object replacement = replacements.get(((Placeholder) template).getKey());\n if (replacement != null) {\n List<Object> formats = new ArrayList<Object>();\n f... |
"public int insertAt(int lineNum, boolean modify, String src) throws CannotCompileException {\n CodeAttribute ca = methodInfo.getCodeAttribute();\n if (ca == null)\n throw new CannotCompileException(\"String_Node_Str\");\n LineNumberAttribute ainfo = (LineNumberAttribute) ca.getAttribute(LineNumberAttri... |
"private LocalizedTranslationBundle getLocalizedBundle(Locale locale) {\n LocalizedTranslationBundle bundle = this.bundleCache.get(locale);\n if (bundle == null) {\n bundle = getSynchLocalizedBundle(locale);\n }\n return bundle;\n}\n"
|
"public void nullProcessor() {\n try {\n cache.invoke(123, null);\n fail(\"String_Node_Str\");\n } catch (NullPointerException e) {\n }\n}\n"
|
"public void upload(final String fileName) {\n try {\n List<RackInfo> racks = readRackInfoFromFile(fileName);\n if (!duplicatedNameCheck(racks)) {\n topologyRestClient.upload(racks);\n CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_TOPOLOGY, null, Constants.OUTPUT_OP_RESULT... |
"public void initData() {\n super.initData();\n initHierarchy();\n calculateTextures();\n initPosCursorLevel1();\n if (bSkipLevel2 == false) {\n initPosCursorLevel2();\n }\n glHeatMapView.setSet(set);\n glHeatMapView.setContentVAType(EVAType.CONTENT_EMBEDDED_HM);\n glHeatMapView.initDa... |
"public void open(final WindowEvent event) {\n final Shell shell = UIUtil.createDefaultShell();\n shell.setLayout(new FillLayout());\n Browser browser;\n if (Constants.OS_LINUX.equalsIgnoreCase(Platform.getOS())) {\n browser = new Browser(shell, SWT.MOZILLA);\n } else {\n browser = new Brow... |
"public static Vector3 max(Vector3 o1, Vector3 o2) {\n return new Vector3(Math.max(o1.x, o2.x), Math.max(o1.y, o2.y), Math.max(o1.z, o2.z));\n}\n"
|
"public Object evaluate(Evaluator evaluator, Exp[] args) {\n Vector v0 = (Vector) getArg(evaluator, args, 0), v1 = (Vector) getArg(evaluator, args, 1);\n if (args.length > 2) {\n throw Util.newInternal(\"String_Node_Str\");\n }\n if (v1.isEmpty()) {\n return v0;\n }\n HashSet set1 = toHa... |
"public void flagInterrupt(int interrupt, IOUnit source, boolean triggerIR) {\n if (triggerIR) {\n interruptSource[interrupt] = source;\n if (debugInterrupts) {\n if (source != null) {\n System.out.println(\"String_Node_Str\" + source.getName());\n } else {\n ... |
"private void toCrateArray(CrateArray array, Object payload) {\n Collection<Object> objects = (Collection<Object>) (payload.getClass().isArray() ? asList((Object[]) payload) : payload);\n for (Object object : objects) {\n TypeInformation<?> type = getTypeInformation(object.getClass());\n if (type.is... |
"public void traverse(JsVisitor v, JsContext<JsStatement> ctx) {\n if (v.visit(this, ctx)) {\n if (iterExpr != null) {\n iterExpr = v.acceptLvalue(iterExpr);\n }\n objExpr = v.accept(objExpr);\n body = v.accept(body);\n }\n v.endVisit(this, ctx);\n}\n"
|
"public void renderContent(GL2 gl) {\n PixelGLConverter pixelGLConverter = layoutManager.getPixelGLConverter();\n float xoffset = pixelGLConverter.getGLWidthForPixelWidth(OFFSET);\n float yoffset = pixelGLConverter.getGLHeightForPixelHeight(OFFSET);\n gl.glPushAttrib(GL2.GL_LINE_BIT);\n gl.glLineWidth(3)... |
"public String importDataDemo(App app) {\n app = appRepo.find(app.getId());\n importParentData(app);\n String modules = app.getModules();\n String type = app.getTypeSelect();\n String lang = getLanguage(app);\n log.debug(\"String_Node_Str\", type, lang);\n if (lang == null) {\n return I18n.g... |
"public void run(EntityBismuth gem) {\n if (this.lastBlockPlace > 20) {\n BlockPos nextPos = gem.getPosition().add(this.direction[0], 0, this.direction[1]);\n gem.lookAt(nextPos.add(this.direction[0], 1, this.direction[1]));\n boolean placed = false;\n for (int i = this.width / 2 * -1; i ... |
"void initialize(boolean deleteFiles) throws IOException {\n close();\n if (deleteFiles) {\n closeAndDeleteFiles();\n } else {\n close();\n }\n String mode = READ_OPTION + WRITE_OPTION + (syncWrites ? SYNC_OPTION : NOSYNC_OPTION);\n messageFileWriter = new RandomAccessFile(msgFileName, m... |
"private Composite createNativeQueryPanel(Composite parent) {\n Composite thePanel = WidgetFactory.createPanel(parent, SWT.NONE, 1, 3);\n GridLayoutFactory.fillDefaults().margins(10, 10).applyTo(thePanel);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(thePanel);\n nativeQueryHelpText = new Text(... |
"public Set<Long> getSummonerIDs() {\n final Set<Long> set = new HashSet<>();\n long ID;\n if (participantId != null) {\n try {\n ID = Long.parseLong(participantId);\n set.add(ID);\n } catch (final NumberFormatException e) {\n }\n }\n for (final LeagueEntry entr... |
"public boolean execute() {\n Gson gson = GsonHelper.getBuilder().create();\n AsyncJobManager asyncMgr = getAsyncJobMgr();\n AsyncJobVO job = getJob();\n if (getSyncSource() == null) {\n VolumeOperationParam param = gson.fromJson(job.getCmdInfo(), VolumeOperationParam.class);\n asyncMgr.syncAs... |
"public void prepareAsync() throws IllegalStateException {\n new AsyncTask<Void, Void, Void>() {\n protected Void doInBackground(Void... params) {\n try {\n prepare();\n mEventHandler.sendEmptyMessage(MEDIA_PREPARED);\n } catch (IOException e) {\n ... |
"public Map<Integer, Object> getPropertyValues(Class<? extends OpenmrsObject> type, String property, EvaluationContext context) {\n Map<Integer, Object> ret = new HashMap<Integer, Object>();\n Cohort baseCohort = context.getBaseCohort();\n if (baseCohort != null && baseCohort.isEmpty()) {\n return ret;\... |
"private final static MinHashBitSketch[] computeSequences(String seq, int kmerSize, int stepSize, int numWords) {\n int remainder = seq.length() % stepSize;\n int numSequence = (seq.length() - remainder) / stepSize;\n if (remainder > 0)\n numSequence++;\n MinHashBitSketch[] sequence = new MinHashBitS... |
"public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean whatIsThis) {\n super.addInformation(itemStack, player, list, whatIsThis);\n NBTTagCompound tagCompound = itemStack.getTagCompound();\n if (tagCompound != null) {\n String mob = tagCompound.getString(\"String_Node_S... |
"public boolean isValid() {\n return getInvalidStateInfo() == \"String_Node_Str\";\n}\n"
|
"private void checkCleanups(Function fn, Block block) {\n Set<String> blockVarNames = Var.nameSet(block.getVariables());\n if (block.getType() == BlockType.MAIN_BLOCK) {\n blockVarNames.addAll(Var.nameList(fn.getInputList()));\n blockVarNames.addAll(Var.nameList(fn.getOutputList()));\n } else {\n... |
"public static <T> List<T> getAllResults(ExecutorService pool, ArrayList<Callable<T>> tasks) {\n try {\n List<T> results = new ArrayList<T>();\n List<Future<T>> futures = invokeAndAwaitAll(pool, tasks);\n for (Future<T> f : futures) {\n results.add(f.get());\n }\n return... |
"public static boolean testing() {\n return isTrue(\"String_Node_Str\");\n}\n"
|
"public Builder replace(Node original, Node newNode, AbstractCompiler compiler) {\n Node parent = original.getParent();\n if (original.getParent().isExprResult()) {\n original = original.getParent();\n }\n String newCode = generateCode(compiler, newNode);\n if (newCode.endsWith(\"String_Node_Str\"... |
"protected Set<OWLDataProperty> getNumericDataPropertiesImpl() throws ReasoningMethodUnsupportedException {\n return Sets.union(getIntDatatypePropertiesImpl(), getDoubleDatatypePropertiesImpl());\n}\n"
|
"public void testReduceCollection() throws Exception {\n FlinkAsciiGraphLoader loader = getLoaderFromString(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n checkExpectationsEqualResult... |
"private static <T extends OpenFileState> T getInstance(SwordBookMetaData metadata) {\n Queue<OpenFileState> availableStates = getQueueForMeta(metadata);\n T queue = (T) availableStates.poll();\n return queue;\n}\n"
|
"private void process(RoundEnvironment roundEnv, Set<Element> elts, Map<String, PackageMetaData> packageMetaDatas) throws Exception {\n Filer filer = processingEnv.getFiler();\n NodeTypeBuilder visitor = new NodeTypeBuilder();\n SetMap<String, ClassTypeInfo> packageToClassTypes = new SetMap<String, ClassTypeIn... |
"public void removeSelection(OWLAxiom ax) {\n if (selectedAxioms.remove(ax)) {\n fireImpactListChanged();\n }\n}\n"
|
"public boolean mergeShard(String shard, Date expireDate) {\n Utils.require(!Utils.isEmpty(shard), \"String_Node_Str\");\n try {\n StringBuilder uri = new StringBuilder(\"String_Node_Str\");\n uri.append(Utils.urlEncode(m_appDef.getAppName()));\n uri.append(\"String_Node_Str\");\n uri.... |
"public void testGetProblemsFrom1000WithLimit10() {\n List<Problem> problems = problemMapper.getProblems(1000, 10);\n Assert.assertEquals(2, problems.size());\n Problem firstProblem = problems.get(0);\n long problemId = firstProblem.getProblemId();\n Assert.assertEquals(1000, problemId);\n String prob... |
"public void onClick(View v) {\n if (isLoading) {\n Toast.makeText(NovelInfoActivity.this, getResources().getString(R.string.system_loading_please_wait), Toast.LENGTH_SHORT).show();\n return;\n }\n new MaterialDialog.Builder(NovelInfoActivity.this).theme(Theme.LIGHT).titleColor(R.color.dlgTitleCo... |
"private boolean allDependentTerminated(List<ApplicationContext> terminationList) {\n boolean allDependentTerminated = false;\n for (ApplicationContext context1 : terminationList) {\n if (this.aliasToActiveMonitorsMap.containsKey(context1.getId())) {\n log.warn(\"String_Node_Str\" + context1.get... |
"public void drawSlot(Slot s) {\n if (s instanceof SlotME) {\n RenderItem pIR = itemRender;\n itemRender = aeri;\n try {\n this.zLevel = 100.0F;\n itemRender.zLevel = 100.0F;\n if (!isPowered()) {\n GL11.glDisable(GL11.GL_LIGHTING);\n ... |
"public void testCurry() {\n eq(RAND_1 / RAND_2, divide.curry(RAND_2).apply(RAND_1).doubleValue());\n}\n"
|
"public Map<String, String[]> getPrivateParameterMap(String windowId) {\n HashMap<String, String[]> parameters = new HashMap<String, String[]>();\n processParams();\n if (wid2Action.containsKey(windowId)) {\n for (PortalURLParameter parm : wid2Action.get(windowId)) {\n parameters.put(parm.get... |
"protected void tearDown() throws Exception {\n mLatinIME.mHandler.removeAllMessages();\n setBooleanPreference(Settings.PREF_BIGRAM_PREDICTIONS, mPreviousBigramPredictionSettings, true);\n setStringPreference(Settings.PREF_AUTO_CORRECTION_THRESHOLD, mPreviousAutoCorrectSetting, DEFAULT_AUTO_CORRECTION_THRESHOL... |
"private Expression repairClassLiteralReference(Expression exp, BlockScope scope, TypeBinding[] valueType) {\n TypeBinding vtb = null;\n if (exp instanceof SingleNameReference) {\n if (exp.resolveType(scope) != null) {\n SingleNameReference ref = (SingleNameReference) exp;\n return ne... |
"public File getDownloadFragment() {\n if (incompleteFile == null)\n return null;\n if (state == CORRUPT_FILE)\n return corruptFile;\n else if (state != COMPLETE) {\n RemoteFileDesc rfd = buckets.getRemoteFileDescForBucket(bucketNumber);\n File incomplete = incompleteFileManager.get... |
"public static int reverse(int n) {\n for (int i = 0; i < 32; i++) {\n n = question0502.swapBit(n, i, 31 - i);\n }\n return n;\n}\n"
|
"public Operation createPartitionOperation(int partition) {\n if (isNullOrEmpty(partitionIdToKeysMap)) {\n return new PartitionWideEntryWithPredicateOperation(name, entryProcessor, predicate);\n }\n return createOperation();\n}\n"
|
"public static boolean isEqualOSDataSetDesign(IBaseDataSetDesign dataSetDesign, IBaseDataSetDesign dataSetDesign2) {\n if (dataSetDesign instanceof IOdaDataSetDesign && dataSetDesign2 instanceof IOdaDataSetDesign) {\n IOdaDataSetDesign dataSet = (IOdaDataSetDesign) dataSetDesign;\n IOdaDataSetDesign da... |
"public void shutdown() {\n Collection<Member> members = getContext().getClusterService().getMemberList();\n Collection<Future> calls = new LinkedList<Future>();\n for (Member member : members) {\n ClientMessage request = ScheduledExecutorShutdownCodec.encodeRequest(getName(), member.getAddress());\n ... |
"public static IDWithIssuer pidWithIssuer(Attributes keys, Issuer defaultIssuerWithPatientID) {\n String id = keys.getString(Tag.PatientID);\n if (id == null)\n return null;\n String entityID = keys.getString(Tag.IssuerOfPatientID);\n String entityUID = null;\n String entityUIDType = null;\n At... |
"protected void estimateInformationLoss() {\n estimateNonMonotonicLoss();\n}\n"
|
"public void checkProcessing() throws NullPointerException, JAXBException, IOException, CoreException {\n IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();\n URI defaultProjectLocation = null;\n IProject project = null;\n String separator = System.getProperty(\"String_Node_Str\");\n ... |
"private void populateWritersByBarcode() {\n final TabbedTextFileWithHeaderParser barcodeParamsParser = new TabbedTextFileWithHeaderParser(BARCODE_PARAMS);\n final String[] columnLabels = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n for (final String columnLabel : columnLab... |
"private static <T> void compileExpression(ExpressionNode node, InfoForWiring wiring, MetaFacade facade) {\n CommonTree expression = node.getASTNode();\n int type = expression.getType();\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + expression.getType());\n switch(type) {\n cas... |
"private boolean calculateShouldRun(NoSqlEntityManager mgr, MonitorDbo monitor, DateTime now) {\n DateTime lastRunTime = monitor.getLastRun();\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + now + \"String_Node_Str\" + lastRunTime + \"String_Node_Str\" + monitor.getId());\n if (lastRunTime... |
"public DynamicValue copy() {\n return new CardsInOpponentGraveyardsCount(this);\n}\n"
|
"private void closeDB(DB db) {\n if (db == null) {\n return;\n }\n scheduleCloseTask(db, filePath);\n}\n"
|
"public void onBlockPlace(BlockPlaceEvent event) {\n Player player = event.getPlayer();\n Block blockPlaced = event.getBlockPlaced();\n int type = blockPlaced.getTypeId();\n if (!j2.hasFlag(player, Flag.MODWORLD)) {\n player.sendMessage(\"String_Node_Str\");\n event.setCancelled(true);\n ... |
"int GetUnitOp(boolean Executing) {\n int Result = -1;\n final int NextByte = GetProg(Executing);\n if (NextByte >= 0) {\n boolean OK;\n if (NextByte < 10) {\n Result = NextByte;\n OK = true;\n } else if (NextByte == 40) {\n final int Reg = GetProg(Executin... |
"private void reel() {\n DenizenAPI.getDenizenNPC(npc).action(\"String_Node_Str\", null);\n int chance = (int) (Math.random() * 100);\n try {\n fishHook.remove();\n } catch (Exception e) {\n }\n if (catchPercent > chance && fishHook != null && catchType != FishingHelper.CatchType.NONE) {\n ... |
"public boolean isPersistent() {\n return isPersistent;\n}\n"
|
"public void read(DataInput in) throws IOException {\n wrappedType = in.readUTF();\n try {\n Class wrClass = Class.forName(wrappedType);\n wrapped = (Writable) InstantiationUtil.instantiate(wrClass, Writable.class);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Stri... |
"public List<SootClass> getSubinterfacesOf(SootClass c) {\n c.checkLevel(SootClass.HIERARCHY);\n if (!c.isInterface())\n throw new RuntimeException(\"String_Node_Str\");\n checkState();\n if (interfaceToSubinterfaces.get(c) != null)\n return interfaceToSubinterfaces.get(c);\n List<SootClass... |
"private void clearLexFilter() {\n clearLexFilterValues();\n filterDict();\n}\n"
|
"public URL getCodebase(OTObject otObject) {\n OTID id = otObject.getGlobalId();\n try {\n OTDataObject dataObject = OTInvocationHandler.getOTDataObject(otObject);\n return dataObject.getCodebase();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n}\n"
|
"private static String createURL(String servletName, String report, String format, boolean inDesigner) {\n String encodedReportName = null;\n try {\n encodedReportName = URLEncoder.encode(report, \"String_Node_Str\");\n } catch (UnsupportedEncodingException e) {\n }\n String locale = ViewerPlugin.... |
"public boolean checkFiltersAreEmpty(ExternalDbMapTable outputTable) {\n List<ExternalDbMapEntry> constraints = outputTable.getCustomConditionsEntries();\n int lstSize = constraints.size();\n boolean oneConstraintIsNotEmpty = false;\n for (int i = 0; i < lstSize; i++) {\n String constraintExpression ... |
"public void execute(JobExecutionContext context) throws JobExecutionException {\n RecordsManagementActionService rmActionService = (RecordsManagementActionService) context.getJobDetail().getJobDataMap().get(\"String_Node_Str\");\n NodeService nodeService = (NodeService) context.getJobDetail().getJobDataMap().get... |
"protected MachineState makeEdgeVariable(BasicBlock from, BasicBlock to) {\n if (Assertions.verifyAssertions) {\n Assertions._assert(from != null);\n Assertions._assert(to != null);\n }\n MachineState result = new MachineState(71167 * from.hashCode() + to.hashCode(), from);\n return result;\n}... |
"public void sendToken(Receiver source, Receiver receiver, Token token) throws IllegalActionException {\n String name = _cqmInputPortName.get(receiver.getContainer());\n CQMInputPort port = (CQMInputPort) getEntity(name);\n if (port == null) {\n throw new IllegalActionException(this, \"String_Node_Str\"... |
"private void checkCanWithdraw(WithdrawDTO withdrawDTO, Config config) {\n String addressKey = RedisConstants.LISTEN_ETH_ADDR + \"String_Node_Str\" + withdrawDTO.getAddress();\n Assert.isTrue(!redisTemplate.hasKey(addressKey), MessageConstants.ADDERSS_ERROR);\n String key = RedisConstants.TODAY_USER + \"String... |
"private boolean changeGroup(CommandEvent commandEvent, Config config, User user, String userName, String[] args) {\n String whatToChangeTo;\n StringBuilder gymNameBuilder;\n String gymName;\n Gym gym;\n Raid raid;\n whatToChangeTo = args[1].trim().toLowerCase();\n gymNameBuilder = new StringBuilde... |
"public void run() {\n try {\n while (!quit) {\n selector.select(connectionReadTimeout);\n for (SelectionKey key : selector.selectedKeys()) {\n if (key.isValid() && key.isWritable() && upstreamQueue.peek() != null) {\n SocketChannel channel = (SocketChan... |
"private void testDimensionCreate3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n ILevelDefn[] levelDefs = new ILevelDefn[3];\n String[] attrs = { \"String_Node_Str\" };\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null)... |
"public void setLocationGUI(final Vec3 loc, boolean allowUndo) {\n double[] rotationsAndTranslations = new double[6];\n displayGeometry.getRotationsAndTranslationsAsArray6(rotationsAndTranslations);\n final Vec3 oldLoc = new Vec3(rotationsAndTranslations[3], rotationsAndTranslations[4], rotationsAndTranslation... |
"public void startCell(ICellContent cell) {\n if (cellEmitter != null) {\n cellEmitter.startCell(cell);\n } else {\n if (!isNestTable()) {\n BufferedReportEmitter buffer = null;\n int colId = cell.getColumn();\n int colSpan = cell.getColSpan();\n int rowSp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.