idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
300,167
public void forEveryEdge(EdgeVisitor visitor) {<NEW_LINE>int tmpNode = getFromNode();<NEW_LINE>int len = edgeIds.size();<NEW_LINE>int prevEdgeId = EdgeIterator.NO_EDGE;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>EdgeIteratorState edgeBase = graph.getEdgeIteratorState(edgeIds.get(i), tmpNode);<NEW_LINE>if (edgeBa...
edgeBase.getEdge(), tmpNode);
515,251
private void actOnLogin(PostLoginEvent event) {<NEW_LINE>ProxiedPlayer player = event.getPlayer();<NEW_LINE>UUID playerUUID = player.getUniqueId();<NEW_LINE>String playerName = player.getName();<NEW_LINE>InetAddress address = player<MASK><NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>ActiveSession session =...
.getAddress().getAddress();
1,104,476
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>// Make an early exit if we're not supposed to generate the APK<NEW_LINE>if (!generateApk) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConfigHandler cfh = new ConfigHandler(this, this.session, this.execution);<NEW_LINE>cfh.parseConfiguratio...
).info("Creating additional unsigned apk file " + unsignedOutputFile);
1,636,144
private void replayRecording(final long recordingLength, final long recordingId) {<NEW_LINE>try (Subscription subscription = aeronArchive.replay(recordingId, 0L, recordingLength, REPLAY_URI, REPLAY_STREAM_ID)) {<NEW_LINE>final IdleStrategy idleStrategy = SampleConfiguration.newIdleStrategy();<NEW_LINE>while (!subscript...
out.println("\n*** unexpected end of stream at message count: " + messageCount);
940,225
protected void sync() {<NEW_LINE>inSync = true;<NEW_LINE>WSDLComponent secBinding = null;<NEW_LINE>WSDLComponent topSecBinding = SecurityPolicyModelHelper.getSecurityBindingTypeElement(comp);<NEW_LINE>WSDLComponent protTokenKind = SecurityTokensModelHelper.getTokenElement(topSecBinding, ProtectionToken.class);<NEW_LINE...
, SecurityPolicyModelHelper.isEncryptSignature(bootPolicy));
760,719
public com.amazonaws.services.sso.model.UnauthorizedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.sso.model.UnauthorizedException unauthorizedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LI...
sso.model.UnauthorizedException(null);
1,428,773
private TrackedEventMessage<?> doConsumeNext() {<NEW_LINE>HashMap<String, TrackedEventMessage<?>> candidateMessagesToReturn = new HashMap<>();<NEW_LINE>peekForMessages(candidateMessagesToReturn);<NEW_LINE>// select message to return from candidates<NEW_LINE>final Optional<Map.Entry<String, TrackedEventMessage<?>>> chos...
streamId, message.trackingToken());
1,268,189
public com.amazonaws.services.appintegrations.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appintegrations.model.ThrottlingException throttlingException = new com.amazonaws.services.appintegrations.model.ThrottlingException(null);<NE...
int originalDepth = context.getCurrentDepth();
1,704,892
public void onApplicationEvent(@NotNull ApplicationReadyEvent applicationReadyEvent) {<NEW_LINE>UpstreamCluster brokerCluster = upstreamManager.findBroker();<NEW_LINE>if (brokerCluster == null)<NEW_LINE>return;<NEW_LINE>// rsocket broker cluster logic<NEW_LINE>CloudEventImpl<AppStatusEvent> appStatusEventCloudEvent = R...
.servicesExposedEvent().get();
1,047,329
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create table varagg as (" + "key string primary key, total sum(int))", path);<NEW_LINE>env.compileDeploy("into table varagg " + "select sum(intPrimitive) as total from SupportBean group ...
new SupportBean("G2", 300));
206,948
public void enableSGR(SGR sgr) throws IOException {<NEW_LINE>switch(sgr) {<NEW_LINE>case BLINK:<NEW_LINE>writeCSISequenceToTerminal((byte) '5', (byte) 'm');<NEW_LINE>break;<NEW_LINE>case BOLD:<NEW_LINE>writeCSISequenceToTerminal((byte) '1', (byte) 'm');<NEW_LINE>break;<NEW_LINE>case BORDERED:<NEW_LINE>writeCSISequenceT...
) '2', (byte) 'm');
44,959
public static void main(String[] args) {<NEW_LINE>final ConfigBuilder configBuilder = new ConfigBuilder();<NEW_LINE>if (args.length > 0) {<NEW_LINE>configBuilder.withMasterUrl(args[0]);<NEW_LINE>logger.info("Using master with URL: {}", args[0]);<NEW_LINE>}<NEW_LINE>try (KubernetesClient client = new KubernetesClientBui...
Thread.sleep(60 * 1000L);
181,969
public void bootstrapPeriodic(final KeycloakSessionFactory sessionFactory, final TimerProvider timer) {<NEW_LINE>KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSessionTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(KeycloakSession session) {<NEW_LINE>Stream<RealmModel> realms = sessio...
USER_STORAGE_TASK_KEY, new UserStorageClusterListener(sessionFactory));
1,319,043
public Object eval(final HttpServletRequest request, final HttpServletResponse response, final Reader velocityReader, final Map<String, Object> contextParams) {<NEW_LINE>final Context context = null == request || null == response ? com.dotmarketing.util.VelocityUtil.getBasicContext() : VelocityUtil.getInstance().getCon...
("dotJSON", new DotJSON());
454,558
public Builder mergeFrom(voldemort.client.protocol.pb.VAdminProto.RebalanceStateChangeRequest other) {<NEW_LINE>if (other == voldemort.client.protocol.pb.VAdminProto.RebalanceStateChangeRequest.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.rebalanceTaskList_.isEmpty()) {<NEW_LINE>if (result.rebalanceT...
setClusterString(other.getClusterString());
881,292
public void start() {<NEW_LINE>// Create the channel<NEW_LINE>ManagedChannel channel = VertxChannelBuilder.forAddress(vertx, "localhost", 8080)<MASK><NEW_LINE>// Get a stub to use for interacting with the remote service<NEW_LINE>VertxConversationalServiceGrpc.ConversationalServiceVertxStub stub = VertxConversationalSer...
.usePlaintext().build();
721,773
final DescribeListenerResult executeDescribeListener(DescribeListenerRequest describeListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeListenerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
680,249
private Double realOperator(Object[] args) {<NEW_LINE>Object arg0 = args[0];<NEW_LINE>Object arg1 = args[1];<NEW_LINE>Double value = DataTypes.DoubleType.convertFrom(arg0);<NEW_LINE>boolean isArg1Unsigned = operandTypes.get(1) instanceof ULongType || arg1 instanceof UInt64 || arg1 instanceof BigInteger;<NEW_LINE>Object...
DataTypes.LongType.convertFrom(arg1);
231,425
private void createPolygons() {<NEW_LINE>// create input polygon 1<NEW_LINE>PointCollection pointsPoly = new PointCollection(SpatialReferences.getWebMercator());<NEW_LINE>pointsPoly.add(new Point(-13160, 6710100));<NEW_LINE>pointsPoly.add(new Point(-13300, 6710500));<NEW_LINE>pointsPoly.add(new Point(-13760, 6710730));...
Point(-13060, 6710910));
246,186
private AndroidManifest parse(File androidManifestFile, boolean libraryProject) throws AndroidManifestNotFoundException {<NEW_LINE>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>DocumentBuilder docBuilder = docBuilderFactory.newDocumentBui...
receiverNodes = documentElement.getElementsByTagName("receiver");
1,387,071
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>msgPanel = new javax.swing.JTextPane();<NEW_LINE>msgPanel.setBackground(new Color(0, 0, 0, 0));<NEW_LINE>// NOI18N<NEW_LINE>m...
, 490, Short.MAX_VALUE));
949,921
public boolean pointerReleased(int pointer, float x, float y) {<NEW_LINE>if (skip) {<NEW_LINE>skip = false;<NEW_LINE>return checkPointerHandled(x, y);<NEW_LINE>}<NEW_LINE>if (layoutEditMode == LAYOUT_EOF) {<NEW_LINE>if (pointer > associatedKeys.length) {<NEW_LINE>return checkPointerHandled(x, y);<NEW_LINE>}<NEW_LINE>if...
].getSecondKeyCode(), 1);
1,660,750
private boolean authenticationWasSuccessful(final HttpServletRequest request, final HttpServletResponse response) throws IOException {<NEW_LINE>final String origin = URIUtil.getName(String.valueOf(request.getRequestURL()));<NEW_LINE>final String code = request.getParameter("code");<NEW_LINE>final String idToken = reque...
accessToken = request.getParameter("access_token");
215,575
private EventSetDescriptor[] introspectEvents() throws IntrospectionException {<NEW_LINE>// Get descriptors for the public methods<NEW_LINE>// FIXME: performance<NEW_LINE>MethodDescriptor[] theMethods = introspectMethods();<NEW_LINE>if (theMethods == null)<NEW_LINE>return null;<NEW_LINE>HashMap<String, HashMap> eventTa...
, HashMap>(theMethods.length);
1,291,320
final PutCorsPolicyResult executePutCorsPolicy(PutCorsPolicyRequest putCorsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putCorsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutCorsPolicy");
730,723
public static VariantContext trimAlleles(final VariantContext inputVC, final boolean trimForward, final boolean trimReverse) {<NEW_LINE>Utils.nonNull(inputVC);<NEW_LINE>if (inputVC.getNAlleles() <= 1 || inputVC.getAlleles().stream().anyMatch(a -> a.length() == 1 && !a.equals(Allele.SPAN_DEL))) {<NEW_LINE>return inputVC...
boolean restoreOneBaseAtStart = emptyAllele && startTrim > 0;
905,049
private void propertiesAsJson(HttpServletRequest req, HttpServletResponse res) throws IOException {<NEW_LINE>String[] pathParts = req.<MASK><NEW_LINE>res.setContentType(CONTENT_TYPE_JSON);<NEW_LINE>if (pathParts.length > 3) {<NEW_LINE>String propertyName = pathParts[3];<NEW_LINE>if (getFf4j().getPropertiesStore().exist...
getPathInfo().split("/");
353,706
static public Class<?> loadClass(String classNameOrURI, Class<?> requiredClass) {<NEW_LINE>if (classNameOrURI == null)<NEW_LINE>throw new ARQInternalErrorException("Null classNameorIRI");<NEW_LINE>if (classNameOrURI.startsWith("http:"))<NEW_LINE>return null;<NEW_LINE>if (classNameOrURI.startsWith("urn:"))<NEW_LINE>retu...
Class.forName(baseUri + escapedClassName);
1,553,709
private void reconcileAndLogDifference(Applications delta, String reconcileHashCode) throws Throwable {<NEW_LINE>logger.debug("The Reconcile hashcodes do not match, client : {}, server : {}. Getting the full registry", reconcileHashCode, delta.getAppsHashCode());<NEW_LINE>RECONCILE_HASH_CODES_MISMATCH.increment();<NEW_...
setVersion(delta.getVersion());
478,686
public final void functionDeclaration() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST functionDeclaration_AST = null;<NEW_LINE>PascalAST tmp87_AST = null;<NEW_LINE>tmp87_AST = (PascalAST) astFactory.create(LT(1));<NEW_LINE>...
(1), getFilename());
661,676
public com.amazonaws.services.organizations.model.HandshakeConstraintViolationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.organizations.model.HandshakeConstraintViolationException handshakeConstraintViolationException = new com.amazonaws.services.o...
int originalDepth = context.getCurrentDepth();
446,017
private void dfsAggregations(Terms terms, ESResultSet rs, List<Object> row) throws SQLException {<NEW_LINE>List<Object> currentRow = Utils.clone(row);<NEW_LINE>String columnName = terms.getName();<NEW_LINE>if (!rs.getHeading().hasLabel(columnName))<NEW_LINE>throw new SQLException("Unable to identify column for aggregat...
getHeading().getColumnByLabel(metricName);
164,524
final DeleteSimulationApplicationResult executeDeleteSimulationApplication(DeleteSimulationApplicationRequest deleteSimulationApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSimulationApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,363,822
private TaskResult processAttempt(StoredSessionAttempt attempt, Config lastStateParams, OptionRerunOn rerunOn, boolean ignoreFailure) {<NEW_LINE>if (attempt.getStateFlags().isDone()) {<NEW_LINE>// A flag to distinguish whether the attempt is kicked by require> or previous attempt.<NEW_LINE>boolean requireKicked = lastS...
"require_kicked", boolean.class, false);
1,777,582
public void parseLight(IElementType t, PsiBuilder b) {<NEW_LINE>boolean r;<NEW_LINE>b = adapt_builder_(t, b, this, null);<NEW_LINE>Marker m = enter_section_(b, 0, _COLLAPSE_, null);<NEW_LINE>if (t == BIT_STRING) {<NEW_LINE>r = bitString(b, 0);<NEW_LINE>} else if (t == FUNCTION_REFERENCE) {<NEW_LINE>r = functionReferenc...
r = operands(b, 0);
1,667,886
final EnableAddOnResult executeEnableAddOn(EnableAddOnRequest enableAddOnRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableAddOnRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,759,148
private void storePubKeyEntry(EncryptConfigEntry entry) {<NEW_LINE>FileOutputStream fos = null;<NEW_LINE>ObjectOutputStream p = null;<NEW_LINE>rw.writeLock().lock();<NEW_LINE>try {<NEW_LINE>File file = new File(clientConfig.getConfStoreBasePath() + entry.getUserName() + ".pubKey");<NEW_LINE>if (!file.getParentFile().ex...
.getParentFile().mkdir();
359,662
public void contextInitialized(GenericServletWrapper.ServletContext servletContext) {<NEW_LINE>final LiquibaseConfiguration liquibaseConfiguration = Scope.getCurrentScope().getSingleton(LiquibaseConfiguration.class);<NEW_LINE>try {<NEW_LINE>this.hostName = NetUtil.getLocalHostName();<NEW_LINE>} catch (Exception e) {<NE...
"Cannot find hostname: " + e.getMessage());
107,031
private void processParenPad(Map<String, String> moduleProps, Properties props) {<NEW_LINE>String option = getPropertyValue(moduleProps, "option", "nospace");<NEW_LINE>String space = "space".equals(option) ? "true" : "false";<NEW_LINE>List<Token> tokens = getApplicableTokens(moduleProps, "tokens");<NEW_LINE>if (tokens....
props.setProperty(PROP_SPACE_WITHIN_ANN_PAREN, space);
238,477
private void drawArea(Set<MapWaypoint> area, Graphics2D g, JXMapViewer map) {<NEW_LINE>if (area.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean first = true;<NEW_LINE>GeneralPath polygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD, area.size());<NEW_LINE>for (MapWaypoint wp : area) {<NEW_LINE>Point2D p = map....
), map.getZoom());
1,096,824
private static boolean createTable(ShardingService shardingService, String schema, String table) {<NEW_LINE>SchemaUtil.SchemaInfo schemaInfo = SchemaUtil.getSchemaInfoWithoutCheck(schema, table);<NEW_LINE>BaseTableConfig tbConfig = schemaInfo.getSchemaConfig().getTables().get(table);<NEW_LINE>String showShardingNode = ...
, DDLTraceHelper.Status.start));
797,587
private static double mergeNoises(double yNoiseIdx, double biomeNoiseV, double depthNoiseV, double upperInterpolationNoiseV, double lowerInterpolationNoiseV, double interpolationNoiseV, double temperatureV, double rainfallV) {<NEW_LINE>// This took a lot of trial and error to get right...<NEW_LINE>double scaledRainfall...
(scaledRainfall, 4))));
999,924
private static void buildOpenStackMetaData(JsonObject metaData, String dataType, String fileName, String content) {<NEW_LINE>if (!NetworkModel.METATDATA_DIR.equals(dataType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(content)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// keys are a special case in Ope...
, "").split(" ");
391,361
public int updateHmilyTransactionStatus(final Long transId, final Integer status) throws HmilyRepositoryException {<NEW_LINE>byte[] key = buildHmilyTransactionRealPath(transId).getBytes();<NEW_LINE>try {<NEW_LINE>byte[] data = jedisClient.hget(HMILY_TRANSACTION_GLOBAL.getBytes(), key);<NEW_LINE>if (data == null) {<NEW_...
, hmilySerializer.serialize(hmilyTransaction));
636,735
public static void flushCache(@Nullable Integer finishedFile) {<NEW_LINE>if (finishedFile != null && finishedFile == INVALID_FILE_ID)<NEW_LINE>finishedFile = 0;<NEW_LINE>// todo make better (e.g. FinishedFiles striping, remove integers)<NEW_LINE>while (finishedFile == null || !ourFinishedFiles.offer(finishedFile)) {<NE...
timestamp = myTimestampsCache.remove(file);
299,596
private static Map<AnnotatedInterval, CalledCopyRatioSegment.Call> createTumorSegmentsToGermlineTagMap(final Map<AnnotatedInterval, List<AnnotatedInterval>> nonZeroMergedNormalSegmentsToTumorSegments, int paddingInBp, final String callAnnotation, final double reciprocalThreshold) {<NEW_LINE>final Map<AnnotatedInterval,...
findFirst().orElse(null);
1,330,706
public static void partialReduceLongMax(long[] inputArray, long[] outputArray, int gidx) {<NEW_LINE>int localIdx = PTXIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = PTXIntrinsics.get_local_size(0);<NEW_LINE>int groupID = PTXIntrinsics.get_group_id(0);<NEW_LINE>long[] localArray = (long[]) NewArrayNode.<MASK>...
newUninitializedArray(long.class, LOCAL_WORK_GROUP_SIZE);
1,284,603
public static Map<String, Object> retrieveItems(String prefix, Map<String, Object> propertieMap) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>if (!prefix.isEmpty()) {<NEW_LINE>prefix += ".";<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, Object> entry : propertieMap.entrySet()) {<NEW_LINE>if (entry.getValue() instanceof ...
result = new LinkedHashMap<>();
239,852
protected void initWhereExpr(Expr whereExpr, Analyzer analyzer) throws UserException {<NEW_LINE>if (whereExpr == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, SlotDescriptor> dstDescMap = Maps.newTreeMap(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>for (SlotDescriptor slotDescriptor : desc.getSlots()) {<NEW_LINE...
addConjuncts(whereExpr.getConjuncts());
1,646,633
public ListEnvironmentDeploymentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEnvironmentDeploymentsResult listEnvironmentDeploymentsResult = new ListEnvironmentDeploymentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
JsonToken token = context.getCurrentToken();
1,189,036
public okhttp3.Call readNamespacedJobCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replaceAll("\\{...
HashMap<String, String>();
1,793,043
public static GenomicsDBVidMapProto.VidMappingPB updateINFOFieldCombineOperation(final GenomicsDBVidMapProto.VidMappingPB vidMapPB, final Map<String, Integer> fieldNameToIndexInVidFieldsList, final String fieldName, final String newCombineOperation) {<NEW_LINE>final int fieldIdx = fieldNameToIndexInVidFieldsList.contai...
Builder updatedVidMapBuilder = vidMapPB.toBuilder();
530,223
private String sendRaw(String topicName, Producer<?, ?> producer, ProducerRecord recordToSend, Boolean isAsync) throws InterruptedException, ExecutionException {<NEW_LINE>ProducerRecord qualifiedRecord = prepareRecordToSend(topicName, recordToSend);<NEW_LINE>RecordMetadata metadata;<NEW_LINE>if (Boolean.TRUE.equals(isA...
LOGGER.info("Synchronous Producer sending record - {}", qualifiedRecord);
147,626
public Mono<Response<Flux<ByteBuffer>>> updateByIdWithResponseAsync(String resourceId, String apiVersion, GenericResourceInner parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<...
error(new IllegalArgumentException("Parameter resourceId is required and cannot be null."));
266,837
// ------------------------------------------------------------------------------<NEW_LINE>// Method: NumericMatcher.handlePut<NEW_LINE>// ------------------------------------------------------------------------------<NEW_LINE>void handlePut(SimpleTest test, Conjunction selector, MatchTarget object, InternTable subExpr...
put(selector, object, subExpr);
1,263,965
private static ConstraintValueInfo findConstraintValueInfo(ConfiguredTargetKey key, SkyframeIterableResult values) throws InvalidConstraintValueException {<NEW_LINE>try {<NEW_LINE>ConfiguredTargetValue ctv = (ConfiguredTargetValue) values.nextOrThrow(ConfiguredValueCreationException.class, NoSuchThingException.class, A...
ConfiguredTarget configuredTarget = ctv.getConfiguredTarget();
660,909
public static void main(String[] args) {<NEW_LINE>final Properties options = StringUtils.argsToProperties(args, argOptionDefs());<NEW_LINE>if (args.length < 1 || options.containsKey("help")) {<NEW_LINE>log.info(usage());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Pattern posPattern = options.containsKey("searchPos") ? ...
getRuntime().availableProcessors());
381,153
public void marshall(Network network, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (network == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(network.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marsh...
network.getArn(), ARN_BINDING);
676,155
public static ResAttr factory(ResReferenceValue parent, Duo<Integer, ResScalarValue>[] items, ResValueFactory factory, ResPackage pkg) throws AndrolibException {<NEW_LINE>int type = ((ResIntValue) items[0].m2).getValue();<NEW_LINE>int scalarType = type & 0xffff;<NEW_LINE>Integer min = null, max = null;<NEW_LINE>Boolean...
m2).getValue() != 0;
168,084
public ListDomainConfigurationsResult listDomainConfigurations(ListDomainConfigurationsRequest listDomainConfigurationsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsReque...
ListDomainConfigurationsRequestMarshaller().marshall(listDomainConfigurationsRequest);
423,626
/* Build call for applicationsApplicationIdPut */<NEW_LINE>private com.squareup.okhttp.Call applicationsApplicationIdPutCall(String applicationId, Application body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.Progr...
String[] localVarAccepts = { "application/json" };
924,699
static ResultList merge(int n, ResultList left, ResultList right, double weight) {<NEW_LINE>Long2IntMap leftRanks = LongUtils.itemRanks(LongUtils.asLongList(left.idList()));<NEW_LINE>Long2IntMap rightRanks = LongUtils.itemRanks(LongUtils.asLongList(right.idList()));<NEW_LINE>int nl = left.size();<NEW_LINE>int nr = righ...
rl = leftRanks.get(item);
69,408
public EdgeLabel readEdgeLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TableBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Number id = schemaColumn(entry, HugeKeys.ID);<NEW_LINE>String name = schemaColumn(entry, HugeKey...
.toId(id), name);
1,675,532
private boolean handleBlockState(String data) {<NEW_LINE>boolean success = true;<NEW_LINE>if (data.equals("*")) {<NEW_LINE>filtered = false;<NEW_LINE>} else {<NEW_LINE>// Split on pairs<NEW_LINE>String[] split = data.split("/");<NEW_LINE>String[] attribs = new String[split.length];<NEW_LINE>String[] vals = new String[s...
s = bs.getState(idx);
1,685,528
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>PoiFilterListItem item = adapter.getItem(<MASK><NEW_LINE>if (item != null) {<NEW_LINE>switch(item.type) {<NEW_LINE>case GROUP_HEADER:<NEW_LINE>if (item.category != null) {<NEW_LINE>if (collapsedCategories.contains(item.category)...
position - listView.getHeaderViewsCount());
124,727
final Snapshot executeAuthorizeSnapshotAccess(AuthorizeSnapshotAccessRequest authorizeSnapshotAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(authorizeSnapshotAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestM...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "AuthorizeSnapshotAccess");
729,599
public Map<String, Object> asMap(boolean full) {<NEW_LINE>Map<String, Object> props = new LinkedHashMap<>();<NEW_LINE>props.put("enabled", isEnabled());<NEW_LINE>props.put("host", host);<NEW_LINE>props.put("owner", owner);<NEW_LINE>props.put("name", name);<NEW_LINE>props.put("username", username);<NEW_LINE>props.put("t...
props.put("commitUrl", commitUrl);
603,239
final GetCelebrityRecognitionResult executeGetCelebrityRecognition(GetCelebrityRecognitionRequest getCelebrityRecognitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCelebrityRecognitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
false), new GetCelebrityRecognitionResultJsonUnmarshaller());
1,424,229
public void bind(@NonNull TimelineModel timelineModel) {<NEW_LINE><MASK><NEW_LINE>IssueEventType event = issueEventModel.getEvent();<NEW_LINE>if (issueEventModel.getAssignee() != null && issueEventModel.getAssigner() != null) {<NEW_LINE>avatarLayout.setUrl(issueEventModel.getAssigner().getAvatarUrl(), issueEventModel.g...
GenericEvent issueEventModel = timelineModel.getGenericEvent();
1,276,361
public void onrequest(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "p", required = false) String p) {<NEW_LINE>Payload payload <MASK><NEW_LINE>payload.setPattern("/afx/dynamic/");<NEW_LINE>if (Objects.nonNull(p)) {<NEW_LINE>if (p.contains("asciidoctor-default.css")) {<NEW_LINE>Optiona...
= new Payload(request, response);
1,586,139
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.<MASK><NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>Uri selectedImageUri = data.getData();<NEW_LINE>try {<NEW_LINE>InputStream imageStream = getActivity().getContentResolver().openInputStream(selectedImageUri);<NEW_LINE>Bitm...
onActivityResult(requestCode, resultCode, data);
660,936
public boolean writeTo(IndentingWriter writer) throws IOException {<NEW_LINE>int elementWidth = instruction.getElementWidth();<NEW_LINE>writer.write(".array-data ");<NEW_LINE>writer.printSignedIntAsDec(instruction.getElementWidth());<NEW_LINE>writer.write('\n');<NEW_LINE>writer.indent(4);<NEW_LINE>List<Number> elements...
writer, number.longValue());
58,313
private static void logAcquireResult(AcquireResult acquireResult) {<NEW_LINE>try {<NEW_LINE>Lock lock = acquireResult.existingLock();<NEW_LINE>DateTime now = acquireResult.transactionTime();<NEW_LINE>switch(acquireResult.lockState()) {<NEW_LINE>case IN_USE:<NEW_LINE>logger.atInfo().log("Existing lock by request %s is s...
lock.expirationTime, lock.lockId);
369,215
private Message<?> enhanceHeadersAndSaveAttributes(Message<?> message, ConsumerRecord<K, V> record) {<NEW_LINE>Message<?> messageToReturn = message;<NEW_LINE>if (message.getHeaders() instanceof KafkaMessageHeaders) {<NEW_LINE>Map<String, Object> rawHeaders = ((KafkaMessageHeaders) message.getHeaders()).getRawHeaders();...
setHeader(IntegrationMessageHeaderAccessor.SOURCE_DATA, record);
395,638
private boolean networkConnect() {<NEW_LINE>logger.debug("Running connection setup");<NEW_LINE>try {<NEW_LINE>logger.debug("Setting up socket connection to " + this.networkHost + ":" + this.networkPort);<NEW_LINE>this.projectorSocket = new Socket(this.networkHost, this.networkPort);<NEW_LINE>this.projectorSocket.setSoT...
.projectorSocket.getInputStream()));
1,593,807
public int LAPACKE_stgsja_work(int arg0, byte arg1, byte arg2, byte arg3, int arg4, int arg5, int arg6, int arg7, int arg8, FloatPointer arg9, int arg10, FloatPointer arg11, int arg12, float arg13, float arg14, FloatPointer arg15, FloatPointer arg16, FloatPointer arg17, int arg18, FloatPointer arg19, int arg20, FloatPo...
arg21, arg22, arg23, arg24);
1,549,289
private void adicionarListeners(Component componente) {<NEW_LINE>// evita adicionar o listener mais de uma vez no mesmo componente<NEW_LINE>// System.out.println(componente.getName() + " - " + componentesRegistrados.contains(componente)+ " -|- " + (componente instanceof Container));<NEW_LINE>if (!componentesRegistrados...
int filhos = container.getComponentCount();
1,717,242
protected RouteLookupConfig doForward(Map<String, ?> json) {<NEW_LINE>ImmutableList<GrpcKeyBuilder> grpcKeybuilders = GrpcKeyBuilderConverter.covertAll(checkNotNull(JsonUtil.getListOfObjects(json, "grpcKeybuilders"), "grpcKeybuilders"));<NEW_LINE>checkArgument(!<MASK><NEW_LINE>Set<Name> names = new HashSet<>();<NEW_LIN...
grpcKeybuilders.isEmpty(), "must have at least one GrpcKeyBuilder");
1,266,405
final CreateCostCategoryDefinitionResult executeCreateCostCategoryDefinition(CreateCostCategoryDefinitionRequest createCostCategoryDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCostCategoryDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
invoke(request, responseHandler, executionContext);
1,468,243
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.tx.jta.ut.util.StateKeeper#loadState()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public int loadState() {<NEW_LINE>new Throwable("com.ibm.tx.jta.ut.util.StateKeeper#loadState()").printStackTrace(System.out);<NEW_LINE>;<NEW_LINE>int resourceCount = 0;<NEW_LINE...
println("Loaded " + resourceCount + " resources");
845,630
private void runAssertion_A_parenthesisBstar(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String[] fields = "a,b0,b1,b2".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A.theString as a, B[0].theStr...
(text).addListener("s0");
174,187
protected void estimateCardinality(StatementPatternNode sp, final AST2BOpContext ctx, final IBindingSet exogenousBindings, final int nrExogeneousBindings) {<NEW_LINE>// unless proven otherwise<NEW_LINE>final <MASK><NEW_LINE>final IV<?, ?> s = getIV(sp.s(), exogenousBindings, usesExogeneousBindings);<NEW_LINE>final IV<?...
AtomicBoolean usesExogeneousBindings = new AtomicBoolean(false);
1,516,463
private static Set<Token> collectLabels(final CompilationInfo info, final Document document, final TreePath labeledStatement) {<NEW_LINE>final Set<Token> result = new LinkedHashSet<Token>();<NEW_LINE>if (labeledStatement.getLeaf().getKind() == Kind.LABELED_STATEMENT) {<NEW_LINE>result.add(org.netbeans.modules.java.edit...
}.scan(labeledStatement, null);
1,124,630
public void preparedOkResponse(byte[] ok, List<byte[]> fields, List<byte[]> params, MySQLResponseService service) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (buffer == null) {<NEW_LINE>buffer = frontedConnection.allocate();<NEW_LINE>}<NEW_LINE>if (!write2Client) {<NEW_LINE>ok[3] = (byte) rwSplitService.nextPacketId()...
).writeToBuffer(field, buffer);
1,646,965
public PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException {<NEW_LINE>for (PersistenceManagerEventHandler handler : persistenceManagerEventHandlers) {<NEW_LINE>PersistenceManagerEventHandlerResponse response = handler.preRemove(this, persistencePackage);<NEW_LINE>if (PersistenceMan...
(persistencePackage, new PersistenceResponse());
1,688,901
public <T> long bulkGraphOperation(final SecurityContext securityContext, final Query query, final int commitCount, String description, final BulkGraphOperation<T> operation) {<NEW_LINE>final Predicate<Long> condition = operation.getCondition();<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE...
getQueryContext().overrideFetchSize(commitCount);
912,870
protected void writeArrayIdTo(Output output, Class<?> componentType) throws IOException {<NEW_LINE>// shouldn't happen<NEW_LINE>assert !componentType.isArray();<NEW_LINE>final RegisteredDelegate<<MASK><NEW_LINE>if (rd != null) {<NEW_LINE>output.writeUInt32(RuntimeFieldFactory.ID_ARRAY, (rd.id << 5) | CID_DELEGATE, fals...
?> rd = getRegisteredDelegate(componentType);
142,399
public final TypeArgumentsContext typeArguments() throws RecognitionException {<NEW_LINE>TypeArgumentsContext _localctx = new TypeArgumentsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 84, RULE_typeArguments);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setStat...
adaptivePredict(_input, 58, _ctx);
107,759
public static void main(String[] args) throws Exception {<NEW_LINE>ReferenceConfig<GenericService> reference = new ReferenceConfig<>();<NEW_LINE>ApplicationConfig applicationConfig = new ApplicationConfig("protobuf-demo-consumer");<NEW_LINE>applicationConfig.setQosEnable(false);<NEW_LINE>reference.setApplication(applic...
GenericService genericService = reference.get();
1,360,618
private static byte[] fetchChunk(final FilerClient filerClient, FilerProto.FileChunk chunk) throws IOException {<NEW_LINE>String vid = "" + chunk.getFid().getVolumeId();<NEW_LINE>FilerProto.Locations locations = <MASK><NEW_LINE>if (locations == null) {<NEW_LINE>FilerProto.LookupVolumeRequest.Builder lookupRequest = Fil...
filerClient.vidLocations.get(vid);
746,137
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String propertyName = evt.getPropertyName();<NEW_LINE>if (Debugger.PROP_CURRENT_FRAME.equals(propertyName)) {<NEW_LINE>CallFrame cf = (CallFrame) evt.getNewValue();<NEW_LINE>if (cf != null) {<NEW_LINE>Script script = cf.getScript();<NEW_LINE>if (script != n...
), cf.getColumnNumber());
905,029
private Component components() {<NEW_LINE>VerticalLayout layout = VerticalLayout.create();<NEW_LINE>FileChooserTextBoxBuilder builder = FileChooserTextBoxBuilder.create(null);<NEW_LINE>layout.add(builder.build());<NEW_LINE>ToggleSwitch toggleSwitch = ToggleSwitch.create(true);<NEW_LINE>toggleSwitch.addValueListener(eve...
toggleSwitch).add(checkBox));
1,499,188
public TimeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TimeRange timeRange = new TimeRange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =...
String currentParentElement = context.getCurrentParentElement();
741,967
final BatchCreateChannelMembershipResult executeBatchCreateChannelMembership(BatchCreateChannelMembershipRequest batchCreateChannelMembershipRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchCreateChannelMembershipRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
endClientExecution(awsRequestMetrics, request, response);
1,763,682
private static void createMergeAction(@Nonnull final BalloonLayoutData layoutData, @Nonnull JPanel panel) {<NEW_LINE>StringBuilder title = new StringBuilder().append(layoutData.mergeData.count).append(" more");<NEW_LINE>String shortTitle = NotificationParentGroup.getShortTitle(layoutData.groupId);<NEW_LINE>if (shortTit...
groupId, layoutData.getMergeIds());
1,024,296
private Image loadImage(String img, int color) {<NEW_LINE>ImageDescriptor desc = ImageDescriptor.createFromURL(Resources.getResource("icons/" + img));<NEW_LINE>int zoom = DPIUtil.getDeviceZoom();<NEW_LINE>ImageData <MASK><NEW_LINE>if (data == null && zoom != 100) {<NEW_LINE>zoom = 100;<NEW_LINE>data = desc.getImageData...
data = desc.getImageData(zoom);
993,158
protected CommandExecutionResult executeNow(AbstractEntityDiagram diagram, BlocLines lines) throws NoSuchColorException {<NEW_LINE>lines = lines.trim();<NEW_LINE>final RegexResult line0 = getStartingPattern().matcher(lines.getFirst().getTrimmed().getString());<NEW_LINE>final String codeRaw = line0.getLazzy("CODE", 0);<...
LeafType.DESCRIPTION, USymbols.RECTANGLE);
818,663
private static PsiFile createOrMergeInjectedFile(@Nonnull PsiFile hostPsiFile, @Nonnull PsiDocumentManagerBase documentManager, @Nonnull Place place, @Nonnull DocumentWindowImpl documentWindow, @Nonnull PsiFile psiFile, @Nonnull InjectedFileViewProvider viewProvider) {<NEW_LINE>cacheEverything(place, documentWindow, vi...
getPsi(psiFile.getLanguage());
474,291
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,698,245
boolean isDefiniteDeclaration(AbstractCompiler compiler) {<NEW_LINE>Node parent = getLhs().getParent();<NEW_LINE>switch(parent.getToken()) {<NEW_LINE>case DEFAULT_VALUE:<NEW_LINE>if (!parent.getParent().isStringKey()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// fall through<NEW_LINE>case COMPUTED_PROP:<NEW_LINE>cas...
.isTypedRhs(getRhs()));