idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
27,455
private void loadNode39() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_AddNodesItem, new QualifiedName(0, "AddNodesItem"), new LocalizedText("en", "AddNodesItem"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), U...
this.nodeManager.addNode(node);
1,440,277
private void printPostInstallStepsOsX(File serviceFile) {<NEW_LINE>System.out.println(INTENSITY_BOLD + "Mac OS X system detected:" + INTENSITY_NORMAL);<NEW_LINE><MASK><NEW_LINE>System.out.println("To configure openHAB as a " + INTENSITY_BOLD + "user service" + INTENSITY_NORMAL + " execute the following file move:");<NE...
System.out.println("");
349,280
private void computeDir(double[] dir, double[] fg, double[] x, QNInfo qn, Function func, StringBuilder sb) throws SurpriseConvergence {<NEW_LINE>System.arraycopy(fg, 0, dir, 0, fg.length);<NEW_LINE><MASK><NEW_LINE>double[] as = new double[mmm];<NEW_LINE>for (int i = mmm - 1; i >= 0; i--) {<NEW_LINE>double v = as[i] = q...
int mmm = qn.size();
561,614
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>ListPreference listPreference = (ListPreference) findPreference(getText(R.string.settings_key_layout_for_internet_fields));<NEW_LINE>List<KeyboardAddOnAndBuilder> enabledKeyboards...
enabledKeyboards.size() + 1];
731,738
public void buildEqualInfo(JoinInfo joinInfo, AbstractSideTableInfo sideTableInfo) {<NEW_LINE>RdbSideTableInfo rdbSideTableInfo = (RdbSideTableInfo) sideTableInfo;<NEW_LINE>String sideTableName = joinInfo.getSideTableName();<NEW_LINE>SqlNode conditionNode = joinInfo.getCondition();<NEW_LINE>List<SqlNode<MASK><NEW_LINE>...
> sqlNodeList = Lists.newArrayList();
1,365,136
private void execPostAPICall(String host, int port, final String username, final String pass, final HTTPClient client, final LinkedHashMap<String, Integer> results, final MultiProtocolURL apiURL, final boolean isTokenProtectedAPI) throws MalformedURLException {<NEW_LINE>Map<String, ContentBody> post = new HashMap<>();<...
url, username, pass, false);
1,043,897
/*<NEW_LINE>* Look for missing type parameters @param tags<NEW_LINE>*/<NEW_LINE>private char[][] missingTypeParameterTags(Binding paramNameRefBinding, Scope scope) {<NEW_LINE>int paramTypeParamLength = this.paramTypeParameters == null ? 0 : this.paramTypeParameters.length;<NEW_LINE>// Verify if there's any type paramet...
[size++] = parameter.name;
1,477,912
// snippet-start:[personalize.java2.put_items.main]<NEW_LINE>public static int putItems(PersonalizeEventsClient personalizeEventsClient, String datasetArn, String item1Id, String item1PropertyName, String item1PropertyValue, String item2Id, String item2PropertyName, String item2PropertyValue) {<NEW_LINE>int responseCod...
items = new ArrayList<>();
1,636,678
protected void registerRewrites() {<NEW_LINE>filter().handler((event, meta) -> {<NEW_LINE>meta.setMetaType(Types1_17.META_TYPES.byId(meta.metaType().typeId()));<NEW_LINE>if (meta.metaType() == Types1_17.META_TYPES.poseType) {<NEW_LINE>int pose = meta.value();<NEW_LINE>if (pose > 5) {<NEW_LINE>// Added LONG_JUMP at 6<NE...
().getNewBlockStateId(data));
167,308
ActionResult<Wo> execute(String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, String path7, JsonElement jsonElement) throws Exception {<NEW_LINE>Callable<ActionResult<Wo>> callable = new Callable<ActionResult<Wo>>() {<NEW_LINE><NEW_LINE>public ActionResult<Wo> cal...
ExceptionEntityNotExist(id, ApplicationDict.class);
1,029,485
/*<NEW_LINE>Put metering event on EventBridge<NEW_LINE>*/<NEW_LINE>private void putMeteringEvent(String eventBridgeDetail) {<NEW_LINE>try {<NEW_LINE>final String SAAS_BOOST_EVENT_BUS = System.getenv("SAAS_BOOST_EVENT_BUS");<NEW_LINE>if (SAAS_BOOST_EVENT_BUS == null || SAAS_BOOST_EVENT_BUS.isEmpty()) {<NEW_LINE>throw ne...
, systemApiCallEvent.toString()));
830,720
private void init(int namedGroup) {<NEW_LINE>this.ecCurve = null;<NEW_LINE>this.ecGenSpec = null;<NEW_LINE>this.ecParameterSpec = null;<NEW_LINE>if (!NamedGroup.refersToASpecificCurve(namedGroup)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String curveName = NamedGroup.getName(namedGroup);<NEW_LINE>if (curveName == null) {...
getHelper().createAlgorithmParameters("EC");
372,513
public ChangeInfo implement() throws Exception {<NEW_LINE>final FileObject file = handle.getFileObject();<NEW_LINE>final JTextComponent component = EditorRegistry.lastFocusedComponent();<NEW_LINE>if (file != null && file == getFileObject(component)) {<NEW_LINE>final int[] position = <MASK><NEW_LINE>JavaSource.forFileOb...
new int[] { -1 };
880,927
protected ActionCallback _execute(PlaybackContext context) {<NEW_LINE>String[] args = getText().substring(PREFIX.length()).trim().split(" ");<NEW_LINE>String syntaxText = "Syntax error, expected: " + PREFIX + " " + ON + "|" + OFF + " actionName";<NEW_LINE>if (args.length != 2) {<NEW_LINE>context.error(syntaxText, getLi...
ActionManager.getInstance(), 0);
857,829
private void collectPropertySchemas(org.everit.json.schema.Schema schema, Map<String, org.everit.json.schema.Schema> properties, Map<String, Boolean> required, Set<org.everit.json.schema.Schema> visited) {<NEW_LINE>if (visited.contains(schema)) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>visited.add(schema);<NEW_LINE...
subSchema, properties, required, visited);
426,879
private List<ShipmentScheduleWithHU> createShipmentSchedulesWithHUForQtyToDeliver(@NonNull final I_M_ShipmentSchedule scheduleRecord, @Nullable final Quantity quantityToDeliverOverride, @NonNull final M_ShipmentSchedule_QuantityTypeToUse quantityTypeToUse, final boolean pickAccordingToPackingInstruction, @NonNull final...
, scheduleRecord, stockQtyAndCatchQty, quantityTypeToUse));
328,537
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_program_buttons);<NEW_LINE>FancyButton facebookLoginBtn = new FancyButton(this);<NEW_LINE>facebookLoginBtn.setText("Login with Facebook");<NEW_LINE>facebookLoginBtn.setBackgroundCo...
(Color.parseColor("#ff8800"));
66,816
private Set<String> computeAreaInterfaces(Map<String, org.batfish.datamodel.Interface> viInterfaces, org.batfish.representation.palo_alto.OspfArea vsArea, String ospfProcessName) {<NEW_LINE>ImmutableSet.Builder<String> ospfIfaceNames = ImmutableSet.builder();<NEW_LINE><MASK><NEW_LINE>vsArea.getInterfaces().values().for...
Ip vsAreaId = vsArea.getAreaId();
139,095
private void initRegionalEndpointData(JsonObject obj) {<NEW_LINE>if (!obj.has("regional_endpoints")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>regionalEndpointData = obj.get("regional_endpoints").getAsJsonObject();<NEW_LINE>JsonObject regionalEndpoints = obj.<MASK><NEW_LINE>Set<String> regionalEndpointsKeySet = new HashSe...
get("regional_endpoints").getAsJsonObject();
785,112
public int[] transformToIntValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>int length = projectionBlock.getNumDocs();<NEW_LINE>if (_results == null || _results.length < length) {<NEW_LINE>_results = new int[length];<NEW_LINE>}<NEW_LINE>DataType storedType = _transformFunction.getResultMetadata().getDataType().getS...
[i]) ? 1 : 0;
1,617,760
@Operation(summary = "List state change events for multiple assignments", description = "List state change events for multiple assignments")<NEW_LINE>public Response listStateChangesForAssignments(@Parameter(description = "Page number", required = false) @QueryParam("page") @DefaultValue("1") int page, @Parameter(descr...
, criteria)).build();
137,228
public boolean visit(MySqlIndexHintImpl x) {<NEW_LINE>List<SQLName<MASK><NEW_LINE>SqlNodeList list = new SqlNodeList(SqlParserPos.ZERO);<NEW_LINE>for (int i = 0; i < indexList.size(); i++) {<NEW_LINE>SQLName sqlName = indexList.get(i);<NEW_LINE>String simpleName = sqlName.getSimpleName();<NEW_LINE>if (context.isTestMod...
> indexList = x.getIndexList();
404,706
public static void loadNames(NewRepository repository, InputStream stream) {<NEW_LINE>var properties = new Properties();<NEW_LINE>try {<NEW_LINE>properties.load(stream);<NEW_LINE>} catch (IOException e) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>for (var rule : repository.rules()) {<NEW_LINE>var baseKey = "rule." + reposito...
throw new IllegalArgumentException("Could not read names from properties", e);
1,010,967
public void write(RelationshipGroupRecord record, PageCursor cursor, int recordSize, int recordsPerPage) {<NEW_LINE>if (record.inUse()) {<NEW_LINE>long nextMod = record.getNext() == Record.NO_NEXT_RELATIONSHIP.intValue() ? 0 : (record.getNext() & 0x700000000L) >> 31;<NEW_LINE>long nextOutMod = record.getFirstOut() == R...
int) record.getFirstIn());
1,265,562
public static void predictDCInside(int[][] residual, int blkX, int blkY, int mbX, boolean leftAvailable, boolean topAvailable, byte[] leftRow, byte[] topLine, byte[] pixOut) {<NEW_LINE>int s0, blkOffX = (blkX << 2) + (mbX << 3), blkOffY = blkY << 2;<NEW_LINE>if (leftAvailable && topAvailable) {<NEW_LINE>s0 = 0;<NEW_LIN...
(s0 + 2) >> 2;
1,542,223
private Map<String, Object> retrieveASIValuesMap(@NonNull final AttributeSetInstanceId asiId, @NonNull final DocumentEntityDescriptor descriptor) {<NEW_LINE>if (asiId.isNone()) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>final HashMap<String, Object> <MASK><NEW_LINE>for (final I_M_AttributeInstance fromAI ...
valuesMap = new HashMap<>();
1,431,733
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vpnSiteName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,378,748
final UpdateContactFlowMetadataResult executeUpdateContactFlowMetadata(UpdateContactFlowMetadataRequest updateContactFlowMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactFlowMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
982,452
public AttributeType putAttributeType(String label, AttributeType.ValueType valueType) {<NEW_LINE>if (valueType == null)<NEW_LINE>throw exception(TypeDBException.of(ATTRIBUTE_VALUE_TYPE_MISSING, label));<NEW_LINE>if (!valueType.isWritable())<NEW_LINE>throw exception(TypeDBException.of(UNSUPPORTED_OPERATION));<NEW_LINE>...
DateTime.of(graphMgr, vertex);
1,107,336
public BucketCountPolicyAllowsUnencryptedObjectUploads unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BucketCountPolicyAllowsUnencryptedObjectUploads bucketCountPolicyAllowsUnencryptedObjectUploads = new BucketCountPolicyAllowsUnencryptedObjectUploads();<NEW_LINE><MASK><NEW_LINE>String currentP...
int originalDepth = context.getCurrentDepth();
327,782
protected InputStream inputStream(String name) throws java.io.FileNotFoundException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>synchronized (closeSync) {<NEW_LINE>JarFile j = reOpenJarFile();<NEW_LINE>if (j != null) {<NEW_LINE>JarEntry je = j.getJarEntry(name);<NEW_LINE>if (je != null) {<NEW_LINE>if (je....
is = getMemInputStream(j, je);
263,798
private TypeDeclaration typeToTypeDeclaration(TypeMirror tMirror) {<NEW_LINE>int dimension = 0;<NEW_LINE>TypeMirror aType = tMirror;<NEW_LINE>ITypeDeclaration[] generics = null;<NEW_LINE>if (tMirror.getKind() == TypeKind.ARRAY) {<NEW_LINE>for (; aType.getKind() == TypeKind.ARRAY; aType = ((ArrayType) tMirror).getCompon...
[i] = typeToTypeDeclaration(gType);
1,399,512
private void populateTransform(Type type, int index, List<KeyFrame> keyFrames, KeyFrame currentKeyFrame, TransformIndices transformIndices) {<NEW_LINE>Object transform = getTransform(type, currentKeyFrame);<NEW_LINE>if (transform != null) {<NEW_LINE>getArray(type)[index] = transform;<NEW_LINE>transformIndices.last = in...
keyFrames.get(transformIndices.last);
309,364
private static void handleMigration(ListMultimap<TStorageMedium, Long> tabletMetaMigrationMap, long backendId) {<NEW_LINE><MASK><NEW_LINE>SystemInfoService infoService = Catalog.getCurrentSystemInfo();<NEW_LINE>Backend be = infoService.getBackend(backendId);<NEW_LINE>if (be == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI...
TabletInvertedIndex invertedIndex = Catalog.getCurrentInvertedIndex();
287,704
public void onBindViewHolder(final ViewHolder holder, final int position, final List<Object> payloads) {<NEW_LINE>final boolean fullBind = payloads.isEmpty();<NEW_LINE>final EnumSet<ChangeType> changes = EnumSet.noneOf(ChangeType.class);<NEW_LINE>for (final Object payload : payloads) changes.addAll((EnumSet<ChangeType>...
iconView.setImageDrawable(listItem.icon);
977,980
private Boolean deregisterListenerInternal(@Nullable UUID userRegistrationId) {<NEW_LINE>// This method should only be called from registrationExecutor<NEW_LINE>assert (Thread.currentThread().getName().contains("eventRegistration"));<NEW_LINE>ClientListenerRegistration listenerRegistration = registrations.remove(userRe...
(ClientConnection) entry.getKey();
553,207
public Client load(InputStream input) throws IOException {<NEW_LINE>// check signature<NEW_LINE>byte[] signature = new byte[SIGNATURE.length];<NEW_LINE>int <MASK><NEW_LINE>if (read != SIGNATURE.length)<NEW_LINE>throw new IOException();<NEW_LINE>if (!Arrays.equals(signature, SIGNATURE))<NEW_LINE>throw new IOException(Me...
read = input.read(signature);
1,392,624
public GetJobOutputResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetJobOutputResult getJobOutputResult = new GetJobOutputResult();<NEW_LINE>if (context.isStartOfDocument()) {<NEW_LINE>if (context.getHeader("x-amz-sha256-tree-hash") != null) {<NEW_LINE>context.setCurrentHeader("x-amz-sha...
class).unmarshall(context));
1,027,626
public BatchSnoozeAlarmResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchSnoozeAlarmResult batchSnoozeAlarmResult = new BatchSnoozeAlarmResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,123,847
private Object instrumentedFeignLoadBalancerClient(Object bean) {<NEW_LINE>if (AopUtils.getTargetClass(bean).equals(FeignBlockingLoadBalancerClient.class)) {<NEW_LINE>FeignBlockingLoadBalancerClient client = ProxyUtils.getTargetObject(bean);<NEW_LINE>return new TraceFeignBlockingLoadBalancerClient((Client) new TraceFei...
FeignBlockingLoadBalancerClient.class.getDeclaredField(DELEGATE);
703,851
private void internalCreateAttachments(String parentItemId, Iterable<Attachment> attachments) throws Exception {<NEW_LINE>ServiceResponseCollection<CreateAttachmentResponse> responses = this.owner.getService().createAttachments(parentItemId, attachments);<NEW_LINE>Enumeration<CreateAttachmentResponse<MASK><NEW_LINE>whi...
> enumerator = responses.getEnumerator();
1,063,181
private void updateHiddenState(EventsTreeItem treeItem) {<NEW_LINE>DetailViewEvent event = treeItem.getValue();<NEW_LINE>hidden.set(event != null && controller.getQuickHideFilters().stream().filter(FilterState<DescriptionFilter>::isActive).anyMatch(filter -> StringUtils.equalsIgnoreCase(filter.getFilter().getDescriptio...
, HIDDEN_MULTIPLIER, 1, HIDDEN_MULTIPLIER));
1,003,235
public HBaseRow createHbaseRow(EntityMetadata m, Object entity, Object rowId, List<RelationHolder> relations) throws IOException {<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());<NEW_LINE>EntityType entityType = metaModel.entity(m.getEnti...
KunderaCoreUtils.prepareCompositeKey(m, rowId);
313,915
protected By buildDefaultBy() {<NEW_LINE>AnnotatedElement annotatedElement = annotatedElementContainer.getAnnotated();<NEW_LINE>By defaultBy = null;<NEW_LINE>FindBy findBy = annotatedElement.getAnnotation(FindBy.class);<NEW_LINE>if (findBy != null) {<NEW_LINE>defaultBy = new FindBy.FindByBuilder().buildIt(findBy, (Fiel...
(findBys, (Field) annotatedElement);
1,285,001
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE><MASK><NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>System.setProperty("org.eclipse.jetty.util.log.class", "org.eclipse.jetty.util.log.StrErrLog");<NEW_LINE>System.setProperty("org.eclipse.jetty.LEVEL", "INFO");<NEW_LINE...
System.err.println("Usage: need a relative path to the war file to execute");
1,063,958
private void createBillingDocuments(Event event) {<NEW_LINE>if (event.getEnd().isAfter(event.now(clockProvider))) {<NEW_LINE>List<String> reservations = jdbc.queryForList("select id from tickets_reservation where event_id_fk = :eventId and status in ('OFFLINE_PAYMENT', 'COMPLETE') and invoice_number is not null and id ...
"creating BillingDocument(s) for event {}", event.getDisplayName());
1,434,108
private void action_loadBOM() {<NEW_LINE>int M_Product_ID = getM_Product_ID();<NEW_LINE>if (M_Product_ID == 0)<NEW_LINE>return;<NEW_LINE>MProduct product = MProduct.get(getCtx(), M_Product_ID);<NEW_LINE>SimpleTreeNode parent = new SimpleTreeNode(productSummary(product, false), new ArrayList());<NEW_LINE>dataBOM.clear()...
addEventListener(Events.ON_SELECTION, this);
360,695
private Pair<ExprForge, Object> handleUnderlyingStreamInsert(ExprForge exprEvaluator, EventPropertyDescriptor optionalInsertedTargetProp, EPChainableType optionalInsertedTargetEPType) throws ExprValidationException {<NEW_LINE>if (!(exprEvaluator instanceof ExprStreamUnderlyingNode)) {<NEW_LINE>return null;<NEW_LINE>}<N...
Pair<>(forge, eventTypeStream);
1,786,969
public static String dataMapToQueryString(DataMap dataMap, Escaping escaping) {<NEW_LINE>if (dataMap == null || dataMap.isEmpty()) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>Map<String, List<String>> queryStringParamsMap = queryString(dataMap);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>List<String> keys ...
).append(RestConstants.SIMPLE_KEY_DELIMITER);
127,869
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndTypes(sources, 2, DOMNode.class, String.class);<NEW_LINE>// we can safely cast here because of the assert.. above<NEW_LINE>final DOMNode element <MASK><...
= (DOMNode) sources[0];
178,393
private TipoDado geraTipoResultante() {<NEW_LINE>TipoDado tipoOpEsquerdo = operandoEsquerdo.getTipoResultante();<NEW_LINE><MASK><NEW_LINE>if (tipoOpEsquerdo != tipoOpDireito) {<NEW_LINE>try {<NEW_LINE>return TabelaCompatibilidadeTiposPortugol.INSTANCE.obterTipoRetornoOperacao(this.getClass(), tipoOpEsquerdo, tipoOpDire...
TipoDado tipoOpDireito = operandoDireito.getTipoResultante();
249,328
private void createStartActionSection(Composite parent) {<NEW_LINE>Font font = parent.getFont();<NEW_LINE>Group group = new Group(parent, SWT.FLAT | SWT.SHADOW_IN);<NEW_LINE>group.setText(Messages.LaunchBrowserSettingsTab_StartAction);<NEW_LINE>group.setFont(font);<NEW_LINE>// CHECKSTYLE:OFF<NEW_LINE>GridData gd = new ...
rbCurrentPage, 10, SWT.BOTTOM);
676,323
private void failAndRemoveShard(ShardRouting shardRouting, boolean sendShardFailure, String message, @Nullable Exception failure, ClusterState state) {<NEW_LINE>try {<NEW_LINE>AllocatedIndex<? extends Shard> indexService = indicesService.indexService(shardRouting.shardId().getIndex());<NEW_LINE>if (indexService != null...
shardId().id());
1,642,383
public DataBuffer relocateConstantSpace(DataBuffer dataBuffer) {<NEW_LINE>// we always assume that data is sync, and valid on host side<NEW_LINE>Integer deviceId = AtomicAllocator.getInstance().getDeviceId();<NEW_LINE>ensureMaps(deviceId);<NEW_LINE>if (dataBuffer instanceof CudaIntDataBuffer) {<NEW_LINE>int[] data = da...
getConstantBuffer(data, DataType.LONG);
108,486
private void registerPrimaryVmHeartbeat(RegisterColoPrimaryCheckMsg msg, NoErrorCompletion completion) {<NEW_LINE>RegisterPrimaryVmHeartbeatCmd cmd = new RegisterPrimaryVmHeartbeatCmd();<NEW_LINE>cmd.setHostUuid(msg.getHostUuid());<NEW_LINE>cmd.setVmInstanceUuid(msg.getVmInstanceUuid());<NEW_LINE>cmd.setHeartbeatPort(m...
, self.getUuid()));
1,568,257
public void blacklistNode(int nodeId) {<NEW_LINE>Collection<Node> nodesInCluster = adminClient.getAdminClientCluster().getNodes();<NEW_LINE>if (blackListedNodes == null) {<NEW_LINE>blackListedNodes = new ArrayList();<NEW_LINE>}<NEW_LINE>blackListedNodes.add(nodeId);<NEW_LINE>for (Node node : nodesInCluster) {<NEW_LINE>...
new Pair(store, nodeId));
299,392
public int compareTo(TActiveTraceHistogram other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetVersion()).<MASK><NEW_LINE>if (lastCom...
compareTo(other.isSetVersion());
949,950
final DeleteStudioComponentResult executeDeleteStudioComponent(DeleteStudioComponentRequest deleteStudioComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStudioComponentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,585,600
public void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context, @NotNull CompletionResultSet resultSet) {<NEW_LINE>if (!Symfony2ProjectComponent.isEnabled(parameters.getPosition())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PhpIndex phpIndex = PhpIndex.getInstance(parameters.getOriginalFile...
().getPrefix()));
63,260
private void processHeaderData(ZipModel zipModel, OutputStream outputStream) throws IOException {<NEW_LINE>int currentSplitFileCounter = 0;<NEW_LINE>if (outputStream instanceof OutputStreamWithSplitZipSupport) {<NEW_LINE>zipModel.getEndOfCentralDirectoryRecord().setOffsetOfStartOfCentralDirectory(((OutputStreamWithSpli...
getEndOfCentralDirectoryRecord().setNumberOfThisDiskStartOfCentralDir(currentSplitFileCounter);
318,522
public static void initCalendarsPreference(Context context, ListPreference listPreference) {<NEW_LINE>Resources r = context.getResources();<NEW_LINE>CalendarResult calendars = getCalendars();<NEW_LINE>// Fetch the current setting. Invalid calendar id will<NEW_LINE>// be changed to default value.<NEW_LINE>String current...
= new ArrayList<CharSequence>();
466,772
public NamespaceError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NamespaceError namespaceError = new NamespaceError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
1,654,839
private void writeFile(SinglePatch patch, List<String> lines) throws IOException {<NEW_LINE>patch.targetFile.getParentFile().mkdirs();<NEW_LINE>if (patch.binary) {<NEW_LINE>if (patch.hunks.length == 0) {<NEW_LINE>if (!patch.rename) {<NEW_LINE>// do not delete, it was a plain rename<NEW_LINE>patch.targetFile.delete();<N...
.hunks[0].lines);
365,285
private void spawnParticles() {<NEW_LINE>float r = (getColour() >> 16 & 255) / 255f;<NEW_LINE>float g = (getColour() >> 8 & 255) / 255f;<NEW_LINE>float b = (getColour() & 255) / 255f;<NEW_LINE>for (int i = 0; i < 80; i++) {<NEW_LINE>Vec3 v = new Vec3((Utils.RAND.nextDouble() - .5) * i > 40 ? 2 : 1, (Utils.RAND.nextDoub...
i > 40 ? 2 : 1);
471,267
private void parseContextRange(Hunk hunk, String range) throws PatchException {<NEW_LINE>if (range.charAt(0) == '*') {<NEW_LINE>Matcher <MASK><NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new PatchException("Invalid context diff range: " + range);<NEW_LINE>}<NEW_LINE>hunk.baseStart = Integer.parseInt(m.group(1));<NEW_LI...
m = baseRangePattern.matcher(range);
485,171
protected int executeCommand() throws CommandException, CommandValidationException {<NEW_LINE>File privKeyFile = new File(pkcs8PrivateKeyPath);<NEW_LINE>try {<NEW_LINE>File destKeyStore = getKeyStoreFile();<NEW_LINE>try (InputStream privIn = new FileInputStream(privKeyFile)) {<NEW_LINE>PrivateKey privKey = keyManager.r...
destKeyStore.getAbsolutePath() }));
1,475,082
protected ProxyAddress parseProxyAddress(HttpServletRequest servletRequest) {<NEW_LINE><MASK><NEW_LINE>String queryPostfix = "";<NEW_LINE>if (Strings.isNotBlank(reqQueryString)) {<NEW_LINE>queryPostfix = "?" + reqQueryString;<NEW_LINE>}<NEW_LINE>String userName = null;<NEW_LINE>String password = null;<NEW_LINE>String s...
String reqQueryString = servletRequest.getQueryString();
1,266,755
protected boolean isSloppyGesture(MotionEvent event) {<NEW_LINE>boolean sloppy = super.isSloppyGesture(event);<NEW_LINE>if (sloppy) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final float drag0 = event.getY(0) - mStartY0;<NEW_LINE>final float drag1 = event.getY(1) - mStartY1;<NEW_LINE>final float xSpanDiff = Math.abs(m...
angle && angle < Math.PI);
1,551,679
private synchronized void sendLEDData(final LEDStateDTO ledState) {<NEW_LINE>cachedLedStatus = ledState;<NEW_LINE>if (!ledUpdateFuture.isDone()) {<NEW_LINE>ledUpdateFuture.cancel(true);<NEW_LINE>}<NEW_LINE>final byte[] bytes;<NEW_LINE>int program = Integer.valueOf(ledState.getProgram().toString());<NEW_LINE>if (program...
] { 0x61, p, s };
31,767
private Status updateFileWithPartialContent(Request request, File file, Range range) {<NEW_LINE>File tmp = null;<NEW_LINE>// Replace the content of the file. First, create a temporary file<NEW_LINE>try {<NEW_LINE>// The temporary file used for partial PUT.<NEW_LINE>tmp = new File(file.getCanonicalPath() + "." + getTemp...
seek(range.getIndex());
789,984
private MMovement importInventoryMovement(X_I_Movement movementImport) {<NEW_LINE>StringBuilder whereClause = new StringBuilder();<NEW_LINE>whereClause.append("TRUNC(").append(I_M_Movement.COLUMNNAME_MovementDate).append(",'DD') = " + DB.TO_DATE(movementImport.getMovementDate()) + " AND ").append(I_M_Movement.COLUMNNAM...
getC_DocType_ID()).firstId();
480,017
protected boolean checkOperandTypes(HazelcastCallBinding callBinding, boolean throwOnFailure) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < OPERANDS; ++i) {<NEW_LINE>RelDataType type = callBinding.getOperandType(i);<NEW_LINE>// fast fail-forward path.<NEW_LINE>if (type.getComparability().ordinal() < RelDataTypeCompara...
assert callBinding.getOperandCount() == OPERANDS;
1,640,446
final GetServiceResult executeGetService(GetServiceRequest getServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
620,929
public Supplier<Pair<Integer, JsonNode>> handleGet(StateContext state) {<NEW_LINE>JsonApiDocument jsonApiDocument = new JsonApiDocument();<NEW_LINE>RequestScope requestScope = state.getRequestScope();<NEW_LINE>MultivaluedMap<String, String> queryParams = requestScope.getQueryParams();<NEW_LINE>Set<PersistentResource> c...
, requestScope.getDictionary()));
50,161
protected void encodeMarkup(FacesContext context, InputSwitch inputSwitch) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>boolean checked = Boolean.parseBoolean(ComponentUtils.getValueToRender(context, inputSwitch));<NEW_LINE>boolean showLabels = inputSwitch.isShowLabels();<...
String style = inputSwitch.getStyle();
1,338,896
public void configure(TapGestureHandler handler, ReadableMap config) {<NEW_LINE><MASK><NEW_LINE>if (config.hasKey(KEY_TAP_NUMBER_OF_TAPS)) {<NEW_LINE>handler.setNumberOfTaps(config.getInt(KEY_TAP_NUMBER_OF_TAPS));<NEW_LINE>}<NEW_LINE>if (config.hasKey(KEY_TAP_MAX_DURATION_MS)) {<NEW_LINE>handler.setMaxDurationMs(config...
super.configure(handler, config);
1,705,422
public void done() {<NEW_LINE>try {<NEW_LINE>if (isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>casesTableModel.clearTable();<NEW_LINE>OtherOccurrenceOneTypeWorker.OneTypeData data = get();<NEW_LINE>correlationAttributes.addAll(data.getCorrelationAttributesToAdd());<NEW_LINE>for (CorrelationCase corCase : data.g...
Level.SEVERE, "Failed to update OtherOccurrence panel", ex);
1,772,884
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>String path = <MASK><NEW_LINE>if (path.equals("...")) {<NEW_LINE>long length = meterpreter.getErrorBufferLength();<NEW_LINE>if (length != -1) {<NEW_LINE>response.add(TLVType.TLV_TYPE_STAT_BUF, stat(0444 | 0100...
request.getStringValue(TLVType.TLV_TYPE_FILE_PATH);
335,729
private void validateSearch(final IVariable<?> searchVar, final Map<URI, StatementPatternNode> statementPatterns) {<NEW_LINE>final Set<URI> uris = new LinkedHashSet<URI>();<NEW_LINE>for (StatementPatternNode sp : statementPatterns.values()) {<NEW_LINE>final URI uri = (URI) (sp.p()).getValue();<NEW_LINE>if (!uris.add(ur...
throw new FulltextSearchException(FulltextSearchException.NO_QUERY_SPECIFIED);
192,473
public void onEvent(EntityEvent entityEvent) {<NEW_LINE>if (entityEvent instanceof MouseEntityEvent && entityEvent.getTarget() == this) {<NEW_LINE>MouseEntityEvent mouseShapeEvent = (MouseEntityEvent) entityEvent;<NEW_LINE>Point2D mousePosition = mouseShapeEvent.getCurrentMousePosition();<NEW_LINE>Entity target = getSe...
startRotation + target.getRotation());
515,006
final DeleteWorkerBlockResult executeDeleteWorkerBlock(DeleteWorkerBlockRequest deleteWorkerBlockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorkerBlockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteWorkerBlock");
399,284
private void selectFile(JTextField textField) {<NEW_LINE>String filePath = textField.getText();<NEW_LINE>String lastDir = "";<NEW_LINE>String fileName = "";<NEW_LINE>if (StringUtils.isValidString(filePath)) {<NEW_LINE>File f = new File(filePath);<NEW_LINE>lastDir = f.getParent();<NEW_LINE>fileName = f.getName();<NEW_LI...
i = name.indexOf('.');
1,609,964
private JButton createMoveButton(final String elementName) {<NEW_LINE>JButton btnMove = TranslatedElementFactory.<MASK><NEW_LINE>btnMove.addActionListener(new ActionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>Vector<String> items = new Vector<>(collection.get...
createButtonWithIcon(elementName + ".move.icon", "collection.move");
696,957
public static byte[] hexStringToByteArray(String hexEncodedBinary) {<NEW_LINE>if (hexEncodedBinary.length() % 2 == 0) {<NEW_LINE>char[] sc = hexEncodedBinary.toCharArray();<NEW_LINE>byte[] ba = new byte[sc.length / 2];<NEW_LINE>for (int i = 0; i < ba.length; i++) {<NEW_LINE>int nibble0 = Character.digit(sc<MASK><NEW_LI...
[i * 2], 16);
1,581,804
private List<CdoSnapshot> applyQueryParams(List<CdoSnapshot> snapshots, final QueryParams queryParams) {<NEW_LINE>if (queryParams.commitIds().size() > 0) {<NEW_LINE>snapshots = filterSnapshotsByCommitIds(snapshots, queryParams.commitIds());<NEW_LINE>}<NEW_LINE>if (queryParams.toCommitId().isPresent()) {<NEW_LINE>snapsh...
snapshots, queryParams.commitProperties());
1,586,318
// --- Implement IUpdatableModule: ---<NEW_LINE>@Override<NEW_LINE>public void addReads(char[] requiredModuleName) {<NEW_LINE>ModuleBinding requiredModule = this.environment.getModule(requiredModuleName);<NEW_LINE>if (requiredModule != null) {<NEW_LINE>int len = this.requires.length;<NEW_LINE>if (len == 0) {<NEW_LINE>...
+ 1], 0, len);
1,206,560
// TODO: Bacon: Maybe use .jsonSerialize() instead<NEW_LINE>static Bundle tokenResponseNativeToJSON(TokenResponse response) {<NEW_LINE>Bundle map = new Bundle();<NEW_LINE>// (RFC 6749), Section 4.1.4<NEW_LINE>map.putString(AppAuthConstants.Props.TOKEN_TYPE, response.tokenType);<NEW_LINE>// nullable | (RFC 6749), Sectio...
Props.ACCESS_TOKEN, response.accessToken);
895,527
private void extractObjects(String s) {<NEW_LINE>int instanceIdx = s.indexOf(INSTANCE_LINK_PREFIX);<NEW_LINE>int classIdx = instanceIdx != -1 ? -<MASK><NEW_LINE>while (instanceIdx != -1 || classIdx != -1) {<NEW_LINE>if (instanceIdx != -1) {<NEW_LINE>s = s.substring(instanceIdx + INSTANCE_LINK_PREFIX.length());<NEW_LINE...
1 : s.indexOf(CLASS_LINK_PREFIX);
789,850
private static void partitionCommandLineArgs(List<String> cmdLine, ImmutableList.Builder<String> defaultOverridesAndRcSources, ImmutableList.Builder<String> remainingCmdLine) {<NEW_LINE>Iterator<String<MASK><NEW_LINE>while (cmdLineIterator.hasNext()) {<NEW_LINE>String option = cmdLineIterator.next();<NEW_LINE>if (optio...
> cmdLineIterator = cmdLine.iterator();
289,909
protected char processReadChar(char c) throws IOException {<NEW_LINE>if (c == PATTERN_CHAR) {<NEW_LINE>char[<MASK><NEW_LINE>r[0] = next < length ? source.charAt(next) : 0;<NEW_LINE>r[1] = next + 1 < length ? source.charAt(next + 1) : 0;<NEW_LINE>switch(maskPos) {<NEW_LINE>case 0:<NEW_LINE>if (r[0] == PATTERN_CHAR && r[...
] r = new char[2];
1,456,546
static boolean hasOtherMethodChoices(final PwmRequestContext pwmRequestContext, final ForgottenPasswordBean forgottenPasswordBean, final IdentityVerificationMethod thisMethod) {<NEW_LINE>if (forgottenPasswordBean.getRecoveryFlags().getRequiredAuthMethods().contains(thisMethod)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_L...
ForgottenPasswordUtil.figureRemainingAvailableOptionalAuthMethods(pwmRequestContext, forgottenPasswordBean);
1,598,196
private void logConnectionPoolBusy(ConnectionPoolBusyInfo info, long waitMillis, int connectionFlags) {<NEW_LINE>StringBuilder msg = new StringBuilder();<NEW_LINE>if (waitMillis != 0) {<NEW_LINE>final Thread thread = Thread.currentThread();<NEW_LINE>msg.append("The connection pool for database '").append(info.label);<N...
.activeConnections).append(" active, ");
35,672
private String downloadReal(String url) {<NEW_LINE>JavaHttpClient client = null;<NEW_LINE>File tmpFile = new File(Config.getInstance().getTemporaryFolder(), UUID.randomUUID().toString());<NEW_LINE>FileOutputStream out = null;<NEW_LINE>try {<NEW_LINE>client = new JavaHttpClient(url);<NEW_LINE>client.setFollowRedirect(tr...
int resp = client.getStatusCode();
511,088
public com.amazonaws.services.codecommit.model.RepositoryTriggerDestinationArnRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.RepositoryTriggerDestinationArnRequiredException repositoryTriggerDestinationArnRequiredException = n...
int originalDepth = context.getCurrentDepth();
898,407
public List<Feature> bind(StructType schema) {<NEW_LINE>List<Feature> features = new ArrayList<>();<NEW_LINE>for (Feature feature : x.bind(schema)) {<NEW_LINE>StructField xfield = feature.field();<NEW_LINE>DataType type = xfield.type;<NEW_LINE>if (!(type.isInt() || type.isShort() || type.isByte())) {<NEW_LINE>throw new...
("Invalid expression: %s(%s)", name, type));
1,082,797
private void checkTokens() throws IOException {<NEW_LINE>while (true) {<NEW_LINE>JsonToken token = parser.nextToken();<NEW_LINE>if (token == null || token == JsonToken.NOT_AVAILABLE) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>String field = currentField;<NEW_LINE>currentField = null;<NEW_LINE>JsonEventImpl event;<NEW_LINE>s...
JsonEventType.START_ARRAY, field, null);
1,701,158
private void generateSet(GeneratorContext context, SourceWriter writer) throws IOException {<NEW_LINE>String <MASK><NEW_LINE>String item = context.getParameterName(3);<NEW_LINE>writer.append("var type = " + array + ".constructor.$meta.item;").softNewLine();<NEW_LINE>boolean first = true;<NEW_LINE>for (int i = 0; i < pr...
array = context.getParameterName(1);
383,015
private void readTraceStart(ByteBuffer input, boolean withTime) {<NEW_LINE>int numberOfFrames = input.getInt();<NEW_LINE><MASK><NEW_LINE>long timeSec = 0L;<NEW_LINE>long timeNano = 0L;<NEW_LINE>if (withTime) {<NEW_LINE>timeSec = input.getLong();<NEW_LINE>timeNano = input.getLong();<NEW_LINE>}<NEW_LINE>// number of fram...
long threadId = input.getLong();
263,708
public boolean validateAndAddNewBlock(Block block, byte[] nodeId) {<NEW_LINE>if (syncQueue == null)<NEW_LINE>return true;<NEW_LINE>// run basic checks<NEW_LINE>if (!isValid(block.getHeader())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>lastKnownBlockNumber = block.getNumber();<NEW_LINE>// skip too distant blocks<NEW_...
wrappers = new ArrayList<>();
525,909
public DeleteDashboardResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteDashboardResult deleteDashboardResult = new DeleteDashboardResult();<NEW_LINE>deleteDashboardResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW...
JsonToken token = context.getCurrentToken();