content stringlengths 40 137k |
|---|
"public void run() {\n List<? extends INode> nodes = activeProcess.getGraphicalNodes();\n if (nodes.isEmpty()) {\n return;\n }\n IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\n if (part != null && part.isDirty()) {\n if (part != n... |
"protected void accessFooter(ListingDesign list, IContentEmitter emitter) {\n if (layoutEmitter != null) {\n layoutEmitter.flush();\n outputEmitter = layoutEmitter.emitter;\n emitter = outputEmitter;\n layoutEmitter = null;\n }\n ITableBandContent body = (ITableBandContent) context.... |
"private void loginCheck(PlayerLoginEvent event) {\n PermissionUser user;\n if (!BenCmd.getPermissionManager().getUserFile().userExists(event.getPlayer().getName())) {\n if (BenCmd.getMainProperties().getBoolean(\"String_Node_Str\", false)) {\n event.disallow(Result.KICK_WHITELIST, BenCmd.getMai... |
"public static final void executeDeleteTestresultOfSummary(EntityManager session, Long resultId) {\n boolean isDeleteAll = resultId == null;\n String paramQueryBaseString = \"String_Node_Str\";\n if (isDeleteAll) {\n session.createNativeQuery(paramQueryBaseString).executeUpdate();\n } else {\n ... |
"public MetricsConsumerMetaTable createConsumerMeta() {\n String tableName = cConf.get(Constants.Metrics.KAFKA_META_TABLE);\n MetricsTable table = getOrCreateMetricsTable(tableName, DatasetProperties.EMPTY);\n LOG.debug(\"String_Node_Str\", tableName);\n return new MetricsConsumerMetaTable(table);\n}\n"
|
"public void onNext(RoomsOverall roomsOverall) {\n for (Room room : roomsOverall.getOcs().getData()) {\n if (roomId.equals(room.getRoomId())) {\n currentRoom = room;\n if (conversationNameTextView != null) {\n conversationNameTextView.setText(currentRoom.getDisplayName());... |
"protected boolean intersects(int x, int y, Shape shape) {\n Polygon rect = new Polygon();\n float length = 1f / SUB_DIVISION;\n int intersectionCount = 0;\n for (int ii = 0; ii < SUB_DIVISION; ii++) {\n float xmin = x + (length * ii);\n float xmax = x + (length * (ii + 1));\n for (int ... |
"void enable(Display display) {\n mDisplay = display;\n mListener.enable();\n mLastKnownDisplayOffset = DISPLAY_ORIENTATIONS.get(mDisplay.getRotation());\n mCallbacks.onDisplayOffsetChanged(mLastKnownDisplayOffset);\n}\n"
|
"private RepositoryNode createNewRepositoryNode(RepositoryNode node, ConnectionParameters parameters, DatabaseConnection connection, IMetadataConnection iMetadataConnection) {\n ManagerConnection managerConnection = new ManagerConnection();\n boolean status = managerConnection.check(iMetadataConnection);\n con... |
"public T build(Object[] tuple) {\n newTuple.clear();\n for (int i = start; i < start + length; i++) {\n if (tuple[i] != TupleReuse.CONSUMED) {\n newTuple.add(tuple[i]);\n }\n }\n T result = super.build(newTuple.getArray());\n if (keepTuplePrefix) {\n Object[] tupleWithPre... |
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent convertTestScriptFixtureComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.Tes... |
"private void onBiDirection(EnhanceEntity e, Client client, EntitySaveGraph objectGraph, EntityMetadata origMetadata, Object child, EntityMetadata childMetadata, Client childClient) throws Exception {\n if (!objectGraph.isUniDirectional() && child != null) {\n List obj = new ArrayList();\n Relation rel... |
"private static int hashAddress(Address address) {\n if (Space.BYTES_IN_ADDRESS == 8) {\n if (address.LT(Space.HEAP_START) || address.GE(Space.HEAP_END))\n return 0;\n else\n return address.diff(MAP_BASE_ADDRESS).toWord().rshl(Space.LOG_BYTES_IN_CHUNK).toInt();\n } else\n ... |
"private boolean processEnvelopeWithBuffer(final TransferEnvelope transferEnvelope, final TransferEnvelopeReceiverList receiverList) throws IOException, InterruptedException {\n final Buffer buffer = transferEnvelope.getBuffer();\n if (buffer.isReadBuffer()) {\n if (receiverList.hasRemoteReceivers()) {\n ... |
"public static void stop() {\n App app = new App();\n broadcastEvent(CONSTS.MESSAGEBUS_SERVER_EVENT_STOPPED, app);\n destroy(null);\n}\n"
|
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getData().equals(CounterType.M1M1.getName()) && controllerId.equals(game.getControllerId(event.getSourceId()))) {\n Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());\n if (permanent == null) {\n ... |
"public void visitFunctionalIfNode(ASTPtFunctionalIfNode node) throws IllegalActionException {\n if (node.isConstant() && node.isEvaluated()) {\n _evaluatedChildToken = node.getToken();\n _fireCode.append(_evaluatedChildToken.toString());\n return;\n }\n int numChildren = node.jjtGetNumChi... |
"protected static boolean isSafeLocation(final Location l) {\n if (l == null) {\n return false;\n }\n final Block ground = l.getBlock().getRelative(BlockFace.DOWN);\n final Block space1 = l.getBlock();\n final Block space2 = l.getBlock().getRelative(BlockFace.UP);\n if (ground.getType() == Mate... |
"public LinkedList<String> getHistoryLinkedList() {\n SQLiteDatabase sqLiteDatabase = getReadableDatabase();\n Cursor cursor = sqLiteDatabase.query(getTableForOperation(Operation.HISTORY), null, null, null, null, null, null);\n LinkedList<String> paths = new LinkedList<>();\n boolean hasNext = cursor.moveTo... |
"public static void addStack(Stack stack) throws Exception {\n try (TransactionResource db = Entities.transactionFor(StackEntity.class)) {\n Criteria criteria = Entities.createCriteria(StackEntity.class).add(Restrictions.eq(\"String_Node_Str\", stack.getStackName()));\n List<StackEntity> EntityList = c... |
"public ModelAndView process(ModelAndView mav, Locale locale) {\n mav.setViewName(\"String_Node_Str\");\n mav.addObject(\"String_Node_Str\", msg.getMessage(\"String_Node_Str\", null, locale));\n if (StringUtils.isBlank(datasourceUrl) || datasourceUrl.startsWith(\"String_Node_Str\")) {\n mav.addObject(\"... |
"public boolean parseResults(String resultsFile, Map<Integer, String[]> qs, Map<Integer, Map> opts) {\n boolean complete = true;\n try {\n Scanner scan = new Scanner(new File(resultsFile));\n String[] headers = scan.nextLine().split(\"String_Node_Str\");\n int assignCol = 0, completeCol = 0, ... |
"private void empties() {\n Datastore ds = getDs();\n ds.delete(ds.createQuery(Employee.class));\n Employee employee = new Employee();\n HashMap<String, Byte> byteMap = new HashMap<String, Byte>();\n byteMap.put(\"String_Node_Str\", (byte) 1);\n employee.byteMap = byteMap;\n ds.save(employee);\n ... |
"protected void exportFileContent(RepositoryFile exportRepositoryFile) throws IOException, ExportException {\n String filePath = new File(this.path).getParent();\n if (filePath == null) {\n filePath = \"String_Node_Str\";\n }\n if (exportRepositoryFile == null) {\n throw new FileNotFoundExcept... |
"public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {\n Future<Object> future = map1.removeAsync(\"String_Node_Str\");\n future.get();\n}\n"
|
"public void simulate(String fmuFileName, double endTime, double stepSize, boolean enableLogging, char csvSeparator, String outputFileName) throws Exception {\n _setEnableLogging(enableLogging);\n FMIModelDescription fmiModelDescription = FMUFile.parseFMUFile(fmuFileName);\n _nativeLibrary = fmiModelDescriptio... |
"public void updateEntity() {\n if (!isConnected() && autoSearch && worldObj != null) {\n if (cachedDir != null) {\n connectTo(cachedDir);\n } else {\n findConnections();\n }\n autoSearch = false;\n }\n}\n"
|
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuInflater inflater = getSupportMenuInflater();\n inflater.inflate(R.menu.basic_menu, menu);\n refreshMenuItem = menu.findItem(R.id.menu_refresh);\n if (mShouldAnimateRefreshButton) {\n mShouldAnimateRefreshBut... |
"public void startFrameAnimation(String id, int repeatType, int count, ActionCallback cb) {\n boolean reverse = false;\n if (repeatType == EngineTween.REVERSE || repeatType == EngineTween.REVERSE_REPEAT)\n reverse = true;\n if (modelInstance.getAnimation(id) != null) {\n animationCb = cb;\n ... |
"public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().equals(Constants.ASSIGN_ACTION)) {\n assign();\n } else if (e.getActionCommand().equals(Constants.UNASSIGN_ACTION)) {\n unassign();\n } else if (e.getActionCommand().equals(Constants.SAVE_ACTION)) {\n try {\n ... |
"public Enumeration getGroupNames(String username) throws NoSuchUserException {\n try {\n Set<String> groupsSet = new PAM(PAM_SERVICE).getGroupsOfUser(username);\n return Collections.enumeration(groupsSet);\n } catch (PAMException ex) {\n Logger.getLogger(PamRealm.class.getName()).log(Level.S... |
"private void collectExecutable() throws OLAPException {\n endOfGroups = false;\n currentChild = 0;\n children = new ArrayList();\n int startingGroupIndex = getStartingGroupLevel(rowCursor, groupCursors);\n if (startingGroupIndex <= 0) {\n if (columnGroups.size() > 0 || GroupUtil.hasMeasureHeader(... |
"public URL getDiffLink(IFileSpec file) throws Exception {\n if (file.getAction() != FileAction.EDIT && file.getAction() != FileAction.INTEGRATE) {\n return null;\n }\n int r = file.getEndRevision();\n if (r <= 1) {\n return null;\n }\n return new URL(url.toString() + file.getDepotPathSt... |
"public List<GlimpseTarget> getTargetChildren() {\n return (List) manager.getLayoutList();\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + keyClass.getSimpleName() + \"String_Node_Str\" + valueclass.getSimpleName() + \"String_Node_Str\" + query.toString() + \"String_Node_Str\";\n}\n"
|
"protected void doHandle(CommandContext ctx) throws CommandFormatException {\n ModelNode request;\n try {\n request = buildRequest(ctx);\n } catch (CommandFormatException e1) {\n ctx.printLine(e1.getLocalizedMessage());\n return;\n }\n if (request == null) {\n ctx.printLine(\"... |
"public Object transact() throws BasicException {\n Date d = new Date();\n for (int i = 0; i < ticket.getLinesCount(); i++) {\n if (ticket.getLine(i).getProductID() != null) {\n getStockDiaryInsert().exec(new Object[] { UUID.randomUUID().toString(), d, ticket.getLine(i).getMultiply() >= 0.0 ? Mo... |
"public void setPostscriptLevel(int level) {\n options.put(PS_LEVEL, level);\n}\n"
|
"public boolean ButtonPress(int ButtonID) {\n switch(ButtonID) {\n case 1:\n GestureDefence.this.sm.NewWaveScreen();\n GestureDefence.this.sm.NewWaveScene.registerUpdateHandler(new TimerHandler(3.0f, true, new ITimerCallback() {\n public void onTimePassed(final TimerHandle... |
"public Object invoke(Invocation invocation) throws Throwable {\n if (invocation.getMethod().getName().startsWith(\"String_Node_Str\")) {\n Snip snip = (Snip) invocation.getTarget();\n User user = Application.get().getUser();\n if (!user.isAdmin()) {\n if (!(Security.checkPermission(\... |
"protected Resource createDynamicResource(ResourceKey resourceKey, boolean useDependencyInjection) {\n Resource result = null;\n Map<String, String> params = null;\n MappedResourceData mappedResourceData = mappedResourceDataMap.get(resourceKey);\n ResourceKey actualKey;\n if (mappedResourceData != null) ... |
"void setClassVersion(int classId, int version) {\n Integer current = currentClassVersions.putIfAbsent(classId, version);\n if (current != null && current != version) {\n throw new IllegalArgumentException(\"String_Node_Str\" + classId + \"String_Node_Str\");\n }\n}\n"
|
"public static void postInit() {\n for (int i = 0; i <= 3; i++) {\n if (PAConfig.allowLevel(i)) {\n if (PAConfig.minerEnabled)\n miner[i].postInit();\n if (PAConfig.chopperEnabled)\n chopper[i].postInit();\n if (PAConfig.planterEnabled)\n ... |
"public void write(final AlignmentWriterImpl writer) throws IOException {\n try {\n writer.setTargetIdentifiers(alignmentReader.getTargetIdentifiers());\n writer.setQueryIdentifiers(alignmentReader.getQueryIdentifiers());\n final int[] targetLengths = alignmentReader.getTargetLength();\n ... |
"public boolean tryCaptureView(View view, int pointerId) {\n return view.equals(capturedView);\n}\n"
|
"public double modelLogLikelihood() {\n double logLikelihood = 0.0;\n int nonZeroTopics;\n int[] topicCounts = new int[numTopics];\n double[] topicLogGammas = new double[numTopics];\n int[] docTopics;\n for (int topic = 0; topic < numTopics; topic++) {\n topicLogGammas[topic] = Dirichlet.logGam... |
"public static IDataBinding createDataBinding() {\n return ScriptAPIFactory.getInstance().createDataBinding();\n}\n"
|
"protected JSONObject loadJson(String filename) {\n FileInputStream input = null;\n File file = null;\n if (loaderType.equals(\"String_Node_Str\")) {\n file = new File(filename);\n } else if (!mapPath.isEmpty()) {\n file = new File(mapPath, filename);\n }\n try {\n if (file.canRea... |
"public Object next() {\n return next;\n}\n"
|
"protected void translate(double delx, double dely) {\n Vector3d xCam = new Vector3d(), yCam = new Vector3d();\n synchronized (viewMatrix) {\n viewMatrix.R.getRow(0, xCam);\n viewMatrix.R.getRow(1, yCam);\n }\n Vector3d offset = new Vector3d();\n offset.scale(-delx, xCam);\n offset.scale... |
"public boolean isTestDataComplete() {\n if (StringUtils.isEmpty(getDataFile())) {\n final int paramListSize = getParameterListSize();\n ITDManager testDataManager = getDataManager();\n if ((testDataManager.getDataSetCount() == 0) && (paramListSize > 0)) {\n return false;\n }\n... |
"public long getInvokeReturnMissCost(InvokeSite invokeSite, CallString context) {\n ControlFlowGraph invokerCfg = wcetTool.getFlowGraph(invokeSite.getInvoker());\n long rMiss = methodCache.getMissPenaltyOnReturn(invokerCfg.getNumberOfWords(), invokeSite.getInvokeeRef().getDescriptor().getType());\n long iMissM... |
"private Collection<? extends ExampleModel> createChildren(NodeList childNodes) {\n List<ExampleModel> ret = new ArrayList<ExampleModel>(childNodes.getLength());\n for (int i = 0; i < childNodes.getLength(); i++) {\n Node child = childNodes.item(i);\n if (child.getNodeType() != Node.TEXT_NODE) {\n ... |
"public void run() {\n ConnectivityStatus connectivityStatus = NetworkHelper.getConnectivityStatus(context);\n bus.post(new ConnectivityChanged(connectivityStatus));\n if (connectivityStatus == ConnectivityStatus.WIFI_CONNECTED) {\n new Ping(context).execute();\n }\n}\n"
|
"protected int checkMeasures() {\n msgRecorder.pushContextName(\"String_Node_Str\");\n try {\n int measureColumnCounts = 0;\n for (JdbcSchema.Table.Column aggColumn : aggTable.getColumns()) {\n if (aggColumn.hasUsage(JdbcSchema.UsageType.IGNORE)) {\n continue;\n ... |
"public void deleteDocuments(boolean wal, Term term) throws CorruptIndexException, IOException {\n _dirty.incrementAndGet();\n if (wal) {\n Future<Boolean> valid = walWriterDelete(terms);\n super.deleteDocuments(terms);\n try {\n if (!valid.get()) {\n throw new IOExc... |
"public boolean rollback() {\n List<Block> blockList = chain.getBlockList();\n if (blockList == null || blockList.size() == 0) {\n return false;\n }\n Block rollbackBlock = blockList.get(blockList.size() - 1);\n blockList.remove(rollbackBlock);\n List<BlockHeader> blockHeaderList = chain.getBlo... |
"protected void spawn(vData v) {\n for (int x = 0; x < v.brushSize; x++) {\n try {\n Class<? extends Entity> ent = ct.getEntityClass();\n w.spawn(lb.getLocation(), ent);\n } catch (ClassCastException ex) {\n }\n }\n}\n"
|
"public void testMissedSignal_8187947() throws Exception {\n final int N = expensiveTests ? (1 << 20) : (1 << 10);\n final CountDownLatch finished = new CountDownLatch(1);\n final SubmissionPublisher<Boolean> pub = new SubmissionPublisher<>();\n class Sub implements Subscriber<Boolean> {\n int receiv... |
"public void onGuidedActionClicked(GuidedAction action) {\n if (getSelectedActionPosition() <= mServerArrayList.size()) {\n String server = mServerArrayList.get(getSelectedActionPosition() - 1).getName();\n if (indexSelected == (getSelectedActionPosition() - 1))\n getActivity().finish();\n ... |
"private void updateButtonsColor() {\n for (PaletteButton b : termButtons) {\n final boolean isEnabled = b.isEnabled() && paletteLayout.isEnabled();\n ViewUtils.setImageButtonColorAttr(context, b, isEnabled ? R.attr.colorMicroMathIcon : R.attr.colorPrimaryDark);\n }\n}\n"
|
"public void testMigrateModelsIncorrectPath() throws Exception {\n String directoryPath = \"String_Node_Str\";\n MigrateModelsManager migrateModelsManager = new MigrateModelsManager();\n try {\n migrateModelsManager.migrateModels(directoryPath);\n fail(\"String_Node_Str\");\n } catch (Exceptio... |
"public static ProgramClassLoader create(File unpackedJarDir, ClassLoader parentClassLoader, ProgramType programType) throws IOException {\n Set<String> visibleResources = ProgramResources.getVisibleResources(programType);\n ImmutableSet.Builder<String> visiblePackages = ImmutableSet.builder();\n for (String r... |
"public void deployModules(Collection<ModuleNeeded> modules, IProgressMonitor monitorWrap) {\n boolean modified = false;\n EMap<String, String> libIndex = LibrariesIndexManager.getInstance().getStudioLibIndex().getJarsToRelativePath();\n EMap<String, String> mavenIndex = LibrariesIndexManager.getInstance().get... |
"public void testAppendAndReadWithRolling2() throws IOException {\n final File dir = getTmpDir();\n final ChronicleQueue queue = new SingleChronicleQueueBuilder(dir).wireType(this.wireType).rollCycle(RollCycles.SECONDS).epoch(1452701442361L).build();\n final ExcerptAppender appender = queue.createAppender();\n... |
"public void parse(IParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (this.mode == NAME) {\n if (type == Symbols.OPEN_PARENTHESIS) {\n TupleType tupleType = new TupleType();\n pm.pushParser(new TypeListParser(tupleType));\n this.type = tu... |
"public long getEnergyCapacity(ItemStack theItem) {\n return 1000000;\n}\n"
|
"public void handle(HttpRequest request, HttpResponder responder, Map<String, String> groupValues) {\n try {\n if (httpMethods.contains(request.getMethod())) {\n Object[] args = new Object[method.getParameterTypes().length];\n int parameterIndex = 0;\n args[parameterIndex] = r... |
"public String getText() {\n return super.getText();\n}\n"
|
"public String toString() {\n StringBuffer result = new StringBuffer();\n for (IndexedTreeIterator i = iterator(0); i.hasNext(); ) {\n if (result.length() > 0)\n result.append(\"String_Node_Str\");\n result.append(i.next());\n }\n return result.toString();\n}\n"
|
"private void cancelWakeUpAlarm() {\n BeaconManager.logDebug(TAG, \"String_Node_Str\" + mWakeUpOperation);\n if (mWakeUpOperation != null) {\n AlarmManager alarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);\n alarmManager.cancel(mWakeUpOperation);\n }\n}\n"
|
"public JustPlayScore getBestJustPlayScore() {\n Cursor cursor = database.query(TABLE_SCORE, new String[] { COLUMN_SCORE_POINTS, COLUMN_SCORE_SOLVED_LEVELS }, null, null, null, null, COLUMN_SCORE_POINTS + \"String_Node_Str\", \"String_Node_Str\");\n if (cursor.getCount() == 0) {\n return null;\n }\n ... |
"private void fireValueChangedEvent() {\n if (hasPropertyChangeListener()) {\n List<Form> forms = componentProperties.getForms();\n for (Form f : forms) {\n if (f.isRefreshUI()) {\n this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_PROPERTY_VALUE_CHANGED, null... |
"private static void addEvents(Context c, Uri uri) {\n if (ContextCompat.checkSelfPermission(c, Manifest.permission.WRITE_CALENDAR) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n ContentResolver contentResolver = c.getContentResolver();\n String id = \"String_Node_Str\";\n try (Cursor cur... |
"public void setIssueEvent(IssueStoryEvent issueEvent) {\n applyGenericIssueStory(issueEvent);\n textView.setText(\"String_Node_Str\");\n String eventType = issueEvent.event.event;\n switch(eventType) {\n case \"String_Node_Str\":\n case \"String_Node_Str\":\n {\n Str... |
"public void search() {\n final List<ConnectorObject> results = new ArrayList<ConnectorObject>();\n ResultsHandler resultsHandler = new ResultsHandler() {\n public boolean handle(ConnectorObject obj) {\n results.add(obj);\n return true;\n }\n };\n Filter usernameFilter = ... |
"public static int receiveBufferCount(Config cfg) {\n return cfg.getIntegerValue(RECEIVE_BUFFERS_COUNT, 32);\n}\n"
|
"IOdaDataSourceDesign newOdaDataSource(OdaDataSourceHandle source) throws BirtException {\n setResourceIDtoDataSourceHandle(source);\n OdaDataSourceDesign dteSource = new OdaDataSourceDesign(source.getQualifiedName());\n IBaseDataSourceEventHandler eventHandler = new DataSourceScriptExecutor(source, context);\... |
"private void buildChannel() {\n try {\n HarmonyConfig config = getCachedConfig();\n List<Activity> activities = config.getActivities();\n Collections.sort(activities, new Comparator<Activity>() {\n public int compare(Activity a1, Activity a2) {\n int o1 = a1.getActivit... |
"public void setTextViewer(ITextViewer newViewer) {\n Assert.isNotNull(newViewer, \"String_Node_Str\");\n this.textViewer = newViewer;\n}\n"
|
"public void update() {\n final jedd.internal.RelationContainer methods = new jedd.internal.RelationContainer(new jedd.Attribute[] { ctxt.v(), method.v() }, new jedd.PhysicalDomain[] { V1.v(), T1.v() }, (\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\"), in.... |
"private Class<?> getTypeForProxy() {\n Class<? extends SearchContext> driverClass = originalDriver.getClass();\n Iterable<Map.Entry<Class<? extends SearchContext>, Class<? extends WebElement>>> rules = elementRuleMap.entrySet();\n for (Map.Entry<Class<? extends SearchContext>, Class<? extends WebElement>> e :... |
"public void setJndiName(int index, String name) {\n CoreArgCheck.isTrue(index < sourceInfo.getSourceCount(), \"String_Node_Str\");\n if (StringUtilities.isEmpty(name))\n name = null;\n String oldName = sourceInfo.getSource(index).getJndiName();\n if (StringUtilities.equals(name, oldName))\n r... |
"private int processArgs(String[] args) throws SoarException {\n this.depth = defaultDepth;\n int i = 1;\n for (; i < args.length; ++i) {\n String arg = args[i];\n if (has(arg, \"String_Node_Str\", \"String_Node_Str\")) {\n options.add(Options.DEPTH);\n if (i + 1 == args.len... |
"private void readProperties(final XMLStreamReader reader, final EntityInfoAggregator entitySet) throws XMLStreamException, EdmException, EntityProviderException {\n checkAllMandatoryNamespacesAvailable();\n validateNamespace(reader.getName(), Edm.NAMESPACE_M_2007_08);\n if (entitySet.getEntityType().hasStream... |
"protected void writeToDBPie() {\n mRealm.beginTransaction();\n mRealm.clear(RealmDemoData.class);\n float value1 = 15f + (float) (Math.random() * 8f);\n float value2 = 15f + (float) (Math.random() * 8f);\n float value3 = 15f + (float) (Math.random() * 8f);\n float value4 = 15f + (float) (Math.random(... |
"private double hypothesisFunction(AssociativeArray x, Map<Object, Double> thitas) {\n double sum = thitas.get(Dataframe.COLUMN_NAME_CONSTANT);\n for (Map.Entry<Object, Object> entry : x.entrySet()) {\n Object feature = entry.getKey();\n Double xj = TypeInference.toDouble(entry.getValue());\n ... |
"protected BaseAdapter getMessagesAdapter() {\n return new PrivateChatMessagesAdapter(this, getAllPrivateChatMessages());\n}\n"
|
"public Transition chooseTransition(List transitionList) throws IllegalActionException {\n List<Transition> enabledTransitions = enabledTransitions(transitionList);\n int length = enabledTransitions.size();\n if (length > 1) {\n for (Transition enabledTransition : enabledTransitions) {\n if (... |
"public URI getUri() {\n if (this.awsKeyID != null && this.awsSecretKey != null) {\n String creds = this.awsKeyID + \"String_Node_Str\" + this.awsSecretKey + \"String_Node_Str\";\n try {\n return new URI(\"String_Node_Str\" + creds + this.mUri.toString());\n } catch (URISyntaxExceptio... |
"private void nullOutputPartOfVector() {\n for (int i = networkChimney.getSizeOfOutputVector(), j = 0; i < visibleNeurons.length; i++, j++) {\n visibleNeurons[i] = 0.0;\n }\n}\n"
|
"public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityPlayer player) {\n super.onBlockHarvested(world, x, y, z, meta, player);\n Hashtable<Class<? extends BlockAdvancedDispensers>, Integer> map = blocksPerPlayer.get(player);\n if (map != null) {\n EntityLivingBase owner = ((Til... |
"public Map<String, Object> createInvoiceFromMultiOutgoingStockMove(List<StockMove> stockMoveList, PaymentCondition paymentConditionIn, PaymentMode paymentModeIn, Partner contactPartnerIn) throws AxelorException {\n Currency invoiceCurrency = null;\n Partner invoiceClientPartner = null;\n Company invoiceCompan... |
"public int moveCaretToLineEnd(Editor editor, int lline) {\n int offset = EditorHelper.normalizeOffset(editor, lline, EditorHelper.getLineEndOffset(editor, lline) - 1, false);\n return offset;\n}\n"
|
"public Date getValue() {\n Date day = date.getValue();\n if (day == null) {\n return null;\n }\n Date time = this.time.getValue();\n if (time == null) {\n return day;\n }\n LOG.finer(\"String_Node_Str\" + time.getTime());\n long timeMillis = time.getTime() % (24 * 60 * 60 * 1000);... |
"public void testNotIn() throws Exception {\n FilterDescriptor idFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.NOT_IN, new int[] { 2, 4 });\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(ProductView.class, \"String_Node_Str\", idFilter);\n ... |
"public IStatus deploy(MDMServerDef serverDef, List<IRepositoryViewObject> viewObjs) {\n CommandManager manager = CommandManager.getInstance();\n List<AbstractDeployCommand> commands = manager.getDeployCommands(viewObjs, defaultCmdType);\n return runCommands(commands, serverDef);\n}\n"
|
"protected Object formBackingObject(HttpServletRequest request) throws Exception {\n String username = request.getParameter(\"String_Node_Str\");\n if (request.getSession().getAttribute(\"String_Node_Str\") != null) {\n saveMessage(request, getText(\"String_Node_Str\", request.getLocale()));\n }\n Us... |
"public static URL getResourceAsURL(String path, ClassLoader classLoader, AbstractFile rootPackageFile) {\n path = removeLeadingSlash(path);\n if (rootPackageFile == null)\n return classLoader.getResource(path);\n String separator = rootPackageFile.getSeparator();\n String nativePath;\n if (separa... |
"public int execute(StratosCommandContext context, String[] args, Option[] already_parsed_opts) throws CommandException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", getName());\n }\n if (args != null && args.length > 0) {\n String admin = null;\n String firstName ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.