idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,626,391
final UpdateDataIntegrationResult executeUpdateDataIntegration(UpdateDataIntegrationRequest updateDataIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDataIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
800,230
// called *after* the change<NEW_LINE>@Override<NEW_LINE>public void remove(Context context) throws BadLocationException {<NEW_LINE>Document doc = context.getDocument();<NEW_LINE>int dotPos = context.getOffset();<NEW_LINE>char ch = context.<MASK><NEW_LINE>if (ch == '\'' || ch == '"') {<NEW_LINE>// NOI18N<NEW_LINE>Token...
getText().charAt(0);
1,442,749
private Timestamp scheduleForward(final Timestamp start, final long nodeDurationMillis, MResource r) {<NEW_LINE>MResourceType t = r.getResourceType();<NEW_LINE>// statistical interation count<NEW_LINE>int iteration = 0;<NEW_LINE>Timestamp currentDate = start;<NEW_LINE>Timestamp end = null;<NEW_LINE>long remainingMillis...
dayStart.getTime() + remainingMillis);
1,400,931
public void executeTaskListeners(UserTask userTask, TaskEntity taskEntity, String eventType) {<NEW_LINE>for (FlowableListener listener : userTask.getTaskListeners()) {<NEW_LINE>String event = listener.getEvent();<NEW_LINE>if (event.equals(eventType) || event.equals(TaskListener.EVENTNAME_ALL_EVENTS)) {<NEW_LINE>BaseTas...
setEventHandlerId(listener.getId());
242,818
protected void createOffsetsEnumsForAutomata(Terms termsIndex, int doc, List<OffsetsEnum> results) throws IOException {<NEW_LINE>final LabelledCharArrayMatcher[] automata = components.getAutomata();<NEW_LINE>List<List<PostingsEnum>> automataPostings = new ArrayList<>(automata.length);<NEW_LINE>for (int i = 0; i < autom...
(i).add(postings);
1,230,166
public boolean exists(@Nonnull @NonNull final ConnectorRequestContext context, @Nonnull @NonNull final QualifiedName name) {<NEW_LINE>final String keyspace = name.getDatabaseName();<NEW_LINE>final <MASK><NEW_LINE>log.debug("Checking if Cassandra table {}.{} exists for request {}", keyspace, table, context);<NEW_LINE>tr...
String table = name.getTableName();
371,003
private DatabaseAccountUpdateParameters updateParametersInner(DatabaseAccountGetResultsInner inner) {<NEW_LINE>this.ensureFailoverIsInitialized();<NEW_LINE>DatabaseAccountUpdateParameters updateParameters = new DatabaseAccountUpdateParameters();<NEW_LINE>updateParameters.<MASK><NEW_LINE>updateParameters.withLocation(th...
withTags(inner.tags());
1,605,516
public void save(final OutputStream os, final Object obj) {<NEW_LINE>final EncogWriteHelper out = new EncogWriteHelper(os);<NEW_LINE>final RBFNetwork net = (RBFNetwork) obj;<NEW_LINE>final FlatNetworkRBF flat = (FlatNetworkRBF) net.getFlat();<NEW_LINE>out.addSection("RBF-NETWORK");<NEW_LINE>out.addSubSection("PARAMS");...
addProperties(net.getProperties());
1,799,776
private void initChannelForText(String protocol, boolean restApi) {<NEW_LINE>protocolEncoder.signalEncoderCanReplace();<NEW_LINE>ChannelOptions config = channel.options();<NEW_LINE>config.setOption(SO_RCVBUF, clientRcvBuf());<NEW_LINE>ServerConnection connection = (TcpServerConnection) channel.attributeMap().get(Server...
MemcacheTextDecoder(connection, encoder, false);
723,600
public static Set<IBaseReference> extractReferencesToAutoVersion(FhirContext theFhirContext, ModelConfig theModelConfig, IBaseResource theResource) {<NEW_LINE>Map<IBaseReference, Object> references = Collections.emptyMap();<NEW_LINE>if (!theModelConfig.getAutoVersionReferenceAtPaths().isEmpty()) {<NEW_LINE>String resou...
theResource, nextPath, IBaseReference.class);
743,947
public static void prepareExecutionContext(ExecutionContext context, DdlContext ddlContext) {<NEW_LINE>context.setDdlContext(ddlContext);<NEW_LINE>context.setServerVariables(ddlContext.getServerVariables());<NEW_LINE>context.setUserDefVariables(ddlContext.getUserDefVariables());<NEW_LINE>context.setExtraServerVariables...
.setClientIp((String) clientIP);
295,684
public Mesh buildFacadeItemQuads(ItemStack textureItem, Direction side) {<NEW_LINE>MeshBuilder meshBuilder = renderer.meshBuilder();<NEW_LINE>QuadEmitter emitter = meshBuilder.getEmitter();<NEW_LINE>BakedModel model = Minecraft.getInstance().getItemRenderer().getModel(textureItem, null, null, 0);<NEW_LINE>QuadReInterpo...
getVertices(), 0, false);
302,773
protected void textCharImpl(char ch, float x, float y) {<NEW_LINE>PFont.Glyph glyph = textFont.getGlyph(ch);<NEW_LINE>if (glyph != null) {<NEW_LINE>if (textMode == MODEL) {<NEW_LINE>FontTexture.TextureInfo tinfo = textTex.getTexInfo(glyph);<NEW_LINE>if (tinfo == null) {<NEW_LINE>// Adding new glyph to the font texture....
(float) textFont.getSize();
1,541,085
private void startServer(MonoSink<String> sink) {<NEW_LINE>server.createContext("/", ex -> {<NEW_LINE>Headers rHeaders = ex.getResponseHeaders();<NEW_LINE>rHeaders.set("Content-Type", "text/plain");<NEW_LINE>ex.sendResponseHeaders(200, 0);<NEW_LINE>if ("GET".equalsIgnoreCase(ex.getRequestMethod())) {<NEW_LINE>var param...
new IllegalStateException("No Code Received: " + errorMessage));
1,475,837
private void scheduleCallback() {<NEW_LINE>long afterTime = timePeriodProvide.deltaAdd(agentInstanceContext.getStatementContext().getSchedulingService().getTime(), null, true, agentInstanceContext);<NEW_LINE>ScheduleHandleCallback callback = new ScheduleHandleCallback() {<NEW_LINE><NEW_LINE>public void scheduledTrigger...
agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);
1,342,344
public void marshall(ImportJobResponse importJobResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importJobResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshalle...
importJobResponse.getApplicationId(), APPLICATIONID_BINDING);
147,566
public <V1, V2, V3, V4, V5> Promise<MultipleResultsN, OneReject<?>, MasterProgress> when(DeferredAsyncTask<Void, ?, V1> taskV1, DeferredAsyncTask<Void, ?, V2> taskV2, DeferredAsyncTask<Void, ?, V3> taskV3, DeferredAsyncTask<Void, ?, V4> taskV4, DeferredAsyncTask<Void, ?, V5> taskV5, DeferredAsyncTask<Void, ?, ?> task6,...
?> promise3 = when(taskV3);
1,224,640
final DeleteEnvironmentConfigurationResult executeDeleteEnvironmentConfiguration(DeleteEnvironmentConfigurationRequest deleteEnvironmentConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
(super.beforeMarshalling(deleteEnvironmentConfigurationRequest));
851,283
private void copyToTable(SnowflakeBatchServiceConfig config) throws SQLException {<NEW_LINE>SerializableFunction<Void, DataSource<MASK><NEW_LINE>List<String> filesList = config.getFilesList();<NEW_LINE>String database = config.getDatabase();<NEW_LINE>String schema = config.getSchema();<NEW_LINE>String table = config.ge...
> dataSourceProviderFn = config.getDataSourceProviderFn();
220,576
// Internal methods.<NEW_LINE>private void buildAndPrepareSampleStreamWrappers(long positionUs) {<NEW_LINE>HlsMultivariantPlaylist multivariantPlaylist = Assertions.checkNotNull(playlistTracker.getMultivariantPlaylist());<NEW_LINE>Map<String, DrmInitData> overridingDrmInitData = useSessionKeys ? deriveOverridingDrmInit...
audioRenditions, sampleStreamWrappers, manifestUrlIndicesPerWrapper, overridingDrmInitData);
1,474,727
private static PreviousFileRevisionProvider createDefaultPreviousFileRevisionProvider(@Nonnull FileAnnotation annotation) {<NEW_LINE>List<VcsFileRevision> revisions = annotation.getRevisions();<NEW_LINE>if (revisions == null)<NEW_LINE>return null;<NEW_LINE>Map<VcsRevisionNumber, VcsFileRevision> map = new HashMap<>();<...
get(i + 1) : null;
1,840,953
public void processWay(ReaderWay way) {<NEW_LINE>try {<NEW_LINE>if (arrStorageBuilders != null) {<NEW_LINE>int nStorages = arrStorageBuilders.length;<NEW_LINE>if (nStorages > 0) {<NEW_LINE>if (nStorages == 1) {<NEW_LINE>arrStorageBuilders[0].processWay(way);<NEW_LINE>} else if (nStorages == 2) {<NEW_LINE>arrStorageBuil...
[1].processWay(way);
1,054,951
private void startCardHintPopup(final TransferData data, final Component parentComponent, final Point parentPoint) {<NEW_LINE>MageCard cardPanel = data<MASK><NEW_LINE>if (data.getTooltipDelay() > 0) {<NEW_LINE>// custom tooltip<NEW_LINE>tooltipDelay = data.getTooltipDelay();<NEW_LINE>} else {<NEW_LINE>// from preferenc...
.getComponent().getTopPanelRef();
800,373
public void readNext() throws NoSuchElementException {<NEW_LINE>if (paragraphIterator != null && paragraphIterator.hasNext()) {<NEW_LINE>// if the record contains more paragraphs, we parse them<NEW_LINE>String paragraph = paragraphIterator.next().<MASK><NEW_LINE>paragraphNumber += 1;<NEW_LINE>bufferedRecord = new Cord1...
get("text").asText();
1,350,154
public void run() {<NEW_LINE>final Properties surveyProperties = new Properties();<NEW_LINE>try (final InputStream input = freeplaneSurveyProperties.openRemoteConfiguration()) {<NEW_LINE>surveyProperties.load(input);<NEW_LINE>final int frequency = Integer.parseInt(surveyProperties.getProperty(FREQUENCY_KEY));<NEW_LINE>...
surveyId = surveyProperties.getProperty(SURVEY_ID_KEY);
880,821
public static FleetController create(FleetControllerOptions options, StatusPageServerInterface statusPageServer, MetricReporter metricReporter) throws Exception {<NEW_LINE>var context = new FleetControllerContextImpl(options);<NEW_LINE>var timer = new RealTimer();<NEW_LINE>var metricUpdater = new MetricUpdater(metricRe...
options.nodeStateRequestTimeoutLatestPercentage, options.nodeStateRequestRoundTripTimeMaxSeconds);
488,856
static Object doTpDict(PythonManagedClass object, @SuppressWarnings("unused") PythonNativeWrapper nativeWrapper, @SuppressWarnings("unused") String key, @Shared("factory") @Cached PythonObjectFactory factory, @Cached GetOrCreateDictNode getDict, @CachedLibrary(limit = "2") HashingStorageLibrary storageLib, @Shared("toS...
DynamicObjectStorage(object.getStorage());
1,582,995
public QueryResult<OrderedCounterRows<K, N>> execute() {<NEW_LINE>Assert.notNull(columnFamilyName, "columnFamilyName can't be null");<NEW_LINE>Assert.notNull(superColumn, "superColumn cannot be null");<NEW_LINE>return new QueryResultImpl<OrderedCounterRows<K, N>>(keyspace.doExecute(new KeyspaceOperationCallback<Ordered...
ColumnParent columnParent = new ColumnParent(columnFamilyName);
1,678,606
public void addTab(Path path, Runnable... runnables) {<NEW_LINE>ObservableList<Item> recentFiles = storedConfigBean.getRecentFiles();<NEW_LINE>if (Files.notExists(path)) {<NEW_LINE>recentFiles.<MASK><NEW_LINE>logger.debug("Path {} not found in the filesystem", path);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ObservableList<...
remove(new Item(path));
1,513,725
private void stageIndex(BlockingQueue<List<Tuple<NodeId>>> pipe, TupleIndex idx) {<NEW_LINE>TransactionCoordinator coordinator = CoLib.newCoordinator();<NEW_LINE>CoLib.add(coordinator, idx);<NEW_LINE>CoLib.start(coordinator);<NEW_LINE>Transaction transaction = coordinator.begin(TxnType.WRITE);<NEW_LINE>boolean workHasB...
error(this, "Interrupted", ex);
1,611,107
public boolean authorize(String tenantId, @Sensitive String tenantPassword) throws IOException {<NEW_LINE>// Prepare the auth frame<NEW_LINE>ByteArrayOutputStream output = new ByteArrayOutputStream();<NEW_LINE>byte[] tenantIdBytes = tenantId.getBytes(UTF_8);<NEW_LINE>byte[] tenantPasswordBytes = tenantPassword.getBytes...
] buffer = new byte[6];
679,938
public void markPotentiallyNonNullBit(LocalVariableBinding local) {<NEW_LINE>if (this != DEAD_END) {<NEW_LINE>this.tagBits |= NULL_FLAG_MASK;<NEW_LINE>int position;<NEW_LINE>long mask;<NEW_LINE>if ((position = local.id + this.maxFieldCount) < BitCacheSize) {<NEW_LINE>// use bits<NEW_LINE>mask = 1L << position;<NEW_LINE...
[3][vectorIndex] = 0;
538,962
public void marshall(ReviewActionDetail reviewActionDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reviewActionDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarsha...
reviewActionDetail.getActionId(), ACTIONID_BINDING);
290,247
protected Object rawGetStarlarkProvider(String providerKey) {<NEW_LINE>if (providerKey.equals(AbstractConfiguredTarget.ACTIONS_FIELD_NAME)) {<NEW_LINE>ImmutableList.Builder<ActionAnalysisMetadata> actions = ImmutableList.builder();<NEW_LINE>// Only expose actions which are StarlarkValues.<NEW_LINE>// TODO(cparsons): Ex...
instanceof ActionApi).iterator());
1,092,310
public Stream<IJavaType> arguments() {<NEW_LINE>if (data.getExtras() != null && data.getExtras().containsKey("arguments")) {<NEW_LINE>List<Map<String, Object>> args = (List<Map<String, Object>>) data.getExtras().get("arguments");<NEW_LINE>if (args != null) {<NEW_LINE>List<IJavaType> types = new ArrayList<>(args.size())...
)).intValue()]);
335,964
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>View rootView = inflater.inflate(R.layout.pager_fragment, container, false);<NEW_LINE>viewPager = ...
setText(R.string.years_statistics_label);
1,216,276
public void marshall(AssociationExecutionTarget associationExecutionTarget, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (associationExecutionTarget == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(associ...
e.getMessage(), e);
613,825
Object doGeneric(VirtualFrame frame, Object objectPtr, int mode, long targetTypeSize) {<NEW_LINE>Object resolvedPointer = ensurePointerClassProfile().profile(ensureResolveHandleNode().execute(objectPtr));<NEW_LINE>try {<NEW_LINE>if (resolvedPointer instanceof PrimitiveNativeWrapper) {<NEW_LINE>PrimitiveNativeWrapper wr...
ensureCastToNativeLongNode().execute(coerced);
1,684,225
public Response<Void> deleteByIdWithResponse(String id, Boolean deleteRunningTasks, Context context) {<NEW_LINE>String groupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (groupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s...
projectName, taskName, deleteRunningTasks, context);
1,287,570
private void check(APIRecoverVmInstanceMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>String resourceTargetOwnerAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>long totalVmNumQuota = pairs.get(<MASK><NEW_LINE>VmQuotaUtil.VmQuota ...
VmQuotaConstant.VM_TOTAL_NUM).getValue();
1,482,315
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>List<Value> names = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put("tagGroup", tagGroup);<NEW_LINE>names = tcp.processValues(RequestCmd.TAGCNT_TAG_NAMES, param);<...
add(v.toString());
1,843,276
public Object decodeResult(ByteBuf data, @Nullable Class<?> targetClass) throws EncodingException {<NEW_LINE>if (data.readableBytes() > 0 && targetClass != null) {<NEW_LINE>try {<NEW_LINE>if (GeneratedMessageV3.class.isAssignableFrom(targetClass)) {<NEW_LINE>Method method = parseFromMethodStore.get(targetClass);<NEW_LI...
schema = RuntimeSchema.getSchema(targetClass);
478,721
public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSet buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.ReplicaSet result = new io.kubernetes.client.proto.V1beta1Extensions.ReplicaSet(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitF...
.status_ = statusBuilder_.build();
1,171,411
public int showBits(int bits) {<NEW_LINE>if (bits == 0)<NEW_LINE>return 0;<NEW_LINE>if (len <= 32) {<NEW_LINE>// huffman_spectral_data_2 needs to read more than may be available,<NEW_LINE>// bits maybe > len, deliver 0 than<NEW_LINE>if (len >= bits)<NEW_LINE>return ((bufa >> (len - bits)) & (0xFFFFFFFF >> (32 - bits)))...
> (32 - bits)));
1,717,397
public Set<String> assignRoleToUsers(String roleName, Set<String> userIds, String operatorUserId) {<NEW_LINE>Role role = findRoleByRoleName(roleName);<NEW_LINE>Preconditions.checkState(role != null, "Role %s doesn't exist!", roleName);<NEW_LINE>List<UserRole> existedUserRoles = userRoleRepository.findByUserIdInAndRoleI...
setRoleId(role.getId());
369,549
public ListContactsFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListContactsFilter listContactsFilter = new ListContactsFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
203,807
private void updateOutput() {<NEW_LINE>if (separator_.getSelectedIndex() < 0 || quote_.getSelectedIndex() < 0 || decimal_.getSelectedIndex() < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updateRequest_.invalidate();<NEW_LINE>final Token invalidationToken = updateRequest_.getInvalidationToken();<NEW_LINE>progress_.onProgr...
), error.getUserMessage());
695,709
public String createAuthenticationRequest(Saml2AuthenticationRequest request) {<NEW_LINE>Saml2MessageBinding binding = this.protocolBindingResolver.convert(null);<NEW_LINE>RelyingPartyRegistration registration = RelyingPartyRegistration.withRegistrationId("noId").assertionConsumerServiceBinding(binding).assertionConsum...
())).build();
1,851,700
public void onRemoveWatchRequestReceived(RemoveWatchManagementRequest request) {<NEW_LINE>File rootFolder = request.getWatch();<NEW_LINE>if (!watchOperations.containsKey(rootFolder)) {<NEW_LINE>eventBus.post(new RemoveWatchManagementResponse(RemoveWatchManagementResponse.ERR_DOES_NOT_EXIST, request.getId(), "Watch does...
Level.WARNING, "Error removing watch from daemon config.", e);
33,736
private static void updatePointersFromRegion(int regionIndex) {<NEW_LINE>int regionOffset = Structure.add(Region.class, regionsAddress(), regionIndex).start - 1;<NEW_LINE>if (regionOffset < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int regionSize = regionSize();<NEW_LINE>Address regionStart = heapAddress().add(regionIn...
getRelocation(object.toAddress());
1,357,259
private Token<XMLTokenId> initialize(TokenSequence ts, int offset) {<NEW_LINE>int diff = ts.move(offset);<NEW_LINE>Token<XMLTokenId> token = ts.token();<NEW_LINE>if (diff > 0) {<NEW_LINE>if (!ts.moveNext()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>} else if (!ts.movePrevious()) {<NEW_LINE>return null;<NEW_LINE>}<NEW...
.text().toString();
791,322
public void testAsyncRetryAroundBulkhead() throws Exception {<NEW_LINE>// This test uses sleeps because FT 1.x blocks while retrying around a bulkhead exception<NEW_LINE>// which means we can't easily complete one of running tasks while the retry for<NEW_LINE>// the last task is taking place.<NEW_LINE>// First two task...
Thread.sleep(TestConstants.TEST_TWEAK_TIME_UNIT);
1,044,558
private SchemaPath handleItemOperator(RexCall call, SqlSyntax syntax) {<NEW_LINE>SchemaPath left = (SchemaPath) call.getOperands().get(0).accept(this);<NEW_LINE>RelDataType dataType = call.getOperands().get(0).getType();<NEW_LINE>boolean isMap = dataType.getSqlTypeName() == SqlTypeName.MAP;<NEW_LINE>// Convert expr of ...
.OPTIONAL : TypeProtos.DataMode.REQUIRED;
1,662,689
public static String buildClientWhere(final String tableName, final String tableAlias, @NonNull final Access access, @NonNull final Set<ClientId> adClientIds) {<NEW_LINE>final HashSet<ClientId> adClientIdsEffective = new HashSet<>(adClientIds);<NEW_LINE>if (access.isReadOnly()) {<NEW_LINE>adClientIdsEffective.add(Clien...
()).append(")");
1,283,281
public void apply(Request request, Response response) {<NEW_LINE>response.status = status;<NEW_LINE>String format = request.format;<NEW_LINE>if (request.isAjax() && "html".equals(format)) {<NEW_LINE>format = "txt";<NEW_LINE>}<NEW_LINE>response.contentType = MimeTypes.getContentType("xx." + format);<NEW_LINE>Map<String,...
.RenderArgs.current().data;
328,560
public Object visit(Object context1, ForVarDeclOfStatement statement, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>String varName = (String) statement.getDeclaration().accept(context, this, strict);<NEW_LINE>Object exprRef = statement.getRhs().<MASK><NEW_LINE>Object exprVa...
accept(context, this, strict);
1,562,941
void displayResults(NodeResults nodeResults) {<NEW_LINE>Document document = Jsoup.parse(EMPTY_HTML);<NEW_LINE>Element body = document.getElementsByTag("body").first();<NEW_LINE>Optional<Element> panelHeader = appendPanelHeader(body, nodeResults.getItemName(), nodeResults.getAggregateScore());<NEW_LINE>// for each analy...
appendResult(body, idx, resultAttrs);
424,661
public Restlet createInboundRoot() {<NEW_LINE>// Create a root router<NEW_LINE>Router router = new Router(getContext());<NEW_LINE>// Create a Redirector to Google search service<NEW_LINE>String target = "http://www.google.com/search?q=site:mysite.org+{keywords}";<NEW_LINE>Redirector redirector = new Redirector(getConte...
extractFromQuery("keywords", "kwd", true);
417,565
public ParsingResult<V> run(InputBuffer inputBuffer) {<NEW_LINE>checkArgNotNull(inputBuffer, "inputBuffer");<NEW_LINE>resetValueStack();<NEW_LINE>totalRuns++;<NEW_LINE>MatcherContext<V> rootContext = <MASK><NEW_LINE>rootContext.getMatcher().accept(new DoWithMatcherVisitor(new DoWithMatcherVisitor.Action() {<NEW_LINE><N...
createRootContext(inputBuffer, this, true);
1,372,462
private void drawSelectedPoint(Canvas canvas, RotatedTileBox tileBox) {<NEW_LINE>if (selectedImageLocation != null) {<NEW_LINE>canvas.rotate(-tileBox.getRotate(), tileBox.getCenterPixelX(), tileBox.getCenterPixelY());<NEW_LINE>float x = tileBox.getPixXFromLatLon(selectedImageLocation.getLatitude(), selectedImageLocatio...
), selectedImageLocation.getLongitude());
1,195,440
public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final <MASK><NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<N...
byte[] dataDst = dst.data;
1,041,366
private void init() {<NEW_LINE>handler.postDelayed(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (context instanceof Activity) {<NEW_LINE>windowManager = (WindowManager) context.getSystemService(WINDOW_SERVICE);<NEW_LINE>view = LayoutInflater.from(context).inflate(layoutId, null...
getViewTreeObserver().removeOnPreDrawListener(this);
857,419
public static DescribeApplicationScalingRulesResponse unmarshall(DescribeApplicationScalingRulesResponse describeApplicationScalingRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApplicationScalingRulesResponse.setRequestId(_ctx.stringValue("DescribeApplicationScalingRulesResponse.RequestId"));<NEW_LINE>des...
+ "].Trigger.Triggers[" + j + "].Type"));
1,413,940
public static <T> T parseObject(String str, Type objectType, Feature... features) {<NEW_LINE>if (str == null || str.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean useNativeJavaObject = false;<NEW_LINE>for (Feature feature : features) {<NEW_LINE>if (feature == Feature.UseNativeJavaObject) {<NEW_LINE>useN...
Context context = jsonReader.getContext();
339,340
private boolean writeDictionaryRowGroup(Block dictionary, int valueCount, IntBigArray dictionaryIndexes, int maxDirectBytes) {<NEW_LINE>int[][] segments = dictionaryIndexes.getSegments();<NEW_LINE>for (int i = 0; valueCount > 0 && i < segments.length; i++) {<NEW_LINE>int[] segment = segments[i];<NEW_LINE>int positionCo...
block.getPositionCount() - chunkPositionCount);
1,047,084
public <T> Boolean notStartsWith(BoundReference<T> ref, Literal<T> lit) {<NEW_LINE><MASK><NEW_LINE>if (mayContainNull(id)) {<NEW_LINE>return ROWS_MIGHT_MATCH;<NEW_LINE>}<NEW_LINE>ByteBuffer prefixAsBytes = lit.toByteBuffer();<NEW_LINE>Comparator<ByteBuffer> comparator = Comparators.unsignedBytes();<NEW_LINE>// notStart...
Integer id = ref.fieldId();
1,575,328
public List<PostgresTable> findTable(String schemaName, String[] tableName) throws SQLException {<NEW_LINE>List<<MASK><NEW_LINE>if (tableList.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>if (StringUtils.isBlank(schemaName)) {<NEW_LINE>schemaName = getCurrentSchema();<NEW_LINE>if (StringUtil...
String> tableList = stringArray2List(tableName);
376,924
public void visitPhpTernaryExpression(@NotNull TernaryExpression expression) {<NEW_LINE>final PsiElement rawCondition = expression.getCondition();<NEW_LINE>if (rawCondition != null) {<NEW_LINE>final PsiElement <MASK><NEW_LINE>if (condition instanceof BinaryExpression) {<NEW_LINE>final PsiElement trueVariant = Expressio...
condition = ExpressionSemanticUtil.getExpressionTroughParenthesis(rawCondition);
1,738,960
public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a...
ECFieldElement L2 = b.getRawYCoord();
579,516
public void read(org.apache.thrift.protocol.TProtocol prot, loadTablet_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(4);<NEW_LINE>if (incoming.get(0)) {...
.lock = iprot.readString();
22,343
private void showErrorDetails() {<NEW_LINE>Maybe.fromCallable(() -> {<NEW_LINE>List<DownloadStatus> feedDownloadLog = DBReader.getFeedDownloadLog(feedID);<NEW_LINE>if (feedDownloadLog.size() == 0 || feedDownloadLog.get(0).isSuccessful()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return feedDownloadLog.get(0);<NEW_LIN...
getContext(), MainActivity.class);
141,507
public static boolean checkMacros(final Project project, final Set<String> usedMacros) {<NEW_LINE>final Set<MASK><NEW_LINE>usedMacros.removeAll(defined);<NEW_LINE>// try to lookup values in System properties<NEW_LINE>@NonNls<NEW_LINE>final String pathMacroSystemPrefix = "path.macro.";<NEW_LINE>for (Iterator it = usedMa...
<String> defined = getDefinedMacros();
552,235
public void menuShown(MenuEvent e) {<NEW_LINE>Utils.clearMenu(friends_menu);<NEW_LINE>boolean enabled = plugin.isClassicEnabled();<NEW_LINE>if (enabled) {<NEW_LINE>MenuItem mi = new MenuItem(friends_menu, SWT.PUSH);<NEW_LINE>mi.setText(MessageText.getString("azbuddy.insert.friend.key"));<NEW_LINE>mi.addSelectionListene...
MenuItem(friends_menu, SWT.PUSH);
483,069
private void _getFieldDeser(Context context, MethodVisitor mw, FieldInfo fieldInfo) {<NEW_LINE>Label notNull_ = new Label();<NEW_LINE>mw.visitVarInsn(ALOAD, 0);<NEW_LINE>mw.visitFieldInsn(GETFIELD, context.className, context.fieldDeserName(fieldInfo), desc(ObjectDeserializer.class));<NEW_LINE>mw.visitJumpInsn(IFNONNULL...
mw.visitVarInsn(ALOAD, 1);
771,967
public DomElement closest(final String selectorString) {<NEW_LINE>try {<NEW_LINE>final BrowserVersion browserVersion = getPage().getWebClient().getBrowserVersion();<NEW_LINE>final SelectorList selectorList = getSelectorList(selectorString, browserVersion);<NEW_LINE>DomNode current = this;<NEW_LINE>if (selectorList != n...
final DomElement elem = (DomElement) current;
598,493
public boolean doStartElement(String uri, String localName, String name, Attributes attributes) throws SAXException {<NEW_LINE>if (STYLE_ELT.equals(localName)) {<NEW_LINE>this.currentStyleId = attributes.getValue(W_STYLE_ID_ATTR);<NEW_LINE>} else if (NAME_ELT.equals(localName)) {<NEW_LINE>String val = attributes.getVal...
level = StringUtils.asInteger(index);
210,555
public boolean correctFullLinkControl(CorrectedBinaryMessage message, int crcMask) {<NEW_LINE>int[] input = new int[255];<NEW_LINE>int[] output = new int[255];<NEW_LINE>input[0] = message.getInt(FLC_PARITY_2) ^ crcMask;<NEW_LINE>input[1] = <MASK><NEW_LINE>input[2] = message.getInt(FLC_PARITY_0) ^ crcMask;<NEW_LINE>inpu...
message.getInt(FLC_PARITY_1) ^ crcMask;
1,319,127
public void unsubscribeTopic(final String senderId, final String gcmToken, final String topic) {<NEW_LINE>new AsyncTask<Void, Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Void doInBackground(Void... params) {<NEW_LINE>try {<NEW_LINE>GcmPubSub.getInstance(mContext).unsubscribe(gcmToken, topic);<NEW_LI...
"\ngcmToken: " + gcmToken + "\ntopic: " + topic);
538,988
public boolean convertLevelToRocksBatchIterator(DB level, RocksDB rocks) {<NEW_LINE>// convert<NEW_LINE>List<byte[]> keys = new ArrayList<>(BATCH);<NEW_LINE>List<byte[]> values = new ArrayList<>(BATCH);<NEW_LINE>try (DBIterator levelIterator = level.iterator(new org.iq80.leveldb.ReadOptions().fillCache(false))) {<NEW_L...
> entry = levelIterator.next();
1,214,476
public static // Shape creation (temporary hack)<NEW_LINE>PShapeOpenGL createShape(PGraphicsOpenGL pg, PShape src) {<NEW_LINE>PShapeOpenGL dest = null;<NEW_LINE>if (src.getFamily() == GROUP) {<NEW_LINE>// dest = PGraphics3D.createShapeImpl(pg, GROUP);<NEW_LINE>dest = (PShapeOpenGL) pg.createShapeFamily(GROUP);<NEW_LINE...
), src.getParams());
1,403,022
public static void main(String[] args) throws IOException {<NEW_LINE>List<String> artists = getTop100Artists();<NEW_LINE>Set<String> tags = getTop100Tags();<NEW_LINE>List<Record> records = datasetWithTaggedArtists(artists, tags);<NEW_LINE>Map<Centroid, List<Record>> clusters = KMeans.fit(records, 7, new EuclideanDistan...
.println(sortedCentroid(key));
431,368
public void receivedReply(final EchoBreakpointHitReply reply) {<NEW_LINE>lock.lock();<NEW_LINE>final Pair<ThreadRegisters, BreakpointAddress> addressPair = getAddress(reply);<NEW_LINE>final BreakpointAddress address = addressPair.second();<NEW_LINE>// If trace mode is active and the echo breakpoint that was hit<NEW_LIN...
valueSet = Lists.newArrayList(registers);
1,766,362
public PrimitiveVS<Boolean> symbolicEquals(MapVS<K, V> cmp, Guard pc) {<NEW_LINE>Guard equalCond = Guard.constFalse();<NEW_LINE>Guard guard = BooleanVS.getTrueGuard(this.keys.symbolicEquals(cmp.keys, Guard.constTrue()));<NEW_LINE>ListVS<PrimitiveVS<K>> thisSet = this.restrict(guard).keys.getElements();<NEW_LINE>ListVS<...
.getGuard()), guard);
1,786,985
public Set<String> suggest(EntityRef sender, Object... resolvedParameters) {<NEW_LINE>Map<String, Set<ResourceUrn>> resourceMap = Maps.newHashMap();<NEW_LINE>Set<String<MASK><NEW_LINE>for (ResourceUrn resolvedParameter : assetManager.getAvailableAssets(assetType)) {<NEW_LINE>String resourceName = resolvedParameter.getR...
> suggestions = Sets.newHashSet();
1,560,077
public static Setting fromTenantParameterStore(UUID tenantId, Parameter parameter) {<NEW_LINE>Setting setting = null;<NEW_LINE>if (parameter != null) {<NEW_LINE>String parameterStoreName = parameter.name();<NEW_LINE>if (Utils.isEmpty(parameterStoreName)) {<NEW_LINE>throw new RuntimeException("Can't get Setting name for...
" does not match SaaS Boost tenant pattern " + SAAS_BOOST_TENANT_PATTERN.toString());
1,837,573
private static FilterSpecPlanForge planFilterParametersInternal(List<ExprNode> validatedNodes, FilterSpecCompilerArgs args) throws ExprValidationException {<NEW_LINE>if (validatedNodes.isEmpty()) {<NEW_LINE>return FilterSpecPlanForge.EMPTY;<NEW_LINE>}<NEW_LINE>if (args.compileTimeServices.getConfiguration().getCompiler...
filterParamExprMap, performConditionPlanning, validatedNodes, args);
247,634
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "symbol".split(",");<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#length_batch(3)";<NEW_LINE>env.compileDeployAddListenerMileZero(text, "s0");<NEW_LINE>env.sendEventBean(makeMarketDataEvent("E1"));<NEW_LINE>env.m...
"E4" }, { "E5" } });
135,970
final DescribeOperatingSystemsResult executeDescribeOperatingSystems(DescribeOperatingSystemsRequest describeOperatingSystemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOperatingSystemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(describeOperatingSystemsRequest));
1,356,400
static IBaseResource parseResourceFromRequest(RequestDetails theRequest, @Nonnull BaseMethodBinding<?> theMethodBinding, Class<? extends IBaseResource> theResourceType) {<NEW_LINE>if (theRequest.getResource() != null) {<NEW_LINE>return theRequest.getResource();<NEW_LINE>}<NEW_LINE>IBaseResource retVal = null;<NEW_LINE>...
RestfulServerUtils.determineRequestEncodingNoDefault(theRequest, true);
1,203,753
private void allAppsGridView() throws AndroidDeviceException {<NEW_LINE>int x = screenSize.width;<NEW_LINE>int y = screenSize.height;<NEW_LINE>if (x > y) {<NEW_LINE>y = y / 2;<NEW_LINE>x = x - 30;<NEW_LINE>} else {<NEW_LINE>x = x / 2;<NEW_LINE>y = y - 30;<NEW_LINE>}<NEW_LINE>List<String> coordinates = new ArrayList<Str...
.currentThread().interrupt();
1,284,671
private void processMethods(DexHeader header, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>monitor.setMessage("DEX: processing methods");<NEW_LINE>monitor.setMaximum(header.getMethodIdsSize());<NEW_LINE>monitor.setProgress(0);<NEW_LINE>Address address = baseAddress.add(header.getMethodIdsOffset());<...
.getNameIndex()) + "\n");
916,417
public void updateFeedbackResponsesForChangingTeam(String courseId, String userEmail, String oldTeam, String newTeam) {<NEW_LINE>FeedbackQuestionAttributes question;<NEW_LINE>// deletes all responses given by the user to team members or given by the user as a representative of a team.<NEW_LINE>List<FeedbackResponseAttr...
responsesToUser = getFeedbackResponsesForReceiverForCourse(courseId, userEmail);
1,264,717
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>JSONReader.Context context = jsonReader.getContext();<NEW_LINE>if (jsonReader.isInt()) {<NEW_LINE>long millis = jsonReader.readInt64Value();<NEW_LINE>if (formatUnixTime) {<NEW_LINE>millis *= 1000;<NEW_LINE>}<NEW_...
instant = Instant.ofEpochMilli(millis);
1,148,458
public synchronized boolean checkValid(String clientId, String username, byte[] password) {<NEW_LINE>// Check Username / Password in DB using sqlQuery<NEW_LINE>if (username == null || password == null) {<NEW_LINE>LOG.info("username or password was null");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ResultSet r = null;<N...
= this.preparedStatement.executeQuery();
365,700
public <T extends ONNXRef<?>> ONNXNode exportCombiner(ONNXNode input, T weight) {<NEW_LINE>// Unsqueeze the weights to make sure they broadcast how I want them too.<NEW_LINE>// Now the size is [1, 1, num_members].<NEW_LINE>ONNXInitializer unsqueezeAxes = input.onnxContext().array("unsqueeze_ensemble_output", new long[]...
apply(ONNXOperators.UNSQUEEZE, unsqueezeAxes);
404,477
static double[][] readErrorMatrix(String fileName, Index<String> tagIndex, boolean useLogProb) {<NEW_LINE><MASK><NEW_LINE>int matrixSize = numTags;<NEW_LINE>String[] matrixLines = new String[matrixSize];<NEW_LINE>try {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(fi...
int numTags = tagIndex.size();
1,594,898
protected void installDefaults() {<NEW_LINE>if (tree.getBackground() == null || tree.getBackground() instanceof UIResource) {<NEW_LINE>tree.setBackground(UIManager.getColor("Tree.background"));<NEW_LINE>}<NEW_LINE>if (getHashColor() == null || getHashColor() instanceof UIResource) {<NEW_LINE>setHashColor(UIManager.getC...
installProperty(tree, "scrollsOnExpand", scrollsOnExpand);
1,098,065
protected ActionToolbar buildToolbar(@Nullable Point mousePosition, @Nonnull Disposable parentDisposable) {<NEW_LINE>final DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>final ShowPrevChangeMarkerAction localShowPrevAction = new ShowPrevChangeMarkerAction(myTracker.getPrevRange(myRange), myTracker, myEdi...
RollbackLineStatusRangeAction(myTracker, myRange, myEditor);
426,102
public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeString(modelId);<NEW_LINE>out.writeString(createdBy);<NEW_LINE>Version.writeVersion(version, out);<NEW_LINE>out.writeOptionalString(description);<NEW_LINE>out.writeInstant(createTime);<NEW_LINE>out.writeOptionalWriteable(definition);<NEW_LINE>...
writeCollection(tags, StreamOutput::writeString);
693,152
public void doUpgrade(String userId) {<NEW_LINE>if (// Unless conversion is enabled...<NEW_LINE>!conversionEnabled)<NEW_LINE>// shouldn't really ever happen but...<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>UserData userData = datastore.find(userKey(userId));<NEW_LINE>if ((userData.upgradedGCS && useGcs) || (!userData.u...
Objectify datastore = ObjectifyService.begin();