idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,644,607
public MockResponse selectMockResponse(MockRequest request, MockResult result) throws DispatchException {<NEW_LINE>String dispatchScript = getMockOperation().getScript();<NEW_LINE>if (StringUtils.hasContent(dispatchScript)) {<NEW_LINE>SoapUIScriptEngine scriptEngine = scriptEnginePool.getScriptEngine();<NEW_LINE>try {<...
null : request.getRequestContext());
906,591
public static boolean matches(@NonNull HintContext ctx, @NonNull TreePath variable, @NonNull String pattern, Map<String, TreePath> outVariables, Map<String, Collection<? extends TreePath>> outMultiVariables, Map<String, String> outVariables2Names, Map<String, TypeMirror> variable2Type) {<NEW_LINE>Pattern p = PatternCom...
>(ctx.getMultiVariables());
501,030
final ListTagsForResourceOutput executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new ListTagsForResourceOutputJsonUnmarshaller());
1,642,165
private File process(File file) throws IOException {<NEW_LINE>if (!properties.containsKey("mainName")) {<NEW_LINE>throw new IllegalStateException("Properties must contain mainName property");<NEW_LINE>}<NEW_LINE>if (!properties.containsKey("packageName")) {<NEW_LINE>throw new IllegalStateException("Properties must cont...
.getParentFile().delete();
1,289,683
// State and error message updates to tasks are done in this method instead of waitForSubTasks<NEW_LINE>// because nobody is waiting for the parent task.<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Throwable t = null;<NEW_LINE>TaskType taskType = taskInfo.getTaskType();<NEW_LINE>taskStartTime = Instant.now...
setTaskState(TaskInfo.State.Running);
1,274,871
public SBase convertProtocolBuffersMessageToSObject(Message message, SBase newInstance, SClass sClass) throws ConvertException {<NEW_LINE>try {<NEW_LINE>Descriptor descriptor = message.getDescriptorForType();<NEW_LINE>if (newInstance == null) {<NEW_LINE>newInstance = sClass.newInstance();<NEW_LINE>}<NEW_LINE>Message su...
convertProtocolBuffersMessageToSObject(subTypeMessage, newInstance, sClass);
269,550
protected List<RequestHandler> createRequestHandlers() throws ServiceException {<NEW_LINE>List<RequestHandler> requestHandlers = super.createRequestHandlers();<NEW_LINE>List<RequestHandler> cubaRequestHandlers = new ArrayList<>();<NEW_LINE>ServletContext servletContext = getServlet().getServletContext();<NEW_LINE>for (...
PushRequestHandler) handler).getPushHandler();
48,221
private void loadNode1109() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_AnonymousIdentityToken, new QualifiedName(0, "AnonymousIdentityToken"), new LocalizedText("en", "AnonymousIdentityToken"), LocalizedText...
String xml = sb.toString();
1,655,767
public static void unZipAll(File inputZipFile, String destinationFolderPath) throws IOException {<NEW_LINE>byte[] buffer = new byte[1024];<NEW_LINE>// get the zip file content<NEW_LINE>ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(inputZipFile));<NEW_LINE>// get the zipped file list entry<NEW_L...
String fileName = zipEntry.getName();
336,847
List<OrderDecorator> buildCustomFilterList(Element element, ParserContext pc) {<NEW_LINE>List<Element> customFilterElts = DomUtils.getChildElementsByTagName(element, Elements.CUSTOM_FILTER);<NEW_LINE>List<OrderDecorator> customFilters = new ArrayList<>();<NEW_LINE>for (Element elt : customFilterElts) {<NEW_LINE>String ...
, pc.extractSource(elt));
1,359,269
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>featureCheckBox = new javax.swing.JCheckBox();<NEW_LINE>descriptionLabel = new javax.swing.JLabel();<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(featureCheckBox, feature.ge...
descriptionLabel, feature.getDescription());
1,800,816
public ActiveRun startRun(String runName, String parentRunId) {<NEW_LINE>Map<String, String> tags = new HashMap<>();<NEW_LINE>if (runName != null) {<NEW_LINE>tags.put(MlflowTagConstants.RUN_NAME, runName);<NEW_LINE>}<NEW_LINE>tags.put(MlflowTagConstants.USER, System.getProperty("user.name"));<NEW_LINE>tags.put(MlflowTa...
()).build());
1,637,793
protected static Pair<Type, Integer> fromThrift(TTypeDesc typeDesc, int nodeIdx) throws InternalException {<NEW_LINE>TTypeNode node = typeDesc.getTypes().get(nodeIdx);<NEW_LINE>Type type = null;<NEW_LINE>switch(node.getType()) {<NEW_LINE>case SCALAR:<NEW_LINE>{<NEW_LINE>Preconditions.checkState(node.isSetScalarType());...
), scalarType.getScale());
850,618
private List<I_M_HU> createReceiptCandidatesAndHUs(@NonNull final Quantity qtyToReceive) {<NEW_LINE>//<NEW_LINE>// Create HU Context<NEW_LINE>trxManager.assertThreadInheritedTrxExists();<NEW_LINE>final IMutableHUContext huContext = handlingUnitsBL.createMutableHUContext(Env.getCtx(), ITrx.TRXNAME_ThreadInherited);<NEW_...
(false).setAllowPartialLoads(false);
664,996
Mono<Response<BlockBlobItem>> uploadFromUrlWithResponse(BlobUploadFromUrlOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRequestConditions destinationRequestConditions = options.getDestinationRequestConditions() == null ? new BlobRequestConditions() : option...
.getSourceAuthorization().toString();
852,522
protected UOWScope uowBegin(int uowType) throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "uowBegin", Integer.valueOf(uowType));<NEW_LINE>switch(uowType) {<NEW_LINE>case UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION:<NEW_LINE>UserTransactionImpl...
exit(tc, "uowBegin", uows);
30,276
public void run() {<NEW_LINE>String value = null;<NEW_LINE>if (orientation.equalsIgnoreCase(NORMAL)) {<NEW_LINE>if (getNaturalDeviceOrientation() == Configuration.ORIENTATION_LANDSCAPE)<NEW_LINE>RhodesActivity.safeGetInstance().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);<NEW_LINE>else<NEW_LINE>R...
).setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
1,076,313
protected JComponent buildContent() {<NEW_LINE>requestSplitPane = UISupport.createHorizontalSplit();<NEW_LINE>requestSplitPane.setResizeWeight(0.5);<NEW_LINE>requestSplitPane.setBorder(null);<NEW_LINE>submitAction = new SubmitAction();<NEW_LINE>submitButton = createActionButton(submitAction, true);<NEW_LINE>submitButto...
(new CancelAction(), false);
761,806
public void collect() {<NEW_LINE>if (init.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Range range = Range.newUncheckedRange(timeSlotEndTime - slotInterval, timeSlotEndTime);<NEW_LINE>List<String> agentIds = applicationIndexDao.selectAgentIds(application.getName());<NEW_LINE>for (String agentId : agentIds) {<NEW_LINE>...
> dataSourceBoList = entry.getValue();
1,594,644
public static void main(String[] args) {<NEW_LINE>var factory = WeaponFactory.factory(builder -> {<NEW_LINE>builder.add(WeaponType.SWORD, Sword::new);<NEW_LINE>builder.add(WeaponType.AXE, Axe::new);<NEW_LINE>builder.add(WeaponType.SPEAR, Spear::new);<NEW_LINE>builder.add(WeaponType.BOW, Bow::new);<NEW_LINE>});<NEW_LINE...
= new ArrayList<Weapon>();
660,627
public String updateAssetGroupDetails(final CreateUpdateAssetGroupDetails updateAssetGroupDetails, final String userId) throws PacManException {<NEW_LINE>AssetGroupDetails isAssetGroupExits = assetGroupRepository.findByGroupName(updateAssetGroupDetails.getGroupName());<NEW_LINE>if (isAssetGroupExits != null) {<NEW_LINE...
processUpdateAssetGroupDetails(updateAssetGroupDetails, assetGroupAlias, userId);
1,793,617
protected boolean checkPrerequisites() {<NEW_LINE>boolean errorFree = true;<NEW_LINE>if (producerConfig.get(BOOTSTRAP_SERVERS_CONFIG) == null) {<NEW_LINE>addError("No \"" + BOOTSTRAP_SERVERS_CONFIG + "\" set for the appender named [\"" + name + "\"].");<NEW_LINE>errorFree = false;<NEW_LINE>}<NEW_LINE>if (topic == null)...
addInfo("No explicit keyingStrategy set for the appender named [\"" + name + "\"]. Using default NoKeyKeyingStrategy.");
431,911
final DeleteUserResult executeDeleteUser(DeleteUserRequest deleteUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,382,356
public void render(final Tag parent) {<NEW_LINE>final Tag group = parent.block<MASK><NEW_LINE>renderLabel(group);<NEW_LINE>final Tag trueLabel = group.block("label").attr(new Attr("class", "flex items-center"));<NEW_LINE>final Tag trueInput = trueLabel.empty("input").attr(new Attr("type", "radio"), new Attr("name", get...
("div").css("form-group");
1,130,294
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select s1.* as s1 from SupportBean#length(3) as s0, " + "SupportMarketDataBean#keepall as s1";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>EventType type = statement.getEvent...
, type.getPropertyType("s1"));
1,516,038
private void visitFunctionBodyWithDynamicEnv(BLangFunction funcNode, SymbolEnv funcEnv) {<NEW_LINE>Map<BSymbol, Location> prevUnusedLocalVariables = this.unusedLocalVariables;<NEW_LINE>this.unusedLocalVariables = new HashMap<>();<NEW_LINE>this.unusedLocalVariables.putAll(prevUnusedLocalVariables);<NEW_LINE>Map<BSymbol,...
analyzeNode(funcNode.body, funcEnv);
1,141,857
public void marshall(AwsIamRoleDetails awsIamRoleDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsIamRoleDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsIamRoleDetails.getAssumeRolePo...
awsIamRoleDetails.getAttachedManagedPolicies(), ATTACHEDMANAGEDPOLICIES_BINDING);
693,054
public Revision convertFromSObject(SRevision input, Revision result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>result.setId(input.getId());<NEW_LINE>result.setDate(input.getDate());<NEW_LINE>result.setComment(input.getComment());...
> listlogs = result.getLogs();
1,329,613
protected KDNode buildTreeSSQ(Relation<? extends NumberVector> relation, int left, int right, SortDBIDsBySingleDimension comp) {<NEW_LINE>KDNode node = new KDNode(<MASK><NEW_LINE>final int len = right - left;<NEW_LINE>if (len <= leafsize) {<NEW_LINE>return node;<NEW_LINE>}<NEW_LINE>final int dims = node.sum.length;<NEW...
relation, iter, left, right);
687,948
public int onStartCommand(@Nullable Intent intent, int flags, int startId) {<NEW_LINE>if (isWorking())<NEW_LINE>return super.onStartCommand(intent, flags, startId);<NEW_LINE>if (intent != null) {<NEW_LINE>profileName = intent.getStringExtra(EXTRA_PROFILE_NAME);<NEW_LINE>}<NEW_LINE>notificationManager = NotificationUtil...
NOTIFICATION_ID, builder.build());
844,036
protected void addWayToTiles(TDWay way, int enlargement) {<NEW_LINE>int bboxEnlargementLocal = enlargement;<NEW_LINE>byte minZoomLevel = way.getMinimumZoomLevel();<NEW_LINE>for (int i = 0; i < this.zoomIntervalConfiguration.getNumberOfZoomIntervals(); i++) {<NEW_LINE>// is way seen in a zoom interval?<NEW_LINE>if (minZ...
), matchedTile.getY());
954,091
private void loadNode583() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.GeneralModelChangeEventType_Changes, new QualifiedName(0, "Changes"), new LocalizedText("en", "Changes"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Id...
.expanded(), false));
1,839,302
public static long[] hash(final Memory mem, final long seed) {<NEW_LINE>Objects.requireNonNull(mem);<NEW_LINE>final long lengthBytes = mem.getCapacity();<NEW_LINE>checkPositive(lengthBytes);<NEW_LINE>final Memory memLE = mem.getTypeByteOrder() == ByteOrder.LITTLE_ENDIAN ? mem : mem.region(0, lengthBytes, ByteOrder.LITT...
(int) (lengthBytes - tail);
977,160
public Map<String, List<String>> listUnits(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>Map<String, List<String>> unitMap = new HashMap<>();<NEW_LINE>List<AttendanceAdmin> unitlist = new ArrayList<>();<NEW_LINE>List<String> companyList <MASK><NEW_LINE>List<String> deptList = new ArrayList<String>();<NEW...
= new ArrayList<String>();
1,050,762
private static boolean tryKubeConfig(Config config, String context) {<NEW_LINE>LOGGER.debug("Trying to configure client from Kubernetes config...");<NEW_LINE>if (!Utils.getSystemPropertyOrEnvVar(KUBERNETES_AUTH_TRYKUBECONFIG_SYSTEM_PROPERTY, true)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>File kubeConfigFile = new ...
File(kubeConfigFile.getPath());
263,586
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final Boolean writeBack = instruction.getOperands().get(0).getRootNode().getChildren().get(0).getChildren().size() == 1 ? true ...
, tmpAddress, wd, registerNodeValue));
239,670
private boolean isImmutableAndWellDefinedVariable(Var v, ReferenceCollection refInfo) {<NEW_LINE>List<Reference> refSet = refInfo.references;<NEW_LINE>int startingReadRef = 1;<NEW_LINE>Reference refDecl = refSet.get(0);<NEW_LINE>if (!isValidDeclaration(refDecl)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean isNe...
(v, refInfo.references));
1,131,905
public void rewriteExprs(ExprRewriter rewriter) throws AnalysisException {<NEW_LINE>Preconditions.checkState(isAnalyzed());<NEW_LINE>rewriteSelectList(rewriter);<NEW_LINE>for (TableRef ref : fromClause_) {<NEW_LINE>ref.rewriteExprs(rewriter, analyzer);<NEW_LINE>}<NEW_LINE>// Also equal exprs in the statements of subque...
collect(Subquery.class, subqueryExprs);
243,662
static <E extends Enum<E>> Map<E, LockGraphNode> createNodes(Class<E> clazz) {<NEW_LINE>EnumMap<E, LockGraphNode> <MASK><NEW_LINE>E[] keys = clazz.getEnumConstants();<NEW_LINE>int numKeys = keys.length;<NEW_LINE>ArrayList<LockGraphNode> nodes = Lists.newArrayListWithCapacity(numKeys);<NEW_LINE>// Create a LockGraphNode...
map = Maps.newEnumMap(clazz);
1,366,788
public final And_exprContext and_expr() throws RecognitionException {<NEW_LINE>And_exprContext _localctx = new And_exprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 126, RULE_and_expr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1173);<NEW_LINE>_localc...
.result = _localctx.shift_expr.result;
1,275,072
protected AirbyteMessage computeNext() {<NEW_LINE>if (messageIterator.hasNext()) {<NEW_LINE>final AirbyteMessage message = messageIterator.next();<NEW_LINE>if (message.getRecord().getData().hasNonNull(cursorField)) {<NEW_LINE>final String cursorCandidate = message.getRecord().getData().<MASK><NEW_LINE>if (IncrementalUt...
get(cursorField).asText();
1,524,201
public void marshall(CreateServerRequest createServerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createServerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMar...
createServerRequest.getAssociatePublicIpAddress(), ASSOCIATEPUBLICIPADDRESS_BINDING);
1,172,728
protected void doCheckCurrentModuleMissing() {<NEW_LINE>// Is there any reason to try to open the module if we're not syncing listings?<NEW_LINE>// I don't think so.<NEW_LINE>if (!isSyncToStaticListing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Trace trace = current.getTrace();<NEW_LINE>if (trace == null) {<NEW_LINE>ret...
missing = new HashSet<>();
669,977
private boolean arePrefsChanged(String mimeType, PreferencesCustomizer c) {<NEW_LINE>boolean isChanged = false;<NEW_LINE>Preferences prefs = selector.getCustomizerPreferences(c);<NEW_LINE>Preferences savedPrefs = MimeLookup.getLookup(mimeType).lookup(Preferences.class);<NEW_LINE>HashSet<String> hashSet = new HashSet<St...
(savedPrefs.keys()));
1,852,664
public Request<AuthorizeClientVpnIngressRequest> marshall(AuthorizeClientVpnIngressRequest authorizeClientVpnIngressRequest) {<NEW_LINE>if (authorizeClientVpnIngressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<AuthorizeClientVpnIngress...
request.addParameter("Version", "2016-11-15");
1,414,440
public Document toInsertDocument(Job job) {<NEW_LINE>final Document document = new Document();<NEW_LINE>document.put(toMongoId(Jobs.FIELD_ID), job.getId());<NEW_LINE>document.put(Jobs.<MASK><NEW_LINE>document.put(Jobs.FIELD_JOB_AS_JSON, jobMapper.serializeJob(job));<NEW_LINE>document.put(Jobs.FIELD_JOB_SIGNATURE, job.g...
FIELD_VERSION, job.getVersion());
1,072,490
final UpdateTerminationProtectionResult executeUpdateTerminationProtection(UpdateTerminationProtectionRequest updateTerminationProtectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTerminationProtectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTerminationProtection");
1,119,598
public static void init() throws SlickException, FontFormatException, IOException {<NEW_LINE>float fontBase = 12f * GameImage.getUIscale();<NEW_LINE>Font javaFontMain = Font.createFont(Font.TRUETYPE_FONT, ResourceLoader.getResourceAsStream(Options.FONT_MAIN));<NEW_LINE>Font javaFontBold = Font.createFont(Font.TRUETYPE_...
fontBase * 3 / 2)));
1,522,664
private void passwordVisibilityToggled(boolean isMasked, CharSequence password) {<NEW_LINE>if (maskDrawable == null) {<NEW_LINE>// lazily create the drawable that morphs the dots<NEW_LINE>if (!isLaidOut() || getText() == null || getText().length() < 1)<NEW_LINE>return;<NEW_LINE>maskDrawable = new MaskMorphDrawable(getC...
getHeight() - getPaddingBottom());
674,154
public com.amazonaws.services.apprunner.model.ServiceQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.apprunner.model.ServiceQuotaExceededException serviceQuotaExceededException = new com.amazonaws.services.apprunner.model.ServiceQuotaExcee...
String currentParentElement = context.getCurrentParentElement();
1,437,803
public boolean exportToImage(final RenderedImage image, File chosenFile) {<NEW_LINE>try {<NEW_LINE>Controller.getCurrentController().getViewController().setWaitingCursor(true);<NEW_LINE>Iterator<ImageWriter> <MASK><NEW_LINE>for (; ; ) {<NEW_LINE>ImageWriter writer = imageWritersByFormatName.next();<NEW_LINE>ImageWriteP...
imageWritersByFormatName = ImageIO.getImageWritersByFormatName(imageType);
1,478,540
public static JsonEventSource open(InputStreamSource source, Map<String, String> options) throws IOException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>ServiceLoader<JsonEventDumpParserFactory> factories = <MASK><NEW_LINE>Iterator<JsonEventDumpParserFactory> it = factories.iterator();<NEW_LINE>while (i...
ServiceLoader.load(JsonEventDumpParserFactory.class);
1,166,673
public static RefactoringStatus checkParameterTypeSyntax(String type, IJavaProject project) {<NEW_LINE>String newTypeName = ParameterInfo.stripEllipsis(type.trim()).trim();<NEW_LINE>String typeLabel = BasicElementLabels.getJavaElementName(type);<NEW_LINE>if ("".equals(newTypeName.trim())) {<NEW_LINE>// $NON-NLS-1$<NEW_...
BasicElementLabels.getJavaElementName(problem) });
980,465
protected void createFieldEditors() {<NEW_LINE>if (Platform.getOS().equals(Platform.OS_MACOSX)) {<NEW_LINE>addField(new BooleanFieldEditor(ITLA2TeXPreferenceConstants.HAVE_OS_OPEN_PDF, "Have your OS open PDFs", getFieldEditorParent()));<NEW_LINE>} else {<NEW_LINE>addField(new BooleanFieldEditor(ITLA2TeXPreferenceConsta...
, "&Specify pdflatex command", getFieldEditorParent()));
1,242,527
public void generateSasWithContext() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakePathClient.generateSas#DataLakeServiceSasSignatureValues-Context<NEW_LINE>OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1);<NEW_LINE>PathSasPermission permission = new <MASK><NEW_LINE>DataLakeServiceSasSignatur...
PathSasPermission().setReadPermission(true);
1,782,763
private Object addToPrimitiveArray(Object srcObj, FieldMap fieldMap, int size, Object srcCollectionValue, Object destObj, Class<?> destEntryType) {<NEW_LINE>Object result;<NEW_LINE>Object field = fieldMap.getDestValue(destObj);<NEW_LINE>int arraySize = 0;<NEW_LINE>if (field == null) {<NEW_LINE>result = Array.newInstanc...
CopyByReferenceContainer copyByReferences = globalConfiguration.getCopyByReferences();
926,880
public int nextKey(int key) {<NEW_LINE>if (key < 0) {<NEW_LINE>key = 0;<NEW_LINE>}<NEW_LINE>if (key >= this.numBits) {<NEW_LINE>return key;<NEW_LINE>}<NEW_LINE>long <MASK><NEW_LINE>int startBit = key & (int) MOD64;<NEW_LINE>int bitsEachLong = 64;<NEW_LINE>int bytesEachLong = 8;<NEW_LINE>key -= startBit;<NEW_LINE>// che...
offset = this.offset(key);
299,460
final GetAccountAuthorizationDetailsResult executeGetAccountAuthorizationDetails(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccountAuthorizationDetailsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
982,265
public RulesFacts putAssetState(AssetState<?> assetState) {<NEW_LINE>if (LOG.isLoggable(Level.FINEST)) {<NEW_LINE>LOG.finest("Fact change (UPDATE): " + assetState + " - on: " + loggingContext);<NEW_LINE>}<NEW_LINE>getAssetStates().remove(assetState);<NEW_LINE>getAssetStates().add(assetState);<NEW_LINE>// Maintain index...
, new ArrayDeque<>());
1,206,715
private void readPainterStyle(@NotNull final ComponentStyle style, @NotNull final ComponentDescriptor descriptor, @NotNull final HierarchicalStreamReader reader, @NotNull final UnmarshallingContext context) {<NEW_LINE>// Retrieving overwrite policy<NEW_LINE>final String ow = reader.getAttribute(OVERWRITE_ATTRIBUTE);<NE...
LinkedHashMap<String, Object>();
1,799,178
private void processCertD1ii(int index, List[] policyNodes, ASN1ObjectIdentifier _poid, Set _pq) {<NEW_LINE>List policyNodeVec = policyNodes[index - 1];<NEW_LINE>for (int j = 0; j < policyNodeVec.size(); j++) {<NEW_LINE>PKIXPolicyNode _node = (PKIXPolicyNode) policyNodeVec.get(j);<NEW_LINE>Set _expectedPolicies = _node...
[index].add(_child);
973,953
public static KafkaConnectionString valueOf(String connectionString) throws IllegalArgumentException {<NEW_LINE>if (connectionString == null) {<NEW_LINE>badArg(null);<NEW_LINE>}<NEW_LINE>String str = connectionString.trim();<NEW_LINE>boolean isSecure = false;<NEW_LINE>if (str.startsWith(PREFIX_SCHEME_KAFKA)) {<NEW_LINE...
topicIndex + 1).trim();
1,417,390
protected final int faccessat(Emulator<DarwinFileIO> emulator, String pathname, int mode) {<NEW_LINE>FileResult<?> result = resolve(emulator, pathname, IOConstants.O_RDONLY);<NEW_LINE>if (result != null && result.isSuccess()) {<NEW_LINE>if (verbose) {<NEW_LINE>System.out.printf("File access '%s' with mode=0x%x from %s%...
getContext().getLRPointer());
58,954
private void createListener(final SibRaMessagingEngineConnection connection) throws ResourceException {<NEW_LINE>final String methodName = "createListener";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, connection);<NEW_LINE>}<NEW_LINE>final...
(), this, exception });
1,213,539
public R53ResourceRecord unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>R53ResourceRecord r53ResourceRecord = new R53ResourceRecord();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
650,267
public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>Log.d(TAG, "OnCreateOptionsMenu called");<NEW_LINE>try {<NEW_LINE>getMenuInflater().inflate(R.menu.vnccanvasactivitymenu, menu);<NEW_LINE>Menu inputMenu = menu.findItem(R.id.itemInputMode).getSubMenu();<NEW_LINE>inputModeMenuItems = new MenuItem[inputModeIds.leng...
setBackgroundResource(R.drawable.ic_all_out_gray_36dp);
633,597
public static Map<String, Object> render(final Context velocityContext, final PageMode mode, final ContainerRaw containerRaw) {<NEW_LINE>final Map<String, Object> rendered = Maps.newHashMap();<NEW_LINE>for (final String uuid : containerRaw.getContentlets().keySet()) {<NEW_LINE>final VelocityResourceKey key = new Veloci...
uuid, dotJSON.getMap());
1,004,303
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle args = params[0];<NEW_LINE>Bundle result = new Bundle(args);<NEW_LINE>String token = mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_TOKEN, null);<NEW_LINE>String[] userIDs = args.getStringArray(PARAM_USER_ID);<NEW_LINE>ArrayList<SocialPerson> social...
(HttpURLConnection) url.openConnection();
599,427
private void addEnrichingDioriteRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Diorite -> Polished Diorite<NEW_LINE>ItemStackToItemStackRecipeBuilder.enriching(IngredientCreatorAccess.item().from(Blocks.DIORITE), new ItemStack(Blocks.POLISHED_DIORITE)).build(consumer, Mekanism.rl(basePath + "...
.rl(basePath + "slab_to_polished_slab"));
1,519,937
private CompletableFuture<Long> preIndexBatch(DirectSegmentAccess segment, long startOffset, int maxLength, Map<UUID, Long> tailCachePreIndexVersionTracker, long lastIndexedOffset, TailUpdates updates) {<NEW_LINE>log.debug("{}: Tail-caching batch started for Table Segment {}. StartOffset={}, MaxLength={}.", this.traceO...
this.config.getRecoveryTimeout());
1,833,764
public boolean executeCommand(final String args) {<NEW_LINE>// get filenames<NEW_LINE>final String sourceID = getProp().getPropertyString(ScriptProperties.SEGREGATE_CONFIG_SOURCE_FILE);<NEW_LINE>final File sourceFile = getScript().resolveFilename(sourceID);<NEW_LINE>EncogLogging.<MASK><NEW_LINE>EncogLogging.log(EncogLo...
log(EncogLogging.LEVEL_DEBUG, "Beginning segregate");
731,420
public static <J2 extends J> J2 indent(J j, Cursor cursor, int shift) {<NEW_LINE>JavaSourceFile cu = cursor.firstEnclosingOrThrow(JavaSourceFile.class);<NEW_LINE>TabsAndIndentsStyle tabsAndIndents = Optional.ofNullable(((SourceFile) cu).getStyle(TabsAndIndentsStyle.class)).orElse(IntelliJ.tabsAndIndents());<NEW_LINE>//...
(), shift))));
422,158
private SqlCall toSql(RexProgram program, RexOver rexOver) {<NEW_LINE>final RexWindow rexWindow = rexOver.getWindow();<NEW_LINE>final SqlNodeList partitionList = new SqlNodeList(toSql(program, rexWindow.partitionKeys), POS);<NEW_LINE>ImmutableList.Builder<SqlNode> orderNodes = ImmutableList.builder();<NEW_LINE>if (rexW...
program, rexOver.getOperands());
800,803
final CreateGlobalTableResult executeCreateGlobalTable(CreateGlobalTableRequest createGlobalTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGlobalTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
1,231,384
public void paint(Graphics g) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>if (!isEnabled()) {<NEW_LINE>g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));<NEW_LINE>}<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>Dimension size = getSize();<NEW_LINE>g.setColor(getBackground());<NEW_L...
g.setColor(Color.black);
80,518
public static void generate(String exportPath, List<String> basePkgs) {<NEW_LINE>try {<NEW_LINE>if (exportPath == null) {<NEW_LINE>exportPath = PathUtil.join(System.getProperty("user.home"), "zstack-inventory-query-details");<NEW_LINE>}<NEW_LINE>if (basePkgs == null || basePkgs.isEmpty()) {<NEW_LINE>basePkgs = new Arra...
forName(bd.getBeanClassName());
1,392,071
private static Icon mergeIcons(Icon icon1, Icon icon2, int x, int y, Component c) {<NEW_LINE>int w = 0, h = 0;<NEW_LINE>if (icon1 != null) {<NEW_LINE>w = icon1.getIconWidth();<NEW_LINE>h = icon1.getIconHeight();<NEW_LINE>}<NEW_LINE>if (icon2 != null) {<NEW_LINE>w = icon2.getIconWidth() + x > w ? icon2.getIconWidth() + ...
.getIconHeight() + y : h;
1,845,456
public PlanNode visitTableWriter(TableWriterNode node, RewriteContext<Set<VariableReferenceExpression>> context) {<NEW_LINE>ImmutableSet.Builder<VariableReferenceExpression> expectedInputs = ImmutableSet.<VariableReferenceExpression>builder().addAll(node.getColumns());<NEW_LINE>if (node.getTablePartitioningScheme().isP...
.getStatisticsAggregation().get();
1,310,075
private void doDelete(HttpEntity<String> entity) {<NEW_LINE>AgentResponse rsp = null;<NEW_LINE>DeleteCmd cmd = JSONObjectUtil.toObject(entity.getBody(), DeleteCmd.class);<NEW_LINE>if (!config.deleteSuccess) {<NEW_LINE>rsp = new AgentResponse();<NEW_LINE>rsp.setError("Fail delete on purpose");<NEW_LINE>rsp.setSuccess(fa...
set(RESTConstant.TASK_UUID, taskUuid);
1,747,512
final AttachPrincipalPolicyResult executeAttachPrincipalPolicy(AttachPrincipalPolicyRequest attachPrincipalPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachPrincipalPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new AttachPrincipalPolicyResultJsonUnmarshaller());
115,035
public static WritableImage toFXImage(BufferedImage img) {<NEW_LINE>// This is a stripped down version of "SwingFXUtils.toFXImage(img, fxImg)"<NEW_LINE>int w = img.getWidth();<NEW_LINE>int h = img.getHeight();<NEW_LINE>// Ensure image type is ARGB.<NEW_LINE>switch(img.getType()) {<NEW_LINE>case BufferedImage.TYPE_INT_A...
PixelWriter pw = fxImg.getPixelWriter();
1,526,519
private static Map<String, String> readOptions(final PwmSetting pwmSetting) {<NEW_LINE>final Map<String, String> returnData = new LinkedHashMap<>();<NEW_LINE>final XmlElement settingElement = PwmSettingXml.readSettingXml(pwmSetting);<NEW_LINE>final Optional<XmlElement> optionsElement = settingElement.getChild(PwmSettin...
.put(value, textValue));
599,602
public Future<RowSet<Row>> executeBatch(List<Tuple> batch) {<NEW_LINE>Future<Void> future = Future.succeededFuture();<NEW_LINE>List<long[]> list = new ArrayList<>();<NEW_LINE>for (Tuple tuple : batch) {<NEW_LINE>String eachSql = apply(sql, toObjects(tuple));<NEW_LINE>future = future.flatMap(unused -> {<NEW_LINE>Query<R...
, longs2[1]) });
1,644,164
// swapFirst().<NEW_LINE>Entry swapLast(Entry newEntry) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry(this, cclass, "swapLast", new Object[] { newEntry });<NEW_LINE>Entry previous = null;<NEW_LINE>Entry entry = first;<NEW_LINE>while (entry.nex...
Node child = newEntry.getChild();
1,766,380
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Playable media = controller.getMedia();<NEW_LINE>if (media == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>@Nullable<NEW_LINE>final FeedItem feedItem = (media instanceof FeedMedia) ? ((Fee...
), feedItem.getFeedId());
856,820
private void init() {<NEW_LINE>this.typePublic = new ConcurrentHashMap<String, String>();<NEW_LINE>this.typeUri = new ConcurrentHashMap<String, String>();<NEW_LINE>Map<String, NamespaceDefinition> namespaceDefinitionRegistry = new HashMap<String, NamespaceDefinition>();<NEW_LINE>ResourceLoader classLoader = loaderCache...
String namespaceKey = definition.getNamespaceUri();
1,693,562
public Expression transform(Expression expr) {<NEW_LINE>if (expr == null)<NEW_LINE>return null;<NEW_LINE>if (expr instanceof DeclarationExpression) {<NEW_LINE>DeclarationExpression de = (DeclarationExpression) expr;<NEW_LINE>if (de.getLeftExpression() == candidate.getLeftExpression()) {<NEW_LINE>if (insideScriptBody) {...
arg = origArgList.get(i);
1,799,849
private void bitIntensityToBitValue(QrCode qr, List<Point2D_I32> locationBits) {<NEW_LINE>float gridSize = qr.getNumberOfModules() - 1.0f;<NEW_LINE>float threshold00 = (float) qr.threshCorner;<NEW_LINE>float threshold01 = (float) qr.threshRight;<NEW_LINE>float threshold10 = (float) qr.threshDown;<NEW_LINE>float thresho...
1.0f - bx) * by * threshold10;
1,791,846
private boolean startProcess(ITerminalControl control) {<NEW_LINE>try {<NEW_LINE>initialDirectory = getInitialDirectory();<NEW_LINE>if (!FileUtil.isDirectoryAccessible(initialDirectory.toFile())) {<NEW_LINE>control.displayTextInTerminal(MessageFormat.format(Messages.LocalTerminalConnector_WorkingDirectoryPermissionErro...
control.displayTextInTerminal(Messages.LocalTerminalConnector_NoShellErrorMessage);
1,005,369
protected void calcSlots() {<NEW_LINE>int y = 0;<NEW_LINE>int x = 0;<NEW_LINE>ISlotSelector last = null;<NEW_LINE>for (int i = 0; i < getItemHandler().getSlots(); i++) {<NEW_LINE>final UpgradeCap handler = getItemHandler().getHandlerFromSlot(i);<NEW_LINE>int idx = getItemHandler().getIndexForHandler(i);<NEW_LINE>if (ha...
slot = autoSlots.get(i);
525,536
public void createGetChildResourceForListResources(String keyAttributeName, String childResourceClassName) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "get" + childResourceClassName, "(Ljava/lang/String;)L" + generatedPath + childResourceClassName + ";", null, null);<NEW_LINE>RestLogging.restLogger.log(Lev...
mv.visitAnnotation(PATH_CLASS_NAME, true);
1,163,802
protected void calculatePoi(RouteCalculationResult route, List<LocationPointWrapper> locationPoints, boolean announcePOI) {<NEW_LINE>if (app.getPoiFilters().isShowingAnyPoi()) {<NEW_LINE>final List<Location> locs = route.getImmutableAllLocations();<NEW_LINE>List<Amenity> amenities = new ArrayList<>();<NEW_LINE>for (Poi...
float) routePoint.deviateDistance, i);
25,757
public CreateFieldLevelEncryptionConfigResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateFieldLevelEncryptionConfigResult createFieldLevelEncryptionConfigResult = new CreateFieldLevelEncryptionConfigResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (c...
int originalDepth = context.getCurrentDepth();
633,748
protected List<TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>> parentBuilder) {<NEW_LINE>List<TestSuite> <MASK><NEW_LINE>if (!parentBuilder.getFeatures().contains(NoRecurse.DESCENDING)) {<NEW_LINE>derivedSuites.add(createDescendingSuite(...
derivedSuites = super.createDerivedSuites(parentBuilder);
1,745,768
synchronized protected void render() {<NEW_LINE>if (canvas.isDisplayable() && graphics.image != null) {<NEW_LINE>if (canvas.getBufferStrategy() == null) {<NEW_LINE>canvas.createBufferStrategy(2);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (strategy != null) {<NEW_LINE>// Render single frame<NEW_LINE>do {<NEW_LINE>// The fo...
BufferStrategy strategy = canvas.getBufferStrategy();
1,156,435
public Table display(@ShellOption(value = { "", "--id" }, help = "the task execution id") long id) {<NEW_LINE>TaskExecutionResource taskExecutionResource = taskOperations().taskExecutionStatus(id);<NEW_LINE>TableModelBuilder<Object> modelBuilder = new TableModelBuilder<>();<NEW_LINE>modelBuilder.addRow().addValue("Key ...
addValue(taskExecutionResource.getResourceUrl());
125,359
public static void doAsyncJobList(AdminClient adminClient, List<Integer> nodeIds) {<NEW_LINE>// Print the job information<NEW_LINE>for (Integer nodeId : nodeIds) {<NEW_LINE>System.out.print("Retrieving async jobs from node " + nodeId);<NEW_LINE>List<Integer> asyncIds = adminClient.rpcOps.getAsyncRequestList(nodeId);<NE...
System.out.println(status);
1,501,761
public void onBindViewHolder(ViewHolderPhoneContacts holder, int position) {<NEW_LINE>boolean isCheckable = false;<NEW_LINE>LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>PhoneContactInfo contact = getItem(position);<NEW_LINE>holder.currentPosition = posi...
setText(contact.getName());
1,541,392
public static int validate(String... argv) throws InterruptedException {<NEW_LINE>if (argv.length < 1) {<NEW_LINE>printHelp("Target not specified.");<NEW_LINE>return -2;<NEW_LINE>}<NEW_LINE>String command = argv[0];<NEW_LINE>String name = null;<NEW_LINE>String[] args;<NEW_LINE>int argsLength = 0;<NEW_LINE>// Find all n...
AlluxioConfiguration conf = InstancedConfiguration.defaults();
945,258
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {<NEW_LINE>boolean hasValue = in.readBoolean();<NEW_LINE>String vString = in.readUTF();<NEW_LINE>projectName = hasValue ? vString : null;<NEW_LINE>hasValue = in.readBoolean();<NEW_LINE>int vInteger = in.readInt();<NEW_LINE>tabSize ...
analyzersVersions.put(vString, vLong);