idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
181,286
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.jvm.j9.dump.indexsupport.IParserNode#nodeToPushAfterStarting(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)<NEW_LINE>*/<NEW_LINE>public IParserNode nodeToPushAfterStarting(String uri, String localName, String qName, Attributes attributes) {<NEW_LIN...
= new NodeArrayClass(_runtime, attributes);
764,090
// The complex case when we have to peek at the Truffle stacktrace to know whether this<NEW_LINE>// traceback segment is not empty<NEW_LINE>// This happens when:<NEW_LINE>// 1) On the top-level (we don't have the catching frame)<NEW_LINE>// 2) On the C boundary (we don't want to show the catching frame)<NEW_LINE>// 3) ...
.getException().shouldHideLocation();
398,171
private void flushStripe(FlushReason flushReason) throws IOException {<NEW_LINE>List<OrcDataOutput> <MASK><NEW_LINE>long stripeStartOffset = orcDataSink.size();<NEW_LINE>// add header to first stripe (this is not required but nice to have)<NEW_LINE>if (closedStripes.isEmpty()) {<NEW_LINE>outputData.add(createDataOutput...
outputData = new ArrayList<>();
315,160
public void finalizeMerge(CommandContext commandContext, String deploymentId, String newTenantId) {<NEW_LINE>List<ProcessDefinition> processDefinitions = new ProcessDefinitionQueryImpl().<MASK><NEW_LINE>ProcessDefinitionEntityManager processDefinitionEntityManager = CommandContextUtil.getProcessDefinitionEntityManager(...
deploymentId(deploymentId).list();
1,212,249
public CssConstruct build(final CssToken start, final CssTokenIterator iter, final Predicate<CssToken> limit, final Predicate<CssConstruct> permitted) {<NEW_LINE>CssConstruct.Type type = genericTypeMappings.get(start.type);<NEW_LINE>CssConstruct cc;<NEW_LINE>switch(type) {<NEW_LINE>case KEYWORD:<NEW_LINE>cc = new CssKe...
apply(cc) ? cc : null;
374,735
public void onLoad() {<NEW_LINE>try {<NEW_LINE>ProtocolConstants.class.getField("MINECRAFT_1_18");<NEW_LINE>} catch (NoSuchFieldException e) {<NEW_LINE>getLogger().warning(" / \\");<NEW_LINE>getLogger().warning(" / \\");<NEW_LINE>getLogger().warning(" / | \\");<NEW_LINE>getLogger().warning(" / | \...
this, new BungeeCommand(commandHandler));
894,518
public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (source != null) {<NEW_LINE>builder.field(TransformConfig.SOURCE.getPreferredName(), source);<NEW_LINE>}<NEW_LINE>if (dest != null) {<NEW_LINE>builder.field(TransformCon...
TransformConfig.SYNC.getPreferredName());
1,755,352
final UpdateGroupResult executeUpdateGroup(UpdateGroupRequest updateGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
1,360,417
private void checkMousePosition(int x, int y) {<NEW_LINE>if (MouseDevice.isNotUseable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PointerInfo mp = MouseInfo.getPointerInfo();<NEW_LINE>Point actualPos;<NEW_LINE>if (mp == null) {<NEW_LINE>Debug.error("RobotDesktop: checkMousePosition: MouseInfo.getPointerInfo invalid after...
), new Location(actualPos));
202,124
public DynamicMessage parse(ByteBuffer bytes) {<NEW_LINE>// ignore first \0 byte<NEW_LINE>bytes.get();<NEW_LINE>// extract schema registry id<NEW_LINE>int id = bytes.getInt();<NEW_LINE>// ignore \0 byte before PB message<NEW_LINE>bytes.get();<NEW_LINE>int length = bytes.limit() - 2 - 4;<NEW_LINE>Descriptors.Descriptor ...
get(rawMessage, 0, length);
260,590
public static DescribeCacheAnalysisReportListResponse unmarshall(DescribeCacheAnalysisReportListResponse describeCacheAnalysisReportListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCacheAnalysisReportListResponse.setRequestId(_ctx.stringValue("DescribeCacheAnalysisReportListResponse.RequestId"));<NEW_LINE>des...
+ "].Tasks[" + j + "].Status"));
21,220
public ComponentSelector removeTags(String... tags) {<NEW_LINE>for (Component c : this) {<NEW_LINE>String existing = (String) c.getClientProperty(PROPERTY_TAG);<NEW_LINE>if (existing == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Set<String> existingSet = new HashSet<String>();<NEW_LINE>String[] existingStrs = <MASK...
Util.split(" ", existing);
203,323
public void drawSelection(Player player, LocalSession session, @Arg(desc = "The new draw selection state", def = "") Boolean drawSelection) throws WorldEditException {<NEW_LINE>if (!WorldEdit.getInstance().getConfiguration().serverSideCUI) {<NEW_LINE>throw new AuthorizationException(TranslatableComponent.of("worldedit....
boolean useServerCui = session.shouldUseServerCUI();
1,737,069
private void addList(Collection<?> args) {<NEW_LINE>for (Object o : args) {<NEW_LINE>if (o.getClass() == String.class) {<NEW_LINE>addInt(3);<NEW_LINE>String s = (String) o;<NEW_LINE>addInt(s.length());<NEW_LINE>addString(s);<NEW_LINE>} else if (o.getClass() == Boolean.class) {<NEW_LINE>addInt(2);<NEW_LINE>addByte(((Boo...
addInt(l.size());
1,672,892
private static BlockStatement generateCopyRecordToVectorBatchBody(IntInnerType[] types) {<NEW_LINE>int size = types.length;<NEW_LINE>ArrayList<Statement> statements = new ArrayList<>(size);<NEW_LINE>for (int varIndex = 0; varIndex < size; varIndex++) {<NEW_LINE>IntInnerType intPair = types[varIndex];<NEW_LINE>int colum...
, rowId, returnVariable))));
874,164
public void writeCommonWords(File commonFile, int totalWords) throws IOException {<NEW_LINE>PrintWriter out = new PrintWriter(commonFile, Charset.<MASK><NEW_LINE>Alphabet currentAlphabet = getDataAlphabet();<NEW_LINE>IDSorter[] sortedWords = new IDSorter[currentAlphabet.size()];<NEW_LINE>for (int type = 0; type < curre...
defaultCharset().name());
265,157
private Duration determineSyncCommitTimeout() {<NEW_LINE>Duration syncTimeout = this.containerProperties.getSyncCommitTimeout();<NEW_LINE>if (syncTimeout != null) {<NEW_LINE>return syncTimeout;<NEW_LINE>} else {<NEW_LINE>Object timeout = this.containerProperties.getKafkaConsumerProperties().get(ConsumerConfig.DEFAULT_A...
parseLong((String) timeout));
1,148,341
protected boolean isIPv4(final char firstChar, final String s) {<NEW_LINE>// Quick check before using Regular Expression<NEW_LINE>// 1) At least 7 characters<NEW_LINE>// 2) 1st character must be a digit from '0' - '9'<NEW_LINE>// 3) Must contain at least 1 . (period)<NEW_LINE>if (s.length() < 7 || !isLatinDigit(firstCh...
matcher = IPV4_PATTERN.matcher(s);
1,169,964
public void sendRequest(final Exchange exchange) {<NEW_LINE>// for observe request.<NEW_LINE><MASK><NEW_LINE>if (request.isObserve() && 0 == exchange.getFailedTransmissionCount()) {<NEW_LINE>if (exchangeStore.assignMessageId(request) != Message.NONE) {<NEW_LINE>registerObserve(request);<NEW_LINE>} else {<NEW_LINE>LOGGE...
Request request = exchange.getCurrentRequest();
39,175
public static void executeCommand(String[] args) throws IOException {<NEW_LINE>OptionParser parser = getParser();<NEW_LINE>// declare parameters<NEW_LINE>List<String> jobIds = null;<NEW_LINE>Integer nodeId = null;<NEW_LINE>String url = null;<NEW_LINE>Boolean confirm = false;<NEW_LINE>// parse command-line input<NEW_LIN...
options.valueOf(AdminParserUtils.OPT_NODE);
10,015
final AcceptTransitGatewayVpcAttachmentResult executeAcceptTransitGatewayVpcAttachment(AcceptTransitGatewayVpcAttachmentRequest acceptTransitGatewayVpcAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptTransitGatewayVpcAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
942,831
public SupportAccess registerGrant(DeploymentId deployment, String by, X509Certificate certificate) {<NEW_LINE>try (Lock lock = controller.curator().lockSupportAccess(deployment)) {<NEW_LINE>var now = controller.clock().instant();<NEW_LINE>SupportAccess supportAccess = forDeployment(deployment);<NEW_LINE>if (certificat...
"Support access is not currently allowed by " + deployment.toUserFriendlyString());
1,227,158
public Node visit(final MethodCallExpr n, final A arg) {<NEW_LINE>if (n.getScope() != null) {<NEW_LINE>n.setScope((Expression) n.getScope().accept(this, arg));<NEW_LINE>}<NEW_LINE>final List<Type<MASK><NEW_LINE>if (typeArgs != null) {<NEW_LINE>for (int i = 0; i < typeArgs.size(); i++) {<NEW_LINE>typeArgs.set(i, (Type) ...
> typeArgs = n.getTypeArgs();
893,973
boolean updateCompactionProgress(String partitionPath, String fieldName, long progressTime) {<NEW_LINE>try {<NEW_LINE>// load existing progress checkpoint.<NEW_LINE>Map<String, Long> checkpoints = getCompactionProgress(partitionPath);<NEW_LINE>// Ensure we don't downgrade progress already recorded.<NEW_LINE>if (progres...
json = objectMapper.writeValueAsString(checkpoints);
1,011,966
protected <T extends Broadcaster> T createBroadcaster(Class<T> c, Object id) throws BroadcasterCreationException {<NEW_LINE>try {<NEW_LINE>T b = config.framework(<MASK><NEW_LINE>b.initialize(id.toString(), legacyBroadcasterURI, config);<NEW_LINE>b.setSuspendPolicy(defaultPolicyInteger, defaultPolicy);<NEW_LINE>if (b.ge...
).newClassInstance(c, c);
969,782
public String createNewPolicyForResourceSet(@PathVariable(value = "rsid") Long rsid, @RequestBody String jsonString, Model m, Authentication auth) {<NEW_LINE>ResourceSet rs = resourceSetService.getById(rsid);<NEW_LINE>if (rs == null) {<NEW_LINE>m.addAttribute(HttpCodeView.CODE, HttpStatus.NOT_FOUND);<NEW_LINE>return Ht...
logger.warn("Unexpected result trying to add a new policy object: " + newPolicies);
1,283,844
public void testDefaultContextForAllContextTypes(String contextSvcName, PrintWriter out) throws Exception {<NEW_LINE>Callable<?> javaCompLookup = new Callable<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object call() throws Exception {<NEW_LINE>InitialContext initialContext = new InitialContext();<NEW_LINE...
Object result = javaCompLookup.call();
762,511
public static int compareGeneric(Property prop, Object o1, Object o2) {<NEW_LINE>if (o1 == null && o2 == null)<NEW_LINE>return 0;<NEW_LINE>if (o1 == null)<NEW_LINE>return -1;<NEW_LINE>if (o2 == null)<NEW_LINE>return 1;<NEW_LINE>int type = prop.getElementType();<NEW_LINE>if (type == Property.TYPE_INTEGER)<NEW_LINE>retur...
) o1, (Object) o2);
75,286
final ListManagedSchemaArnsResult executeListManagedSchemaArns(ListManagedSchemaArnsRequest listManagedSchemaArnsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listManagedSchemaArnsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new ListManagedSchemaArnsResultJsonUnmarshaller());
64,593
private static void tryAssertionFromClauseBeginBodyEnd(RegressionEnvironment env, boolean soda) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@name('split') @public on OrderBean " + "insert into BeginEvent select orderdetail.orderId as orderId " + "insert into OrderItem select * from [se...
{ { "PO200902", "B001" } });
333,072
private void handler(final Object serviceBean) {<NEW_LINE>Class<?> clazz;<NEW_LINE>try {<NEW_LINE>clazz = serviceBean.getClass();<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOG.error("failed to get grpc target class", e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (AopUtils.isAopProxy(serviceBean)) {<NEW_LINE>clazz = AopUt...
("SERVICE_NAME field not found: %s", classes), e);
838,613
void zookeeperStatefulSetDescription(StatefulSet sts) {<NEW_LINE>Storage oldStorage = getOldStorage(sts);<NEW_LINE>if (sts != null && sts.getSpec() != null) {<NEW_LINE>this.zkCurrentReplicas = sts.getSpec().getReplicas();<NEW_LINE>}<NEW_LINE>this.zkCluster = ZookeeperCluster.fromCrd(reconciliation, kafkaAssembly, versi...
).setConfigOption("ssl.protocol", "TLS");
1,073,850
protected JComponent buildContent() {<NEW_LINE>JPanel contentPanel = new JPanel(new MigLayout("fill, wrap 1"));<NEW_LINE>contentPanel.setBackground(COLOR_TAB_CONTENT_BACKGROUND);<NEW_LINE>contentPanel.add(getLabel(SECTION_HEADER_FONT, line1));<NEW_LINE>JPanel openPanel = new JPanel(new MigLayout("fill"));<NEW_LINE>open...
JPanel(new MigLayout("fill"));
1,757,109
private static ArithNode convertFieldArith(MethodNode mth, InsnNode insn) {<NEW_LINE>InsnArg arg = insn.getArg(0);<NEW_LINE>if (!arg.isInsnWrap()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>InsnNode wrap = ((InsnWrapArg) arg).getWrapInsn();<NEW_LINE>InsnType wrapType = wrap.getType();<NEW_LINE>if (wrapType != InsnType...
, InsnArg.wrapArg(concat));
228,946
private static void printDetails(String name, Node node, int level) {<NEW_LINE>FeatureDescriptor feat = node.descriptor;<NEW_LINE>if (feat == null) {<NEW_LINE>System.out.println(" "<MASK><NEW_LINE>} else {<NEW_LINE>String prefix = " ".repeat(level * 2);<NEW_LINE>// start on index 10 or a tab spaces after tree<NEW_LINE...
.repeat(level) + name);
364,912
public SubjectAreaOMASAPIResponse<ProjectScope> createProjectScope(String serverName, String userId, ProjectScope projectScope) {<NEW_LINE>String restAPIName = "createProjectScope";<NEW_LINE>RESTCallToken token = restCallLogger.<MASK><NEW_LINE>SubjectAreaOMASAPIResponse<ProjectScope> response = new SubjectAreaOMASAPIRe...
logRESTCall(serverName, userId, restAPIName);
931,263
private Tuple2<Process, EBPFProcessDownstream> prepareReportHostProcess(EBPFHostProcessMetadata hostProcess, String agentId) {<NEW_LINE><MASK><NEW_LINE>// entity<NEW_LINE>process.setServiceName(namingControl.formatServiceName(hostProcess.getEntity().getServiceName()));<NEW_LINE>process.setServiceNormal(true);<NEW_LINE>...
final Process process = new Process();
1,587,349
final CreateOutpostResult executeCreateOutpost(CreateOutpostRequest createOutpostRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOutpostRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,754,571
public static int mincross_(ST_Agraph_s g, int startpass, int endpass, boolean doBalance) {<NEW_LINE>ENTERING("7lrk2rxqnwwdau8cx85oqkpmv", "mincross_");<NEW_LINE>try {<NEW_LINE>int maxthispass = 0, iter, trying, pass;<NEW_LINE>int cur_cross, best_cross;<NEW_LINE>if (startpass > 1) {<NEW_LINE>cur_cross = best_cross = nc...
Z.z().MaxIter);
1,551,975
public static void vertical9(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[...
(dataSrc[indexSrc]) * k7;
921,469
private void inspectCloseChords(List<AbstractChordInter> stdChords) {<NEW_LINE>final int maxSlotDx = useWideSlots ? params.maxSlotDxHigh : params.maxSlotDxLow;<NEW_LINE>final MeasureStack stack = measure.getStack();<NEW_LINE>for (int i = 0; i < stdChords.size(); i++) {<NEW_LINE>final AbstractChordInter ch1 = stdChords....
Math.abs(x1 - x2);
101,280
private boolean validateFields() {<NEW_LINE>String tname = teamnameField.getText();<NEW_LINE>if (StringUtils.isEmpty(tname)) {<NEW_LINE>error("Please enter a team name!");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean rename = false;<NEW_LINE>// verify teamname uniqueness on create<NEW_LINE>if (isCreate) {<NEW_LIN...
&& !teamname.equalsIgnoreCase(tname);
1,153,335
public Version putVersionedWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) throws ObsoleteVersionException {<NEW_LINE>validateTimeout(requestWrapper.getRoutingTimeoutInMs());<NEW_LINE>for (int attempts = 0; attempts < this.metadataRefreshAttempts; attempts++) {<NEW_LINE>try {<NEW_LINE>String keyHexStr...
.getValue().getVersion();
1,824,695
public void generateEnd(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()) ...
String bufferName = context.createTemporaryVariable();
399,232
public static synchronized Note buildFromBase64EncodedData(String noteId, String base64FullNoteData) {<NEW_LINE>Note note = null;<NEW_LINE>if (base64FullNoteData == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[] b64DecodedPayload = Base64.decode(base64FullNoteData, Base64.DEFAULT);<NEW_LINE>// Decompress the ...
resultLength = decompresser.inflate(result);
1,134,373
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select * from SupportBean#length(5) output every 5 events order by intPrimitive limit 2 offset 2";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>String[] fields = "theString".split(",");<NEW_LINE>env.assertPropsPerRowIterator("s0", fields, null...
(epl).addListener("s0");
1,517,824
public SpotFleetRequestConfig unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SpotFleetRequestConfig spotFleetRequestConfig = new SpotFleetRequestConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
().unmarshall(context));
1,791,262
private int doSend(BaseMessage message, BrokerGroupInfo brokerGroup) {<NEW_LINE>final SettableFuture<Integer> sendFuture = SettableFuture.create();<NEW_LINE>final SendMessageBack.Callback callback = new SendMessageBack.Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void success() {<NEW_LINE>sendFuture.set(SE...
DELAY_PRODUCER, message.getSubject());
1,647,423
private ResolvedType inferReturnType(EntityContext context, HandlerMethod handler) {<NEW_LINE>TypeResolver resolver = context.getTypeResolver();<NEW_LINE>HandlerMethodResolver methodResolver = new HandlerMethodResolver(resolver);<NEW_LINE>RepositoryMetadata repository = context.getRepositoryMetadata();<NEW_LINE>Resolve...
resolve(EntityModel.class, domainReturnType);
539,160
private static void decodeOtherProperties(JmsDestination newDest, byte[] msgForm, int offset) throws JMSException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "decodeOtherProperties", new Object[] { newDest, msgForm, offset });<NEW_LINE>PropertyInputStream stream ...
longName = reverseMap.get(shortName);
1,327,545
protected void memberAdd(final UUID serviceId) {<NEW_LINE>if (serviceId == null)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>if (members.add(serviceId)) {<NEW_LINE>// service was added as quorum member.<NEW_LINE>membersChange.signalAll();<NEW_LINE>final QuorumMember<S> c...
"serviceId=" + serviceId.toString());
773,557
// not used<NEW_LINE>@Deprecated<NEW_LINE>public void trimStackTrace(Member target) {<NEW_LINE>Throwable t = new Throwable();<NEW_LINE>StackTraceElement[] origStackTrace = cause.getStackTrace();<NEW_LINE>StackTraceElement[] currentStackTrace = t.getStackTrace();<NEW_LINE>int skip = 0;<NEW_LINE>for (int i = 1; i <= orig...
String methodName = target.getName();
335,119
private static void quickSort1(long[] x, int off, int len, LongComparator comp) {<NEW_LINE>// Insertion sort on smallest arrays<NEW_LINE>if (len < SMALL) {<NEW_LINE>for (int i = off; i < len + off; i++) for (int j = i; j > off && comp.compare(x[j - 1], x[j]) > 0; j--) swap(x, j, j - 1);<NEW_LINE>return;<NEW_LINE>}<NEW_...
x, b++, c--);
1,134,047
protected void draw(final Canvas pCanvas, final Object pParameter) {<NEW_LINE><MASK><NEW_LINE>final int kilometers = (int) Math.round(meters / 1000);<NEW_LINE>final boolean checked = meters < mAnimatedMetersSoFar || (kilometers == 10 && mAnimationEnded);<NEW_LINE>final Paint textPaint = checked ? textPaint2 : textPaint...
final double meters = (double) pParameter;
399,671
public static Set<String> findDependencies(ComponentInfo start, boolean closure, Boolean inst, Set<ComponentInfo> result, ComponentQuery q) {<NEW_LINE>Set<String> missing = new HashSet<>();<NEW_LINE>Set<String> known = new HashSet<>();<NEW_LINE>Deque<ComponentInfo> buffer = new ArrayDeque<>();<NEW_LINE>buffer.add(start...
Version.Match.Type.COMPATIBLE);
1,209,459
public void prepareOperation(ExtractAskMode mode) throws SevenZipException {<NEW_LINE>final Date createTime = (Date) inArchive.getProperty(inArchiveItemIndex, PropID.CREATION_TIME);<NEW_LINE>final Date accessTime = (Date) inArchive.<MASK><NEW_LINE>final Date writeTime = (Date) inArchive.getProperty(inArchiveItemIndex, ...
getProperty(inArchiveItemIndex, PropID.LAST_ACCESS_TIME);
1,242,467
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.websvc.core.jaxws.policies.JaxWsPoliciesCodeGenerator#generatePolicyAccessCode(java.util.Set, org.netbeans.modules.websvc.api.jaxws.project.config.Client, java.lang.StringBuilder)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String generatePolicyAccessCode(Set<Str...
generator.generatePolicyAccessCode(builder, client);
1,436,416
public boolean onPreferenceStartFragment(PreferenceFragmentCompat preferenceFragmentCompat, Preference preference) {<NEW_LINE>FragmentTransaction ft = getSupportFragmentManager().beginTransaction();<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>args.putString(PreferenceFragmentCompat.ARG_PREFERENCE_ROOT, preference.get...
addToBackStack(preference.getKey());
1,422,410
private static Map<String, MetadataFieldMapper.TypeParser> initBuiltInMetadataMappers() {<NEW_LINE>Map<String, MetadataFieldMapper.TypeParser> builtInMetadataMappers;<NEW_LINE>// Use a LinkedHashMap for metadataMappers because iteration order matters<NEW_LINE>builtInMetadataMappers = new LinkedHashMap<>();<NEW_LINE>// ...
, new HostFieldMapper.TypeParser());
1,056,551
public void removeArgFromOp(String varName, DifferentialFunction function) {<NEW_LINE>val args = function.args();<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>if (args[i].name().equals(varName)) {<NEW_LINE>List<String> reverseArgs = ops.get(function.<MASK><NEW_LINE>val newArgs = new ArrayList<String>(args....
getOwnName()).getInputsToOp();
1,708,282
void restartService(@NonNull final Intent intent, final boolean scanForBootloader) {<NEW_LINE>String newAddress = null;<NEW_LINE>if (scanForBootloader) {<NEW_LINE>mService.sendLogBroadcast(DfuBaseService.LOG_LEVEL_VERBOSE, "Scanning for the DFU Bootloader...");<NEW_LINE>newAddress = BootloaderScannerFactory.getScanner(...
DfuBaseService.LOG_LEVEL_INFO, "DFU Bootloader found with address " + newAddress);
852,596
public static <A, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12> Arguments12Combining<A, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12> combine(ValueValidator<? super A, ? extends R1> v1, ValueValidator<? super A, ? extends R2> v2, ValueValidator<? super A, ? extends R3> v3, ValueValidator<? super A, ? extends ...
v9, v10, v11, v12);
1,347,981
final ListVirtualMFADevicesResult executeListVirtualMFADevices(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVirtualMFADevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,246,488
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>assert delta != null;<NEW_LINE>final Vector v = getExpr().getSingle(e);<NEW_LINE>if (v == null)<NEW_LINE>return;<NEW_LINE>double n = ((Number) delta[0]).doubleValue();<NEW_LINE>switch(mode) {<NEW_LINE>case REMOVE:<NEW_LINE>n = -n;<NEW_LIN...
v.getY() + n);
656,244
public void paint(JComponent c, Graphics g, PaintContext context, Rectangle clip, FieldBackgroundColorManager map, RowColLocation cursorLoc, int rowHeight) {<NEW_LINE>g.setColor(Color.LIGHT_GRAY);<NEW_LINE>// draw the vertical lines to the left of the data (these are shown when there are vertical<NEW_LINE>// bars drawn...
+ (indentLevel * fieldWidth) + insetSpace;
1,597,673
private void applyToEnvironment(ConfigDataEnvironmentContributors contributors, ConfigDataActivationContext activationContext, Set<ConfigDataLocation> loadedLocations, Set<ConfigDataLocation> optionalLocations) {<NEW_LINE>checkForInvalidProperties(contributors);<NEW_LINE>checkMandatoryLocations(contributors, activation...
, profiles.getDefault()));
140,645
private static void test() {<NEW_LINE>// mwpm is expected to be between nodes: 0 & 5, 1 & 2, 3 & 4<NEW_LINE>Double[][] costMatrix = { { 0.0, 9.0, 9.0, 9.0, 9.0, 1.0 }, { 9.0, 0.0, 1.0, 9.0, 9.0, 9.0 }, { 9.0, 1.0, 0.0, 9.0, 9.0, 9.0 }, { 9.0, 9.0, 9.0, 0.0, 1.0, 9.0 }, { 9.0, 9.0, 9.0, 1.0, 0.0, 9.0 }, { 1.0, 9.0, 9.0,...
out.printf("Found MWPM of: %.3f\n", cost);
1,546,855
protected void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>g2d.setColor(new Color(162, 162, 162));<NEW_LINE>g2d.drawRect(0, 0, width, 12);<NEW_LINE>g2d.setPaint(new GradientPaint(0, 0, COL_GRADIENT_START, 0, 12, COL_...
imgWidth, height - 13, this);
1,296,884
public void doUpdateVisitedHistory(WebView view, String url, boolean isReload) {<NEW_LINE>WebView.HitTestResult hitResult = null;<NEW_LINE>if (null != mWebView) {<NEW_LINE>hitResult = mWebView.getHitTestResult();<NEW_LINE>}<NEW_LINE>String extraRes = null;<NEW_LINE>if (null != mWebView && null != hitResult) {<NEW_LINE>...
URL extraURL = new URL(extraRes);
1,661,863
Stream<SimilaritySummaryResult> writeAndAggregateResults(Stream<SimilarityResult> stream, int length, int sourceIdsLength, int targetIdsLength, ProcedureConfiguration configuration, boolean write, String writeRelationshipType, String writeProperty, Computations computations) {<NEW_LINE>long writeBatchSize = getWriteBat...
DoubleHistogram histogram = new DoubleHistogram(5);
1,726,073
public Status insert(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>Object rowKey = makeRowKey(key);<NEW_LINE>String containerKey = makeContainerKey(key);<NEW_LINE>final Container<Object, Row> container = store.getContainer(containerKey);<NEW_LINE>if (container == null) {<NEW_LINE...
"Exception: " + e.getMessage());
161,791
private void updateStatistics() {<NEW_LINE>ProjectMetrics projectMetrics = new ProjectMetrics(getModelItem());<NEW_LINE>metrics.setMetric("File Path", getModelItem().getPath());<NEW_LINE>Set<String> newNames = new HashSet<String>();<NEW_LINE>boolean rebuilt = false;<NEW_LINE>for (Interface iface : getModelItem().getInt...
getModelItem().getTestSuiteCount());
1,313,454
private List<TaskGroup> buildTaskGroups() {<NEW_LINE>Map<TaskId, TaskGroup.Builder> taskGroups = new HashMap<>();<NEW_LINE>List<TaskGroup.Builder> topLevelTasks = new ArrayList<>();<NEW_LINE>// First populate all tasks<NEW_LINE>for (TaskInfo taskInfo : this.tasks) {<NEW_LINE>taskGroups.put(taskInfo.getTaskId()<MASK><NE...
, TaskGroup.builder(taskInfo));
1,725,272
public Router socketHandler(Handler<SockJSSocket> sockHandler) {<NEW_LINE>router.route("/").useNormalizedPath(false).handler(rc -> {<NEW_LINE>if (LOG.isTraceEnabled())<NEW_LINE>LOG.trace("Returning welcome response");<NEW_LINE>rc.response().putHeader(HttpHeaders.CONTENT_TYPE, "text/plain; charset=UTF-8").end("Welcome t...
enabledTransports = new HashSet<>();
1,557,543
public void bindView(View view, Context context, Cursor cursor) {<NEW_LINE>int id = cursor.getInt(cursor.getColumnIndex<MASK><NEW_LINE>final String where = OnionServiceContentProvider.OnionService._ID + "=" + id;<NEW_LINE>TextView localPort = view.findViewById(R.id.hs_port);<NEW_LINE>localPort.setText(String.format("%s...
(OnionServiceContentProvider.OnionService._ID));
1,552,684
private void processProvideCall(NodeTraversal t, Node call, Node parent) {<NEW_LINE>checkState(call.isCall());<NEW_LINE>if (!verifyOnlyArgumentIsString(call)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node left = call.getFirstChild();<NEW_LINE>Node arg = left.getNext();<NEW_LINE><MASK><NEW_LINE>JSDocInfo info = NodeUtil.g...
String ns = arg.getString();
1,722,346
public DataBuffer create(ByteBuffer underlyingBuffer, DataType dataType, long length, long offset) {<NEW_LINE>switch(dataType) {<NEW_LINE>case DOUBLE:<NEW_LINE>return new DoubleBuffer(underlyingBuffer, dataType, length, offset);<NEW_LINE>case FLOAT:<NEW_LINE>return new FloatBuffer(underlyingBuffer, dataType, length, of...
underlyingBuffer, dataType, length, offset);
1,259,989
static Object newAdapterInstance(HostContext hostContext, Class<?> clazz, Object obj) throws IllegalArgumentException {<NEW_LINE>if (TruffleOptions.AOT) {<NEW_LINE>throw HostEngineException.unsupported(hostContext.access, "Unsupported target type.");<NEW_LINE>}<NEW_LINE>HostClassDesc classDesc = HostClassDesc.forClass(...
= new Object[] { obj };
117,474
public void marshall(GameSessionPlacement gameSessionPlacement, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gameSessionPlacement == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gameSessionPlacement.get...
gameSessionPlacement.getGameSessionRegion(), GAMESESSIONREGION_BINDING);
804,004
public static AddMediaResponse unmarshall(AddMediaResponse addMediaResponse, UnmarshallerContext _ctx) {<NEW_LINE>addMediaResponse.setRequestId(_ctx.stringValue("AddMediaResponse.RequestId"));<NEW_LINE>Media media = new Media();<NEW_LINE>media.setCreationTime(_ctx.stringValue("AddMediaResponse.Media.CreationTime"));<NE...
(_ctx.stringValue("AddMediaResponse.Media.Duration"));
351,877
public void markUnreadNews() {<NEW_LINE>if (currentNews == null || currentNews.getNewsArticlesCount() <= 0) {<NEW_LINE>// do nothing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Stored enabled and un-read article<NEW_LINE>List<String> unReadNewsList = new ArrayList<>();<NEW_LINE>for (NewsArticle newsArticle : currentNews.ge...
add(newsArticle.getId());
1,641,617
final CreateRegexMatchSetResult executeCreateRegexMatchSet(CreateRegexMatchSetRequest createRegexMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRegexMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,039,493
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE>throw new RuntimeException("Specify topology name");<NEW_LINE>}<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>builder.setSpout("word", new AckingTestWordSpout(), 2);<NEW_LINE>builder.setBolt("count",...
, ByteAmount.fromMegabytes(512));
319,885
private void process(Tile tile) {<NEW_LINE><MASK><NEW_LINE>// only process entity changes with centered tiles<NEW_LINE>if (tile.isCenter() && tile.build != null) {<NEW_LINE>var data = team.data();<NEW_LINE>if (tile.block().flags.size > 0 && tile.isCenter()) {<NEW_LINE>TileArray[] map = getFlagged(team);<NEW_LINE>for (B...
var team = tile.team();
410,129
protected FTPClient connect(final Proxy proxy, final HostKeyCallback callback, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>final CustomTrustSSLProtocolSocketFactory f = new CustomTrustSSLProtocolSocketFactory(trust, key, preferences.getProperty(<MASK><NE...
"connection.ssl.protocols.ftp").split(","));
1,738,779
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* io.antmedia.datastore.db.IDataStore#save(io.antmedia.datastore.db.types.<NEW_LINE>* Broadcast)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String save(Broadcast broadcast) {<NEW_LINE>if (broadcast == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>t...
broadcast.setStatus(IAntMediaStreamHandler.BROADCAST_STATUS_CREATED);
1,411,330
public List<Integer> findAnagrams(String s, String p) {<NEW_LINE>List<Integer> ans = new ArrayList<>();<NEW_LINE>int m = s.length(), n = p.length();<NEW_LINE>if (n > m) {<NEW_LINE>return ans;<NEW_LINE>}<NEW_LINE>int[] window = new int[26];<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>window[p.charAt(i) - 'a']++;<NEW...
i - n) - 'a']++;
1,186,067
public int nextAbsentValue(char fromValue) {<NEW_LINE>int index = Util.advanceUntil(content, -1, cardinality, fromValue);<NEW_LINE>if (index >= cardinality) {<NEW_LINE>return (int) (fromValue);<NEW_LINE>}<NEW_LINE>if (index == cardinality - 1) {<NEW_LINE>return fromValue == content[cardinality - 1] ? (int) (fromValue) ...
high + low) >>> 1;
1,041,546
// TODO: currently, only the first matching combination is found:<NEW_LINE>private boolean checkListsWithMultistatementTrees(List<? extends Tree> real, int realOffset, List<? extends Tree> pattern, int patternOffset, TreePath p) {<NEW_LINE>while (realOffset < real.size() && patternOffset < pattern.size() && !isMultista...
= new LinkedList<TreePath>();
1,250,407
public InferenceResult ask(FOLKnowledgeBase kb, Sentence query) {<NEW_LINE>Literal l = new Literal(((AtomicSentence) query));<NEW_LINE>List<HashMap<Variable, Term>> substitutes = this.folBcAsk(kb, l);<NEW_LINE>this.finalList = substitutes;<NEW_LINE>if (l.getAtomicSentence().getArgs().get(0) instanceof Variable) {<NEW_L...
(0).getSteps());
1,065,067
public YAtomicType yGlobEnum(String name, SchemaContextAware<BiFunction<String, Collection<String>, String>> errorMessageFormatter, SchemaContextAware<Collection<String>> values) {<NEW_LINE>YAtomicType t = yatomic(name);<NEW_LINE>t.setHintProvider((dc) -> {<NEW_LINE>return PartialCollection.compute(() -> values.withCon...
super.createErrorMessage(parseString, values);
795,351
public static Class<?>[] loadFromFile(String[] paths) {<NEW_LINE>Class<?>[] handleObject = new Class<?>[paths.length];<NEW_LINE>for (int i = 0; i < paths.length; i++) {<NEW_LINE>try {<NEW_LINE>for (String curExecPath : executionPath) {<NEW_LINE>JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();<NEW_LINE>Diag...
Boolean call = task.call();
490,251
public Object construct() throws Exception {<NEW_LINE>try {<NEW_LINE>// prevents potential infinite loop during errors<NEW_LINE>if (this.skipFiring)<NEW_LINE>return null;<NEW_LINE>spellChecker.setLocale(locale);<NEW_LINE>return locale;<NEW_LINE>} catch (Exception exc) {<NEW_LINE>logger.warn("Unable to retrieve dictiona...
message = Resources.getString("plugin.spellcheck.DICT_PROCESS_ERROR");
407,169
public void run() {<NEW_LINE>if (label_comp.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ticks++;<NEW_LINE>image_index++;<NEW_LINE>if (image_index == vitality_images.length) {<NEW_LINE>image_index = 0;<NEW_LINE>}<NEW_LINE>boolean do_results = ticks % 5 == 0;<NEW_LINE>boolean all_done = do_results;<NEW_LINE>for ...
Utils.setTT(indicator, msg);
249,119
public final long incCol(final int column, final long c) {<NEW_LINE>final int encoder = Row.this.row[column].encoder;<NEW_LINE>final int colstrt = Row.this.colstart[column];<NEW_LINE>final int cellwidth = Row.this.row[column].cellwidth;<NEW_LINE>long l;<NEW_LINE>switch(encoder) {<NEW_LINE>case Column.encoder_b64e:<NEW_...
this.offset + colstrt, cellwidth);
1,470,438
private static String mkkos(CommandLine cl) throws Exception {<NEW_LINE>printNextStepMessage("Will now generate a Key Object for files in " + cl.getArgList());<NEW_LINE>final MkKOS mkkos = new MkKOS();<NEW_LINE>mkkos.setUIDSuffix(cl.getOptionValue("uid-suffix"));<NEW_LINE>mkkos.setCodes(CLIUtils.loadProperties(cl.getOp...
toCodeItem(documentTitleOf(cl)));
706,831
private static NodeId parse(String s, int namespaceIndex) throws UaRuntimeException {<NEW_LINE>if (s.length() < 2) {<NEW_LINE>throw new UaRuntimeException(StatusCodes.Bad_NodeIdInvalid);<NEW_LINE>}<NEW_LINE>String type = s.substring(0, 2);<NEW_LINE>String id = s.substring(2);<NEW_LINE>switch(type) {<NEW_LINE>case "i=":...
throw new UaRuntimeException(StatusCodes.Bad_NodeIdInvalid);
1,640,733
final DeleteGameResult executeDeleteGame(DeleteGameRequest deleteGameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
897,433
public void benchmark(TornadoDevice device, boolean isProfilerEnabled) {<NEW_LINE>setUp();<NEW_LINE>validResult = (!VALIDATE) || validate(device);<NEW_LINE>int size = toIntExact(iterations);<NEW_LINE>timers = new double[size];<NEW_LINE>if (isProfilerEnabled) {<NEW_LINE>deviceKernelTimers = new ArrayList<>();<NEW_LINE>d...
)] = (end - start);
1,779,459
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.<MASK><NEW_LINE>instruction.setOp1Register(decoder.state_vvvv + baseReg);<NEW_LINE>if (decoder.state_mod == 3) {<NEW_LINE>instruction.setOp2Register(decoder.state_rm + decoder.state_zs...
state_reg + decoder.state_zs_extraRegisterBase + baseReg);