content stringlengths 40 137k |
|---|
"private Set<CNAMEItem> getCnameItems(RawPacket pkt) {\n Set<CNAMEItem> ret = new HashSet<>();\n byte[] buf = pkt.getBuffer();\n int off = pkt.getOffset();\n int len = pkt.getLength();\n int ptr = 4;\n while (ptr + 6 < len) {\n int type = buf[off + ptr + 4];\n int len2 = buf[off + ptr + ... |
"public void resuming() {\n LOG.debug(\"String_Node_Str\", program.getId(), runId.getId());\n Retries.supplyWithRetries(new Supplier<Void>() {\n public Void get() {\n runtimeStore.setResume(program.getId(), runId.getId());\n return null;\n }\n }, RetryStrategies.fixDelay(Con... |
"public void visitNew(com.ibm.wala.shrikeBT.NewInstruction instruction) {\n int result = reuseOrCreateDef();\n TypeReference t = ShrikeUtil.makeTypeReference(loader, instruction.getType());\n NewSiteReference ref = NewSiteReference.make(getCurrentProgramCounter(), t);\n if (t.isArrayType()) {\n int[]... |
"public static <T> OFunctionParameter create(String name, T value) {\n if (value == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (value instanceof OObject) {\n return new FunctionParameterImpl(name, (OObject) value);\n }\n EdmType type = EdmSimpleType.forJavaType(value... |
"protected void helpTestCaseSensitiveFunctionIndex(boolean mutable, boolean localIndex) throws Exception {\n Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);\n Connection conn = DriverManager.getConnection(getUrl(), props);\n String dataTableName = generateUniqueName();\n String indexName = gene... |
"private static void createFolder(String folder) throws IOException {\n File file = new File(folder);\n try {\n FileUtils.deleteDirectory(file);\n } catch (IOException ignore) {\n }\n return file.mkdir();\n}\n"
|
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String targetName = getJobParameters(chunkContext).getString(JobConstants.TARGET_NAME_JOB_PARAM);\n if (targetName == null) {\n targetName = clusterName;\n }\n String jo... |
"public PropertyValue getValue(String columnName) {\n if (QueryImpl.JCR_SCORE.equals(columnName)) {\n return PropertyValues.newDouble(currentRow.score);\n }\n Collection<Object> fieldValues = currentRow.doc.getFieldValues(columnName);\n return PropertyValues.newString(Iterables.toString(fieldValues !... |
"protected String dump(boolean canonical) {\n if (canonical) {\n StringBuffer buf = new StringBuffer();\n int ln = getRegulatedChildCount();\n for (int i = 0; i < ln; i++) {\n TemplateElement element = getRegulatedChild(i);\n buf.append(element.dump(canonical));\n }\... |
"public double getGeneralizationFactor() {\n return gFactor != null ? gFactor : 1d;\n}\n"
|
"protected void restoreGL() {\n setBlendMode(blendMode);\n if (hints[DISABLE_DEPTH_TEST]) {\n pgl.disable(PGL.DEPTH_TEST);\n } else {\n pgl.enable(PGL.DEPTH_TEST);\n }\n pgl.depthFunc(PGL.LEQUAL);\n if (quality < 2) {\n pgl.disable(PGL.MULTISAMPLE);\n } else {\n pgl.enab... |
"private void maybeCommitViewerState(GL2 gl, ViewerState state) {\n if (isSelecting()) {\n if (myCommittedViewerState.lightingEnabled == true) {\n gl.glDisable(GL2.GL_LIGHTING);\n myCommittedViewerState.lightingEnabled = false;\n }\n if (myCommittedViewerState.colorEnabled ... |
"public void shutdownServer() {\n int timeWaitForShutdownInSeconds = getIntConfig(\"String_Node_Str\", 0);\n if (timeWaitForShutdownInSeconds > 0) {\n long endTime = System.currentTimeMillis() + (timeWaitForShutdownInSeconds * 1000L);\n LOG.info(\"String_Node_Str\" + new Date(endTime));\n whi... |
"public boolean equals(Object other) {\n if (other == null || !(other instanceof AggregateObject))\n return false;\n AggregateObject rhs = (AggregateObject) other;\n if (!aggregateExp.getAggregation().getName().equals(rhs.getAggregateExpr().getAggregation().getName()) || aggregateExp.getType() != rhs.ge... |
"public String getUser() {\n return dag.getUserName();\n}\n"
|
"public void testWorkflowToken() throws Exception {\n Assert.assertEquals(200, deploy(AppWithWorkflow.class).getStatusLine().getStatusCode());\n Id.Application appId = Id.Application.from(Id.Namespace.DEFAULT, AppWithWorkflow.NAME);\n final Id.Workflow workflowId = Id.Workflow.from(appId, AppWithWorkflow.Sampl... |
"public void printModel(Writer writer) throws IOException {\n for (int t = 0; t < numTemplates; t++) {\n FeatureTemplate template = templates.get(t);\n int numConfigs = template.getNumConfigs();\n Alphabet<Feature> alphabet = template.getAlphabet();\n for (int c = 0; c < numConfigs; c++) ... |
"ACWorld demandACWorld(final World world) {\n final String name = world.getName();\n ACWorld result = worlds.get(name);\n if (result == null) {\n result = worldFactory.createWorld(world);\n addWorld(result);\n result = worlds.get(name.toUpperCase());\n }\n return result;\n}\n"
|
"protected IStatus run(IProgressMonitor monitor) {\n if (provider.getValidGuids().isEmpty()) {\n AWorkbench.popup(\"String_Node_Str\");\n } else {\n success = provider.searchAndLoad();\n }\n return Status.OK_STATUS;\n}\n"
|
"public void initialize(DownloadManager manager, FileManager fileManager, DownloadCallback callback) {\n this.manager = manager;\n this.fileManager = fileManager;\n this.callback = callback;\n currentRFDs = new HashSet();\n _activeWorkers = new LinkedList();\n _workers = new ArrayList();\n queuedWo... |
"public void testSerializeException() {\n PersistenceStrategy<Data> persistenceStrategy;\n Context context;\n context = RuntimeEnvironment.application;\n persistenceStrategy = new SQLPersistenceStrategy<>(new GsonSerializationStrategy<>(), createRandomString(), context);\n persistenceStrategy.onInitializ... |
"public boolean remove(Object key) {\n if (list.remove(key) > -1) {\n int index = idx((T) key);\n if (key.equals(Unsafe.arrayGet(keys, index))) {\n Unsafe.arrayPut(keys, index, noEntryValue);\n free++;\n return true;\n }\n return probeRemove(key, index);\n... |
"public static <R, MS, M, VS, V> Match<R> withHandler(final JSonHandler<R, MS, M, VS, V> handler) {\n final Matcher<TokenStream, R> main, object, array;\n final Matcher<TokenStream, Object> members, remainingMembers, member, values, remainingValues, value;\n main = parser(Matcher.<TokenStream, R>create());\n ... |
"public double finalQ(int[] struct, double[] degrees, HierarchicalUndirectedGraph graph, AttributeModel attributeModel) {\n AttributeTable nodeTable = attributeModel.getNodeTable();\n AttributeColumn modCol = nodeTable.getColumn(MODULARITY_CLASS);\n if (modCol == null) {\n modCol = nodeTable.addColumn(M... |
"public static Select createSelect(List<ColumnName> columnsList, List<String> aliasNamesList) {\n Map<ColumnName, String> columnsAliases = new LinkedHashMap<>();\n Map<String, ColumnType> columnsTypes = new LinkedHashMap<>();\n Iterator<String> aliasesIt = aliasNamesList.iterator();\n for (ColumnName column... |
"public void run() {\n device.clearCache();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_MESSAGE, new Intent(RCDevice.ACTION_INCOMIN... |
"public void testDifferentMemberAdded() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final List<LifecycleState> lifecycleEvents = ... |
"public long getUsedBytes(StoragePool storagePool) {\n long usedSpace = 0;\n List<VolumeVO> lstVolumes = _volumeDao.findByPoolId(storagePool.getId(), null);\n if (lstVolumes != null) {\n for (VolumeVO volume : lstVolumes) {\n VolumeDetailVO volumeDetail = _volumeDetailsDao.findDetail(volume.g... |
"void onAckEpoch(MessageTuple tuple) throws IOException {\n String source = tuple.getServerId();\n Message msg = tuple.getMessage();\n Zxid zxid = tuple.getZxid();\n ZabMessage.AckEpoch ackEpoch = msg.getAckEpoch();\n Zxid lastPeerZxid = MessageBuilder.fromProtoZxid(ackEpoch.getLastZxid());\n PeerHand... |
"public boolean execute(Plugin plugin, CommandSender sender, String[] args) throws SMSException {\n String menuName = args[0];\n ScrollingMenuSign smsPlugin = (ScrollingMenuSign) plugin;\n SMSHandler handler = smsPlugin.getHandler();\n if (handler.checkMenu(menuName)) {\n throw new SMSException(\"Str... |
"static void loadInitialFeaturesFromFile(Config config, FeatureMappers featureMappers) throws Exception {\n File initialDataSetFile = new File(config.getString(\"String_Node_Str\"), \"String_Node_Str\");\n ClfDataSet initialDataSet = TRECFormat.loadClfDataSet(initialDataSetFile, DataSetType.CLF_SPARSE, true);\n ... |
"public void savingComplete(int saveStatus, boolean headless) {\n if (!headless) {\n dismissDialog(SAVING_DIALOG);\n }\n if (savingFormOnKeySessionExpiration) {\n try {\n CommCareApplication._().getSession().finishLogout();\n } catch (SessionUnavailableException sue) {\n ... |
"public AuthorizationManager getAuthorizationManager() {\n if (authorizationManager == null) {\n authorizationManager = new AuthorizationManager();\n authorizationManager.setClient((CasOAuthWrapperClient) getClient());\n authorizationManager.setPermissionsURL(getCasOAuthClientRealm().getPermissi... |
"public static String[] getStorageDirectories() {\n String[] dirs = null;\n BufferedReader bufReader = null;\n try {\n bufReader = new BufferedReader(new FileReader(\"String_Node_Str\"));\n ArrayList<String> list = new ArrayList<String>();\n list.add(Environment.getExternalStorageDirectory... |
"public void run() {\n final AtomicLong offset = new AtomicLong(startOffset);\n Map.Entry<BrokerInfo, SimpleConsumer> consumerEntry = null;\n Throwable errorCause = null;\n while (running) {\n if (consumerEntry == null && (consumerEntry = getConsumerEntry()) == null) {\n try {\n ... |
"private void syncWebTime() {\n int count = 0;\n long sum = 0L;\n for (int i = 0; i < urlList.size(); i++) {\n long localBeforeTime = System.currentTimeMillis();\n long netTime = getWebTime(urlList.get(i));\n if (netTime == 0) {\n continue;\n }\n long localEndTime ... |
"public void run() {\n try {\n while (shouldRun) {\n try {\n blockTokenSecretManager.addKeys(namenode.getBlockKeys());\n } catch (IOException e) {\n LOG.error(\"String_Node_Str\", e);\n }\n Thread.sleep(keyUpdaterInterval);\n }\n... |
"private void initRODAServices() throws PluginException {\n try {\n CASUtility casUtility = new CASUtility(getCasURL(), getCoreURL());\n CASUserPrincipal cup = casUtility.getCASUserPrincipal(getUsername(), getPassword(), \"String_Node_Str\");\n new RODAClient(getRodaServicesURL(), cup, casUtilit... |
"public void putUnsignedLong(long data) {\n if (data < UNSIGNED_LONG_MIN_VALUE) {\n throw new IllegalArgumentException(\"String_Node_Str\" + data);\n }\n putLong(data);\n}\n"
|
"private Message formatResponse(final String correlationId, final CommandData data) {\n if (data instanceof FlowCreateRequest) {\n return new InfoMessage(flowResponse, 0, correlationId, Destination.NORTHBOUND);\n } else if (data instanceof FlowDeleteRequest) {\n return new InfoMessage(flowResponse, ... |
"public void executeQuery(String query, Class<? extends Marshallable> resultType, Object... args) {\n try (PreparedStatement ps = connection.prepareStatement(query)) {\n for (int i = 0; i < args.length; i++) ps.setObject(i + 1, args[i]);\n ResultSet resultSet = ps.executeQuery();\n ResultSetMeta... |
"void xmlBlockGone() {\n synchronized (this) {\n decRefsLocked(id);\n }\n}\n"
|
"private void moveShape(int keyCode, Node node, int offset) {\n Point location = node.getLocation().getCopy();\n if (location == null) {\n return;\n switch(keyCode) {\n case SWT.ARROW_UP:\n location.y = location.y - offset;\n break;\n case SWT.ARROW_DOWN:\n ... |
"public void onData(DeviData deviData) {\n if (deviData.lines.size() > 0) {\n realtimeList.addDeviItem(deviData);\n realtimeList.itemsAddedWithoutNotify++;\n if (realtimeList.itemsAddedWithoutNotify > 5) {\n realtimeList.itemsAddedWithoutNotify = 0;\n realtimeList.notifyDat... |
"public final boolean validateEOperationSignatures(EClass eClass, EList<EOperation> eOperations, Collection<EOperation> otherEOperations, DiagnosticChain diagnostics, Map<Object, Object> context) {\n boolean result = true;\n for (EOperation eOperation : eOperations) {\n if (!ignoreOperationsWithSuppressedV... |
"public void doFree(DownloadLink downloadLink) throws Exception, PluginException {\n doSomething();\n if (brbefore.contains(\"String_Node_Str\")) {\n logger.info(\"String_Node_Str\" + downloadLink.getDownloadURL() + \"String_Node_Str\");\n throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVA... |
"private void startEnterAnimation() {\n Util.animateAlpha(mBgView, 0f, 1f, mAnimDuration, null);\n Util.animateAlpha(mBlurImgView, 0f, 1f, mAnimDuration, null);\n}\n"
|
"public void onSubscribe(WireOut wireOut) {\n wireOut.writeEventName(heartbeat).int64(Time.currentTimeMillis());\n}\n"
|
"public void buildersCreateClientAndServerWhichCanTalk() throws Exception {\n final ServerRemote mock = mockery.mock(ServerRemote.class);\n mockery.checking(new Expectations() {\n {\n one(mock).call();\n }\n });\n final NettyRpcServerBuilder serverBuilder = new NettyRpcServerBuilder... |
"public void handleText(char[] data, int pos) {\n String str = new String(data);\n if (inPreMarkdown) {\n String html = \"String_Node_Str\";\n if (str.startsWith(\"String_Node_Str\")) {\n str = removeLeadingSpaces(str);\n }\n html = Processor.process(str);\n String to... |
"private boolean blockInPath(float xmovedist) {\n int blocky_bottom = (int) Math.floor(position.y);\n int blocky_top = (int) Math.floor(position.y + hitbox.height);\n int blockx1 = (int) Math.floor(position.x + xmovedist + hitbox.width);\n int blockx2 = (int) Math.floor(position.x + xmovedist);\n return ... |
"public String getActionsToPerform(Context ctx) throws PreyException {\n PreyConfig preyConfig = PreyConfig.getPreyConfig(ctx);\n Map<String, String> parameters = new HashMap<String, String>();\n try {\n return PreyRestHttpClient.getInstance(ctx).get(this.getDeviceUrl(ctx), parameters, preyConfig).getRe... |
"private void extractEntityField(Object entity, BasicDBObject dbObj, Column column) throws PropertyAccessException {\n if (column.getField().getType().isAssignableFrom(List.class) || column.getField().getType().isAssignableFrom(Set.class)) {\n Collection collection = (Collection) PropertyAccessorHelper.getObj... |
"public final int getDpiResolution() {\n if (iDpiResolution == 0) {\n switch(getGraphicsContext().getDeviceConfiguration().getDevice().getType()) {\n case GraphicsDevice.TYPE_RASTER_SCREEN:\n iDpiResolution = computeScreenDpi();\n break;\n case GraphicsDevic... |
"public static void init() {\n addShapelessRecipe(IS.edenFragments, TwilightItemsOther.edenSoul);\n addShapelessRecipe(IS.wildwoodFragments, TwilightItemsOther.wildwoodSoul);\n addShapelessRecipe(IS.apalachiaFragments, TwilightItemsOther.apalachiaSoul);\n addShapelessRecipe(IS.skythernFragments, TwilightIte... |
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n String[] values = ((String) msg).split(\"String_Node_Str\");\n Position position = new Position();\n position.setProtocol(getProtocolName());\n position.setValid(true);\n for (int i = 0; i < Math.min(v... |
"public WORKER_RESULT compute(WorkerContext<MASTER_RESULT, WORKER_RESULT> context) throws IOException {\n if (this.isLoaded.compareAndSet(false, true)) {\n init(context);\n long start = System.nanoTime();\n preLoad(context);\n long count = 0;\n for (GuaguaFileSplit fileSplit : cont... |
"private DataFormat getGenomeDataFormat(final Sample s) throws EoulsanException {\n if (!s.getMetadata().isGenomeField())\n return null;\n final String genomeSource = s.getMetadata().getGenome();\n if (genomeSource == null || \"String_Node_Str\".equals(genomeSource))\n throw new EoulsanException(... |
"public void setupTimer() {\n if (null != timer) {\n timer.stop();\n }\n SessionConfig config = session.getConfig();\n int answerDelay = config.getTimeDelayAudioPrompt() + getSoundLen(currentItem.getAudioSD());\n timer = new Timer(answerDelay * 1000, timerAction);\n timer.setInitialDelay(config... |
"protected Item getPreviousItem(Item previousItem) {\n final TreeItem result;\n TreeItem previousSibling = getPreviousSibling(previousItem);\n if (previousSibling != null) {\n result = getDeepestChild(previousSibling);\n } else {\n Object parent = getParent(previousItem);\n if (parent i... |
"private Identity getIdentityFromView() {\n String nickname = ((EditText) findViewById(R.id.nickname)).getText().toString();\n String ident = ((EditText) findViewById(R.id.username)).getText().toString().trim();\n String realname = ((EditText) findViewById(R.id.realname)).getText().toString().trim();\n Stri... |
"public String toString() {\n return \"String_Node_Str\" + mountedRemoved.toString() + \"String_Node_Str\" + super.toString();\n}\n"
|
"public void onKeyDown(KeyDownEvent event) {\n final int keyCode = event.getNativeKeyCode();\n Selection selection = getTextArea().getDocument().getSelection();\n if (selection.getRangeCount() > 0) {\n Range range = selection.getRangeAt(0);\n logRange(range);\n int pos = -1;\n Node ... |
"private void postBindShareCreate(PoolManager poolManager, Consumer c, Map<String, Entitlement> entitlementMap) {\n log.debug(\"String_Node_Str\");\n Owner sharingOwner = c.getOwner();\n Owner recipient = ownerCurator.lookupByKey(c.getRecipientOwnerKey());\n List<Pool> sharedPoolsToCreate = new ArrayList<Po... |
"public void run() {\n try {\n TreeSet<NearCacheRecord> records = new TreeSet<NearCacheRecord>(selectedComparator);\n records.addAll(cache.values());\n int evictSize = cache.size() * EVICTION_PERCENTAGE / HUNDRED_PERCENTAGE;\n int i = 0;\n for (CacheRecord<K> record : records) {\n ... |
"protected void apply(MovingObjectPosition mop) {\n if (!worldObj.isRemote && mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {\n int x = mop.blockX;\n int y = mop.blockY;\n int z = mop.blockZ;\n Block block = worldObj.getBlock(x, y, z);\n if (block == Blocks.obsidian... |
"protected void handlePickingEvents(EPickingType pickingType, EPickingMode pickingMode, int pickingID, Pick pick) {\n if (detailLevel == DetailLevel.VERY_LOW) {\n return;\n }\n switch(pickingType) {\n case TREEMAP_ELEMENT_SELECTED:\n switch(pickingMode) {\n case CLICKED:... |
"public void fire(VmDescribeResponseType reply) {\n for (final VmInfo runVm : reply.getVms()) {\n if (Databases.isVolatile()) {\n return;\n } else if (this.initialInstances.get().contains(runVm.getInstanceId())) {\n VmStateCallback.handleReportedState(runVm);\n }\n }\n}\... |
"static void dumpClass(String btraceClassName, String targetClassName, byte[] code) {\n if (dumpClasses) {\n try {\n targetClassName = targetClassName.replace(\"String_Node_Str\", File.separator);\n int index = targetClassName.lastIndexOf(File.separatorChar);\n StringBuilder b... |
"private boolean computeHasClinitRecursive(JReferenceType type, Set<JReferenceType> computed, Set<JReferenceType> alreadySeen) {\n alreadySeen.add(type);\n if (computed.contains(type)) {\n return hasClinitSet.contains(type);\n }\n JMethod method = type.methods.get(0);\n assert (JProgram.isClinit(m... |
"public Node putNode(QuadTreeClusteringStrategy quad, Quadrant... location) {\n Preconditions.checkNotNull(location);\n long fnumb = quad.root == null ? 0 : quad.root.getTotalChildCount();\n String quadInfo = Arrays.toString(location);\n Node n = createNode(\"String_Node_Str\" + fnumb + \"String_Node_Str\" ... |
"private String generateScrollOptions(DataTable dataTable) {\n String scrollY = dataTable.getScrollSize();\n boolean scrollX = dataTable.isScrollX();\n if (null == scrollY && (!scrollX)) {\n return \"String_Node_Str\";\n }\n String result = \"String_Node_Str\";\n if (null != scrollY) {\n ... |
"public Map<String, String> saveQuery() {\n if (app.getLibrary() == null) {\n return null;\n }\n saveHomeBranch();\n Map<String, String> query = new HashMap<>();\n if (fields == null) {\n SearchFieldDataSource dataSource = new JsonSearchFieldDataSource(app);\n int versionCode = 0;\n ... |
"public byte[] openChannel(String ifdName) throws NoSuchTerminal, SCIOException, IllegalStateException {\n SCIOTerminal t = getTerminals().getTerminal(ifdName);\n SCIOCard card = t.connect(SCIOProtocol.ANY);\n SCIOChannel channel = card.getBasicChannel();\n byte[] slotHandle = createSlotHandle();\n Handl... |
"public Void execute() throws Throwable {\n nodeService.setProperty(OLD_BEHAVIOR_SCRIPTS_FOLDER, ContentModel.PROP_DESCRIPTION, \"String_Node_Str\");\n List<FileInfo> oldBehaviorScripts = fileFolderService.listFiles(OLD_BEHAVIOR_SCRIPTS_FOLDER);\n if (oldBehaviorScripts != null && !oldBehaviorScripts.isEmpty()... |
"public void dispose() {\n if (metaContactListService != null)\n metaContactListService.removeMetaContactListListener(this);\n for (ChatTransport chatTransport : chatTransports) chatTransport.dispose();\n}\n"
|
"private boolean purge(final int lowIndex, final int highIndex, RollingFileManager manager) {\n int suffixLength = 0;\n List<FileRenameAction> renames = new ArrayList<FileRenameAction>();\n StringBuilder buf = new StringBuilder();\n manager.getProcessor().formatFileName(lowIndex, buf);\n String lowFilena... |
"public void testParseFromIntentExtras() {\n Track track = TestTrackFactory.newTrackWithRandomData();\n Intent intent = new Intent();\n intent.putExtra(CommonMusicAppReceiver.EXTRA_PLAYER_PACKAGE_NAME, track.getPlayerPackageName());\n intent.putExtra(CommonMusicAppReceiver.EXTRA_TRACK, track.getTrack());\n ... |
"public void isItAliveSent(String monitored, Long time) {\n if (fd != null) {\n fd.messageSent(monitored, time, MessageType.PING);\n }\n}\n"
|
"public static Collection<Class> allClassesOf(Class<?> declaring) {\n Collection<Class> returned = new LinkedList<Class>();\n if (declaring != null) {\n if (!declaring.equals(Object.class)) {\n returned.add(declaring);\n returned.addAll(allClassesOf(declaring.getSuperclass()));\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n LauncherApplication app = ((LauncherApplication) getApplication());\n mModel = app.setLauncher(this);\n mIconCache = app.getIconCache();\n mDragController = new DragController(this);\n mInflater = getLayoutIn... |
"private void getFlowToIterateReturns(List<INodeReturn> allReturns) {\n List<? extends IConnection> inMainConns = this.getIncomingConnections();\n String inputRowName = null;\n IConnection inMainConn = null;\n if (inMainConns != null && !inMainConns.isEmpty()) {\n inMainConn = inMainConns.get(0);\n ... |
"public Command createCommand(Button button) {\n Object paramObj = button.getData(PARAM_OBJ);\n if (paramObj instanceof GenericElementParameter) {\n GenericElementParameter gParam = (GenericElementParameter) paramObj;\n if (gParam != null) {\n callBeforeActive(gParam);\n NameAn... |
"private static Project afterImportAs(String newName, String technicalName) throws InvocationTargetException {\n final IWorkspace workspace = org.eclipse.core.resources.ResourcesPlugin.getWorkspace();\n IContainer containers = (IProject) workspace.getRoot().findMember(new Path(technicalName));\n IResource file... |
"Configuration updateOrientationFromAppTokensLocked(Configuration appConfig, IBinder freezeThisOneIfNeeded) {\n boolean changed = false;\n long ident = Binder.clearCallingIdentity();\n try {\n int req = computeForcedAppOrientationLocked();\n if (req != mForcedAppOrientation) {\n change... |
"public Sound transform(Sound sound) {\n int threshold = 100;\n int channelNum = sound.getChannelNum();\n Sound builtSound = new Sound(new long[sound.getSamples().length], sound.getNbBytesPerSample(), sound.getFreq(), channelNum);\n int[] freqs;\n this.log(new LogEvent(LogLevel.VERBOSE, \"String_Node_Str... |
"public void run() {\n Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\");\n }\n wakeLock.acquire();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e1) {\n if (Constants.LOGVV) {\n Log.... |
"synchronized public Tracker getTracker() {\n if (tracker == null) {\n GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);\n tracker = analytics.newTracker(R.xml.app_tracker);\n return tracker;\n }\n return tracker;\n}\n"
|
"public TypeCheckEliminationResults generateTypeCheckEliminations() {\n TypeCheckEliminationResults typeCheckEliminationResults = new TypeCheckEliminationResults();\n Map<TypeCheckElimination, List<SimpleName>> staticFieldMap = new LinkedHashMap<TypeCheckElimination, List<SimpleName>>();\n Map<Integer, ArrayLi... |
"public HistoryEvent getEventType(ProvisionEntity entity) {\n HistoryEvent historyEvent = HistoryEvent.IGNORE;\n if (isEntitySupported(entity)) {\n Long id = null;\n if (entity instanceof Cluster) {\n id = ((Cluster) entity).getId();\n } else if (entity instanceof Blueprint) {\n ... |
"public static Set<String> getMissingJars(HDFSConnectionBean connection) {\n Set<String> set = new HashSet<String>();\n Set<String> jars = new HashSet<String>();\n ClassLoader classLoader = HadoopClassLoaderFactory.getClassLoader(connection.getDistribution(), connection.getDfVersion(), connection.isEnableKerbe... |
"private void setVarEvidence(Variable n, long value) throws ExceptionHugin {\n if (n.isMultinomial()) {\n ((DiscreteNode) huginBN.getNodeByName(n.getName())).selectState((long) value);\n } else if (n.isNormal()) {\n ((ContinuousChanceNode) huginBN.getNodeByName(n.getName())).enterValue(value);\n ... |
"public void onClick(DialogInterface dialog, int which) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + ((InstanceIndexItem) item).getTitle());\n ((InstanceIndexItem) item).deleteAssociatedFiles(context, true);\n mDataset.remove(safePosition);\n notifyItemRemoved(safePosition);\n}\n"
|
"boolean setTokenVisibilityLocked(AppWindowToken wtoken, WindowManager.LayoutParams lp, boolean visible, int transit, boolean performLayout, boolean isVoiceInteraction) {\n boolean delayed = false;\n if (wtoken.clientHidden == visible) {\n wtoken.clientHidden = !visible;\n wtoken.sendAppVisibilityTo... |
"public static void addMetric(String accountId, String metricName, String namespace, Map<String, String> dimensionMap, MetricType metricType) {\n if (dimensionMap == null) {\n dimensionMap = new HashMap<String, String>();\n } else if (dimensionMap.size() > ListMetric.MAX_DIM_NUM) {\n throw new Illeg... |
"public ClassInfoList union(final ClassInfoList... others) {\n final Set<ClassInfo> reachableClassesUnion = new HashSet<>(reachableClasses);\n final Set<ClassInfo> directlyRelatedClassesUnion = new HashSet<>();\n if (directlyRelatedClasses != null) {\n directlyRelatedClassesUnion.addAll(directlyRelatedC... |
"private void onUserStopping(int userId) {\n updateRunningAccounts();\n cancelActiveSync(new SyncStorageEngine.EndPoint(null, null, userId), null);\n}\n"
|
"public String getFeaturedImageForDisplay(int width, int height) {\n if (featuredImageForDisplay == null) {\n if (!hasFeaturedImage()) {\n featuredImageForDisplay = \"String_Node_Str\";\n } else if (isPrivate) {\n featuredImageForDisplay = ReaderUtils.getPrivateImageForDisplay(fea... |
"public boolean insertBefore(Component child, Component refChild) {\n if (child instanceof Caption) {\n refChild = getFirstChild();\n if (super.insertBefore(child, refChild)) {\n _caption = (Caption) child;\n invalidate();\n return true;\n }\n return false... |
"public void testConstructorAlias10() 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\");\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.