idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,408,086
final DescribeAppsResult executeDescribeApps(DescribeAppsRequest describeAppsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
invoke(request, responseHandler, executionContext);
698,445
public String transformMarkdown(String source) {<NEW_LINE>List<String> output = new ArrayList<>();<NEW_LINE>String state = "root";<NEW_LINE>boolean prevLineIsEmpty = true;<NEW_LINE>for (String line : source.split("\n")) {<NEW_LINE>switch(state) {<NEW_LINE>case "root":<NEW_LINE>if (match(fourspacesOrTab, line) && prevLi...
output.add("// " + line);
566,759
protected List<IntelHexRecord> dumpMemory(Program program, Memory memory, AddressSetView addrSetView, TaskMonitor monitor) throws MemoryAccessException {<NEW_LINE>int size = (int) recordSizeOption.getValue();<NEW_LINE><MASK><NEW_LINE>IntelHexRecordWriter writer = new IntelHexRecordWriter(size, dropBytes);<NEW_LINE>Addr...
boolean dropBytes = recordSizeOption.dropExtraBytes();
1,517,407
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>String originalQueryString = CockroachDBVisitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQueryString, errors, state);<NEW_LINE>boolean allowOrderBy = Randomly.getBoolean();<NEW_...
setOrderByExpressions(gen.getOrderingTerms());
1,610,440
public static void testFunc() {<NEW_LINE>String[][] table = new String[][] { { "id", "First Name", "Last Name", "Age", "Profile" }, { "1", "John", "Johnson", "45", "My name is John Johnson. My id is 1. My age is 45." }, { "2", "Tom", "", "35", "My name is Tom. My id is 2. My age is 35." }, { "3", "Rose", "Johnson Johns...
, "", "My name is Jimmy Kimmel. My id is 4. My age is not specified. " + "I am the host of the late night show. I am not fan of Matt Damon. " } };
754,699
protected String doTccActionLogStore(Method method, Parameter[] parameters, Object[] arguments, TwoPhaseBusinessAction businessAction, BusinessActionContext actionContext) {<NEW_LINE>String actionName = actionContext.getActionName();<NEW_LINE>String xid = actionContext.getXid();<NEW_LINE>//<NEW_LINE>Map<String, Object>...
null, xid, applicationContextStr, null);
200,848
public void testJMSProducerSendByteMessage_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE><MASK><NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsContextQCFTCP.createConsumer(queue1);<NEW_LINE>JMSProducer producer = jmsContextQCFTCP.createProdu...
JMSContext jmsContextQCFTCP = qcfTCP.createContext();
860,653
private static Map<String, String> cacheFromOpenSsl(String openSslCipherSuite) {<NEW_LINE>Map<String, String> converted = o2jTls13.get(openSslCipherSuite);<NEW_LINE>if (converted != null) {<NEW_LINE>return converted;<NEW_LINE>}<NEW_LINE>String javaCipherSuiteSuffix = toJavaUncached0(openSslCipherSuite, false);<NEW_LINE...
debug("Cipher suite mapping: {} => {}", javaCipherSuiteSsl, openSslCipherSuite);
1,624,697
private void loadNode252() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_TimeZoneDataType, new QualifiedName(0, "TimeZoneDataType"), new LocalizedText("en", "TimeZoneDataType"), LocalizedText.NULL_VALUE, UInteg...
this.nodeManager.addNode(node);
302,995
// final entry of dropping backend<NEW_LINE>public void dropBackend(String host, int heartbeatPort, boolean needCheckUnforce) throws DdlException {<NEW_LINE>if (getBackendWithHeartbeatPort(host, heartbeatPort) == null) {<NEW_LINE>throw new DdlException("backend does not exists[" + host + ":" + heartbeatPort + "]");<NEW...
copiedBackends = Maps.newHashMap(idToBackendRef);
297,219
public void createConditionRoute(ConditionRouteDTO conditionRoute) {<NEW_LINE>String id = ConvertUtil.getIdFromDTO(conditionRoute);<NEW_LINE>String path = <MASK><NEW_LINE>String existConfig = dynamicConfiguration.getConfig(path);<NEW_LINE>RoutingRule existRule = null;<NEW_LINE>if (existConfig != null) {<NEW_LINE>existR...
getPath(id, Constants.CONDITION_ROUTE);
622,619
public boolean doesOperationExistForCeilingEntity(PermissionType permissionType, String ceilingEntityFullyQualifiedName) {<NEW_LINE>// the ceiling may be an impl, which will fail because entity permission is normally specified for the interface<NEW_LINE>// try the passed in ceiling first, but also try an interfaces imp...
query = em.createNamedQuery("BC_COUNT_PERMISSIONS_BY_TYPE_AND_CEILING_ENTITY");
1,248,264
public Secret createSecret(String namespace, String name, String keyKey, String certKey, byte[] key, byte[] cert, String storeKey, String storePasswordKey, byte[] store, byte[] storePassword, Map<String, String> labels, Map<String, String> annotations, OwnerReference ownerReference) {<NEW_LINE>Map<String, String> data ...
= new HashMap<>(4);
1,801,936
public void read(org.apache.thrift.protocol.TProtocol iprot, grantNamespacePermission_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.proto...
apache.thrift.protocol.TField schemeField;
1,083,649
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>App.getInstance().getDaggerComponent().inject(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_help);<NEW_LINE>if (getSupportActionBar() != null) {<NEW_LINE>getSupportActionBar().setDisplayHomeAsUpEnabled(true);<N...
findViewById(R.id.swRootCommandsLog);
1,270,303
private boolean addChecksFromExplicitAccessRequiredAnnos(final AdminCommand command, final List<AccessCheckWork> accessChecks, final boolean isTaggable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException {<NEW_LINE>boolean isAnnotated = false;<NEW_LINE>for (ClassLineageIterator cIt = new Clas...
getAnnotation(AccessRequired.List.class);
413,906
public static GetUserResponse unmarshall(GetUserResponse getUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>getUserResponse.setRequestId(_ctx.stringValue("GetUserResponse.RequestId"));<NEW_LINE>getUserResponse.setCode(_ctx.stringValue("GetUserResponse.Code"));<NEW_LINE>getUserResponse.setMessage(_ctx.stringValue("Ge...
("GetUserResponse.Data.Departments[" + i + "].GmtCreate"));
1,763,423
public static void initialize(Path logFileFolder) {<NEW_LINE>TerasologyVersion terasologyVersion = TerasologyVersion.getInstance();<NEW_LINE>String logFileDir = TIMESTAMP_FORMAT.format(new Date());<NEW_LINE>if (!terasologyVersion.getengineVersion().equals("")) {<NEW_LINE>logFileDir += "_" + terasologyVersion.getengineV...
resolve(logFileDir).normalize();
428,535
protected final void handleReceiptScheduleEvent(@NonNull final AbstractReceiptScheduleEvent event) {<NEW_LINE>final Candidate existingSupplyCandidate = retrieveExistingSupplyCandidateOrNull(event);<NEW_LINE>final CandidateBuilder supplyCandidateBuilder = existingSupplyCandidate != null ? existingSupplyCandidate.toBuild...
final PurchaseDetail purchaseDetail = createPurchaseDetail(event);
1,628,445
public OutlierResult run(Relation<O> relation) {<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = new QueryBuilder<>(relation, distance).kNNByDBID(kplus);<NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("kNN distance for objects", relation.size(), LOG) : null;<NEW_LINE>WritableDoubleDataStore knnDist = Data...
scores.put(it, knndd);
756,310
private List<Future> sendBatch(Map<Integer, List<Data>> batch, boolean replaceExistingValues, Semaphore nodeWideLoadedKeyLimiter) {<NEW_LINE>Set<Entry<Integer, List<Data>>> entries = batch.entrySet();<NEW_LINE>List<Future> futures = new ArrayList<>(entries.size());<NEW_LINE>Iterator<Entry<Integer, List<Data>>> iterator...
int partitionId = e.getKey();
1,005,639
public void executeStep(PluginStepContext context, Map<String, Object> configuration) throws StepException {<NEW_LINE>if (null == jobUUID && null == jobName) {<NEW_LINE>throw new StepException("Configuration invalid: jobUUID or jobName is required", StepFailureReason.ConfigurationFailure);<NEW_LINE>}<NEW_LINE>if (null ...
StepException("Configuration invalid: executionState or running is required", StepFailureReason.ConfigurationFailure);
1,260,641
private void calculatePoly() {<NEW_LINE>// common denominator<NEW_LINE>double denom = pow2(1 - 3.4641 * ar);<NEW_LINE>poly[5] = (-1.58025 * (-0.728769 + ar) * (-0.192105 + ar)) / denom;<NEW_LINE>poly[4] = (12.8395 * (-0.725688 + ar) * (-0.19292 + ar)) / denom;<NEW_LINE>poly[3] = (-39.5062 * (-0.72074 + ar) * (<MASK><NE...
-0.194245 + ar)) / denom;
1,455,057
static void addDirectAndExportedDeps(TargetGraph targetGraph, TargetNode<?> targetNode, ImmutableSortedSet.Builder<TargetNode<?>> directDepsBuilder, ImmutableSortedSet.Builder<TargetNode<?>> exportedDepsBuilder, Optional<AppleCxxPlatform> appleCxxPlatform) {<NEW_LINE>directDepsBuilder.addAll(targetGraph.getAll(targetNo...
targetNode, arg.getExportedDeps());
640,452
public ConnectorPageSource pageSource(ConnectorTransactionHandle transactionHandle, ConnectorSession session, TupleDomain<Integer> constraint) {<NEW_LINE>checkState(ruleStatsRecorder.isPresent(), "Rule stats system table can return results only on coordinator");<NEW_LINE>Map<Class<?>, RuleStats> ruleStats = ruleStatsRe...
.get().getStats();
592,446
public JExpression buildReadMethod(JVar inputParcelParam, JDefinedClass parcelableClass, ASTType type, ASTType converter, ReadWriteGenerator overrideGenerator, JExpression readIdentityMap) {<NEW_LINE>JType <MASK><NEW_LINE>// write method<NEW_LINE>JClass typeRef = generationUtil.ref(type);<NEW_LINE>JMethod readMethod = ...
parcelType = generationUtil.ref(ANDROID_PARCEL);
1,241,170
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>void configureActionBarView() {<NEW_LINE>if (mScreenName != null) {<NEW_LINE>final ActionBar actionBar = getActionBar();<NEW_LINE>actionBar.setDisplayUseLogoEnabled(true);<NEW_LINE>actionBar.setDisplayHomeAsUpEnabled(true);<NEW_LINE>actionBar.setDisplayShowTitleEnabled(true);<NEW_LINE...
LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
436,001
public void add(String lookupKey, OAuth20Token entry, int lifetime) {<NEW_LINE>String hash = lookupKey;<NEW_LINE>boolean isAppPasswordOrAppTokenGT = (OAuth20Constants.GRANT_TYPE_APP_PASSWORD.equals(entry.getGrantType())) || (OAuth20Constants.GRANT_TYPE_APP_TOKEN.equals(entry.getGrantType()));<NEW_LINE>boolean isAuthori...
String username = entry.getUsername();
332,921
private void drawLabels(Graphics2D g, Number next, double xOffset, double yOffset, double zeroOffset, double barWidth, boolean showStackSum, boolean isTotalAnnotations, Color seriesColor) {<NEW_LINE>String numberAsString = chart.getYAxisFormat().format(next);<NEW_LINE>TextLayout textLayout = new TextLayout(numberAsStri...
(null, true, false));
509,605
private Promise<Void> followPath(String[] path, int index, Promise<Map<String, Variable>> scope) {<NEW_LINE>String elem = path[index];<NEW_LINE>return scope.thenAsync(map -> {<NEW_LINE>Variable var = map.get(elem);<NEW_LINE>if (var != null) {<NEW_LINE>if (index == path.length - 1) {<NEW_LINE>return variableToString(var...
().getProperties()));
1,134,350
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>equations = new ArrayList<>();<NEW_LINE>freeVariables = new ArrayList<>();<NEW_LINE>variableBank = new ArrayList<>();<NEW_LINE>gp = getArguments().getParcelable(GEOPOINT_ARG);<NEW_LINE>if (gp == null) {<NEW_LIN...
bytes = savedInstanceState.getByteArray(CALC_STATE);
1,071,710
public void testUnexplode() throws IOException {<NEW_LINE>File file = File.createTempFile("tempFile", null);<NEW_LINE>File tmpDir = file.getParentFile();<NEW_LINE>unexplodeWithException(file, "shouldn't be able to unexplode file that is not a directory");<NEW_LINE>assertTrue("Should be able to delete tmp file", file.de...
"Should be able to delete zip that was created from directory", dir.delete());
220,203
private HttpServer httpsServer(InetSocketAddress address) throws IOException, GeneralSecurityException {<NEW_LINE>// Initialize the keystore<NEW_LINE>char[] password = "umsums".toCharArray();<NEW_LINE>keyStore = KeyStore.getInstance("JKS");<NEW_LINE>try (FileInputStream fis = new FileInputStream(FileUtil.appendPathSepa...
setProtocols(engine.getEnabledProtocols());
1,751,556
private static void emulateEnter(@Nonnull final Editor editor, @Nonnull Project project, int[] shifts) {<NEW_LINE>final DataContext dataContext = prepareContext(<MASK><NEW_LINE>int caretOffset = editor.getCaretModel().getOffset();<NEW_LINE>Document document = editor.getDocument();<NEW_LINE>SelectionModel selectionModel...
editor.getComponent(), project);
1,399,671
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>completion.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>VirtualRouterAsyncHttpCallReply re = reply.castReply();<NEW_LINE>VirtualRouterCommands.SyncSNATRsp ret = re.toResponse(VirtualRouterCommands.SyncSNATRsp.class);<NEW_L...
), ret.getError());
1,071,466
public Map<String, Object> toMap() {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("timestamp", new Long(timestamp));<NEW_LINE>if (assetHash != null) {<NEW_LINE>map.put("assetHash", assetHash);<NEW_LINE>}<NEW_LINE>map.put("icon", getIconID());<NEW_LINE>map.put("id", id);<NEW_LINE>map.put("text", ...
>) torrent_map.get("vuze");
1,033,383
public void read(org.apache.thrift.protocol.TProtocol iprot, NimbusStat struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apac...
.uptimeSecs = iprot.readString();
288,721
public static DescribeDomainsResponse unmarshall(DescribeDomainsResponse describeDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainsResponse.setRequestId(_ctx.stringValue("DescribeDomainsResponse.RequestId"));<NEW_LINE>describeDomainsResponse.setTotalCount(_ctx.longValue("DescribeDomainsResponse.Total...
= new ArrayList<Domain>();
759,701
public Object doAround(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {<NEW_LINE>MethodSignature sign = <MASK><NEW_LINE>Method method = sign.getMethod();<NEW_LINE>Object target = proceedingJoinPoint.getTarget();<NEW_LINE>Object[] args = proceedingJoinPoint.getArgs();<NEW_LINE>Object result = proceedingJoinPo...
(MethodSignature) proceedingJoinPoint.getSignature();
329,147
protected void fillData(boolean trimList) {<NEW_LINE>super.fillData(trimList);<NEW_LINE>ViewGroup group = (ViewGroup) findViewById(R.id.extra_strings);<NEW_LINE>if (trimList) {<NEW_LINE>group.removeAllViews();<NEW_LINE>}<NEW_LINE>PwEntryV4 entry = (PwEntryV4) mEntry;<NEW_LINE>PwDatabase pm = App.getDB().pm;<NEW_LINE>Sp...
.getValue().toString();
754,944
public void enable() {<NEW_LINE>if (tfConfig != null) {<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("threshold"))) {<NEW_LINE>setThreshold(tfConfig.getThreshold());<NEW_LINE>}<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("callbackPeriod"))) {<NEW_LINE>setCallbackPeriod(t...
tinkerforgeDevice.setIntensityCallbackPeriod(getCallbackPeriod());
1,664,563
private BType readBType(DataInputStream dataInStream) throws IOException {<NEW_LINE><MASK><NEW_LINE>CPEntry cpEntry = this.env.constantPool[typeCpIndex];<NEW_LINE>BType type = null;<NEW_LINE>if (cpEntry != null) {<NEW_LINE>type = ((CPEntry.ShapeCPEntry) cpEntry).shape;<NEW_LINE>if (type.tag != TypeTags.INVOKABLE) {<NEW...
int typeCpIndex = dataInStream.readInt();
1,731,246
final ExecuteStatementResult executeExecuteStatement(ExecuteStatementRequest executeStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(executeStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
49,917
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') " + "inlined_class \"\"\"\n" + " public class MyUtil { public static boolean compareIt(String one, String two) { return one.equals(two); } }\n" + "\"\"\" \n" + "select * from SupportBean_S0('abc' = (select p11 from SupportBean_S1#keepall w...
(epl).addListener("s0");
946,632
final UpdateVpcLinkResult executeUpdateVpcLink(UpdateVpcLinkRequest updateVpcLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVpcLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
969,646
public static String tinyfd_inputBox(@Nullable @NativeType("char const *") CharSequence aTitle, @Nullable @NativeType("char const *") CharSequence aMessage, @Nullable @NativeType("char const *") CharSequence aDefaultInput) {<NEW_LINE>MemoryStack stack = stackGet();<NEW_LINE>int stackPointer = stack.getPointer();<NEW_LI...
ntinyfd_inputBox(aTitleEncoded, aMessageEncoded, aDefaultInputEncoded);
1,555,643
public Page<EntCustomer> findByCreaterAndSharesAndOrgi(String creater, String shares, String orgi, Date begin, Date end, boolean includeDeleteData, String q, Pageable page) {<NEW_LINE><MASK><NEW_LINE>BoolQueryBuilder boolQueryBuilder1 = new BoolQueryBuilder();<NEW_LINE>boolQueryBuilder1.should(termQuery("creater", crea...
BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
175,538
public void testPubSubDurable_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>Topic jmsTopic = jmsContextTopic.createTopic("Topic1");<NEW_LINE>JMSConsumer jmsConsumer = jmsContextTopic.createDurableConsumer(jmsTopic, "sub1");<NEW_LINE>String msgOutText = "testPubSubDurable...
msgOut = jmsContextTopic.createTextMessage(msgOutText);
523,783
private void encodeDisabledMenuItem(FacesContext context, MenuItem menuItem) throws IOException {<NEW_LINE><MASK><NEW_LINE>String style = menuItem.getStyle();<NEW_LINE>String styleClass = getStyleClassBuilder(context).add(BreadCrumb.MENUITEM_LINK_CLASS).add(menuItem.getStyleClass()).add("ui-state-disabled").build();<NE...
ResponseWriter writer = context.getResponseWriter();
1,469,992
public void updateAnomalyAlertConfiguration() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationAsyncClient.updateAlertConfig#AnomalyAlertConfiguration<NEW_LINE>String alertConfigId = "1p0f8er30-6e6e-4391-b78f-bpfdfee1e6f5";<NEW_LINE>String additionalHookId = "2gh8er30-6e6e-439...
"Updated anomaly alert configuration description: %s%n", updateAnomalyAlertConfiguration.getDescription());
1,827,799
static void printTracerHistogram(PrintStream out, CPUTracer tracer) {<NEW_LINE>List<CPUTracer.Payload> payloads = new ArrayList<>(tracer.getPayloads());<NEW_LINE>payloads.sort(new Comparator<CPUTracer.Payload>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(CPUTracer.Payload o1, CPUTracer.Payload o2) {<NEW...
"Total Count", "Interpreted Count", "Compiled Count", "Location");
1,453,869
private boolean cancelScheduledTrip(String feedId, String tripId, final ServiceDate serviceDate) {<NEW_LINE>boolean success = false;<NEW_LINE>final TripPattern pattern = getPatternForTripId(feedId, tripId);<NEW_LINE>if (pattern != null) {<NEW_LINE>// Cancel scheduled trip times for this trip in this pattern<NEW_LINE>fi...
update(pattern, newTripTimes, serviceDate);
1,566,781
protected void internalRemoveOffloadPolicies(AsyncResponse asyncResponse) {<NEW_LINE>validateNamespacePolicyOperation(namespaceName, PolicyName.OFFLOAD, PolicyOperation.WRITE);<NEW_LINE>validatePoliciesReadOnlyAccess();<NEW_LINE>try {<NEW_LINE>namespaceResources().setPoliciesAsync(namespaceName, (policies) -> {<NEW_LIN...
clientAppId(), namespaceName, e);
1,706,089
public Object interpret(ExecutionContext context, boolean debug) {<NEW_LINE>Object ref = getMemberExpression().interpret(context, debug);<NEW_LINE>Object function = getValue(this.functionGet, context, ref);<NEW_LINE>List<Expression> argExprs = getArgumentExpressions();<NEW_LINE>Object[] args = new Object[argExprs.size(...
+ function.toString()));
1,844,585
public DescribeScheduledAuditResult describeScheduledAudit(DescribeScheduledAuditRequest describeScheduledAuditRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScheduledAuditRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
223,478
private FourNode generate4Node(ThreeNode parentNode, TwoNode newNode) {<NEW_LINE>boolean isLeftNode = parentNode.leftKey.compareTo(newNode.key) > 0;<NEW_LINE>boolean isRightNode = parentNode.rightKey.<MASK><NEW_LINE>// Create temporary 4-node<NEW_LINE>FourNode newFourNode;<NEW_LINE>int newSize = parentNode.size;<NEW_LI...
compareTo(newNode.key) < 0;
920,248
public void add(DLNAResource resource) {<NEW_LINE>DLNAResource res1;<NEW_LINE>LOGGER.debug("Adding \"{}\" to playlist \"{}\"", resource.getDisplayName(), getName());<NEW_LINE>if (resource instanceof VirtualVideoAction) {<NEW_LINE>// don't add these<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resource.getParent() == this) ...
setResume(resource.getResume());
35,002
public void endVisit(InfixExpression node) {<NEW_LINE>InfixExpression.<MASK><NEW_LINE>if (typeUtil.isString(node.getTypeMirror()) && op == InfixExpression.Operator.PLUS) {<NEW_LINE>rewriteStringConcat(node);<NEW_LINE>} else if (op == InfixExpression.Operator.CONDITIONAL_AND) {<NEW_LINE>// Avoid logical-op-parentheses c...
Operator op = node.getOperator();
1,537,901
public InternalFuture<Void> commitMultipartArtifact(CommitMultipartArtifact request) {<NEW_LINE>return getArtifactId(request.getId(), request.getKey()).thenAccept(maybeId -> {<NEW_LINE>final var id = maybeId.orElseThrow(() -> new InvalidArgumentException(String.format(KEY_S_NOT_LOGGED_ERROR, request.getKey())));<NEW_LI...
()), this.artifactEntityType);
1,713,857
private Mono<PagedResponse<AvailabilityStatusInner>> listBySubscriptionIdSinglePageAsync(String filter, String expand, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW...
.nextLink(), null));
1,521,219
private void ensureType(String shortName, ExportType etype) {<NEW_LINE>boolean hasType = typeMap.containsKey(shortName);<NEW_LINE>if (!hasType) {<NEW_LINE>Integer prior = typeMap.putIfAbsent(shortName, etype.value());<NEW_LINE>if (prior == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// some other thread got there firs...
replace(shortName, bitmask, newValue);
396,151
protected ProfilingPoint loadProfilingPoint(Lookup.Provider project, Properties properties, int index) {<NEW_LINE>// NOI18N<NEW_LINE>String name = properties.getProperty(index + "_" + ProfilingPoint.PROPERTY_NAME, null);<NEW_LINE>// NOI18N<NEW_LINE>String enabledStr = properties.getProperty(index + "_" + ProfilingPoint...
name, location, project, this);
1,510,906
public void handle(Map data) {<NEW_LINE>markSnapshotTreeCompleted(snapshot);<NEW_LINE>if (volumeNewInstallPath != null) {<NEW_LINE>vol.setInstallPath(volumeNewInstallPath);<NEW_LINE>dbf.update(vol);<NEW_LINE>}<NEW_LINE>VolumeSnapshotVO svo = dbf.findByUuid(snapshot.getUuid(), VolumeSnapshotVO.class);<NEW_LINE>svo.setTy...
setSize(snapshot.getSize());
429,239
void serialize(XmlSerializer serializer, String elementNamespaceUri, String elementLocalName) throws IOException {<NEW_LINE>boolean errorOnUnknown = this.errorOnUnknown;<NEW_LINE>if (elementLocalName == null) {<NEW_LINE>if (errorOnUnknown) {<NEW_LINE>throw new IllegalArgumentException("XML name not specified");<NEW_LIN...
attributeValues.get(i)));
1,548,410
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String replicationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,162,001
public Set<ConfigDocGeneratedOutput> scanExtensionsConfigurationItems(Properties javaDocProperties) throws IOException {<NEW_LINE>Set<ConfigDocGeneratedOutput> configDocGeneratedOutputs = new HashSet<>();<NEW_LINE>final ConfigDoItemFinder configDoItemFinder = new ConfigDoItemFinder(configRoots, configGroupsToTypeElemen...
ConfigDocGeneratedOutput> allConfigItemsPerExtension = generateAllConfigItemsOutputs(inMemoryScannedItemsHolder);
1,066,183
final GetCloudFormationStackRecordsResult executeGetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest getCloudFormationStackRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFormationStackRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
549,138
public void applyChanges() {<NEW_LINE>ShaderPackSelectionList.BaseEntry base = this.shaderPackList.getSelected();<NEW_LINE>if (!(base instanceof ShaderPackSelectionList.ShaderPackEntry)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ShaderPackSelectionList.ShaderPackEntry entry = (ShaderPackSelectionList.ShaderPackEntry) base...
String name = entry.getPackName();
1,128,900
protected boolean readNodeChild(org.w3c.dom.Node childNode, String childNodeName, String childNodeValue, java.util.Map namespacePrefixes) {<NEW_LINE>// assert childNodeName == childNodeName.intern()<NEW_LINE>if ("meta-element".equals(childNodeName)) {<NEW_LINE>MetaElement aMetaElement = newMetaElement();<NEW_LINE>aMeta...
|| "1".equals(childNodeValue));
516,785
void build() {<NEW_LINE>if (taskBuilder == null) {<NEW_LINE>throw new IllegalStateException("You must specify the task which will contribute classes from this source directory");<NEW_LINE>}<NEW_LINE>SourceDirectorySet langSrcDir = project.getObjects().sourceDirectorySet(name, description == null ? "Sources for " + name...
getAllSource().source(langSrcDir);
738,665
public <K, V> ImmutableMap<K, V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) {<NEW_LINE>if (Comparators.nullSafeEquals(key1, key2)) {<NEW_LINE>return this.of(key1, value2, key3, value3, key4, value4);<NEW_LINE>}<NEW_LINE>if (Comparators.nullSafeEquals(key1, key3)) {<NEW_LINE>return this...
key2, value2, key3, value4);
852,424
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select * from SupportBean#lastevent sb" + " inner join " + " SupportBeanTwo#lastevent sbt" + " on sb.theString = sbt.stringTwo " + " inner join " + " sql:MyDBWithRetain ['select myint from mytesttable'] as s1 " + " on s1.myint = sbt.i...
new SupportBeanTwo("T1", 2));
1,778,978
public boolean bodyCall(Node[] args, int length, RuleContext context) {<NEW_LINE>checkArgs(length, context);<NEW_LINE><MASK><NEW_LINE>Node n1 = getArg(0, args, context);<NEW_LINE>Node n2 = getArg(1, args, context);<NEW_LINE>if (n1.isLiteral() && n2.isLiteral()) {<NEW_LINE>Object v1 = n1.getLiteralValue();<NEW_LINE>Obje...
BindingEnvironment env = context.getEnv();
1,280,625
public static Map<String, Long> queryDbGroupDataSize(String schema, List<GroupDetailInfoExRecord> groupRecords) {<NEW_LINE>Map<String, Long> groupDataSizeMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>groupRecords.stream().collect(Collectors.groupingBy(x -> x.storageInstId)).forEach((storageInstId, groups...
groupName = phyDbToGroup.get(phyDbName);
1,398,961
ActionResult<Wo> execute(EffectivePerson effectivePerson, String portalFlag, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.<MASK><NEW_LINE>Business...
convertToWrapIn(jsonElement, Wi.class);
382,249
private List<CertificateInventory> certificateFromAction(CascadeAction action) {<NEW_LINE>if (!AccountVO.class.getSimpleName().equals(action.getParentIssuer())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<String> auuids = CollectionUtils.transformToList((List<AccountInventory>) action.getParentIssuerContext(...
createQuery(sql, CertificateVO.class);
646,974
private SqlQuerySpec createReadManyQuerySpec(List<CosmosItemIdentity> itemIdentities, String partitionKeySelector) {<NEW_LINE>StringBuilder queryStringBuilder = new StringBuilder();<NEW_LINE>List<SqlParameter> parameters = new ArrayList<>();<NEW_LINE>queryStringBuilder.append("SELECT * FROM c WHERE ( ");<NEW_LINE>for (...
itemIdentity = itemIdentities.get(i);
1,117,692
public void storeFirebaseMessage(RemoteMessage remoteMessage) {<NEW_LINE>try {<NEW_LINE>String remoteMessageString = reactToJSON(remoteMessageToWritableMap(remoteMessage)).toString();<NEW_LINE>// Log.d("storeFirebaseMessage", remoteMessageString);<NEW_LINE>UniversalFirebasePreferences preferences = UniversalFirebasePre...
notifications = removeRemoteMessage(firstRemoteMessageId, notifications);
1,546,601
private void receivedServerInfo(ChannelHandlerContext channelHandlerContext, NetData.ServerInfoMessage message) {<NEW_LINE>logger.info("Received server info");<NEW_LINE>((EngineTime) CoreRegistry.get(Time.class)).setGameTime(message.getTime());<NEW_LINE>this.server = new ServerImpl(networkSystem, channelHandlerContext....
writeAndFlush(builder.build());
1,839,126
public void LAPACK_dtgsyl(BytePointer arg0, int[] arg1, int[] arg2, int[] arg3, double[] arg4, int[] arg5, double[] arg6, int[] arg7, double[] arg8, int[] arg9, double[] arg10, int[] arg11, double[] arg12, int[] arg13, double[] arg14, int[] arg15, double[] arg16, double[] arg17, double[] arg18, int[] arg19, int[] arg20...
arg18, arg19, arg20, arg21);
640,770
public MapFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MapFilter mapFilter = new MapFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
class).unmarshall(context));
1,845,576
public Set<String> referencedFiles(String tableName) throws TableNotFoundException {<NEW_LINE>log.debug("Collecting referenced files for replication of table {}", tableName);<NEW_LINE>TableId tableId = context.getTableId(tableName);<NEW_LINE>log.debug("Found id of {} for name {}", tableId, tableName);<NEW_LINE>// Get t...
logEntry = LogEntry.fromMetaWalEntry(entry);
327,792
static AnalyzerComponents createComponents(String name, Settings analyzerSettings, final Map<String, TokenizerFactory> tokenizers, final Map<String, CharFilterFactory> charFilters, final Map<String, TokenFilterFactory> tokenFilters) {<NEW_LINE>String tokenizerName = analyzerSettings.get("tokenizer");<NEW_LINE>if (token...
>(tokenFilterNames.size());
1,573,743
final List<JsonTag> computeTags(@NonNull final Document document) {<NEW_LINE>final ImmutableList.Builder<JsonTag> tags = ImmutableList.builder();<NEW_LINE>tags.add(JsonTag.of(GetAttachmentRouteConstants.ALBERTA_DOCUMENT_ID, document.getId()));<NEW_LINE>if (document.isArchived() != null) {<NEW_LINE>tags.add(JsonTag.of(G...
String.valueOf(createdAtInstant)));
1,152,889
protected void paintDropShadow(RenderContext<FGVertex, FGEdge> rc, GraphicsDecorator g, Shape shape, FGVertex vertex) {<NEW_LINE>Rectangle bounds = shape.getBounds();<NEW_LINE>if (vertex instanceof GroupedFunctionGraphVertex) {<NEW_LINE>// paint depth images offset from main vertex<NEW_LINE>Rectangle originalBounds = b...
paintDropShadow(rc, g, bounds);
401,200
public void visitEnd() {<NEW_LINE>if (!interfacesToStub.isEmpty()) {<NEW_LINE>// Inherited methods take precedence over default methods, so visit all superclasses and<NEW_LINE>// figure out what methods they declare before stubbing in any missing default methods.<NEW_LINE>recordInheritedMethods();<NEW_LINE>stubMissingD...
"<clinit>", "()V", null, null);
1,844,229
private Optional<RemoveSearchResult> findBucketForRemove(final K key, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final ArrayList<RemovalPathItem> path = new ArrayList<>(8);<NEW_LINE>long pageIndex = ROOT_INDEX;<NEW_LINE>int depth = 0;<NEW_LINE>while (true) {<NEW_LINE>depth++;<NEW_LINE>if (dep...
= new CellBTreeSingleValueBucketV3<>(bucketEntry);
393,421
public List<AspectRowSummary> findByParams(Map<String, String> systemMetaParams, boolean includeSoftDeleted) {<NEW_LINE>SearchResponse searchResponse = _esDAO.findByParams(systemMetaParams, includeSoftDeleted);<NEW_LINE>if (searchResponse != null) {<NEW_LINE>SearchHits hits = searchResponse.getHits();<NEW_LINE>List<Asp...
) values.get(FIELD_RUNID));
1,646,650
private void initHeap(ObjectHeap<CASHInterval> heap, Relation<ParameterizationFunction> relation, int dim, DBIDs ids) {<NEW_LINE>CASHIntervalSplit split = new CASHIntervalSplit(relation, minPts);<NEW_LINE>// determine minimum and maximum function value of all functions<NEW_LINE>double[] minMax = determineMinMaxDistance...
i], d_maxs[i]);
702,029
public static QueryPermissionListResponse unmarshall(QueryPermissionListResponse queryPermissionListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPermissionListResponse.setRequestId<MASK><NEW_LINE>queryPermissionListResponse.setCode(_ctx.stringValue("QueryPermissionListResponse.Code"));<NEW_LINE>queryPermissionLi...
(_ctx.stringValue("QueryPermissionListResponse.RequestId"));
1,191,187
final GetWirelessGatewayResult executeGetWirelessGateway(GetWirelessGatewayRequest getWirelessGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWirelessGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
578,365
protected void visit(CharacterClass characterClass) {<NEW_LINE>if (isForward()) {<NEW_LINE>if (!characterClass.getCharSet().matchesSingleChar()) {<NEW_LINE>if (!characterClass.getCharSet().matches2CharsWith1BitDifference()) {<NEW_LINE>ast.getProperties().unsetCharClassesCanBeMatchedWithMask();<NEW_LINE>}<NEW_LINE>if (!...
getParent().getMaxPath());
782,546
// beforeSave<NEW_LINE>@Override<NEW_LINE>protected boolean afterSave(final boolean newRecord, final boolean success) {<NEW_LINE>if (!success) {<NEW_LINE>return success;<NEW_LINE>}<NEW_LINE>// Purchase Order Delivered/Invoiced<NEW_LINE>// (Reserved in VMatch and MInOut.completeIt)<NEW_LINE>if (getC_OrderLine_ID() > 0) ...
orderLine.setDateInvoiced(getDateTrx());
1,567,604
public double evaluate(List<List<DataPoint>> dataSets) {<NEW_LINE>List<Vec> centroids = new ArrayList<Vec>(dataSets.size());<NEW_LINE>double[] avrgCentriodDist = new double[dataSets.size()];<NEW_LINE>for (int i = 0; i < dataSets.size(); i++) {<NEW_LINE>Vec mean = MatrixStatistics.meanVector(new SimpleDataSet(dataSets.g...
dp.getNumericalValues(), mean);
1,021,785
public static Object fillInDataDefault(DataSchema schema, Object dataWithoutDefault) {<NEW_LINE>try {<NEW_LINE>switch(schema.getType()) {<NEW_LINE>case RECORD:<NEW_LINE>return fillInDefaultOnRecord((RecordDataSchema) schema, (DataMap) dataWithoutDefault);<NEW_LINE>case TYPEREF:<NEW_LINE>return fillInDefaultOnTyperef((T...
) schema, (DataMap) dataWithoutDefault);
356,857
private DataSet<Tuple3<Double, Object, Vector>> transform(BatchOperator<?> in, Params params, boolean isRegProc) {<NEW_LINE>String[] featureColNames = params.get(FmTrainParams.FEATURE_COLS);<NEW_LINE>String labelName = params.get(FmTrainParams.LABEL_COL);<NEW_LINE>String weightColName = params.get(FmTrainParams.WEIGHT_...
dataSchema.getFieldNames(), labelName);
795,776
public boolean isValidOnSpecifics(String inputValue) {<NEW_LINE>DateInput dateInput = Util.tryCastTo(m_baseInputElement, DateInput.class);<NEW_LINE>if (dateInput == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// if the date is not required and the date is empty, consider it as valid<NEW_LINE>if (!dateInput.GetIs...
getDate(minDate).getTime();
863,099
public void exitPropertyExpressionAtomic(EsperEPL2GrammarParser.PropertyExpressionAtomicContext ctx) {<NEW_LINE>// initialize if not set<NEW_LINE>if (propertyEvalSpec == null) {<NEW_LINE>propertyEvalSpec = new PropertyEvalSpec();<NEW_LINE>}<NEW_LINE>// get select clause<NEW_LINE>SelectClauseSpecRaw optionalSelectClause...
, astExprNodeMap).get(0);
533,068
private static JCMethodDecl createConstructor(AccessLevel level, JavacNode typeNode, boolean msgParam, boolean causeParam, JavacNode source, List<JCStatement> statements) {<NEW_LINE><MASK><NEW_LINE>boolean addConstructorProperties;<NEW_LINE>if ((!msgParam && !causeParam) || isLocalType(typeNode) || !LombokOptionsFactor...
JavacTreeMaker maker = typeNode.getTreeMaker();
1,785,837
public void preview(Client client, Map<String, String> headers, SourceConfig sourceConfig, Map<String, String> fieldTypeMap, int numberOfBuckets, ActionListener<List<Map<String, Object>>> listener) {<NEW_LINE>ClientHelper.assertNoAuthorizationHeader(headers);<NEW_LINE>ClientHelper.executeWithHeadersAsync(headers, Clien...
("Source indices have been deleted or closed.", RestStatus.BAD_REQUEST));