content stringlengths 40 137k |
|---|
"public List<String> getRemovedQuotes(Object key) {\n List<String> ret = new ArrayList<>();\n List<String> list = this.getOrDefault(key, new ArrayList<>());\n for (int i = 0; i < list.size(); i++) {\n String s = list.get(i);\n if (s.startsWith(\"String_Node_Str\") && s.endsWith(\"String_Node_Str\... |
"private void initializeWriterAsTempWriter() throws FileNotFoundException {\n String tempFolder = context.getTempFileDir();\n if (!(tempFolder.endsWith(\"String_Node_Str\") || tempFolder.endsWith(\"String_Node_Str\"))) {\n tempFolder = tempFolder.concat(\"String_Node_Str\");\n }\n tempFilePath = temp... |
"public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent convertCodeSystemDesignation(ConceptDefinitionDesignationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = n... |
"public static AABB create(CollisionComponent3D entity) {\n Cuboid bounds = entity.polyhedron.getBounds();\n return new AABB(bounds.position.subtract(bounds.width / 2, bounds.height / 2, bounds.thickness / 2), bounds.width, bounds.height, bounds.thickness);\n}\n"
|
"public void update(RecordType recordType) {\n RecordType rtToCache = recordType.clone();\n SchemaId id = rtToCache.getId();\n String bucketId = AbstractSchemaCache.encodeHex(id.getBytes());\n incCount();\n synchronized (getBucketMonitor(bucketId)) {\n Map<SchemaId, RecordType> bucket = buckets.ge... |
"public static InterleavedU8 yuvToInterleavedYuvU8(Image yuv, InterleavedU8 output, byte[] work) {\n int width = yuv.getWidth();\n int height = yuv.getHeight();\n if (output != null) {\n output.reshape(width, height, 3);\n } else {\n output = new InterleavedU8(width, height, 3);\n }\n fi... |
"public void onEntityDamage(EntityDamageEvent event) {\n if (event instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;\n HumanNPC npc = NPCManager.getNPC(e.getEntity());\n if (e.getEntity() instanceof Player && npc != null) {\n e.... |
"public ArrayList<ProcessState> collectProcessesLocked(int[] screenStates, int[] memStates, int[] procStates, int[] sortProcStates, long now, String reqPackage, boolean activeOnly) {\n final ArraySet<ProcessState> foundProcs = new ArraySet<ProcessState>();\n final ArrayMap<String, SparseArray<PackageState>> pkgMa... |
"public static void cleanUp(final VmInstance vm) {\n LOG.trace(Logs.dump(vm));\n LOG.info(\"String_Node_Str\" + vm.getInstanceId(), new RuntimeException());\n try {\n final Cluster cluster = Clusters.lookup(Topology.lookup(ClusterController.class, vm.lookupPartition()));\n VmInstances.cleanUpAtta... |
"public boolean execute(ScrollingMenuSign plugin, Player player, String[] args) throws SMSException {\n PermissionsUtils.requirePerms(player, \"String_Node_Str\");\n Boolean loadMenus = false;\n Boolean loadMacros = false;\n Boolean loadConfig = false;\n Boolean loadAll = false;\n if (args.length == 0... |
"public final int send(ContentFactory request) throws IOException {\n HttpClient httpClient;\n String proxyConfiguration;\n PostMethod method;\n RequestEntity requestEntity;\n InputStream input;\n int retCode;\n httpClient = new HttpClient();\n proxyConfiguration = AppSettings.get().get(\"String... |
"private void makeBehaviorCache(CtMember.Cache cache) {\n List list = getClassFile3(false).getMethods();\n int n = list.size();\n for (int i = 0; i < n; ++i) {\n MethodInfo minfo = (MethodInfo) list.get(i);\n if (minfo.isMethod()) {\n CtMethod newMethod = new CtMethod(minfo, this);\n ... |
"public static String encodedSignature(String signedPubKey) {\n SHA256Digest digest = new SHA256Digest();\n byte[] signature = new byte[digest.getDigestSize()];\n System.arraycopy(decodedSignedPubKey, decodedSignedPubKey.length - digest.getDigestSize(), signature, 0, decodedSignedPubKey.length);\n return Ba... |
"private boolean _scan() {\n boolean didTransition = false;\n State state = getCurrentState();\n if (state == null) {\n state = process.getStartState();\n token.setStateName(state.getName());\n log.info(\"String_Node_Str\" + token.getStateName());\n didTransition = true;\n }\n ... |
"private static DataNode createMetterNode(boolean useFile, boolean console, String dbOutput) {\n JobMetterComponent statsComponent = new JobMetterComponent(useFile, console, dbOutput);\n DataNode statsNode = new DataNode(statsComponent, METER_UNIQUE_NAME);\n statsNode.setStart(true);\n statsNode.setSubProce... |
"public void onBlockChange(PlayerChangeBlockEvent event) {\n SpongeLocation location = new SpongeLocation(event.getBlock().getLocation());\n if (manager.isPlotWorld(location)) {\n PlotId id = manager.getPlotId(location);\n Player player = event.getPlayer();\n boolean cannotBuild = !player.has... |
"public boolean equals(final Object obj) {\n if (obj == this) {\n return true;\n }\n if (obj instanceof SparseFeature) {\n final SparseFeature that = (SparseFeature) obj;\n if (type.equals(that.type)) {\n final boolean asProperties = (valuesKind == PROPERTIES);\n if (... |
"protected Object decode(ChannelHandlerContext ctx, Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n buf.skipBytes(2);\n buf.readUnsignedShort();\n int version = buf.readUnsignedByte();\n ChannelBuffer id = buf.readBytes(20);\n i... |
"public void testOnClickEnter() throws Exception {\n OnKeyboardActionListener keyboardActionListener = Mockito.mock(OnKeyboardActionListener.class);\n FrameKeyboardViewClickListener listener = new FrameKeyboardViewClickListener(keyboardActionListener);\n Mockito.verifyZeroInteractions(keyboardActionListener);\... |
"public void drawInWorldTransmutationOverlay(DrawBlockHighlightEvent event) {\n double x = event.target.blockX + 0.5F;\n double y = event.target.blockY + 0.5F;\n double z = event.target.blockZ + 0.5F;\n double iPX = event.player.prevPosX + (event.player.posX - event.player.prevPosX) * event.partialTicks;\n ... |
"public final void getWorkloadState(ResourceUser.WorkloadStatus response) {\n int coreCount = CoreManager.getCoreCount();\n Profile[] coreProfile = new Profile[coreCount];\n for (int coreId = 0; coreId < coreCount; coreId++) {\n coreProfile[coreId] = new Profile();\n }\n for (ResourceScheduler<P, ... |
"public Pattern getSupportedLinks() {\n String strSupported = this.getProperties().getStringProperty(\"String_Node_Str\", \"String_Node_Str\");\n String[] Supp = strSupported.split(System.getProperty(\"String_Node_Str\"));\n String[] Supported = new String[Supp.length + SUPPORTEDHOSTS.length];\n for (int i ... |
"public void handle(final YokeRequest request, final Handler<Object> next) {\n String token = null;\n if (\"String_Node_Str\".equals(request.method()) && request.getHeader(\"String_Node_Str\") != null) {\n for (String ctrlReq : request.getHeader(\"String_Node_Str\").split(\"String_Node_Str\")) {\n ... |
"private void init() {\n this.timePicker.addTimeSelectionHandler((time, dateTimeFormatInfo, picker) -> {\n setStringValue(time, picker);\n changeLabelFloating();\n autoValidate();\n });\n this.modalListener = evt -> modal.open();\n this.keyboardModalListener = event -> {\n event.... |
"private Optional<IType> resolveType(final ITypeName recType) {\n ensureIsNotNull(recType);\n if (recType.isArrayType()) {\n System.err.println(\"String_Node_Str\");\n return absent();\n }\n if (recType.isNestedType()) {\n final ITypeName declaringType = recType.getDeclaringType();\n ... |
"public Cohort evaluate(CohortDefinition cohortDefinition, EvaluationContext evaluationContext) {\n Cohort cohort = new Cohort();\n SqlCohortDefinition sqlCohortDefinition = (SqlCohortDefinition) cohortDefinition;\n String query = sqlCohortDefinition.getQueryDefinition().getQueryString();\n Cohort c = Conte... |
"public void onCreate(SQLiteDatabase db) {\n baseDatabaseHelper.onCreate(SQLCipherDatabase.from(db));\n}\n"
|
"public static DimLevel getTargetDimLevel(String expr) throws DataException {\n if (expr != null && expr.trim().matches(\"String_Node_Str\")) {\n Set<DimLevel> s = OlapExpressionCompiler.getReferencedDimLevel(new ScriptExpression(expr.trim()), Collections.EMPTY_LIST);\n if (s != null && s.size() == 1) ... |
"private Stanza getSessionCreationResponse(BoshBackedSessionContext session) {\n StanzaBuilder body = new StanzaBuilder(\"String_Node_Str\", NamespaceURIs.XEP0124_BOSH);\n body.addAttribute(\"String_Node_Str\", Integer.toString(session.getWait()));\n body.addAttribute(\"String_Node_Str\", Integer.toString(sess... |
"protected void doTxWork(IProgressMonitor monitor, JdbcConnection connection) throws OseeCoreException {\n if (artifactsToPurge == null || artifactsToPurge.isEmpty()) {\n return;\n }\n checkPurgeValid(connection);\n Set<Artifact> childreArtifactsToPurge = new HashSet<>();\n for (Artifact art : art... |
"public void contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt) {\n Contact sourceContact = evt.getSourceContact();\n MetaContact metaContact = contactList.findMetaContactByContact(sourceContact);\n if (metaContact != null) {\n ContactListPanel clistPanel = tabbedPane.getContactListPanel... |
"public void resize(int w, int h) {\n if (w == width() && h == height())\n return;\n width_ = w;\n height_ = h;\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice gd = ge.getDefaultScreenDevice();\n GraphicsConfiguration gc = gd.getDefaultConfiguratio... |
"public void run() {\n final ITmfTreeViewerEntry rootEntry = updateElements(start, end, isSelection);\n if (rootEntry != null) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n if (entries != fTreeViewer.getInput()) {\n fTreeViewer.setI... |
"public List<UserVO> createTestUsers(URL deploymentUrl, int count) throws IOException, URISyntaxException {\n RestConnection restConnection = new RestConnection(deploymentUrl);\n restConnection.login(getUsername(), getPassword());\n List<UserVO> user = new ArrayList<UserVO>();\n for (int i = 0; i < count; i... |
"protected void monitor(MonitorStatusEvent statusEvent) {\n String id = statusEvent.getId();\n Status status1 = statusEvent.getStatus();\n ApplicationContext context = this.dependencyTree.findApplicationContextWithId(id);\n if (!isParent(id)) {\n if (status1 == Status.Activated) {\n try {\... |
"public double getVariance() {\n double theta_Minus1 = ((CompoundVector) this.naturalParameters).getcovbaseMatrix().getEntry(0, 0);\n return -0.5 / theta_Minus1;\n}\n"
|
"private static StructureAlignmentJmol display(AFPChain afpChain, Atom[] ca1, Atom[] ca2, List<Group> hetatms, List<Group> nucs1, List<Group> hetatms2, List<Group> nucs2) throws StructureException {\n Group[] twistedGroups = new Group[ca2.length];\n if (afpChain.getBlockRotationMatrix().length == 0) {\n th... |
"public static void handleOperation(Operation operation, ViewerAttributeBean bean, Map parameterMap, Map displayTexts) throws Exception {\n if (operation == null || bean == null || parameterMap == null || displayTexts == null)\n return;\n List locs = new ArrayList();\n Map params = new HashMap();\n S... |
"public void renameFolder(ERepositoryObjectType type, IPath path, String label) throws PersistenceException {\n this.repositoryFactoryFromProvider.renameFolder(type, path, label);\n if (type == ERepositoryObjectType.PROCESS) {\n fireRepositoryPropertyChange(ERepositoryActionName.FOLDER_RENAME.getName(), pa... |
"protected void acceptProposal() {\n String componentName = assistText.getText().trim();\n org.eclipse.swt.graphics.Point componentLocation = assistText.getLocation();\n componentLocation.y += assistText.getLineHeight();\n disposeAssistText();\n Object createdNode = createComponent(component, componentLo... |
"public boolean apply(final Void v) {\n final List<CloudMetadata> resources = Lists.transform(resourceIds, resourceLookup());\n if (!Iterables.all(resources, Predicates.and(Predicates.notNull(), typeSpecificFilters(), RestrictedTypes.filterPrivileged()))) {\n return false;\n }\n for (final CloudMetad... |
"public void recordGaugeValue(String aspect, int value) {\n send(String.format(\"String_Node_Str\", prefix, aspect, value));\n}\n"
|
"public String toString() {\n StringBuffer buff = new StringBuffer(\"String_Node_Str\");\n buff.append(getGroupName());\n buff.append(\"String_Node_Str\" + countContacts() + \"String_Node_Str\");\n Iterator<Contact> contacts = contacts();\n while (contacts.hasNext()) {\n ContactIcqImpl contact = (... |
"public void run() {\n logger.info(Thread.currentThread().getName() + \"String_Node_Str\");\n try {\n while (true) {\n byte[] buffer = new byte[p.maxUdpPacketSize + 4];\n DatagramPacket dp = new DatagramPacket(buffer, buffer.length);\n datagramSocket.receive(dp);\n ... |
"public void shutdown() {\n List<? extends Chromosome> individuals = ga_population.getIndividuals();\n ChromosomeComparator.sort(individuals);\n Filter filter = (Filter) individuals.get(0);\n FractionClassificationResult r;\n if (ga_subset)\n r = filter.fractionScoreSubset(ga_resultsListToScore, f... |
"public int getJavaType() {\n return TalendTypeConvert.convertToJDBCType(getXmlElementType().getJavaType());\n}\n"
|
"public UpsertResult[] upsert(String tablename, String upsertkey, OMElement[] updatefields, String[] fieldsToNull) throws Exception {\n SObject item = new SObject();\n item.setType(tablename);\n item.setExtraElement(updatefields);\n item.setFieldsToNull(fieldsToNull);\n upsertItems.add(item);\n upsert... |
"public String toString() {\n return name;\n}\n"
|
"protected void paintTo(GlimpseContext context, GlimpseBounds bounds) {\n if (icons == null) {\n loadIcons();\n }\n if (newFont != null) {\n updateTextRenderer();\n }\n if (textLayout == null && textRenderer != null) {\n updateTextLayout();\n }\n if (lines == null && textLayout... |
"public static void addRecipe(String key, ItemStack output, Object... params) {\n ShapedOreRecipe recipe = new ShapedOreRecipe(null, output, params);\n addRecipe(key, recipe);\n}\n"
|
"public double calculate(MultipleAlignment reference, AFPChain align, Atom[] ca1, Atom[] ca2) {\n List<Atom[]> structures = new ArrayList<Atom[]>(2);\n structures.add(ca1);\n structures.add(ca2);\n int[][] refAln;\n try {\n refAln = reference.getAlignmentMatrix(structures);\n } catch (Structure... |
"private static boolean canDestroyShop(Player player, String name) {\n return player != null && (hasShopBreakingPermission(player) || canUseName(player, name));\n}\n"
|
"private void removeBinding(Route route) {\n String nameOrUriPattern = StringUtils.isNullOrEmpty(route.getName()) ? route.getUriPattern() : route.getName();\n PatternBinding binding = getBinding(nameOrUriPattern);\n bindingsCache.get(route.getRequestMethod()).remove(binding);\n}\n"
|
"public String signUp() throws IOException {\n FacesContext fc = FacesContext.getCurrentInstance();\n if (authCheck.isLoggedIn()) {\n fc.getExternalContext().responseSendError(401, \"String_Node_Str\");\n }\n UsersFacade usersFacade = Config.getInstance().getFacadeFactory().getUsersFacade();\n Use... |
"private void prepareVarSelParams(final List<String> args, final SourceType sourceType) {\n args.add(\"String_Node_Str\");\n addRuntimeJars(args);\n args.add(\"String_Node_Str\");\n args.add(ShifuFileUtils.getFileSystemBySourceType(sourceType).makeQualified(new Path(modelConfig.getDataSetRawPath())).toStrin... |
"private String format(String theResultBody, EncodingEnum theEncodingEnum) {\n String str = StringEscapeUtils.escapeHtml4(theResultBody);\n if (str == null || theEncodingEnum == null) {\n return str;\n }\n StringBuilder b = new StringBuilder();\n if (theEncodingEnum == EncodingEnum.JSON) {\n ... |
"public static VMOperationResultObject composeResultObject(ManagementServer managementServer, UserVmVO vm, String vmPassword) {\n VMOperationResultObject resultObject = new VMOperationResultObject();\n resultObject.setId(vm.getId());\n resultObject.setName(vm.getName());\n resultObject.setCreated(vm.getCrea... |
"public List<HistogramBin> getVectorHistogram(String columnName, int numBins) throws DDFException {\n String command = String.format(\"String_Node_Str\", columnName, numBins);\n if (!Strings.isNullOrEmpty(command)) {\n mLog.info(\"String_Node_Str\" + command);\n List<String> result = this.getDDF().s... |
"private PostModel getNextUploadablePost() {\n Iterator<PostModel> iterator = mQueuedPostsList.iterator();\n while (iterator.hasNext()) {\n PostModel postModel = iterator.next();\n if (!MediaUploadService.hasPendingMediaUploadsForPost(postModel)) {\n PostModel latestPost = mPostStore.getP... |
"public List<EndpointOverride> getSelectedPaths(int overrideType, Client client, Profile profile, String uri, Integer requestType, boolean pathTest) throws Exception {\n List<EndpointOverride> selectPaths = new ArrayList<EndpointOverride>();\n List<EndpointOverride> paths = new ArrayList<EndpointOverride>();\n ... |
"private BrowseInfo browseByValue(BrowserScope bs) throws BrowseException {\n log.info(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + bs.getJumpToValue()));\n try {\n dao.setTable(browseIndex.getDistinctTableName());\n dao.setDistinct(true);\n dao.setAscending(scope.... |
"public void preloadSources(final Config config, final ScriptInstrumenter instrumenter, final RunStats totalStats) throws IOException {\n final String sourcesToPreload = config.getSourcesToPreload();\n final URI baseUri = config.getBaseUri();\n if (sourcesToPreload == null || !config.getOutputStrategy().contai... |
"private String buildQuery(String tenantId, String name, Map<String, String> dimensions, DateTime startTime, DateTime endTime, String offset, int limit, Boolean mergeMetricsFlag) throws Exception {\n String q;\n if (Boolean.TRUE.equals(mergeMetricsFlag)) {\n q = String.format(\"String_Node_Str\" + \"String... |
"public void onNewLine(String line) {\n Matcher matcher = null;\n line = line.trim();\n if ((matcher = ATTEMPT_PATTERN.matcher(line)) != null && matcher.find()) {\n String login = matcher.group(1), password = matcher.group(2), progress = matcher.group(3), total = matcher.group(4);\n int iprogress... |
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (parentElement instanceof TreePath) {\n TreePath path = (TreePath) parentElement;\n if (path.getLastSegment() instanceof AnaElementFolderNode) {\n return true;\n }\n } else if (parentElement instance... |
"public void testSibling() throws Exception {\n final Location location = new Location(\"String_Node_Str\", \"String_Node_Str\");\n testPut(location, \"String_Node_Str\");\n try {\n Bucket bucket = testBucketGet(location.getBucket());\n bucket.setAllowMulti(true);\n testBucketSet(bucket);\... |
"private void processLowEnergyCepstrum(Cepstrum cepstrum) {\n if (inSpeech) {\n if (endLowFrames == endOffset) {\n endOffsetFrame = cepstrum;\n } else if (endLowFrames > endWindow) {\n speechEnd();\n }\n endLowFrames++;\n } else {\n if (startLowFrames > max... |
"public static boolean hasRewardBrewing(Player player) {\n return !globalSettings.isUsePermissions() || player.hasPermission(REWARDS_BREWING);\n}\n"
|
"protected void writeEntityToNBT(NBTTagCompound nbt) {\n if (!worldObj.isRemote) {\n NBTTagCompound tag = new NBTTagCompound();\n interaction.saveToNBT(tag);\n nbt.setTag(\"String_Node_Str\", tag);\n }\n}\n"
|
"public void serialize(Date date, JsonGenerator gen, SerializerProvider provider) throws IOException, JsonProcessingException {\n String formattedDate = new SimpleDateFormat(DATE_FORMAT).format(date);\n gen.writeString(formattedDate);\n}\n"
|
"public IComplexNDArray getRow(int r) {\n return (IComplexNDArray) super.getRow(r);\n}\n"
|
"private void measureThroughput(List<Event> eventList) {\n String threadName = Thread.currentThread().getName();\n long receivedTimeNanos = System.nanoTime();\n long producerIndex = 0;\n long timeStampNanos = 0;\n for (Event event : eventList) {\n long currentTotal = totalEventCount++;\n lo... |
"public void testClusterCreation(String clusterName, String ambariUser, String ambariPassword, boolean emailNeeded, boolean enableSecurity, String kerberosMasterKey, String kerberosAdmin, String kerberosPassword, String runRecipesOnHosts) throws Exception {\n IntegrationTestContext itContext = getItContext();\n S... |
"private void writeBoolJump(int jump) {\n Label label1 = new Label();\n Label label2 = new Label();\n this.writeJumpInsn(jump, label1);\n this.writeInsn(Opcodes.ICONST_0);\n this.writeJumpInsn(Opcodes.GOTO, label2);\n this.writeTargetLabel(label1);\n this.writeInsn(Opcodes.ICONST_1);\n this.writ... |
"public static <T> BooleanExpression createExpression(PathBuilder<T> entityPath, String fieldName, Object searchObj, String operator) {\n if (searchObj == null) {\n return null;\n }\n Class<?> fieldType = descriptor.getType();\n if (String.class == fieldType) {\n return createStringExpressionW... |
"public void testWordCountWithSortedSink() {\n FileDataSource sourceNode = new FileDataSource(TextInputFormat.class, IN_FILE_1, \"String_Node_Str\");\n MapContract mapNode = MapContract.builder(TokenizeLine.class).input(sourceNode).name(\"String_Node_Str\").build();\n ReduceContract reduceNode = new ReduceCont... |
"public int hashCode() {\n final int prime = 31;\n int classNameHash = 0;\n if (mergerProviderClassName != null) {\n classNameHash = mergerProviderClassName.hashCode();\n int extensionHash = 0;\n if (fileExtension != null)\n extensionHash = fileExtension.hashCode();\n int priorityHash = ... |
"public Collection<V> values() {\n return ((ReplicatedMapValueCollection) invoke(new ClientReplicatedMapValuesRequest(getName()))).getValues();\n}\n"
|
"protected void reattachFrame() {\n if (logger.isLoggable(Level.FINEST)) {\n logger.finest(\"String_Node_Str\");\n }\n detachFrame();\n attachFrame();\n}\n"
|
"private List<Entitlement> convertPoolsToEntitlements(List<Pool> pools) {\n List<Entitlement> result = new ArrayList<Entitlement>();\n for (Pool p : pools) {\n output.addAll(p.getEntitlements());\n }\n return result;\n}\n"
|
"private void rejectInvite(Map<String, Object> model, String inviteId, String inviteeUserName, String siteShortName) {\n completeInviteTask(inviteId, QName.createQName(WF_TASK_INVITE_PENDING, this.namespaceService), WF_TRANSITION_REJECT);\n if ((this.mutableAuthenticationDao.userExists(inviteeUserName)) && (this.... |
"protected void createColumns(TableViewerCreator<B> tableViewerCreator, Table table) {\n tableViewerCreator.setReadOnly(false);\n TableViewerCreatorColumn column = new TableViewerCreatorColumn(tableViewerCreator);\n column.setTitle(\"String_Node_Str\");\n column.setDefaultInternalValue(\"String_Node_Str\");... |
"public void setTablength(int tlength) throws BuildException {\n try {\n filter.setTablength(tlength);\n } catch (IOException e) {\n throw new BuildException(e.getMessage(), e);\n }\n}\n"
|
"public String incrementFacialHair(int increment) {\n int value = getFacialHair().getValue() + increment;\n if (value < 0) {\n value = 0;\n } else if (value > BodyHair.SEVEN_WILD.getValue()) {\n value = BodyHair.SEVEN_WILD.getValue();\n }\n return body.getFace().setFacialHair(this, BodyHair... |
"private void doNext() {\n int toSkip = 0;\n while (SamplingLongPrimitiveIterator.r.nextDouble() >= samplingRate) {\n toSkip++;\n }\n if (toSkip > 0) {\n delegate.skip(toSkip);\n }\n boolean found = false;\n if (delegate.hasNext()) {\n next = delegate.next();\n } else {\n ... |
"public static void clear(final Player requester, final Plot plot) {\n PlotWorld plotworld = PlotMain.getWorldSettings(Bukkit.getWorld(plot.world));\n long start = System.nanoTime();\n PlotHelper.setBiome(requester.getWorld(), plot, Biome.FOREST);\n PlotHelper.removeSign(requester, plot);\n PlayerFunctio... |
"public SerializableHashSet<ChannelID> constructInitialActiveOutputChannelsSet() {\n final SerializableHashSet<ChannelID> activeOutputChannels = new SerializableHashSet<ChannelID>();\n synchronized (this) {\n final int numberOfOutputGates = this.environment.getNumberOfOutputGates();\n for (int i = 0... |
"private void createTextualQueryComposite(Composite parent) {\n Composite composite = new Composite(parent, SWT.FILL | SWT.LEFT_TO_RIGHT);\n GridLayout layout = new GridLayout();\n layout.numColumns = 1;\n composite.setLayout(layout);\n CompositeRuler ruler = new CompositeRuler();\n LineNumberRulerCol... |
"public static List<BarEntry> loadBarEntriesFromAssets(AssetManager am, String path) {\n List<BarEntry> entries = new ArrayList<BarEntry>();\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(am.open(path), \"String_Node_Str\"));\n String line = reader.rea... |
"public void fire() throws IllegalActionException {\n super.fire();\n if (input.hasToken(0)) {\n Token observationArray = input.get(0);\n int _observationLength = ((ArrayToken) observationArray).length();\n if (_observationLength <= 0) {\n throw new IllegalActionException(this, \"S... |
"private static Sound[] createChannel() {\n return new Sound[] { loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\"), loadSound(\"String_Node_Str\... |
"public void testExampleMath0C1() throws Exception {\n String dependenciespath = \"String_Node_Str\" + File.pathSeparator + \"String_Node_Str\";\n String folder = \"String_Node_Str\";\n String failing = \"String_Node_Str\";\n File f = new File(\"String_Node_Str\");\n String location = f.getAbsolutePath()... |
"public Rsrcc_srcm_stmt_kind_tgtc_tgtm edgesOutOf(MethodOrMethodContext m) {\n return new Rsrcc_srcm_stmt_kind_tgtc_tgtmBDD(new jedd.internal.RelationContainer(new jedd.Attribute[] { tgtm.v(), stmt.v(), srcm.v(), srcc.v(), tgtc.v(), kind.v() }, new jedd.PhysicalDomain[] { MT.v(), ST.v(), MS.v(), C1.v(), C2.v(), KD.v... |
"public static int execFromPath(final String command, final String[] parms, final ShellPrintWriter out, final DirectoryResource path) throws IOException {\n try {\n String[] commandTokens = parms == null ? new String[1] : new String[parms.length + 1];\n commandTokens[0] = command;\n if (commandT... |
"public void handleMessage(Message message) {\n if (ContactsListActivity.this.isFinishing()) {\n return;\n }\n switch(message.what) {\n case FETCH_IMAGE_MSG:\n ImageView imageView = (ImageView) message.obj;\n long photoId = (Long) imageView.getTag();\n Bitmap phot... |
"public Receiver newReceiver() {\n Receiver receiver = new ContReceiver(this);\n if (_receivers == null) {\n _receivers = new LinkedList();\n }\n _receivers.add(receiver);\n return receiver;\n}\n"
|
"public IAccess resolve2(IContext context) {\n if (this.isSugarCall) {\n if (this.arguments.isEmpty()) {\n IField field = IAccess.resolveField(context, this.instance, this.qualifiedName);\n if (field != null) {\n FieldAccess access = new FieldAccess(this.position);\n ... |
"void add(final FileStats newStats) {\n final String key = newStats.getFullName();\n final FileStats oldStats = fileStatsMap.get(key);\n if (oldStats != null) {\n fileStatsMap.put(key, FileStats.merge(newStats, oldStats));\n } else {\n fileStatsMap.put(key, newStats);\n }\n}\n"
|
"private java.util.List getCallableParamMetaData() {\n java.util.List paramMetaDataList = new ArrayList();\n try {\n DatabaseMetaData metaData = conn.getMetaData();\n String cataLog = conn.getCatalog();\n ArrayList schemaList = null;\n String columnNamePattern = null;\n String p... |
"public boolean isIfReady() throws PtalonRuntimeException {\n IfTree parent = _currentIfTree.getParent();\n if (parent == null) {\n return false;\n } else if (parent.getActiveBranch() == null) {\n return false;\n } else if (parent.getActiveBranch() != parent.getCurrentBranch()) {\n retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.