idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
21,750 | private void addResource(String url, boolean localAllowed) throws BuildException {<NEW_LINE>if (url == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (url.startsWith("nbres:")) {<NEW_LINE>url = <MASK><NEW_LINE>}<NEW_LINE>final String prfx = "nbresloc:";<NEW_LINE>if (!url.startsWith(prfx)) {<NEW_LINE>if (localAllowed) ... | "nbresloc:" + url.substring(6); |
1,016,750 | private void handleCode(CloseCode closeCode) {<NEW_LINE>if (closeCode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mostRecentCloseCode = closeCode;<NEW_LINE>if (closeCode == CloseCode.DISALLOWED_INTENTS) {<NEW_LINE>Set<GatewayIntent> intents = DiscordSRV.api.getIntents();<NEW_LINE>boolean presences = intents.contain... | getLogger().severe("=============================================================="); |
908,638 | protected void onCreate(@Nullable Bundle savedInstanceState, boolean ready) {<NEW_LINE>setContentView(R.layout.activity_contact_share_edit);<NEW_LINE>if (getIntent() == null) {<NEW_LINE>throw new IllegalStateException("You must supply extras to this activity. Please use the #getIntent() method.");<NEW_LINE>}<NEW_LINE>L... | (viewModel.getFinalizedContacts())); |
1,067,844 | public Future<VoidResult> update(int matrixId, Matrix delta, UpdateOp op) {<NEW_LINE>checkParams(matrixId);<NEW_LINE>delta.setMatrixId(matrixId);<NEW_LINE>MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>PartitionKey[] parts = matrixMeta.getPartitionKeys();<NEW_LINE>... | requestIdToResultMap.put(requestId, result); |
1,633,984 | final DescribeDataSourcesResult executeDescribeDataSources(DescribeDataSourcesRequest describeDataSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDataSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
154,935 | private void createCache(Repository repository, String sinceRevision) {<NEW_LINE><MASK><NEW_LINE>String type = repository.getClass().getSimpleName();<NEW_LINE>if (!repository.isHistoryEnabled()) {<NEW_LINE>LOGGER.log(Level.INFO, "Skipping history cache creation of {0} repository in {1} and its subdirectories", new Obje... | String path = repository.getDirectoryName(); |
1,294,628 | private void processElementUniform(GeneratorSingleCluster cluster, Node cur) {<NEW_LINE>double min = 0.0;<NEW_LINE>double max = 1.0;<NEW_LINE>String minstr = ((Element) cur).getAttribute(ATTR_MIN);<NEW_LINE>if (minstr != null && minstr.length() > 0) {<NEW_LINE>min = ParseUtil.parseDouble(minstr);<NEW_LINE>}<NEW_LINE>St... | Node child = iter.next(); |
818,278 | public boolean visit(SQLShowIndexesStatement x) {<NEW_LINE>final List<SQLCommentHint> headHints = x.getHeadHintsDirect();<NEW_LINE>if (headHints != null) {<NEW_LINE>for (SQLCommentHint hint : headHints) {<NEW_LINE>hint.accept(this);<NEW_LINE>println();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>print0(ucase ? "SHOW " : "show ");<N... | getWhere().accept(this); |
995,126 | private DeployAppDOExample buildExample(DeployAppQueryCondition condition) {<NEW_LINE>DeployAppDOExample example = new DeployAppDOExample();<NEW_LINE>DeployAppDOExample.Criteria criteria = example.createCriteria();<NEW_LINE>if (StringUtils.isNotBlank(condition.getAppId())) {<NEW_LINE>criteria.andAppIdEqualTo(condition.... | andNamespaceIdEqualTo(condition.getNamespaceId()); |
806,888 | public static JsonObject toJson(final Project project) {<NEW_LINE>final <MASK><NEW_LINE>projectBuilder.add("uuid", project.getUuid().toString());<NEW_LINE>JsonUtil.add(projectBuilder, "name", project.getName());<NEW_LINE>JsonUtil.add(projectBuilder, "version", project.getVersion());<NEW_LINE>JsonUtil.add(projectBuilder... | JsonObjectBuilder projectBuilder = Json.createObjectBuilder(); |
21,311 | public Pair<List<? extends SSHKeyPair>, Integer> listSSHKeyPairs(final ListSSHKeyPairsCmd cmd) {<NEW_LINE>final Long id = cmd.getId();<NEW_LINE>final String name = cmd.getName();<NEW_LINE>final String fingerPrint = cmd.getFingerprint();<NEW_LINE>final String keyword = cmd.getKeyword();<NEW_LINE>final Account caller = g... | SearchCriteria.Op.EQ, id); |
1,777,493 | public static // of stops. All stops lie on a circle with the given radius.<NEW_LINE>TravelingSalesman of(int stops, double radius) {<NEW_LINE>final MSeq<double[]> points = MSeq.ofLength(stops);<NEW_LINE>final double delta = 2.0 * PI / stops;<NEW_LINE>for (int i = 0; i < stops; ++i) {<NEW_LINE>final double alpha = delt... | sin(alpha) * radius + radius; |
497,038 | public DatabaseDiscoveryRuleConfiguration swapToObject(final YamlDatabaseDiscoveryRuleConfiguration yamlConfig) {<NEW_LINE>Collection<DatabaseDiscoveryDataSourceRuleConfiguration> dataSources = new LinkedList<>();<NEW_LINE>for (Entry<String, YamlDatabaseDiscoveryDataSourceRuleConfiguration> entry : yamlConfig.getDataSo... | , entry.getValue())); |
1,381,051 | protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_FRONT_ID, new ColumnMeta(COLUMN_FRONT_ID, "int(11)", false, true));<NEW_LINE>columnsType.put(COLUMN_FRONT_ID, Fields.FIELD_TYPE_LONG);<NEW_LINE>columns.put(COLUMN_DB_INSTANCE, new ColumnMeta(COLUMN_DB_INSTANCE, "varchar(12)", false));<NEW_LINE>columnsType... | put(COLUMN_MYSQL_DB, Fields.FIELD_TYPE_VAR_STRING); |
628,792 | void paint(Graphics2D g, int x, int y, int width, int height) {<NEW_LINE>if (mySet != null) {<NEW_LINE>Iterator<ErrorStripe> iterator = mySet.iterator();<NEW_LINE>if (iterator.hasNext()) {<NEW_LINE>int thickness = myAlignment <MASK><NEW_LINE>if (thickness < height) {<NEW_LINE>int count = Math.min(height / thickness, my... | != null ? myMin + myGap : height; |
62,939 | public CloudTrailConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudTrailConfigurationResult cloudTrailConfigurationResult = new CloudTrailConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | class).unmarshall(context)); |
1,702,342 | /* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBObjectInterface#loadHeaders(java.util.HashMap, com.kkalice.adempiere.migrate.MigrateLogger, com.kkalice.adempiere.migrate.MigrateDBEngine, com.kkalice.adempiere.migrate.DBConnection, java.lang.String)<NEW_LINE>*/<NEW_LINE>public void loadHeaders(HashMap<I... | parent.getResultSetString(rs, "LEFT_ARG"); |
1,188,254 | // Add a new track to the tracks<NEW_LINE>public void add(SinusoidalTrack track) {<NEW_LINE>if (// Expand the current track twice its length and then add<NEW_LINE>currentIndex + 1 >= totalTracks) {<NEW_LINE>if (totalTracks > 0) {<NEW_LINE>SinusoidalTracks tmpTracks = new SinusoidalTracks(this);<NEW_LINE>if (tmpTracks.t... | tmpTracks.totalTracks + 200, fs); |
475,032 | public Request<ListEntitiesForPolicyRequest> marshall(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest) {<NEW_LINE>if (listEntitiesForPolicyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListEntitiesForPolicyRequest> request = n... | (listEntitiesForPolicyRequest.getPathPrefix())); |
61,239 | public UserGroupResolutionConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UserGroupResolutionConfiguration userGroupResolutionConfiguration = new UserGroupResolutionConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | int originalDepth = context.getCurrentDepth(); |
321,571 | public void nativeCrashed() {<NEW_LINE>Log.e("Packet", "crashed");<NEW_LINE>Log.d("Packet", "(JNIDEBUG) In nativeCrashed(): " + Integer.toString(_dissection_ptr) + ", writing crashed packet to /sdcard/crash.pcap");<NEW_LINE>try {<NEW_LINE>DataOutputStream os = new <MASK><NEW_LINE>byte[] pcap_header = { // magic number<... | DataOutputStream(new FileOutputStream("/sdcard/crash.pcap")); |
1,039,584 | private List<Predicate> createLastUpdatedPredicates(final DateRangeParam theLastUpdated, CriteriaBuilder builder) {<NEW_LINE>List<Predicate> lastUpdatedPredicates = new ArrayList<>();<NEW_LINE>if (theLastUpdated != null) {<NEW_LINE>if (theLastUpdated.getLowerBoundAsInstant() != null) {<NEW_LINE>ourLog.debug("LastUpdate... | ), theLastUpdated.getUpperBoundAsInstant()); |
1,646,442 | private void append(String name, int start, int end, StringBuilder baseName, StringBuilder lowerBaseName, StringBuilder capBaseName, StringBuilder dirName) {<NEW_LINE>dirName.append(Character.toLowerCase(<MASK><NEW_LINE>dirName.append(name.substring(start + 1, end));<NEW_LINE>dirName.append('/');<NEW_LINE>if (start != ... | name.charAt(start))); |
1,580,326 | public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if ("state".equals(evt.getPropertyName()) && (SwingWorker.StateValue.STARTED.equals(evt.getNewValue()))) {<NEW_LINE>// Setup progress bar.<NEW_LINE>String displayStr = NbBundle.getMessage(this.getClass(), "CreateLiveTriageDriveAction.progressBar.text", driv... | (CopyFilesWorker.class, "CopyFilesWorker.done.text")); |
1,546,927 | public void deviceConnected(IDevice device) {<NEW_LINE>if (device == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (device.isEmulator()) {<NEW_LINE>String serial = device.getSerialNumber();<NEW_LINE>Integer port = Integer.parseInt(serial.replace("emulator-", ""));<NEW_LINE>String avdName = null;<NEW_LINE>TelnetClient... | Level.WARNING, logMessage, e); |
232,705 | public com.amazonaws.services.simplesystemsmanagement.model.ParameterAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.ParameterAlreadyExistsException parameterAlreadyExistsException = new com.amazonaws.services... | String currentParentElement = context.getCurrentParentElement(); |
1,446,574 | // This method recursively visits all thread groups under `group'.<NEW_LINE>public static void visit(ThreadGroup group, int level, ExceptionReporting exceptionReporter) {<NEW_LINE>// Get threads in `group'<NEW_LINE>int numThreads = group.activeCount();<NEW_LINE>Thread[] threads = new Thread[numThreads * 2];<NEW_LINE>nu... | = new ThreadGroup[numGroups * 2]; |
1,332,062 | static GeoJsonOptions buildGeojsonOptions(Map<String, Object> data) {<NEW_LINE>GeoJsonOptions options = new GeoJsonOptions();<NEW_LINE>final Object buffer = data.get("buffer");<NEW_LINE>if (buffer != null) {<NEW_LINE>options = options.withBuffer(Convert.toInt(buffer));<NEW_LINE>}<NEW_LINE>final Object cluster = data.ge... | tolerance = data.get("tolerance"); |
1,792,786 | public ConstantPropagationStore leastUpperBound(ConstantPropagationStore other) {<NEW_LINE>Map<Node, Constant> newContents = new LinkedHashMap<>(contents.size() + other.contents.size());<NEW_LINE>// go through all of the information of the other class<NEW_LINE>for (Map.Entry<Node, Constant> e : other.contents.entrySet(... | Constant thisVal = e.getValue(); |
509,759 | final DescribeVpcClassicLinkResult executeDescribeVpcClassicLink(DescribeVpcClassicLinkRequest describeVpcClassicLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcClassicLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
748,996 | public void writeOut(String typeName, String fieldPrefix, PrintWriter out, PrintWriter ssout) {<NEW_LINE>if (name == null || name.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Treat bitfields differently<NEW_LINE>String typeString = getTypeString();<NEW_LINE>String declaredName = fieldPrefix + name;<NEW_LINE... | ).replace(".", "$"); |
1,049,769 | private void handleCExtensionException(String feature, Exception e) {<NEW_LINE>TranslateExceptionNode.logJavaException(getContext(), this, e);<NEW_LINE>final Throwable linkErrorException = searchForException("NFIUnsatisfiedLinkError", e);<NEW_LINE>if (linkErrorException != null) {<NEW_LINE>final String linkError = link... | "%s (%s)", "the OpenSSL C extension was compiled against a different libssl than the one used on this system - recompile by running " + postInstallHook, linkError); |
1,179,079 | private boolean acknowledgeStanzaUpTo(int serverCount) {<NEW_LINE>if (serverCount > stanzasSent) {<NEW_LINE>Log.e(Config.LOGTAG, "server acknowledged more stanzas than we sent. serverCount=" + serverCount + ", ourCount=" + stanzasSent);<NEW_LINE>}<NEW_LINE>boolean acknowledgedMessages = false;<NEW_LINE>for (int i = 0; ... | Jid to = packet.getTo(); |
240,638 | public void afterMarshalling(Context.AfterMarshalling context, ExecutionAttributes executionAttributes) {<NEW_LINE>io.opentelemetry.context.Context parentOtelContext = io.opentelemetry.context.Context.current();<NEW_LINE>if (!instrumenter.shouldStart(parentOtelContext, executionAttributes)) {<NEW_LINE>return;<NEW_LINE>... | ofSdkRequest(context.request()); |
1,211,250 | public void modifyTestElement(TestElement tc) {<NEW_LINE>configureTestElement(tc);<NEW_LINE>((ThroughputController) tc).setStyle(style);<NEW_LINE>((ThroughputController<MASK><NEW_LINE>if (style == ThroughputController.BYNUMBER) {<NEW_LINE>try {<NEW_LINE>((ThroughputController) tc).setMaxThroughput(Integer.parseInt(thro... | ) tc).setPerThread(isPerThread); |
897,330 | private void loadNode1079() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NamespacesType_AddressSpaceFile_SetPosition_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger... | .expanded(), true)); |
530,511 | private Properties synthesizeSpringComponents() {<NEW_LINE>Properties p = new Properties();<NEW_LINE>List<Entry<Type, List<Type>><MASK><NEW_LINE>List<Entry<Type, List<Type>>> filteredComponents = filterOutNestedConfigurationTypes(components);<NEW_LINE>for (Entry<Type, List<Type>> filteredComponent : filteredComponents)... | > components = ts.scanForSpringComponents(); |
544,040 | public void deleteAttachedLines(final I_AD_PrinterHW printerHW) {<NEW_LINE>final IPrintingDAO dao = Services.get(IPrintingDAO.class);<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(printerHW);<NEW_LINE>final String trxName = InterfaceWrapperHelper.getTrxName(printerHW);<NEW_LINE>final HardwarePrinterId p... | printerID.getRepoId(), trxName); |
1,727,583 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Aggregate aggregate = call.rel(0);<NEW_LINE>final Project <MASK><NEW_LINE>final RexBuilder rexBuilder = aggregate.getCluster().getRexBuilder();<NEW_LINE>final List<AggregateCall> newCalls = new ArrayList<>(aggregate.getAggCallList().size());<NEW_LINE>final List<... | project = call.rel(1); |
1,798,796 | private boolean checkDimensions(final VariableElement field) {<NEW_LINE>TruffleTypes types = ProcessorContext.getInstance().getTypes();<NEW_LINE>final AnnotationMirror compFin = ElementUtils.findAnnotationMirror(field, types.CompilerDirectives_CompilationFinal);<NEW_LINE>if (compFin != null) {<NEW_LINE>final int compFi... | .format("Positive @CompilationFinal.dimensions (%d) not allowed for non array type.", compFinDimensions)); |
1,113,616 | public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException {<NEW_LINE>ArrayList<InjectParameter> inlist = new ArrayList<>();<NEW_LINE>ArrayList<InjectParameter> outlist = new ArrayList<>();<NEW_LINE>// The <pcode> tag<NEW_LINE>XmlElement el = parser.start();<NEW_LINE>String injectstr... | end(subel).getText(); |
1,212,799 | public Request<ValidateSecurityProfileBehaviorsRequest> marshall(ValidateSecurityProfileBehaviorsRequest validateSecurityProfileBehaviorsRequest) {<NEW_LINE>if (validateSecurityProfileBehaviorsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ValidateSecurityProfileBehavio... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
850,565 | final ListSubscribedWorkteamsResult executeListSubscribedWorkteams(ListSubscribedWorkteamsRequest listSubscribedWorkteamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSubscribedWorkteamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
300,719 | public IRTMPEvent dequeue() {<NEW_LINE>if (reader.hasMoreTags()) {<NEW_LINE>ITag tag = reader.readTag();<NEW_LINE>IRTMPEvent msg;<NEW_LINE>switch(tag.getDataType()) {<NEW_LINE>case TYPE_AUDIO_DATA:<NEW_LINE>msg = new AudioData(tag.getBody());<NEW_LINE>break;<NEW_LINE>case TYPE_VIDEO_DATA:<NEW_LINE>msg = new VideoData(t... | setTimestamp(tag.getTimestamp()); |
1,614,120 | public WatchlistsDeleteResponse deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' ... | Utils.getValueFromIdByName(id, "watchlists"); |
377,609 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanent(source.getFirstTarget());<NEW_LINE>if (player != null && permanent != null) {<NEW_LINE>if (player.chooseUse(Outcome.Neutral, "Remove a counter?", source, ... | selectCounterType(game, source, card); |
1,698,965 | /*<NEW_LINE>private void propagateSleepSetSymbolic(int depth, PrimitiveVS<Machine> choice) {<NEW_LINE>propagateSleepSet(depth, choice);<NEW_LINE>for (GuardedValue<Machine> machine : choice.getGuardedValues()) {<NEW_LINE>Message current = machine.getValue().sendBuffer.peek(machine.getGuard());<NEW_LINE>for (GuardedValue... | (-1).not(); |
873,866 | public static GalenActionMutateArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("i", "include", true, "Tags for sections that should be included in test run");<NEW_LINE>options.addOption("e", "exclude", tr... | "c", "config", true, "Path to config"); |
253,059 | public void run() {<NEW_LINE>diffs = differences;<NEW_LINE>if (diffs != NO_DIFFERENCES) {<NEW_LINE>diffChanged();<NEW_LINE>}<NEW_LINE>if (getDifferenceIndex() >= diffs.length)<NEW_LINE>updateCurrentDifference(null);<NEW_LINE>view.revalidate();<NEW_LINE>support.firePropertyChange(DiffController.PROP_DIFFERENCES, null, n... | LineNumber, EditableDiffView.this.askedLineLocation); |
862,272 | private IProductionMaterial createProductionMaterialIfEligible(final I_PP_Order_BOMLine ppOrderBOMLine) {<NEW_LINE>//<NEW_LINE>// Check if Product is matching the query<NEW_LINE>final I_M_Product queryProduct = query.getM_Product();<NEW_LINE>if (queryProduct != null && queryProduct.getM_Product_ID() != ppOrderBOMLine.g... | ofRepoId(ppOrderBOMLine.getM_Product_ID()); |
1,787,986 | public static Object value(String strValue, Field field) {<NEW_LINE>requireNonNull(field);<NEW_LINE>// if field is not primitive type<NEW_LINE>Type fieldType = field.getGenericType();<NEW_LINE>if (fieldType instanceof ParameterizedType) {<NEW_LINE>Class<?> clazz = (Class<?>) ((ParameterizedType) field.getGenericType())... | , field.getName())); |
112,000 | public static void paintCellEditorBorder(Graphics2D g2, Component c, Rectangle r, boolean hasFocus) {<NEW_LINE>g2 = <MASK><NEW_LINE>try {<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, MacUIUtil.USE_QUARTZ... | (Graphics2D) g2.create(); |
62,616 | private Entry prepareEntry(Entry e) {<NEW_LINE>Attribute attr = e.get(name);<NEW_LINE>if (attr != null) {<NEW_LINE>int start = (min != null) ? min : 0;<NEW_LINE>start = (start < attr.size()) ? start : attr.size() - 1;<NEW_LINE>int end = (max != null && max < attr.size() - 1) ? max : attr.size() - 1;<NEW_LINE>if (start ... | attr.getUpId() + ";range=0-*"); |
1,137,599 | private static void update(AwbBundle awbBundle, Map<String, BundleInfo> bundleInfoMap, AppVariantContext appVariantContext, String apkVersion, String baseVersion) throws DocumentException {<NEW_LINE>String artifactId = awbBundle.getResolvedCoordinates().getArtifactId();<NEW_LINE>BundleInfo bundleInfo = bundleInfoMap.ge... | getResolvedCoordinates().getVersion()); |
1,724,727 | public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Each of them is a 1/1 Spirit with flying in addition to its other types<NEW_LINE>for (UUID car... | addSubType(game, SubType.SPIRIT); |
75,664 | public CacheHandler createCache() {<NEW_LINE>ConcurrentMap<String, String> cache;<NEW_LINE>String mapDbKey;<NEW_LINE>// This loop will succeed because 2^64 cache maps couldn't exist in memory simultaneously<NEW_LINE>while (true) {<NEW_LINE>mapDbKey = Long.toString(mapDbKeyCounter.getAndIncrement());<NEW_LINE>try {<NEW_... | CacheHandler(this, cache, disposerAndCleaner); |
1,182,871 | public static ComplexNumber divide(ComplexNumber z1, ComplexNumber z2) {<NEW_LINE>ArgChecker.notNull(z1, "z1");<NEW_LINE>ArgChecker.notNull(z2, "z2");<NEW_LINE>double a = z1.getReal();<NEW_LINE>double b = z1.getImaginary();<NEW_LINE><MASK><NEW_LINE>double d = z2.getImaginary();<NEW_LINE>if (Math.abs(c) > Math.abs(d)) {... | double c = z2.getReal(); |
413,004 | private void registerSetLocationReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>BroadcastReceiver setLocationReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context, Intent intent) {<NEW_LINE>String packName = intent.getStringExtra(AIDL_PACKAGE_NAME);<NEW_L... | setLongitude(aLocation.getLongitude()); |
808,371 | public CypherShellTerminal buildJlineBasedTerminal() throws IOException {<NEW_LINE>var jLineTerminal = TerminalBuilder.builder();<NEW_LINE>jLineTerminal.nativeSignals(true);<NEW_LINE>if (in != null) {<NEW_LINE>jLineTerminal.streams(in, out);<NEW_LINE>}<NEW_LINE>if (dumb) {<NEW_LINE>var attributes = new Attributes();<NE... | .TYPE_DUMB).attributes(attributes); |
870,854 | private void save() {<NEW_LINE>saveTunerConfigurationModel();<NEW_LINE>SystemProperties props = SystemProperties.getInstance();<NEW_LINE>Path settingsFolder = props.getApplicationFolder("settings");<NEW_LINE>String settingsDefault = <MASK><NEW_LINE>String settingsCurrent = props.get("settings.currentFilename", settings... | props.get("settings.defaultFilename", "settings.xml"); |
1,702,687 | public static CallInstr decode(IRReaderDecoder d) {<NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LINE>System.out.println("decodeCall");<NEW_LINE>int callTypeOrdinal = d.decodeInt();<NEW_LINE>CallType <MASK><NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LINE>System.out.println("decodeCall - calltype: "... | callType = CallType.fromOrdinal(callTypeOrdinal); |
1,223,593 | private void parseStruct(Multimap<String, Node> map, Resource root, Resource r) {<NEW_LINE>if (!GraphUtils.exactlyOneProperty(r, VocabSecurity.pUser))<NEW_LINE>throw new AssemblerException(root, "Expected exactly one access:user property for " + r);<NEW_LINE>if (!GraphUtils.exactlyOneProperty(r, VocabSecurity.pGraphs))... | root, map, user, graphs); |
178,293 | public DescribeEnvironmentsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeEnvironmentsResult describeEnvironmentsResult = new DescribeEnvironmentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i... | ().unmarshall(context)); |
111,820 | public void updateMapableComponents() {<NEW_LINE>var cur = new HashSet<ArrayList<String>>();<NEW_LINE>if (myMappableResources == null)<NEW_LINE>myMappableResources = new HashMap<>();<NEW_LINE>else<NEW_LINE>cur.addAll(myMappableResources.keySet());<NEW_LINE>var BoardId <MASK><NEW_LINE>BoardId.add(currentUsedBoard.getBoa... | = new ArrayList<String>(); |
304,852 | public boolean accept(EdgeIteratorState edgeIterState) {<NEW_LINE>int base = edgeIterState.getBaseNode();<NEW_LINE>int adj = edgeIterState.getAdjNode();<NEW_LINE>if (!inCore) {<NEW_LINE>// always accept virtual edges, see #288<NEW_LINE>if (base >= maxNodes || adj >= maxNodes)<NEW_LINE>return true;<NEW_LINE>// minor per... | ) <= graph.getLevel(adj); |
857,205 | private static void analyzeSentence(String correctSentence, int j) throws IOException {<NEW_LINE>List<RuleMatch> matchesCorrect = lt.check(correctSentence);<NEW_LINE>if (containsID(matchesCorrect, ruleIds[j])) {<NEW_LINE>results[j][classifyTypes.indexOf("FP")]++;<NEW_LINE>System.out.println(ruleIds<MASK><NEW_LINE>} els... | [j] + " FP: " + correctSentence); |
1,056,264 | private ExecutorFactory visitLimit(Limit limit, PipelineFragment pipelineFragment) {<NEW_LINE>PipelineFragment childFragment = new PipelineFragment(defaultParallelism, limit.getInput());<NEW_LINE>childFragment.setContainLimit(true);<NEW_LINE>ExecutorFactory childExecutorFactory = visit(limit, limit.getInput(), childFra... | LocalExchangeConsumerFactory(localBufferExecutorFactory, localBufferManager, localBufferExchange); |
1,655,381 | public static DescribeParameterGroupResponse unmarshall(DescribeParameterGroupResponse describeParameterGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParameterGroupResponse.setRequestId(_ctx.stringValue("DescribeParameterGroupResponse.RequestId"));<NEW_LINE>List<ParameterGroupItem> parameterGroup = new Ar... | ("DescribeParameterGroupResponse.ParameterGroup[" + i + "].CreateTime")); |
66,295 | public Request<DeleteLogGroupRequest> marshall(DeleteLogGroupRequest deleteLogGroupRequest) {<NEW_LINE>if (deleteLogGroupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteLogGroupRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteLogGroupRequest> request = new DefaultRequ... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
387,254 | private static boolean isNewerVersion(StringBuilder text, String v2) {<NEW_LINE>try {<NEW_LINE>// System.out.println(text);<NEW_LINE>Matcher matcher = PATTERN_TAG.matcher(text);<NEW_LINE>if (matcher.find()) {<NEW_LINE>String v1 = matcher.group(1);<NEW_LINE>System.out.println(v1 + " " + v2);<NEW_LINE>if (v1.indexOf(".")... | .parseInt(arr2[i]); |
1,373,788 | private // -----------------//<NEW_LINE>void processDynamics(DynamicsInter dynamics) {<NEW_LINE>try {<NEW_LINE>logger.debug("Visiting {}", dynamics);<NEW_LINE>// No point to export incorrect dynamics<NEW_LINE>if (dynamics.getShape() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Direction direction = factory.createDir... | = current.note.getStaff(); |
164,281 | private void fillVerticesGPU(int[] particlesOffset) {<NEW_LINE>int tp = 0;<NEW_LINE>for (BillboardControllerRenderData data : renderData) {<NEW_LINE>FloatChannel scaleChannel = data.scaleChannel;<NEW_LINE>FloatChannel regionChannel = data.regionChannel;<NEW_LINE>FloatChannel positionChannel = data.positionChannel;<NEW_... | data[colorOffset + ParticleChannels.AlphaOffset]; |
779,888 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>if (request.getRestApiVersion() == RestApiVersion.V_7) {<NEW_LINE>// consume and ignore the type<NEW_LINE>request.param("type");<NEW_LINE>}<NEW_LINE>IndexRequest indexRequest = new IndexRequest(re... | , indexRequest.ifSeqNo())); |
647,088 | final UpdateLinkResult executeUpdateLink(UpdateLinkRequest updateLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,416,808 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>applyColorTheme();<NEW_LINE>setContentView(R.layout.activity_settings_filters);<NEW_LINE>setupAppBar(R.id.toolbar, R.string.settings_title_filter, true, true);<NEW_LINE>title = (EditText) findViewById(R.id.title);<NE... | (SettingValues.subredditFilters::add)); |
1,375,008 | public Query doToQuery(QueryShardContext context) {<NEW_LINE>MappedFieldType fieldType = context.fieldMapper(fieldName);<NEW_LINE>if (fieldType == null) {<NEW_LINE>if (ignoreUnmapped) {<NEW_LINE>return new MatchNoDocsQuery();<NEW_LINE>} else {<NEW_LINE>throw new QueryShardException(context, "failed to find geo_point fi... | GeoPoint luceneTopLeft = new GeoPoint(topLeft); |
670,863 | public static DeleteModelResponse unmarshall(DeleteModelResponse deleteModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteModelResponse.setRequestId(_ctx.stringValue("DeleteModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("DeleteModelResponse.Data.AppId"));<NEW... | attributes = _ctx.listMapValue("DeleteModelResponse.Data.Attributes"); |
236,523 | private void refill() throws IOException {<NEW_LINE>int newPosition = bufferLength - tokenStart;<NEW_LINE>if (tokenStart == 0) {<NEW_LINE>// token won't fit in buffer<NEW_LINE>if (buffer == null) {<NEW_LINE>// first time: alloc buffer<NEW_LINE>buffer = new char[2048];<NEW_LINE>} else if (bufferLength == buffer.length) ... | char[buffer.length * 2]; |
1,210,929 | public CopyProductResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CopyProductResult copyProductResult = new CopyProductResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
937,854 | protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {<NEW_LINE>final NSDictionary serialized = NSDictionary.dictionaryWithContentsOfFile(file.getAbsolute());<NEW_LINE>if (null == serialized) {<NEW_LINE>throw new LocalAccessDeniedException(String.format("Invalid bookmark ... | reader.setClass_forClassName(c, "HistoryCollection"); |
1,342,969 | public static ListBusinessResponse unmarshall(ListBusinessResponse listBusinessResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBusinessResponse.setRequestId(_ctx.stringValue("ListBusinessResponse.RequestId"));<NEW_LINE>listBusinessResponse.setHttpStatusCode(_ctx.integerValue("ListBusinessResponse.HttpStatusCode"));<... | (_ctx.integerValue("ListBusinessResponse.Data.TotalCount")); |
863,431 | public void init(Properties props) {<NEW_LINE>_port = (int) props.get(PORT);<NEW_LINE>_zkStr = props.getProperty(ZOOKEEPER_CONNECT);<NEW_LINE>_logDirPath = props.getProperty(LOG_DIRS);<NEW_LINE>// Create the ZK nodes for Kafka, if needed<NEW_LINE>int indexOfFirstSlash = _zkStr.indexOf('/');<NEW_LINE>if (indexOfFirstSla... | _adminClient = KafkaAdminClient.create(config); |
1,434,047 | public static void renderStars(VertexBuffer starVBO, PoseStack ms, Matrix4f projMat, float partialTicks, Runnable resetFog) {<NEW_LINE>FogRenderer.setupNoFog();<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>ShaderInstance shader = GameRenderer.getPositionShader();<NEW_LINE>float rain = 1.0F - mc.level.getRa... | .rotationDegrees(t * 3)); |
1,443,369 | public BytesBuffer writeVInt(int value) {<NEW_LINE>// NOTE: negative numbers are not compressed<NEW_LINE>if (value > 0x0fffffff || value < 0) {<NEW_LINE>this.write(0x80 | ((value >>> 28) & 0x7f));<NEW_LINE>}<NEW_LINE>if (value > 0x1fffff || value < 0) {<NEW_LINE>this.write(0x80 | ((value >>> 21) & 0x7f));<NEW_LINE>}<NE... | >> 7) & 0x7f)); |
1,481,020 | public PolicyVersion unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PolicyVersion policyVersion = new PolicyVersion();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | "unixTimestamp").unmarshall(context)); |
1,292,987 | public static BArray slice(BArray arr, long startIndex, long endIndex) {<NEW_LINE>int size = arr.size();<NEW_LINE>if (startIndex < 0) {<NEW_LINE>throw BLangExceptionHelper.getRuntimeException(RuntimeErrors.ARRAY_INDEX_OUT_OF_RANGE, startIndex, size);<NEW_LINE>}<NEW_LINE>if (endIndex > size) {<NEW_LINE>throw BLangExcept... | RuntimeErrors.ARRAY_INDEX_OUT_OF_RANGE, sliceSize, size); |
568,505 | public void process(MessageTree tree) {<NEW_LINE>String domain = tree.getDomain();<NEW_LINE>MatrixReport report = m_reportManager.getHourlyReport(getStartTime(), domain, true);<NEW_LINE>Message message = tree.getMessage();<NEW_LINE>if (message instanceof Transaction) {<NEW_LINE>String messageType = message.getType();<N... | setUrl(tree.getMessageId()); |
1,216,024 | public AlertManagerDefinitionDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AlertManagerDefinitionDescription alertManagerDefinitionDescription = new AlertManagerDefinitionDescription();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | int originalDepth = context.getCurrentDepth(); |
1,190,784 | public void markClassesInInlineRanges(J9JITExceptionTablePointer methodMetaData, WalkState walkState) throws CorruptDataException {<NEW_LINE>J9MethodPointer savedMethod = walkState.method;<NEW_LINE>J9ConstantPoolPointer savedCP = walkState.constantPool;<NEW_LINE>U32 numCallSites = getNumInlinedCallSites(methodMetaData)... | VoidPointer.cast(inlinedCallSite))); |
1,597,697 | final EnableInsightRulesResult executeEnableInsightRules(EnableInsightRulesRequest enableInsightRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableInsightRulesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<EnableInsightRu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,339,185 | public static String createUrl(String urlScheme, String host, String port, String path, String contextPath) {<NEW_LINE>if (path == null) {<NEW_LINE>path = "";<NEW_LINE>}<NEW_LINE>if (host != null) {<NEW_LINE>if (port != null) {<NEW_LINE>if (!path.startsWith("/")) {<NEW_LINE>path = "/" + path;<NEW_LINE>}<NEW_LINE>if (St... | + host + ":" + port + path; |
713,910 | public void marshall(S3DestinationConfiguration s3DestinationConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (s3DestinationConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(s3Dest... | s3DestinationConfiguration.getPrefix(), PREFIX_BINDING); |
362,412 | private static Subnet create(@Nullable @JsonProperty(JSON_KEY_CIDR_BLOCK) Prefix cidrBlock, @Nullable @JsonProperty(JSON_KEY_OWNER_ID) String ownerId, @Nullable @JsonProperty(JSON_KEY_SUBNET_ARN) String subnetArn, @Nullable @JsonProperty(JSON_KEY_SUBNET_ID) String subnetId, @Nullable @JsonProperty(JSON_KEY_VPC_ID) Stri... | checkNonNull(subnetArn, JSON_KEY_SUBNET_ARN, "Subnet"); |
1,653,906 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@Name('ctx') @public create context CtxPartitionWCorrTerm as " + "partition by theString from SupportBean as sb " + "terminated by SupportBean(intPrimitive=sb.intPrimitive)";<NEW_LINE>env.compileDepl... | { "A", 10 + 2 }); |
1,461,778 | private void readFieldFromBuffer(int index, Field field, Object obj) {<NEW_LINE>Class<?> fieldType = field.getType();<NEW_LINE>if (fieldType.isPrimitive()) {<NEW_LINE>try {<NEW_LINE>if (fieldType == int.class) {<NEW_LINE>field.setInt(<MASK><NEW_LINE>} else if (fieldType == long.class) {<NEW_LINE>field.setLong(obj, buff... | obj, buffer.getInt()); |
1,000,115 | public Map<String, Object> populate(Map<String, Object> json, Map<String, Object> context) {<NEW_LINE>if (json != null && json.get("id") != null) {<NEW_LINE>Long id = (Long) json.get("id");<NEW_LINE>if (id != null) {<NEW_LINE>Employee employee = super.find(id);<NEW_LINE>AppBaseService appBaseService = Beans.get(AppBase... | getUser().getActiveCompany()); |
1,638,908 | public StartSessionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartSessionResult startSessionResult = new StartSessionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | int originalDepth = context.getCurrentDepth(); |
1,585,014 | public static DescribeDataFlowTasksResponse unmarshall(DescribeDataFlowTasksResponse describeDataFlowTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDataFlowTasksResponse.setRequestId(_ctx.stringValue("DescribeDataFlowTasksResponse.RequestId"));<NEW_LINE>describeDataFlowTasksResponse.setNextToken(_ctx.strin... | ("DescribeDataFlowTasksResponse.TaskInfo[" + i + "].FilesystemId")); |
1,486,741 | final PutObjectResult executePutObject(PutObjectRequest putObjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putObjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
150,117 | public static void printRules(List<Rule> rules, PrintWriter writer) {<NEW_LINE>if (writer == null)<NEW_LINE>System.out.println("Rules:");<NEW_LINE>else<NEW_LINE>writer.println("Rules:");<NEW_LINE>List<String> l = new ArrayList<String>();<NEW_LINE>Map<String, List> m = new HashMap<String, List>();<NEW_LINE>Map<String, L... | get(r.getNT()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.