content stringlengths 40 137k |
|---|
"private long getVMSnapshotChainSize(Connection conn, VolumeObjectTO volumeTo, String vmName) throws BadServerResponse, XenAPIException, XmlRpcException {\n Set<VDI> allvolumeVDIs = VDI.getByNameLabel(conn, volumeTo.getName());\n long size = 0;\n for (VDI vdi : allvolumeVDIs) {\n try {\n if (... |
"public long onReceiveEnergy(ForgeDirection from, long receive, boolean doReceive) {\n long used = 0;\n long remain = receive;\n for (int i = 0; i < 6; i++) {\n TileTurret turret = this.turrets[i];\n if (turret != null && turret.getTurret() instanceof IEnergyContainer) {\n long added =... |
"final <KB, RV, VB extends RV, VBI, MVBI extends MetaBytesInterop<RV, ? super VBI>> Object onKeyPresentOnReplace(ThreadLocalCopies copies, SegmentState segmentState, KB key, long keySize, InstanceOrBytesToInstance<KB, K> toKey, GetValueInterops<VB, VBI, MVBI> getExpectedValueInterops, VB expectedValue, GetValueInterops... |
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ... |
"public static BufferBackedFileMetadata resolveLink(BabuDB database, String dbName, long linkParentId, byte[][] keyBufs, byte[][] valBufs) throws BabuDBException {\n String linkName = new String(valBufs[FileMetadata.RC_METADATA], 9, valBufs[FileMetadata.RC_METADATA].length - 9);\n byte[] fileIdBytes = new byte[8]... |
"public void actionPerformed(ActionEvent e) {\n if (JOptionPane.showConfirmDialog(JByteMod.instance, JByteMod.res.getResource(\"String_Node_Str\"), JByteMod.res.getResource(\"String_Node_Str\"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n MethodUtils.removeDeadCode(cn, mn);\n jbm.selectMe... |
"public static void launchCellFromURL(URL url) {\n String extension = DragAndDropManager.getFileExtension(url.getFile());\n CellSelectionSPI spi = CellSelectionRegistry.getCellSelectionSPI();\n if (spi == null) {\n final JFrame frame = JmeClientMain.getFrame().getFrame();\n logger.warning(\"Strin... |
"private void manageResponse(final SyncResponse syncResponse, final boolean isInitialSync) {\n boolean isEmptyResponse = true;\n if (null != syncResponse) {\n Log.d(LOG_TAG, \"String_Node_Str\");\n if (null != syncResponse.rooms) {\n if ((null != syncResponse.rooms.leave) && (syncResponse... |
"private void setElement(Object obj, final String title, Image image) {\n EComponentCategory[] categories = null;\n if (obj != null && obj instanceof Process) {\n process = (Process) obj;\n if (currentSelectedTab != null && currentSelectedTab.getData().equals(process) && !cleaned) {\n ret... |
"protected Comparison compare(String sourceRev, String targetRev, IFile file) throws Exception {\n final String fullPath = file.getFullPath().toString();\n final Subscriber subscriber = repository.createSubscriberForComparison(sourceRev, targetRev, file, false);\n final IStorageProviderAccessor accessor = new ... |
"public int getNumUpdates(List<DB.App> apps) {\n int count = 0;\n for (DB.App app : apps) {\n if (app.toUpdate)\n count++;\n }\n return count;\n}\n"
|
"public void transformFromMap(Map<String, String> properties) {\n Properties props = new Properties();\n for (Entry<String, String> prop : properties.entrySet()) {\n if (prop.getValue() != null) {\n props.setProperty(prop.getKey(), prop.getValue());\n }\n }\n transformFromProperties... |
"public static <TableClass extends Model> int update(ContentResolver contentResolver, Uri updateUri, TableClass model) {\n ModelAdapter<TableClass> adapter = (ModelAdapter<TableClass>) FlowManager.getModelAdapter(model.getClass());\n checkModel(model, adapter);\n ContentValues contentValues = new ContentValues... |
"public void sendPrivateMessageWithAttachImage(QBFile file) throws XMPPException, SmackException.NotConnectedException {\n QBChatMessage chatMessage = getQBChatMessageWithImage(file);\n privateChat.sendMessage(chatMessage);\n String roomJidId = opponentId + Consts.EMPTY_STRING;\n String attachUrl = file.get... |
"public void testGetInstanceWithAnnotation() {\n Service3 service = getProvider().getInstance(Service3.class, MyBindingAnnotation.class);\n assertNotNull(service);\n}\n"
|
"private JComponent addTextPropertyEditor(JPanel parent, String label, String propertyName, String value, int line, boolean isRequired) {\n parent.add(new JLabel(label), getConstraints(line, 0, 1));\n PropertyDescriptor propertyDescriptor = container.getDescriptor(propertyName);\n TextFieldEditor textEditor = ... |
"public void before(Object target, Object[] args) {\n if (isDebug) {\n logger.beforeInterceptor(target, args);\n }\n final Trace trace = traceContext.currentRawTraceObject();\n if (trace == null) {\n return;\n }\n final HttpRequest httpRequest = getHttpRequest(args);\n final boolean s... |
"public void unloadEvent(WorldEvent.Unload evt) {\n if (evt.world.isRemote) {\n return;\n }\n int d = evt.world.provider.dimensionId;\n if (d == 0) {\n RfToolsDimensionManager.unregisterDimensions();\n }\n}\n"
|
"public static Map<String, String> filterProperties(Map<String, String> props, String optionPrefix) {\n if (props == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n HashMap<String, String> rc = new HashMap<String, String>(props.size());\n for (Iterator<Entry<String, String>> ... |
"public void update(float tpf) {\n if (enabled) {\n updateControl(tpf);\n }\n}\n"
|
"private boolean canHandle(Network config) {\n DataCenter zone = _configMgr.getZone(config.getDataCenterId());\n if ((zone.getNetworkType() == NetworkType.Advanced && config.getGuestType() != Network.GuestType.Isolated) || (zone.getNetworkType() == NetworkType.Basic && config.getGuestType() != Network.GuestType.S... |
"protected void _fmiSetContinuousStates(double[] values) throws IllegalActionException {\n if (values.length != _fmiModelDescription.numberOfContinuousStates) {\n throw new IllegalActionException(this, \"String_Node_Str\" + values.length + \"String_Node_Str\" + _fmiModelDescription.numberOfContinuousStates);\... |
"String format(Invocation inv) {\n String pattern = inv.<SimpleDateFormat>getInvokedInstance().toPattern();\n if (DATE_FORMAT.equals(pattern))\n return FORMATTED_DATE;\n else if (TIME_FORMAT.equals(pattern))\n return FORMATTED_TIME;\n else\n return null;\n}\n"
|
"protected DnsMasqConfigCommand generateDnsMasqConfigCommand() {\n List<DhcpTO> dhcps = new ArrayList<>();\n dhcps.add(new DhcpTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n dhcps.add(new DhcpTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_... |
"public void addCertificate(PublicCertificateI certificate, int[] position) {\n if (certificate.isPresidentShare())\n position = new int[] { 0, 0, 0 };\n Util.addToList(certificates, certificate, position[0]);\n String companyName = certificate.getCompany().getName();\n if (!certPerCompany.containsKe... |
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent land = game.getPermanent(event.getTargetId());\n return land.getCardType().contains(CardType.LAND) && land.getControllerId().equals(this.controllerId) && !Objects.equals(event.getTargetId(), this.getSourceId());\n}\n"
|
"public R startOpen(String start) {\n return startOpen(wrap(start));\n}\n"
|
"protected void doWork(IProgressMonitor monitor) throws Exception {\n Branch branch = BranchManager.getBranch(this.branch);\n BranchState originalState = branch.getBranchState();\n BranchArchivedState originalArchivedState = branch.getArchiveState();\n ArtifactCache.deCache(this.branch);\n try {\n ... |
"public void insertAtPreviousInsert(Editor editor, DataContext context) {\n int offset = CommandGroups.getInstance().getMotion().moveCaretToMark(editor, context, '^');\n if (offset != -1) {\n MotionGroup.moveCaret(editor, context, offset);\n }\n insertBeforeCursor(editor, context);\n}\n"
|
"protected void postNormalizationOptimizeJava() {\n if (options.getOptimizationLevel() > OptionOptimize.OPTIMIZE_LEVEL_DRAFT) {\n RemoveSpecializations.exec(jprogram);\n Pruner.exec(jprogram, false);\n }\n ReplaceGetClassOverrides.exec(jprogram);\n}\n"
|
"public void onHeadsUpPinnedModeChanged(boolean inPinnedMode) {\n if (inPinnedMode) {\n mStatusBarWindowManager.setHeadsUpShowing(true);\n mStatusBarWindowManager.setForceStatusBarVisible(true);\n mStatusBarWindowManager.setForceWindowCollapsed(true);\n mNotificationPanel.post(new Runnabl... |
"public ImagePlus simplePointWarp2dMT(ImagePlus source, ImagePlus target, ImagePlus mask, double binaryThreshold) {\n if (source.getWidth() != target.getWidth() || source.getHeight() != target.getHeight() || source.getImageStackSize() != target.getImageStackSize()) {\n IJ.log(\"String_Node_Str\");\n re... |
"private Object populateViaThrift(EntityMetadata m, Object entity, EntityType entityType, List<String> relationNames, Map<String, Object> relations, String thriftColumnName, Object thriftColumnValue, boolean isCql3Enabled) throws InstantiationException, IllegalAccessException {\n if (relationNames == null || !relati... |
"public static boolean hasEnough(Payment payment, Player player) {\n int current = 0;\n if (payment.getItem().getAmount() <= 0 || payment.getItem().getTypeId() == 0) {\n return true;\n }\n for (ItemStack i : player.getInventory().getContents()) {\n if (i != null && i.getTypeId() == itemCurrenc... |
"private Request buildBaseRequest(String method, String username, String domain, String toSipUri, ListeningPoint listeningPoint, HashMap<String, Object> clientContext) throws JainSipException {\n try {\n String fromSipUri;\n if (domain != null && !domain.equals(\"String_Node_Str\")) {\n from... |
"public static boolean canRead(final String filename) {\n final String filenameNoExtension = FilenameUtils.removeExtension(filename);\n String fileExtension = FilenameUtils.getExtension(filename);\n if (!ArrayUtils.contains(AlignmentReaderImpl.COMPACT_ALIGNMENT_FILE_REQUIRED_EXTS, fileExtension)) {\n re... |
"public void validate(ValidationHandler handler) {\n int errorCount = handler.getErrorCount();\n fieldType.validate(handler);\n if (handler.getErrorCount() > errorCount) {\n return;\n }\n TypeMetadata currentType = fieldType;\n if (!XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(currentType.getNames... |
"public void testClassesFile() throws IOException, InterruptedException {\n Jsr199Javac javac = createJavac(false);\n ExecutionContext executionContext = TestExecutionContext.newInstance();\n int exitCode = javac.buildWithClasspath(executionContext, createProjectFilesystem(), PATH_RESOLVER, BuildTargetFactory.... |
"public Vector3 getPredictedPosition(int t) {\n Vector3 guJiDiDian = new Vector3(this);\n double tempMotionY = this.motionY;\n if (this.feiXingTick > 20) {\n for (int i = 0; i < t; i++) {\n if (this.missileType == MissileType.CruiseMissile || this.missileType == MissileType.LAUNCHER) {\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ColorDrawable colorDrawable = new ColorDrawable(Color.parseColor(\"String_Node_Str\"));\n final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);\n final String ... |
"public AuthenticateResponse loginUser(Credentials credentials, URL authenticationUrl) {\n try {\n String requestBody = AuthenticateRequest.userLogin(credentials).toJson();\n return authenticate(authenticationUrl, requestBody);\n } catch (Exception e) {\n return AuthenticateResponse.from(new ... |
"public static ValueLabel getDefElementPair(final ValueResult valueResult, final FlexibleElement element, final Contact contact, final EntityManager entityManager, final I18nServer i18nTranslator, final Language language) {\n Object value = null;\n String label = ExporterUtil.getFlexibleElementLabel(element, i18n... |
"public void setSupportZoom(boolean support) {\n mContentSettings.setSupportZoom(support);\n}\n"
|
"public void sock_send(String msg) {\n System.err.println(host + \"String_Node_Str\" + msg + \"String_Node_Str\");\n out.println(msg);\n}\n"
|
"protected void printServletEnvironment(ServletOutputStream out, HttpServletRequest req, HttpServletResponse res, HtmlEntityEncoder htmlEntityEncoder) throws IOException {\n out.println(\"String_Node_Str\");\n out.println(\"String_Node_Str\");\n Enumeration<String> attrs = req.getAttributeNames();\n while (... |
"public void deleteFolder(Project project, ERepositoryObjectType type, IPath path, boolean fromEmptyRecycleBin) throws PersistenceException {\n if (RepositoryConstants.isSystemFolder(path.toString()) || RepositoryConstants.isGeneratedFolder(path.toString()) || RepositoryConstants.isJobsFolder(path.toString()) || Rep... |
"protected void onEvent(Event event) {\n try {\n TopologyManager.acquireReadLock();\n MemberTerminatedEvent e = (MemberTerminatedEvent) event;\n String networkPartitionId = e.getNetworkPartitionId();\n String clusterId = e.getClusterId();\n String partitionId = e.getPartitionId();\... |
"private void checkNetworkInterfaces(boolean fireEvents, int waitBeforeFiringUpEvents) throws SocketException {\n Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces();\n Map<String, List<InetAddress>> currentActiveInterfaces = new HashMap<String, List<InetAddress>>();\n while (e.hasMoreEle... |
"public void kill() {\n isDead = true;\n snake.clear();\n}\n"
|
"public RES_T exec(CMD_T command) {\n try (CMD_T cmd = command) {\n try {\n command.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return result;\n}\n"
|
"private boolean validateScalarParameter(ScalarParameterHandle paramHandle) {\n String paramName = paramHandle.getName();\n Object paramValue = runValues.get(paramName);\n String type = paramHandle.getDataType();\n if (paramValue == null) {\n if (!paramHandle.isRequired())\n return true;\n... |
"static XaCommand readCommand(ReadableByteChannel channel, ByteBuffer buffer, LuceneDataSource dataSource) throws IOException {\n buffer.clear();\n buffer.limit(1);\n if (channel.read(buffer) != buffer.limit()) {\n return null;\n }\n buffer.flip();\n byte commandType = buffer.get();\n if (co... |
"protected void configure(HttpSecurity http) throws Exception {\n super.configure(http);\n http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED).and().csrf().disable().authorizeRequests().antMatchers(\"String_Node_Str\", \"String_Node_Str\").authenticated().antMatchers(\"String_Node_St... |
"public void handleEvent(Event event) {\n EventContext ctx = event.getContext();\n if (!(ctx instanceof DocumentEventContext)) {\n return;\n }\n CoreSession session = ctx.getCoreSession();\n DocumentModel appliImplModel = ((DocumentEventContext) ctx).getSourceDocument();\n if (appliImplModel ==... |
"public static void main(String[] args) throws ExecutionException, InterruptedException {\n ClusterManagers managers = new ClusterManagers(ClusterConfiguration.defaultSetting().setAsMaster(true));\n final ThinServer client = new ThinServer(managers);\n final ThinGossip gossip = new ThinGossip(managers);\n c... |
"private void initOptions() {\n ConfigurableOption wrappingText = new ConfigurableOption(IExcelRenderOption.WRAPPING_TEXT);\n wrappingText.setDisplayName(Messages.getString(\"String_Node_Str\"));\n wrappingText.setDataType(IConfigurableOption.DataType.BOOLEAN);\n wrappingText.setDisplayType(IConfigurableOpt... |
"public File export(List<BuildPlan> buildPlans, CSARID csarId) {\n CSARContent csarContent = null;\n try {\n csarContent = this.handler.getCSARContentForID(csarId);\n } catch (UserException e1) {\n Exporter.LOG.error(\"String_Node_Str\", e1);\n }\n if (csarContent == null) {\n return... |
"static MultiLabelClfDataSet loadData(Config config, MultiLabelIndex index, FeatureList featureList, IdTranslator idTranslator, int totalDim, LabelTranslator labelTranslator, String docFilter) throws Exception {\n File metaDataFolder = new File(config.getString(\"String_Node_Str\"), \"String_Node_Str\");\n Config... |
"private boolean replaceOnExist(Job job, JobPo jobPo) {\n JobPo existJobPo = appContext.getExecutableJobQueue().getJob(job.getTaskTrackerNodeGroup(), jobPo.getTaskId());\n if (existJobPo == null) {\n existJobPo = appContext.getCronJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n ... |
"private static CategoryDataset createPatternMatchDataset(List<IndicatorUnit> indicatorUnitList, boolean isCreate) {\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n if (isCreate) {\n int i = 0;\n for (IndicatorUnit unit : indicatorUnitList) {\n IndicatorCommonUtil.compo... |
"public List getConnection(String[] jarPath, String driverClassName, String url, String username, String password, String dbType, String dbVersion, String additionalParams) throws Exception {\n List list = new ArrayList();\n HotClassLoader loader;\n boolean flog = EDatabaseVersion4Drivers.containTypeAndVersion... |
"private static int cmdList(Context context, String[] argv) {\n try {\n for (EPerson person : ePersonService.findAll(context, EPerson.EMAIL)) {\n System.out.printf(\"String_Node_Str\", person.getID().toString(), person.getEmail(), person.getNetid(), person.getLastName(), person.getFirstName());\n ... |
"public double integrate(final FirstOrderDifferentialEquations equations, final double t0, final double[] y0, final double t, final double[] y) throws DerivativeException, IntegratorException {\n sanityChecks(equations, t0, y0, t, y);\n final boolean forward = (t > t0);\n final int stages = c.length + 1;\n ... |
"public String generateLabel(XYDataset dataset, int series) {\n if (dataset == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n StringBuilder label = new StringBuilder();\n label.append(MessageFormat.format(this.formatPattern, createItemArray(dataset, series)));\n Integer k... |
"public void createPlaylist(Playlist p, final PlaylistHandler handler) {\n log.debug(\"String_Node_Str\" + p.getTitle());\n metadata.updatePlaylist(p, new PlaylistCallback() {\n\n public void success(Playlist newP) {\n log.debug(\"String_Node_Str\" + newP.getPlaylistId());\n synchroni... |
"private List<String> filterByName(List<String> repoLabels, String labelName) {\n return repoLabels.stream().filter(name -> Utility.containsIgnoreCase(getName(name), labelName)).collect(Collectors.toList());\n}\n"
|
"public void render(GL2 gl) {\n gl.glColor4fv(color, 0);\n gl.glBegin(GL2.GL_QUADS);\n gl.glVertex3f(0, 0, 0);\n gl.glVertex3f(x, 0, 0);\n gl.glVertex3f(x, y, 0);\n gl.glVertex3f(0, y, 0);\n gl.glEnd();\n if (imagePath != null) {\n float textureSize = Math.min(x, y);\n float posX =... |
"private void weiSelect() {\n weiTextView.setBackgroundResource(R.drawable.transfer_selected_button);\n weiTextView.setTextColor(getResources().getColor(R.color.white));\n ethTextView.setBackgroundResource(R.drawable.transfer_unselected_button);\n ethTextView.setTextColor(Color.parseColor(\"String_Node_Str\... |
"public static void executeSql(Connection db, InputStream is) throws SoarException, IOException {\n try {\n final Statement s = db.createStatement();\n try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n String line = reader.readLine();\n ... |
"public static Object convertJavascriptValue(Object inputObj) {\n if (inputObj instanceof Undefined) {\n return null;\n }\n if (inputObj instanceof IdScriptableObject) {\n String jsClass = ((Scriptable) inputObj).getClassName();\n if (\"String_Node_Str\".equals(jsClass)) {\n ret... |
"private void setStudyConfigParameters(HttpServletRequest request, Study study, Study schemaStudy, StudyParameterConfig studyParameterConfig) {\n String schema = CoreResources.getRequestSchema(request);\n CoreResources.setRequestSchema(request, study.getSchemaName());\n List<StudyParameterValue> studyParameter... |
"public void onClick(View v) {\n String confirmationCode = NumberTranslator.toEnglish(phoneConfirimationCodeEt.getText().toString());\n if (!confirmationCode.trim().matches(regexStr)) {\n Toasti.showS(\"String_Node_Str\");\n return;\n }\n apiRequest.login(confirmationCode);\n progressView.s... |
"private void fireUpdateListeners() {\n updateListeners.forEach(UpdateListener::onAction);\n}\n"
|
"private String[] getDataSetColumns(ReportItemHandle handle) {\n DataSetHandle dataSet = handle.getDataSet();\n if (dataSet == null)\n return EMPTY;\n }\n String[] values = new String[columnList.size()];\n for (int i = 0; i < columnList.size(); i++) {\n values[i] = ((ComputedColumnHandle) c... |
"public void onWorldTransmutationEvent(WorldTransmutationEvent event) {\n int id = event.world.getBlockId(event.x, event.y, event.z);\n int meta = event.world.getBlockMetadata(event.x, event.y, event.z);\n Material material = event.world.getBlockMaterial(event.x, event.y, event.z);\n boolean result = false;... |
"public PKValue save(Object entity, IShardingKey<?> shardingKey) {\n PKValue[] pkValues = saveBatch(Lists.newArrayList(entity), shardingKey, true);\n if (pkValues != null && pkValues.length > 0) {\n return pkValues[0];\n }\n return null;\n}\n"
|
"private void bgRun() {\n if (mCancelled.get())\n return;\n mState.set(State.RUNNING);\n R r = null;\n try {\n r = doAsyncTask();\n } finally {\n mState.set(State.DONE);\n if (mCancelled.get())\n mOwner.post(new Runnable() {\n\n public void run() {\n ... |
"protected Void doInBackground() throws Exception {\n long startTime = System.nanoTime();\n int reactorTicks = 0;\n int cooldownTicks = 0;\n int totalRodCount = 0;\n try {\n publish(\"String_Node_Str\");\n publish(java.util.ResourceBundle.getBundle(\"String_Node_Str\").getString(\"String_No... |
"private String transformCellValue(Object aValue, int aCol, boolean isData) {\n if (aValue != null) {\n Object value = null;\n if (isData) {\n if (aValue instanceof CellData) {\n CellData cd = (CellData) aValue;\n value = cd.getData();\n } else {\n ... |
"protected void enumConstantDef(AST node) {\n enumConstantBeingDef = true;\n assertNodeType(ENUM_CONSTANT_DEF, node);\n List<AnnotationNode> annotations = new ArrayList<AnnotationNode>();\n AST element = node.getFirstChild();\n if (isType(ANNOTATIONS, element)) {\n processAnnotations(annotations, ... |
"protected float[] getMarkerPosition(Entry e, Highlight highlight) {\n int dataSetIndex = highlight.getDataSetIndex();\n float xPos = e.getXIndex();\n float yPos = e.getVal();\n if (this instanceof BarChart) {\n BarData bd = (BarData) mData;\n float space = bd.getGroupSpace();\n int set... |
"protected void tryListenersForEntity(Entity entity, Event event, PropagationState propState) {\n logger.fine(\"String_Node_Str\" + entity + \"String_Node_Str\" + event);\n EventListenerCollection listeners = (EventListenerCollection) entity.getComponent(EventListenerCollection.class);\n if (listeners == null ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n ButterKnife.bind(this);\n List<String> names = new ArrayList<>();\n names.add(\"String_Node_Str\");\n names.add(\"String_Node_Str\");\n names.add(\"String_Node_Str... |
"public Block blockAt(Position location) {\n if (!location.world().name().equals(this.name()))\n throw new IllegalArgumentException(\"String_Node_Str\");\n int x = (int) Math.floor(location.x());\n int y = (int) Math.floor(location.y());\n int z = (int) Math.floor(location.z());\n return this.chun... |
"public void writeShortUTF(final DataOutput out, final String str, final int beginIndex, final int endIndex, final byte[] buffer) throws IOException {\n final boolean isBufferObjectDataOutput = out instanceof BufferObjectDataOutput;\n final BufferObjectDataOutput bufferObjectDataOutput = isBufferObjectDataOutput ... |
"private void endCollectionLoad(final Object resultSetId, final SessionImplementor session, final CollectionPersister collectionPersister) {\n session.getPersistenceContext().getLoadContexts().getCollectionLoadContext(resultSetId).endLoadingCollections(collectionPersister);\n}\n"
|
"private void generateFileEntry(byte[] buffer, int offset, int fileNumber) throws IOException {\n DiskNode child = children.get(fileNumber);\n buffer[offset] = (byte) ((child.getType().code << 4) + child.getName().length());\n generateName(buffer, offset + 1, child);\n buffer[offset + 0x010] = (byte) ((chil... |
"public final String echo(String message) throws TException {\n TProtocol protocol = this.environment.getProtocolFactory().getProtocol(transport);\n EchoService.Client client = new EchoService.Client(protocol);\n return client.echo(message);\n}\n"
|
"public static Location landLocation(Location location) {\n while (location.getBlock().getType().getId() == 0) {\n location.setY(location.getY() - 1);\n }\n location.setY(location.getY() + 2);\n return location;\n}\n"
|
"public void terminated(Service.State from) {\n LOG.debug(\"String_Node_Str\", from, serviceName);\n cancelAnnounce.cancel();\n LOG.info(\"String_Node_Str\", serviceName);\n if (getState() != State.STOPPING) {\n complete();\n } else {\n stop();\n }\n}\n"
|
"public static void findAllVarMappingCombination(Map<VarWrapper, List<CtVariable>> mappedVars, List<VarWrapper> varsName, int indexVar, Map<String, CtVariable> currentCombination, List<Map<String, CtVariable>> allCombinations) {\n if (varsName.size() == indexVar) {\n allCombinations.add(currentCombination);\n... |
"public void setHeadingText(String heading) {\n super.setHeadingText(heading);\n applyLegendWidth();\n}\n"
|
"public void copy(MatchRuleDefinition ruleDefinition, MatchRuleDefinition matchRule) {\n ruleDefinition.getBlockKeys().clear();\n if (matchRule.getBlockKeys() != null && matchRule.getBlockKeys().size() > 0) {\n for (BlockKeyDefinition blockKey : matchRule.getBlockKeys()) {\n BlockKeyDefinition c... |
"public List<ConfigurationItem> findAllConfigurationItems(String pWorkspaceId) {\n TypedQuery<ConfigurationItem> query = em.createQuery(\"String_Node_Str\", ConfigurationItem.class);\n return query.setParameter(\"String_Node_Str\", pWorkspaceId).getResultList();\n}\n"
|
"public void push(InputStream inputStream) throws IOException {\n if (inputStream == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (isClosed) {\n throw new IOException(\"String_Node_Str\");\n }\n while (!inputStreamBuffer.offer(inputStream)) {\n debug(\"... |
"public void disabled_testEnumSubclassWithRegisteredTypeAdapter() {\n gson = new GsonBuilder().create();\n assertRoshambo();\n}\n"
|
"public void destroy() {\n if (record != null) {\n setRecord(null, false);\n }\n if (formController != null && formController.getFormScope() != null) {\n formController.getFormScope().getModificationSubject().removeModificationListener(this);\n }\n if (formController != null && formControll... |
"public ImmutablePair<List<Project>, List<Project>> createMissing(List<Project> projects) {\n List<Project> created = new ArrayList<>();\n List<Project> skipped = new ArrayList<>();\n Set<String> usedShortNames = new HashSet<>();\n for (Project pi : findAll()) {\n usedShortNames.add(pi.getShortName()... |
"private synchronized void attemptConnect(final InetSocketAddress remoteAddress) {\n closeExisting();\n try {\n SocketChannel socketChannel = AbstractChannelReplicator.openSocketChannel(closeables);\n if (socketChannel.connect(remoteAddress))\n clientChannel = socketChannel;\n }\n ... |
"public void renderHead(Component component, IHeaderResponse response) {\n String jqueryInit = String.format(\"String_Node_Str\", getDateTextField().getMarkupId(), getLocale().getLanguage(), getDateFormat());\n response.render(OnDomReadyHeaderItem.forScript(jqueryInit));\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.