content stringlengths 40 137k |
|---|
"public void refreshTableEditorColumn(int index) {\n if (tableEditorManager != null && isLazyLoad()) {\n tableEditorManager.refreshColumn(index);\n }\n}\n"
|
"public void generatePackageListJs(PrintWriter w) throws IOException {\n class DefinedPkgInfo extends PkgInfo<DefinedPkgInfo> {\n public DefinedPkgInfo(String name) {\n super(name);\n }\n protected DefinedPkgInfo create(String name) {\n return new DefinedPkgInfo(name);\n ... |
"public void dropAndClear(int posn) throws SemanticException {\n DesignElement content = getElement().getSlot(slotID).getContent(posn);\n ContentCommand cmd = new ContentCommand(getModule(), new ContainerContext(getElement(), slotID));\n cmd.remove(content);\n}\n"
|
"private static SrlFgExampleBuilderPrm getSrlFgExampleBuilderPrm() {\n SrlFgExampleBuilderPrm prm = new SrlFgExampleBuilderPrm();\n prm.fgPrm.linkVarType = linkVarType;\n prm.fgPrm.makeUnknownPredRolesLatent = makeUnknownPredRolesLatent;\n prm.fgPrm.roleStructure = roleStructure;\n prm.fgPrm.useProjDepTr... |
"public void savePersistentDetails() {\n persistentData = this.sshConfigurationForm.getHostName() + separator + this.sshConfigurationForm.getUserName() + separator + new String(Base64.encode(this.sshConfigurationForm.getPassword().getBytes())) + separator + sshConfigurationForm.getPort() + separator + sshConfigurati... |
"private static int _getSelectedBranch(Receiver[][] receivers, Set beingChecked) {\n for (int i = 0; i < receivers.length; i++) {\n if (receivers[i] == null) {\n continue;\n }\n for (int j = 0; j < receivers[i].length; j++) {\n Receiver receiver = (Receiver) receivers[i][j]... |
"Map<String, TemplateProp> swiftListTemplate(SwiftTO swift) {\n String[] containers = SwiftUtil.list(swift, \"String_Node_Str\", null);\n if (containers == null) {\n return null;\n }\n Map<String, TemplateProp> tmpltInfos = new HashMap<String, TemplateProp>();\n for (String container : containers)... |
"public void handleEvent(Event event) {\n if (event.widget.equals(txtTitle)) {\n seriesDefn.getDesignTimeSeries().setSeriesIdentifier(txtTitle.getText());\n }\n}\n"
|
"public void execute(HttpServletRequest request, HttpServletResponse response, String uriPrefix) {\n if (rejectRequest(request, response)) {\n return;\n }\n UserRequest ureq = null;\n try {\n ureq = new UserRequest(uriPrefix, request, response);\n } catch (NumberFormatException nfe) {\n ... |
"public String stringFromDate(java.util.Date sourceDate, QName schemaType) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n if (XMLConstants.DATE_QNAME.equals(schemaType)) {\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new D... |
"public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n Log.v(TAG, \"String_Node_Str\");\n mEnableDemo = true;\n if (mDefaultLanguage == null) {\n mDefaultLanguage = Locale.getDefault().getISO3Language();\n }\n mTts.setLanguage(new Locale(mDefaultLang... |
"public B2FileVersion getFileInfoByName(B2AccountAuthorization accountAuth, B2GetFileInfoByNameRequest request) throws B2Exception {\n B2Headers headers = webApiClient.head(makeGetFileInfoByNameUrl(accountAuth, request.getBucketName(), request.getFileName()), makeHeaders(accountAuth));\n return new B2FileVersion(... |
"private int getLevelSize(IDataSet4Aggregation.MetaInfo metaInfo, DimLevel[] dimLevel) throws DataException {\n if (dimLevel == null || dimLevel.length == 0) {\n return 0;\n }\n int[] dataType = new int[dimLevel.length];\n for (int i = 0; i < dimLevel.length; i++) {\n DimColumn dimColumn = nul... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.setContentView(R.layout.main);\n this.configureActionBar();\n this.user = RichPushManager.shared().getRichPushUser();\n if (savedInstanceState == null) {\n pendingMessageId = getIntent().getStringExt... |
"public static void injectWDLButtons(GuiIngameMenu gui, List buttonList) {\n int insertAtYPos = 0;\n for (Object obj : buttonList) {\n GuiButton btn = (GuiButton) obj;\n if (btn.id == 5) {\n insertAtYPos = btn.y + 24;\n break;\n }\n }\n for (Object obj : buttonList... |
"public IMethod getMethod(Name name, IParameter[] parameters, int parameterCount) {\n outer: for (int i = 0; i < this.methodCount; i++) {\n IMethod m = this.methods[i];\n if (m.getName() != name) {\n continue;\n }\n if (parameterCount != m.parameterCount()) {\n conti... |
"boolean tryAcquireShared(final long l, final TimeUnit timeUnit) throws InterruptedException {\n if (getThread().isInterrupted())\n throw new InterruptedException();\n if (l <= 0)\n return false;\n final ElapsedTimer timer = new ElapsedTimer(timeUnit.toMillis(l));\n if (!monitor.tryLock(timer.... |
"public void addInput(final IConnection conn) {\n this.inputs.add(conn);\n fireStructureChange(INPUTS, conn);\n if (conn instanceof Connection) {\n Connection connection = (Connection) conn;\n if (!ConnectionCreateCommand.isCreatingConnection()) {\n calculateSubtreeStartAndEnd();\n ... |
"public Set<String> getSupportedUserAction(Sheet sheet) {\n Set<String> actions = super.getSupportedUserAction(sheet);\n actions.add(DefaultUserAction.NEW_BOOK.getAction());\n if (sheet != null) {\n boolean readonly = UiUtil.isRepositoryReadonly();\n if (!readonly) {\n actions.add(Defa... |
"protected void copyFields(ExecutableNodeBase from, ExecutableNodeBase to) {\n to.subscribers = new ArrayList<>(from.subscribers);\n to.sources = new ArrayList<>(from.sources);\n to.channels = new TreeMap<>();\n for (Entry<Integer, ExecutionTokenQueue> a : from.channels.entrySet()) {\n to.channels.pu... |
"private void splitIntoMultipleEventsAndPost(MotionEvent event, RainbowInputController rainbowInputController) {\n float px = rainbowInputController.getX();\n float py = rainbowInputController.getY();\n float diffX = event.getX() - px;\n float diffY = event.getY() - py;\n int divisions = getDivisionsFor(... |
"public boolean isResolved() {\n return this.value == null || this.value.isResolved();\n}\n"
|
"public String getValue() {\n if (Bootstrap.isFinished()) {\n try {\n String dbValue = StaticDatabasePropertyEntry.lookup(this.getFieldCanonicalName(), this.getQualifiedName(), this.safeGetFieldValue()).getValue();\n this.field.set(null, dbValue);\n return dbValue;\n } ... |
"public void testInsertSamePK() throws ConnectorException {\n ClusterName clusterName = getClusterName();\n System.out.println(\"String_Node_Str\" + clusterName.getName() + \"String_Node_Str\");\n insertRow(clusterName, OTHER_VALUE_4, ColumnType.VARCHAR, VALUE_1, true);\n insertRow(clusterName, VALUE_4, Col... |
"public String getManagementServiceMap() {\n if (clusterContext == null) {\n return \"String_Node_Str\";\n }\n CollectionsFactory factory = clusterContext.getCollectionsFactory();\n Map<MemberId, Collection<String>> managementServices = factory.getMap(ManagementService.MANAGEMENT_SERVICE_MAP_NAME);\n... |
"public Enumerator enumerator() {\n PlatformBroker platformBroker = getPlatformBroker();\n Properties properties = platformBroker.getProperties();\n Optiq.writeSQLPlan(properties, Misc.createUniqueName(), getVolcanoPlanner());\n FlowProcess flowProcess = platformBroker.getFlowProcess();\n SchemaCatalog s... |
"public void testSimplifyMultipleBounds() {\n TypeElement multipleBoundsElement = typeElementOf(\"String_Node_Str\");\n TypeMirror multipleBoundsMirror = multipleBoundsElement.asType();\n TypeSimplifier typeSimplifier = new TypeSimplifier(typeUtil, \"String_Node_Str\", ImmutableSet.of(multipleBoundsMirror), ba... |
"public int globalLinkSize() {\n return cacheGlobal.size();\n}\n"
|
"public void put(K key, V value) {\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n ensureOpen();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n lockManager.lock(key);\n try {\n RIEntry<K, V> entry = new RIEntry<K, V>(key, value);\n... |
"public void appendExtendedName(StringBuilder buffer) {\n for (int i = 0; i < this.arrayDimensions; i++) {\n buffer.append('[');\n }\n buffer.append('L').append(this.theClass == null ? ClassFormat.packageToInternal(this.qualifiedName) : this.theClass.getInternalName()).append(';');\n}\n"
|
"public List<IDockerImage> listImages() throws DockerException {\n final List<IDockerImage> tempImages = new ArrayList<>();\n synchronized (imageLock) {\n List<Image> rawImages = new ArrayList<>();\n try {\n synchronized (clientLock) {\n if (client == null)\n ... |
"protected void done() {\n super.done();\n try {\n get();\n actionButton.setVisible(false);\n status.setText(\"String_Node_Str\");\n queryTask = new QueryTask();\n queryTask.addPropertyChangeListener(SDKUpdater.this);\n queryTask.execute();\n } catch (InterruptedExcept... |
"public static MathTransform getCRSTransform() {\n return geoData.get().getTransform();\n}\n"
|
"public synchronized void updateNewlyInsideInRegionsContaining(Beacon beacon) {\n List<Region> matchingRegions = regionsMatchingTo(beacon);\n boolean needsMonitoringStateSaving = false;\n for (Region region : matchingRegions) {\n RegionMonitoringState state = mRegionsStatesMap.get(region);\n if (... |
"public boolean execute(ScriptEntry theEntry) throws CommandException {\n Boolean isGlobal = false;\n Integer duration = null;\n String theScript = null;\n if (theEntry.arguments() != null) {\n for (String thisArg : theEntry.arguments()) {\n if (aRegex.matchesDuration(thisArg)) {\n ... |
"public void onAnsweredElsewhere() {\n ;\n String state = getCallState();\n Log.d(LOG_TAG, \"String_Node_Str\" + state);\n if (!isCallEnded()) {\n dispatchAnsweredElsewhere();\n terminate(IMXCall.END_CALL_REASON_UNDEFINED);\n }\n}\n"
|
"public View getView(FlowLayout parent, int position, EntityEventTopicBean entityEventTopicBean) {\n TextView item = (TextView) getLayoutInflater().inflate(R.layout.item_relate_topic, mRelativeTopic, false);\n item.setText(entityEventTopicBean.getEntityName() + entityEventTopicBean.getEventTypeLabel());\n retu... |
"public void start() {\n _threadList.clear();\n KafkaConfig kafkaConfig = new KafkaConfig(_props);\n ZkState zkState = new ZkState(kafkaConfig);\n for (Integer partitionId : _partitionSet) {\n KafkaConfig kafkaConfig = new KafkaConfig(_props);\n ZkState zkState = new ZkState(kafkaConfig);\n ... |
"public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) {\n if (xmlCompositeObjectMapping.getNullPolicy().valueIsNull(attributes)) {\n xmlCompositeObjectMapping.setAttributeValueInObject(unmarshalRecord.getCurrentObject(), null);\n return;\n ... |
"public Iterator<UniversalPage> getConceptMap(LanguageSet ls) throws WikiBrainException, DaoException {\n int maxEdge = 2;\n double minLang = 1.0;\n if (uPages == null) {\n LOG.log(Level.INFO, \"String_Node_Str\");\n Iterator<UniversalPage> uPages = wdMapper.getConceptMap(ls);\n } else {\n ... |
"private boolean inBounds(int checkX, int checkY, int checkOrientation) {\n try {\n int[][] thePiece = POSSIBLE_BLOCKS.get(currentBlockId).getShape(checkOrientation);\n for (int y = 0; y < thePiece[0].length; ++y) {\n for (int x = 0; x < thePiece.length; ++x) {\n if (thePiece[... |
"public boolean isSelected(T object) {\n resolveChanges();\n Object key = getKey(item);\n Boolean exception = exceptions.get(key);\n if (exception != null) {\n return exception.booleanValue();\n }\n return isDefaultSelected(object);\n}\n"
|
"public static void init(FMLPreInitializationEvent event) {\n directory = event.getModConfigurationDirectory().toString() + '/' + Reference.MOD_ID.toLowerCase() + '/';\n if (config == null) {\n config = new Configuration(new File(directory, \"String_Node_Str\"));\n loadConfiguration();\n }\n L... |
"private static ParameterDefinition getValidParameterDefinition(OdaDataSetParameterHandle param, DataSetParameters odaParams) {\n if (param == null || odaParams == null)\n return null;\n if (odaParams.getParameterDefinitions().isEmpty())\n return null;\n ParameterDefinition matchedParam = DataSet... |
"public IEditorInput getEditorInput(String filename) {\n IPath path = new Path(filename);\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n IFile file = root.getFileForLocation(path);\n if (file != null) {\n return new FileEditorInput(file);\n }\n return new JavaFileEditorInpu... |
"private void updateTraceStatus() {\n if (fTrace.getNbEvents() > 0) {\n signalNewTimeRange(fTrace.getStartTime(), fTrace.getEndTime());\n }\n}\n"
|
"public void postWindowOpen() {\n try {\n JavaHomeUtil.initializeJavaHome();\n } catch (CoreException e1) {\n CommonExceptionHandler.process(e1);\n }\n createActions();\n registerActions();\n adviser.getHelper().postWindowOpen();\n IBrandingService service = (IBrandingService) GlobalS... |
"public void testGetDataStreamForExternalFile() throws Exception {\n final String testUrl = \"String_Node_Str\";\n AVFile file = new AVFile(\"String_Node_Str\", testUrl);\n final CountDownLatch latch = new CountDownLatch(1);\n file.getDataStreamInBackground(new GetDataStreamCallback() {\n public void... |
"private void respawnPlayer(EntityRef clientEntity) {\n ClientComponent client = clientEntity.getComponent(ClientComponent.class);\n EntityRef playerCharacter = client.character;\n LocationComponent location = clientEntity.getComponent(LocationComponent.class);\n PlayerFactory playerFactory = new PlayerFact... |
"public void updateForm() {\n HadoopClusterConnection connection = getConnection();\n final DistributionVersion distributionVersion = getDistributionVersion();\n if (distributionVersion.distribution.useCustom()) {\n hideControl(customGroup, false);\n String authModeName = connection.getAuthMode()... |
"public Action replaceAction(Action action) {\n if (action.getActionType() == EActionType.SELECT_POINT) {\n return new PointAction(EActionType.SET_WORK_AREA, ((PointAction) action).getPosition());\n }\n return super.replaceAction(action);\n}\n"
|
"private void createInputLoopTable(TreeNode sourceNode, OutputTreeNode targetOutputNode) {\n EditPartViewer viewer = targetEditPart.getViewer();\n if (viewer instanceof XmlMapGraphicViewer) {\n InputLoopTableUtil.addSourceLoopToInputLoopTable(sourceNode, targetOutputNode, ((XmlMapGraphicViewer) viewer).get... |
"private final void update(String userInput) {\n if (userInput.isEmpty())\n return;\n List<String> confirmedKeywords = getConfirmedKeywords(userInput);\n for (String confirmedKeyword : confirmedKeywords) {\n TurboIssue.getMatchedIssues(allIssues, confirmedKeyword).stream().findFirst().ifPresent(t... |
"private CAstEntity createClassDeclaration(ASTNode n, List bodyDecls, List enumConstants, ITypeBinding typeBinding, String name, int modifiers, boolean isInterface, boolean isAnnotation, WalkContext context) {\n final List<CAstEntity> memberEntities = new ArrayList<CAstEntity>();\n ArrayList<ASTNode> inits = new ... |
"public static <P> P createProxyPort(final SessionMgr sessionMgr, final WebServiceTypeEnum webServiceType, final WebService<P> service) {\n service.getPort();\n return new WebServiceInvocationDecorator<>(service, new SalesforceWebServicePortInvoker(service, sessionMgr, webServiceType)).getPort();\n}\n"
|
"public void jailPlayer(CommandSender sender, String[] args) {\n Player player = this.getServer().getPlayer(args[0]);\n if (player == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\" + args[0] + \"String_Node_Str\");\n return;\n }\n args[0] = player.getName();\n if (!(args[0... |
"public void updateEnabling() {\n action.setEnabled(window.canBack());\n}\n"
|
"public DirectBuffer writeLong(int byteIndex, long value) {\n view.setUint32(byteIndex, value, littleEndian);\n return this;\n}\n"
|
"protected void drawDataSet(Canvas c, CandleDataSet dataSet) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n calcXBounds(trans);\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n int dataSetIndex = mChart.getCandleData().getIndexOfDataSet(data... |
"public void demoTimerIntervalDelays() {\n getActivity().getSupportFragmentManager().beginTransaction().addToBackStack(TimingDemoFragment.class.toString()).replace(android.R.id.content, new TimingDemoFragment(), TimingDemoFragment.class.toString()).commit();\n}\n"
|
"public void visitText(ITextArea textArea) {\n ContainerPosition curPos;\n if (!containerStack.isEmpty())\n curPos = (ContainerPosition) containerStack.peek();\n else\n curPos = new ContainerPosition(0, 0);\n int x = curPos.x + textArea.getX() + (int) (textArea.getFontInfo().getFontSize() * 70... |
"public void connectionRemoved(Connection connection) {\n LifecycleServiceImpl lifecycleService = (LifecycleServiceImpl) node.factory.getLifecycleService();\n if (connection.equals(this.conn) && !lifecycleService.paused.get()) {\n destroyEndpointThreads();\n rollbackTransactions();\n removeEn... |
"protected List<GraphTargetItem> printGraph(Map<GraphPart, List<GraphTargetItem>> partCodes, Map<GraphPart, Integer> partCodePos, List<GraphPart> visited, BaseLocalData localData, TranslateStack stack, List<GraphPart> allParts, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTarg... |
"public static Object getParameterValue(IElement element, Property property) {\n Object paramValue = property.getValue() != null ? property.getValue() : property.getDefaultValue();\n Property.Type propertyType = property.getType();\n switch(propertyType) {\n case STRING:\n if (!(element insta... |
"protected void updatePageDimension(float scale) {\n page.setHeight((int) (pageContentHeight / scale));\n page.setWidth((int) (pageContentWidth / scale));\n ContainerArea pageRoot = (ContainerArea) page.getRoot();\n pageRoot.setPosition((int) (pageRoot.getX() / scale), (int) (pageRoot.getY() / scale));\n ... |
"private void loadConnections(ProcessType process, Hashtable<String, Node> nodesHashtable) {\n EList listParamType;\n EList connecList;\n ConnectionType cType;\n connecList = process.getConnection();\n Connection connec;\n Node source, target;\n List<String> connectionsProblems = new ArrayList<Stri... |
"public static boolean isDate(String stringDate, String pattern, boolean ignoreTimeZone) {\n TimeZone tz = TimeZone.getDefault();\n if (ignoreTimeZone) {\n tz = TimeZone.getTimeZone(\"String_Node_Str\");\n }\n if (stringDate == null) {\n return false;\n }\n if (pattern == null) {\n ... |
"private void calcXValAverageLength() {\n if (mXVals.size() == 0) {\n mXValAverageLength = 1;\n return;\n }\n float sum = 1f;\n for (int i = 0; i < mXVals.size(); i++) {\n sum += mXVals.get(i).length();\n }\n mXValAverageLength = sum / (float) mXVals.size();\n}\n"
|
"private void debugTest(List<TestCase> all, String name) throws SoarException, InterruptedException {\n final Test test = findTest(all, name);\n if (test == null) {\n out.println(\"String_Node_Str\" + name + \"String_Node_Str\");\n System.exit(1);\n }\n out.printf(\"String_Node_Str\", test.get... |
"public void startPunch(Player p) {\n if (numpunches >= punches)\n instances.remove(p);\n if (target instanceof LivingEntity && target != null) {\n LivingEntity lt = (LivingEntity) target;\n Methods.damageEntity(p, target, damage);\n if (target instanceof Player) {\n if (Chi... |
"protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n Preferences.refreshPreferences();\n Preferences.printSettings();\n if (Preferences.mLicense == 1 || Preferences.mLicense == 2) {\n if (Preferences.mReplay == true) {\n }\n if (Preferences.mTyping == true) {\n ... |
"public StructureDefinition getSnapShotForProfile(String base) throws Exception {\n String[] parts = base.split(\"String_Node_Str\");\n if (parts[0].startsWith(\"String_Node_Str\") && parts.length == 1) {\n String name = base.substring(40);\n if (page.getDefinitions().hasResource(name))\n ... |
"private boolean buildAlignment() throws StructureException {\n if (levels.size() == 1) {\n result.setSymmLevels(1);\n return false;\n MultipleAlignment msa = new MultipleAlignmentImpl();\n msa.getEnsemble().setAtomArrays(new ArrayList<Atom[]>());\n msa.getEnsemble().setStructureIdentifiers(ne... |
"public boolean validate(CreditCard15 creditCard) {\n Character lastDigit = creditCard.getNumber().charAt(creditCard.getNumber().length() - 1);\n if (Integer.parseInt(lastDigit.toString()) % 2 == 0) {\n return true;\n } else {\n return false;\n }\n}\n"
|
"private Class<?> injectToPlainClassLoader(ClassPool pool, ClassLoader classLoader, String className, ClassLoadingChecker classLoadingChecker) throws NotFoundException, IOException, CannotCompileException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n if (pluginConfig.getProfilerPac... |
"public void renderTiles() {\n int index = 0;\n for (String s : ModelManager.getBattlefield().getMap().style.textures) {\n Texture diffuse = am.loadTexture(s);\n Texture normal;\n if (ModelManager.getBattlefield().getMap().style.normals.get(index) != null) {\n normal = am.loadTextu... |
"public <E> E merge(E e) {\n log.debug(\"String_Node_Str\" + e);\n EntityMetadata m = getMetadata(e.getClass());\n getEventDispatcher().fireEventListeners(m, e, PreUpdate.class);\n ObjectGraph graph = graphBuilder.getObjectGraph(e, new ManagedState(), getPersistenceCache());\n Node headNode = graph.getHe... |
"private void drawLine(PaintEvent event, TableItem tableItem) {\n final Rectangle tableBounds = properties.getTable().getBounds();\n final Rectangle tableItemBounds = tableItem.getBounds();\n tableItem.setBackground(new Color(tableItem.getDisplay(), parentViewer.getHighlightColor()));\n event.gc.setLineWidt... |
"public List<String> getEncodedValues(Date inputData) {\n if (inputData == null) {\n return new ArrayList<>();\n }\n List<String> values = new ArrayList<>();\n DateTime date = new DateTime(inputData);\n double timeOfDay = date.getHourOfDay() + date.getMinuteOfHour() / 60.0;\n int dayOfWeek = da... |
"private synchronized void receive(Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType, boolean reorg) throws VerificationException {\n BigInteger prevBalance = getBalance();\n Sha256Hash txHash = tx.getHash();\n boolean bestChain = blockType == BlockChain.NewBlockType.BEST_CHAIN;\n boolean... |
"private void renderCoordinateSystem(GL2 gl) {\n textRenderer.setColor(0, 0, 0, 1);\n int numberOfAxis = storageVA.size();\n gl.glColor4fv(X_AXIS_COLOR, 0);\n gl.glLineWidth(X_AXIS_LINE_WIDTH);\n gl.glPushName(pickingManager.getPickingID(uniqueID, EPickingType.X_AXIS_SELECTION, 1));\n gl.glBegin(GL2.G... |
"private final void doFail(Throwable failure) {\n this.LOG.trace(EventRecord.here(BasicCallbackProcessor.class, EventType.CALLBACK, this.callback.getClass().toString(), \"String_Node_Str\" + failure.getClass().getSimpleName() + \"String_Node_Str\"));\n this.LOG.trace(failure.getMessage(), failure);\n if (this.... |
"protected void adjustOthersColumn(List exclusion) {\n AbstractTableEditPart part = getAbstractTableEditPart();\n WorkingData data = getTableWorkingData();\n ColumnData[] datas = data.columnWidths;\n if (datas == null) {\n return;\n }\n for (int i = 0; i < datas.length; i++) {\n if (excl... |
"public void handleRequest(final HttpServerExchange exchange, final RequestContext context) throws Exception {\n if (context.isInError()) {\n next(exchange, context);\n return;\n }\n if (context.getMethod() == RequestContext.METHOD.GET || context.getMethod() == RequestContext.METHOD.OPTIONS || co... |
"protected String buildKey(ShardingDBResource shardingDBResource, EntityPK entityPk) {\n StringBuilder key = new StringBuilder();\n key.append(shardingDBResource.getClusterName());\n key.append(\"String_Node_Str\");\n key.append(shardingDBResource.getDbName());\n key.append(\"String_Node_Str\");\n key... |
"private NodeList getNodes(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver) {\n if (xPathFragment.isAttribute()) {\n return selectAttributeNodes(contextNode, xPathFragment, xmlNamespaceResolver);\n } else if (xPathFragment.nameIsText()) {\n return selectTextN... |
"private Component getComponent(String name, AbstractProject firstJob, AbstractProject lastJob, boolean showAggregatedPipeline) throws PipelineException {\n Pipeline pipeline = Pipeline.extractPipeline(name, firstJob, lastJob);\n List<Pipeline> pipelines = new ArrayList<Pipeline>();\n if (showAggregatedPipelin... |
"static HdmiCecMessage buildReportPowerStatus(int src, int dest, int powerStatus) {\n byte[] param = new byte[] { (byte) (powerStatus & 0xFF) };\n return buildCommand(src, dest, Constants.MESSAGE_REPORT_POWER_STATUS, param);\n}\n"
|
"protected boolean checkCompilationError(IFile codeFile, MigrateItemInfo itemInfo) throws Exception {\n boolean hasCompilationError = false;\n if (codeFile != null && codeFile.exists()) {\n IMarker[] markers = codeFile.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ONE);\n for (IMarker marker : ... |
"protected final static ResponseMessage wrapMessage(AtmosphereResponse res, String message) {\n Response.Builder builder = new Response.Builder();\n builder.body(message).status(res.getStatus(), res.getStatusMessage());\n Map<String, String> headers = res.headers();\n for (String s : headers.keySet()) {\n ... |
"public static boolean isPlant(Block plantBlock, int metadata) {\n for (BaseMod mod : modsLoaded) {\n if (mod.isPlant(plantBlock, state))\n return true;\n }\n return false;\n}\n"
|
"public int endLine() {\n return lastToken.line() + lastTokenLinesNumber - 1;\n}\n"
|
"public boolean readRecord(PactRecord target, byte[] line, int offset, int numBytes) {\n final int limit = offset + numBytes;\n int readPos = offset;\n final short[] offsets = this.offsets;\n offsets[0] = (short) offset;\n int col = 1;\n int countInWrapBuffer = 0;\n int startPos = readPos;\n whi... |
"public boolean apply(Game game, Ability source) {\n int amount = source.getManaCostsToPay().getX();\n if (amount > 0) {\n Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));\n if (permanent != null) {\n permanent.damage(amount, source.getSourceId(), game, ... |
"protected boolean shouldInterrupt(StatusBarNotification sbn) {\n if (mNotificationData.shouldFilterOut(sbn)) {\n if (DEBUG) {\n Log.d(TAG, \"String_Node_Str\" + sbn.getKey() + \"String_Node_Str\");\n }\n return false;\n }\n if (isSnoozedPackage(sbn)) {\n return false;\n ... |
"public void update() {\n this.x = owner.x;\n this.y = owner.y;\n this.visible = owner.visible;\n while (Keyboard.next()) {\n if (Keyboard.getEventKeyState()) {\n int keyCode = Keyboard.getEventKey();\n switch(keyCode) {\n case Keyboard.KEY_LSHIFT:\n ... |
"public static void assertFdAndAdEqual(ModuleVecFn vecFn, double epsilon, double delta) {\n int numParams = vecFn.getNumDimensions();\n IntDoubleDenseVector x = getMultiZeroOneGaussian(numParams);\n int outDim = vecFn.forward(x).size();\n for (int i = 0; i < outDim; i++) {\n for (int j = 0; j < numPa... |
"protected void _exportMoMLContents(Writer output, int depth) throws IOException {\n try {\n for (Object att : attributeList()) {\n if (!(att instanceof Parameter)) {\n Attribute attribute = (Attribute) att;\n attribute.exportMoML(output, depth);\n }\n ... |
"public void initialize(ServerSessionManager loginManager) {\n this.loginManager = loginManager;\n String serverHostAndPort = loginManager.getServerNameAndPort();\n this.baseURL = \"String_Node_Str\" + serverHostAndPort + \"String_Node_Str\";\n WorldManager worldManager = ClientContextJME.getWorldManager();... |
"private void collisionCheck() {\n for (Particle p : particleList) {\n if (map[(int) Math.round(p.getX())][(int) Math.round(p.getY())] == 0)\n p.setWeight(0.0);\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.