idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,495,432
private void recordExportsPropertyAssignment(NodeTraversal t, Node getpropNode) {<NEW_LINE>if (!currentScript.isModule) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node parent = getpropNode.getParent();<NEW_LINE>checkState(parent.isAssign() || parent.isExprResult(), parent);<NEW_LINE>Node exportsNameNode = getpropNode.getFi...
String exportName = getpropNode.getString();
1,423,552
protected void updateItem(LocalVariableNode item, boolean empty) {<NEW_LINE>super.updateItem(item, empty);<NEW_LINE>// Register double click action<NEW_LINE>setOnMousePressed(e -> {<NEW_LINE>if (e.getClickCount() == 2 && e.isPrimaryButtonDown()) {<NEW_LINE>// Goto first usage<NEW_LINE>for (AST ast : parent.getLastParse...
), e.getScreenY());
223,970
public Answer Destroy(DestroyCommand cmd) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>MockVolumeVO volume = _mockVolumeDao.findByStoragePathAndType(cmd.<MASK><NEW_LINE>if (volume != null) {<NEW_LINE>_mockVolumeDao.remove(volume...
getVolume().getPath());
207,176
private Traverser traverser(Node start, final Node end, PathInterest<Double> interest) {<NEW_LINE>final MutableDouble shortestSoFar = new MutableDouble(Double.MAX_VALUE);<NEW_LINE>final MutableDouble startSideShortest = new MutableDouble(0);<NEW_LINE>final MutableDouble endSideShortest = new MutableDouble(0);<NEW_LINE>...
true, startSideShortest, endSideShortest, epsilon);
945,927
private void initializeDrivingFeatures() {<NEW_LINE>final GATKPath drivingPath = getDrivingFeaturePath();<NEW_LINE>final FeatureCodec<? extends Feature, ?> codec = FeatureManager.<MASK><NEW_LINE>if (isAcceptableFeatureType(codec.getFeatureType())) {<NEW_LINE>final GenomicsDBOptions options = new GenomicsDBOptions(refer...
getCodecForFile(drivingPath.toPath());
1,393,017
private Mono<Response<LoadTestResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndp...
loadTestName, loadTestResource, accept, context);
1,837,028
private void checkValidity() {<NEW_LINE>if (booleanReleaseCalled.get()) {<NEW_LINE>String id = "none";<NEW_LINE>if ((wsBBRoot != null) && (wsBBRoot.pool != null)) {<NEW_LINE>id = Integer.toString(wsBBRoot.getID());<NEW_LINE>}<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(...
.lastAccessTime = System.currentTimeMillis();
142,488
private void initEGL() {<NEW_LINE>mEGL = (EGL10) EGLContext.getEGL();<NEW_LINE>// Get EGLDisplay and initialize display connection<NEW_LINE>mEGLDisplay = mEGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>if (mEGLDisplay == EGL10.EGL_NO_DISPLAY) {<NEW_LINE>throw new RuntimeException("eglGetDisplay failed " + GLUti...
(mEGL.eglGetError()));
495,443
public static void onBiomeLoad(BiomeLoadingEvent event) {<NEW_LINE>// Add spawns to any biomes that have mob spawns for the "parent" types of our mobs<NEW_LINE>MobSpawnSettingsBuilder spawns = event.getSpawns();<NEW_LINE>List<MobSpawnSettings.SpawnerData> monsterSpawns = spawns.getSpawner(MobCategory.MONSTER);<NEW_LINE...
ResourceLocation biomeName = event.getName();
656,213
private void listen() {<NEW_LINE>UdpAddress address <MASK><NEW_LINE>try {<NEW_LINE>if (transport != null) {<NEW_LINE>transport.close();<NEW_LINE>transport = null;<NEW_LINE>}<NEW_LINE>if (snmp != null) {<NEW_LINE>snmp.close();<NEW_LINE>snmp = null;<NEW_LINE>}<NEW_LINE>transport = new DefaultUdpTransportMapping(address);...
= new UdpAddress(SnmpBinding.port);
1,571,106
/*<NEW_LINE>* note that the passed list of avatar urls has already been Photon-ized,<NEW_LINE>* so there's no need to do that here<NEW_LINE>*/<NEW_LINE>private void showLikingAvatars(final ArrayList<String> avatarUrls) {<NEW_LINE>if (avatarUrls == null || avatarUrls.size() == 0) {<NEW_LINE>removeAllViews();<NEW_LINE>re...
= numExistingViews - avatarUrls.size();
66,583
public void read(org.apache.thrift.protocol.TProtocol prot, updateCompactionStatus_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incomi...
struct.tinfo.read(iprot);
1,692,308
final DescribeSecurityProfileResult executeDescribeSecurityProfile(DescribeSecurityProfileRequest describeSecurityProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSecurityProfileRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
505,395
private int nodeSourceEnd(Binding field, ASTNode node, int index) {<NEW_LINE>if (node instanceof ArrayTypeReference) {<NEW_LINE>return ((ArrayTypeReference) node).originalSourceEnd;<NEW_LINE>} else if (node instanceof QualifiedNameReference) {<NEW_LINE>QualifiedNameReference ref = (QualifiedNameReference) node;<NEW_LIN...
int) reference.sourcePositions[index];
1,718,419
final GetHomeRegionResult executeGetHomeRegion(GetHomeRegionRequest getHomeRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHomeRegionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,252,273
ActionResult<JsonElement> execute(String appDictFlag, String appInfoFlag, String path0, String path1, String path2) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<JsonElement> result = new ActionResult<>();<NEW_LINE><MASK><NEW_LIN...
Business business = new Business(emc);
76,460
protected Object resultByBlockNumber(final JsonRpcRequestContext requestContext, final long blockNumber) {<NEW_LINE>if (requestContext.getRequest().getParamLength() != 2) {<NEW_LINE>return new JsonRpcErrorResponse(requestContext.getRequest().getId(), JsonRpcError.INVALID_PARAMS);<NEW_LINE>}<NEW_LINE>final TraceCallMany...
0, TraceCallManyParameter[].class);
539,677
private static void fetchDocument(final ODocument iRootRecord, final Object iUserObject, final OFetchPlan iFetchPlan, final OIdentifiable fieldValue, final String fieldName, final int iCurrentLevel, final int iLevelFromRoot, final int iFieldDepthLevel, final Map<ORID, Integer> parsedRecords, final String iFieldPathFrom...
fieldValue, iUserObject, fieldName, iContext);
644,807
static void checkTlsFeatures(Certificate serverCertificate, Hashtable clientExtensions, Hashtable serverExtensions) throws IOException {<NEW_LINE>byte[] tlsFeatures = serverCertificate.getCertificateAt(0).getExtension(TlsObjectIdentifiers.id_pe_tlsfeature);<NEW_LINE>if (tlsFeatures != null) {<NEW_LINE>// TODO[tls] Prop...
valueOf(tlsExtension.intValue());
236,602
private void refreshPageInCache(final String pageIdentifier) throws DotDataException {<NEW_LINE>CacheLocator.getMultiTreeCache().removePageMultiTrees(pageIdentifier);<NEW_LINE>final Set<String> inodeSet = new HashSet<>();<NEW_LINE>final List<ContentletVersionInfo> contentletVersionInfos = APILocator.getVersionableAPI()...
add(versionInfo.getWorkingInode());
536,821
public void drawTo(Graphic graphic, Style highLight) {<NEW_LINE>if (graphic.isFlagSet(Graphic.Flag.smallIO)) {<NEW_LINE>Vector center = new Vector(LATEX_RAD.x, 0);<NEW_LINE>graphic.drawCircle(center.sub(LATEX_RAD), center.add(LATEX_RAD), Style.NORMAL);<NEW_LINE>Vector textPos = new Vector(SIZE2 + LATEX_RAD.x, 0);<NEW_L...
.add(rad), style);
1,109,849
public void testCreateConsumerWithEmptyMsgSelectorNoLocal_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LINE>emptyQueue(jmsQCFBindings, jmsQueue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createConsumer(jm...
TextMessage) jmsConsumer.receive(DEFAULT_TIMEOUT);
497,549
public boolean hasNext() {<NEW_LINE>RestrictedMapRDBSubScanSpec rss = ((RestrictedMapRDBSubScanSpec) this.subScanSpec);<NEW_LINE>RowKeyJoin rjBatch = rss.getJoinForSubScan();<NEW_LINE>if (rjBatch == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean hasMore = false;<NEW_LINE>AbstractRecordBatch.BatchState state...
setBatchState(AbstractRecordBatch.BatchState.NOT_FIRST);
689,574
public Map<String, Object> grantProject(User loginUser, int userId, String projectIds) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>result.put(Constants.STATUS, false);<NEW_LINE>// check exist<NEW_LINE>User tempUser = userMapper.selectById(userId);<NEW_LINE>if (tempUser == null) {<NEW_LINE>putMsg(<...
result, Status.USER_NOT_EXIST, userId);
349,826
private static void process(org.apache.log4j.Logger log, String level, LogInfo result) throws IOException {<NEW_LINE>if (log == null) {<NEW_LINE>result.setMessage("log is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (level != null) {<NEW_LINE>if (!level.equals(org.apache.log4j.Level.toLevel(level).toString())) {<NE...
result.setMessage("Bad level : " + level);
1,609,878
public void execute(OAtomicOperation atomicOperation, OAbstractPaginatedStorage paginatedStorage) {<NEW_LINE>if (changedValues.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OSBTreeBonsai<OIdentifiable, Integer> tree = loadTree();<NEW_LINE>try {<NEW_LINE>for (Map.Entry<OIdentifiable, Change> entry : changedValues.en...
atomicOperation, entry.getKey());
72,120
public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(<MASK><NEW_LINE>if (c_logger.isTraceDebugEnabled())<NEW_LINE>c_logger.traceDebug("SipResolverTcpTransport: complete: _readState: " + _readState);<NEW_LINE>// Set this bac...
this, "SipResolverTcpTransport: complete: entry: id=" + hashCode());
1,401,284
public void addAlbums(List<Album> albums, List<Long> lastModifieds) {<NEW_LINE>// Add the album's artist as an implicitly loved entry<NEW_LINE>mDb.beginTransaction();<NEW_LINE>for (Album album : albums) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(ARTISTS_ARTIST, album.getArtist().getName(...
values.put(ARTISTS_TYPE, TYPE_HATCHET_IMPLICIT);
1,348,665
protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE><MASK><NEW_LINE>wc.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>TreeMaker make = wc.getTreeMaker();<NEW_LINE>// rewrite annotations in case of ManagedBean<NEW_LINE>if (MANAGED_BEAN.equals(annotation.getAnnotationType().toString())) {<N...
WorkingCopy wc = ctx.getWorkingCopy();
255,524
private static void _storePaths(JTree tree, DefaultMutableTreeNode root, List<Object> pathsToExpand, List<Object> selectionPaths, boolean storeElementsOnly) {<NEW_LINE>List<TreeNode> childNodes = TreeUtil.listChildren(root);<NEW_LINE>for (final TreeNode childNode1 : childNodes) {<NEW_LINE>DefaultMutableTreeNode childNo...
Object userObject = childNode.getUserObject();
353,943
protected Map<String, Object> buildCustomHeaders(EventBatchContext azureMessage) {<NEW_LINE>Map<String, Object> headers = super.buildCustomHeaders(azureMessage);<NEW_LINE>List<EventData> events = azureMessage.getEvents();<NEW_LINE>List<Object> enqueueTimeList = new ArrayList<>();<NEW_LINE>List<Object> <MASK><NEW_LINE>L...
offSetList = new ArrayList<>();
553,901
public synchronized void draw(Rect rect) {<NEW_LINE>if (mFrame == null || !(mFrame.is(Extension.POINTS)))<NEW_LINE>return;<NEW_LINE>setViewport(rect);<NEW_LINE>GLES10.glMatrixMode(GLES10.GL_PROJECTION);<NEW_LINE>GLES10.glPushMatrix();<NEW_LINE>GLES10.glLoadIdentity();<NEW_LINE>GLES10.glOrthof(1f, -1f, -1f, 1f, -7f, 0f)...
] data = points.getVertices();
723,375
protected Composite createInstallerGroupControls(Composite group) {<NEW_LINE>int columns = 3;<NEW_LINE>Composite projectGroup = new Composite(group, SWT.NONE);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = columns;<NEW_LINE>projectGroup.setLayout(layout);<NEW_LINE>projectGroup.setLayoutDat...
new GridData(GridData.FILL_HORIZONTAL));
1,656,648
public void actionPerformed(ActionEvent e) {<NEW_LINE>Jvm jvm = JvmFactory.getJVMFor(selectedApp);<NEW_LINE>if (jvm != null) {<NEW_LINE>ApplicationType eat = ApplicationTypeManager.getDefault().newType(jvm.getMainClass());<NEW_LINE>final <MASK><NEW_LINE>final DialogDescriptor[] dd = new DialogDescriptor[1];<NEW_LINE>dd...
ApplicationTypeForm form = new ApplicationTypeForm(eat);
455,463
protected boolean addToHorizontalGroup(final Actor actor, final DragPane dragPane, final Actor directPaneChild) {<NEW_LINE>final Array<Actor> children = dragPane.getChildren();<NEW_LINE>final int indexOfDraggedActor = children.indexOf(actor, true);<NEW_LINE>actor.remove();<NEW_LINE>if (indexOfDraggedActor >= 0) {<NEW_L...
dragPane.addActorAfter(directPaneChild, actor);
421,067
default void prettyPrint(StringBuilder builder, PrettyPrinterConfig ppConfig) {<NEW_LINE>if (isAbsurd()) {<NEW_LINE>builder.append("()");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CoreBinding binding = getBinding();<NEW_LINE>if (binding != null) {<NEW_LINE>builder.append(getBindingName());<NEW_LINE>return;<NEW_LINE>}<NEW_LI...
? null : definition.getParameters();
1,664,895
protected void insertMessageEvent(MessageEventDefinition messageEventDefinition, StartEvent startEvent, ProcessDefinitionEntity processDefinition, BpmnModel bpmnModel) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>if (bpmnModel.containsMessageId(messageEventDefinition.getMessageRef())...
setTenantId(processDefinition.getTenantId());
1,487,324
private static void generateStaticFieldsWithDefaultValues(ClassCreator annotationLiteral, List<MethodInfo> defaultOfClassType) {<NEW_LINE>if (defaultOfClassType.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MethodCreator staticConstructor = annotationLiteral.getMethodCreator(Methods.CLINIT, void.class);<NEW_LINE>st...
newArray(returnTypeName, clazzArray.length);
1,804,716
public okhttp3.Call validateDocumentCall(String apiId, String name, String ifMatch, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/documents/validate".replaceAll("\\{" + "apiId" + "\\}", ...
HashMap<String, String>();
1,564,951
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS...
, parser.nextInt(0));
1,228,385
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, JsonElement jsonElement) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFac...
result = new ActionResult<>();
213,462
public void openPlayStoreSubscriptions() {<NEW_LINE>boolean hasBasic = BillingUtilities.deviceHasGooglePlaySubscription(purchases.<MASK><NEW_LINE>boolean hasPremium = BillingUtilities.deviceHasGooglePlaySubscription(purchases.getValue(), Constants.PREMIUM_SKU);<NEW_LINE>Log.d("Billing", "hasBasic: $hasBasic, hasPremium...
getValue(), Constants.BASIC_SKU);
1,638,367
static private void loadStackAnalyzedInfo(StackFileInfo stackFileInfo) {<NEW_LINE>File file = null;<NEW_LINE>StackAnalyzedInfo analyzedInfo = null;<NEW_LINE>try {<NEW_LINE>analyzedInfo = readStackAnalyzedInfo(stackFileInfo, file, StackParser.TOP_NAME, StackParser.TOP_EXT);<NEW_LINE>if (analyzedInfo != null)<NEW_LINE>st...
StackParser.SQL_NAME, StackParser.SQL_EXT);
1,782,456
public static int readLengthEncodedInteger(MySQLMessage mm) {<NEW_LINE>int result = 0;<NEW_LINE>byte b = mm.read();<NEW_LINE>int b1 = b & 0xff;<NEW_LINE>if (b1 < 0xfb) {<NEW_LINE>result = b1 & 0xff;<NEW_LINE>} else if (b1 == 0xfc) {<NEW_LINE>byte b2 = mm.read();<NEW_LINE>byte b3 = mm.read();<NEW_LINE>result = ((b3 & 0x...
byte b6 = mm.read();
752,876
public void contextPartitionTerminate(IntSeqKey controllerPath, int subpathIdOrCPId, ContextController originator, Map<String, Object> terminationProperties, boolean leaveLocksAcquired, List<AgentInstance> agentInstancesLocksHeld) {<NEW_LINE>if (controllerPath.length() != originator.getFactory().getFactoryEnv().getNest...
getContextPartitionIdService().removeId(agentInstanceId);
1,506,922
public static File saveWARFile(String appName, InputStream inputStream) {<NEW_LINE>File file = null;<NEW_LINE>String fileExtension = "war";<NEW_LINE>try {<NEW_LINE>String tmpsDirectory = System.getProperty("java.io.tmpdir");<NEW_LINE>File savedFile = new File(tmpsDirectory + File.separator + appName + "." + fileExtensi...
write(bytes, 0, read);
152,327
private ProcessBuilder createEclipseProcessBuilder(File eclipseExecutableFile, File eclipseWorkspaceDir) {<NEW_LINE>List<String> args = new ArrayList<>();<NEW_LINE>args.<MASK><NEW_LINE>if (eclipseWorkspaceDir != null) {<NEW_LINE>args.add("-data");<NEW_LINE>args.add(eclipseWorkspaceDir.getAbsolutePath());<NEW_LINE>}<NEW...
add(eclipseExecutableFile.getAbsolutePath());
1,027,177
final DescribeCACertificateResult executeDescribeCACertificate(DescribeCACertificateRequest describeCACertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCACertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(describeCACertificateRequest));
505,229
public static <T extends ImageBase<T>, O extends ImageBase<O>> void log(T input, double value, O output) {<NEW_LINE>if (input instanceof ImageGray) {<NEW_LINE>if (GrayF32.class == input.getClass()) {<NEW_LINE>PixelMath.log((GrayF32) input, (float) value, (GrayF32) output);<NEW_LINE>} else if (GrayF64.class == input.get...
, value, (InterleavedF64) output);
1,474,654
public void addSendResultMetric(ProfileEvent currentRecord, String bid, boolean result, long sendTime) {<NEW_LINE>Map<String, String> dimensions = new HashMap<>();<NEW_LINE>dimensions.put(SortMetricItem.KEY_CLUSTER_ID, this.getClusterId());<NEW_LINE>dimensions.put(SortMetricItem.KEY_TASK_NAME, this.getTaskName());<NEW_...
long currentTime = System.currentTimeMillis();
584,633
protected // FIXMEXLSX could throw IOException here, as other implementations do<NEW_LINE>// FIXMEXLSX could throw IOException here, as other implementations do<NEW_LINE>void // FIXMEXLSX could throw IOException here, as other implementations do<NEW_LINE>closeWorkbook(// FIXMEXLSX could throw IOException here, as other...
sheetMapping.get(scope) + "\"";
66,431
private Product ofProductRecord(@NonNull final I_M_Product productRecord) {<NEW_LINE>final int manufacturerId = productRecord.getManufacturer_ID();<NEW_LINE>final IModelTranslationMap modelTranslationMap = InterfaceWrapperHelper.getModelTranslationMap(productRecord);<NEW_LINE>final ZoneId zoneId = orgDAO.getTimeZone(Or...
(productRecord.getAD_Org_ID()));
1,522,597
private void updateCertificateSelector() {<NEW_LINE>if (!mCheckAuto.isChecked()) {<NEW_LINE>mSelectCert.setEnabled(true);<NEW_LINE>mSelectCert.setVisibility(View.VISIBLE);<NEW_LINE>if (mCertEntry != null) {<NEW_LINE>((TextView) mSelectCert.findViewById(android.R.id.text1)).setText(mCertEntry.getSubjectPrimary());<NEW_L...
setText(R.string.profile_ca_select_certificate_label);
1,734,708
private GraphObjectMap utmToLatLon(final String zone, final String hemisphere, final String east, final String north) {<NEW_LINE>final GraphObjectMap obj = new GraphObjectMap();<NEW_LINE>// clean zone string (remove all non-digits)<NEW_LINE>final String cleanedZone = zone.replaceAll("[\\D]+", "");<NEW_LINE>final String...
decode(epsg.toString());
1,087,077
private Coordinate[] toCoordinates(String newPointList, WarningSet warnings) {<NEW_LINE>List<Coordinate> <MASK><NEW_LINE>if (newPointList != null && newPointList.length() > 0) {<NEW_LINE>String[] points = newPointList.split("\\Q|\\E");<NEW_LINE>for (int i = 0; i < points.length; i++) {<NEW_LINE>String[] aPoint = points...
result = new LinkedList<>();
500,397
public DescribeSignalingChannelResult describeSignalingChannel(DescribeSignalingChannelRequest describeSignalingChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSignalingChannelRequest);<NEW_LINE>AWSRequestMetrics awsReque...
JsonUnmarshallerContext> unmarshaller = new DescribeSignalingChannelResultJsonUnmarshaller();
342,904
public void replaceWith(DataType dataType) {<NEW_LINE>if (!(dataType instanceof Enum)) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Enum enumm = (Enum) dataType;<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>bitGroups = null;<NEW_LINE>nameMap = new HashMap<>();<NEW_LI...
valueMap = new TreeMap<>();
1,741,514
public GetFunctionCodeSigningConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFunctionCodeSigningConfigResult getFunctionCodeSigningConfigResult = new GetFunctionCodeSigningConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetD...
String currentParentElement = context.getCurrentParentElement();
1,115,004
public static NDArrayMessageChunk[] chunks(NDArrayMessage message, int chunkSize) {<NEW_LINE>int numChunks = numChunksForMessage(message, chunkSize);<NEW_LINE>NDArrayMessageChunk[] ret = new NDArrayMessageChunk[numChunks];<NEW_LINE>DirectBuffer wholeBuffer = NDArrayMessage.toBuffer(message);<NEW_LINE>String messageId =...
).position(i * chunkSize);
1,842,795
// Undeploy any HA deploymentIDs now there is no quorum<NEW_LINE>private void undeployHADeployments() {<NEW_LINE>for (String deploymentID : deploymentManager.deployments()) {<NEW_LINE>Deployment <MASK><NEW_LINE>if (dep != null) {<NEW_LINE>if (dep.deploymentOptions().isHa()) {<NEW_LINE>ContextImpl.executeIsolated(v -> {...
dep = deploymentManager.getDeployment(deploymentID);
535,475
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "srlv");<NEW_LINE>final List<? extends IOperandTr...
, rs, dw, negatedMask));
276,905
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('create') create window MyWindow#groupwin(theString)#length(2) as SupportBean;\n" + "insert into MyWindow select * from SupportBean;\n" + "@name('delete') @hint('silent_delete') on SupportBean_S0 delete from MyWindow;\n" + "@name('count') select ...
new SupportBean("A", 2));
574,647
protected String[] readPackageActionPath(final Class actionClass) {<NEW_LINE>Package actionPackage = actionClass.getPackage();<NEW_LINE>final String actionPackageName = actionPackage.getName();<NEW_LINE>// 1 - read annotations first<NEW_LINE>String packageActionPathFromAnnotation;<NEW_LINE>mainloop: while (true) {<NEW_...
ArraysUtil.array(null, null);
1,022,990
protected void createUsageVMSnapshot(UsageEventVO event) {<NEW_LINE>long accountId = event.getAccountId();<NEW_LINE>Account acct = _accountDao.findByIdIncludingRemoved(event.getAccountId());<NEW_LINE>long domainId = acct.getDomainId();<NEW_LINE>Long offeringId = event.getOfferingId();<NEW_LINE>long vmId = event.getReso...
, event.getCreateDate()));
1,018,046
public void copyFrom(CharBuffer source) throws CudaException {<NEW_LINE>final int fromIndex = source.position();<NEW_LINE>final int toIndex = source.limit();<NEW_LINE>lengthCheck(toIndex - fromIndex, 1);<NEW_LINE>if (source.isDirect()) {<NEW_LINE>// <br/><NEW_LINE>// <br/><NEW_LINE>copyFromHostDirect(// <br/><NEW_LINE>...
tmp, 0, end - start);
563,800
public void save(Snapshot snapshot) {<NEW_LINE>initialize();<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>setProperty(storage, SNAPSHOT_VERSION, CURRENT_SNAPSHOT_VERSION);<NEW_LINE>setProperty(storage, PROP_BASIC_INFO_SUPPORTED, Boolean.toString(basicInfoSupported));<NEW_LINE>setProperty(storage, PROP_SYS...
setProperty(storage, PROP_JAVA_VERSION, javaVersion);
1,088,402
Tensor embedTokens(List<Integer> tokens, TensorType type) {<NEW_LINE>Tensor <MASK><NEW_LINE>Tensor attentionMask = createAttentionMask(inputSequence);<NEW_LINE>Tensor tokenTypeIds = createTokenTypeIds(inputSequence);<NEW_LINE>Map<String, Tensor> inputs = Map.of(inputIdsName, inputSequence.expand("d0"), attentionMaskNam...
inputSequence = createTensorRepresentation(tokens, "d1");
802,683
private void paintPageFast(RenderingContext c, PageBox page, DisplayListPageContainer pageOperations, int additionalTranslateX) {<NEW_LINE>page.paintBackground(c, 0, Layer.PAGED_MODE_PRINT);<NEW_LINE>c.setInPageMargins(true);<NEW_LINE>page.paintMarginAreas(c, 0, Layer.PAGED_MODE_PRINT);<NEW_LINE>c.setInPageMargins(fals...
c, 0, Layer.PAGED_MODE_PRINT);
383,128
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,353,214
public Object calculate(Context ctx) {<NEW_LINE>int count = 1;<NEW_LINE>if (param == null) {<NEW_LINE><MASK><NEW_LINE>throw new RQException("ptop" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (obj instanceof ...
MessageManager mm = EngineMessage.get();
1,452,052
private void doAddToPalette(final TextImporterUI panel) {<NEW_LINE>// store new item<NEW_LINE>// NOI18N //NOI18N<NEW_LINE>final String fileName = FileUtil.findFreeFileName(categoryFolder, "ccc", "xml");<NEW_LINE>try {<NEW_LINE>categoryFolder.getFileSystem().runAtomicAction(new AtomicAction() {<NEW_LINE><NEW_LINE>public...
categoryFolder.createData(fileName, "xml");
710,985
public void register(@NonNull final URL forSource, @NonNull final javax.tools.FileObject file, @NonNull final Type type) {<NEW_LINE>if (!canWrite()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>LOG.// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE, "Generated: {0} from: {1} type: {2}", new Object[] { fi...
insertInto = generated.get(forSource);
1,078,568
private static void removeDeletedTemporaryFiles(Map<File, List<File>> commitCandidates, Map<File, List<File>> deleteCandidates) {<NEW_LINE>for (Entry<File, List<File>> e : deleteCandidates.entrySet()) {<NEW_LINE>File root = e.getKey();<NEW_LINE>List<File> files = e.getValue();<NEW_LINE>if (!files.isEmpty()) {<NEW_LINE>...
commitFiles = commitCandidates.get(root);
636,142
private List<ResourceInventory> filterNoAccessResources(Set<String> resourceUuids, String accountUuid) {<NEW_LINE>if (resourceUuids.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>return new SQLBatchWithReturn<List<ResourceInventory>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected List<Re...
getEntityManager().createNativeQuery("select uuid, resourceName, SUBSTRING_INDEX(concreteResourceType,\".\",-1) from ResourceVO where uuid in (:uuids)");
865,710
public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName0, long features) {<NEW_LINE>jsonReader.nextIfObjectStart();<NEW_LINE>Image object = new Image();<NEW_LINE>for (; ; ) {<NEW_LINE>if (jsonReader.nextIfObjectEnd()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>long hashCode64 = jsonReader.readF...
setWidth(jsonReader.readInt32Value());
532,420
public void genRule(RuleSymbol s) {<NEW_LINE>// undefined rule<NEW_LINE>if (s == null || !s.isDefined())<NEW_LINE>return;<NEW_LINE>println("");<NEW_LINE>if (s.access.length() != 0) {<NEW_LINE>if (!s.access.equals("public")) {<NEW_LINE>_print("<para>" + s.access + " </para>");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>println("<se...
(s.comment) + "</para>");
678,407
private void addAttributeLine(Rows rows, MAttribute attribute, boolean product, boolean readOnly) {<NEW_LINE>log.fine(attribute + ", Product=" + product + ", R/O=" + readOnly);<NEW_LINE>m_row++;<NEW_LINE>Label label = new Label(attribute.getName());<NEW_LINE>if (product)<NEW_LINE>label.setStyle("font-weight: bold");<NE...
NumberBox editor = new NumberBox(false);
1,146,642
private String findChange(String refBeingMigrated, String originLabel, ChangeVisitable<?> destinationReader) throws ValidationException {<NEW_LINE>AtomicInteger changesVisited = new AtomicInteger(0);<NEW_LINE>ImmutableList<String> originLabels = ImmutableList.<String>builder().add(originLabel).<MASK><NEW_LINE>checkCond...
addAll(additionalLabels).build();
958,885
public void process(Channel channel, Command command) {<NEW_LINE>Preconditions.checkArgument(CommandType.TASK_KILL_REQUEST == command.getType(), String.format("invalid command type : %s", command.getType()));<NEW_LINE>TaskKillRequestCommand killCommand = JSONUtils.parseObject(command.getBody(), TaskKillRequestCommand.c...
"taskRequest cache is null, taskInstanceId: {}", killCommand.getTaskInstanceId());
1,494,381
final ListDataIntegrationsResult executeListDataIntegrations(ListDataIntegrationsRequest listDataIntegrationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataIntegrationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
862,729
// Test the code path where untimed invokeAll is interrupted while it is running a task on the current thread<NEW_LINE>// because the queue has reached capacity. Once interrupted, invokeAll must immediately cancel all of<NEW_LINE>// its tasks which have not already completed and return.<NEW_LINE>@Test<NEW_LINE>public v...
.loose).maxQueueSize(1);
1,835,360
protected void acceptTracked(final AirbyteMessage message) throws Exception {<NEW_LINE>Preconditions.checkState(hasStarted, "Cannot accept records until consumer has started");<NEW_LINE>if (message.getType() == Type.RECORD) {<NEW_LINE>final AirbyteRecordMessage recordMessage = message.getRecord();<NEW_LINE>final Airbyt...
(stream, 0L) + 1L);
5,188
public <Params extends PersistentTaskParams> void createPersistentTask(String taskId, String taskName, Params taskParams, ActionListener<PersistentTask<?>> listener) {<NEW_LINE>clusterService.submitStateUpdateTask("create persistent task", new ClusterStateUpdateTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Clus...
.Builder builder = builder(currentState);
205,638
private void loadConfig() {<NEW_LINE>if (!FileUtil.resilientConfigFileExists(CONFIG_FILE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log("Loading configuration");<NEW_LINE>boolean some_are_mine = false;<NEW_LINE>synchronized (this) {<NEW_LINE>Map map = FileUtil.readResilientConfigFile(CONFIG_FILE);<NEW_LINE>List l_subs = ...
log("Failed to import subscription from " + m, e);
655,719
public void processImage(int sourceID, long frameID, final BufferedImage buffered, ImageBase frame) {<NEW_LINE>if (trackerChanged) {<NEW_LINE>trackerChanged = false;<NEW_LINE>createNewTracker();<NEW_LINE>initializeTracker = true;<NEW_LINE>}<NEW_LINE>boolean grayScale = false;<NEW_LINE>if (tracker.getImageType().getFami...
() -> updateGUI(buffered));
2,514
public void marshall(NotifyConfigurationType notifyConfigurationType, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (notifyConfigurationType.getFrom() != null) {<NEW_LINE>String from = notifyConfigurationType.getFrom();<NEW_LINE>jsonWriter.name("From");<NEW_LINE>jsonWriter....
).marshall(blockEmail, jsonWriter);
71,764
public com.amazonaws.services.chimesdkmeetings.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.chimesdkmeetings.model.LimitExceededException limitExceededException = new com.amazonaws.services.chimesdkmeetings.model.LimitExceededExce...
class).unmarshall(context));
1,435,718
public static void solve(boolean[][] board, boolean[] cols, boolean[] ndiag, boolean[] rdiag, int row, String asf) {<NEW_LINE>if (row == board.length) {<NEW_LINE>System.out.println(asf + '.');<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int col = 0; col < board.length; col++) {<NEW_LINE>if (cols[col] == false && ndiag[ro...
[row][col] = false;
1,435,896
public boolean initializeCamera(boolean isPortrait) {<NEW_LINE>this.isPortrait = isPortrait;<NEW_LINE>// Open camera<NEW_LINE>if (mCamera == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Log.i(TAG, "Open camera...");<NEW_LINE>mCamera = Camera.open();<NEW_LINE>if (mCamera == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NE...
Log.w(TAG, "Camera failed to open");
701,713
public Void scan(Tree tree, Void p) {<NEW_LINE>if (tree == null) {<NEW_LINE>dump.append("null,");<NEW_LINE>} else {<NEW_LINE>TreePath tp = new TreePath(getCurrentPath(), tree);<NEW_LINE>dump.append(tree.getKind()).append(":");<NEW_LINE>dump.append(Trees.instance(info.getJavacTask()).getSourcePositions().getStartPositio...
tree)).append(":");
1,813,696
public void prepare(ContainerImageInfoBuildItem containerImage, Optional<SelectedKubernetesDeploymentTargetBuildItem> selectedDeploymentTarget, Optional<FallbackContainerImageRegistryBuildItem> fallbackRegistry, BuildProducer<ContainerImageBuildRequestBuildItem> buildRequestProducer, BuildProducer<ContainerImagePushReq...
.produce(new ContainerImagePushRequestBuildItem());
207,887
// GEN-LAST:event_removeAnimationObjectActionPerformed<NEW_LINE>private void duplicateObjectActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_duplicateObjectActionPerformed<NEW_LINE>Timeline t = cloneCurrentTimeline();<NEW_LINE>AnimationObject o = AnimationAccessor.clone((AnimationObject) ((...
animations.length - 1] = o;
473,553
public IRubyObject in_context(ThreadContext context, IRubyObject str, IRubyObject options) {<NEW_LINE>RubyClass klass;<NEW_LINE>XmlDomParserContext ctx;<NEW_LINE>InputStream istream;<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>XmlDocument document = document(runtime);<NEW_LINE>if (document == null) {<NEW_LI...
runtime, IRubyObject.NULL_ARRAY, this);
355,006
private void recreateConfigDriveIso(NicProfile nic, Network network, VirtualMachineProfile vm, DeployDestination dest) throws ResourceUnavailableException {<NEW_LINE>if (nic.isDefaultNic() && _networkModel.getUserDataUpdateProvider(network).getProvider().equals(Provider.ConfigDrive)) {<NEW_LINE>DiskTO diskToUse = null;...
findById(vm.getId());
637,747
public boolean verify(PublicKey pubKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException {<NEW_LINE>Signature sig;<NEW_LINE>try {<NEW_LINE>if (provider == null) {<NEW_LINE>sig = Signature.getInstance(getSignatureName(sigAlgId));<NEW_LINE>} else {<NEW_LIN...
get(sigAlgId.getAlgorithm());
1,641,407
public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>try (ContextLogger ignore = new ContextLogger(Log.LogLevel.DEBUG, "MainActivity.onCreateOptionsMenu")) {<NEW_LINE>getMenuInflater().inflate(R.menu.main_activity_options, menu);<NEW_LINE>MenuCompat.setGroupDividerEnabled(menu, true);<NEW_LINE>final SearchMan...
!InstallWizardActivity.isConfigurationOk(this));
333,440
final DeleteAttributesResult executeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
854,870
private Map<Interval, StringDistribution> determineDistribution(HandlingInputRowIterator inputRowIterator, GranularitySpec granularitySpec, List<String> partitionDimensions, boolean isAssumeGrouped) {<NEW_LINE>Map<Interval, StringDistribution> intervalToDistribution = new HashMap<>();<NEW_LINE>InputRowFilter inputRowFi...
(partitionDimensions.get(i));
1,160,908
public static void main(String[] args) {<NEW_LINE>SimpleImageInfo imageInfo = new SimpleImageInfo();<NEW_LINE>imageInfo.setDetermineImageNumber(true);<NEW_LINE>boolean verbose = determineVerbosity(args);<NEW_LINE>if (args.length == 0) {<NEW_LINE>run(null, <MASK><NEW_LINE>} else {<NEW_LINE>int index = 0;<NEW_LINE>while ...
System.in, imageInfo, verbose);
285,932
private Stop doMap(org.onebusaway.gtfs.model.Stop gtfsStop) {<NEW_LINE>if (gtfsStop.getLocationType() != org.onebusaway.gtfs.model.Stop.LOCATION_TYPE_STOP) {<NEW_LINE>throw new IllegalArgumentException("Expected type " + org.onebusaway.gtfs.model.Stop.LOCATION_TYPE_STOP + ", but got " + gtfsStop.getLocationType());<NEW...
getId().getAgencyId());