idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
897,890
public Request<SetAlarmStateRequest> marshall(SetAlarmStateRequest setAlarmStateRequest) {<NEW_LINE>if (setAlarmStateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<SetAlarmStateRequest> request = new DefaultRequest<SetAlarmStateRequest>(...
(setAlarmStateRequest.getStateValue()));
1,609,565
private void contribute(Map<String, Object> details, Dependency dependency) {<NEW_LINE>if (!ObjectUtils.isEmpty(dependency.getMappings())) {<NEW_LINE>Map<String, VersionRange> dep = new LinkedHashMap<>();<NEW_LINE>dependency.getMappings().forEach((it) -> {<NEW_LINE>if (it.getRange() != null && it.getVersion() != null) ...
depInfo = new LinkedHashMap<>();
1,542,207
static ICC_Profile readICC(Object input) {<NEW_LINE>try (ImageInputStream stream = ImageIO.createImageInputStream(input)) {<NEW_LINE>Iterator<ImageReader> readers = ImageIO.getImageReaders(stream);<NEW_LINE>if (readers == null) {<NEW_LINE>logger.debug("No readers found to extract ICC profile from {}", input);<NEW_LINE>...
mGetTiffField.invoke(tiffDir, 34675);
460,760
public static ConstantNode tryConstantFold(CoreProviders tool, ResolvedJavaField field, JavaConstant receiver, long displacement, Stamp resultStamp, Stamp accessStamp, OptionValues options) {<NEW_LINE>if (!field.isStatic()) {<NEW_LINE>if (receiver == null || receiver.isNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LIN...
ret, tool.getMetaAccess());
1,299,491
final GetGameConfigurationResult executeGetGameConfiguration(GetGameConfigurationRequest getGameConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGameConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
1,492,247
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addInstanceFilter(com.sun.jdi.request.MonitorWaitedRequest a, com.sun.jdi.ObjectReference b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW...
jpda.JDIExceptionReporter.report(ex);
1,134,214
private void enableTracing(TracingConfig config) throws IOException {<NEW_LINE>final TracingConfig.Lightstep lightstep = config.getLightstep();<NEW_LINE>if (!lightstep.getCollectorHost().isBlank()) {<NEW_LINE>final Options.OptionsBuilder optionsBuilder = new Options.OptionsBuilder().withAccessToken(lightstep.getAccessT...
startHttpServerAndRegisterAll(config.getZpagesPort());
227,915
private Result findForBinaryRoot(final URL binaryRoot) throws MalformedURLException, MalformedURLException {<NEW_LINE>URL jar = FileUtil.getArchiveFile(binaryRoot);<NEW_LINE>if (!jar.getProtocol().equals("file")) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>Util.err.log(binaryRoot + " is not an archive file.");<NEW...
findByDashedCNB(cnbdashes, javadocRoots, true);
1,685,249
final TagOpenIDConnectProviderResult executeTagOpenIDConnectProvider(TagOpenIDConnectProviderRequest tagOpenIDConnectProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagOpenIDConnectProviderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
914,189
public void throwSOAPFaultException(String faultString, SOAPMessage soapMessage) throws SOAPFaultException {<NEW_LINE>SOAPFaultException sfe = null;<NEW_LINE>try {<NEW_LINE>SOAPPart sp = soapMessage.getSOAPPart();<NEW_LINE>SOAPEnvelope se = sp.getEnvelope();<NEW_LINE>// Consume the request<NEW_LINE>SOAPBody sb = se.get...
SOAPFault soapFault = sb.addFault();
93,201
public static void main(String[] args) {<NEW_LINE>BucketSort bucketSort = new Exercise11_QueueSort().new BucketSort();<NEW_LINE>String[] array1 = { "Rene", "Argento", "Arg", "Alg", "Algorithms", "LSD", "MSD", "3WayStringQuickSort", "Dijkstra", "Floyd", "Warshall", "Johnson", "Sedgewick", "Wayne", "Bellman", "Ford", "BF...
StringJoiner sortedArray1 = new StringJoiner(" ");
360,315
public void add(ShortcutItemProxy shortcut) {<NEW_LINE>if (!shortcutCapability) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// NOTE: Create the `ShortcutInfo` instance here, as the creation of `ShortcutInfo`<NEW_LINE>// in `ShortcutItemProxy.handleCreationDict()` will soon be deprecated a removed.<NEW_LINE>final <MASK><NEW_...
Context context = TiApplication.getInstance();
1,744,192
public static void repair(String fileName) {<NEW_LINE>PrintWriter pw = new PrintWriter(System.out);<NEW_LINE>long version = Long.MAX_VALUE;<NEW_LINE>OutputStream ignore = new OutputStream() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(int b) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>};<NEW_LINE>while (versi...
(fileName + ".back"), true);
1,089,137
final CreateOpsItemResult executeCreateOpsItem(CreateOpsItemRequest createOpsItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOpsItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,309,841
protected void checkProfileCompatibility() {<NEW_LINE>if (!profile.isTurnCosts() && !request.getCurbsides().isEmpty())<NEW_LINE>throw new IllegalArgumentException("To make use of the " + CURBSIDE + " parameter you need to use a profile that supports turn costs" + "\nThe following profiles do support turn costs: " + get...
"' cannot be used with `custom_model`, because it has weighting=" + profile.getWeighting());
985,800
public void marshall(HistoricalMetric historicalMetric, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (historicalMetric.getName() != null) {<NEW_LINE>String name = historicalMetric.getName();<NEW_LINE>jsonWriter.name("Name");<NEW_LINE>jsonWriter.value(name);<NEW_LINE>}<NEW_...
String unit = historicalMetric.getUnit();
494,424
public void actionPerform(Component component) {<NEW_LINE>Collection<Entity> selected = entitiesTable.getSelected();<NEW_LINE>if (selected.isEmpty() && entitiesTable.getItems() != null) {<NEW_LINE>selected = entitiesTable.getItems().getItems();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (exportFormat == ZIP) {<NEW_LINE>byte...
(data), resourceName, JSON);
323,788
int waitForTaskProcessToComplete(Task task, ProcessHolder processHolder, File logFile, File reportsFile) throws IOException, InterruptedException {<NEW_LINE>final ByteSink logSink = Files.asByteSink(logFile, FileWriteMode.APPEND);<NEW_LINE>// This will block for a while. So we append the thread information with more de...
task.getId(), logFile);
979,950
private void layoutButtons() {<NEW_LINE>final ButtonBar buttonBar = getSkinnable();<NEW_LINE>final List<? extends Node> buttons = buttonBar.getButtons();<NEW_LINE>final <MASK><NEW_LINE>String buttonOrder = getSkinnable().getButtonOrder();<NEW_LINE>layout.getChildren().clear();<NEW_LINE>// empty is valid, because it is ...
double buttonMinWidth = buttonBar.getButtonMinWidth();
547,319
public void marshall(CoreNetworkPolicy coreNetworkPolicy, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (coreNetworkPolicy == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(coreNetworkPolicy.getCoreNetworkI...
coreNetworkPolicy.getPolicyVersionId(), POLICYVERSIONID_BINDING);
682,815
public void expireInvitecodes() {<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>final long expired = now - Symphonys.INVITECODE_EXPIRED;<NEW_LINE>final Query query = new Query().setPage(1, Integer.MAX_VALUE).setFilter(CompositeFilterOperator.and(new PropertyFilter(Invitecode.STATUS, FilterOperator.EQUA...
result.opt(Keys.RESULTS);
1,852,771
public String toRegex(boolean capturePrimaryDate, boolean captureInteger) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>Converter<Object> p = headTokenConverter;<NEW_LINE>while (p != null) {<NEW_LINE>if (p instanceof LiteralConverter) {<NEW_LINE>buf.append(p.convert(null));<NEW_LINE>} else if (p instance...
(dtc.toRegex()));
1,618,457
public void updateZipper(NodeZipper<GraphQLSchemaElement> currentZipper, NodeZipper<GraphQLSchemaElement> newZipper) {<NEW_LINE>// the current zipper is not always relevant, meaning this has no effect sometimes<NEW_LINE>relevantZippers.remove(currentZipper);<NEW_LINE>relevantZippers.add(newZipper);<NEW_LINE>List<List<B...
get(0).getNode();
1,615,090
public GetDownloadUrlForLayerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDownloadUrlForLayerResult getDownloadUrlForLayerResult = new GetDownloadUrlForLayerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
701,228
public FeatureVector[] featureVectorMapping(FeatureDefinition newFeatureDefinition) {<NEW_LINE>if (!this.featureDefinition.contains(newFeatureDefinition)) {<NEW_LINE>throw new RuntimeException("the new feature definition is not a subset of original feature definition");<NEW_LINE>}<NEW_LINE>int numberOfFeatures = newFea...
i, byteFeatures, shortFeatures, continiousFeatures);
800,826
public float calcGain(float sumGrad, float sumHess) {<NEW_LINE>if (sumHess < minChildWeight)<NEW_LINE>return 0.0f;<NEW_LINE>if (maxDeltaStep == 0.0f) {<NEW_LINE>if (regAlpha == 0.0f) {<NEW_LINE>return (sumGrad / (sumHess + regLambda)) * sumGrad;<NEW_LINE>} else {<NEW_LINE>return Maths.sqr(Maths.thresholdL1(sumGrad, reg...
* Math.abs(w));
838,862
public RecordMetadata produce(String clusterId, String topic, String value, Map<String, String> headers, Optional<String> key, Optional<Integer> partition, Optional<Long> timestamp, Optional<Integer> keySchemaId, Optional<Integer> valueSchemaId) throws ExecutionException, InterruptedException {<NEW_LINE>byte[] keyAsByt...
clusterId, keySchemaId.get());
1,738,880
public static List<EquiJoinKey> buildEquiJoinKeys(RelNode outer, RelNode inner, List<Integer> outerIndexes, List<Integer> innerIndexes) {<NEW_LINE>final int numKeys = outerIndexes.size();<NEW_LINE>List<EquiJoinKey> results = new ArrayList<>(numKeys);<NEW_LINE>for (int i = 0; i < numKeys; i++) {<NEW_LINE>int outerIndex ...
innerIndex = innerIndexes.get(i);
1,259,975
public static void vertical11(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int <...
k3 = kernel.data[2];
657,411
public static KeyPair loadKeyPairFromKeystore(String keystoreFile, String storePassword, String keyPassword, String keyAlias, KeystoreFormat format) {<NEW_LINE>InputStream stream = FindFile.findFile(keystoreFile);<NEW_LINE>try {<NEW_LINE>KeyStore keyStore = null;<NEW_LINE>if (format == KeystoreFormat.JKS) {<NEW_LINE>ke...
keyAlias, keyPassword.toCharArray());
1,792,786
public ConstantPropagationStore leastUpperBound(ConstantPropagationStore other) {<NEW_LINE>Map<Node, Constant> newContents = new LinkedHashMap<>(contents.size() + other.contents.size());<NEW_LINE>// go through all of the information of the other class<NEW_LINE>for (Map.Entry<Node, Constant> e : other.contents.entrySet(...
Node n = e.getKey();
633,891
public CreateBucketResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateBucketResult createBucketResult = new CreateBucketResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>tar...
().unmarshall(context));
259,049
final DeleteUserPermissionsBoundaryResult executeDeleteUserPermissionsBoundary(DeleteUserPermissionsBoundaryRequest deleteUserPermissionsBoundaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPermissionsBoundaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(deleteUserPermissionsBoundaryRequest));
394,183
private void describe(String type, DropTargetEvent e) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>StringBuilder msgBuilder = new StringBuilder();<NEW_LINE>msgBuilder.append("drop: ");<NEW_LINE>msgBuilder.append(type);<NEW_LINE>if (e instanceof DropTargetDragEvent) {<NEW_LINE>DropTargetContext dtc = e.getDropT...
DropTargetContext dtc = e.getDropTargetContext();
460,791
public boolean addConstraintMapping(HttpContext httpContext, WebContainer service, Object cm) {<NEW_LINE>if (cm instanceof ConstraintMapping) {<NEW_LINE>ConstraintMapping constraintMapping = (ConstraintMapping) cm;<NEW_LINE>Constraint constraint = constraintMapping.getConstraint();<NEW_LINE>String[<MASK><NEW_LINE>// na...
] roles = constraint.getRoles();
366,838
private void doDispatchStartTransaction(FragmentManager fm, ISupportFragment from, ISupportFragment to, int requestCode, int launchMode, int type) {<NEW_LINE>checkNotNull(to, "toFragment == null");<NEW_LINE>if ((type == TYPE_ADD_RESULT || type == TYPE_ADD_RESULT_WITHOUT_HIDE) && from != null) {<NEW_LINE>if (!((Fragment...
from = getTopFragmentForStart(from, fm);
215,950
public Map<String, Object> props() {<NEW_LINE>Map<String, Object> props = new LinkedHashMap<>();<NEW_LINE>applyTemplates(props, getResolvedExtraProperties());<NEW_LINE>props.put(KEY_DISTRIBUTION_NAME, name);<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECUTABLE, executable.getName());<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECU...
putAll(java.getResolvedExtraProperties());
324,278
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String name = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>ArrayList<HashMap<String, Object>> results = new ArrayList<HashMap<String, Object>>();<NEW_LINE>// list all projects.<NEW_LINE>if (name == null) {<NEW_LINE>IProject[] projects ...
result.put("natures", aliases);
748,673
/*<NEW_LINE>* @see org.apache.kafka.streams.kstream.KeyValueMapper#apply(java.lang.Object,<NEW_LINE>* java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public KeyValue<UUID, InboundEventContext> apply(UUID deviceId, InboundEventContext context) {<NEW_LINE>try {<NEW_LINE>InboundEventContext updated = new DeviceA...
setDevice(context.getDevice());
1,414,809
final DeleteFunctionConcurrencyResult executeDeleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFunctionConcurrencyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lambda");
1,000,256
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isAbstract0(com.sun.jdi.Method a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.Method", "isAbstract", "J...
Mirror) a).virtualMachine();
737,025
public void run() {<NEW_LINE>JTextComponent lastFocused = EditorRegistry.lastFocusedComponent();<NEW_LINE>if (lastFocused != null) {<NEW_LINE>// NOI18N<NEW_LINE>lastFocused.getDocument().putProperty(SimpleValueNames.TEXT_LINE_WRAP, "");<NEW_LINE>// NOI18N<NEW_LINE>lastFocused.getDocument().putProperty(SimpleValueNames....
putProperty(SimpleValueNames.TAB_SIZE, "");
420,055
public boolean format() throws Exception {<NEW_LINE>// Clear underreplicated ledgers<NEW_LINE>store.deleteRecursive(PulsarLedgerUnderreplicationManager.getBasePath(ledgersRootPath) + BookKeeperConstants.DEFAULT_ZK_LEDGERS_ROOT_PATH).get();<NEW_LINE>// Clear underreplicatedledger locks<NEW_LINE>store.deleteRecursive(Pul...
deleteRecursive(cookiePath).get();
1,736,044
public //<NEW_LINE>void onDrawFrame(GL10 glUnused) {<NEW_LINE>// Set the viewport<NEW_LINE>GLES30.glViewport(0, 0, mWidth, mHeight);<NEW_LINE>// Clear the color buffer<NEW_LINE>GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT);<NEW_LINE>// Use the program object<NEW_LINE>GLES30.glUseProgram(mProgramObject);<NEW_LINE>// Load t...
6, GLES30.GL_UNSIGNED_SHORT, mIndices);
836,935
private static Triple triple(NodeTable nodeTable, NodeId s, NodeId p, NodeId o) {<NEW_LINE>if (!NodeId.isConcrete(s))<NEW_LINE>throw new InternalErrorException("Invalid id for subject: " + fmt(s, p, o));<NEW_LINE>if (!NodeId.isConcrete(p))<NEW_LINE>throw new InternalErrorException("Invalid id for predicate: " + fmt(s, ...
(s, p, o));
715,028
public static GetPtsReportsBySceneIdResponse unmarshall(GetPtsReportsBySceneIdResponse getPtsReportsBySceneIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPtsReportsBySceneIdResponse.setRequestId(_ctx.stringValue("GetPtsReportsBySceneIdResponse.RequestId"));<NEW_LINE>getPtsReportsBySceneIdResponse.setSuccess(_ctx.b...
("GetPtsReportsBySceneIdResponse.ReportOverViewList[" + i + "].ReportName"));
878,508
private void createPayments(MOrder sourceOrder, MOrder targetOrder) {<NEW_LINE>for (MPayment sourcePayment : MPayment.getOfOrder(sourceOrder)) {<NEW_LINE>MPayment payment = new MPayment(getCtx(), 0, get_TrxName());<NEW_LINE>PO.copyValues(sourcePayment, payment);<NEW_LINE>payment.setDateTrx(today);<NEW_LINE>payment.setD...
setC_Order_ID(targetOrder.getC_Order_ID());
773,525
private File[] extractAppExtensions(File sourceDirectory, File targetDirectory) throws IOException {<NEW_LINE>if (sourceDirectory == null || !sourceDirectory.isDirectory()) {<NEW_LINE>throw new IllegalArgumentException("extractAppExtensions sourceDirectory must be an existing directory but received " + sourceDirectory)...
).lastIndexOf(".ios.appext")));
13,459
public int regionsBySlashes(String[] grid) {<NEW_LINE>int n = grid.length;<NEW_LINE>size = n * n * 4;<NEW_LINE>p = new int[size];<NEW_LINE>for (int i = 0; i < p.length; ++i) {<NEW_LINE>p[i] = i;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>for (int j = 0; j < n; ++j) {<NEW_LINE>int k = i * n + j;<NEW_LINE...
[i].charAt(j);
45,532
public void addCommand(String name, Object object, String... aliases) {<NEW_LINE>JCommander jc = new JCommander(options);<NEW_LINE>jc.addObject(object);<NEW_LINE>jc.createDescriptions();<NEW_LINE>jc.setProgramName(name, aliases);<NEW_LINE>ProgramName progName = jc.programName;<NEW_LINE>commands.put(progName, jc);<NEW_L...
IKey alias = new StringKey(a);
1,768,376
public void showFilter(@NonNull String filterId) {<NEW_LINE>PoiUIFilter filter = app.getPoiFilters().getFilterById(filterId);<NEW_LINE>boolean isCustomFilter = filterId.equals(app.getPoiFilters().getCustomPOIFilter().getFilterId());<NEW_LINE>if (isCustomFilter) {<NEW_LINE>fabVisible = true;<NEW_LINE>poiFilterApplied = ...
(settings.setRadiusLevel(1));
452,162
private static void permute(BindingProperty[] properties, Set<String> activeLinkerNames, String[] soFar, int whichProp, List<String[]> permutations) {<NEW_LINE>int lastProp = properties.length - 1;<NEW_LINE>BindingProperty prop = properties[whichProp];<NEW_LINE>// Find the last-one-wins Condition<NEW_LINE>Condition win...
answerable, 0, soFar.length);
663,500
private void sendStartNotifications(IEventListener source) {<NEW_LINE>if (sendStartNotification) {<NEW_LINE>// notify handler that stream starts recording/publishing<NEW_LINE>sendStartNotification = false;<NEW_LINE>if (source instanceof IConnection) {<NEW_LINE>IScope scope = ((IConnection) source).getScope();<NEW_LINE>...
Object handler = scope.getHandler();
1,238,410
public void run() {<NEW_LINE>String prevRev = pri.getPreviousRevision();<NEW_LINE>boolean showing = popupMenu.isShowing();<NEW_LINE>if (prevRev != null && showing) {<NEW_LINE>popupMenu.setVisible(false);<NEW_LINE>prevRev = prevRev.substring(0, 7);<NEW_LINE>// NOI18N<NEW_LINE>String format = loc.getString("CTL_MenuItem_...
format = loc.getString("CTL_MenuItem_DiffToPrevious.revision");
1,010,290
void generate() {<NEW_LINE>File generatedTestSources = this.generatedTestSourcesDir.get().getAsFile();<NEW_LINE>File generatedTestResources = this.generatedTestResourcesDir<MASK><NEW_LINE>getLogger().info("Generated test sources dir [{}]", generatedTestSources);<NEW_LINE>getLogger().info("Generated test resources dir [...
.get().getAsFile();
92,435
public void run(RegressionEnvironment env) {<NEW_LINE>String epl;<NEW_LINE>epl = "@JsonSchema(dynamic=true, className='" + SupportClientsEvent.class.getName() + "') create json schema Clients()";<NEW_LINE><MASK><NEW_LINE>epl = "create json schema ABC();\n" + "@JsonSchema(className='" + SupportClientsEvent.class.getName...
env.tryInvalidCompile(epl, "The dynamic flag is not supported when used with a provided JSON event class");
1,611,653
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>Query post = RemoteAccess.evaluate(request);<NEW_LINE>boolean localhost = post.isLocalhostAccess();<NEW_LINE>String callback = post.get("callback", "");<NEW_LINE>boolean jsonp = callback != nul...
ServletOutputStream sos = response.getOutputStream();
1,733,660
public Flux<NumericResponse<PushCommand, Long>> push(Publisher<PushCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notEmpty(command.getValues(), "Values must not be null or empty!");<NEW_LINE>if (!command.getUpsert()...
, command.getDirection()));
1,080,825
protected void handleDeclaringTypeNodes(NodeList list) {<NEW_LINE>for (int i = 0, n = list.getLength(); i < n; i += 1) {<NEW_LINE>Node node = list.item(i);<NEW_LINE>if (node instanceof Element) {<NEW_LINE>Element element = (Element) node;<NEW_LINE>if (element.getNodeName().equals(SuggestionElementStatics.DECLARING_TYPE...
NodeList suggestions = element.getChildNodes();
765,045
public void run() {<NEW_LINE>try {<NEW_LINE>Utils.logToConsole("Performing port configuration");<NEW_LINE>Utils.selectApiSettings(configDialog);<NEW_LINE>Component comp = SwingUtils.findComponent(configDialog, "Socket port");<NEW_LINE>if (comp == null)<NEW_LINE>throw new IbcException("could not find socket port compone...
"TWS API socket port now set to " + tf.getText());
53,896
private void deactivateDuplicateKeybindings() {<NEW_LINE>IBindingService service = PlatformUI.getWorkbench(<MASK><NEW_LINE>if (service != null) {<NEW_LINE>List<Binding> newBindings = new ArrayList<>();<NEW_LINE>Binding[] bindings = service.getBindings();<NEW_LINE>for (Binding binding : bindings) {<NEW_LINE>String comma...
).getService(IBindingService.class);
1,165,765
private Mono<PagedResponse<VpnGatewayInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_L...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
518,066
private InsertTabletPlan constructInsertTabletPlan(TSInsertTabletsReq req, int i) throws IllegalPathException {<NEW_LINE>InsertTabletPlan insertTabletPlan = new InsertTabletPlan(new PartialPath(req.prefixPaths.get(i)), req.measurementsList.get(i));<NEW_LINE>insertTabletPlan.setTimes(QueryDataSetUtils.readTimesFromBuffe...
insertTabletPlan.setAligned(req.isAligned);
1,112,477
public ImmutableSetMultimap<String, String> describe(Glob destinationFiles) {<NEW_LINE>ImmutableSetMultimap.Builder<String, String> builder = new ImmutableSetMultimap.Builder<String, String>().put("type", getType()).put("url", repoUrl).put("fetch", fetch).put("push", push).put("primaryBranchMigrationMode", "" + primary...
"root", destinationFiles.roots());
1,270,848
protected void checkNeighbors(int cx, int cy, float score, float flowX, float flowY, ImageFlow output) {<NEW_LINE>int x0 = Math.max(0, cx - regionRadius);<NEW_LINE>int x1 = Math.min(output.width, cx + regionRadius + 1);<NEW_LINE>int y0 = Math.max(0, cy - regionRadius);<NEW_LINE>int y1 = Math.min(output.height, cy + reg...
f = output.data[index];
1,752,920
protected void serializeDeltaLinkBag(BytesContainer bytes, ORidBag value) {<NEW_LINE>serializeByte(bytes, value.isEmbedded() <MASK><NEW_LINE>OMultiValueChangeTimeLine<OIdentifiable, OIdentifiable> timeline = value.getTransactionTimeLine();<NEW_LINE>assert timeline != null : "Cx ollection timeline required for link type...
? (byte) 0 : 1);
1,714,917
public void testTaskIsRunning(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>long taskId = Long.parseLong(request.getParameter("taskId"));<NEW_LINE>boolean cancel = Boolean.parseBoolean(request.getParameter("cancel"));<NEW_LINE>Persi...
throw new Exception("Task did not complete any executions within alotted interval. " + status);
999,416
public ConfigSnippetResourceWritable parseFileToResource(File assetFile, File metadataFile, String contentUrl) throws RepositoryException {<NEW_LINE>ArtifactMetadata artifactMetadata = explodeArtifact(assetFile, metadataFile);<NEW_LINE>// Throw an exception if there is no metadata and properties, we get various require...
.setRequireFeature(getRequiresFeature(artifactMetadata));
1,640,150
public static void main(String[] args) {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.err.println("Usage: <fuzz target class> <input file path> <fuzzerInitialize args>...");<NEW_LINE>System.exit(STATUS_OTHER_ERROR);<NEW_LINE>}<NEW_LINE>ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(true);<NEW_LINE>Clas...
[] input = loadInput(inputFilePath);
96,970
public void accept(T value) throws ValidationException {<NEW_LINE>// consider null value is valid<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NumberConstraint constraint = null;<NEW_LINE>if (value instanceof Number) {<NEW_LINE>constraint = getNumberConstraint((Number) value);<NEW_LINE>} else if (...
.getUserSession().getLocale();
1,202,083
public AdminDisableUserResult adminDisableUser(AdminDisableUserRequest adminDisableUserRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminDisableUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
invoke(request, responseHandler, executionContext);
429,376
protected GoVisitor buildGoVisitor(@NotNull ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new GoVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitAndExpr(@NotNull GoAndExpr o) {<NEW_LINE>visitExpr(o, true);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ...
r = elements.get(j);
1,548,496
public static void main(String[] args) {<NEW_LINE>var executeService = Executors.newFixedThreadPool(10);<NEW_LINE>var lock = new ReaderWriterLock();<NEW_LINE>// Start writers<NEW_LINE>for (var i = 0; i < 5; i++) {<NEW_LINE>var writingTime = ThreadLocalRandom.current().nextLong(5000);<NEW_LINE>executeService.submit(new ...
current().nextLong(10);
1,816,791
protected boolean createAndLoad(ScriptFileReference ref) {<NEW_LINE>String fileName = ref.getScriptFileURL().getFile();<NEW_LINE>Optional<String<MASK><NEW_LINE>assert scriptType.isPresent();<NEW_LINE>try (InputStreamReader reader = new InputStreamReader(new BufferedInputStream(ref.getScriptFileURL().openStream()), Stan...
> scriptType = ref.getScriptType();
1,208,890
public void showHint(@Nonnull LightweightHint hint, @Nonnull Editor editor) {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode() || editor.isDisposed())<NEW_LINE>return;<NEW_LINE>final HintManagerImpl hintManager = HintManagerImpl.getInstanceImpl();<NEW_LINE>short constraint = HintManager.ABOVE;<NEW_LINE...
constraint).setContentActive(false));
137,719
private synchronized void updateMiceDetectionStatus(VerisureInstallation installation) {<NEW_LINE>BigDecimal installationId = installation.getInstallationId();<NEW_LINE>String url = START_GRAPHQL;<NEW_LINE>String operation = "Mouse";<NEW_LINE>VariablesDTO variables = new VariablesDTO();<NEW_LINE>variables.setGiid(insta...
logger.debug("REST Response ({})", thing);
988,062
public SwaggerParseResult readLocation(String url, List<AuthorizationValue> auth, ParseOptions options) {<NEW_LINE>SwaggerParseResult result = new SwaggerParseResult();<NEW_LINE>try {<NEW_LINE>result = readWithInfo(url, auth);<NEW_LINE>if (result.getOpenAPI() != null) {<NEW_LINE>String version = result.getOpenAPI().get...
resolveFully(result.getOpenAPI());
1,651,978
private JPanel buildRepositoryInfoPanel() {<NEW_LINE>String serverName = "";<NEW_LINE>ServerInfo info = null;<NEW_LINE>String repositoryName = "";<NEW_LINE>String portNumberStr = "";<NEW_LINE>boolean isConnected = false;<NEW_LINE>if (repository != null) {<NEW_LINE>info = repository.getServerInfo();<NEW_LINE>serverName ...
new JPanel(new BorderLayout());
1,733,839
private void populateNextFutureDryRunNotificationDate(final BillingEventSet billingEvents, final FutureAccountNotificationsBuilder notificationsBuilder, final InternalCallContext context) {<NEW_LINE>final Map<LocalDate, Set<UUID>> notificationListForTrigger = notificationsBuilder.getNotificationListForTrigger();<NEW_LI...
subscriptionsForDryRunDates = notificationListForDryRun.get(curDryRunDate);
1,571,503
public Iterable<? extends ErrorDescription> analyze() {<NEW_LINE>Preferences settings = context.getSettings();<NEW_LINE>if (settings != null && !settings.getBoolean(PHPStanCustomizerPanel.ENABLED, false)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>PHPStan phpStan = getValidPHPStan();<NEW_LINE>if (ph...
fileCount = AnalysisUtils.countPhpFiles(scope);
1,396,418
protected String doIt() throws Exception {<NEW_LINE>List<MDDDriver> drivers = (List<MDDDriver>) getInstancesForSelection(get_TrxName());<NEW_LINE>if (getRecord_ID() > 0 && getSelectionKeys().size() > 0 && getTableSelectionId() == MDDDriver.Table_ID) {<NEW_LINE>if (getProcessInfo().getTable_ID() == MDDDriver.Table_ID) {...
.findFirst().get();
1,008,282
public SpekeKeyProvider unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SpekeKeyProvider spekeKeyProvider = new SpekeKeyProvider();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
281,885
final DisassociateServiceRoleFromAccountResult executeDisassociateServiceRoleFromAccount(DisassociateServiceRoleFromAccountRequest disassociateServiceRoleFromAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateServiceRoleFromAccountRequest);<NEW_LINE><MASK><NEW_LINE>awsRequ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
207,969
public ListAttachedUserPoliciesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListAttachedUserPoliciesResult listAttachedUserPoliciesResult = new ListAttachedUserPoliciesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
int originalDepth = context.getCurrentDepth();
1,095,652
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(parent.getContext());<NEW_LINE>if (viewType == TYPE_ACTION_HEADER) {<NEW_LINE>View header = inflater.inflate(R.layout.item_bookmark_group_list_header, parent, false);<NEW_LINE>retur...
return new Holders.GeneralViewHolder(item);
418,856
final DescribeSpotFleetRequestHistoryResult executeDescribeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest describeSpotFleetRequestHistoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSpotFleetRequestHistoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
449,093
public void showHint(int color) {<NEW_LINE>final int[] screenPos = new int[2];<NEW_LINE>final Rect displayFrame = new Rect();<NEW_LINE>getLocationOnScreen(screenPos);<NEW_LINE>getWindowVisibleDisplayFrame(displayFrame);<NEW_LINE>final Context context = getContext();<NEW_LINE>final int width = getWidth();<NEW_LINE>final...
screenPos[1] + height / 2;
558,988
public String request(@QueryParam("signTxRequest") String signTxRequest, @QueryParam("finalizeResponses") List<String> finalizeResponses, @QueryParam("gateway") String gateway, @QueryParam("signTxResponses") List<String> signTxResponses) throws InvalidProtocolBufferException {<NEW_LINE>if (finalizeResponses.size() != C...
getSignTx().getSignaturesList());
1,483,512
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>mNextButton = view.findViewById(R.id.button_next);<NEW_LINE>mProgressBar = view.findViewById(R.id.top_progress_bar);<NEW_LINE>mNextButton.setOnClickListener(this);<NEW_LINE>// Email field and validator<NEW_LINE>mEmailLayout = ...
setTitle(R.string.fui_email_link_confirm_email_header);
1,290,472
public boolean createWorkspacePermissions(Optional<Long> workspaceId, Optional<String> workspaceName, String resourceId, String resourceName, Optional<Long> ownerId, ModelDBServiceResourceTypes resourceType, CollaboratorPermissions permissions, ResourceVisibility resourceVisibility, boolean isServiceUser) {<NEW_LINE>tr...
(resourceName).setVisibility(resourceVisibility);
567,510
public static ScenarioSetup createDeleteInstancesBatch() {<NEW_LINE>return (engine, scenarioName) -> {<NEW_LINE>// definitions<NEW_LINE>ProcessDefinition definitionOne = engine.getRepositoryService().createProcessDefinitionQuery().<MASK><NEW_LINE>ProcessDefinition definitionTwo = engine.getRepositoryService().createPro...
processDefinitionKey("oneTaskProcess_712").singleResult();
1,036,675
// creates an HTML table to display actions loaded by the plugin<NEW_LINE>private void addLoadedActionsContent(StringBuilder buffer, PluginDescription pluginDescription) {<NEW_LINE>if (!model.isLoaded(pluginDescription)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>buffer.append("<TR>");<NEW_LINE>buffer.append("<TD VALIGN=\"...
insertHTMLString(buffer, menuPathString, locAttrSet);
445,676
public boolean hasNext() {<NEW_LINE>resetToLastKey();<NEW_LINE>// store all item keys of the first sequence to the set.<NEW_LINE>while (mOp1.hasNext()) {<NEW_LINE>key = mOp1.next();<NEW_LINE>if (asXdmNodeReadTrx().getNodeKey() < 0) {<NEW_LINE>// only nodes are<NEW_LINE>// allowed<NEW_LINE>throw new XPathError(ErrorType...
throw new XPathError(ErrorType.XPTY0004);
1,287,885
private void initRootModules(LookupEnvironment environment, FileSystem fileSystem) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>for (String m : this.rootModules) {<NEW_LINE>ModuleBinding mod = environment.getModule(m.toCharArray());<NEW_LINE>if (mod == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw ne...
qName, existing, m }));
1,544,630
private static void writeFragments(final List<? extends PsiFragment> psiFragments, Element duplicateElement, Project project, final boolean shouldWriteOffsets) {<NEW_LINE>final PathMacroManager macroManager = PathMacroManager.getInstance(project);<NEW_LINE>final PsiDocumentManager documentManager = PsiDocumentManager.g...
, String.valueOf(startOffset));
1,566,946
public MigrationProgress buildMigrationProgress(int hours) {<NEW_LINE>MigrationProgress progress = new MigrationProgress();<NEW_LINE>long totalMigrationSeconds = 0;<NEW_LINE>List<MigrationClusterTbl> migrationClusterTbls = migrationClusterDao.findLatestMigrationClusters(DateTimeUtils.getHoursBeforeDate(new Date(), hour...
.getStartTime().getTime();
168,382
private static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException {<NEW_LINE>WritableMap map = new WritableNativeMap();<NEW_LINE>Iterator<String> iterator = jsonObject.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>String key = iterator.next();<NEW_LINE>Object value = jsonObject.get(key);<...
(key, (String) value);
1,568,592
private double computeTumbleDrag() {<NEW_LINE>// Computed based on Sampo's experimentation as documented in the pdf.<NEW_LINE>// compute the fin and body tube projected areas<NEW_LINE>double aFins = 0.0;<NEW_LINE>double aBt = 0.0;<NEW_LINE>Rocket r = this.getConfiguration().getRocket();<NEW_LINE>Iterator<RocketComponen...
SymmetricComponent) component).getComponentPlanformArea();
1,596,400
private Integer parseLength(String attrValue, CSSName property, Box box, CssContext ctx) {<NEW_LINE>try {<NEW_LINE>return Integer.valueOf(attrValue);<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>// Not a plain number, probably has a unit (px, cm, etc), so<NEW_LINE>// try with css parser.<NEW_LINE>CSSParser par...
property, StylesheetInfo.AUTHOR, attrValue);
1,380,223
static <K> Comparator<K> create0(DependencyGraph<K> dependencyGraph, Map<String, AtomicLong> historicalServiceTimes, Function<K, String> toKey) {<NEW_LINE>final long defaultServiceTime = average(historicalServiceTimes.values());<NEW_LINE>final Map<K, Long> serviceTimes = new HashMap<>();<NEW_LINE>final Set<K> rootProje...
String::compareTo).reversed();