idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,854,732
final UpdateDomainContactPrivacyResult executeUpdateDomainContactPrivacy(UpdateDomainContactPrivacyRequest updateDomainContactPrivacyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainContactPrivacyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,059,089
private static TypeQualifierAnnotation computeEffectiveTypeQualifierAnnotation(TypeQualifierValue<?> typeQualifierValue, AnnotatedObject o) {<NEW_LINE>Map<AnnotatedObject, TypeQualifierAnnotation> map = getEffectiveObjectAnnotations().computeIfAbsent(typeQualifierValue, k -> new HashMap<>());<NEW_LINE>// Check cached a...
"Looking up application of " + typeQualifierValue + " on " + o);
1,275,230
public void readSettings(WizardDescriptor wiz) {<NEW_LINE>boolean init = false;<NEW_LINE>if (wizard == null) {<NEW_LINE>init = true;<NEW_LINE>wizard = wiz;<NEW_LINE>}<NEW_LINE>Configuration panel = component.getConfiguration();<NEW_LINE>String displayName = (String) wiz.getProperty(AddDockerInstanceWizard.DISPLAY_NAME_...
wiz.getProperty(AddDockerInstanceWizard.SOCKET_PROPERTY);
1,528,208
protected void validateKvmExtraConfig(String decodedUrl) {<NEW_LINE>String[] allowedConfigOptionList = KvmAdditionalConfigAllowList.value().split(",");<NEW_LINE>// Skip allowed keys validation validation for DPDK<NEW_LINE>if (!decodedUrl.contains(":")) {<NEW_LINE>try {<NEW_LINE>DocumentBuilder builder = DocumentBuilder...
nodeList = doc.getElementsByTagName("*");
1,616,907
private static // to separate the different tokens.<NEW_LINE>List<TokenizedString> preTokensToDelimitedTokens(List<PreTokenizedString> pretokens) {<NEW_LINE>List<TokenizedString> tokens = new ArrayList<>();<NEW_LINE>int size = pretokens.size();<NEW_LINE>int i = 0;<NEW_LINE>while (i < size) {<NEW_LINE>StringBuilder char...
(), Token.ALNUM_PLUS));
945,496
public ResponseEntity<Void> deleteUserWithHttpInfo(String username) throws RestClientException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required paramet...
final String[] contentTypes = {};
1,273,292
final RegisterConnectorResult executeRegisterConnector(RegisterConnectorRequest registerConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerConnectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
196,731
private void redraw(Area area) {<NEW_LINE>if (!area.isEmpty()) {<NEW_LINE>Rectangle r = getClientArea();<NEW_LINE>if (area != Area.FULL) {<NEW_LINE>r.x = Math.max(0, Math.min(r.width - 1, (int) Math.<MASK><NEW_LINE>r.y = Math.max(0, Math.min(r.height - 1, (int) Math.floor(area.y)));<NEW_LINE>r.width = Math.max(0, Math....
floor(area.x)));
309,240
public int compareTo(final Sample other) {<NEW_LINE>int cmp = ID.compareTo(other.getID());<NEW_LINE>if (0 == cmp) {<NEW_LINE>// use a null-tolerant string comparator for the optional strings<NEW_LINE>Comparator<String> compStr = Comparator.nullsFirst(Comparator.comparing(String::toString));<NEW_LINE>cmp = compStr.compa...
maternalID, other.getMaternalID());
1,050,962
static Slime encodeRequest(ConfigKey<?> key, String hostname, DefContent defSchema, PayloadChecksums payloadChecksums, long generation, long timeout, Trace trace, long protocolVersion, CompressionType compressionType, Optional<VespaVersion> vespaVersion) {<NEW_LINE>Slime data = new Slime();<NEW_LINE><MASK><NEW_LINE>req...
Cursor request = data.setObject();
1,469,484
public List<BtcNodes.BtcNode> selectPreferredNodes(BtcNodes nodes) {<NEW_LINE>List<BtcNodes.BtcNode> result;<NEW_LINE>BtcNodes.BitcoinNodesOption nodesOption = BtcNodes.BitcoinNodesOption.values()[preferences.getBitcoinNodesOptionOrdinal()];<NEW_LINE>switch(nodesOption) {<NEW_LINE>case CUSTOM:<NEW_LINE><MASK><NEW_LINE>...
String bitcoinNodes = preferences.getBitcoinNodes();
511,546
public static void vertical5(Kernel1D_S32 kernel, GrayU16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[...
int imgWidth = dst.getWidth();
774,937
public static ListAppsResponse unmarshall(ListAppsResponse listAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppsResponse.setRequestId(_ctx.stringValue("ListAppsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNumber(_ctx.integerValue("ListAppsResponse.Data.PageNumber"));<NEW_LINE>d...
(_ctx.integerValue("ListAppsResponse.Data.TotalCount"));
1,019,400
public void mockRemoteGitRepos(Validator validator, GitRepository credentialsRepo) throws IOException {<NEW_LINE>assertWithMessage("mockRemoteGitRepos() method called more than once in this test").that(mockHttpTransport).isNull();<NEW_LINE>mockHttpTransport = mock(MockHttpTransport.class, withSettings().defaultAnswer(i...
, method, url, content));
1,541,917
protected Map<String, Object> buildCustomHeaders(ServiceBusReceivedMessage message) {<NEW_LINE>Map<String, Object> headers = new HashMap<>();<NEW_LINE>// Spring MessageHeaders<NEW_LINE>setValueIfHasText(headers, MessageHeaders.ID, message.getMessageId());<NEW_LINE>setValueIfHasText(headers, MessageHeaders.CONTENT_TYPE,...
DEAD_LETTER_REASON, message.getDeadLetterReason());
1,222,201
public void testHandleListClosesConnectionLeakedAcrossContextualTask() throws Exception {<NEW_LINE>// HandleList pseudo-context must be cleared regardless. It is not a configurable context type.<NEW_LINE>ThreadContext contextualizer = ThreadContext.builder().propagated(ThreadContext.NONE).cleared(ThreadContext.NONE).un...
Connection con2 = defaultDataSource_unsharable.getConnection();
1,729,869
private /* GRECLIPSE edit -- GROOVY-10113<NEW_LINE>private void checkCyclicInheritance(ClassNode originalNode, ClassNode parentToCompare, ClassNode[] interfacesToCompare) {<NEW_LINE>if(!originalNode.isInterface()) {<NEW_LINE>if(parentToCompare == null) return;<NEW_LINE>if(originalNode == parentToCompare.redirect()) {<N...
originalNode.getName(), originalNode);
204,838
public Buffer readFrom(final Class<Buffer> type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap<String, String> httpHeaders, final InputStream entityStream) throws WebApplicationException {<NEW_LINE>return handleEntityStream(entityStream, ctxRefProvider.get().get...
"Not enough bytes for content-length: " + contentLength + ", only got: " + written);
685,073
public static Locale toLocale(String localeString) {<NEW_LINE>if (Strings.isNullOrEmpty(localeString)) {<NEW_LINE>return Locale.getDefault();<NEW_LINE>}<NEW_LINE>int separatorCountry = localeString.indexOf('_');<NEW_LINE>char separator;<NEW_LINE>if (separatorCountry >= 0) {<NEW_LINE>separator = '_';<NEW_LINE>} else {<N...
Locale(language, country, variant);
465,839
protected final Result onRunJob(@NonNull Params params) {<NEW_LINE>PersistableBundleCompat extras = params.getExtras();<NEW_LINE>boolean runOnce = extras.getBoolean(EXTRA_ONCE, false);<NEW_LINE>if (!runOnce && (!extras.containsKey(EXTRA_START_MS) || !extras.containsKey(EXTRA_END_MS))) {<NEW_LINE>CAT.e("Daily job doesn'...
CAT.i("Rescheduling daily job %s", request);
1,447,377
public String[] orLogicalCriteria() {<NEW_LINE>final Session session = HibernateUtil.getHibernateSession();<NEW_LINE>final CriteriaBuilder cb = session.getCriteriaBuilder();<NEW_LINE>final CriteriaQuery<Item> cr = cb.createQuery(Item.class);<NEW_LINE>final Root<Item> root = cr.from(Item.class);<NEW_LINE>Predicate great...
.or(greaterThanPrice, chairItems));
1,151,981
final DeleteLanguageModelResult executeDeleteLanguageModel(DeleteLanguageModelRequest deleteLanguageModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLanguageModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
565,549
final CreateCrawlerResult executeCreateCrawler(CreateCrawlerRequest createCrawlerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCrawlerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
1,653,707
private HintResponse hintFieldName(String lastWord, String input, int caretPosition, Set<InferredType> expectedTypes) {<NEW_LINE>QueryTree queryTree;<NEW_LINE>try {<NEW_LINE>queryTree = new QueryTree(model, input, false);<NEW_LINE>} catch (JPA2RecognitionException e) {<NEW_LINE>List<String> errorMessages = new ArrayLis...
findAttributesStartingWith(path.lastEntityFieldPattern, expectedTypes);
38,183
public void draw(Batch batch, float parentAlpha) {<NEW_LINE>validate();<NEW_LINE>setBackground(getBackgroundDrawable());<NEW_LINE><MASK><NEW_LINE>if (isPressed() && !isDisabled()) {<NEW_LINE>offsetX = style.pressedOffsetX;<NEW_LINE>offsetY = style.pressedOffsetY;<NEW_LINE>} else if (isChecked() && !isDisabled()) {<NEW_...
float offsetX = 0, offsetY = 0;
1,302,906
/*<NEW_LINE>* Given an array of variables, check if any are arrays and if so expand any other of the given variables to arrays of the same length.<NEW_LINE>* Doubles are turned into arrays of all the same value as original. Arrays of other lengths are padded with zeros.<NEW_LINE>*/<NEW_LINE>public Variable[] expandVari...
] vArrayValues = v.getArrayValue();
131,200
protected void run(StructuredGraph graph) {<NEW_LINE>EconomicMap<LoopBeginNode, EconomicSet<LocationIdentity>> modifiedInLoops = null;<NEW_LINE>if (graph.hasLoops()) {<NEW_LINE>modifiedInLoops = EconomicMap.create(Equivalence.IDENTITY);<NEW_LINE>ControlFlowGraph cfg = ControlFlowGraph.compute(graph, true, true, false, ...
(graph.start()));
597,777
// GEN-LAST:event_rbRegisteredLibraryItemStateChanged<NEW_LINE>private void jbBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jbBrowseActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>// NOI18N<NEW_LINE>chooser.setDialogTitle(NbBundle.getMessage(JSFConfigur...
getMessage(JSFConfigurationPanelVisual.class, "LBL_FileTypeInChooser");
465,370
/*<NEW_LINE>public static boolean createWorld(MinecraftServer server, String worldKey, Long seed)<NEW_LINE>{<NEW_LINE>ResourceLocation worldId = new ResourceLocation(worldKey);<NEW_LINE>ServerLevel overWorld = server.overworld();<NEW_LINE><NEW_LINE>Set<ResourceKey<Level>> worldKeys = server.levelKeys();<NEW_LINE>for (R...
()).nextLong());
738,368
private void updateContainers(String type, String name, String targetKey, JSONArray updateDatas) {<NEW_LINE>JSONObject workloadSpec = (JSONObject<MASK><NEW_LINE>log.info("configmap trait parent workload {}", workloadSpec.toJSONString());<NEW_LINE>JSONArray containers;<NEW_LINE>if (workloadSpec.get("cloneSet") != null) ...
) getWorkloadRef().getSpec();
136,992
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>String str1 = request.getParameter("str1");<NEW_LINE>String str2 = request.getParameter("str2");<NEW_LINE>String str3 = request.getParameter("str3");<NEW_LINE>if (str1 != null &...
.getWriter().flush();
614,181
void persistLocalCacheFile(File baseDir, String namespace) {<NEW_LINE>if (baseDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = assembleLocalCacheFile(baseDir, namespace);<NEW_LINE>OutputStream out = null;<NEW_LINE>Transaction transaction = <MASK><NEW_LINE>transaction.addData("LocalConfigFile", file.getAb...
Tracer.newTransaction("Apollo.ConfigService", "persistLocalConfigFile");
526,486
private void generateAlias(GwtLocale locale, GwtLocale parent) throws IOException {<NEW_LINE>System.out.println("Generating alias " + locale);<NEW_LINE>String suffix;<NEW_LINE>if (parent.isDefault()) {<NEW_LINE>suffix = "";<NEW_LINE>} else {<NEW_LINE>suffix = "_" + parent.getAsString();<NEW_LINE>}<NEW_LINE>String packa...
= "DateTimeFormatInfoImpl_" + locale.getAsString();
1,081,737
private void drawYAxis() {<NEW_LINE>long yInc = findScale(maxY - minY);<NEW_LINE>minYQ = (minY / yInc) * yInc;<NEW_LINE>maxYQ = (1 + (maxY / yInc)) * yInc;<NEW_LINE>long gridY = minYQ;<NEW_LINE>int maxYLabelWidth = StringUtil.formatThousands(Long.toString(maxYQ)).length();<NEW_LINE>graphGapLeft = Math.max(40.5, maxYLab...
y = graphGapTop + normaliseY(gridY);
354,301
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if (evt.getSource() == lb) {<NEW_LINE>handleURL(lb.getURL());<NEW_LINE>} else if (DataObject.PROP_PRIMARY_FILE.equals(evt.getPropertyName())) {<NEW_LINE>FileObject newFO = ((DataObject) evt.getSource()).getPrimaryFile();<NEW_LINE>boolean addBack = false;<NE...
toURL().toString());
1,273,744
private void renderPillar(BannerBlockEntity bannerBlockEntity, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, int j) {<NEW_LINE>matrixStack.push();<NEW_LINE>BlockState blockState = bannerBlockEntity.getCachedState();<NEW_LINE>matrixStack.translate(0.5D, 0.5D, 0.5D);<NEW_LINE>float h = (f...
.POSITIVE_Y.getDegreesQuaternion(h));
773,578
static String printTemplate(Template template) {<NEW_LINE>int[] columnWidths = new int[] { TABLE_WIDTH };<NEW_LINE>List<String> templateProperty = new ArrayList<>();<NEW_LINE>templateProperty.add(template.getUID());<NEW_LINE>String titleRow = Utils.getRow(columnWidths, templateProperty);<NEW_LINE>List<String> templateC...
.getRow(columnWidths, templateProperty));
953,432
public RubyString inspect() {<NEW_LINE>if (str == null)<NEW_LINE>return (RubyString) anyToString();<NEW_LINE>Ruby runtime = metaClass.runtime;<NEW_LINE>RubyString result = runtime.newString();<NEW_LINE>result.cat((byte) '#').cat((byte) '<');<NEW_LINE>result.append(getMetaClass().getRealClass().to_s());<NEW_LINE>NameEnt...
NameEntry e = i.next();
1,220,900
private List<File> findResourcesFromExportTxt(final File contentsDir) {<NEW_LINE>final File exportTxt = new File(contentsDir, "export.txt");<NEW_LINE>if (!exportTxt.exists()) {<NEW_LINE>log(<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, String[]> exportTable;<NEW_LINE>try {<NEW_LINE>exportTable = pa...
"No export.txt in " + contentsDir.getAbsolutePath());
1,489,968
public static void sample_IU16(final GrayU16 input, final FastAccess<Point2D_I32> sample, final InterleavedU16 output, @Nullable ImageBorder_S32<GrayU16> border, @Nullable DogArray_I32 workSpace) {<NEW_LINE>// Compute the number of 16-bit values that are needed to store<NEW_LINE>int numBlocks = BoofMiscOps.bitsToWords(...
input, borderRadius, workSpace, output);
527,023
public void uploadCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.upload#InputStream-long<NEW_LINE>try {<NEW_LINE>client.upload(data, length);<NEW_LINE>System.out.println("Upload from file succeeded");<NEW_LINE>} catch (UncheckedIOException ex) {<NEW_LINE>System.err.printf("Failed...
"Failed to upload from file %s%n", ex.getMessage());
1,713,782
protected Stream<HoodieClusteringGroup> buildClusteringGroupsForPartition(String partitionPath, List<FileSlice> fileSlices) {<NEW_LINE>List<Pair<List<FileSlice>, Integer>> fileSliceGroups = new ArrayList<>();<NEW_LINE>List<FileSlice> currentGroup = new ArrayList<>();<NEW_LINE>long totalSizeSoFar = 0;<NEW_LINE>HoodieWri...
.of(currentGroup, numOutputGroups));
1,768,806
public static String generateUnformattedCptJsonSchema() {<NEW_LINE>List<Map<String, String>> anyStringList = new ArrayList<>();<NEW_LINE>Map<String, String> stringMap = new HashMap<>();<NEW_LINE>stringMap.put("type", "string");<NEW_LINE>anyStringList.add(stringMap);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>nullMap....
nullMap = new HashMap<>();
1,352,568
// checking for existing version of the plugin<NEW_LINE>private void verifyPluginName(Path pluginPath, String pluginName) throws UserException, IOException {<NEW_LINE>// don't let user install plugin conflicting with module...<NEW_LINE>// they might be unavoidably in maven central and are packaged up the same way)<NEW_...
"plugin directory [%s] already exists; if you need to update the plugin, " + "uninstall it first using command 'remove %s'", destination, pluginName);
1,852,971
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final List<Long> timeList = new ArrayList<Long>();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objName", objName);<NEW_LINE>long <MASK><NEW_LINE>param.put("from", from);<NEW_LINE>param.put("to", from + Da...
from = DateUtil.yyyymmdd(date);
1,287,671
public MiniAccumuloConfigImpl useExistingInstance(File accumuloProps, File hadoopConfDir) throws IOException {<NEW_LINE>if (existingInstance != null && !existingInstance) {<NEW_LINE>throw new UnsupportedOperationException("Cannot set to useExistingInstance after specifying config/zookeeper");<NEW_LINE>}<NEW_LINE>this.e...
= new File(hadoopConfDir, "core-site.xml");
877,082
public JsonNodeContainer evaluate(JsonNodeContainer contextNode) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("---> evaluating expression [" + expression + "] on a node with (size: " + contextNode.getSize() + ", cSize: " + contextNode.getContainerSize() + ")");<NEW_LINE>}<NEW_LINE>JsonNodeContainer result ...
.addNodes(goAnywhereDown(node));
1,699,119
private boolean isSQLStartLogicMatches(final Workflow workflow, final PO document) {<NEW_LINE>String logic = workflow.getDocValueWorkflowTriggerLogic();<NEW_LINE>// "SQL="<NEW_LINE>logic = logic.substring(4);<NEW_LINE>//<NEW_LINE>final String tableName = document.get_TableName();<NEW_LINE>final String[] keyColumns = do...
), document.get_TrxName());
1,811,456
public void process(T image) {<NEW_LINE>Objects.requireNonNull(norm_to_pixel, "You must set norm_to_pixel first");<NEW_LINE>BoofMiscOps.checkTrue(width != 0 && height != 0, "You must specify width and height");<NEW_LINE>frameID++;<NEW_LINE>observedID.clear();<NEW_LINE>dropped.clear();<NEW_LINE>spawned.clear();<NEW_LINE...
world_to_view.transform(X, viewX);
362,989
public TargetDetails translateDropTargetDetails(Map<String, Object> clientVariables) {<NEW_LINE>Map<String, Object> serverVariables = new HashMap<String, Object>();<NEW_LINE>if (clientVariables.containsKey("dropSlotIndex")) {<NEW_LINE>int slotIndex = (Integer) clientVariables.get("dropSlotIndex");<NEW_LINE>int dayIndex...
(clientVariables.containsKey("dropSlotIndex"));
116,301
private boolean areImplicitInputsUpToDate(ImplicitInputsCapturingInstantiator serviceRegistry, KEY key, ConfigurableRules<DETAILS> rules, CachedEntry<RESULT> entry) {<NEW_LINE>for (Map.Entry<String, Collection<ImplicitInputRecord<?, ?>>> implicitEntry : entry.getImplicits().asMap().entrySet()) {<NEW_LINE>String service...
key, provider.getClass());
1,500,977
public void marshall(Job job, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (job == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(job.getAccelerationSettings(), ACCELERATIONSETTINGS_BINDING);<NEW_LINE>prot...
job.getTiming(), TIMING_BINDING);
411
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {<NEW_LINE>final int width = getMeasuredWidth();<NEW_LINE>final int height = getMeasuredHeight();<NEW_LINE>ResourceHelper helper = new ResourceHelper(getContext(), "com.klinker.android.twitter");<NEW_LINE>if (Build.VERSION.SDK_INT > 18 &...
int childTop = mCurrentTargetOffsetTop + getPaddingTop();
1,332,261
public void withdrawReward(byte[] address) {<NEW_LINE>if (!dynamicPropertiesStore.allowChangeDelegation()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AccountCapsule accountCapsule = accountStore.get(address);<NEW_LINE>long beginCycle = delegationStore.getBeginCycle(address);<NEW_LINE>long endCycle = delegationStore.getEndC...
setBeginCycle(address, endCycle + 1);
295,385
protected final Size computeCaptureSize(@NonNull Mode mode) {<NEW_LINE>// We want to pass stuff into the REF_VIEW reference, not the sensor one.<NEW_LINE>// This is already managed by CameraOptions, so we just flip again at the end.<NEW_LINE>boolean flip = getAngles().flip(Reference.SENSOR, Reference.VIEW);<NEW_LINE>Si...
selector, SizeSelectors.biggest());
595,817
private static void copyRequiredLibraries(AntProjectHelper h, ReferenceHelper rh) throws IOException {<NEW_LINE>if (!h.isSharableProject()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (// NOI18N<NEW_LINE>rh.getProjectLibraryManager().getLibrary("junit") == null && LibraryManager.getDefault().getLibrary("junit") != null) ...
().getLibrary("junit"));
1,145,123
private void doUnregisterHandler(final Thing thing, final ThingHandlerFactory thingHandlerFactory) {<NEW_LINE>logger.debug("Calling unregisterHandler handler for thing '{}' at '{}'.", thing.getUID(), thingHandlerFactory);<NEW_LINE>safeCaller.create(() -> {<NEW_LINE>ThingHandler thingHandler = thing.getHandler();<NEW_LI...
(ThingStatus.UNINITIALIZED, detail));
272,411
public AntennaDownlinkConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AntennaDownlinkConfig antennaDownlinkConfig = new AntennaDownlinkConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,519,823
private void restorePullRequestBranch() {<NEW_LINE>PullRequestMarker head = mPullRequest.head();<NEW_LINE>if (head.repo() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String owner = head.repo().owner().login();<NEW_LINE>String repo = head.repo().name();<NEW_LINE>GitService service = ServiceFactory.get(GitService.cla...
-> handleActionFailure("Restoring PR branch failed", error));
1,433,707
private static String makeMessage(AssignmentEntry assignment, /* Nullable */<NEW_LINE>String reason, boolean isField) {<NEW_LINE>// if reason is null, then the variable is unused (at most assigned to)<NEW_LINE>String varName = assignment.var.getName();<NEW_LINE>StringBuilder result = new StringBuilder(64);<NEW_LINE>if ...
result.charAt(0)));
1,135,925
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_drawer);<NEW_LINE>// set up an authentication handler to take credentials for access to arcgis.com<NEW_LINE>AuthenticationChallengeHandler handler = new DefaultAuthenticationChalle...
getSupportActionBar().setHomeButtonEnabled(true);
505,012
final GetNodeResult executeGetNode(GetNodeRequest getNodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
false), new GetNodeResultJsonUnmarshaller());
793,413
public CompletableFuture<Collection<Instant>> renewMessageLocksAsync(UUID[] lockTokens) {<NEW_LINE>this.throwIfInUnusableState();<NEW_LINE>if (TRACE_LOGGER.isDebugEnabled()) {<NEW_LINE>TRACE_LOGGER.debug("Renewing message locks for lock tokens '{}' of entity '{}', sesion '{}'", Arrays.toString(lockTokens), this.receive...
put(ClientConstants.REQUEST_RESPONSE_LOCKTOKENS, lockTokens);
1,701,627
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (StringUtils.isEmpty(System.getenv("OCAML_POST_PROCESS_FILE"))) {<NEW_LINE>LOGGER.info("Hint: Environment variable 'OCAML_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export OCAML_POST_PROCESS_FILE=\"ocamlfor...
put(CodegenConstants.PACKAGE_NAME, packageName);
595,823
public ModelArchive registerModel(String url, String modelName, Manifest.RuntimeType runtime, String handler, int batchSize, int maxBatchDelay, int responseTimeout, String defaultModelName, boolean ignoreDuplicate, boolean isWorkflowModel, boolean s3SseKms) throws ModelException, IOException, InterruptedException, Down...
String versionId = archive.getModelVersion();
811,015
private void initCompletedUserTaskRetentionPolicy(KafkaCruiseControlConfig config, List<CruiseControlEndpointType> endpointTypes) {<NEW_LINE>Integer defaultMaxCachedCompletedUserTasks = config.getInt(UserTaskManagerConfig.MAX_CACHED_COMPLETED_USER_TASKS_CONFIG);<NEW_LINE>Long defaultCompletedUserTaskRetentionTimeMs = c...
config.getInt(UserTaskManagerConfig.MAX_CACHED_COMPLETED_KAFKA_ADMIN_USER_TASKS_CONFIG);
1,788,840
private void assertCompatibleAttributes(NodeState first, NodeState second, Set<NodeState> incompatibleNodes) {<NEW_LINE>ImmutableAttributes firstAttributes = first.getMetadata().getAttributes();<NEW_LINE>ImmutableAttributes secondAttributes = second.getMetadata().getAttributes();<NEW_LINE>ImmutableSet<Attribute<?>> fir...
v1 = firstAttributes.getAttribute(attribute);
695,667
public boolean isCached(RequestAuthenticator authenticator) {<NEW_LINE>// Assuming authenticatedPrincipal set by previous call of checkCurrentToken() during this request<NEW_LINE>if (authenticatedPrincipal != null) {<NEW_LINE>log.debug("remote logged in already. Establish state from cookie");<NEW_LINE>RefreshableKeyclo...
class.getName(), securityContext);
372,906
public void initSDK(MethodCall methodCall, MethodChannel.Result result) {<NEW_LINE>int sdkAppID = methodCall.argument("sdkAppID");<NEW_LINE>int logLevel = methodCall.argument("logLevel");<NEW_LINE>String uiPlatform = methodCall.argument("uiPlatform");<NEW_LINE>final String listenerUuid = methodCall.argument("listenerUu...
CommonUtil.returnSuccess(result, res);
1,373,788
private // -----------------//<NEW_LINE>void processDynamics(DynamicsInter dynamics) {<NEW_LINE>try {<NEW_LINE>logger.debug("Visiting {}", dynamics);<NEW_LINE>// No point to export incorrect dynamics<NEW_LINE>if (dynamics.getShape() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Direction direction = factory.createDir...
(yOf(location, staff));
43,108
public byte[] retrieveKey(UUID universeUUID, UUID configUUID, byte[] keyRef, EncryptionAtRestConfig config) {<NEW_LINE>if (keyRef == null) {<NEW_LINE>String errMsg = String.format("Retrieve key could not find a key ref for universe %s...", universeUUID.toString());<NEW_LINE>LOG.warn(errMsg);<NEW_LINE>return null;<NEW_L...
universeUUID, configUUID, keyRef, config);
500,956
public static I_C_Invoice_Candidate createIcAndSetCommonFields(@NonNull final I_C_Flatrate_Term term) {<NEW_LINE>// Services<NEW_LINE>final DimensionService dimensionService = SpringContextHolder.instance.getBean(DimensionService.class);<NEW_LINE>final IOrderDAO orderDAO = Services.get(IOrderDAO.class);<NEW_LINE>final ...
(term.getM_Product_ID()));
1,205,886
public static void start(String cfgPath) {<NEW_LINE>if (!started.compareAndSet(false, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>MonitorCfg cfg = MonitorCfgLoader.load(cfgPath);<NEW_LINE>agent.<MASK><NEW_LINE>agent.setClusterName(cfg.getClusterName());<NEW_LINE>if (StringUtils.isNotEmpty(cfg.getBindIp...
setRegistryAddress(cfg.getRegistryAddress());
686,123
public void deleteById(String id) {<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'.", id)));<NEW_LINE>}<NEW_LINE>String ser...
Utils.getValueFromIdByName(id, "resourceGroups");
953,298
private Component createCellImpl(Object value, final int row, final int column, boolean editable) {<NEW_LINE>Component c = createCell(value, row, column, editable);<NEW_LINE>c.putClientProperty("row", new Integer(row));<NEW_LINE>c.putClientProperty("column", new Integer(column));<NEW_LINE>// we do this here to allow su...
) c).addActionListener(listener);
4,253
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length < 1) {<NEW_LINE>throw new NotEnoughArgumentsException();<NEW_LINE>}<NEW_LINE>final String senderName = sender.isPlayer() ? sender.getPlayer().getDisplayName() : Co...
ipAddress, banReason, null, senderName);
1,641,549
public double multi8p(int x, int y, double masc) {<NEW_LINE>int aR = getIntComponent0(x - 1, y - 1);<NEW_LINE>int bR = getIntComponent0(x - 1, y);<NEW_LINE>int cR = getIntComponent0(x - 1, y + 1);<NEW_LINE>int aG = getIntComponent1(x - 1, y - 1);<NEW_LINE>int bG = getIntComponent1(x - 1, y);<NEW_LINE>int cG = getIntCom...
getIntComponent0(x + 1, y);
1,648,091
static SimHash<int[]> of(byte[][] features) {<NEW_LINE>int n = features.length;<NEW_LINE>long[] hash = new long[n];<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>ByteBuffer buffer = ByteBuffer.wrap(features[i]);<NEW_LINE>hash[i] = MurmurHash2.hash64(buffer, 0, features<MASK><NEW_LINE>}<NEW_LINE>return weight -> {<NEW...
[i].length, 0);
364,917
private void appendTypesToRegenerateStaleGeneratedTypes(Set<String> staleTypeNames) {<NEW_LINE>Set<String> generatedCompilationUnitNames = reboundTypeNamesByGeneratedCompilationUnitNames.keySet();<NEW_LINE>// Filter the current stale types list for any compilation units that are known to be generated.<NEW_LINE>Set<Stri...
String> reboundTypesThatGenerateTheStaleCompilationUnits = computeReboundTypesThatGenerateTypes(staleGeneratedCompilationUnitNames);
401,981
public static DescribeStrategyTargetResponse unmarshall(DescribeStrategyTargetResponse describeStrategyTargetResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeStrategyTargetResponse.setRequestId(_ctx.stringValue("DescribeStrategyTargetResponse.RequestId"));<NEW_LINE>List<StrategyTarget> strategyTargets = new Array...
("DescribeStrategyTargetResponse.StrategyTargets[" + i + "].Flag"));
715,530
private static List<Pair<String, List<Pair<Integer, Long>>>> findGetIndex(TableMeta tableMeta, List<XPlanEqualTuple> conditions) {<NEW_LINE>final Map<String, Integer> keyMap = new <MASK><NEW_LINE>for (int idx = 0; idx < conditions.size(); ++idx) {<NEW_LINE>keyMap.put(tableMeta.getAllColumns().get(conditions.get(idx).ge...
TreeMap<>(String.CASE_INSENSITIVE_ORDER);
1,041,378
private void exportTasks(Map<Integer, net.sf.mpxj.Task> id2mpxjTask) throws MPXJException {<NEW_LINE>// Map<CustomPropertyDefinition, FieldType> customProperty_fieldType = new HashMap<CustomPropertyDefinition, FieldType>();<NEW_LINE>// collectCustomProperties(getTaskManager().getCustomPropertyManager(), customProperty_...
Task rootTask = myOutputProject.addTask();
1,221,477
public <T extends IBaseResource> T doParseResource(Class<T> theResourceType, Reader theReader) throws DataFormatException {<NEW_LINE>// We can only parse to bundles.<NEW_LINE>if ((theResourceType != null) && (!(IBaseBundle.class.isAssignableFrom(theResourceType)))) {<NEW_LINE>throw new DataFormatException(Msg.code(1834...
) + err.getMessage());
1,735,182
public static void drawHorizontalMarginString(Graphics2D g, Color stringColor, String string, boolean isReference, int x1, int x2, int y) {<NEW_LINE>if (stringColor != null) {<NEW_LINE>g.setColor(stringColor);<NEW_LINE>}<NEW_LINE>if (string != null) {<NEW_LINE>Font previousFont = g.getFont();<NEW_LINE>g.setFont(sFont);...
metrics.getStringBounds(string, g);
1,718,126
private void loadNode623() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsVariableType_ServerUri, new QualifiedName(0, "ServerUri"), new LocalizedText("en", "ServerUri"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValu...
(1), 0.0, false);
13,608
private void startDLCluster() {<NEW_LINE>System.out.println("Starting DL cluster...");<NEW_LINE>try {<NEW_LINE>mlContext = DLClusterUtils.makeMLContext(taskId, mlConfig, ExecutionMode.TRAIN);<NEW_LINE>Map<String, String<MASK><NEW_LINE>String workDir = properties.get(MLConstants.WORK_DIR);<NEW_LINE>DLClusterUtils.setMLC...
> properties = mlConfig.getProperties();
1,627,732
public void process(List<AddRemoveListItem<T>> addRemoveList, TableData<T> tableData, TaskMonitor monitor) throws CancelledException {<NEW_LINE>int n = addRemoveList.size();<NEW_LINE>monitor.setMessage("Adding/Removing " + n + " items...");<NEW_LINE>monitor.initialize(n);<NEW_LINE>Set<T> failedToRemove = new HashSet<>(...
monitor.setMessage("Removing " + message);
750,716
public ResponseData<Boolean> removeDataBucketItem(String bucketId, boolean force, WeIdPrivateKey privateKey) {<NEW_LINE>try {<NEW_LINE>logger.info("[remove] remove Bucket Item, bucketId is {}, force is {}.", bucketId, force);<NEW_LINE>TransactionReceipt receipt = getDataBucket(privateKey.getPrivateKey()).removeDataBuck...
>(false, ErrorCode.TRANSACTION_EXECUTE_ERROR);
242,621
private static void applyComments(ClassNode cls, List<ICodeComment> clsComments) {<NEW_LINE>for (ICodeComment comment : clsComments) {<NEW_LINE><MASK><NEW_LINE>switch(nodeRef.getType()) {<NEW_LINE>case CLASS:<NEW_LINE>addComment(cls, comment.getComment());<NEW_LINE>break;<NEW_LINE>case FIELD:<NEW_LINE>FieldNode fieldNo...
IJavaNodeRef nodeRef = comment.getNodeRef();
1,656,331
private String[] initProperties() {<NEW_LINE>List<String> props = new ArrayList<>();<NEW_LINE>props.add(createPropertyKey(P.TYPE));<NEW_LINE>props.add(createPropertyKey(P.NAME));<NEW_LINE>props.add(createPropertyKey(P.CALLABLE));<NEW_LINE>props.add(createPropertyKey(P.DESCRIPTION));<NEW_LINE>props.add(createPropertyKey...
toArray(new String[0]);
371,143
private String findMainClass(IJavaProject javaProject) throws Exception {<NEW_LINE>ArrayList<IJavaElement> srcs = new ArrayList<IJavaElement>();<NEW_LINE>for (IClasspathEntry entry : javaProject.getResolvedClasspath(true)) {<NEW_LINE>if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {<NEW_LINE>for (IPackageFragme...
= new ArrayList<IMethod>();
1,224,925
public void execute() throws BuildException {<NEW_LINE>try {<NEW_LINE>// XXX workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=43398<NEW_LINE>pseudoTests = new LinkedHashMap<>();<NEW_LINE>if (getProject().getProperty("allmodules") != null) {<NEW_LINE>modules = new TreeSet<>(Arrays.asList(getProject().get...
Path nbAllPath = nball.toPath();
1,195,503
public void registerFactories() {<NEW_LINE>//<NEW_LINE>// Register payment action handlers.<NEW_LINE>final IESRImportBL esrImportBL = Services.get(IESRImportBL.class);<NEW_LINE>esrImportBL.registerActionHandler(X_ESR_ImportLine.ESR_PAYMENT_ACTION_Write_Off_Amount, new WriteoffESRActionHandler());<NEW_LINE>esrImportBL.r...
Services.get(IPaymentStringParserFactory.class);
931,613
static String buildExternalJson(String dsl, CompileOptions options, LogLevel logLevel, Messager messager) throws IOException {<NEW_LINE>File temp = File.createTempFile("annotation-", ".dsl");<NEW_LINE>try {<NEW_LINE>FileOutputStream fos = new FileOutputStream(temp);<NEW_LINE>fos.write(dsl.getBytes());<NEW_LINE>fos.clos...
()), options.namespace);
523,482
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.transit.realtime.GtfsRealtime.VehiclePosition.CarriageDetails>.ExtensionWriter extensionWriter = newExtensionWriter();<NEW_LINE>if (((bitField0_ & 0...
output.writeEnum(3, occupancyStatus_);
698,926
public Map<String, Object> saveFileAction(String selectedItem, String wfActionAssign, String wfActionId, String wfActionComments, String wfConId, String wfPublishDate, String wfPublishTime, String wfExpireDate, String wfExpireTime, String wfNeverExpire, String whereToSend, String forcePush, String pathToMove) throws Do...
find(wfConId, user, false);
1,286,393
final StopEngagementResult executeStopEngagement(StopEngagementRequest stopEngagementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopEngagementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
686,655
private void doMarkInstance(ClusterShardHostPort clusterShardHostPort, boolean state) throws OuterClientException {<NEW_LINE>try {<NEW_LINE>catTransactionMonitor.logTransaction(TYPE, String.format("doMarkInstance-%s-%s", clusterShardHostPort, state), new Task() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void go() t...
"[doMarkInstance][ end ]{},{},{}", clusterShardHostPort, state, response);
1,777,080
private List<Writable> rowToRecord(Row currRow) {<NEW_LINE>if (numColumns < 0) {<NEW_LINE>numColumns = currRow.getLastCellNum();<NEW_LINE>}<NEW_LINE>if (currRow.getLastCellNum() != numColumns) {<NEW_LINE>throw new IllegalStateException("Invalid number of columns for row. First number of columns found was " + numColumns...
Double.parseDouble(cellValue)));
892,495
private void deleteAliasesAndModel(DeleteTrainedModelAction.Request request, List<String> modelAliases, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>logger.debug(() -> new ParameterizedMessage("[{}] Deleting model", request.getId()));<NEW_LINE>ActionListener<AcknowledgedResponse> nameDeletionListener = Act...
builder = ClusterState.builder(currentState);