idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
944,747
private I_C_Invoice_Rejection_Detail of(@NonNull final ImportedInvoiceResponse response) {<NEW_LINE>final I_C_Invoice_Rejection_Detail rejectionDetail = InterfaceWrapperHelper.newInstance(I_C_Invoice_Rejection_Detail.class);<NEW_LINE>rejectionDetail.setIsDone(false);<NEW_LINE>rejectionDetail.setInvoiceNumber(response.g...
setInvoiceRecipient(response.getInvoiceRecipient());
735,391
private void initCastFunc() {<NEW_LINE>if (targetType.equals(Types.DOUBLE)) {<NEW_LINE>castFunc = x -> {<NEW_LINE>if (x == null) {<NEW_LINE>return null;<NEW_LINE>} else if (x instanceof String) {<NEW_LINE>return Double.parseDouble((String) x);<NEW_LINE>} else {<NEW_LINE>return ((Number) x).doubleValue();<NEW_LINE>}<NEW...
.parseLong((String) x);
1,315,988
private List<MessageResult> queryMessages(@NonNull String query) {<NEW_LINE>if (Util.isEmpty(query)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<MessageResult> results;<NEW_LINE>try (Cursor cursor = searchDatabase.queryMessages(query)) {<NEW_LINE>results = readToList(cursor, new MessageModelBuil...
.getBody().toString();
1,449,078
public void marshall(Replay replay, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replay == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(replay.getReplayName(), REPLAYNAME_BINDING);<NEW_LINE>protocolMars...
e.getMessage(), e);
1,615,286
private void synchroniseDate() {<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>byte[] message = new byte[] { (byte) 0xA5, (byte) 0x30, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte<MASK><NEW_LINE>message[2] = (byte) Integer.parseInt(Long.toHexString(Integer.valueOf(String.valueOf(cal...
) 0x00, (byte) 0x00 };
1,659,312
private void processPegoutsIndividually(ReleaseRequestQueue releaseRequestQueue, ReleaseTransactionBuilder txBuilder, List<UTXO> availableUTXOs, ReleaseTransactionSet releaseTransactionSet, Wallet wallet) {<NEW_LINE>Coin walletBalance = wallet.getBalance();<NEW_LINE>boolean canProcessAtLeastOnePegout = releaseRequestQu...
> selectedUTXOs = result.getSelectedUTXOs();
214,355
public static List<List<List<String>>> convertWritableInputToStringTimeSeries(List<List<List<Writable>>> stringInput, Schema schema) {<NEW_LINE>List<List<List<String>>> ret = new ArrayList<>();<NEW_LINE>for (int i = 0; i < stringInput.size(); i++) {<NEW_LINE>List<List<Writable>> currInput = stringInput.get(i);<NEW_LINE...
(k).toString());
758,269
public IJavaCompletionProposal createJavaProposal(ContentAssistContext context, JavaContentAssistInvocationContext javaContext) {<NEW_LINE>if (context.location == ContentAssistLocation.METHOD_CONTEXT) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>GroovyCompletionProposal proposal = new GroovyCompletionProposal(Completion...
setName(proposal.getName());
1,504,713
// Interpolate a color between values, potentially<NEW_LINE>int interpColor(float where) {<NEW_LINE>if (colors.size() == 0)<NEW_LINE>return 0;<NEW_LINE>if (colors.size() == 1)<NEW_LINE>return colors.get(0);<NEW_LINE>float pos = where * colors.size();<NEW_LINE>int aIdx = (int) Math.floor(pos);<NEW_LINE>int bIdx = (<MASK...
int) Math.ceil(pos);
1,332,444
protected synchronized SSLSocketFactory createSocketFactory(URL providerURL) throws IOException {<NEW_LINE>final String methodName = "createSocketFactory(URL)";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, methodName, providerURL);<NEW_LINE>}<NEW_LINE>final Map<Strin...
sslContext = SSLContext.getInstance(protocol);
378,624
public Page<Instance> findInstancesByNamespaceAndInstanceAppId(String instanceAppId, String appId, String clusterName, String namespaceName, Pageable pageable) {<NEW_LINE>Page<Object> instanceIdResult = instanceConfigRepository.findInstanceIdsByNamespaceAndInstanceAppId(instanceAppId, appId, clusterName, namespaceName,...
Integer) o).longValue();
32,600
public void automaticFirstLineAsTitle() {<NEW_LINE>// ask user if he wants to remove the lines that have been set as title<NEW_LINE>int option = JOptionPane.showConfirmDialog(getFrame(), getResourceMap().getString("removeTitleLineMsg"), getResourceMap().getString("removeTitleLineTitle"), JOptionPane.YES_NO_CANCEL_OPTIO...
getApplication().show(taskDlg);
1,571,040
public void markRunAs(@NonNull RunId runId, @NonNull RunState runState, @Nullable Instant transitionedAt) {<NEW_LINE>log.debug("Marking run with ID '{}' as '{}'...", runId, runState);<NEW_LINE>if (transitionedAt == null) {<NEW_LINE>transitionedAt = Instant.now();<NEW_LINE>}<NEW_LINE>ExtendedRunRow runRow = findRunByUui...
getValue(), runState, transitionedAt);
1,351,539
public Shipment unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Shipment shipment = new Shipment();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
class).unmarshall(context));
1,300,131
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.menu_action_extensions_enable) {<NEW_LINE>List<Extension> extensions = ExtensionManager.get(requireContext()).queryAllAvailableExtensions(requireContext());<NEW_LINE>List<ComponentName> enabledExten...
enabledExtensions.add(extension.componentName);
154,598
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>final String utmString = (String) sources[0];<NEW_LINE>if (utmString != null) {<NEW_LINE>final String[] parts = ut...
final String north = parts[2];
217,706
public int[] lastIndexOf(int c) {<NEW_LINE>int maxResults = pattern.length();<NEW_LINE>int[<MASK><NEW_LINE>int totalLocations;<NEW_LINE>int index = pattern.lastIndexOf(c);<NEW_LINE>if (index == -1) {<NEW_LINE>totalLocations = findAdditionalLocations(results, pattern, c, false);<NEW_LINE>} else {<NEW_LINE>int offset = i...
] results = new int[maxResults];
1,521,171
public List<MigrationQuery> compute(MappingModel mappingModel, Keyspace keyspace) {<NEW_LINE>List<MigrationQuery> queries = new ArrayList<>();<NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>for (EntityModel entity : mappingModel.getEntities().values()) {<NEW_LINE>switch(entity.getTarget()) {<NEW_LINE>case T...
userDefinedType(entity.getCqlName());
85,450
public int compareTo(final FastZipEntry o) {<NEW_LINE>final int diff0 <MASK><NEW_LINE>if (diff0 != 0) {<NEW_LINE>return diff0;<NEW_LINE>}<NEW_LINE>final int diff1 = entryNameUnversioned.compareTo(o.entryNameUnversioned);<NEW_LINE>if (diff1 != 0) {<NEW_LINE>return diff1;<NEW_LINE>}<NEW_LINE>final int diff2 = entryName.c...
= o.version - this.version;
308,425
public RubyNode visitOpAsgnConstDeclNode(OpAsgnConstDeclParseNode node) {<NEW_LINE>final ReadConstantNode lhs = (ReadConstantNode) node.getFirstNode().accept(this);<NEW_LINE>RubyNode rhs = node.getSecondNode().accept(this);<NEW_LINE>if (!(rhs instanceof WriteConstantNode)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>switch(n...
rhs = lhs.makeWriteNode(rhs);
210,294
ActionResult<Wo> execute(EffectivePerson effectivePerson, String workId) throws Exception {<NEW_LINE>String job = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Work work = emc.find(workId, Work.class);<NEW_L...
result = new ActionResult<>();
1,662,118
public MediaQueueItem toMediaQueueItem(MediaItem mediaItem) {<NEW_LINE><MASK><NEW_LINE>if (mediaItem.localConfiguration.mimeType == null) {<NEW_LINE>throw new IllegalArgumentException("The item must specify its mimeType");<NEW_LINE>}<NEW_LINE>MediaMetadata metadata = new MediaMetadata(MimeTypes.isAudio(mediaItem.localC...
Assertions.checkNotNull(mediaItem.localConfiguration);
52,977
public Request<DeleteMessageBatchRequest> marshall(DeleteMessageBatchRequest deleteMessageBatchRequest) {<NEW_LINE>if (deleteMessageBatchRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DeleteMessageBatchRequest> request = new DefaultReque...
(deleteMessageBatchRequest.getQueueUrl()));
1,619,244
final CreateVpcPeeringConnectionResult executeCreateVpcPeeringConnection(CreateVpcPeeringConnectionRequest createVpcPeeringConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVpcPeeringConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,513,056
public int compare(VersionComparator v) {<NEW_LINE>List<Integer> him = new ArrayList<Integer>();<NEW_LINE>him.addAll(v.elements);<NEW_LINE>List<Integer> me = new ArrayList<Integer>();<NEW_LINE>me.addAll(elements);<NEW_LINE>if (me.size() > him.size()) {<NEW_LINE>int diff = me.size() - him.size();<NEW_LINE>for (int i = 0...
h = him.get(i);
694,740
private Optional<Set<BatfishUUID>> toAddrgrpMemberUUIDs(Address_namesContext ctx, FortiosStructureUsage usage, boolean pruneAll) {<NEW_LINE>int line = ctx.start.getLine();<NEW_LINE>Map<String, Address> addressesMap = _c.getAddresses();<NEW_LINE>Map<String, Addrgrp<MASK><NEW_LINE>ImmutableSet.Builder<BatfishUUID> addres...
> addrgrpsMap = _c.getAddrgrps();
1,247,839
public Result populateHeader(ClientRequest request, String authToken, String correlationId, String traceabilityId) {<NEW_LINE>Result<Jwt> result = tokenManager.getJwt(request);<NEW_LINE>if (result.isFailure()) {<NEW_LINE>return Failure.of(result.getError());<NEW_LINE>}<NEW_LINE>// we cannot assume that the authToken is...
addAuthTokenTrace(request, authToken, traceabilityId);
1,328,621
void basicExample_Successful() {<NEW_LINE>TimeLimiterConfig config = TimeLimiterConfig.custom().timeoutDuration(Duration.ofSeconds<MASK><NEW_LINE>TimeLimiterRegistry registry = TimeLimiterRegistry.of(config);<NEW_LINE>TimeLimiter limiter = registry.timeLimiter("flightSearch");<NEW_LINE>FlightSearchService service = new...
(2)).build();
1,543,996
private boolean nullPasswordTest2(StringBuffer sb) {<NEW_LINE>boolean pass = false;<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>String token = SpnegoTokenHelper.buildSpnegoAuthorizationFromUseridPassword("HTTP/spn.ibm.net@IBM.NET", "userid", "", lifetime, delegate);<NEW_LINE>writeLine(sb, "Null Passwor...
"Null Password Test #2 failed. Unexpected PrivilegedActionException thrown " + e.getMessage());
197,449
final DescribeDimensionResult executeDescribeDimension(DescribeDimensionRequest describeDimensionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDimensionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
500,704
public LayerFailure unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LayerFailure layerFailure = new LayerFailure();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
JsonToken token = context.getCurrentToken();
1,733,496
final ImportDocumentationPartsResult executeImportDocumentationParts(ImportDocumentationPartsRequest importDocumentationPartsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importDocumentationPartsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
84,326
public RequestContextExporter build() {<NEW_LINE>if (exportGroups == null) {<NEW_LINE>final <MASK><NEW_LINE>return new RequestContextExporter(defaultExportGroup.builtIns(), defaultExportGroup.attrs(), defaultExportGroup.reqHeaders(), defaultExportGroup.resHeaders());<NEW_LINE>}<NEW_LINE>final Builder<ExportEntry<BuiltI...
ExportGroup defaultExportGroup = defaultExportGroupBuilder.build();
392,685
private Response<TopicProperties> deserializeTopic(Response<Object> response) {<NEW_LINE>final TopicDescriptionEntry entry = deserialize(response.<MASK><NEW_LINE>// This was an empty response (ie. 204).<NEW_LINE>if (entry == null) {<NEW_LINE>return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), r...
getValue(), TopicDescriptionEntry.class);
1,160,444
public static GetDiagnosisKneeResultResponse unmarshall(GetDiagnosisKneeResultResponse getDiagnosisKneeResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDiagnosisKneeResultResponse.setRequestId(_ctx.stringValue("GetDiagnosisKneeResultResponse.RequestId"));<NEW_LINE>getDiagnosisKneeResultResponse.setCode(_ctx.stri...
(_ctx.stringValue("GetDiagnosisKneeResultResponse.Data.ProcessStatus"));
1,722,085
public static void unzip(File src, File dest) {<NEW_LINE>try {<NEW_LINE>byte[] buffer = new byte[1024];<NEW_LINE>ZipInputStream zis = new ZipInputStream(new FileInputStream(src));<NEW_LINE>ZipEntry zipEntry = zis.getNextEntry();<NEW_LINE>while (zipEntry != null) {<NEW_LINE>File newFile = createFile(dest, zipEntry);<NEW...
write(buffer, 0, len);
1,159,101
public static DescribeInstanceAccountsResponse unmarshall(DescribeInstanceAccountsResponse describeInstanceAccountsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceAccountsResponse.setRequestId(_ctx.stringValue("DescribeInstanceAccountsResponse.RequestId"));<NEW_LINE>describeInstanceAccountsResponse.setSu...
("DescribeInstanceAccountsResponse.InstanceAccounts[" + i + "].AccountName"));
116,033
public void updateState(MapState map, List<TridentTuple> tuples, TridentCollector collector) {<NEW_LINE>Map<List<Object>, List<TridentTuple>> grouped = new HashMap<>();<NEW_LINE>for (TridentTuple t : tuples) {<NEW_LINE>List<Object> group = _groupFactory.create(t);<NEW_LINE>List<TridentTuple> groupTuples = grouped.get(g...
groupTuples = new ArrayList<>();
249,757
private IStatus calculateStatus() {<NEW_LINE>if (shares == 0L)<NEW_LINE>return ValidationStatus.error(MessageFormat.format(Messages.MsgDialogInputRequired, Messages.ColumnShares));<NEW_LINE>if ((grossValue == 0L || convertedGrossValue == 0L) && type != PortfolioTransaction.Type.DELIVERY_OUTBOUND)<NEW_LINE>return Valida...
0.0001)).doubleValue());
1,197,065
public double hyberbolicPrior(double slope, double sharpness) {<NEW_LINE>@Var<NEW_LINE>double value = 0;<NEW_LINE>assert (initialWeights.length == finalWeights.length);<NEW_LINE>for (int i = 0; i < initialWeights.length; i++) {<NEW_LINE>if (!Double.isInfinite(initialWeights[i]))<NEW_LINE>value -= (slope / sharpness * M...
-finalWeights[i])));
883,218
public Map<String, Object> execute(Map<String, Object> inputs) {<NEW_LINE>Configuration config = module.getConfiguration();<NEW_LINE>String itemName = (String) config.get(ITEM_NAME);<NEW_LINE>String state = (String) config.get(STATE);<NEW_LINE>if (itemName != null) {<NEW_LINE>try {<NEW_LINE>Item item = itemRegistry.get...
), itemStateEvent.getItemState());
1,824,443
private void attemptToContinueProcessProcessing(final TypedRecord<IncidentRecord> command, final TypedResponseWriter responseWriter, final TypedStreamWriter streamWriter, final Consumer<SideEffectProducer> sideEffect, final IncidentRecord incident) {<NEW_LINE>final long jobKey = incident.getJobKey();<NEW_LINE>final boo...
noopResponseWriter, streamWriter, sideEffects::add);
247,170
final UpdateInfrastructureConfigurationResult executeUpdateInfrastructureConfiguration(UpdateInfrastructureConfigurationRequest updateInfrastructureConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInfrastructureConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
invoke(request, responseHandler, executionContext);
1,667,282
public final void sendNotFlushed(SIBUuid8 remoteME, SIBUuid12 gatheringTargetDestUuid, SIBUuid12 streamId, long requestId, long completedPrefix, long duplicatePrefix, SIBUuid12 parentDest) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "sendNotFlushed", new Object[]...
] cp = new long[1];
854,794
public ClusterGroup makeClusterGroup(ClusterInfo clusterInfo) {<NEW_LINE>BaseController control = baseController.get();<NEW_LINE>if (control == null || (bitmap == null && (colors == null || colors.length < 1))) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>MaplyTexture tex = texByNumber.get(clusterInfo.numObjects);<NEW_L...
texSettings, RenderController.ThreadMode.ThreadCurrent);
573,412
private void testJMSProducerSendByteMessage_Topic_SecOff(TopicConnectionFactory topicConnectionFactory) throws JMSException, TestException, InterruptedException {<NEW_LINE>try (JMSContext jmsContext = topicConnectionFactory.createContext()) {<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createConsumer(topic1);<NEW_LIN...
throw new TestException("Invalid jmsProducer:" + jmsProducer);
1,410,281
WritableMap createDataChannel(String label, ReadableMap config) {<NEW_LINE>DataChannel.Init init = new DataChannel.Init();<NEW_LINE>if (config != null) {<NEW_LINE>if (config.hasKey("id")) {<NEW_LINE>init.id = config.getInt("id");<NEW_LINE>}<NEW_LINE>if (config.hasKey("ordered")) {<NEW_LINE>init.ordered = config.getBool...
peerConnection.createDataChannel(label, init);
789,924
public boolean hasNext() {<NEW_LINE>if (finished)<NEW_LINE>return false;<NEW_LINE>if (slot != null)<NEW_LINE>return true;<NEW_LINE>if (idx == -1 || idx == buffer.length) {<NEW_LINE>len = fill();<NEW_LINE>if (len == -1) {<NEW_LINE>finished = true;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>idx = 0;<NEW_LINE>}<NEW_LINE>/...
record.getKey(), recordOffset);
596,523
protected void addMeasure(MeasureDefinition measure, int index, List<MeasureDefinition> measuresList, List<Integer> measureIndexList) {<NEW_LINE>switch(measure.getCalculation()) {<NEW_LINE>case AVERAGE:<NEW_LINE>case VARIANCE:<NEW_LINE>{<NEW_LINE>MeasureDefinition sumMeasure = MeasureDefinition.createHelperMeasure(meas...
varianceMeasure, index, measuresList, measureIndexList);
1,696,174
private void fillTypeCandidates(SSAVar ssaVar) {<NEW_LINE>TypeSearchVarInfo varInfo = state.getVarInfo(ssaVar);<NEW_LINE>ArgType immutableType = ssaVar.getImmutableType();<NEW_LINE>if (immutableType != null) {<NEW_LINE>varInfo.markResolved(immutableType);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArgType currentType = ssaVa...
varInfo.setCurrentType(ArgType.UNKNOWN);
965,693
public void vp8_intra4x4_predict(ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer yleft, int left_stride, BPredictionMode b_mode, FullAccessIntArrPointer dst, int dst_stride, short top_left) {<NEW_LINE>aboveRow.setPos(4);<NEW_LINE>yLeftCol.rewind();<NEW_LINE>yLeftCol.setAndInc(yleft.get());<NEW_LINE>yLeftCol.setAndIn...
.setRel(-1, top_left);
895,589
public void itemStateChanged(final ItemEvent e) {<NEW_LINE>if (handlingEvent || !formatChooser.isEnabled() || e.getStateChange() != ItemEvent.SELECTED)<NEW_LINE>return;<NEW_LINE>handlingEvent = true;<NEW_LINE>final PatternFormat newFormat = <MASK><NEW_LINE>final AttributeTable table = attributeView.getAttributeTable();...
toPatternFormat(e.getItem());
1,072,249
final ListSigningCertificatesResult executeListSigningCertificates(ListSigningCertificatesRequest listSigningCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSigningCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,133,399
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
864,069
public void addResource(RType rType, IdType idType, String name, String idValue) {<NEW_LINE>Set<RDotTxtEntry> resourceSet = null;<NEW_LINE>if (this.rTypeResourceMap.containsKey(rType)) {<NEW_LINE>resourceSet = <MASK><NEW_LINE>} else {<NEW_LINE>resourceSet = new HashSet<RDotTxtEntry>();<NEW_LINE>this.rTypeResourceMap.pu...
this.rTypeResourceMap.get(rType);
917,813
public ConfigOrError parseLoadBalancingPolicyConfig(Map<String, ?> rawConfig) {<NEW_LINE>try {<NEW_LINE>Map<String, ?> targets = JsonUtil.getObject(rawConfig, "targets");<NEW_LINE>if (targets == null || targets.isEmpty()) {<NEW_LINE>return ConfigOrError.fromError(Status.INTERNAL.withDescription("No targets provided for...
(PolicySelection) selectedConfig.getConfig();
1,037,620
public void checkValid(CharSequence literal) throws DatatypeException {<NEW_LINE>switch(literal.length()) {<NEW_LINE>case 0:<NEW_LINE>throw newDatatypeException("The empty string is not a " + getName() + ".");<NEW_LINE>case 1:<NEW_LINE>char c = literal.charAt(0);<NEW_LINE>if (!getUnicodeSet().contains(c)) {<NEW_LINE>th...
" is not a " + getName() + ".");
470,702
public static FileObject findProvider(Class clazz) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>String prefix = "xml/memory/";<NEW_LINE>FileObject memContext = FileUtil.getConfigFile(prefix);<NEW_LINE>// NOI18N<NEW_LINE>if (memContext == null)<NEW_LINE>throw new <MASK><NEW_LINE>Class c = clazz;<NEW_LINE>while (c !=...
java.io.FileNotFoundException("SFS/xml/memory/");
120,794
public static void loadRecipes() {<NEW_LINE>BCRegistry.INSTANCE.addCraftingRecipe(new ItemStack(quarryBlock), "ipi", "gig", "dDd", 'i', "gearIron", 'p', "dustRedstone", 'g', "gearGold", 'd', <MASK><NEW_LINE>BCRegistry.INSTANCE.addCraftingRecipe(new ItemStack(templateItem, 1), "ppp", "pip", "ppp", 'i', "dyeBlack", 'p', ...
"gearDiamond", 'D', Items.DIAMOND_PICKAXE);
1,206,494
protected void doExecute() throws Throwable {<NEW_LINE>TransactionMonitor transaction = TransactionMonitor.DEFAULT;<NEW_LINE>transaction.logTransaction(String.format("%s.%s", LOG_TYPE, "type"), clusterType.name(), new Task() {<NEW_LINE><NEW_LINE>List<SentinelMeta> typeSentinels = new ArrayList<>();<NEW_LINE><NEW_LINE>@...
transactionData.put("sentinel.groups", typeSentinels);
511,466
public Long newPartitionSequenceIdByName(final int size, final String sequenceParamName) {<NEW_LINE>Long result = null;<NEW_LINE>try {<NEW_LINE>// Get current sequence number<NEW_LINE>result = jdbcTemplate.queryForObject(SQL.SEQUENCE_NEXT_VAL_BYNAME, new Object[] { sequenceParamName }, Long.class);<NEW_LINE>} catch (Em...
SEQUENCE_INSERT_VAL, result + size, sequenceParamName);
867,047
public <M extends Model> M initPretrained(PretrainedType pretrainedType) throws IOException {<NEW_LINE>String remoteUrl = pretrainedUrl(pretrainedType);<NEW_LINE>if (remoteUrl == null)<NEW_LINE>throw new <MASK><NEW_LINE>String localFilename = new File(remoteUrl).getName();<NEW_LINE>File rootCacheDir = DL4JResources.get...
UnsupportedOperationException("Pretrained " + pretrainedType + " weights are not available for this model.");
100,299
public Response<Object> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not v...
Utils.getValueFromIdByName(id, "automationRules");
1,275,110
private List<IfTriple> initializeCasts(FrameState frameState, SpecializationGroup group, DSLExpression expression, NodeExecutionMode specializationExecution) {<NEW_LINE>Set<VariableElement> boundElements = expression.findBoundVariableElements();<NEW_LINE>if (boundElements.isEmpty()) {<NEW_LINE>return Collections.emptyL...
), specializationExecution, true, false);
41,733
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Function<Double, Double> differentiate(Function<Double, Double> function, Function<Double, Boolean> domain) {<NEW_LINE>ArgChecker.notNull(function, "function");<NEW_LINE>ArgChecker.notNull(domain, "domain");<...
function.apply(x + eps);
670,391
void onFocusChanged(boolean focused, KrollDict eventData) {<NEW_LINE>// Windows are lazily opened when the tab is first focused.<NEW_LINE>if (window != null && !windowOpened) {<NEW_LINE>// Need to handle the url window in the JS side.<NEW_LINE>window.<MASK><NEW_LINE>windowOpened = true;<NEW_LINE>window.fireEvent(TiC.EV...
callPropertySync(TiC.PROPERTY_LOAD_URL, null);
194,324
public void loadTexture(Service.Resource texture) {<NEW_LINE>if (texture == null) {<NEW_LINE>clear();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>textureResource = texture;<NEW_LINE>imagePanel.startLoading();<NEW_LINE>Path.ResourceData path = models.resources.getResourcePath(texture);<NEW_LINE>rpcController.start().listen(mod...
), path.getAfter());
1,410,308
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetOutputLast(false));<NEW_LINE>execs.add(new ResultSetOutputLast(true));<NEW_LINE>execs.add(new ResultSetOutputLastSorted(false));<NEW_LINE>execs.add(new ResultSe...
.add(new ResultSet3OutputLimitAll());
1,196,004
public static Map<Integer, JsDocComment> parse(Snapshot snapshot) {<NEW_LINE>Map<Integer, JsDocComment> blocks = new HashMap<Integer, JsDocComment>();<NEW_LINE>if (snapshot == null || snapshot.getTokenHierarchy() == null) {<NEW_LINE>return blocks;<NEW_LINE>}<NEW_LINE>TokenSequence tokenSequence = snapshot.getTokenHiera...
tokenSequence(JsTokenId.javascriptLanguage());
1,115,797
public String toDefaultValue(Schema p) {<NEW_LINE>String out = null;<NEW_LINE>if (ModelUtils.isArraySchema(p)) {<NEW_LINE>Schema inner = ((ArraySchema) p).getItems();<NEW_LINE>out = String.format(Locale.ROOT, "new List<%s>()", inner == null ? "Object" : getTypeDeclaration(inner));<NEW_LINE>} else if (ModelUtils.isBoole...
equals(out) ? null : out;
1,661,783
public static void validateSchemaAsNeeded(StoreDefinition storeDefinition) {<NEW_LINE>logger.info(<MASK><NEW_LINE>SerializerDefinition keySerDef = storeDefinition.getKeySerializer();<NEW_LINE>// validate the key schemas<NEW_LINE>try {<NEW_LINE>validateIfAvroSchema(keySerDef);<NEW_LINE>} catch (Exception e) {<NEW_LINE>l...
"Validating schema for store: " + storeDefinition.getName());
478,650
final ListTagsForVaultResult executeListTagsForVault(ListTagsForVaultRequest listTagsForVaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForVaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
934,547
private <T extends CULConfig> CULHandlerInternal<T> createNewHandler(T config) throws CULDeviceException {<NEW_LINE>String deviceType = config.getDeviceType();<NEW_LINE>CULMode mode = config.getMode();<NEW_LINE>logger.debug("Searching class for device type {}", deviceType);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_L...
CULDeviceException("No class for the device type " + deviceType + " is registred");
612,723
public CreateProjectVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateProjectVersionResult createProjectVersionResult = new CreateProjectVersionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
127,764
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void resume(com.sun.jdi.event.EventSet a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.IllegalThreadStateExc...
jpda.JDIExceptionReporter.report(ex);
1,013,796
public List<String> visit(final SqlCall call) {<NEW_LINE>final SqlBasicCall expr = (SqlBasicCall) call;<NEW_LINE>switch(expr.getOperator().getKind()) {<NEW_LINE>case AND:<NEW_LINE>for (SqlNode node : expr.getOperands()) {<NEW_LINE>visit((SqlBasicCall) node);<NEW_LINE>}<NEW_LINE>return identifiers;<NEW_LINE>case EQUALS:...
.toUpperCase(Locale.ROOT));
494,062
public String[] randomBirthplaceByLanguage(RandomNumberGenerator random, String language) {<NEW_LINE>String[] birthPlace;<NEW_LINE>List<String> cities = foreignPlacesOfBirth.get(language.toLowerCase());<NEW_LINE>if (cities != null && cities.size() > 0) {<NEW_LINE>int upperBound = cities.size();<NEW_LINE>String randomBi...
split = randomBirthPlace.split(",");
1,022,486
public UserSessionModel loadUserSession(RealmModel realm, String userSessionId, boolean offline) {<NEW_LINE>String offlineStr = offlineToString(offline);<NEW_LINE>TypedQuery<PersistentUserSessionEntity> userSessionQuery = em.createNamedQuery("findUserSession", PersistentUserSessionEntity.class);<NEW_LINE>userSessionQue...
clientSessionQuery.setParameter("offline", offlineStr);
1,022,717
public static void proxyResponseHeaders(Map<String, String> respHeaders, SimpleHttpResp resp) {<NEW_LINE>for (Map.Entry<String, String> hdr : respHeaders.entrySet()) {<NEW_LINE>String name = hdr.getKey();<NEW_LINE>String value = hdr.getValue();<NEW_LINE>if (name.equalsIgnoreCase("Content-type")) {<NEW_LINE>resp.<MASK><...
contentType = MediaType.of(value);
928,325
public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalAggregate agg = (LogicalAggregate) call.rels[0];<NEW_LINE>LogicalJoin join = (LogicalJoin) call.rels[1];<NEW_LINE>final JoinRelType joinType = join.getJoinType();<NEW_LINE>switch(joinType) {<NEW_LINE>case LEFT:<NEW_LINE>case INNER:<NEW_LINE>case RIGHT:<NEW_LINE...
().replace(rightConvention));
1,564,724
// Show alter statement.<NEW_LINE>private void handleShowAlter() throws AnalysisException {<NEW_LINE>ShowAlterStmt showStmt = (ShowAlterStmt) stmt;<NEW_LINE>ProcNodeInterface procNodeI = showStmt.getNode();<NEW_LINE>Preconditions.checkNotNull(procNodeI);<NEW_LINE>List<List<String>> rows;<NEW_LINE>// Only SchemaChangePr...
getLimitElement()).getRows();
1,377,657
private boolean shiftVideo(int mb, boolean mod) {<NEW_LINE>boolean bb = (!mod && (buffer[mb - 15] == -32 || buffer[mb - 15] == -3) && buffer[mb - 16] == 1 && buffer[mb - 17] == 0 && buffer[mb - 18] == 0 && (buffer[mb - 11] & 128) == 128 && (buffer[mb - 9] & 32) == 32) || (mod && (buffer[modulo(mb - 15, buffer.length)] ...
, buffer.length)] = 17;
699,109
// end static class ExactBlock<NEW_LINE>public static void main(String[] args) {<NEW_LINE>TransducerGraph fa = new TransducerGraph();<NEW_LINE>fa.addArc(fa.getStartNode(), "1", "a", "");<NEW_LINE>fa.addArc(fa.getStartNode(), "2", "b", "");<NEW_LINE>fa.addArc(fa.getStartNode(), "3", "c", "");<NEW_LINE>fa.addArc("1", "4"...
"3", "5", "c", "");
1,601,457
public void build() {<NEW_LINE>// final String[] messTexts =<NEW_LINE>// { "ConfigView.section.mode.beginner.wiki.definitions",<NEW_LINE>// "ConfigView.section.mode.intermediate.wiki.host",<NEW_LINE>// "ConfigView.section.mode.advanced.wiki.main",<NEW_LINE>// };<NEW_LINE>final String[] links = { Wiki.MODE_BEGINNER, Wik...
put(Parameter.MODE_ADVANCED, "ConfigView.section.mode.advanced.text");
1,405,737
public static final <T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Collector<T, ?, List<Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>> toRowList(Function<? super T, ? extends Field<T1>> f1, Function<? super T, ? extends Field<T2>> f2, Function<? super T, ? extends Field<T3>> f3, Function<? super T, ...
))), listCombiner());
1,176,612
byte[] nativeInternalDecompress(BZ2Object.BZ2Decompressor self, int maxLength, @Cached NativeLibrary.InvokeNativeFunction decompress, @Cached NativeLibrary.InvokeNativeFunction getBzsAvailInReal, @Cached NativeLibrary.InvokeNativeFunction getNextInIndex, @Cached GetOutputNativeBufferNode getBuffer, @Cached ConditionPro...
self.getBzsAvailInReal(), decompress);
1,770,604
public ClientTypeSignatureParameter deserialize(JsonParser jp, DeserializationContext ctx) throws IOException {<NEW_LINE>JsonNode node = jp.getCodec().readTree(jp);<NEW_LINE>ParameterKind kind = MAPPER.readValue(MAPPER.treeAsTokens(node.get(<MASK><NEW_LINE>JsonParser jsonValue = MAPPER.treeAsTokens(node.get("value"));<...
"kind")), ParameterKind.class);
301,215
private void createLogger() {<NEW_LINE>// Create logger<NEW_LINE>synchronized (logCreatorLock) {<NEW_LINE>final String loggerName = System.currentTimeMillis() + "." + this.executionId + "." + this.jobId;<NEW_LINE>this.logger = Logger.getLogger(loggerName);<NEW_LINE>try {<NEW_LINE>attachFileAppender(createFileAppender()...
this.jobId, this.props);
1,360,553
public static ListFaceAlgorithmResultsResponse unmarshall(ListFaceAlgorithmResultsResponse listFaceAlgorithmResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFaceAlgorithmResultsResponse.setRequestId(_ctx.stringValue("ListFaceAlgorithmResultsResponse.RequestId"));<NEW_LINE>listFaceAlgorithmResultsResponse.setMe...
(_ctx.integerValue("ListFaceAlgorithmResultsResponse.Data.TotalCount"));
303,377
public final CreateTablespaceInnodbContext createTablespaceInnodb() throws RecognitionException {<NEW_LINE>CreateTablespaceInnodbContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 40, RULE_createTablespaceInnodb);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setSt...
CreateTablespaceInnodbContext(_ctx, getState());
232,350
private static void genericLimitOrder(TradeService tradeService) throws Exception {<NEW_LINE>System.out.println("GENERIC LIMIT ORDER...\n");<NEW_LINE>LimitOrder limitOrder = new LimitOrder.Builder(ORDER_TYPE, PAIR).limitPrice(PRICE).originalAmount(AMOUNT).build();<NEW_LINE>String uuid = tradeService.placeLimitOrder(lim...
(uuid)).findFirst();
32,416
public UpdateRegexPatternSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateRegexPatternSetResult updateRegexPatternSetResult = new UpdateRegexPatternSetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
JsonToken token = context.getCurrentToken();
825,604
public ApiResponse<ContentList> contentGetContentWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/content";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Map<St...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
137,139
public void marshall(EC2DeleteRouteAction eC2DeleteRouteAction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (eC2DeleteRouteAction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocol...
eC2DeleteRouteAction.getDescription(), DESCRIPTION_BINDING);
211,865
public void run() {<NEW_LINE>for (int index = 0; index < warmUpCount; index++) {<NEW_LINE>System.out.println("Begin Warm up ....");<NEW_LINE>LdbcQuery ldbcQuery = ldbcQueryList.get(index % ldbcQueryList.size());<NEW_LINE>HashMap<String, String> queryParameter = ldbcQuery.getSingleParameter(index);<NEW_LINE>ldbcQuery.pr...
client, queryParameter, printQueryResult, printQueryName);
1,843,751
public void waitToBeProcessed(@NonNull final AsyncBatchId id) {<NEW_LINE>if (asyncBatch2Completion.get(id) == null) {<NEW_LINE>Loggables.withLogger(logger, Level.INFO).addLog("No observer registered to be processed for asyncBatchId: {}", id.getRepoId());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Complet...
retrieveWorkPackages(asyncBatch, ITrx.TRXNAME_None);
1,780,731
final DetectModerationLabelsResult executeDetectModerationLabels(DetectModerationLabelsRequest detectModerationLabelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detectModerationLabelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
276,148
public void close(CTabFolderEvent event) {<NEW_LINE>Assert.isTrue(event.item instanceof CTabItem, "Something other than a CTabItem was closed in a CTabFolder.");<NEW_LINE>final CTabItem item = (CTabItem) event.item;<NEW_LINE>final CTabFolder tabFolder = item.getParent();<NEW_LINE>final int <MASK><NEW_LINE>// block the ...
index = tabFolder.indexOf(item);
229,614
public static InterpretedExpression create(final Expression expression, final LogicalSchema schema, final FunctionRegistry functionRegistry, final KsqlConfig ksqlConfig, final Context context) {<NEW_LINE>try {<NEW_LINE>final ExpressionTypeManager expressionTypeManager = new ExpressionTypeManager(schema, functionRegistr...
expression, context.getLambdaSqlTypeMapping());
463,323
private String payWithCashAsPayment() {<NEW_LINE>int cashAccountId = getCashBankAccount();<NEW_LINE>if (cashAccountId <= 0) {<NEW_LINE>throw new AdempiereException("@NoCashBook@");<NEW_LINE>}<NEW_LINE>//<NEW_LINE>MPayment paymentCash = new MPayment(getCtx(), 0, get_TrxName());<NEW_LINE>paymentCash.setC_BankAccount_ID(c...
"@Error@: " + paymentCash.getProcessMsg());