content stringlengths 40 137k |
|---|
"public AssignInst sameCopy() {\n return new MoveInst(dst(), src);\n}\n"
|
"public SpannableStringBuilder addMediaFromShareAction(String imgPath, Uri curStream, SpannableStringBuilder ssb) {\n Bitmap resizedBitmap = null;\n String imageTitle = \"String_Node_Str\";\n ImageHelper ih = new ImageHelper();\n Display display = getWindowManager().getDefaultDisplay();\n int width = dis... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!(obj instanceof NodeLink)) {\n return false;\n }\n NodeLink targetNodeLink = (NodeLink) obj;\n return new EqualsBuilder().append(getSourceNodeId(), targetNodeLink.getSourceNodeId()).append(getTargetNodeId... |
"public void testBloomResendOnNewKey() throws Exception {\n wallet.setKeychainLookaheadSize(5);\n wallet.setKeychainLookaheadThreshold(4);\n peerGroup.startAsync();\n peerGroup.awaitRunning();\n InboundMessageQueuer p1 = connectPeer(1);\n InboundMessageQueuer p2 = connectPeer(2);\n peerGroup.waitFo... |
"private void fillDefaultsWhenImpalaVersionChanged() {\n if (isCreation && isNeedFillDefaults()) {\n String distribution = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_IMPALA_DISTRIBUTION);\n String version = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_IMP... |
"public void carry(MessageContext context) {\n if (ConfigManager.getInstance().getServerState().equals(Constants.MESSAGEBUS_SERVER_EVENT_STARTED)) {\n IHandlerChain handlerChain = new MessageCarryHandlerChain(carryType, this.getContext());\n handlerChain.handle(context);\n } else {\n throw ne... |
"public boolean isDiagnosticsEnabled() {\n return ninjaProperties.isDev() && ninjaProperties.getBooleanWithDefault(NinjaConstant.DIAGNOSTICS_KEY_NAME, Boolean.TRUE);\n}\n"
|
"public void maybeUpliftTimestamp(RawPacket p) {\n long timestamp = p.getTimestamp();\n long minTimestamp = (maxTimestamp == -1) ? timestamp : maxTimestamp + 1;\n long delta = TimeUtils.rtpDiff(timestamp, minTimestamp);\n if (delta < 0) {\n if (DEBUG) {\n logger.debug(\"String_Node_Str\" +... |
"public void setTimeZone(Context context, String timeZone) {\n if (TextUtils.isEmpty(timeZone)) {\n if (DEBUG) {\n Log.d(TAG, \"String_Node_Str\");\n }\n return;\n }\n boolean updatePrefs = false;\n synchronized (mTZCallbacks) {\n if (CalendarCache.TIMEZONE_TYPE_AUTO.e... |
"public void doSave(IProgressMonitor monitor) {\n super.doSave(monitor);\n if (this.viewName != null && this.viewName.length() > 0) {\n if (viewName.matches(\"String_Node_Str\")) {\n lastDataModelName = XpathSelectDialog.getDataModelName();\n String concept = viewName.replaceAll(\"Str... |
"public DBCollection getCollection() {\n return local.get();\n}\n"
|
"public Vector3f scale() {\n return new Vector3f(scale);\n}\n"
|
"private int computeOutOfDateProjectsCount() {\n int outOfDateProjectsCount = 0;\n for (IProject p : projectPaths.values()) {\n if (requiresUpdate(p) && !codebaseViewer.getChecked(p)) {\n outOfDateProjectsCount++;\n }\n }\n return outOfDateProjectsCount;\n}\n"
|
"public int onStartCommand(final Intent intent, int flags, int startId) {\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n FileDownloader download_manager = intent.getParcelableExtra(\"String_Node_Str\");\n Log.i(\"String_Node_Str\", download_manager.get_test());\n Log.i(\"String_Node_Str\", Integer.toS... |
"public void on_StartSessoionPressed(ActionEvent actionEvent) {\n if (cb_Profile.getValue() != null) {\n if (path != null) {\n try {\n sessionService.add_session(shouting);\n } catch (ServiceException serviceExeption) {\n LOGGER.info(\"String_Node_Str\", ser... |
"private static int payloadLength(byte[] header) {\n int length = header[1] & 0x7f;\n switch(length) {\n case 126:\n return (header[2] & 0xff) << 8 | (header[3] & 0xff);\n case 127:\n return (header[2] & 0xff) << 56 | (header[3] & 0xff) << 48 | (header[4] & 0xff) << 40 | (heade... |
"public void run() {\n File currentFile = null;\n while (!isTerminate) {\n try {\n File directory = new File(\"String_Node_Str\");\n File[] files = directory.listFiles(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n if (name.... |
"private void init(PgSz pgSz, PgMar pgMar) {\n if (pgSz == null) {\n log.warn(\"String_Node_Str\");\n this.pgSz = Context.getWmlObjectFactory().createSectPrPgSz();\n setPgSize(PageSizePaper.A4, false);\n } else {\n this.pgSz = pgSz;\n }\n if (pgMar == null) {\n log.warn(\"... |
"public String generateTransferOutputCode() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n CompositeActor container = ((CompositeActor) _director.getContainer());\n String containerName = generateName(container);\n Iterator<?> ports = container.outputPortList().iterator();\n ... |
"public Domain getUserDomian() {\n if (getBinsData() != null) {\n List<SliceEntity> tableData = (List<SliceEntity>) getBinsData();\n Domain userDomain = DomainHelper.createDomain(\"String_Node_Str\");\n for (SliceEntity entity : tableData) {\n double min = TextFormatFactory.createLoca... |
"public void writeExternal(DataOutputStream out) throws IOException {\n ExtUtil.write(out, new ExtWrapListPoly(payloads));\n}\n"
|
"private boolean isHiddenInRefProjects(ComponentSetting settingInMain) {\n if (settingInMain == null) {\n return false;\n }\n int hiddenCount = 0;\n ProjectManager manager = ProjectManager.getInstance();\n List<Project> referencedProjects = manager.getReferencedProjects();\n for (Project curPro... |
"protected void openUsbConnection(Bundle extras) throws IOException {\n registerUsbPermissionBroadcastReceiver();\n UsbManager manager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE);\n List<UsbDevice> availableDevices = UsbSerialProber.getAvailableSupportedDevices(manager);\n if (availableDev... |
"public void onClick(DialogInterface dialog, int whichButton) {\n if (editText.getText().toString().isEmpty()) {\n Toast.makeText(fragment.getActivity(), R.string.title_mandatory, Toast.LENGTH_SHORT).show();\n } else {\n callback.add(editText.getText().toString());\n }\n}\n"
|
"public static String process(Definitions definitions, BuildWorkerContext workerContext, List<ValidationMessage> validationErrors, String text, String location, String prefix) throws Exception {\n if (Utilities.noString(text))\n return \"String_Node_Str\";\n text = text.replace(\"String_Node_Str\", \"Strin... |
"public static List<String> helpMenu(final PlotPlayer player, final CommandCategory category, int page) {\n List<Command> commands;\n commands = getCommands(category, player);\n final int perPage = 5;\n final int totalPages = (commands.size() / perPage) + (commands.size() % perPage == 0 ? 0 : 1);\n if (p... |
"protected <T extends DataSource> FutureData<ManagedSource> updateOrCreate(String name, T source, String id) {\n if (name == null || source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n FutureData<ManagedSource> future = new FutureData<>();\n URI uri = newParams().forURL... |
"public void testParsingDotTerminatedImport_538() throws Exception {\n runNegativeTest(new String[] { \"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 ModuleNode mn = getModuleNode(\"St... |
"protected void createResultSection(Composite parent) {\n resultSection = createSection(form, parent, DefaultMessagesImpl.getString(\"String_Node_Str\"), \"String_Node_Str\");\n Composite sectionClient = toolkit.createComposite(resultSection);\n sectionClient.setLayout(new GridLayout(2, false));\n sectionCl... |
"private static Message configureMessage(Message message, ConfigurationSection config) {\n if (message != null && config != null) {\n message.setMessageOutputEnabled(config.getBoolean(\"String_Node_Str\", true));\n message.setCoinLoggingEnabled(config.getBoolean(\"String_Node_Str\", true));\n if... |
"public void wipingFileError(String path, String err) {\n errCount++;\n _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_WIPING_WORD) + \"String_Node_Str\" + path + \"String_Node_Str\" + err);\n}\n"
|
"private AcsLogLevelDefinition convertLegalLogLevel(int legalLogLevel) {\n try {\n return AcsLogLevelDefinition.fromInteger(legalLogLevel);\n } catch (AcsJIllegalArgumentEx ex) {\n logger.warning(\"String_Node_Str\" + legalLogLevel);\n throw new RuntimeException(ex);\n }\n}\n"
|
"private SingleCRS parseGeodeticCRS(final int mode, final Element parent, String csType) throws ParseException {\n final Element element = parent.pullElement(mode, (csType != null) ? new String[] { WKTKeywords.BaseGeodCRS, WKTKeywords.GeogCS } : new String[] { WKTKeywords.GeodeticCRS, WKTKeywords.GeogCS, WKTKeywords... |
"public String getNewTestCaseSourceCode() {\n StringBuilder buf = new StringBuilder();\n if (targetClassMeta.packageName != null && targetClassMeta.packageName.trim().length() > 0) {\n buf.append(\"String_Node_Str\");\n buf.append(targetClassMeta.packageName);\n buf.append(\"String_Node_Str\"... |
"public void testInferThisInSimpleInferExprType() {\n typeCheck(LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n typeCheck(LINE_JOINER.join(CLOSURE_BASE, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\",... |
"public void actionPerformed(ActionEvent e) {\n HUDComponent hud = textChatHUDRefMap.get(\"String_Node_Str\").get();\n boolean show = !hud.isVisible();\n textChatMenuItem.setState(show);\n textChatHUDComponent.setVisible(show);\n}\n"
|
"protected void onDraw(Canvas canvas) {\n mGame.update();\n Matrix matrix = new Matrix();\n {\n float scaleX = (float) mWidth / mBackgroundBitmap.getWidth();\n float scaleY = (float) mHeight / mBackgroundBitmap.getHeight();\n float scale = Math.max(scaleX, scaleY);\n matrix.postScal... |
"public String[] applyVpnUsers(final Network network, final List<? extends VpnUser> users, final List<DomainRouterVO> routers) throws ResourceUnavailableException {\n if (routers == null || routers.isEmpty()) {\n s_logger.warn(\"String_Node_Str\");\n throw new ResourceUnavailableException(\"String_Node... |
"public void downloadFile(IProgressMonitor monitor, MavenArtifact artifact, File target) throws Exception {\n if (monitor == null) {\n monitor = new NullProgressMonitor();\n }\n if (artifact == null) {\n return;\n }\n final String reletivePath = PomUtil.getArtifactPath(artifact);\n if (r... |
"private Map<String, JComponent> getUIComponents(JLayeredPane jLayeredPane) {\n Map<String, JComponent> components = new HashMap<>();\n components.put(\"String_Node_Str\", jSplitPane1);\n components.put(\"String_Node_Str\", pnlBattlefield);\n components.put(\"String_Node_Str\", jPanel3);\n components.put... |
"public static BasicDBObject getDocumentFromObject(Object obj, List<Column> columns) throws PropertyAccessException {\n BasicDBObject dBObj = new BasicDBObject();\n for (Column column : columns) {\n Field f = column.getField();\n if (f.getType().isPrimitive() || f.getType().equals(String.class) || f... |
"public String getFeedbackSessionResultsSummaryInSectionAsCsv(String feedbackSessionName, String courseId, String userEmail, String section) throws UnauthorizedAccessException, EntityDoesNotExistException, ExceedingRangeException {\n long indicatedRange = (section == null) ? 10000 : -1;\n FeedbackSessionResultsBu... |
"public byte[] paddedEncode(String contextPrefix, String metricPrefix, String tagPrefix, int timeBase, String runId, int padding) {\n int idSize = entityTable.getIdSize();\n int totalDepth = getDepth(MetricsEntityType.CONTEXT) + getDepth(MetricsEntityType.METRIC) + getDepth(MetricsEntityType.TAG) + getDepth(Metri... |
"public void ExecutionFunction(int t, int i, int j, Cell w, Cell r, Cell left, Cell right, Cell up, Cell down, Cell left_up, Cell left_down, Cell right_up, Cell right_down, Cell[][] readcells) {\n w.charge = r.charge;\n w.value = r.value;\n w.value2 = r.value2;\n w.is_solid = r.is_solid;\n w.chargeFront ... |
"public IType resolveType(ITypeVariable typeVar, IType concrete) {\n return Types.ANY;\n}\n"
|
"public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changeLogFile) throws IOException, InterruptedException {\n LOGGER.fine(\"String_Node_Str\");\n String resolvedConfigPath = IntegrityCheckpointAction.evalGroovyExpression(build.getEnvironment(li... |
"private void init() {\n this.moveToMenu.setIcon(new ImageIcon(ImageLoader.getImage(ImageLoader.GROUPS_16x16_ICON)));\n this.addSubcontactMenu.setIcon(new ImageIcon(ImageLoader.getImage(ImageLoader.ADD_CONTACT_16x16_ICON)));\n this.removeContactMenu.setIcon(new ImageIcon(ImageLoader.getImage(ImageLoader.DELETE... |
"public String getImageBase() {\n return (images instanceof ImagesFromImageBase) ? ((ImagesFromImageBase) images).getBaseUrl() : GWT.getModuleBaseURL();\n}\n"
|
"void handleSize(Invocation inv) {\n if (migrating()) {\n inv.responseType = RESPONSE_REDO;\n } else {\n CMap cmap = getMap(inv.name);\n inv.longValue = cmap.size();\n }\n sendResponse(inv);\n}\n"
|
"public void basicCallbackTest() throws Exception {\n HourDayMonthBucketer hourDayMonthBucketer = new HourDayMonthBucketer();\n Dimension<DateTime> time = new Dimension<DateTime>(\"String_Node_Str\", hourDayMonthBucketer, false, 8);\n Dimension<String> zipcode = new Dimension<String>(\"String_Node_Str\", new S... |
"public boolean collapsePanel() {\n if (mSlideState == SlideState.HIDDEN || mSlideState == SlideState.COLLAPSED)\n return false;\n return collapsePanel(mSlideableView, 0);\n}\n"
|
"protected Void doInBackground(Void... params) {\n Socialize.getSocialize().clearSessionCache(v.getContext());\n return null;\n}\n"
|
"public void updateBinaryRepresenation() {\n if (!this.modified)\n return;\n final int firstModified = this.firstModifiedPos;\n final int numFields = this.numFields;\n final int[] offsets = this.offsets;\n if (this.serializer == null) {\n this.serializer = new InternalDeSerializer();\n }... |
"public static void loadOntology(String fileName) {\n List<String> ont = new ArrayList<>();\n Dataset dataset = Repository.get().dataset;\n dataset.begin(ReadWrite.READ);\n try {\n String prefix = StrUtils.strjoinNL(\"String_Node_Str\", \"String_Node_Str\");\n String query = prefix + \"String_... |
"private void addType(String name) {\n if (classLoader != null && name != null) {\n try {\n Class<?> clazz = Class.forName(name, false, classLoader);\n if (typeNames.add(name)) {\n typeTable.put(clazz.getSimpleName(), name);\n }\n Class<?>[] innerClas... |
"public Integer getSortedVAId(ISet set, Integer idContent, Integer idStorage, ClusterState clusterState) {\n Integer VAId = 0;\n this.set = set;\n this.iVAIdContent = idContent;\n this.iVAIdStorage = idStorage;\n VAId = cluster(idContent, idStorage, clusterState.getClustererType());\n return VAId;\n}\... |
"public boolean onTrackballEvent(MotionEvent ev) {\n long time = ev.getEventTime();\n if ((ev.getMetaState() & KeyEvent.META_ALT_ON) != 0) {\n if (ev.getY() > 0)\n pageDown(true);\n if (ev.getY() < 0)\n pageUp(true);\n return true;\n }\n if (ev.getAction() == Motio... |
"protected void sendResponse(final OutputStream output) throws IOException {\n final Marshaller marshaller = getMarshaller();\n marshaller.start(createByteOutput(output));\n marshaller.writeByte(DomainServerProtocol.RETURN_SERVER_MODEL);\n marshaller.writeObject(sm);\n marshaller.finish();\n}\n"
|
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n if (unmarshalRecord.isNil() && xmlCompositeObjectMapping.getNullPolicy().isNullRepresentedByXsiNil() && (unmarshalRecord.getChildRecord() == null)) {\n unmarshalRecord.resetStringBuffer();\n return;\n }\n if... |
"public void testConstructorAlias9() throws Exception {\n testTypes(\"String_Node_Str\" + \"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}\n"
|
"private static Set<Long> findJobIds(String[] argv) {\n Set<Long> jobIds = new HashSet<Long>();\n for (String arg : argv) {\n jobIds.add(Long.valueOf(arg));\n }\n return jobIds;\n}\n"
|
"private void run(final File paramFile, final File designFile, final String hdfsPath, final String jobDescription) {\n checkNotNull(paramFile, \"String_Node_Str\");\n checkNotNull(designFile, \"String_Node_Str\");\n checkNotNull(hdfsPath, \"String_Node_Str\");\n try {\n File repackagedJarFile = Hadoo... |
"public void afterRetrieve(Retriever retriever) {\n SectorPolyline s = retrievingLines.remove(retriever);\n if (s != null) {\n removeRenderable(s);\n firePropertyChange(AVKey.LAYER, null, this);\n }\n}\n"
|
"public void process(DatabaseMapping mapping, MappingAccessor accessor, MetadataClass referenceClass, boolean isForMapKey) {\n if (!EnumeratedMetadata.isValidEnumeratedType(referenceClass)) {\n throw ValidationException.invalidTypeForEnumeratedAttribute(mapping.getAttributeName(), referenceClass, accessor.get... |
"private int calcDelay() {\n return (delayList.isEmpty()) ? 10 * Math.round(100 * 60 * 1f / settingsBundle.getWPM()) : delayList.get(position) * Math.round(100 * 60 * 1f / settingsBundle.getWPM());\n}\n"
|
"private static void checkItemDependencies(Item item, List<IRepositoryViewObject> repositoryObjects) {\n if (item == null) {\n return;\n }\n IProxyRepositoryFactory factory = CorePlugin.getDefault().getProxyRepositoryFactory();\n RelationshipItemBuilder builder = RelationshipItemBuilder.getInstance()... |
"public List<Job> getRecentlyRun(long maxResults, Iterable<Table> tables) {\n try {\n String tablesClause = Util.getTableCondition(tables);\n return getJobs(maxResults, 1, tablesClause, null);\n } catch (Exception e) {\n log.error(\"String_Node_Str\", e);\n return Collections.emptyList... |
"private void yAxis(Graphics g) {\n g.setColor(Color.BLACK);\n g.drawLine(X_OFFSET_LEFT, calcY(0), X_OFFSET_LEFT, Y_OFFSET_TOP);\n g.setColor(new Color(220, 220, 220));\n g.drawLine(X_OFFSET_LEFT, height / 2 + Y_OFFSET_TOP, getWidth(), height / 2 + Y_OFFSET_TOP);\n g.setColor(Color.BLACK);\n DecimalFo... |
"public static boolean isSuccess(int gattStatus) {\n return gattStatus == 0;\n}\n"
|
"private String extractSnapshotBaseFileName(String input) {\n if (input == null) {\n return null;\n }\n String result = input;\n final String fileType = \"String_Node_Str\";\n if (result.endsWith(fileType)) {\n result = result.substring(0, result.length() - (fileType).length());\n }\n ... |
"private void _setOrClearPatternObjectAttributes(NamedObj object, boolean isSet, Collection<?> filter) {\n try {\n Collection<?> children;\n if (filter == null) {\n children = GTTools.getChildren(object, false, true, true, true);\n } else {\n children = filter;\n }\n... |
"private TypeBinding makeTypeBinding1(TypeX typeX) {\n if (typeX.isPrimitive()) {\n if (typeX == ResolvedTypeX.BOOLEAN)\n return BaseTypes.BooleanBinding;\n if (typeX == ResolvedTypeX.BYTE)\n return BaseTypes.ByteBinding;\n if (typeX == ResolvedTypeX.CHAR)\n retu... |
"ColorStateList loadColorStateList(TypedValue value, int id) throws NotFoundException {\n if (TRACE_FOR_PRELOAD) {\n if ((id >>> 24) == 0x1) {\n final String name = getResourceName(id);\n if (name != null)\n android.util.Log.d(\"String_Node_Str\", name);\n }\n }\... |
"public static StatisticsCollector newStatisticsCollector() {\n final ScheduledExecutorService scheduledExecutor = statCollectorExecutor;\n if (scheduledExecutor != null) {\n long interval = 1L;\n ScheduledCollector collector = new ScheduledCollector(interval);\n ScheduledFuture future = sche... |
"private void restoreTreeStatus(RepositoryCheckBoxView viewer) {\n CheckboxRepositoryTreeViewer checkboxTreeViewer = (CheckboxRepositoryTreeViewer) viewer.getViewer();\n checkboxTreeViewer.setAllChecked(true);\n String[] array = RepositoryManager.getFiltersByPreferenceKey(IRepositoryPrefConstants.FILTER_BY_NOD... |
"public void onWebSocketConnect(Session session) {\n log.info(\"String_Node_Str\");\n this.session = session;\n}\n"
|
"public boolean bakeWorldBlock(BlockFarm blockFarm, IBlockAccess world, BlockPos pos, IModelBaker baker) {\n TileFarm farm = (TileFarm) world.getTileEntity(pos);\n TextureAtlasSprite[] textures = getSprites(farm.getFarmBlockTexture());\n baker.addBlockModel(blockFarm, pos, textures, 0);\n baker.addBlockMode... |
"public void setDocumentLocator(Locator locator) {\n if (xmlReader != null) {\n xmlReader.setLocator(locator);\n if (null == rootElementName && null == rootElementLocalName && parentRecord == null && locator instanceof Locator2) {\n Locator2 loc = (Locator2) locator;\n this.setEnc... |
"public void testGitUrisInContentLocation() throws Exception {\n URI workspaceLocation = createWorkspace(getMethodName());\n String projectName = getMethodName();\n WebResponse response = createProjectWithContentLocation(workspaceLocation, projectName, gitDir.toString());\n assertEquals(HttpURLConnection.HT... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n DataHandler.getInstance().addObserver(this);\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n new AlertDialog... |
"public void handleMessage(Message message) {\n switch(message.what) {\n case EditSubkeyDialogFragment.MESSAGE_CHANGE_EXPIRY:\n editSubkeyExpiry(position);\n break;\n case EditSubkeyDialogFragment.MESSAGE_REVOKE:\n if (mSaveKeyringParcel.mRevokeSubKeys.contains(keyId)) ... |
"public void testAddFieldInitializerLiteral() throws Exception {\n javaClass.addField(\"String_Node_Str\").setLiteralInitializer(\"String_Node_Str\").setPrivate();\n Field fld = javaClass.getFields().get(javaClass.getFields().size() - 1);\n fld.getOrigin();\n assertEquals(\"String_Node_Str\", fld.getType())... |
"public DataBuffer getIndices() {\n if (isScalar()) {\n return Nd4j.createBuffer(new int[] { 0, 0 });\n }\n List<Integer> ind = new ArrayList<>();\n for (int i = 0; i < values.length(); i++) {\n boolean isIn = true;\n int idxNotFixed = 0;\n int[] idx = getIndicesOf(i).asInt();\n ... |
"public Axis1D getCommonAxis() {\n return parent.getCommonAxis(this.layout.getAxis());\n}\n"
|
"public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {\n super.onAuthenticationSucceeded(result);\n setStatus(R.string.fingerprint_state_success, successColor, successColor, R.drawable.fingerprint_success);\n handler.postDelayed(new Runnable() {\n\n public void run() {\... |
"public void execute() {\n canExecute();\n if (connectionName == null) {\n final INodeConnector mainConnector;\n EConnectionType connecType;\n if (source.isELTComponent()) {\n connecType = EConnectionType.TABLE;\n } else {\n connecType = EConnectionType.FLOW_MAIN;... |
"public void testEdgeInputMap() throws Exception {\n final String INSTANCE_NAME = \"String_Node_Str\";\n final String TEST_TABLE_1 = \"String_Node_Str\";\n if (!System.getProperty(\"String_Node_Str\").startsWith(\"String_Node_Str\")) {\n Graph g = GraphFactory.open(new AccumuloGraphConfiguration().setIn... |
"protected Statement populateDatabase() throws Exception {\n String createTable = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n Class.forName(\"String_Node_Str\");\n Statement statement = connectToDatabase();\n statement.execute(createTable);\... |
"public void resumeJob(JobKey jobKey) throws SchedulerException {\n invoke(\"String_Node_Str\", new Object[] { jobKey }, new String[] { JobKey.class.getName() });\n}\n"
|
"private File performInit(String vmName, String boxName, IVagrantConnection connection) {\n String stateLoc = Activator.getDefault().getStateLocation().toOSString();\n File vagrantDir = Paths.get(stateLoc, vmName).toFile();\n if (!vagrantDir.mkdir()) {\n CommandUtils.delete(vagrantDir);\n vagrant... |
"public void clear() {\n keySet.clear();\n values = (V[]) new Object[values.length];\n}\n"
|
"private boolean switchPartition() {\n while (partitionIndex < partitionCount) {\n final int columnBase = getColumnBase(partitionIndex);\n long partitionSize = partitionRowCounts.getQuick(partitionIndex);\n if (partitionSize == -1) {\n partitionSize = openPartition(partitionIndex++, c... |
"protected void setFile(File imageFile) throws IOException {\n files = new String[1];\n File parent = imageFile;\n if (!parent.isDirectory()) {\n parent = imageFile.getParentFile();\n }\n for (File f : parent.listFiles()) {\n if (f.getName().endsWith(\"String_Node_Str\")) {\n pro... |
"public void configure(final Env env, final Config config, final Binder binder) {\n HibernateValidatorConfiguration configuration = byProvider(HibernateValidator.class).configure();\n if (config.hasPath(\"String_Node_Str\")) {\n config.getConfig(\"String_Node_Str\").root().forEach((k, v) -> configuration.a... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n createMenuDrawer(R.layout.notifications);\n ActionBar actionBar = getSupportActionBar();\n actionBar.setDisplayShowTitleEnabled(true);\n setTitle(getResources().getString(R.string.notifications));\n FragmentMana... |
"public <T> double getInformationLoss(Distribution distribution) {\n double result = 0d;\n int[] buckets = distribution.getBuckets();\n for (int i = 0; i < buckets.length; i += 2) {\n result += buckets[i] != -1 ? 1 : 0;\n }\n return result / (double) dictionary.length;\n}\n"
|
"private double[][] calculateDistanceMatrix(MultipleSequenceAlignment<C, D> multipleSequenceAlignment, TreeConstructionAlgorithm tca) {\n updateProgress(\"String_Node_Str\", 0);\n int numberOfSequences = multipleSequenceAlignment.getSize();\n String[] sequenceString = new String[numberOfSequences];\n for (i... |
"public boolean RebaseStream(String viewtag, String stream, String baseline, boolean complete) {\n logger.debug(\"String_Node_Str\" + viewtag);\n String cmd = \"String_Node_Str\" + (complete ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\" + viewtag + \"String_Node_Str\" + stream + \"String_Node... |
"protected void waitState(final Id.Program programId, String state) throws Exception {\n Tasks.waitFor(state, new Callable<String>() {\n public String call() throws Exception {\n String path = String.format(\"String_Node_Str\", programId.getApplicationId(), programId.getType().getCategoryName(), pr... |
"public boolean accept(DependencyNode node) {\n return Dependencies.isForgeAddon(node.getDependency().getCoordinate()) && !node.getDependency().isOptional();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.