idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
751,875
private HTTPResponse adaptToNimbusResponse(ResponseEntity<String> responseEntity) {<NEW_LINE>MediaType contentType = responseEntity<MASK><NEW_LINE>if (contentType == null) {<NEW_LINE>this.logger.trace("Did not receive Content-Type from introspection endpoint in response");<NEW_LINE>throw new OAuth2IntrospectionExceptio...
.getHeaders().getContentType();
1,600,658
private void loadColors(final Preferences preferences, final OutputOptions diskData) {<NEW_LINE>int rgbStandard = preferences.getInt(PREFIX + PROP_COLOR_STANDARD, getDefaultColorStandard().getRGB());<NEW_LINE>diskData.setColorStandard(new Color(rgbStandard));<NEW_LINE>int rgbError = preferences.getInt(PREFIX + PROP_COL...
getDefaultColorDebug().getRGB());
517,031
void fixPartialLastDayAll(Map<String, JurisdictionData> countryData, who.RefreshCaseStatsServlet.JurisdictionData globalData) {<NEW_LINE>// Global last snapshot<NEW_LINE>// Last day snapshot daily cases and deaths may remain as partial<NEW_LINE>StoredCaseStats.StoredStatSnapshot snapshot = globalData.snapshots.get(glob...
logger.info("Countries last day removed: " + countriesLastDayRemoved);
1,850,036
public static DescribeOssObjectsResponse unmarshall(DescribeOssObjectsResponse describeOssObjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeOssObjectsResponse.setRequestId(_ctx.stringValue("DescribeOssObjectsResponse.RequestId"));<NEW_LINE>describeOssObjectsResponse.setPageSize(_ctx.integerValue("DescribeOs...
(_ctx.integerValue("DescribeOssObjectsResponse.CurrentPage"));
1,066,705
public int onUpdate(int type) {<NEW_LINE>if (type == Level.BLOCK_UPDATE_NORMAL) {<NEW_LINE>int[] faces = new int[] { 3, 4, 2, 5, 3, 4, 2, 5, 3, 4, 2, 5 };<NEW_LINE>Block side = this.getSide(BlockFace.fromIndex(faces[this.getDamage()]));<NEW_LINE>if (side.getId() != Block.WOOD && side.getDamage() != BlockWood.JUNGLE) {<...
getNewState(), true, true);
1,821,348
public void marshall(UpdateFuotaTaskRequest updateFuotaTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFuotaTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateFuotaTaskReq...
e.getMessage(), e);
153,381
private void initGlobalQpsController() {<NEW_LINE>DynamicProperty globalLimitProperty = DynamicProperty.getInstance(globalLimitKey);<NEW_LINE>DynamicProperty globalBucketProperty = DynamicProperty.getInstance(globalBucketKey);<NEW_LINE>DynamicProperty globalStrategyProperty = DynamicProperty.getInstance(Config.STRATEGY...
"Global qps limit update, value = [{}]", globalLimitProperty.getLong());
385,758
public Set<ExplicitGroup> findDirectGroups(RoleAssignee ra, DvObject o) {<NEW_LINE>if (o == null) {<NEW_LINE>return Collections.emptySet();<NEW_LINE>}<NEW_LINE>List<ExplicitGroup> groupList = new LinkedList<>();<NEW_LINE>if (ra instanceof ExplicitGroup) {<NEW_LINE>for (DvObject cur = o; cur != null; cur = cur.getOwner(...
()).getResultList());
131,763
void addFieldResources() throws IOException {<NEW_LINE>if (fieldTemplates.isEmpty())<NEW_LINE>return;<NEW_LINE>PdfDictionary catalog = reader.getCatalog();<NEW_LINE>PdfDictionary acroForm = (PdfDictionary) PdfReader.getPdfObject(catalog.get(PdfName.ACROFORM), catalog);<NEW_LINE>if (acroForm == null) {<NEW_LINE>acroForm...
template.getResources(), this);
364,687
protected void sortRanges() {<NEW_LINE>if (this.isSorted())<NEW_LINE>return;<NEW_LINE>if (this.ranges == null)<NEW_LINE>return;<NEW_LINE>// System.err.println("Do sorting: "+this.ranges.length);<NEW_LINE>// Bubble sort<NEW_LINE>// Why? -- In many cases,<NEW_LINE>// this.ranges has few elements.<NEW_LINE>for (int i = th...
ranges[j + 1] = tmp;
1,546,441
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {<NEW_LINE>if (base != null) {<NEW_LINE>base.renderToBuffer(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, <MASK><NEW_LINE>if (ArmorModelHelper....
red, green, blue, alpha);
1,757,128
public void selected(com.biglybt.pif.ui.menus.MenuItem menu, Object target) {<NEW_LINE>Object existing_o = column.getUserData("CustomDate");<NEW_LINE>String existing_text = "";<NEW_LINE>if (existing_o instanceof String) {<NEW_LINE>existing_text = (String) existing_o;<NEW_LINE>} else if (existing_o instanceof byte[]) {<...
byte[]) existing_o, "UTF-8");
1,772,577
private void exportOverallSummary(PrintWriter out, GCModel model) {<NEW_LINE>FormattedValue formed = footprintFormatter.formatToFormatted(model.getFootprint());<NEW_LINE>exportValue(out, "footprint", formed.getValue(), formed.getUnits());<NEW_LINE>formed = footprintFormatter.formatToFormatted(model.getFreedMemory());<N...
().getN() > 0;
339,132
public void validateSystemTag(String resourceUuid, Class resourceType, String systemTag) {<NEW_LINE>Map<String, String> tokens = LoadBalancerSystemTags.BALANCER_WEIGHT.getTokensByTag(systemTag);<NEW_LINE>String nicUuid = tokens.get(LoadBalancerSystemTags.BALANCER_NIC_TOKEN);<NEW_LINE>if (!dbf.isExist(nicUuid, VmNicVO.c...
.BALANCER_WEIGHT_MIN, LoadBalancerConstants.BALANCER_WEIGHT_MAX));
1,685,720
protected boolean tryBuildWithCurrentNode(List<DMLResponseHandler> subQueryEndHandlers, Set<String> subQueryRouteNodes) {<NEW_LINE>HandlerBuilder builder = new HandlerBuilder(node, session);<NEW_LINE>// use node.copy(),it will replace sub-queries to 'NEED_REPLACE'<NEW_LINE>List<DMLResponseHandler<MASK><NEW_LINE>{<NEW_L...
> merges = Lists.newArrayList();
470,224
public void createOrUpdateIndexerSkillsetWithResponseAsync2() {<NEW_LINE>// BEGIN: com.azure.search.documents.indexes.SearchIndexerAsyncClient.createOrUpdateSkillsetWithResponse#CreateOrUpdateSkillsetOptions<NEW_LINE>searchIndexerAsyncClient.getSkillset("searchIndexerSkillset").flatMap(indexerSkillset -> {<NEW_LINE>ind...
().getDescription()));
1,375,816
// Ensure that method annotations are not written on methods they don't apply to.<NEW_LINE>@Override<NEW_LINE>public Void visitMethod(MethodTree node, Void p) {<NEW_LINE>ExecutableElement methElt = TreeUtils.elementFromDeclaration(node);<NEW_LINE>boolean hasCompareToMethodAnno = atypeFactory.getDeclAnnotation(methElt, ...
super.visitMethod(node, p);
1,349,841
private Optional<EventStreamInfo> createEventStreamInfo(Model model, OperationShape operation, StructureShape structure, MemberShape member) {<NEW_LINE>Shape eventStreamTarget = model.expectShape(member.getTarget());<NEW_LINE>// Compute the events of the event stream.<NEW_LINE>Map<String, StructureShape> events = new H...
, initialMembers, initialTargets, events));
1,068,419
private void applyNewSplits(String textureRegionName, int[] splits) {<NEW_LINE>// first need to modify original image<NEW_LINE>FileHandle packAtlas = Gdx.files.internal(plugin.getAPI().getProjectPath() + "/assets/orig/pack/pack.atlas");<NEW_LINE>FileHandle imagesDir = Gdx.files.internal(plugin.getAPI().getProjectPath()...
) + "/assets/orig/images/" + textureRegionName + ".9.png");
1,063,979
final UpdateServiceSpecificCredentialResult executeUpdateServiceSpecificCredential(UpdateServiceSpecificCredentialRequest updateServiceSpecificCredentialRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateServiceSpecificCredentialRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
endClientExecution(awsRequestMetrics, request, response);
667,043
protected LibraryHeader loadHeader(ErrorReporter errorReporter) {<NEW_LINE>if (myConfig.getSourcesDir() != null) {<NEW_LINE>mySourceBasePath = myHeaderFile.getParent().resolve(myConfig.getSourcesDir());<NEW_LINE>}<NEW_LINE>if (myConfig.getTestsDir() != null) {<NEW_LINE>myTestBasePath = myHeaderFile.getParent().resolve(...
EXTENSION, myLibraryHeader.modules, errorReporter);
1,825,090
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {<NEW_LINE>// NON-NLS<NEW_LINE><MASK><NEW_LINE>// NON-NLS<NEW_LINE>Preconditions.checkNotNull(args, "Arguments cannot be null");<NEW_LINE>// NON-NLS<NEW_LINE>Preconditions.checkNotNull(alias, "Alias cannot...
Preconditions.checkNotNull(sender, "Sender cannot be null");
1,411,039
protected boolean okAction() {<NEW_LINE>setMultipleValues(false);<NEW_LINE>if (automaticRadioButton.isChecked()) {<NEW_LINE>property.setValue(CONST_AUTOMATIC);<NEW_LINE>} else if (fillParentRadioButton.isChecked()) {<NEW_LINE>property.setValue(CONST_FILL_PARENT);<NEW_LINE>} else if (customLengthRadioButton.isChecked())...
String text = percentLengthField.getText();
1,119,808
public void marshall(TransferDomainRequest transferDomainRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transferDomainRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transferDomainRequest...
transferDomainRequest.getRegistrantContact(), REGISTRANTCONTACT_BINDING);
1,586,508
protected org.activiti.engine.impl.persistence.entity.TaskEntity convertToActiviti5TaskEntity(TaskEntity task) {<NEW_LINE>org.activiti.engine.impl.persistence.entity.TaskEntity activiti5Task = new org.activiti.engine.impl.persistence.entity.TaskEntity();<NEW_LINE>activiti5Task.<MASK><NEW_LINE>activiti5Task.setInitialAs...
setAssigneeWithoutCascade(task.getAssignee());
1,592,173
public static void main(String[] args) {<NEW_LINE>ImageType type = ImageType.pl(3, GrayU8.class);<NEW_LINE>List<PathLabel> examples = new ArrayList<>();<NEW_LINE>examples.add(new PathLabel("Half Dome 01", UtilIO.pathExample("spherical/equirectangular_half_dome_01.jpg")));<NEW_LINE>examples.add(new PathLabel("Half Dome ...
0).getPath()));
1,818,802
public void run() {<NEW_LINE>try {<NEW_LINE>preSetup();<NEW_LINE>closed = false;<NEW_LINE>while (!shutdown) {<NEW_LINE>try {<NEW_LINE>LOGGER.<MASK><NEW_LINE>final Socket socket = serverSocket.accept();<NEW_LINE>if (socket != null) {<NEW_LINE>ConnectionHandler ch = new ConnectionHandler(socket);<NEW_LINE>Thread t = new ...
info("Listening on port " + port + "...\n");
1,784,552
public Object childEvaluate(Parser parser, VariableResolver resolver, String functionName, List<Object> args) throws ParserException {<NEW_LINE>if (!MapTool.getParser().isMacroTrusted()) {<NEW_LINE>if (!MapTool.getFrame().getInitiativePanel().hasGMPermission())<NEW_LINE>throw new ParserException(I18N<MASK><NEW_LINE>}<N...
.getText("macro.function.initiative.mustBeGM", functionName));
807,365
public Mono<Response<SlotConfigNamesResourceInner>> listSlotConfigurationNamesWithResponseAsync(String resourceGroupName, String name) {<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_...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,721,154
public void onClick(View v) {<NEW_LINE>final PopupMenu popupMenu = new PopupMenu(v.getContext(), v);<NEW_LINE>popupMenu.getMenu().add(R.string.horizontal).setOnMenuItemClickListener(new OnMenuItemClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>AppState.ge...
horizontal : R.string.vertical);
1,404,164
final TestWirelessDeviceResult executeTestWirelessDevice(TestWirelessDeviceRequest testWirelessDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testWirelessDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,200,563
final DBCluster executeModifyDBCluster(ModifyDBClusterRequest modifyDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,651,791
// copyLinesFrom<NEW_LINE>@Override<NEW_LINE>public boolean voidIt() {<NEW_LINE>log.info("voidIt - " + toString());<NEW_LINE>// Before Void<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_VOID);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return false;<NEW_LINE>MRM...
[] lines = getLines(true);
1,040,086
private void writeElement(XmlItem xmlValue) throws XMLStreamException {<NEW_LINE>// Setup namespace hierarchy<NEW_LINE>Set<String> prevNSSet = this.parentNSSet.peek();<NEW_LINE>HashSet<String> currentNSLevel = prevNSSet == null ? new HashSet<>() : new HashSet<>(prevNSSet);<NEW_LINE>this.parentNSSet.push(currentNSLevel)...
nsPrefixMap = new LinkedHashMap<>();
1,200,682
// parse the trade info<NEW_LINE>private TradeInfo parseTradeInfo(CsvRow row) {<NEW_LINE>TradeInfoBuilder infoBuilder = TradeInfo.builder();<NEW_LINE>String scheme = row.findField(ID_SCHEME_FIELD).orElse(DEFAULT_TRADE_SCHEME);<NEW_LINE>row.findValue(ID_FIELD).ifPresent(id -> infoBuilder.id(StandardId.<MASK><NEW_LINE>St...
of(scheme, id)));
1,031,751
public void run() {<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>final boolean completed = ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>session.execute(getIncludedChanges(), getCommitMessage());<NEW_LIN...
(new VcsException(e)));
45,728
public static void fhirStoreExecuteBundle(String fhirStoreName, String data) throws IOException, URISyntaxException {<NEW_LINE>// String fhirStoreName =<NEW_LINE>// String.format(<NEW_LINE>// FHIR_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-fhir-id");<NEW_LINE>// String data = "{\"resourceType\"...
responseEntity.writeTo(System.err);
191,716
public static GenerateUpgradeRecordResponse unmarshall(GenerateUpgradeRecordResponse generateUpgradeRecordResponse, UnmarshallerContext _ctx) {<NEW_LINE>generateUpgradeRecordResponse.setRequestId(_ctx.stringValue("GenerateUpgradeRecordResponse.RequestId"));<NEW_LINE>List<RecordsItem> records = new ArrayList<RecordsItem...
("GenerateUpgradeRecordResponse.Records[" + i + "].RegionId"));
273,607
public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() {<NEW_LINE>com.google.protobuf.DescriptorProtos.EnumOptions result = new com.google.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField...
protobuf.DescriptorProtos.EnumOptions(this);
1,152,800
private static Feature buildFeature(Object field, String type) {<NEW_LINE>Feature.Builder feature = Feature.newBuilder();<NEW_LINE>ByteString byteString;<NEW_LINE>switch(type) {<NEW_LINE>case "STRING":<NEW_LINE>case "TIME":<NEW_LINE>case "DATE":<NEW_LINE>if (field instanceof GenericData.Array) {<NEW_LINE>buildFeatureFr...
getInt64ListBuilder().addValue(boolAsInt);
1,372,084
public static DeleteEmailVerificationResponse unmarshall(DeleteEmailVerificationResponse deleteEmailVerificationResponse, UnmarshallerContext context) {<NEW_LINE>deleteEmailVerificationResponse.setRequestId(context.stringValue("DeleteEmailVerificationResponse.RequestId"));<NEW_LINE>List<SendResult> successList = new Ar...
("DeleteEmailVerificationResponse.SuccessList[" + i + "].Message"));
330,279
private MInvoice createCounterDoc() {<NEW_LINE>// Is this a counter doc ?<NEW_LINE>if (getRef_Invoice_ID() != 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Org Must be linked to BPartner<NEW_LINE>final MOrg org = MOrg.get(getCtx(), getAD_Org_ID());<NEW_LINE>final int counterC_BPartner_ID = org.getLinkedC_BPartner_I...
debug(counter.toString());
70,030
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Mapbox access token is configured here. This needs to be called either in your application<NEW_LINE>// object or in the same activity which contains the mapview.<NEW_LINE>Mapbox.getInstance(this, getString(R.st...
findViewById(R.id.cycling_profile_button);
65,758
private ASTParser createParser(int kind) {<NEW_LINE>ASTParser parser = ASTParser.newParser(AST.JLS17);<NEW_LINE>if (kind == K_MODULE_INFO) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>parser.setSource(this.sourceArray);<NEW_LINE>}<NEW_LINE>parser.setKind(FORMAT_TO_PARSER_KIND.get(kind));<NEW_LINE>Map<String, String> pa...
parser.setSource(createDummyModuleInfoCompilationUnit());
1,585,672
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfileBuffe...
constructor.addInterceptor(CommsCallbackV5ConstructorInterceptor.class);
487,283
public void marshall(ApiDestination apiDestination, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (apiDestination == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(apiDestination.getApiDestinationArn(), API...
apiDestination.getInvocationEndpoint(), INVOCATIONENDPOINT_BINDING);
935,519
public static void main(String[] args) {<NEW_LINE>LinkList ll = new LinkList();<NEW_LINE>Node head = null;<NEW_LINE>head = <MASK><NEW_LINE>head = ll.addNode(2, head);<NEW_LINE>head = ll.addNode(3, head);<NEW_LINE>head = ll.addNode(4, head);<NEW_LINE>head = ll.addNode(5, head);<NEW_LINE>head = ll.addNode(6, head);<NEW_L...
ll.addNode(1, head);
1,500,696
public void openInternal(InputSplit inputSplit) {<NEW_LINE>this.inputSplit = (DistributedJdbcInputSplit) inputSplit;<NEW_LINE>this.sourceList = this.inputSplit.getSourceList();<NEW_LINE>if (CollectionUtils.isEmpty(this.sourceList)) {<NEW_LINE>noDataSource = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (FieldConf fiel...
add(fieldConf.getType());
927,763
private void constructValue() {<NEW_LINE>if (updating) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updating = true;<NEW_LINE>HighlightItem metaItem = new HighlightItem(metaPrefixes.getText(<MASK><NEW_LINE>String mPrefixes = metaItem.getMetaPrefixes();<NEW_LINE>String mPrefixesExtra = metaItem.getRaw().substring(metaItem.get...
), "", false, null);
49,807
public void toXML(XMLWriter generatedXML) {<NEW_LINE>generatedXML.writeElement(null, "activelock", XMLWriter.OPENING);<NEW_LINE>generatedXML.writeElement(null, "locktype", XMLWriter.OPENING);<NEW_LINE>generatedXML.writeElement(null, type, XMLWriter.NO_CONTENT);<NEW_LINE>generatedXML.writeElement(null, "locktype", XMLWr...
null, "lockscope", XMLWriter.CLOSING);
1,774,081
public void marshall(UpdateControlRequest updateControlRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateControlRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateControlRequest.get...
updateControlRequest.getControlMappingSources(), CONTROLMAPPINGSOURCES_BINDING);
1,583,517
protected int _getPixelColor(int x, int y) {<NEW_LINE>NativeScreen screen = NativePlatformFactory.getNativePlatform().getScreen();<NEW_LINE>final int byteDepth = screen.getDepth() >>> 3;<NEW_LINE>final int bwidth = screen.getWidth();<NEW_LINE>final int bheight = screen.getHeight();<NEW_LINE>if (x < 0 || x > bwidth || y...
) (v & 0x1F) << 3;
1,453,155
public void initFromOnnx(Onnx.NodeProto node, SameDiff initWith, Map<String, Onnx.AttributeProto> attributesForNode, Onnx.GraphProto graph) {<NEW_LINE>val autoPad = !attributesForNode.containsKey("auto_pad") ? "VALID" : attributesForNode.get("auto_pad").getS().toStringUtf8();<NEW_LINE>val dilations = attributesForNode....
getIntsList().get(0);
1,782,908
public static void validateJsonObject(JsonObject jsonObj) throws IOException {<NEW_LINE>if (jsonObj == null) {<NEW_LINE>if (Drawing.openapiRequiredFields.isEmpty()) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// has required fields<NEW_LINE>throw new IllegalArgumentException(String.format("The required field(s) %s in...
(jsonObj.getAsJsonObject("shapeOrNull"));
884,035
public static void vertical(Kernel1D_F64 kernel, GrayF64 input, GrayF64 output) {<NEW_LINE>final double[] dataSrc = input.data;<NEW_LINE>final double[] dataDst = output.data;<NEW_LINE>final double[] dataKer = kernel.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset(...
.startIndex + y * input.stride;
759,032
public void doDrawerSubs(int position) {<NEW_LINE>MultiReddit current = usedArray.get(position);<NEW_LINE>LinearLayout l = (LinearLayout) findViewById(R.id.sidebar_scroll);<NEW_LINE>l.removeAllViews();<NEW_LINE>CaseInsensitiveArrayList toSort = new CaseInsensitiveArrayList();<NEW_LINE>for (MultiSubreddit s : current.ge...
.toLowerCase(Locale.ENGLISH));
1,683,772
public static VipInventory valueOf(VipVO vo) {<NEW_LINE>VipInventory inv = new VipInventory();<NEW_LINE>inv.setName(vo.getName());<NEW_LINE>inv.setDescription(vo.getDescription());<NEW_LINE>inv.setCreateDate(vo.getCreateDate());<NEW_LINE>inv.setGateway(vo.getGateway());<NEW_LINE>inv.<MASK><NEW_LINE>inv.setIpRangeUuid(v...
setIp(vo.getIp());
1,526,663
public com.jme3.opencl.Buffer.AsyncMapping mapAsync(CommandQueue queue, long size, long offset, MappingAccess access) {<NEW_LINE>Utils.pointerBuffers[0].rewind();<NEW_LINE>Utils.errorBuffer.rewind();<NEW_LINE>CLCommandQueue q = ((LwjglCommandQueue) queue).getQueue();<NEW_LINE>long flags = Utils.getMappingAccessFlags(ac...
[0], Utils.errorBuffer);
360,120
public List<Regressor> convertToBatchOutput(Tensor tensor, ImmutableOutputInfo<Regressor> outputIDInfo) {<NEW_LINE>FloatNdArray predictions = getBatchPredictions(tensor, outputIDInfo.size());<NEW_LINE>List<Regressor> output = new ArrayList<>();<NEW_LINE>int batchSize = (int) predictions.shape().asArray()[0];<NEW_LINE>/...
).getNames()[0];
1,613,549
private static void cliAttributes(LexerfulGrammarBuilder b) {<NEW_LINE>b.rule(cliAttributes).is(b.oneOrMore(cliAttributeSection));<NEW_LINE>b.rule(cliAttributeSection).is("[", b.optional(cliAttributeTargetSpecifier), cliAttributeList, "]");<NEW_LINE>b.rule(cliAttributeTargetSpecifier).is(cliAttributeTarget, ":");<NEW_L...
(cliAttributeArgumentExpression).is(assignmentExpression);
107,759
public static void main(String[] args) throws Exception {<NEW_LINE>ReferenceConfig<GenericService> reference = new ReferenceConfig<>();<NEW_LINE>ApplicationConfig applicationConfig = new ApplicationConfig("protobuf-demo-consumer");<NEW_LINE>applicationConfig.setQosEnable(false);<NEW_LINE>reference.setApplication(applic...
().toJson(result));
1,075,945
private void addMainSession(Session session, InetSocketAddress lastReolvedAddr, InetSocketAddressWrapper addrWrapper) {<NEW_LINE>InetSocketAddress remoteSocketAddress = session.getRemoteSocketAddress();<NEW_LINE>log.info("Add a session: " + SystemUtils.getRawAddress(remoteSocketAddress) + ":" + remoteSocketAddress.getP...
) oldSession).setAllowReconnect(false);
456,724
public void validateRestSimpleParameter(Element element, String requiredClass, String parameterName, ElementValidation validation) {<NEW_LINE>TypeMirror requiredType = annotationHelper.<MASK><NEW_LINE>DeclaredType paramterType = annotationHelper.extractAnnotationClassParameter(element, annotationHelper.getTarget(), par...
typeElementFromQualifiedName(requiredClass).asType();
1,276,040
private void save(ServerLongIntRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>long startCol = meta.getStartCol();<NEW_LINE>if (ServerRowUtils.getVector(row) instanceof IntIntVector) {<NEW_LINE>IntIntVector vector = (IntIntVector) ServerRowUtils.ge...
entry.getIntKey() + startCol);
1,394,534
public boolean visit(SQLExprTableSource x) {<NEW_LINE>SqlNode table;<NEW_LINE>SQLExpr expr = x.getExpr();<NEW_LINE>SqlNodeList sqlNodes = convertHints((List) x.getHints(), x.computeAlias());<NEW_LINE>if (expr instanceof SQLIdentifierExpr) {<NEW_LINE>table = new SqlTableRef(SqlParserPos.ZERO, (SqlIdentifier) buildIdenti...
(SQLIdentifierExpr) expr), sqlNodes);
960,939
public void serialize(final ProcessTask value, final JsonGenerator jsonGenerator, final SerializerProvider provider) throws IOException {<NEW_LINE>final ObjectNode object = OBJECT_MAPPER.createObjectNode();<NEW_LINE>object.put("inputType", this.model.writeObjectAsObjectNode<MASK><NEW_LINE>object.put("outputType", this....
(value.getInputPluginType()));
1,215,186
ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>String id = StringTools.uniqueToken();<NEW_LINE>Meta meta = new Meta();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>meta.setId(id);<NEW_LINE>assignmentStringValue(meta);<NEW...
(assertTimeValue(o, meta));
1,652,650
public void mouseReleased(Canvas canvas, Graphics g, MouseEvent e) {<NEW_LINE>if (!exists)<NEW_LINE>return;<NEW_LINE>Canvas.snapToGrid(e);<NEW_LINE>final var curX = e.getX();<NEW_LINE>final var curY = e.getY();<NEW_LINE>if (computeMove(curX, curY)) {<NEW_LINE>cur = Location.create(curX, curY);<NEW_LINE>}<NEW_LINE>if (h...
getProject().doAction(act);
1,342,330
private byte[] genCheckImage(int width, int height, int checkSize) {<NEW_LINE>int x, y;<NEW_LINE>byte[] pixels = new byte[width * height * 3];<NEW_LINE>for (y = 0; y < height; y++) for (x = 0; x < width; x++) {<NEW_LINE>byte rColor = 0;<NEW_LINE>byte bColor = 0;<NEW_LINE>if ((x / checkSize) % 2 == 0) {<NEW_LINE>rColor ...
) * 3 + 1] = 0;
395,840
public void handle(AnnotationValues<ToString> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleFlagUsage(annotationNode, ConfigurationKeys.TO_STRING_FLAG_USAGE, "@ToString");<NEW_LINE>deleteAnnotationIfNeccessary(annotationNode, ToString.class);<NEW_LINE>ToString ann = annotation.getInstance();<...
? ann.doNotUseGetters() : doNotUseGettersConfiguration;
911,348
public BType inferRecordFieldType(BRecordType recordType) {<NEW_LINE>Map<String, BField> fields = recordType.fields;<NEW_LINE>BUnionType unionType = BUnionType.create(null);<NEW_LINE>if (!recordType.sealed) {<NEW_LINE>unionType.add(recordType.restFieldType);<NEW_LINE>} else if (fields.size() == 0) {<NEW_LINE>unionType....
.iterator().next();
486,597
public void readLiteralSection() throws IOException {<NEW_LINE>if (log.isLoggable(Level.FINE))<NEW_LINE>log.fine("readLiteralSection");<NEW_LINE>final byte[] buf = in.read_size_and_inflate();<NEW_LINE>final EInputStream is = new EInputStream(buf);<NEW_LINE>int nLiterals = is.read4BE();<NEW_LINE>if (log.isLoggable(Level...
i] = is.read_any();
551,008
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW...
setDistributeFactor(applicationDict.getDistributeFactor());
1,182,287
protected void doRunCommand(KeycloakSession session) {<NEW_LINE>String realmName = getArg(0);<NEW_LINE>String username = getArg(1);<NEW_LINE>RealmModel realm = session.realms().getRealmByName(realmName);<NEW_LINE>if (realm == null) {<NEW_LINE>log.errorf("Unknown realm: %s", realmName);<NEW_LINE>return;<NEW_LINE>}<NEW_L...
), roleMappings.toString());
764,077
public static List<String> write(String path, List<String> entities, boolean dynamicFlag) throws Exception {<NEW_LINE>List<String> names = new ArrayList<>();<NEW_LINE>String name = "";<NEW_LINE>try {<NEW_LINE>names.addAll((List<String>) Config.resource(Config.RESOURCE_CONTAINERENTITYNAMES));<NEW_LINE>names = ListTools....
new FileWriter(file), format);
140,422
public void lower(CEntryPointUtilityNode node, LoweringTool tool) {<NEW_LINE>if (tool.getLoweringStage() != LoweringTool.StandardLoweringStage.LOW_TIER) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Arguments args;<NEW_LINE>switch(node.getUtilityAction()) {<NEW_LINE>case IsAttached:<NEW_LINE>args = new Arguments(isAttached, n...
node, SnippetTemplate.DEFAULT_REPLACER, args);
373,369
public void listContainers() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobServiceClient.listBlobContainers<NEW_LINE>client.listBlobContainers().forEach(container -> System.out.printf("Name: %s%n", container.getName()));<NEW_LINE>// END: com.azure.storage.blob.BlobServiceClient.listBlobContainers<NEW_LINE>// BEGIN: c...
().setRetrieveMetadata(true));
336,687
public void updateMapMarkers(NearbyController.NearbyPlacesInfo nearbyPlacesInfo, Marker selectedMarker, boolean shouldTrackPosition) {<NEW_LINE>if (null != nearbyParentFragmentView) {<NEW_LINE>List<NearbyBaseMarker> nearbyBaseMarkers = // Curlatlang will be used to calculate distances<NEW_LINE>NearbyController.// Curla...
nearbyParentFragmentView.addCurrentLocationMarker(nearbyPlacesInfo.curLatLng);
396,243
public static void cogAsRelay(SceneBuilder scene, SceneBuildingUtil util) {<NEW_LINE><MASK><NEW_LINE>scene.configureBasePlate(0, 0, 5);<NEW_LINE>BlockPos gauge = util.grid.at(4, 1, 1);<NEW_LINE>Selection gaugeSelect = util.select.position(gauge);<NEW_LINE>scene.world.showSection(util.select.layer(0), Direction.UP);<NEW...
scene.title("cogwheel", "Relaying rotational force using Cogwheels");
593,779
private void createGetElementPointerExpression(RecordBuffer buffer) {<NEW_LINE>int opCode = buffer.getId();<NEW_LINE>if (opCode == CONSTANT_CE_GEP_WITH_INRANGE_INDEX || buffer.size() % 2 != 0) {<NEW_LINE>// type of pointee<NEW_LINE>buffer.skip();<NEW_LINE>}<NEW_LINE>boolean isInbounds;<NEW_LINE>if (opCode == CONSTANT_C...
long op = buffer.read();
273,503
final DeleteApiResult executeDeleteApi(DeleteApiRequest deleteApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
(super.beforeMarshalling(deleteApiRequest));
1,636,656
public ProcessStatus handleEnterCode(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException, ServletException {<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>final ActivateUserBean activateUserBean = pwmDomain.getSessionStateService().getBean(pwmRequest, ActivateUserBean.c...
pwmRequest.readParameterAsString(PwmConstants.PARAM_TOKEN);
1,814,131
private static ImmutableList<Pair<String, Path>> renameOutputs(ActionExecutionContext actionExecutionContext, TestRunnerAction action, ImmutableList<Pair<String, Path>> testOutputs, int attemptId) throws IOException {<NEW_LINE>// Rename outputs<NEW_LINE>String namePrefix = FileSystemUtils.removeExtension(action.getTest...
new ImmutableList.Builder<>();
789,643
private void remove(String name) {<NEW_LINE>IDialogSettings settings = SootPlugin.getDefault().getDialogSettings();<NEW_LINE>int count = 0;<NEW_LINE>try {<NEW_LINE>count = settings.getInt("config_count");<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>}<NEW_LINE>String[] pointers = new String[count];<NEW_LINE>fo...
settings.get("soot_run_config_" + i);
322,527
public static boolean searchMazeWrapper(List<List<Integer>> maze, Coordinate s, Coordinate e) throws TestFailure {<NEW_LINE>List<List<Color>> colored = new ArrayList<>();<NEW_LINE>for (List<Integer> col : maze) {<NEW_LINE>List<Color> tmp = new ArrayList<>();<NEW_LINE>for (Integer i : col) {<NEW_LINE>tmp.add(i == 0 ? <M...
Color.WHITE : Color.BLACK);
412,850
private String convertDescriptionList(DescriptionList node) {<NEW_LINE>logger.debug("convertDescriptionList");<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>appendTitle(node, sb);<NEW_LINE>String style = Optional.ofNullable(node.getStyle()).orElse("");<NEW_LINE>switch(style) {<NEW_LINE>case STYLE_HORIZONTAL...
(ATTRIBUTES_END).append(LINE_SEPARATOR);
926,090
private void resolveHostForOutpostArnRequest(Request<?> request, Arn arn) {<NEW_LINE>S3Resource s3Resource = S3ControlArnConverter.getInstance().convertArn(arn);<NEW_LINE>String signingRegion = request.getHandlerContext(HandlerContextKey.SIGNING_REGION);<NEW_LINE>String arnRegion = arnRegion(arn);<NEW_LINE>String arnPa...
, arnRegion, request), "FIPS is not supported for outpost requests.");
1,801,331
public static Part newPartForContentType(String contentType, String partName) throws InvalidFormatException, PartUnrecognisedException {<NEW_LINE>if (contentType.equals(ContentTypes.PRESENTATIONML_MAIN) || contentType.equals(ContentTypes.PRESENTATIONML_TEMPLATE) || contentType.equals(ContentTypes.PRESENTATIONML_MACROEN...
TableStylesPart(new PartName(partName));
1,823,705
final CancelDeploymentJobResult executeCancelDeploymentJob(CancelDeploymentJobRequest cancelDeploymentJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelDeploymentJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new CancelDeploymentJobResultJsonUnmarshaller());
1,740,105
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");<NEW_LINE...
HashMap<String, Object>();
212,131
private boolean canBeReplanted(BlockPos pos) {<NEW_LINE>Item item = plants.get(pos);<NEW_LINE>if (item == Items.WHEAT_SEEDS || item == Items.CARROT || item == Items.POTATO || item == Items.BEETROOT_SEEDS || item == Items.PUMPKIN_SEEDS || item == Items.MELON_SEEDS)<NEW_LINE>return BlockUtils.getBlock(pos.down()) instanc...
pos.down()) instanceof SoulSandBlock;
820,545
void interpolateDeformedPoint(float v_x, float v_y, Point2D_F32 deformed) {<NEW_LINE>// sample the closest point and x+1,y+1<NEW_LINE>int x0 = (int) v_x;<NEW_LINE>int y0 = (int) v_y;<NEW_LINE>int x1 = x0 + 1;<NEW_LINE>int y1 = y0 + 1;<NEW_LINE>// make sure the 4 sample points are in bounds<NEW_LINE>if (x1 >= gridCols)<...
= (1.0f - ax) * ay;
384,618
synchronized public <T extends ServiceParserInterface> T parser(Class<T> serviceParser) {<NEW_LINE>Symfony2ProjectComponent symfony2ProjectComponent = this.project.getComponent(Symfony2ProjectComponent.class);<NEW_LINE>Collection<File> settingsServiceFiles = symfony2ProjectComponent.getContainerFiles();<NEW_LINE>if (th...
), settingsServiceFile.lastModified());
744,178
private static void validateScoresDoNotDecreaseWithFreq(Version indexCreatedVersion, Similarity similarity) throws IOException {<NEW_LINE>CollectionStatistics collectionStats = new CollectionStatistics("some_field", 1200, 1100, 3000, 2000);<NEW_LINE>TermStatistics termStats = new TermStatistics(new BytesRef("some_value...
scorer.score(0, freq);
1,797,924
private void saveParametersToDB0(@NonNull final PInstanceId pinstanceId, final List<ProcessInfoParameter> piParams) {<NEW_LINE>// exit if this ProcessInfo has no Parameters<NEW_LINE>if (piParams == null || piParams.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Retrieve parameters from the database, i...
get(piParam.getParameterName());
703,388
private ExternallyReferencedCandidate forRecord(@NonNull final I_C_Invoice_Candidate icRecord) {<NEW_LINE>final ExternallyReferencedCandidateBuilder candidate = ExternallyReferencedCandidate.builder();<NEW_LINE>candidate.orgId(OrgId.ofRepoId(icRecord.getAD_Org_ID())).id(InvoiceCandidateId.ofRepoId(icRecord.getC_Invoice...
ofRepoId(icRecord.getM_Product_ID());
1,147,779
final EnableMacieResult executeEnableMacie(EnableMacieRequest enableMacieRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableMacieRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
895,550
public void onFogUpdate(EntityViewRenderEvent.RenderFogEvent event) {<NEW_LINE>Entity e = event.getInfo().getEntity();<NEW_LINE>if (e instanceof LivingEntity && ((LivingEntity) e).hasEffect(IEPotions.flashed)) {<NEW_LINE>MobEffectInstance effect = ((LivingEntity) e).getEffect(IEPotions.flashed);<NEW_LINE><MASK><NEW_LIN...
int timeLeft = effect.getDuration();
405,074
static String toJavaName(String opensslName) {<NEW_LINE>if (opensslName == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Matcher matcher = PATTERN.matcher(opensslName);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>String group1 = matcher.group(1);<NEW_LINE>if (group1 != null) {<NEW_LINE>return group1.toUpperCase(Loca...
).toUpperCase(Locale.ROOT);
443,219
final DeleteWorkspaceResult executeDeleteWorkspace(DeleteWorkspaceRequest deleteWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);