idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,093,569
public final static int copyDir(File originalDir, File copyDir, FileFilter filter, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>if (monitor == null) {<NEW_LINE>monitor = TaskMonitor.DUMMY;<NEW_LINE>}<NEW_LINE>if (!originalDir.exists()) {<NEW_LINE>// nothing to do<NEW_LINE>return 0;<NEW_LINE>}<...
monitor.initialize(originalDirFiles.length);
1,705,619
public void establishEquilibrium() {<NEW_LINE>final int count = getNeuronCount();<NEW_LINE>if (this.on == null) {<NEW_LINE>this.on = new int[count];<NEW_LINE>this.off = new int[count];<NEW_LINE>}<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE><MASK><NEW_LINE>this.off[i] = 0;<NEW_LINE>}<NEW_LINE>for (int n = 0; n <...
this.on[i] = 0;
758,093
final GetCampaignActivitiesResult executeGetCampaignActivities(GetCampaignActivitiesRequest getCampaignActivitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCampaignActivitiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,054,726
private static void addCtor(ClassWriter cw, String stubClassName, Set<String> classConstantFieldNames, Class<?> remoteInterface, boolean isAbstractInterface) {<NEW_LINE>MethodVisitor mv;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, INDENT + "adding method : <init> ()V"...
mv.visitMaxs(3, 1);
529,054
private void writeMethodDeclaration(IndentingWriter writer, GroovyMethodDeclaration methodDeclaration) {<NEW_LINE>writeAnnotations(writer, methodDeclaration);<NEW_LINE>writeModifiers(writer, METHOD_MODIFIERS, methodDeclaration.getModifiers());<NEW_LINE>writer.print(getUnqualifiedName(methodDeclaration.getReturnType()) ...
> statements = methodDeclaration.getStatements();
1,227,063
public static GetCopyrightPersonListResponse unmarshall(GetCopyrightPersonListResponse getCopyrightPersonListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCopyrightPersonListResponse.setRequestId(_ctx.stringValue("GetCopyrightPersonListResponse.RequestId"));<NEW_LINE>getCopyrightPersonListResponse.setPageNum(_ctx.i...
("GetCopyrightPersonListResponse.Data[" + i + "].Phone"));
969,139
protected void purgePendingMessages() {<NEW_LINE>final long now = System.nanoTime();<NEW_LINE>final long timeout = OGlobalConfiguration.DISTRIBUTED_ASYNCH_RESPONSES_TIMEOUT.getValueAsLong();<NEW_LINE>for (Iterator<Entry<Long, ODistributedResponseManager>> it = responsesByRequestIds.entrySet().iterator(); it.hasNext(); ...
> missingNodes = resp.getMissingNodes();
1,805,255
public void endElement(String namespaceURI, String localName, String qName) {<NEW_LINE>log.fine("EndElement:" + qName);<NEW_LINE>int tagID = getTagID(qName);<NEW_LINE>switch(tagID) {<NEW_LINE>case TAG_ID_PROCESSVAR:<NEW_LINE>log.fine("PV:" + currPv.toString());<NEW_LINE>firePvChanged(new PvChangeEvent(this, currPv.getK...
currPv.put(currAttrib, currValue);
1,131,638
// This method is copied from the superclass but its parts are swapped<NEW_LINE>@Override<NEW_LINE>public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) {<NEW_LINE>for (ComponentConnector child : event.getOldChildren()) {<NEW_LINE>if (child.getParent() == this) {<NEW_LINE>// Skip current children<...
getWidget().remove(vCaption);
1,552,616
final DescribeLoggingConfigurationResult executeDescribeLoggingConfiguration(DescribeLoggingConfigurationRequest describeLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,033,818
private Object fetchFromIndex(ODatabase graph, OIdentifiable iFrom, Iterable<OIdentifiable> iTo, String[] iEdgeTypes) {<NEW_LINE>String edgeClassName = null;<NEW_LINE>if (iEdgeTypes == null) {<NEW_LINE>edgeClassName = "E";<NEW_LINE>} else if (iEdgeTypes.length == 1) {<NEW_LINE>edgeClassName = iEdgeTypes[0];<NEW_LINE>} ...
edgeClass.getInvolvedIndexes("out", "in");
1,361,678
protected void processSimpleContent(SchemaRep.SimpleContent el) throws Schema2BeansException {<NEW_LINE>processContainsSubElements(el);<NEW_LINE>// System.out.println("lastDefinedType="+lastDefinedType);<NEW_LINE>if (lastDefinedType == null)<NEW_LINE>return;<NEW_LINE>SchemaRep.ElementExpr schemaTypeDef = schema.getSche...
HasJavaTypeName) schemaTypeDef).getJavaTypeName();
999,216
private boolean pruneProductConfig() {<NEW_LINE>log.fine("In pruneProductConfig");<NEW_LINE>boolean retVal = false;<NEW_LINE>DefaultMutableTreeNode rootProductConfig = this.m_RadioButtonTreeCellRenderer.root;<NEW_LINE>Enumeration children = rootProductConfig.breadthFirstEnumeration();<NEW_LINE>log.fine("About to prune"...
log.fine("Analyzing: " + child);
944,404
void showAlertHelp() {<NEW_LINE>logDebug("showAlertHelp");<NEW_LINE><MASK><NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>View v = inflater.inflate(R.layout.dialog_2fa_help, null);<NEW_LINE>builder.setView(v);<NEW_LINE>Button cancelButton = (Button) v.findViewById(R.id.cancel_button_help);<NEW_LINE>ca...
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);
526,123
public void cancelExportTask(CancelExportTaskRequest cancelExportTaskRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelExportTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_L...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1,178,817
final EnableVgwRoutePropagationResult executeEnableVgwRoutePropagation(EnableVgwRoutePropagationRequest enableVgwRoutePropagationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableVgwRoutePropagationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,554,643
public void serialize(ExtensibleTreeMap<?, ?> value, JsonGenerator gen, SerializerProvider serializers) throws IOException {<NEW_LINE>if (value instanceof Reference) {<NEW_LINE>Reference<?> reference = (Reference<?>) value;<NEW_LINE><MASK><NEW_LINE>if (ref != null) {<NEW_LINE>gen.writeStartObject(value);<NEW_LINE>gen.w...
String ref = reference.getRef();
257,881
public void mapPartition(Iterable<Tuple2<Integer, Row>> values, Collector<Tuple2<Integer, String>> out) {<NEW_LINE>LOG.info("start the random forests training");<NEW_LINE>int parallel <MASK><NEW_LINE>int superStep = getIterationRuntimeContext().getSuperstepNumber();<NEW_LINE>int taskId = getRuntimeContext().getIndexOfT...
= getRuntimeContext().getNumberOfParallelSubtasks();
805,319
private static Parser_return parse(String sql, int bracket_cnt) {<NEW_LINE>int index = 0;<NEW_LINE>boolean in_quote = false;<NEW_LINE>do {<NEW_LINE>if (sql.charAt(index) == '\'') {<NEW_LINE>in_quote = !in_quote;<NEW_LINE>} else if (sql.charAt(index) == '{' && !in_quote) {<NEW_LINE>if (index + 1 == sql.length()) {<NEW_L...
.end_idx = ptr.end + 1;
120,043
final InviteAccountToOrganizationResult executeInviteAccountToOrganization(InviteAccountToOrganizationRequest inviteAccountToOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(inviteAccountToOrganizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,038,625
public void beginBuildModelWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.formrecognizer.administration.DocumentModelAdministrationClient.beginBuildModel#string-DocumentBuildMode-BuildModelOptions-Context<NEW_LINE>String trainingFilesUrl = "{SAS-URL-of-your-container-in-blob-storage}";<NEW_LINE>String modelId = "custo...
"Model Description: %s%n", documentModel.getDescription());
524,509
protected void configureSorterProperties() {<NEW_LINE>// need to hack: if a structureChange is the result of a setModel<NEW_LINE>// the rowsorter is not yet updated<NEW_LINE>if (ignoreAddColumn || (!getControlsSorterProperties()))<NEW_LINE>return;<NEW_LINE>getSortController().setStringValueProvider(getStringValueRegist...
).isSortable() : true);
479,127
public void buildInternal(View view) {<NEW_LINE>if (osmPoint instanceof OsmNotesPoint) {<NEW_LINE>OsmNotesPoint notes = (OsmNotesPoint) osmPoint;<NEW_LINE>buildRow(view, R.drawable.ic_action_note_dark, null, notes.getText(), 0, false, null, false, <MASK><NEW_LINE>buildRow(view, R.drawable.ic_group, null, notes.getAutho...
0, false, null, false);
94,272
public void performOperation(Random rnd, Genome[] parents, int parentIndex, Genome[] offspring, int offspringIndex) {<NEW_LINE>IntegerArrayGenome mother = (IntegerArrayGenome) parents[parentIndex];<NEW_LINE>IntegerArrayGenome father = (IntegerArrayGenome) parents[parentIndex + 1];<NEW_LINE>IntegerArrayGenome offspring1...
.getGenomeFactory().factor();
914,195
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>System.out.println("Just got into server side app");<NEW_LINE>try {<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming SOAP Header:" + hdrText);<NEW_LINE>StringReader re...
Source src = new StreamSource(respMsg);
1,733,977
private static List<String> createVirtualHostAliasesToUpdate(boolean add, String[] vhHostAliases, List<String> hostAliasesFromEndpoint) {<NEW_LINE>List<String> vhHostAliasesAsList = null;<NEW_LINE>if (vhHostAliases == null) {<NEW_LINE>if (add) {<NEW_LINE>vhHostAliasesAsList <MASK><NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>...
= new ArrayList<String>();
360,793
public void marshall(Profile profile, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (profile == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(profile.getProfileArn(), PROFILEARN_BINDING);<NEW_LINE>protocol...
e.getMessage(), e);
1,624,786
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>String epl = "@Name('s0') select irstream theString as c0, sum(intPrimitive) as c1," + "window(*) as c2 from SupportBean.win:length(2)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.milestone(0);<NEW_LINE>Object e1 = sendS...
fields = "c0,c1,c2".split(",");
1,336,440
private void renderImports() {<NEW_LINE>TypeDeclaration typeDeclaration = type.getDeclaration();<NEW_LINE>// goog.module(...) declaration.<NEW_LINE>sourceBuilder.appendln("goog.module('" + typeDeclaration.getImplModuleName() + "');");<NEW_LINE>sourceBuilder.newLine();<NEW_LINE>// goog.require(...) for eager imports.<NE...
alias + " = " + previousAlias + ";");
268,232
CertificateValidatorBuilder parse(String keyUsage) {<NEW_LINE>if (keyUsage == null || keyUsage.trim().length() == 0)<NEW_LINE>return _parent;<NEW_LINE>String[] strs = keyUsage.split("[,]");<NEW_LINE>for (String s : strs) {<NEW_LINE>try {<NEW_LINE>KeyUsageBits bit = KeyUsageBits.parse(s.trim());<NEW_LINE>switch(bit) {<N...
logger.warnf("Unable to parse key usage bit: \"%s\"", s);
263,758
public ListIdentitiesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListIdentitiesResult listIdentitiesResult = new ListIdentitiesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
new ArrayList<String>());
483,866
public // means that a message never expires.<NEW_LINE>void testSetTimeToLive_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsCon...
println("Default time to live [ " + defaultTimeToLive + " ]");
1,255,432
public synchronized boolean insert(MBeanServerForwarderDelegate filter) {<NEW_LINE>if (filter != null && !contains(filter)) {<NEW_LINE>MBeanServerForwarderDelegate prev = null;<NEW_LINE>MBeanServerForwarderDelegate next = (first instanceof MBeanServerForwarderDelegate) ? (MBeanServerForwarderDelegate) first : null;<NEW...
next != null ? next : last);
1,488,034
private byte[] retransform(byte[] bytes) {<NEW_LINE>if (!determinedNeedToRetransform) {<NEW_LINE>try {<NEW_LINE>String s = System.getProperty("insight.enabled", "false");<NEW_LINE>if (s.equals("true")) {<NEW_LINE>// Access the weavingTransformer field, of type WeavingTransformer<NEW_LINE>ClassLoader cl = typeRegistry.g...
length + " newsize=" + newdata.length);
879,371
public DescribeThingTypeResult describeThingType(DescribeThingTypeRequest describeThingTypeRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeThingTypeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,065,334
public static ListDegradeRulesOfResourceResponse unmarshall(ListDegradeRulesOfResourceResponse listDegradeRulesOfResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDegradeRulesOfResourceResponse.setRequestId(_ctx.stringValue("ListDegradeRulesOfResourceResponse.RequestId"));<NEW_LINE>listDegradeRulesOfResourceRe...
= new ArrayList<DatasItem>();
575,289
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>resp.setContentType("text/html");<NEW_LINE>// Send jaxws request<NEW_LINE>try (PrintWriter out = resp.getWriter()) {<NEW_LINE>out.println("<html><head><title>Product Portal Page</title></head><body>");...
build("demo").toString();
429,381
public Response<Void> deleteByIdWithResponse(String id, String ifMatch, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificat...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
621,635
protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>// First stroke<NEW_LINE>myFirstStrokePanel = new StrokePanel(KeyMapBundle.message("first.stroke.panel.title"));<NEW_LINE>panel.add(myFirstStrokePanel, new GridBagConstraints(0, 0, 2, 1, 1, 0, GridBagConstraints...
0), 0, 0));
1,784,965
public void onClick(View arg0) {<NEW_LINE>ParticleSystem ps = new ParticleSystem(this, 100, R.drawable.star_pink, 800);<NEW_LINE>ps.setScaleRange(0.7f, 1.3f);<NEW_LINE>ps.setSpeedRange(0.1f, 0.25f);<NEW_LINE>ps.setRotationSpeedRange(90, 180);<NEW_LINE>ps.setFadeOut(200, new AccelerateInterpolator());<NEW_LINE>ps.oneSho...
(200, new AccelerateInterpolator());
1,536,655
private TransitLayer map(TransitTuningParameters tuningParameters) {<NEW_LINE>StopIndexForRaptor stopIndex;<NEW_LINE>Map<TripPattern, TripPatternWithRaptorStopIndexes> newTripPatternForOld;<NEW_LINE>HashMap<LocalDate, List<TripPatternForDate>> tripPatternsByStopByDate;<NEW_LINE>List<List<Transfer>> transferByStopIndex;...
tripPatternMapper.mapOldTripPatternToRaptorTripPattern(stopIndex, allTripPatterns);
203,829
private void showSubject(SslCertificate.DName subject, View dialogView) {<NEW_LINE>TextView cnView = dialogView.findViewById(R.id.value_subject_CN);<NEW_LINE>cnView.setText(subject.getCName());<NEW_LINE>cnView.setVisibility(View.VISIBLE);<NEW_LINE>TextView oView = dialogView.findViewById(R.id.value_subject_O);<NEW_LINE...
).setVisibility(View.GONE);
883,615
protected PresentationContext negotiate(AAssociateRQ rq, AAssociateAC ac, PresentationContext rqpc) {<NEW_LINE>String as = rqpc.getAbstractSyntax();<NEW_LINE>TransferCapability tc = roleSelection(rq, ac, as);<NEW_LINE>int pcid = rqpc.getPCID();<NEW_LINE>if (tc == null)<NEW_LINE>return new PresentationContext(pcid, Pres...
new ExtendedNegotiation(as, info));
1,071,918
protected void writeProcessRecord(String cName, Object... object) {<NEW_LINE>UpgradePhase phase = getUpgradePhase();<NEW_LINE>SortedMap<String, Object> recordMap = new TreeMap<String, Object>();<NEW_LINE>recordMap.put("phase", phase);<NEW_LINE>recordMap.put("cName", cName);<NEW_LINE>recordMap.put("timestamp", System.cu...
getUpgradePackagePath().toString());
1,424,542
protected SnippetTemplate.Arguments makeArguments(InstanceOfUsageReplacer replacer, LoweringTool tool) {<NEW_LINE>InstanceOfNode node = (InstanceOfNode) replacer.instanceOf;<NEW_LINE>TypeReference typeReference = node.type();<NEW_LINE>SharedType type = (SharedType) typeReference.getType();<NEW_LINE>DynamicHub hub = typ...
"start", hub.getTypeCheckStart());
266,166
private void onCursorPos(double xpos, double ypos) {<NEW_LINE>int xDelta;<NEW_LINE>int yDelta;<NEW_LINE>int x = (<MASK><NEW_LINE>int y = context.getHeight() - (int) Math.round(ypos);<NEW_LINE>if (mouseX == 0)<NEW_LINE>mouseX = x;<NEW_LINE>if (mouseY == 0)<NEW_LINE>mouseY = y;<NEW_LINE>xDelta = x - mouseX;<NEW_LINE>yDel...
int) Math.round(xpos);
1,296,952
private static JPanel createLayerConfigurationPanel(@Nonnull final ModuleEditor moduleEditor) {<NEW_LINE>BorderLayoutPanel panel = JBUI.Panels.simplePanel();<NEW_LINE>ModifiableRootModel moduleRootModel = moduleEditor.getModifiableRootModelProxy();<NEW_LINE>final MutableCollectionComboBoxModel<String> model = new Mutab...
add(new DeleteLayerAction(moduleEditor));
115,647
public boolean save(RandomAccessFile raf) throws IOException {<NEW_LINE>int globalOffset = 2;<NEW_LINE>int lastWritten = 0;<NEW_LINE>raf.seek(0);<NEW_LINE>for (int i = 0; i < 1024; i++) {<NEW_LINE>raf.seek(globalOffset * 4096L);<NEW_LINE>T chunk = chunks[i];<NEW_LINE>if (chunk == null || chunk.isEmpty()) {<NEW_LINE>con...
writeInt(chunk.getTimestamp());
357,982
public static String format(IPath filePath, String input) {<NEW_LINE>if (filePath == null || input == null || input.trim().length() == 0) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>IContentType contentType = Platform.getContentTypeManager().findContentTypeFor(filePath.lastSegment());<NEW_LINE>if (contentType != null)...
.setPartitioner((IExtendedPartitioner) partitioner);
1,771,453
public static DAOSet fromServices(ServiceSet services, FutureJdbi jdbi, Executor executor, MDBConfig mdbConfig) {<NEW_LINE>var set = new DAOSet();<NEW_LINE>set.uacApisUtil = new UACApisUtil(executor, services.uac);<NEW_LINE>set.metadataDAO = new MetadataDAORdbImpl();<NEW_LINE>set.commitDAO = new CommitDAORdbImpl(servic...
services.uac, mdbConfig, set);
1,718,683
private List<ItemEntity> createAudioChangeItems() {<NEW_LINE>List<ItemEntity> list = new ArrayList<>();<NEW_LINE>list.add(new ItemEntity(getResources().getString(R.string.audio_effect_setting_changetype_original), R<MASK><NEW_LINE>list.add(new ItemEntity(getResources().getString(R.string.audio_effect_setting_changetype...
.drawable.audio_effect_setting_changetype_original_open, AUDIO_VOICECHANGER_TYPE_0));
864,505
private void prepareMinMaxExpr(HDFSScanNodePredicates scanNodePredicates, ScanOperatorPredicates predicates, ExecPlan context) {<NEW_LINE>List<ScalarOperator> minMaxConjuncts = predicates.getMinMaxConjuncts();<NEW_LINE>TupleDescriptor minMaxTuple = context.getDescTbl().createTupleDescriptor();<NEW_LINE>for (ScalarOpera...
.toString(), slotDescriptor));
117,301
public void handleNotification(Notification notification) {<NEW_LINE>super.handleNotification(notification);<NEW_LINE>Sandbox sandbox = Sandbox.getInstance();<NEW_LINE><MASK><NEW_LINE>switch(notification.getName()) {<NEW_LINE>case UIBasicItemProperties.TAGS_BUTTON_CLICKED:<NEW_LINE>viewComponent.show(uiStage);<NEW_LINE...
UIStage uiStage = sandbox.getUIStage();
355,027
private void handleShowExport() throws AnalysisException {<NEW_LINE>ShowExportStmt showExportStmt = (ShowExportStmt) stmt;<NEW_LINE><MASK><NEW_LINE>Database db = catalog.getDb(showExportStmt.getDbName());<NEW_LINE>if (db == null) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_BAD_DB_ERROR, showExportStmt....
Catalog catalog = Catalog.getCurrentCatalog();
1,329,460
final DeleteActivityResult executeDeleteActivity(DeleteActivityRequest deleteActivityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteActivityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteActiv...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
264,348
public static SandboxedServiceContext create(final ServiceContext serviceContext) {<NEW_LINE>if (serviceContext instanceof SandboxedServiceContext) {<NEW_LINE>return (SandboxedServiceContext) serviceContext;<NEW_LINE>}<NEW_LINE>final KafkaClientSupplier kafkaClientSupplier = new SandboxedKafkaClientSupplier();<NEW_LINE...
createProxy(serviceContext.getSchemaRegistryClient());
772,813
public void marshall(AssessmentFrameworkShareRequest assessmentFrameworkShareRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assessmentFrameworkShareRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
assessmentFrameworkShareRequest.getFrameworkDescription(), FRAMEWORKDESCRIPTION_BINDING);
913,029
public List<Result> resetOffsets(ClusterDO clusterDO, OffsetResetDTO dto) {<NEW_LINE>if (ValidateUtils.isNull(dto)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<PartitionOffsetDTO> offsetDTOList = this.getPartitionOffsetDTOList(clusterDO, dto);<NEW_LINE>if (ValidateUtils.isEmptyList(offsetDTOList)) {<NEW_LINE>retur...
getTopicName(), consumerGroup, offsetDTOList);
1,026,555
public void printGroupWithDetails(Group group) {<NEW_LINE>System.out.println(group.getName());<NEW_LINE>GroupDetailResponse groupDetails;<NEW_LINE>try {<NEW_LINE>groupDetails = keywhizClient.<MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>throw Throwables.propagate(e);<NEW_LINE>}<NEW_LINE>System.out.println(INDENT +...
groupDetailsForId(group.getId());
72,552
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = game.getPermanent(source.getTargets().getFirstTarget());<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Permanent> attachments = new ArrayList<>();<N...
getPlayer(source.getControllerId());
128,200
int run(final Namespace options, final HeliosClient client, final PrintStream out, final boolean json, final BufferedReader stdin) throws ExecutionException, InterruptedException {<NEW_LINE>final String jobIdString = options.getString(jobArg.getDest());<NEW_LINE>final String hostPattern = options.getString(hostArg.getD...
out.printf("job id matcher \"%s\" matched no jobs%n", jobIdString);
182,720
protected void sendEmail(Context context, String email, boolean isRegister, RegistrationData rd) throws MessagingException, IOException, SQLException {<NEW_LINE>String base = configurationService.getProperty("dspace.ui.url");<NEW_LINE>// Note change from "key=" to "token="<NEW_LINE>String specialLink = new StringBuffer...
: "account") + " information to " + email);
1,270,619
public Pair<Double, SGDVector> lossAndGradient(SGDVector truth, SGDVector prediction) {<NEW_LINE>DenseVector labels, densePred;<NEW_LINE>if (truth instanceof SparseVector) {<NEW_LINE>labels = ((SparseVector) truth).densify();<NEW_LINE>} else {<NEW_LINE>labels = (DenseVector) truth;<NEW_LINE>}<NEW_LINE>if (prediction in...
pred = densePred.get(i);
1,617,937
public void validateInstance(ModuleMetaData mmd, ClassLoader loader, Object instance) {<NEW_LINE>// perform BeanValidation function<NEW_LINE>Validator validator = beanValidationSvc.getValidator(mmd, loader);<NEW_LINE>Set<ConstraintViolation<Object>> cvSet = null;<NEW_LINE>try {<NEW_LINE>cvSet = validator.validate(insta...
error(tc, "BEAN_VALIDATION_FAILED_J2CA0238", msgArgs);
1,176,615
protected void preventUnsavedChanges(BeforeCloseEvent event) {<NEW_LINE>CloseAction action = event.getCloseAction();<NEW_LINE>if (action instanceof ChangeTrackerCloseAction && ((ChangeTrackerCloseAction) action).isCheckForUnsavedChanges() && hasUnsavedChanges()) {<NEW_LINE>Configuration configuration = getBeanLocator(<...
).get(Configuration.NAME);
122,362
final DeleteConnectionResult executeDeleteConnection(DeleteConnectionRequest deleteConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,637,329
private void addBlockVisitor(@NonNull MarkwonVisitor.Builder builder) {<NEW_LINE>if (!config.blocksEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>builder.on(JLatexMathBlock.class, new MarkwonVisitor.NodeVisitor<JLatexMathBlock>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(@NonNull MarkwonVisitor visitor...
.append(prepareLatexTextPlaceholder(latex));
1,184,597
public Request<ListDimensionsRequest> marshall(ListDimensionsRequest listDimensionsRequest) {<NEW_LINE>if (listDimensionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListDimensionsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListDimensionsRequest> request = new DefaultRequ...
request.setHttpMethod(HttpMethodName.GET);
1,843,268
private void replaceFileManagerJdk9(Context context, JavaFileManager newFiler) {<NEW_LINE>try {<NEW_LINE>JavaCompiler compiler = (JavaCompiler) Permit.invoke(Permit.getMethod(JavaCompiler.class, "instance", Context.class), null, context);<NEW_LINE>try {<NEW_LINE>Field fileManagerField = Permit.getField(JavaCompiler.cla...
set(fileManagerField, compiler, newFiler);
903,022
private void threeWayStringQuickSort(String[] array, int low, int high, int digit) {<NEW_LINE>if (low >= high) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int lowerThan = low;<NEW_LINE>int greaterThan = high;<NEW_LINE>int pivot = charAt(array[low], digit);<NEW_LINE>// If digit exists, check if it is the rightmost character ...
(array[index], digit);
1,263,332
public void mergeUserPrivileges(PolarAccountInfo other) {<NEW_LINE>instPriv.mergePriv(other.instPriv, PrivManageType.GRANT_PRIVILEGE);<NEW_LINE>for (String dbKey : other.getDbPrivMap().keySet()) {<NEW_LINE>PolarDbPriv <MASK><NEW_LINE>PolarDbPriv otherDbPriv = other.dbPrivMap.get(dbKey);<NEW_LINE>if (curDbPriv == null) ...
curDbPriv = dbPrivMap.get(dbKey);
939,111
protected boolean post_default_network_rules(final Connect conn, final String vmName, final NicTO nic, final Long vmId, final InetAddress dhcpServerIp, final String hostIp, final String hostMacAddr) {<NEW_LINE>if (!_canBridgeFirewall) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final List<InterfaceDef> intfs = getInte...
"--vmip", nic.getIp());
94,448
public void marshall(CreateInstanceRequest createInstanceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInstanceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createInstanceRequest...
createInstanceRequest.getSubnetId(), SUBNETID_BINDING);
535,261
private static ErrorDescription hint(HintContext ctx, String bundleKey) {<NEW_LINE>TreePath annotationPath = ctx.getVariables().get("$annotation");<NEW_LINE>Element annotation = ctx.getInfo().getTrees().getElement(annotationPath);<NEW_LINE>if (annotation == null || annotation.getKind() != ElementKind.ANNOTATION_TYPE) {...
.getQualifiedName().toString();
841,343
private static void registerManagedAllocationIntrinsics() {<NEW_LINE>// handle functions (first name is official, second name is deprecated and for compatibility<NEW_LINE>add("_graalvm_llvm_create_handle", "truffle_handle_for_managed", (args, nodeFactory) -> GraalVMCreateHandleNodeGen.create(args.get(1)));<NEW_LINE>add...
args.get(1)));
397,535
void retryOnException() {<NEW_LINE>Predicate<Throwable> rateLimitPredicate = rle -> (rle instanceof RateLimitExceededException) && "RL-101".equals(((RateLimitExceededException) rle).getErrorCode());<NEW_LINE>RetryConfig config = RetryConfig.custom().maxAttempts(3).waitDuration(Duration.of(1, SECONDS)).retryOnException(...
registry.retry("flightSearchService", config);
1,706,286
public static JRPrintHyperlink evaluateHyperlink(JRHyperlink hyperlink, JRFillExpressionEvaluator expressionEvaluator, byte evaluationType) throws JRException {<NEW_LINE>if (hyperlink == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Boolean hyperlinkWhen = (Boolean) expressionEvaluator.evaluate(hyperlink.getHyperli...
.getHyperlinkAnchorExpression(), evaluationType));
125,979
private void installGroovySemanticHighlighting() {<NEW_LINE>try {<NEW_LINE>semanticReconciler = new GroovySemanticReconciler();<NEW_LINE>// fReconcilingListeners.getListeners() contains fSemanticManager.getReconciler()<NEW_LINE>org.eclipse.core.runtime.ListenerList<IJavaReconcilingListener> list = ReflectionUtils.throw...
new Object[] { semanticReconciler });
1,075,116
public static void main(String[] args) throws IOException {<NEW_LINE>// Use the factory to get Cex.IO exchange API using default settings<NEW_LINE>Exchange exchange = ExchangeFactory.INSTANCE.createExchange(CexIOExchange.class);<NEW_LINE>// Interested in the public market data feed (no authentication)<NEW_LINE>MarketDa...
"Ask: " + ticker.getAsk());
1,286,233
public static void down(GrayS32 input, GrayS32 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
(total + 2) / 4);
973,639
public static void vertical9(Kernel1D_S32 kernel, GrayU16 src, GrayI16 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<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 in...
[indexSrc] & 0xFFFF) * k1;
128,763
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>// Get URI<NEW_LINE>String uri = "";<NEW_LINE>if (request instanceof HttpServletRequest) {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>uri = req.getReque...
(uri, AlignType.CENTER));
445,391
@ResponseBody<NEW_LINE>public PersistableProductReview createProductReview(@PathVariable final String store, @Valid @RequestBody PersistableProductReview review, HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>try {<NEW_LINE>MerchantStore merchantStore = (MerchantStore) request.get...
merchantStore, merchantStore.getDefaultLanguage());
1,377,151
// fromContentlet.<NEW_LINE>@CloseDBIfOpened<NEW_LINE>@Override<NEW_LINE>public void validateVanityUrl(final Contentlet contentlet) {<NEW_LINE>final Language language = Try.of(() -> WebAPILocator.getLanguageWebAPI().getLanguage(HttpServletRequestThreadLocal.INSTANCE.getRequest())).getOrElse(APILocator.getLanguageAPI()....
contentlet, language, VanityUrlContentType.TITLE_FIELD_VAR);
1,066,510
public void elemUpdate(DoubleElemUpdateFunc func) {<NEW_LINE>StorageMethod method = VectorStorageUtils.getStorageMethod(vector);<NEW_LINE>switch(method) {<NEW_LINE>case DENSE:<NEW_LINE>{<NEW_LINE>double[] values = getVector().getStorage().getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>values[i...
setValue(func.update());
1,181,413
public void marshall(CreateEnvironmentRequest createEnvironmentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createEnvironmentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createEnviro...
createEnvironmentRequest.getTemplateMinorVersion(), TEMPLATEMINORVERSION_BINDING);
769,537
private void parseChunkHeader(String line, HashMap<String, String> chunkOptions) {<NEW_LINE>String modeId = display_.getModeId();<NEW_LINE>Pattern pattern = null;<NEW_LINE>if (modeId == "mode/rmarkdown")<NEW_LINE>pattern = RegexUtil.RE_RMARKDOWN_CHUNK_BEGIN;<NEW_LINE>else if (modeId == "mode/sweave")<NEW_LINE>pattern =...
) : extracted.indexOf(',');
599,243
public StripeResponseStream requestStream(StripeRequest request) throws ApiConnectionException {<NEW_LINE>try {<NEW_LINE>final HttpURLConnection conn = createStripeConnection(request);<NEW_LINE>// Calling `getResponseCode()` triggers the request.<NEW_LINE>final int responseCode = conn.getResponseCode();<NEW_LINE>final ...
StripeResponseStream(responseCode, headers, responseStream);
1,153,958
public static DescribeServerCertificatesResponse unmarshall(DescribeServerCertificatesResponse describeServerCertificatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeServerCertificatesResponse.setRequestId(_ctx.stringValue("DescribeServerCertificatesResponse.RequestId"));<NEW_LINE>List<ServerCertificate> serv...
("DescribeServerCertificatesResponse.ServerCertificates[" + i + "].CreateTime"));
1,364,385
public InputStream stream(java.net.URI uri, IProgressMonitor progressMonitor) throws CoreException {<NEW_LINE>WebLocation location = new WebLocation(uri.toString());<NEW_LINE>SubMonitor monitor = SubMonitor.convert(progressMonitor);<NEW_LINE>monitor.subTask(NLS.bind("Fetching {0}", location.getUrl()));<NEW_LINE>try {<N...
createHostConfiguration(client, location, monitor);
578,195
private void populateMoveLineMap(Map<List<Object>, Pair<List<MoveLine>, List<MoveLine>>> moveLineMap, List<MoveLine> reconciliableMoveLineList, boolean isCredit) {<NEW_LINE>for (MoveLine moveLine : reconciliableMoveLineList) {<NEW_LINE>Move move = moveLine.getMove();<NEW_LINE>List<Object> keys = new ArrayList<Object>()...
() : moveLineLists.getRight();
1,293,209
V remove(final long key, int hash, Object value) {<NEW_LINE>lock();<NEW_LINE>try {<NEW_LINE>int c = count - 1;<NEW_LINE>HashEntry<V>[] tab = table;<NEW_LINE>int index = hash & (tab.length - 1);<NEW_LINE>HashEntry<V> first = tab[index];<NEW_LINE>HashEntry<V> e = first;<NEW_LINE>while (e != null && (e.hash != hash || key...
key)) e = e.next;
193,361
final CreateConfigurationSetEventDestinationResult executeCreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationSetEventDestinationRequest);<NEW_LINE>AWS...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
96,491
public static void checkFileList(Object path) {<NEW_LINE>boolean checkSwitch = Config.getConfig().getPluginFilter();<NEW_LINE>if (path != null) {<NEW_LINE>File file = (File) Reflection.invokeMethod(path, "toFile", new Class[] {});<NEW_LINE>if (checkSwitch && !file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HashMa...
"realpath", file.getCanonicalPath());
1,774,938
protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap, BpmnJsonConverterContext converterContext) {<NEW_LINE>HttpServiceTask task = new HttpServiceTask();<NEW_LINE>task.setType("http");<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.isNotEmpty(parallelInSam...
parallelInSameTransaction = getPropertyValueAsString(PROPERTY_HTTPTASK_PARALLEL_IN_SAME_TRANSACTION, elementNode);
1,553,046
public static DescribeBindersResponse unmarshall(DescribeBindersResponse describeBindersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBindersResponse.setRequestId(_ctx.stringValue("DescribeBindersResponse.RequestId"));<NEW_LINE>describeBindersResponse.setErrorMessage(_ctx.stringValue("DescribeBindersResponse.E...
("DescribeBindersResponse.EslItemBindInfos[" + i + "].TemplateId"));
535,200
private void resolveSpecialization(JMethod method) {<NEW_LINE>// TODO (cromwellian): Move to GwtAstBuilder eventually<NEW_LINE>if (method.getSpecialization() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Specialization specialization = method.getSpecialization();<NEW_LINE>if (specialization.getParams() == null) {<NEW...
translate(specialization.getParams());
1,325,474
private OptionType type(ConfiguredOptionData annotation, ExecutableElement element) {<NEW_LINE>if (annotation.type == null || annotation.type.equals(CONFIGURED_OPTION_CLASS)) {<NEW_LINE>// guess from method<NEW_LINE>List<? extends VariableElement> parameters = element.getParameters();<NEW_LINE>if (parameters.size() != ...
PrimitiveType) paramType).toString();
34,724
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {<NEW_LINE>String sql;<NEW_LINE>SqlMethod sqlMethod = SqlMethod.LOGIC_DELETE;<NEW_LINE>if (tableInfo.isWithLogicDelete()) {<NEW_LINE>sql = String.format(sqlMethod.getSql(), tableInfo.getTableName(), sqlLogicSet(...
, tableInfo), sqlComment());
1,486,189
public static String parseInlineEmotes(String markdown, JSONObject mediaMetadataObject) throws JSONException {<NEW_LINE><MASK><NEW_LINE>if (mediaMetadataNames != null) {<NEW_LINE>for (int i = 0; i < mediaMetadataNames.length(); i++) {<NEW_LINE>if (!mediaMetadataNames.isNull(i)) {<NEW_LINE>String mediaMetadataKey = medi...
JSONArray mediaMetadataNames = mediaMetadataObject.names();