content stringlengths 40 137k |
|---|
"private void writeHttpRecords(WARCWriter w, final CrawlURI curi, final URI baseid, final String timestamp) throws IOException {\n ANVLRecord headers = new ANVLRecord(5);\n if (curi.getContentDigest() != null) {\n headers.addLabelValue(HEADER_KEY_PAYLOAD_DIGEST, curi.getContentDigestSchemeString());\n }... |
"public int hashCode() {\n return concept.hashCode() + literal.hashCode();\n}\n"
|
"protected boolean expectedException(Database database, JDBCException exception) {\n return database instanceof DerbyDatabase || database instanceof DB2Database || database instanceof FirebirdDatabase || database instanceof MSSQLDatabase;\n}\n"
|
"private static HttpRequest construct(AsyncHttpClientConfig config, Request request, HttpMethod m, URI uri, ChannelBuffer buffer) throws IOException {\n String host = uri.getHost();\n if (request.getVirtualHost() != null) {\n host = request.getVirtualHost();\n }\n HttpRequest nettyRequest;\n if (m... |
"public static boolean isModuleConfigValid(ModuleConfiguration moduleConfiguration) {\n boolean isValid = moduleConfiguration.get(CONFIG_KEY_REPOSITORY_SOFTKEY) != null;\n if (isValid) {\n Object repoEntry = getVideoReference(moduleConfiguration, false);\n if (repoEntry == null) {\n isVal... |
"public static IvyAntSettings getDefaultInstance(Project project) {\n Object defaultInstanceObj = project.getReference(\"String_Node_Str\");\n if (defaultInstanceObj != null && defaultInstanceObj.getClass().getClassLoader() != IvyAntSettings.class.getClassLoader()) {\n project.log(\"String_Node_Str\" + \"S... |
"public void run() {\n prepareDialog(false, mContext.getText(R.string.voice_initializing), mInitializing, mContext.getText(R.string.cancel));\n}\n"
|
"public void onSlotSet() {\n currentCircuitType = ((RedNetConfigGrabbable) this.grabbable).getCircuitType();\n tooltip = ((RedNetConfigGrabbable) this.grabbable).getName();\n if (guiContainer instanceof GuiReactorRedNetPort) {\n ((GuiReactorRedNetPort) guiContainer).onChannelChanged(this.channel);\n ... |
"public Void doWork() throws Exception {\n final NodeRef child = childAssocRef.getChildRef();\n if (nodeService.exists(child) == true) {\n QName childType = nodeService.getType(child);\n if (dictionaryService.isSubClass(childType, ContentModel.TYPE_FOLDER) == true) {\n if (dictionaryServi... |
"public void handle(Long vertxTimerId) {\n handler.handle(timer);\n if (periodic) {\n timer.next = logic.next();\n handler.handle(timer);\n data.vertxTimerId = vertx.setTimer(Utils.getMsUntilDate(timer.next), this);\n } else {\n timers.remove(timer);\n }\n}\n"
|
"protected void addContextScripts(ProcessItem processItem, String jobName, String jobVersion, ExportFileResource resource, Boolean needContext) {\n if (!needContext) {\n return;\n }\n List<URL> list = new ArrayList<URL>(1);\n String projectName = getCorrespondingProjectName(processItem);\n String ... |
"public static Address getObjectEndAddress(Object obj, VM_Array type, int numElements) {\n int size = type.getInstanceSize(numElements);\n if (ADDRESS_BASED_HASHING && DYNAMIC_HASH_OFFSET) {\n Word hashState = VM_Magic.getWordAtOffset(obj, STATUS_OFFSET).and(HASH_STATE_MASK);\n if (hashState.NE(HASH... |
"protected void handleDestinationBrowseButtonPressed() {\n FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);\n JobExportType jobExportType = getCurrentExportType1();\n switch(jobExportType) {\n case WSWAR:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\",... |
"public String apply(final DocLevelEventArg input) {\n return input.eventType().asString() + \"String_Node_Str\" + input.eventArgumentType().asString();\n}\n"
|
"public void testTrySetCount_whenCountIsZero() {\n HazelcastInstance instance = createHazelcastInstance();\n ICountDownLatch latch = instance.getCountDownLatch(randomString());\n assertTrue(latch.trySetCount(40));\n assertEquals(40, latch.getCount());\n}\n"
|
"private boolean isEqualParameterHint(ParameterHint pb, ParameterHint pb2) {\n return pb.getPosition() == pb2.getPosition() && isEqualString(pb.getName(), pb2.getName()) && isEqualString(pb.getDefaultInputValue(), pb2.getDefaultInputValue()) && DataTypeUtil.toApiDataType(pb.getDataType()) == DataTypeUtil.toApiDataTy... |
"public VirtualMachineTemplate registerIso(RegisterIsoCmd cmd) throws ResourceAllocationException {\n Account ctxAccount = UserContext.current().getAccount();\n Long userId = UserContext.current().getUserId();\n String name = cmd.getIsoName();\n String displayText = cmd.getDisplayText();\n String url = c... |
"public boolean check(RequirementsContext context, List<String> args) throws RequirementCheckException {\n for (String arg : args) {\n if (aH.matchesQuantity(arg)) {\n quantity = aH.getIntegerFrom(arg);\n dB.echoDebug(\"String_Node_Str\" + quantity);\n continue;\n } els... |
"public void update() {\n if (!AbstractDungeon.isScreenUp) {\n this.duration -= Gdx.graphics.getDeltaTime();\n updateBlackScreenColor();\n }\n if ((!this.selectedCard) && (!AbstractDungeon.gridSelectScreen.selectedCards.isEmpty())) {\n CardCrawlGame.sound.play(\"String_Node_Str\");\n ... |
"public boolean placeSeed(World worldObj, ItemStack itemStack, Point3I point, boolean doAction) {\n IBlockState plant = getPlantBlock(worldObj, itemStack, point);\n if (plant != null) {\n if (doAction) {\n worldObj.setBlock(point.getX(), point.getY(), point.getZ(), plant, itemStack.getItem().get... |
"public SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url) throws SVNException {\n authenticationAttempted = true;\n if (kind.equals(ISVNAuthenticationManager.USERNAME))\n return new SVNUserNameAuthentication(username, false);\n if (kind.equals(ISVNAuthenticationManager.PASS... |
"public void upgrade(final HTTPRequestContext context) {\n final TextHTMLRenderer renderer = new TextHTMLRenderer();\n context.setRenderer(renderer);\n try {\n final JSONObject preference = preferenceRepository.get(Preference.PREFERENCE);\n if (null == preference) {\n LOGGER.log(Level.... |
"public void run() {\n SendBundle currBundle = null;\n while (true) {\n synchronized (PACKETS_TO_SEND) {\n while (PACKETS_TO_SEND.isEmpty()) {\n try {\n PACKETS_TO_SEND.wait();\n } catch (InterruptedException ignored) {\n }\n ... |
"public static MatchExpression getMatchExpression(IValue arg1, IValue arg2) {\n if (arg2.valueTag() == IValue.STATEMENT_LIST) {\n IValueList list = (IValueList) arg2;\n int len = list.valueCount();\n CaseStatement[] cases = new CaseStatement[len];\n for (int i = 0; i < len; i++) {\n ... |
"private void revolve() {\n if (scriptEntries.isEmpty()) {\n stop();\n if (paused)\n return;\n if (delay > System.currentTimeMillis()) {\n if (ticks == 0)\n Bukkit.getScheduler().scheduleSyncDelayedTask(DenizenAPI.getCurrentInstance(), new Runnable() {\n public vo... |
"public void won(Game game) {\n if (!game.replaceEvent(new GameEvent(GameEvent.EventType.WINS, null, null, playerId))) {\n if (!this.loses) {\n if (game.getPlayers().size() > 2) {\n for (UUID opponentId : game.getOpponents(playerId)) {\n Player opponent = game.getP... |
"public static ScheduledFuture<?> runCallable(Callable<?> c, long delay) {\n ScheduledFuture<?> sch = Scheduler.getService().schedule(c, delay, TimeUnit.SECONDS);\n Scheduler.executives.add(sch);\n return sch;\n}\n"
|
"protected void writeResourceBundle(String[] bundles, String locale, File localePath) throws MojoExecutionException {\n getLog().info(\"String_Node_Str\" + locale);\n Library localized = new Library();\n localized.setConfiguration(configuration);\n localized.setLogger(new CompileLogger(getLog()));\n conf... |
"private void loadCache() {\n if (this.currentCacheLoaded)\n return;\n currentCacheLoaded = true;\n DboTableMeta metaDbo = proxyMeta.getMetaDbo();\n IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keyList));\n AbstractCursor<KeyValue<Row>> rows = session.find... |
"void ensureSizeFor(int expectedSize) {\n if (keys.length * 3 >= expectedSize * 4) {\n return false;\n }\n int newCapacity = keys.length << 1;\n while (newCapacity * 3 < expectedSize * 4) {\n newCapacity <<= 1;\n }\n Object[] oldKeys = keys;\n Object[] oldValues = values;\n initTab... |
"private void jitteredExecute(Runnable runnable, int baseSeconds) {\n if (executor instanceof AffinityExecutor.ServiceAffinityExecutor) {\n ScheduledExecutorService service = ((AffinityExecutor.ServiceAffinityExecutor) executor).service;\n int jitterSeconds = Math.min(maxJitterSeconds, baseSeconds + (i... |
"public void train() throws IllegalActionException {\n try {\n workspace().getWriteAccess();\n invokeSolver();\n Set<NamedObj> allNamedObjs = getAllConceptableNamedObjs();\n for (NamedObj conceptable : allNamedObjs) {\n Concept inferred = getConcept(conceptable);\n i... |
"public boolean disconnect() {\n return false;\n}\n"
|
"private void processAttributes(Attributes atts, DataObject dataObject, boolean isRoot) {\n int attributeSize = atts.getLength();\n for (int i = 0; i < attributeSize; i++) {\n String stringValue = atts.getValue(i);\n String uri = atts.getURI(i);\n String attrName = atts.getLocalName(i);\n ... |
"void toggleAreaMode() {\n if (this.blockAreaMode == true) {\n this.disableAreaMode();\n this.fillOnce = false;\n this.clearOnce = false;\n this.singleClearMode = false;\n this.singleFillMode = false;\n this.singleClearMode = false;\n this.singleFillMode = false;\n ... |
"DeferredResult<ResponseEntity<?>> validateAndStoreSpans(String encoding, Codec codec, byte[] body) {\n DeferredResult<ResponseEntity<?>> result = new DeferredResult<>();\n metrics.incrementMessages();\n if (encoding != null && encoding.contains(\"String_Node_Str\")) {\n try {\n body = gunzip... |
"private int handleQueue(MemberStateImpl memberState, int count, Config config, Map<String, LocalQueueStats> queues) {\n for (Map.Entry<String, LocalQueueStats> entry : queues.entrySet()) {\n String name = entry.getKey();\n if (count >= maxVisibleInstanceCount) {\n break;\n } else if ... |
"public boolean isEnabled() {\n Node[] selected = ExplorerTopComponent.findInstance().getExplorerManager().getSelectedNodes();\n boolean isColorable = true;\n for (int i = 0; i < selected.length && isColorable; i++) {\n isColorable = (selected[i] instanceof OpenSimObjectNode);\n if (isColorable) ... |
"public void initializeIdentityStore(String cmsRepositoryId, CmsRepository identityStoreRepository) {\n if (identityStoreRepository == null) {\n throw new CmsException(\"String_Node_Str\");\n }\n try {\n Set<String> repIds = new HashSet<String>();\n repIds.add(cmsRepositoryId);\n re... |
"private soot.SootMethod addSetAccessMeth(soot.SootClass conClass, polyglot.ast.Field field, soot.Value param) {\n if ((InitialResolver.v().getPrivateFieldSetAccessMap() != null) && (InitialResolver.v().getPrivateFieldSetAccessMap().containsKey(new polyglot.util.IdentityKey(field.fieldInstance())))) {\n retur... |
"public boolean onCommand(CommandSender cs, Command cmd, String alias, String[] args) {\n if (!(cs instanceof Player)) {\n plugin.log(\"String_Node_Str\");\n }\n Player player = (Player) cs;\n if (args.length == 0 || args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n plugin.msg(player, \"Strin... |
"private <T extends OpenmrsObject> T convertSerializedObject(Class<T> clazz, SerializedObject serializedObject) throws DAOException {\n if (serializedObject == null) {\n return null;\n }\n OpenmrsSerializer serializer = getSerializer(serializedObject);\n T obj = null;\n try {\n obj = (T) se... |
"public void onConnected() {\n if (isConnected()) {\n notifyDroneEvent(DroneInterfaces.DroneEventsType.CONNECTED);\n }\n}\n"
|
"public void testOldSecOutput() {\n InputStream inStream = this.getClass().getResourceAsStream(\"String_Node_Str\");\n assertNotNull(inStream);\n String xml = StringManipulationHelper.convertStreamToString(inStream);\n AtomCache cache = new AtomCache();\n String name1 = \"String_Node_Str\";\n String n... |
"public void OnPinnedHeadsUpExistChanged(final boolean exist, boolean changeImmediatly) {\n if (exist != mPinnedHeadsUpExist) {\n mPinnedHeadsUpExist = exist;\n if (exist) {\n mHeadsUpExistenceChangedRunnable.run();\n }\n }\n}\n"
|
"private boolean parseArgsAndExecMode(String[] args, Configuration conf) {\n CommandLineParser parser = new GnuParser();\n try {\n CommandLine line = parser.parse(options, args);\n if (line.hasOption(HELP_OPTION)) {\n printUsage(false);\n return true;\n }\n hostna... |
"public Page download(Request request, Site site) {\n logger.info(\"String_Node_Str\" + request.getUrl());\n HttpClient httpClient = HttpClientPool.getInstance().getClient(site);\n try {\n HttpGet httpGet = new HttpGet(request.getUrl());\n HttpResponse httpResponse = httpClient.execute(httpGet);\... |
"protected static Point2D _shrinkCoordinates(Rectangle2D originalBounds, Rectangle2D shrunkBounds, int direction) {\n double widthDiff = (originalBounds.getWidth() - shrunkBounds.getWidth()) / 2;\n double heightDiff = (originalBounds.getHeight() - shrunkBounds.getHeight()) / 2;\n Point2D.Double location = new ... |
"public void onWindowFocusChanged(boolean hasWindowFocus) {\n super.onWindowFocusChanged(hasWindowFocus);\n if (mSurrendered)\n return;\n if (mArrowNavigation) {\n if (!hasWindowFocus) {\n mLastSelectedIcon = mRollo.mState.selectedIconIndex;\n mRollo.setHomeSelected(SELECTED... |
"public void run() {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n IFileStore fileStore = getFileStore();\n if (fileStore != null && !fileStore.fetchInfo().isDirectory()) {\n if (fileStore.fetchInfo().exists()) {\n long timeStamp = fileStore.fetchInfo().g... |
"public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n bitset = (BitSet) in.readObject();\n bitSetSize = in.readInt();\n bitsPerElement = in.readFloat();\n numElements = in.readInt();\n k = in.readShort();\n}\n"
|
"public void testOuterHashJoin() throws Exception {\n bw.append(new Band().setName(\"String_Node_Str\").setType(\"String_Node_Str\").setUrl(\"String_Node_Str\"));\n bw.append(new Band().setName(\"String_Node_Str\").setType(\"String_Node_Str\").setUrl(\"String_Node_Str\"));\n bw.append(new Band().setName(\"Stri... |
"public void setTarget(Entity target) {\n super.setTarget(target);\n if (entityToAttack != null) {\n resetTask();\n}\n"
|
"protected void drawMarkers(Canvas canvas) {\n if (mMarkerView == null || !mDrawMarkerViews || !valuesToHighlight())\n return;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int xIndex = mIndicesToHightlight[i].getXIndex();\n int dataSetIndex = mIndicesToHightlight[i].getDataSetI... |
"public void receivedByte(byte data) {\n packetBuffer[pos++] = data;\n switch(mode) {\n case SFD_SEARCH:\n if (sfdSearch < 4 && data == 0)\n sfdSearch++;\n if (sfdSearch == 4 && data == 0x7a) {\n mode = LEN;\n sfdSearch = 0;\n }\... |
"public Object getValue() throws PodamMockeryException {\n if (null != findTypeFromList(annotations, AssertTrue.class)) {\n return Boolean.TRUE;\n }\n if (null != findTypeFromList(annotations, AssertFalse.class)) {\n return Boolean.FALSE;\n }\n if (null != findTypeFromList(annotations, Past... |
"public static String createContainer(DockerClient client, CreateContainerCmd createContainerCmd) throws Exception {\n int attempts = 0;\n Exception cause = null;\n String response = null;\n while (attempts < MAX_RETRIES && response == null) {\n try {\n response = createContainerCmd.exec()... |
"protected boolean islandAtLocation(final Location loc) {\n if (loc == null) {\n return true;\n }\n if (loc.getBlock().getType().equals(Material.BEDROCK)) {\n return true;\n }\n Vector v = loc.toVector();\n v.multiply(new Vector(1, 0, 1));\n if ((getSpawn().getSpawnLoc() != null && v.... |
"public static EnchantmentSet getPossibleSet(int mel, Item item) {\n Enchantment[] se = getPossible(mel, item);\n EnchantmentPower[] sp = getPower(se, mel);\n EnchantmentSet output = new EnchantmentSet(mel, 0, se, sp);\n return output;\n}\n"
|
"public static boolean createNewCharacter(DatabaseConnectionProvider connectionProvider, int accountId, String name, byte[] appearance) {\n try {\n Connection connection = connectionProvider.getConnection();\n PreparedStatement ps = connection.prepareStatement(\"String_Node_Str\");\n ps.setInt(1... |
"public synchronized void close() throws IOException {\n if (fileChannel == null || !fileChannel.isOpen()) {\n log.fine(\"String_Node_Str\" + fileName + \"String_Node_Str\");\n return;\n }\n long endPosition = writeBuffer.getFileChannelPosition();\n if (xidIdentMap.size() > 0) {\n log.i... |
"private void done() {\n if (logger.isInfoEnabled()) {\n logger.info(\"String_Node_Str\" + job.getTask().getIdentity() + \"String_Node_Str\" + lastErrorMessage + \"String_Node_Str\" + lastException);\n }\n releaseNonLeadCpus();\n Status s;\n if (lastErrorMessage != null || lastException != null) {... |
"public void destroyConnection(final Connection connection) {\n final Address endPoint = connection.getEndPoint();\n final boolean removed = mapConnections.remove(endPoint, connection);\n if (!removed) {\n return;\n }\n logger.info(\"String_Node_Str\" + endPoint + \"String_Node_Str\" + connection)... |
"private static <T extends PropBuilder<T>> PropBuilder<T> copyColumnProperties(PropBuilder<T> builder, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n if (in.getId() != null) {\n builder.prop(Talend6SchemaConstants.TALEND6_ID, in.getId());\n }\n if (in.getComment() != null) {\n ... |
"public void handlePropertyChanged(boolean isCompNameChanged) {\n super.handlePropertyChanged(isCompNameChanged);\n Plugin.getDisplay().syncExec(new Runnable() {\n public void run() {\n getEventHandlerTreeViewer().refresh();\n }\n });\n}\n"
|
"private float overScrollDown(int deltaY) {\n deltaY = Math.min(deltaY, 0);\n float currentBottomAmount = getCurrentOverScrollAmount(false);\n float newBottomAmount = currentBottomAmount + deltaY;\n if (currentBottomAmount > 0) {\n setOverScrollAmount(newBottomAmount, false, false);\n }\n float... |
"private long insertEnvironmentWifiNetwork(Uri uri, SQLiteDatabase db, ContentValues values) {\n long environmentId = Long.parseLong(uri.getPathSegments().get(1));\n String wifiSelection = WiFiNetworksEntry.COLUMN_SSID + \"String_Node_Str\" + WiFiNetworksEntry.COLUMN_ENCRYPTION_TYPE + \"String_Node_Str\";\n St... |
"public void enableNFCDispatch(Activity activity) {\n if (isNFCAvailable && isNFCEnabled && isContextInitialized()) {\n LOG.debug(\"String_Node_Str\");\n Intent activityIntent = new Intent(activity, activity.getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = P... |
"private void validateAndCreateUserAndBlog() {\n if (mSystemService.getActiveNetworkInfo() == null) {\n AlertUtils.showAlert(getActivity(), R.string.no_network_title, R.string.no_network_message);\n return;\n }\n if (!isUserDataValid()) {\n return;\n }\n if (View.VISIBLE == mProgress... |
"private String applyIntrinsicFont(String fontName, int fontStyle, float fontSize, String text) {\n setFont(fontName, fontSize);\n text = escapeSpecialCharacter(text);\n return (\"String_Node_Str\" + text + \"String_Node_Str\");\n}\n"
|
"public void testScheduleAuth() throws Exception {\n createAuthNamespace();\n Map<EntityId, Set<Action>> neededPrivileges = ImmutableMap.<EntityId, Set<Action>>builder().put(AUTH_NAMESPACE.app(AppWithSchedule.class.getSimpleName()), EnumSet.of(Action.ADMIN)).put(AUTH_NAMESPACE.artifact(AppWithSchedule.class.getSi... |
"private void updatePackage(IMetadataConnection metadataConnectionTemp) {\n if (metadataConnectionTemp == null) {\n return;\n }\n Driver derbyDriver = null;\n java.sql.Connection sqlConn = null;\n String dbType = metadataConnectionTemp.getDbType();\n DatabaseConnection dbConn = (DatabaseConnect... |
"protected RelDataType deriveRowType() {\n final List<RelDataType> inputRowTypes = Lists.transform(inputs, new Function<RelNode, RelDataType>() {\n\n public RelDataType get(int index) {\n return inputs.get(index).getRowType();\n }\n public int size() {\n return inputs.size(... |
"private void log(final Level level, final Marker marker, final String msg, final Throwable throwable) {\n addLoggingEvent(level, fromNullable(marker), fromNullable(throwable), msg);\n}\n"
|
"protected void determineBackgroundColor(EventBasedSelectionManager selectionManager) {\n List<SelectionType> selectionTypes = selectionManager.getSelectionTypes(node.getPrimaryPathwayVertexRep().getName().hashCode());\n Collections.sort(selectionTypes);\n Collections.reverse(selectionTypes);\n colorCalcula... |
"public File readFrom(Class<File> type, MediaType mediaType, MultivaluedMap<String, String> headers, InputStream entityStream) throws IOException {\n File f = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n OutputStream out = new BufferedOutputStream(new FileOutputStream(f));\n writeTo(entityS... |
"protected void commit() {\n try {\n if (this.refreshing)\n return;\n this.comitting = true;\n WSUniverse ws = (WSUniverse) (getXObject().getWsObject());\n ws.setName(universe.getName());\n ws.setDefaultItemsRevisionID(universe.getDefaultReversionID());\n ws.setDe... |
"public boolean checkYAxis(Player player, Distance distance) {\n if (distance.getYDifference() > 400) {\n return false;\n }\n if (!isMovingExempt(player) && !Utilities.isOnClimbableBlock(player) && !player.isInsideVehicle() && !Utilities.isInWater(player)) {\n double y1 = player.getLocation().get... |
"private static Class getClassUsingCustomClassPath(String className, String classPathKey, ClassLoader parentLoader) {\n String classPath = System.getProperty(classPathKey);\n if (classPath == null || classPath.length() == 0 || className == null)\n return null;\n String[] classPathArray = classPath.split... |
"public AudioAnalysisSection createModelObject(JsonObject jsonObject) {\n if (jsonObject == null || jsonObject.isJsonNull()) {\n return null;\n }\n return new AudioAnalysisSection.Builder().setKey(hasAndNotNull(jsonObject, \"String_Node_Str\") ? jsonObject.get(\"String_Node_Str\").getAsInt() : null).set... |
"private void initOutputBuffer(TcpIpConnection connection, SocketWriter writer, String protocol) {\n IOService ioService = connection.getConnectionManager().getIoService();\n int sizeKb = CLUSTER.equals(protocol) ? ioService.getSocketSendBufferSize() : ioService.getSocketClientReceiveBufferSize();\n int size =... |
"public String getTableComment(IMetadataConnection metadataConnection, ResultSet resultSet, String nameKey) throws SQLException {\n return ExtractMetaDataFromDataBase.getTableComment(nameKey, resultSet, true, ExtractMetaDataUtils.conn);\n}\n"
|
"private void processGeneralBlock(final int n) throws InvalidMatrixException {\n double sumOffDiag = 0;\n for (int i = 0; i < n - 1; ++i) {\n final int fourI = 4 * i;\n final double ei = work[fourI + 2];\n sumOffDiag += ei;\n }\n if (sumOffDiag == 0) {\n return;\n }\n flipE... |
"protected MaterialRequestObject getRequestForPrio(int prio) {\n DoubleLinkedList<MaterialRequestObject> queue = queues[prio];\n int numberOfElements = queue.size();\n for (int handledElements = 0; handledElements < numberOfElements; handledElements++) {\n MaterialRequestObject request = queue.getFront(... |
"public void run() {\n final Semaphore semaphore = new Semaphore(0);\n int recordCount = 0;\n final ILogger logger = nodeEngine.getLogger(ReplicatedMapService.class);\n ExecutionCallback mergeCallback = new ExecutionCallback() {\n public void onResponse(Object response) {\n semaphore.relea... |
"protected SwfMetadataException notFoundException(final String message, final Throwable cause) {\n final SwfMetadataNotFoundException existingException = Exceptions.findCause(cause, SwfMetadataNotFoundException.class);\n if (existingException != null) {\n return existingException;\n } else {\n re... |
"private void setData() {\n RealmResults<RealmDemoData> result = mRealm.allObjects(RealmDemoData.class);\n RealmPieDataSet<RealmDemoData> set = new RealmPieDataSet<RealmDemoData>(result, \"String_Node_Str\", \"String_Node_Str\");\n set.setColors(ColorTemplate.VORDIPLOM_COLORS);\n set.setLabel(\"String_Node_... |
"private void createMenuBar() {\n JMenu fileMenu = new JMenu(\"String_Node_Str\");\n JMenuItem fileOpenItem = new JMenuItem(\"String_Node_Str\");\n fileOpenItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n showOpenLogDialog();\n }\n });\n... |
"private IDataRowExpressionEvaluator createBaseEvaluator(ExtendedItemHandle handle, Chart cm, List<String> columnExpression) throws ChartException {\n IQueryResults actualResultSet;\n BaseQueryHelper cbqh = new BaseQueryHelper(handle, cm);\n QueryDefinition queryDefn = (QueryDefinition) cbqh.createBaseQuery(co... |
"protected String getBeanString(org.talend.core.model.metadata.builder.connection.MetadataColumn bean) {\n return bean.getLabel();\n}\n"
|
"public void setNumExecutorsStr(String value) {\n Integer v = InstanceConfiguration.intOrDefault(value, InstanceConfiguration.DEFAULT_NUM_EXECUTORS);\n ComputeEngineInstance node = getNode();\n if (node != null) {\n node.setNumExecutors(v);\n }\n}\n"
|
"public void feed(List<BarEntry> entries) {\n float size = entries.size() * phaseX;\n int dataSetOffset = (mDataSetCount - 1);\n float barSpaceHalf = mBarSpace / 2f;\n float groupSpaceHalf = mGroupSpace / 2f;\n float barWidth = 0.5f;\n for (int i = 0; i < size; i++) {\n BarEntry e = entries.get... |
"public void execute(AdminCommandContext context) {\n try {\n ctx = context;\n helper = new RemoteInstanceCommandHelper(habitat);\n report = context.getActionReport();\n logger = context.getLogger();\n report.setActionExitCode(ActionReport.ExitCode.SUCCESS);\n if (!env.isDas... |
"private final void performLayoutAndPlaceSurfacesLockedInner(boolean recoveringMemory) {\n final long currentTime = SystemClock.uptimeMillis();\n final int dw = mDisplay.getWidth();\n final int dh = mDisplay.getHeight();\n final int N = mWindows.size();\n int i;\n performLayoutLockedInner();\n if (... |
"public DDF getDDFByUri(String uri) throws DDFException {\n UUID uuid = this.mUris.get(uri);\n if (uuid == null) {\n throw new DDFException(String.format(\"String_Node_Str\", uri));\n }\n return this.getDDF(uuid);\n}\n"
|
"public void implCloseChannel() throws IOException {\n in.close();\n}\n"
|
"public void updateJobStatus(final String id, final JobStatus jobStatus, final String statusMsg) throws GenieException {\n log.debug(\"String_Node_Str\", id, jobStatus, statusMsg);\n final JobEntity jobEntity = this.jobRepo.findOne(id);\n if (jobEntity == null) {\n throw new GenieNotFoundException(\"Str... |
"public void testHeaderSplitting() throws Exception {\n String apiInvocationUrl = getAPIInvocationURLHttp(\"String_Node_Str\");\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n HttpResponse httpResponse = doGet(apiInvocationUrl, header... |
"public String toString() {\n return \"String_Node_Str\" + getName() + \"String_Node_Str\" + AndroidCompat.getTextContent(element);\n}\n"
|
"protected void handlePickingEvents(EPickingType ePickingType, EPickingMode pickingMode, int iExternalID, Pick pick) {\n if (detailLevel == EDetailLevel.VERY_LOW) {\n return;\n }\n if (bRectangleSelection)\n return;\n SelectionType selectionType;\n switch(ePickingType) {\n case SCATT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.