idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
532,283
public static void save(Properties properties, MetalTheme theme) {<NEW_LINE>log.config(CompiereColor.getDefaultBackground().toString());<NEW_LINE>//<NEW_LINE>properties.setProperty(P_Primary1, getColorAsString(theme.getPrimaryControlDarkShadow()));<NEW_LINE>properties.setProperty(P_Primary2, getColorAsString(theme.getP...
(e.getWhite()));
1,429,945
final UpdateUserResult executeUpdateUser(UpdateUserRequest updateUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
invoke(request, responseHandler, executionContext);
209,828
Mono<Response<PageBlobItem>> createWithResponse(PageBlobCreateOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRequestConditions requestConditions = options.getRequestConditions() == null ? new BlobRequestConditions() : options.getRequestConditions();<NEW_LIN...
logExceptionAsError(new IllegalArgumentException("SequenceNumber must be greater than or equal to 0."));
755,156
public static void main(final String[] args) throws Exception {<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.out.println("Please provide command line arguments: configPath topic");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final String topic = args[1];<NEW_LINE>// Load properties from a local configuration file<...
put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
120,160
public void onException(NestedContainer container, String errCode, String msg) {<NEW_LINE>if (TextUtils.equals(errCode, WXErrorCode.WX_DEGRAD_ERR_NETWORK_BUNDLE_DOWNLOAD_FAILED.getErrorCode()) && container instanceof WXEmbed) {<NEW_LINE>final WXEmbed comp = ((WXEmbed) container);<NEW_LINE>final ImageView imageView = ne...
FrameLayout hostView = comp.getHostView();
863,431
public void init(Properties props) {<NEW_LINE>_port = (<MASK><NEW_LINE>_zkStr = props.getProperty(ZOOKEEPER_CONNECT);<NEW_LINE>_logDirPath = props.getProperty(LOG_DIRS);<NEW_LINE>// Create the ZK nodes for Kafka, if needed<NEW_LINE>int indexOfFirstSlash = _zkStr.indexOf('/');<NEW_LINE>if (indexOfFirstSlash != -1) {<NEW...
int) props.get(PORT);
161,764
public static JsonNode readYamlTree(String contents, ParseOptions parseOptions, SwaggerParseResult deserializationUtilsResult) {<NEW_LINE>if (parseOptions != null && parseOptions.isLegacyYamlDeserialization()) {<NEW_LINE>org.yaml.snakeyaml.Yaml yaml = new org.yaml.snakeyaml.Yaml(new SafeConstructor());<NEW_LINE>return ...
convertValue(o, JsonNode.class);
800,623
Mono<Response<ReleaseKeyResult>> releaseKeyWithResponse(String name, String version, String targetAttestationToken, ReleaseKeyOptions releaseKeyOptions, Context context) {<NEW_LINE>try {<NEW_LINE>if (CoreUtils.isNullOrEmpty(name)) {<NEW_LINE>return monoError(logger, new IllegalArgumentException("'name' cannot be null o...
.warning("Failed to release key - {}", error));
1,270,348
private boolean handleRoute(boolean checkFirstRoute, SipServletRequestImpl request, String route, SipApplicationRouterInfo appInfo) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "handleRoute", new Object[] { checkFirstRoute, request, route, appInfo });<NEW_LINE>}<NEW_LINE>Addre...
throw new IllegalArgumentException("Application router info is invalid. Route doesn't contain valid SIP URI " + routeAddress);
674,415
public void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>Set<String> usedKeys = new HashSet<String>();<NEW_LINE>for (ComfoAirBindingProvider provider : providers) {<NEW_LINE>usedKeys.addAll(provider.getConfiguredKeys());<NEW_LINE>}<NEW_LINE>for (ComfoAirBindingProvider provider : providers) {<NEW...
(eventType, (DecimalType) command);
69,671
private void fillHorizontalEdge(Picture pic, int comp, int mbAddr, int[][] bs) {<NEW_LINE>SliceHeader sh = di.shs[mbAddr];<NEW_LINE>int mbWidth = sh.sps.picWidthInMbsMinus1 + 1;<NEW_LINE>int alpha = sh.sliceAlphaC0OffsetDiv2 << 1;<NEW_LINE><MASK><NEW_LINE>int mbX = mbAddr % mbWidth;<NEW_LINE>int mbY = mbAddr / mbWidth;...
int beta = sh.sliceBetaOffsetDiv2 << 1;
914,059
public void writeExcel() throws IOException {<NEW_LINE>Workbook workbook = new XSSFWorkbook();<NEW_LINE>try {<NEW_LINE>Sheet sheet = workbook.createSheet("Persons");<NEW_LINE>sheet.setColumnWidth(0, 6000);<NEW_LINE>sheet.setColumnWidth(1, 4000);<NEW_LINE>Row header = sheet.createRow(0);<NEW_LINE>CellStyle headerStyle =...
headerCell = header.createCell(0);
17,079
public <T extends Object> T load(T keyObject, DynamoDBMapperConfig config) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final Class<T> clazz = (Class<<MASK><NEW_LINE>config = mergeConfig(config);<NEW_LINE>final ItemConverter converter = getConverter(config);<NEW_LINE>final String tableName = getTableName(clazz, k...
T>) keyObject.getClass();
725,996
protected void createMapViews() {<NEW_LINE>mapView = getMapView();<NEW_LINE>mapView.getModel().frameBufferModel.setOverdrawFactor(1.0d);<NEW_LINE>mapView.getModel().init(this.preferencesFacade);<NEW_LINE>// Use external scale bar<NEW_LINE>mapView.getMapScaleBar().setVisible(false);<NEW_LINE>MapScaleBarImpl mapScaleBar ...
mapView.getModel().displayModel);
939,640
public void run(RegressionEnvironment env) {<NEW_LINE>// test single-event return<NEW_LINE>String[] fieldsSingleEvent = "c0,c1,c2,c3,c4".split(",");<NEW_LINE>String eplSingleEvent = "@name('s0') select " + "se1() as c0, " + "se1().allOf(v => v.theString = 'E1') as c1, " <MASK><NEW_LINE>env.compileDeploy(eplSingleEvent)...
+ "se1().allOf(v => v.intPrimitive = 1) as c2, " + "se1().theString as c3, " + "se1().intPrimitive as c4 " + "from SupportBean";
758,745
private JCMethodDecl generateCleanMethod(BuilderJob job) {<NEW_LINE>JavacTreeMaker maker = job.getTreeMaker();<NEW_LINE>ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>();<NEW_LINE>for (BuilderFieldData bfd : job.builderFields) {<NEW_LINE>if (bfd.singularData != null && bfd.singularData.getSingularizer(...
builderType, job.sourceNode, statements);
589,560
public static void save(Collection<? extends CallSiteDescriptor> descriptors, AnnotationContainer annotations) {<NEW_LINE>List<AnnotationValue> descriptorsValue = new ArrayList<>();<NEW_LINE>for (CallSiteDescriptor descriptor : descriptors) {<NEW_LINE>AnnotationHolder descriptorAnnot = new AnnotationHolder(CallSiteDesc...
add(new AnnotationValue(descriptorAnnot));
463,897
public void build(Task<Void> task) throws CompileExceptionError, IOException {<NEW_LINE>IResource input = task.getInputs().get(0);<NEW_LINE>PrototypeDesc.Builder protoBuilder = loadPrototype(input);<NEW_LINE>for (ComponentDesc c : protoBuilder.getComponentsList()) {<NEW_LINE>String component = c.getComponent();<NEW_LIN...
hash, ec.getType());
351,605
private void updateData() {<NEW_LINE>progressBar.setVisibility(View.VISIBLE);<NEW_LINE>contentView.setVisibility(View.GONE);<NEW_LINE>XTokenManager.getInstance().requestSessions(accountItem.getConnectionSettings().getXToken().getUid(), accountItem.getConnection(), new XTokenManager.SessionsListener() {<NEW_LINE><NEW_LI...
contentView.setVisibility(View.VISIBLE);
355,204
private Map<JobId, List<Job>> jobsToRun(Map<InstanceName, Change> changes, boolean eagerTests) {<NEW_LINE>Map<JobId, List<Job>> productionJobs = new LinkedHashMap<>();<NEW_LINE>changes.forEach((instance, change) -> productionJobs.putAll(productionJobs(instance, change, eagerTests)));<NEW_LINE>Map<JobId, List<Job>> test...
change)), DeploymentStatus::union);
125,421
public synchronized void addVariable(String deploymentId, VariableMetaData metaData, String optionalDeploymentIdContext, DataInputOutputSerde optionalSerde) {<NEW_LINE>// check if already exists<NEW_LINE>VariableDeployment deploymentEntry = deploymentsWithVariables.get(deploymentId);<NEW_LINE>if (deploymentEntry != nul...
deploymentsWithVariables.put(deploymentId, deploymentEntry);
719,638
private Mono<Response<Flux<ByteBuffer>>> replaceAllWithResponseAsync(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null)...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
393,591
public static void downloadCodeFromBlobStore(Map conf, String localRoot, String topologyId) throws IOException, KeyNotFoundException {<NEW_LINE>ClientBlobStore blobStore = BlobStoreUtils.getClientBlobStoreForSupervisor(conf);<NEW_LINE>FileUtils.forceMkdir(new File(localRoot));<NEW_LINE>String localStormJarPath = StormC...
masterStormConfKey = StormConfig.master_stormconf_key(topologyId);
100,166
public void startElement(String uri, String localName, String qName, Attributes elementAttributes) throws SAXException {<NEW_LINE>tag = qName.trim();<NEW_LINE>if (ENTRY_ELEMENT_NAME.equals(qName)) {<NEW_LINE>values = new HashMap<String, String>();<NEW_LINE>String path = elementAttributes.getValue(PATH_ATTRIBUTE);<NEW_L...
, elementAttributes.getValue(COPIED_ATTRIBUTE));
1,752,350
protected <E extends Entity> void handleSelectionWithField(@SuppressWarnings("unused") LookupBuilder<E> builder, HasValue<E> field, Collection<E> itemsFromLookup) {<NEW_LINE>if (itemsFromLookup.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collection<E> <MASK><NEW_LINE>Entity newValue = selectedItems.iterator().nex...
selectedItems = transform(itemsFromLookup, builder);
1,323,239
public static void normalize() {<NEW_LINE>if (getDebugLookahead() && !getDebugParser()) {<NEW_LINE>if (cmdLineSetting.contains(USEROPTION__DEBUG_PARSER) || inputFileSetting.contains(USEROPTION__DEBUG_PARSER)) {<NEW_LINE>JavaCCErrors.warning("True setting of option DEBUG_LOOKAHEAD overrides " + "false setting of option ...
valueOf(jdkVersionAtLeast(1.5)));
480,571
final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,096,920
private Properties needBrokerProprties(Properties properties) {<NEW_LINE>Properties newProperties = new Properties();<NEW_LINE>newProperties.setProperty("brokerClusterName", properties.getProperty("brokerClusterName"));<NEW_LINE>newProperties.setProperty("brokerId", properties.getProperty("brokerId"));<NEW_LINE>newProp...
, properties.getProperty("filterServerNums"));
365,989
private boolean ungrabWindowFX(ThreadReference tr) {<NEW_LINE>// javafx.stage.Window.impl_getWindows() - Iterator<Window><NEW_LINE>// while (iterator.hasNext()) {<NEW_LINE>// Window w = iterator.next();<NEW_LINE>// ungrabWindowFX(w);<NEW_LINE>// }<NEW_LINE>try {<NEW_LINE>VirtualMachine vm = MirrorWrapper.virtualMachine...
next(next, tr, windowsIterator);
534,519
static void write(DiagnosticsLogWriter writer, ConcurrentMap<Class, LatencyDistribution> opLatencyDistribution) {<NEW_LINE>for (Map.Entry<Class, LatencyDistribution> entry : opLatencyDistribution.entrySet()) {<NEW_LINE>LatencyDistribution distribution = entry.getValue();<NEW_LINE>if (distribution.count() == 0) {<NEW_LI...
"totalTime(us)", distribution.totalMicros());
487,210
private double[] determineMinMaxDistance(Relation<ParameterizationFunction> relation, int dimensionality) {<NEW_LINE>double[] min <MASK><NEW_LINE>double[] max = new double[dimensionality - 1];<NEW_LINE>Arrays.fill(max, Math.PI);<NEW_LINE>HyperBoundingBox box = new HyperBoundingBox(min, max);<NEW_LINE>double d_min = Dou...
= new double[dimensionality - 1];
1,522,872
private TypeDefPatch updateMetadataServerClassification() {<NEW_LINE>final String typeName = "MetadataServer";<NEW_LINE>TypeDefPatch <MASK><NEW_LINE>typeDefPatch.setUpdatedBy(originatorName);<NEW_LINE>typeDefPatch.setUpdateTime(creationDate);<NEW_LINE>List<TypeDefAttribute> properties = new ArrayList<>();<NEW_LINE>Type...
typeDefPatch = archiveBuilder.getPatchForType(typeName);
1,110,248
private void receiveMessage(@NonNull final RequestToProcurementWeb event) {<NEW_LINE>auditService.logReceivedFromMetasfresh(Constants.QUEUE_NAME_MF_TO_PW, event);<NEW_LINE>if (event instanceof PutBPartnersRequest) {<NEW_LINE>handler.handlePutBPartnersRequest((PutBPartnersRequest) event);<NEW_LINE>} else if (event insta...
.handlePutInfoMessageRequest((PutInfoMessageRequest) event);
209,307
private void fillBuffer(boolean block) throws IOException {<NEW_LINE>int maxFill = Math.min(workingBuffer.length, buffer.length - bytesInBuffer);<NEW_LINE>int oldTimeout = socket.getSoTimeout();<NEW_LINE>if (!block) {<NEW_LINE>socket.setSoTimeout(1);<NEW_LINE>}<NEW_LINE>int readBytes;<NEW_LINE>try {<NEW_LINE>readBytes ...
bytesInBuffer++] = workingBuffer[i];
468,039
public Boolean checkHeartbeat(final String hostuuid) {<NEW_LINE>final com.trilead.ssh2.Connection sshConnection = new com.trilead.ssh2.Connection(<MASK><NEW_LINE>try {<NEW_LINE>sshConnection.connect(null, 60000, 60000);<NEW_LINE>if (!sshConnection.authenticateWithPassword(_username, _password.peek())) {<NEW_LINE>throw ...
_host.getIp(), 22);
440,326
public Callback traverseCallback(String key, Callback callback) {<NEW_LINE>if (isTraversed(callback)) {<NEW_LINE>return callback;<NEW_LINE>}<NEW_LINE>if (previsit) {<NEW_LINE>callback = visitor.visitCallback(this, key, callback);<NEW_LINE>if (callback == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ance...
removePathItem(entry.getKey());
401,025
protected List<Unit> collectDefinitionsWithAliases(Local l, LocalDefs localDefs, LocalUses localUses, Body body) {<NEW_LINE>Set<Local> seenLocals = new HashSet<Local>();<NEW_LINE>List<Local> newLocals = new ArrayList<Local>();<NEW_LINE>List<Unit> defs = new ArrayList<Unit>();<NEW_LINE>newLocals.add(l);<NEW_LINE>seenLoc...
usesOf = localUses.getUsesOf(u);
538,087
final GetWorkflowResult executeGetWorkflow(GetWorkflowRequest getWorkflowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkflowRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetWorkflowRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
447,693
private static Class<?> validateLocationAndFrame(Node location, Frame frame, Object value) {<NEW_LINE>InteropLibrary interop = InteropLibrary.getUncached(value);<NEW_LINE>assert interop.hasLanguage(value) : String.format("The value '%s' is not associated with any language.", value);<NEW_LINE>Class<? extends TruffleLang...
String.format("The location '%s' does not have a RootNode.", location);
1,715,121
protected Void doInBackground() throws Exception {<NEW_LINE>try {<NEW_LINE>// 0 page count means it's already been processed (or PDF if empty)<NEW_LINE>if (pageCount > 0 || forceRescan) {<NEW_LINE>assetPanel.showImagePanelProgress(true);<NEW_LINE>for (int pageNumber = 1; pageNumber < pageCount + 1; pageNumber++) {<NEW_...
awaitTermination(3, TimeUnit.MINUTES);
580,049
public void controlChanged(Object source) {<NEW_LINE>if (source == spinnerN) {<NEW_LINE>int v = (Integer) spinnerN.getValue();<NEW_LINE>if (v == config.numberOfNeighborsN)<NEW_LINE>return;<NEW_LINE>config.numberOfNeighborsN = v;<NEW_LINE>} else if (source == spinnerM) {<NEW_LINE>int v = <MASK><NEW_LINE>if (v == config....
(Integer) spinnerM.getValue();
603,599
public void marshall(RequestCertificateRequest requestCertificateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (requestCertificateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(requestCe...
requestCertificateRequest.getTags(), TAGS_BINDING);
512,200
public <T extends Event> T callEvent(T event) {<NEW_LINE>if (event.getHandlers().getRegisteredListeners().length == 0) {<NEW_LINE>return event;<NEW_LINE>}<NEW_LINE>Server server = ServerProvider.getServer();<NEW_LINE>if (event.isAsynchronous()) {<NEW_LINE>server.getPluginManager().callEvent(event);<NEW_LINE>return even...
BukkitScheduler scheduler = server.getScheduler();
1,201,221
private void stopHandle(ProcessHandle processHandle, boolean forcibly) {<NEW_LINE>// Stop all children first, ES could actually be a child when there's some wrapper process like on Windows.<NEW_LINE>if (processHandle.isAlive() == false) {<NEW_LINE>logger.info("Process was not running when we tried to terminate it.");<N...
info("process did not terminate after {} {}, stopping it forcefully", ES_DESTROY_TIMEOUT, ES_DESTROY_TIMEOUT_UNIT);
928,394
private ExportResult<VideosContainerResource> exportVideos(TokensAndUrlAuthData authData, Optional<StringPaginationToken> paginationData) throws CopyExceptionWithFailureReason {<NEW_LINE>Optional<String> paginationToken = paginationData.map(StringPaginationToken::getToken);<NEW_LINE>try {<NEW_LINE>Connection<Video> vid...
ExportResult.ResultType.END, null);
1,413,217
protected final Boolean isDLMTable(final IProcessPreconditionsContext context) {<NEW_LINE>if (Check.equals(context.getTableName(), I_DLM_Partition_Config_Line.Table_Name)) {<NEW_LINE>final I_DLM_Partition_Config_Line configLine = <MASK><NEW_LINE>final I_AD_Table table = InterfaceWrapperHelper.create(configLine.getDLM_R...
context.getSelectedModel(I_DLM_Partition_Config_Line.class);
1,054,263
public void init(String name) {<NEW_LINE>Properties p = new Properties();<NEW_LINE>ClassLoader classLoader = getClass().getClassLoader();<NEW_LINE>try {<NEW_LINE>URL url = classLoader.getResource(name + ".properties");<NEW_LINE>if (url != null) {<NEW_LINE><MASK><NEW_LINE>p.load(is);<NEW_LINE>is.close();<NEW_LINE>Logger...
InputStream is = url.openStream();
1,292,974
private ExtractedJarEntry extractJarEntry(URL url) {<NEW_LINE>try {<NEW_LINE>JarURLConnection jarUrlConnection = (JarURLConnection) url.openConnection();<NEW_LINE>JarFile jarFile = jarUrlConnection.getJarFile();<NEW_LINE><MASK><NEW_LINE>if (jarEntry.isDirectory()) {<NEW_LINE>// a directory<NEW_LINE>return new Extracted...
JarEntry jarEntry = jarUrlConnection.getJarEntry();
1,244,146
private Mono<Response<SecurityContactInner>> updateWithResponseAsync(String securityContactName, SecurityContactInner securityContact, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono....
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
379,133
private Result<Map<com.google.cloud.datastore.Key, Entity>> fetchPending() {<NEW_LINE>// We don't need to fetch anything that has been stuffed<NEW_LINE>final Map<com.google.cloud.datastore.Key, Entity> combined = new HashMap<>();<NEW_LINE>Set<com.google.cloud.datastore.Key> <MASK><NEW_LINE>for (com.google.cloud.datasto...
fetch = new HashSet<>();
1,194,499
public void jsConstructor(final String type, final ScriptableObject details) {<NEW_LINE>super.jsConstructor(ScriptRuntime.toString(type), details);<NEW_LINE>if (details != null && !Undefined.isUndefined(details)) {<NEW_LINE>final Object screenX = details.get("screenX", details);<NEW_LINE>if (NOT_FOUND != screenX) {<NEW...
details.get("button", details);
1,598,287
public void renderSummaryTo(ClassDoc classDoc, Element parent) {<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>Element summarySection = document.createElement("section");<NEW_LINE>parent.appendChild(summarySection);<NEW_LINE>Element title = document.createElement("title");<NEW_LINE>summarySection.app...
(document.createTextNode("Script blocks"));
824,757
private static Polygon removeInteriorRings(Polygon polygon, double minArea, List<LinearRing> removedRings) {<NEW_LINE>int nRings = polygon.getNumInteriorRing();<NEW_LINE>if (nRings == 0)<NEW_LINE>return polygon;<NEW_LINE>var holes = new ArrayList<LinearRing>();<NEW_LINE>for (int i = 0; i < nRings; i++) {<NEW_LINE>var r...
var factory = polygon.getFactory();
465,583
public JobAlbumArt unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JobAlbumArt jobAlbumArt = new JobAlbumArt();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
265,101
private WasmExpression negate(WasmExpression expr) {<NEW_LINE>if (expr instanceof WasmIntBinary) {<NEW_LINE>WasmIntBinary binary = (WasmIntBinary) expr;<NEW_LINE>if (binary.getType() == WasmIntType.INT32 && binary.getOperation() == WasmIntBinaryOperation.XOR) {<NEW_LINE>if (isOne(binary.getFirst())) {<NEW_LINE>return b...
negate(binary.getOperation());
744,417
public String readServerId() {<NEW_LINE>// once set this should never change<NEW_LINE>if (SERVER_ID == null) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (SERVER_ID == null) {<NEW_LINE>try {<NEW_LINE>final File serverFile = serverIdFile();<NEW_LINE>if (!serverFile.exists()) {<NEW_LINE>writeServerIdToDisk(UUIDUtil.uuid(...
ServerAPIImpl.class, "ServerID: " + SERVER_ID);
1,000,870
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, JsonElement jsonElement) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerCon...
ExceptionEntityNotExist(id, Work.class);
1,696,262
public boolean isNeedLoadUrl(WebView view, ResourceRequest request) {<NEW_LINE>String urlString = request.getRequestUrl().toString();<NEW_LINE>try {<NEW_LINE>URI uri = new URI(request.getRequestUrl().toString());<NEW_LINE>if (uri.getScheme().equals(mJSScheme)) {<NEW_LINE>CocosHelper.runOnGameThreadAtForeground(() -> Co...
HiLog.debug(TAG, "Failed to create URI from url");
1,421,791
private CodeBlock signingRegionsByPartition(Partitions partitions) {<NEW_LINE>Map<Partition, Service> services = getServiceData(partitions);<NEW_LINE>CodeBlock.Builder builder = CodeBlock.builder().add("$T.<$T, $T>builder()", ImmutableMap.class, byPartitionKeyClass(), String.class);<NEW_LINE>services.forEach((partition...
Endpoint partitionDefaults = service.getDefaults();
260,633
protected EInteger select_delete(final EMatchSpec matcher) {<NEW_LINE>int delete_count = in_tx(new WithMap<Integer>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Integer run(IPersistentMap map) {<NEW_LINE>ESeq vals = ERT.NIL;<NEW_LINE>int initial_count = sizeRef.get();<NEW_LINE>EObject key = matcher.getTupleKey(k...
map = map.without(key);
644,754
// @checkstyle-disable-check : AbbreviationAsWordInNameCheck<NEW_LINE>protected // @checkstyle-enable-check : AbbreviationAsWordInNameCheck<NEW_LINE>PKIXBuilderParameters // @checkstyle-enable-check : AbbreviationAsWordInNameCheck<NEW_LINE>newPKIXBuilderParameters(// @checkstyle-enable-check : AbbreviationAsWordInNameC...
Security.setProperty("ocsp.responderURL", _ocspResponderURL);
1,372,574
public GatewayFilter apply(Config config) {<NEW_LINE>return new GatewayFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<NEW_LINE>addOriginalRequestUrl(exchange, request.getURI());...
StringBuilder newPath = new StringBuilder("/");
40,218
private boolean buildNodeMap(JoinNode joinNode) {<NEW_LINE>PlanNode leftNode = joinNode.getLeftNode();<NEW_LINE>PlanNode rightNode = joinNode.getRightNode();<NEW_LINE>if (jn.isNotIn() || jn.getJoinFilter().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if ((leftNode.type() != PlanNode.PlanNodeType.TABLE && !(l...
return buildNodeMap((JoinNode) leftNode);
1,040,447
private void templateDetailsInitIfNotExist(long id, String name, String value) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>PreparedStatement stmtInsert = null;<NEW_LINE>boolean insert = false;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>stmt = tx...
"Unable to init template " + id + " datails: " + name);
409,402
private void testListFilesInMultipleDirectories() throws Exception {<NEW_LINE>LOGGER.info("========= List Files in Multiple Directories ==========");<NEW_LINE>long prepareTime = System.currentTimeMillis();<NEW_LINE>URI listTestUri = combinePath(_baseDirectoryUri, "listTestMultipleFile");<NEW_LINE>_pinotFS.mkdir(listTes...
, combinePath(directoryUri, relativePath));
1,354,887
private List<FhirVersionIndependentConcept> extractValueSetCodes(IBaseResource theValueSet) {<NEW_LINE>List<FhirVersionIndependentConcept> retVal = new ArrayList<>();<NEW_LINE>RuntimeResourceDefinition vsDef = myContext.getResourceDefinition("ValueSet");<NEW_LINE>BaseRuntimeChildDefinition expansionChild = vsDef.getChi...
getAccessor().getFirstValueOrNull(theValueSet);
2,842
public static void main(String[] args) throws IOException {<NEW_LINE>List<PainlessContextInfo> contextInfos = getContextInfos();<NEW_LINE>Set<Object> sharedStaticInfos = createSharedStatics(contextInfos);<NEW_LINE>Set<PainlessContextClassInfo> sharedClassInfos = createSharedClasses(contextInfos);<NEW_LINE>Path rootDir ...
sharedDir, javaNamesToDisplayNames, staticInfos, classInfos);
907,428
public void run() {<NEW_LINE>try {<NEW_LINE>final JSONObject result = actFmInvoker.authenticate(email, firstName, lastName, provider, secret);<NEW_LINE>final String token = actFmInvoker.getToken();<NEW_LINE>if (result.optBoolean("new")) {<NEW_LINE>// Report new user statistic<NEW_LINE>StatisticsService.reportEvent(Stat...
dismissDialog(ActFmLoginActivity.this, progressDialog);
695,106
public Trainer<Label> wrapTrainer(Trainer<Label> trainer) {<NEW_LINE>if ((ensembleSize > 0) && (type != null)) {<NEW_LINE>switch(type) {<NEW_LINE>case ADABOOST:<NEW_LINE>logger.info("Using Adaboost with " + ensembleSize + " members.");<NEW_LINE>return new AdaBoostTrainer(trainer, ensembleSize, seed);<NEW_LINE>case BAGG...
VotingCombiner(), ensembleSize, seed);
183,218
final ListTemplateAliasesResult executeListTemplateAliases(ListTemplateAliasesRequest listTemplateAliasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTemplateAliasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight");
1,216,180
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception {<NEW_LINE>ODistributedDatabase db = iManager.getMessageService().getDatabase(database.getName());<NEW_LINE>db.checkReverseSync(lastState);<NEW_LINE>List<OTran...
()).extractTransactionsFromWal(missing);
398,114
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'."...
Utils.getValueFromIdByName(id, "resourceGroups");
1,596,708
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) {<NEW_LINE>if (replacementOngoing(allocation) == false) {<NEW_LINE>return NO_REPLACEMENTS;<NEW_LINE>} else if (replacementFromSourceToTarget(allocation, shardRouting.currentNodeId(), node.node().getName())) {<NEW_LINE...
), shardRouting.currentNodeId());
57,848
public MethodHandle findShadowMethodHandle(Class<?> definingClass, String name, MethodType methodType, boolean isStatic) throws IllegalAccessException {<NEW_LINE>return PerfStatsCollector.getInstance().measure("find shadow method handle", () -> {<NEW_LINE>MethodType actualType = isStatic ? methodType : methodType.dropP...
] paramTypes = actualType.parameterArray();
1,204,828
public void onError(Throwable t) {<NEW_LINE>if (this.done) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Subscription currentSubscription = this.s;<NEW_LINE>if (currentSubscription == Operators.cancelledSubscription() || !S.compareAndSet(this, currentSubscription, Operators.cancelledSubscription())) {<NE...
logger.debug("Dropped error", t);
751,038
private void initComponents() {<NEW_LINE>// This class is a refactored copy of ArtifactsListPanel so lacks the form however the init method still constructs the proper UI elements.<NEW_LINE>javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jTable1 = <MASK><NEW_LINE>setOpaque(false);<NEW_LIN...
new javax.swing.JTable();
601,245
public static void vertical5(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...
(total + halfDivisor) / divisor);
8,387
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>logger.warn(String.format("unable to check state of the vm[uuid:%s] on the host[uuid:%s], %s;" + "put the VM into the Unknown state", self.getUuid(), hostUuid<MASK><NEW_LINE>changeVmStateInDb(VmInstanceStateEvent.unknown);<NEW_LINE>comple...
, reply.getError()));
1,482,575
public Optional<SimpleLock> lock(@NonNull LockConfiguration lockConfiguration) {<NEW_LINE>String transactionId = null;<NEW_LINE>try {<NEW_LINE>StreamTransactionEntity streamTransactionEntity = arangoCollection.db().beginStreamTransaction(new StreamTransactionOptions().exclusiveCollections<MASK><NEW_LINE>transactionId =...
(arangoCollection.name()));
1,573,668
private void loadOrgAccessAdd(ArrayList<OrgAccess> list, OrgAccess oa) {<NEW_LINE>if (list.contains(oa))<NEW_LINE>return;<NEW_LINE>list.add(oa);<NEW_LINE>// Do we look for trees?<NEW_LINE>if (getAD_Tree_Org_ID() == 0)<NEW_LINE>return;<NEW_LINE>MOrg org = MOrg.get(getCtx(), oa.AD_Org_ID);<NEW_LINE>if (!org.isSummary())<...
DB.close(rs, pstmt);
159,504
public boolean install(final String name, final String version, final ProgressHandle progressHandle) throws OperationException {<NEW_LINE>final CompositeProgress composite = new CompositeProgress(new ProgressHandleAdapter(progressHandle));<NEW_LINE>final Progress logicProgress = new Progress();<NEW_LINE><MASK><NEW_LINE...
final Progress dataProgress = new Progress();
1,148,436
public void start(BundleContext context) throws Exception {<NEW_LINE>super.start(context);<NEW_LINE>Version.registerApplication("SpotBugs-Eclipse", Version.VERSION_STRING);<NEW_LINE>// configure debugging<NEW_LINE>configurePluginDebugOptions();<NEW_LINE>// initialize resource strings<NEW_LINE>try {<NEW_LINE>// this is ...
).addSaveParticipant(PLUGIN_ID, saveParticipant);
979,837
/*<NEW_LINE>* ************************** INVOICE CBA REBALANCING ********************************<NEW_LINE>*/<NEW_LINE>@TimedResource<NEW_LINE>@PUT<NEW_LINE>@Path("/{accountId:" + UUID_PATTERN + "}/" + CBA_REBALANCING)<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(valu...
invoiceApi.consumeExistingCBAOnAccountWithUnpaidInvoices(accountId, callContext);
1,418,207
final UpdateAlarmModelResult executeUpdateAlarmModel(UpdateAlarmModelRequest updateAlarmModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAlarmModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,273,970
// The dialog box that appears when menu item is selected.<NEW_LINE>private JPanel buildDialogPanel() {<NEW_LINE>JPanel contents = new JPanel(new BorderLayout(20, 20));<NEW_LINE>contents.setBorder(new EmptyBorder(10, 10, 10, 10));<NEW_LINE>// Top row - the check box for setting...<NEW_LINE>exceptionHandlerSetting = new...
add(exceptionHandlerSetting, BorderLayout.NORTH);
55,098
public void findTypes(String prefix, ISearchRequestor storage, int type) {<NEW_LINE>CompletionResultRequestor requestor = new CompletionResultRequestor(storage, this.unitToSkip, this.project, this.nameLookup);<NEW_LINE>int index = prefix.lastIndexOf('.');<NEW_LINE>if (index == -1) {<NEW_LINE>this.nameLookup.seekTypes(p...
seekPackageFragments(packageName, false, elementRequestor);
1,370,672
public void run() {<NEW_LINE>logger.info("run() started.");<NEW_LINE>ZookeeperJob<K> latestHeadJob = null;<NEW_LINE>// Things to consider<NEW_LINE>// spinLock possible when events are not deleted<NEW_LINE>// may lead to PinpointServer leak when events are left unresolved<NEW_LINE>while (workerState.isStarted()) {<NEW_L...
K>> zookeeperJobList = poll();
1,038,951
public void activate(ComponentContext context) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Dictionary<String, Object> properties = context.getProperties();<NEW_LINE>path = (String) properties.get("path");<NEW_LINE>rootUri = (String) properties.get("rootUri");<NEW_LINE>String indexName = (String) properties.get("...
Boolean) properties.get("modifiable");
340,714
public Map<String, ParameterDescription<?>> computeParameters() {<NEW_LINE>HashMap<String, ParameterDescription<?>> map = new HashMap<String, ParameterDescription<?>>();<NEW_LINE>ParameterDescription<Boolean> e_calls = ParameterDescription.create(Boolean.class, "EventCall", true, true, "event=call", "CALL instruction")...
map.put("EventExec", e_exec);
1,639,414
public void saveParam(Object obj) throws Exception {<NEW_LINE>OptionsParam options = (OptionsParam) obj;<NEW_LINE>ScannerParam param = options.getParamSet(ScannerParam.class);<NEW_LINE>param.setHostPerScan(getSliderHostPerScan().getValue());<NEW_LINE>param.setThreadPerHost(getSliderThreadsPerHost().getValue());<NEW_LIN...
getDefaultAscanPolicyPulldown().getSelectedItem());
586,571
final Snapshot executeDeleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecut...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,520,712
public void registerMap() {<NEW_LINE>handler(wrapper -> {<NEW_LINE>int id = wrapper.read(Type.INT);<NEW_LINE>// Check extra bit for fast dismissal<NEW_LINE>if ((id & (1 << 30)) != 0 && wrapper.user().get(InventoryAcknowledgements.class).removeId(id)) {<NEW_LINE>// Decode our requested inventory acknowledgement<NEW_LINE...
write(Type.UNSIGNED_BYTE, inventoryId);
757,095
private static void syncRoleDefaultOptionToDb(Connection conn, List<PolarAccountInfo> accounts, List<PolarAccountInfo> roles) throws SQLException {<NEW_LINE>final String sql = String.format("update %s set %s = true where %s = ? and %s = ?;", <MASK><NEW_LINE>try (PreparedStatement stmt = conn.prepareStatement(sql)) {<NE...
TABLE_ROLE_PRIV, COL_IS_DEFAULT_ROLE, COL_RECEIVER_ID, COL_ROLE_ID);
412,136
protected void processRepositories(CombinedIndexBuildItem index, BuildProducer<BytecodeTransformerBuildItem> transformers, BuildProducer<ReflectiveHierarchyBuildItem> reflectiveHierarchy, BuildProducer<PropertyMappingClassBuildStep> propertyMappingClass, PanacheRepositoryEnhancer repositoryEnhancer, TypeBundle typeBund...
daoTypeParameters = new HashSet<>();
1,853,176
private void prepareMount(LayoutState layoutState, @Nullable PerfEvent perfEvent) {<NEW_LINE>final boolean isTracing = RenderCoreSystrace.isEnabled();<NEW_LINE>if (isTracing) {<NEW_LINE>RenderCoreSystrace.beginSection("MountState.prepareMount");<NEW_LINE>}<NEW_LINE>final PrepareMountStats stats = unmountOrMoveOldItems(...
markerAnnotate(PARAM_MOVED_COUNT, stats.movedCount);
133,751
public Object invokeMethod(String className, String methodName, String methodDesc, JavaValue targetObject, List<JavaValue> args, Context context) {<NEW_LINE>ClassNode classNode = classpath.get(className);<NEW_LINE>if (classNode != null) {<NEW_LINE>MethodNode methodNode = classNode.methods.stream().filter(mn -> mn.name....
IllegalArgumentException("Could not find method " + methodName + methodDesc);
1,237,855
public void handle(RoutingContext routingContext) {<NEW_LINE>try {<NEW_LINE>RequestParametersImpl parsedParameters = new RequestParametersImpl();<NEW_LINE>parsedParameters.setPathParameters(validatePathParams(routingContext));<NEW_LINE>parsedParameters.setQueryParameters(validateQueryParams(routingContext));<NEW_LINE>p...
).getHeader(HttpHeaders.CONTENT_TYPE);
145,836
/*<NEW_LINE>* Performs deferred logging. Call only if logging at this level is enabled.<NEW_LINE>*<NEW_LINE>* @param logLevel sets the logging level<NEW_LINE>* @param args Arguments for the message, if an exception is being logged last argument is the throwable.<NEW_LINE>*/<NEW_LINE>private void performDeferredLogging(...
+= System.lineSeparator() + throwableMessage;
192,881
public RepositorySummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RepositorySummary repositorySummary = new RepositorySummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
415,012
public double[] process(final double[] input) {<NEW_LINE>if (input.length != this.inputSize) {<NEW_LINE>throw new AnalystError("Invalid input size: " + input.<MASK><NEW_LINE>}<NEW_LINE>this.buffer.add(0, EngineArray.arrayCopy(input));<NEW_LINE>// are we ready yet?<NEW_LINE>if (this.buffer.size() < this.totalDepth) {<NE...
length + ", should be " + this.inputSize);