idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,340,348
public byte[] decrypt(byte[] encrypt) throws EncryptionServiceException {<NEW_LINE>try {<NEW_LINE>byte[] myNonce = new byte[GCM_IV_NONCE_SIZE_BYTES];<NEW_LINE>byte[] mySalt = new byte[PBKDF2_SALT_SIZE_BYTES];<NEW_LINE>ByteArrayInputStream fileInputStream = new ByteArrayInputStream(encrypt);<NEW_LINE>fileInputStream.rea...
Cipher.DECRYPT_MODE, key, spec);
247,338
public void loadGraphData(final Graph g, final LoadGraphWith loadGraphWith, final Class testClass, final String testName) {<NEW_LINE>if (loadGraphWith != null) {<NEW_LINE>this.createIndices((JanusGraph) g, loadGraphWith.value());<NEW_LINE>} else {<NEW_LINE>if (TransactionTest.class.equals(testClass) && testName.equalsI...
Double.class).make();
597,702
public void updateTourInstanceAssigment(final I_M_DeliveryDay deliveryDay) {<NEW_LINE>final ITourInstanceDAO tourInstanceDAO = <MASK><NEW_LINE>//<NEW_LINE>// Case: Tour Instance Assignment Required<NEW_LINE>final boolean tourInstanceAssignmentRequired = isTourInstanceAssignmentRequired(deliveryDay);<NEW_LINE>if (tourIn...
Services.get(ITourInstanceDAO.class);
808,669
private Task<Void> createRequestHandlingTask(final String id, final RestRequest envelopeRequest, final RequestContext requestContext, final IndividualRequest individualRequest, final IndividualResponseMap individualResponses, final Map<String, HttpCookie> responseCookies) {<NEW_LINE>final RequestSanitizationTask reques...
id, envelopeRequest, _errorResponseBuilder, requestFilterTask);
816,750
public List<DataPointGroup> group(List<GroupBy> groupBys, List<DataPointGroup> dataPointGroupList) throws IOException {<NEW_LINE>if (groupBys.size() < 1)<NEW_LINE>return dataPointGroupList;<NEW_LINE>List<DataPointGroup> dataPointGroups = new ArrayList<DataPointGroup>();<NEW_LINE>for (DataPointGroup dataPointGroup : dat...
addGroupByResults(dataPointGroup.getGroupByResult());
530,853
private Optional<TimeNode> generateDayCandidatesUsingDoY(final ZonedDateTime reference) {<NEW_LINE>final int year = reference.getYear();<NEW_LINE>final int month = reference.getMonthValue();<NEW_LINE>final LocalDate date = LocalDate.of(year, 1, 1);<NEW_LINE>final int lengthOfYear = date.lengthOfYear();<NEW_LINE>final L...
1, 1).getDayOfYear();
1,066,705
public int onUpdate(int type) {<NEW_LINE>if (type == Level.BLOCK_UPDATE_NORMAL) {<NEW_LINE>int[] faces = new int[] { 3, 4, 2, 5, 3, 4, 2, 5, <MASK><NEW_LINE>Block side = this.getSide(BlockFace.fromIndex(faces[this.getDamage()]));<NEW_LINE>if (side.getId() != Block.WOOD && side.getDamage() != BlockWood.JUNGLE) {<NEW_LIN...
3, 4, 2, 5 };
236,896
synchronized void addStreamSubscription(final Subscription sub) {<NEW_LINE>List<String> streams = sanitizeStreamSubjects(sub.getSubjects());<NEW_LINE>LOG.info("adding subscription {} with streams {}", sub, streams);<NEW_LINE>handleDuplicateSubscriptionId(sub);<NEW_LINE>for (String stream : streams) {<NEW_LINE>streamSub...
set((double) numSubs));
568,291
private static XmlElement parse(XMLStreamReader reader, String refAttr, Map<String, XmlElement> refs) {<NEW_LINE>try {<NEW_LINE>// parse start element<NEW_LINE>String elementName = parseElementName(reader);<NEW_LINE>ImmutableMap<String, String> attrs = parseAttributes(reader);<NEW_LINE>// parse children or content<NEW_...
> children = childBuilder.build();
715,442
public static Query evaluate(final HttpServletRequest request) {<NEW_LINE>// set character encoding before any request is made<NEW_LINE>try {<NEW_LINE>request.setCharacterEncoding("UTF-8");<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>}<NEW_LINE>String path = request.getServletPath();<NEW_LINE>Map<Strin...
, httpport, httpsport, peername));
21,591
private NavigableMap<Long, File> cycleTree(final boolean force) {<NEW_LINE>final File parentFile = path;<NEW_LINE>// use pre-calculated result in case where queue dir existed when StoreSupplier was constructed<NEW_LINE>if (!queuePathExists && !parentFile.exists())<NEW_LINE>throw new IllegalStateException("parentFile=" ...
= new CachedCycleTree(directoryModCount, tree);
351,392
public Explanation explain(LeafReaderContext context, int doc) throws IOException {<NEW_LINE>Explanation scoreExplanation = inner.explain(context, doc);<NEW_LINE>if (scoreExplanation.isMatch() == false) {<NEW_LINE>return scoreExplanation;<NEW_LINE>}<NEW_LINE>Scorer scorer = inner.scorer(context);<NEW_LINE>DoubleValues ...
toString() + "), result of:", expl);
315,218
public <T extends Metric> T register(Metadata metadata, T metric, Tag... tags) throws IllegalArgumentException {<NEW_LINE>if (metadataMID.keySet().contains(metadata.getName())) {<NEW_LINE>Metadata existingMetadata = metadataMID.get(metadata.getName());<NEW_LINE>if (!metadata.equals(existingMetadata)) {<NEW_LINE>throw n...
MetricID.getTagsAsString() + " already exists");
149,406
private void updateButtonColor(final Display display, int[] rgb) {<NEW_LINE>boolean needRelayout;<NEW_LINE>Image oldImg = img;<NEW_LINE>if (rgb != null && rgb.length > 2 && rgb[0] >= 0 && rgb[1] >= 0 && rgb[2] >= 0) {<NEW_LINE>needRelayout = oldImg == null;<NEW_LINE>boolean showHexCode = Utils.getUserMode() > Parameter...
int w = showHexCode ? h : 25;
1,489,274
public static void removeMethodFinalModifier(final Method method) {<NEW_LINE>// From Apache: FieldUtils.removeFinalModifier()<NEW_LINE>try {<NEW_LINE>if (Modifier.isFinal(method.getModifiers())) {<NEW_LINE>// Do all JREs implement Field with a private ivar called "modifiers"?<NEW_LINE>final Field modifiersField = Field...
doForceAccess = !modifiersField.isAccessible();
244,019
public Map<Shape, String> drawObject(Element e, double x, double y, double width, double height, OutputDevice outputDevice, RenderingContext ctx, int dotsPerPixel) {<NEW_LINE>if (!(outputDevice instanceof PdfBoxOutputDevice))<NEW_LINE>return null;<NEW_LINE>PdfBoxOutputDevice pdfBoxOutputDevice = (PdfBoxOutputDevice) ou...
.getBytes(StandardCharsets.US_ASCII));
647,448
private boolean tryToShowPromoAfterBooking() {<NEW_LINE>NetworkPolicy policy = NetworkPolicy.newInstance(NetworkPolicy.getCurrentNetworkUsageStatus());<NEW_LINE>PromoAfterBooking promo = Promo.nativeGetPromoAfterBooking(policy);<NEW_LINE>if (promo == null)<NEW_LINE>return false;<NEW_LINE>String dialogName = PromoBookin...
EXTRA_CITY_IMAGE_URL, promo.getImageUrl());
1,779,350
private Path localizeGencodeTranscriptFastaFile(final Path gencodeTranscriptFastaFilePath) {<NEW_LINE>// Is the path local or in the cloud:<NEW_LINE>if (gencodeTranscriptFastaFilePath.getFileSystem().equals(FileSystems.getDefault())) {<NEW_LINE>// local path, just return it:<NEW_LINE>return gencodeTranscriptFastaFilePa...
tmpDirPath.resolve(LOCAL_GENCODE_TRANSCRIPT_FILE_BASE_NAME + ".fa");
1,630,227
private void allocateColorWarning() {<NEW_LINE>if (display == null || display.isDisposed())<NEW_LINE>return;<NEW_LINE>Utils.execSWTThread(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>Color colorTables = Colors.getSystemColor(display, SWT.COLOR_LIST_BACKGROUND);<NEW_LINE>H...
160 ? 10 : -10));
24,053
public static GrayU8 localGaussian(GrayU8 input, GrayU8 output, ConfigLength width, float scale, boolean down, GrayU8 storage1, GrayU8 storage2) {<NEW_LINE>int radius = width.computeI(Math.min(input.width, input.height)) / 2;<NEW_LINE>GrayU8 blur = storage1;<NEW_LINE>BlurImageOps.gaussian(input, blur, -1, radius, stora...
.startIndex + y * output.stride;
1,599,572
public static ListLocationResponse unmarshall(ListLocationResponse listLocationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLocationResponse.setRequestId(_ctx.stringValue("ListLocationResponse.RequestId"));<NEW_LINE>listLocationResponse.setErrorCode(_ctx.stringValue("ListLocationResponse.ErrorCode"));<NEW_LINE>li...
+ "].Points[" + k + "].X"));
1,355,588
private void formulateFolders() {<NEW_LINE>systemDir = addHomeDir(systemDir);<NEW_LINE>schemaDir = addHomeDir(schemaDir);<NEW_LINE>syncDir = addHomeDir(syncDir);<NEW_LINE>tracingDir = addHomeDir(tracingDir);<NEW_LINE>walDir = addHomeDir(walDir);<NEW_LINE>indexRootFolder = addHomeDir(indexRootFolder);<NEW_LINE>extDir = ...
File.separatorChar + dataDirs[i];
484,774
public void build(VBox box) {<NEW_LINE>Button addNew = button().withText("Add New Button").build();<NEW_LINE>HBox container = hbox().withPreferredSize(box.getContentSize().minus(Size.create(1, 2))).withComponentRenderer(new NoOpComponentRenderer<>()).<MASK><NEW_LINE>VBox defaultBox = vbox().withPreferredSize(container....
withSpacing(1).build();
1,168,659
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) {<NEW_LINE>switch(method) {<NEW_LINE>case NEW_MUTABLE_INSTANCE:<NEW_LINE>{<NEW_LINE>return new org.bitcoinj.wallet.Protos.Tag();<NEW_LINE>}<NEW_LINE>case NEW_BUILD...
newMessageInfo(DEFAULT_INSTANCE, info, objects);
882,025
public static Vector3f calculateTangent(Vector3f[] v, Vector2f[] t, Vector3f tangent, Vector3f binormal) {<NEW_LINE>// y=0<NEW_LINE>Vector3f edge1 = new Vector3f();<NEW_LINE>// x=0<NEW_LINE>Vector3f edge2 = new Vector3f();<NEW_LINE>// y=0<NEW_LINE>Vector2f edge1uv = new Vector2f();<NEW_LINE>// x=0<NEW_LINE>Vector2f edg...
x * edge2.z) * factor;
1,414,818
public void load(SerializedField metadata, DrillBuf buffer) {<NEW_LINE>List<SerializedField> children = metadata.getChildList();<NEW_LINE>SerializedField offsetField = children.get(0);<NEW_LINE>offsets.load(offsetField, buffer);<NEW_LINE>int bufOffset = offsetField.getBufferLength();<NEW_LINE>for (int i = 1; i < childr...
fieldDef.getName(), vector);
628,964
public PacketExistingItemFilterSnapshot onMessage(PacketExistingItemFilterSnapshot message, MessageContext ctx) {<NEW_LINE>ITileFilterContainer filterContainer = message.getFilterContainer(ctx);<NEW_LINE>if (filterContainer == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final IFilter filter = filterContainer.getF...
final ExistingItemFilter existingItemFilter = (ExistingItemFilter) filter;
1,298,997
public APLExplanation results() throws Exception {<NEW_LINE>Map<String, Schema.ColType> colTypes = getColTypes();<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>final List<String> requiredColumns <MASK><NEW_LINE>requiredColumns.add(countColumn);<NEW_LINE>metric.ifPresent(requiredColumns::add);<NEW_LINE>...
= new ArrayList<>(attributes);
663,543
public static InFlightShardSnapshotStates forEntries(List<SnapshotsInProgress.Entry> snapshots) {<NEW_LINE>if (snapshots.isEmpty()) {<NEW_LINE>return EMPTY;<NEW_LINE>}<NEW_LINE>final Map<String, Map<Integer, ShardGeneration>> generations = new HashMap<>();<NEW_LINE>final Map<String, Set<Integer>> busyIds = new HashMap<...
), sid.indexName());
645,309
public ActionResponse download(final String id) {<NEW_LINE>final String[] values = decodeId(id);<NEW_LINE>if (StringUtil.isEmpty(values[1])) {<NEW_LINE>throwValidationError(messages -> messages.addErrorsStorageFileNotFound(GLOBAL), () -> asListHtml(encodeId<MASK><NEW_LINE>}<NEW_LINE>final StreamResponse response = new ...
(values[0])));
1,157,709
private static Pair<Boolean, File> checkLocale(Locale l) {<NEW_LINE>if (Arrays.asList(DateFormat.getAvailableLocales()).contains(l)) {<NEW_LINE>return Pair.<MASK><NEW_LINE>}<NEW_LINE>File extDir = getExtDir();<NEW_LINE>if (!extDir.exists()) {<NEW_LINE>return Pair.create(Boolean.FALSE, null);<NEW_LINE>}<NEW_LINE>if (!ex...
create(Boolean.TRUE, null);
962,788
final GetServiceLastAccessedDetailsWithEntitiesResult executeGetServiceLastAccessedDetailsWithEntities(GetServiceLastAccessedDetailsWithEntitiesRequest getServiceLastAccessedDetailsWithEntitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceLastAccessedDetailsWithEntitiesRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IAM");
1,085,727
private Mono<Response<Void>> deleteWithResponseAsync(String ruleId, String workspaceId, String resourceId) {<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>}<NEW_LINE>if (ruleId =...
error(new IllegalArgumentException("Parameter resourceId is required and cannot be null."));
1,630,296
protected SelectItem createSelectItem(FacesContext context, UISelectItems uiSelectItems, Object value, Object label) {<NEW_LINE>String var = (String) uiSelectItems.getAttributes().get("var");<NEW_LINE>Map<String, Object> attrs = uiSelectItems.getAttributes();<NEW_LINE>Map<String, Object> requestMap = context.getExterna...
parseBoolean(itemEscaped.toString());
1,470,191
private Table buildTable(RestRequest req, GetSnapshotsResponse getSnapshotsResponse) {<NEW_LINE>Table table = getTableWithHeader(req);<NEW_LINE>if (getSnapshotsResponse.isFailed()) {<NEW_LINE>ElasticsearchException causes = null;<NEW_LINE>for (ElasticsearchException e : getSnapshotsResponse.getFailures().values()) {<NE...
addCell(snapshotStatus.successfulShards());
535,273
public RubyDate marshal_load(ThreadContext context, IRubyObject a) {<NEW_LINE>checkFrozen();<NEW_LINE>if (!(a instanceof RubyArray)) {<NEW_LINE>throw context.runtime.newTypeError("expected an array");<NEW_LINE>}<NEW_LINE>final RubyArray ary = (RubyArray) a;<NEW_LINE>IRubyObject ajd, of, sg;<NEW_LINE>switch(ary.size()) ...
of = ary.eltInternal(4);
1,110,098
private void restore(final IndexShard indexShard, final Repository repository, final SnapshotRecoverySource restoreSource) {<NEW_LINE>final RecoveryState.Translog translogState = indexShard.recoveryState().getTranslog();<NEW_LINE>if (restoreSource == null) {<NEW_LINE>throw new IndexShardRestoreFailedException(shardId, ...
.shardRouting.primary() : "only primary shards can recover from store";
246,624
final CreateAssessmentTemplateResult executeCreateAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssessmentTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(createAssessmentTemplateRequest));
1,196,674
static void createSymbolMapFiles(FilesFacade ff, MemoryMA mem, Path path, CharSequence columnName, long columnNameTxn, int symbolCapacity, boolean symbolCacheFlag) {<NEW_LINE>int plen = path.length();<NEW_LINE>try {<NEW_LINE>mem.wholeFile(ff, offsetFileName(path.trimTo(plen), columnName, columnNameTxn), MemoryTag.MMAP_...
plen), columnName, columnNameTxn));
71,702
public Stream<? extends Arguments> provideArguments(ExtensionContext context) {<NEW_LINE>Method testMethod = context.getRequiredTestMethod();<NEW_LINE>Class<?>[] parameterTypes = testMethod.getParameterTypes();<NEW_LINE>Preconditions.condition(parameterTypes.length > 0, () -> String.format("@EmptySource cannot provide ...
, testMethod.toGenericString()));
373,560
// This tries to build a private channel instance through an arbitrary message object<NEW_LINE>private PrivateChannel createPrivateChannelByMessage(DataObject message) {<NEW_LINE>final long <MASK><NEW_LINE>final DataObject author = message.getObject("author");<NEW_LINE>final long authorId = author.getLong("id");<NEW_LI...
channelId = message.getLong("channel_id");
1,437,044
public static void execute(ManagerConnection c) {<NEW_LINE>ByteBufferHolder buffer = c.allocate();<NEW_LINE>IPacketOutputProxy proxy = PacketOutputProxyFactory.getInstance().createProxy(c, buffer);<NEW_LINE>proxy.packetBegin();<NEW_LINE>// write header<NEW_LINE><MASK><NEW_LINE>// write fields<NEW_LINE>for (FieldPacket ...
proxy = header.write(proxy);
53,213
public Response harvestingClient(@PathParam("nickName") String nickName, @QueryParam("key") String apiKey) throws IOException {<NEW_LINE>HarvestingClient harvestingClient = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (Exception ex) {<NEW_LINE>logger.warning("Exception caught looking up harvesting client " + n...
harvestingClient = harvestingClientService.findByNickname(nickName);
174,107
public static void main(String[] args) {<NEW_LINE>Map<String, Object> kafkaConsumerConfig = new HashMap<>();<NEW_LINE>kafkaConsumerConfig.<MASK><NEW_LINE>kafkaConsumerConfig.put(ConsumerConfig.GROUP_ID_CONFIG, "sample-kafka-spout");<NEW_LINE>kafkaConsumerConfig.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, "org.apa...
put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
298,060
public void paint(Graphics g) {<NEW_LINE>super.paint(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>g2d.setColor(GuiBase.getTextColor());<NEW_LINE>centerX = (int) (getWidth() / 2);<NEW_LINE>centerY = (int) (getHeight() / 2);<NEW_LINE>// paints a coordinate system and draws a circle<NEW_LINE>// around the zero p...
(1.5 * RADIUS), centerY);
1,250,933
private static boolean shouldFullUnroll(OptionValues options, LoopEx loop) {<NEW_LINE>if (!loop.isCounted() || !loop.counted().isConstantMaxTripCount()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>CountedLoopInfo counted = loop.counted();<NEW_LINE>long maxTrips = counted.constantMaxTripCount().asLong();<NEW_LINE>int m...
return (loops - ifs == 0);
1,143,324
public void handleMessage(Message msg) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>AbstractList<String> requestedDownloads = (AbstractList<String>) msg.obj;<NEW_LINE>if (msg.obj != null) {<NEW_LINE>Iterator<String> it = requestedDownloads.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String next = it.next...
TAG, "Stopping after command with id " + msg.arg1);
1,305,424
/*@Override<NEW_LINE>public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack)<NEW_LINE>{<NEW_LINE>Multimap multimap = super.getAttributeModifiers(slot, stack);<NEW_LINE>if(slot == EntityEquipmentSlot.MAINHAND)<NEW_LINE>{<NEW_LINE>float dmg = 5 + ItemNBTHelper.getFloat(stack, "fallDamageBoost");<...
>(InteractionResult.SUCCESS, stack);
16,786
void checkAgainstNullAnnotation(BlockScope scope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>int nullStatus = this.expression.nullStatus(flowInfo, flowContext);<NEW_LINE>long tagBits;<NEW_LINE>MethodBinding methodBinding = null;<NEW_LINE>boolean useTypeAnnotations = scope.environment().usesNullTypeAnnotatio...
.methodScope().referenceMethodBinding();
506,752
public List<String> listFunctions(final String tenant, final String namespace, final String clientRole, final AuthenticationDataSource clientAuthenticationDataHttps) {<NEW_LINE>if (!isWorkerServiceAvailable()) {<NEW_LINE>throwUnavailableException();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!isAuthorizedRole(tenant, names...
functionMetaDataManager.listFunctions(tenant, namespace);
1,691,647
private static int compareComplexId(String id1, String id2) {<NEW_LINE>// NOI18<NEW_LINE>int <MASK><NEW_LINE>// NOI18<NEW_LINE>int dividerIndex2 = id2.lastIndexOf("-");<NEW_LINE>if (dividerIndex1 == -1 || dividerIndex2 == -1) {<NEW_LINE>DashboardViewer.LOG.log(Level.WARNING, "Unsupported ID format - id1: {0}, id2: {1}"...
dividerIndex1 = id1.lastIndexOf("-");
579,390
private DeferredResult<ResponseEntity> saveAttributes(TenantId srcTenantId, EntityId entityIdSrc, String scope, JsonNode json) throws ThingsboardException {<NEW_LINE>if (!DataConstants.SERVER_SCOPE.equals(scope) && !DataConstants.SHARED_SCOPE.equals(scope)) {<NEW_LINE>return getImmediateDeferredResult("Invalid scope: "...
entityId, scope, attributes, t);
1,271,880
protected void generateExpressionResultCode(BlockScope currentScope, CodeStream codeStream) {<NEW_LINE>SwitchExpression se = this.switchExpression;<NEW_LINE>if (se != null && se.containsTry && se.resolvedType != null) {<NEW_LINE>addSecretYieldResultValue(this.scope);<NEW_LINE>assert this.secretYieldResultValue != null;...
this.secretYieldResultValue.name, 0);
1,646,223
public static int binarySearch(@This Object array, int from, int to, @Self(true) Object key) {<NEW_LINE>Class<?> componentType = array.getClass().getComponentType();<NEW_LINE>if (componentType.isPrimitive()) {<NEW_LINE>switch(componentType.getTypeName()) {<NEW_LINE>case "byte":<NEW_LINE>return Arrays.binarySearch((byte...
array, from, to, key);
1,157,057
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf() || param.getSubSize() < 3) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("Fnper:" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>Object[] resul...
+ mm.getMessage("function.paramTypeError"));
521,967
protected void createUser() {<NEW_LINE>EditUserDialog dialog = new EditUserDialog(gitblit.getProtocolVersion(), gitblit.getSettings());<NEW_LINE>dialog.setLocationRelativeTo(UsersPanel.this);<NEW_LINE>dialog.setUsers(gitblit.getUsers());<NEW_LINE>dialog.setRepositories(gitblit.getRepositories(), null);<NEW_LINE>dialog....
gitblit.getTeams(), null);
809,355
public static TriState doException(GraalJSException receiver, GraalJSException other, @CachedLibrary(limit = "InteropLibraryLimit") @Shared("thisLib") InteropLibrary thisLib, @CachedLibrary(limit = "InteropLibraryLimit") @Shared("otherLib") InteropLibrary otherLib) {<NEW_LINE>if (receiver == other) {<NEW_LINE>return Tr...
Object thisObj = receiver.getErrorObjectLazy();
593,779
private void createGetElementPointerExpression(RecordBuffer buffer) {<NEW_LINE>int opCode = buffer.getId();<NEW_LINE>if (opCode == CONSTANT_CE_GEP_WITH_INRANGE_INDEX || buffer.size() % 2 != 0) {<NEW_LINE>// type of pointee<NEW_LINE>buffer.skip();<NEW_LINE>}<NEW_LINE>boolean isInbounds;<NEW_LINE>if (opCode == CONSTANT_C...
, indices, isInbounds), type);
688,501
public synchronized PinotResourceManagerResponse deleteSegments(String tableNameWithType, List<String> segmentNames, @Nullable String retentionPeriod) {<NEW_LINE>try {<NEW_LINE>LOGGER.info("Trying to delete segments: {} from table: {} ", segmentNames, tableNameWithType);<NEW_LINE>Preconditions.checkArgument(TableNameBu...
(tableNameWithType), "Table name: %s is not a valid table name with type suffix", tableNameWithType);
640,920
byte[] transformWithProbes(Class<?> clazz, @Sensitive byte[] classfileBuffer) {<NEW_LINE>Set<ProbeListener> listeners = probeManagerImpl.getInterestedByClass(clazz);<NEW_LINE>if (listeners.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// reader --> serial version uid adder --> process candidate hook adapter --...
stringWriter, writer.toByteArray());
1,720,190
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.ObjectReference monitor(com.sun.jdi.event.MonitorContendedEnteredEvent a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (or...
jpda.jdi.VMDisconnectedExceptionWrapper(ex);
869,872
public void read(org.apache.thrift.protocol.TProtocol iprot, removeSpecNimbus_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type ...
skip(iprot, schemeField.type);
922,721
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, BigIntPrototype builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case toLocaleString:<NEW_LINE>if (context.isOptionIntl402()) {<NEW_LINE>return JSBigIntToLocaleStringIntlNodeGen.create(context, builtin, args()....
().createArgumentNodes(context));
1,543,640
public void handleUpdate(State state) {<NEW_LINE>Thing thing = thingProvider.apply(link.<MASK><NEW_LINE>if (thing != null) {<NEW_LINE>final ThingHandler handler = thing.getHandler();<NEW_LINE>if (handler != null) {<NEW_LINE>if (ThingHandlerHelper.isHandlerInitialized(thing)) {<NEW_LINE>logger.debug("Delegating update '...
getLinkedUID().getThingUID());
779,275
public BytecodeNode visitConstant(ConstantExpression constant, Context context) {<NEW_LINE>Object value = constant.getValue();<NEW_LINE>Class<?> javaType = constant.getType().getJavaType();<NEW_LINE>BytecodeBlock block = new BytecodeBlock();<NEW_LINE>if (value == null) {<NEW_LINE>return block.comment("constant null").a...
.append(loadConstant(binding));
1,040,640
public IRubyObject op_aref(ThreadContext context, IRubyObject arg) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>if (arg instanceof RubyFixnum) {<NEW_LINE>return op_aref(runtime, RubyNumeric.fix2int((RubyFixnum) arg));<NEW_LINE>} else if (arg instanceof RubyRegexp) {<NEW_LINE>return subpat(context, (RubyRegexp) a...
getString()) : context.nil;
827,826
private List<CountAtBucket> nonZeroBuckets() {<NEW_LINE>List<CountAtBucket> buckets = new ArrayList<>();<NEW_LINE>long zeroSnap = zeros.get();<NEW_LINE>if (zeroSnap > 0) {<NEW_LINE>buckets.add(new CountAtBucket(UPPER_BOUNDS[getRangeIndex(ZERO.bucketIdx, ZERO.offset)], zeroSnap));<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if ...
long lowerSnap = lower.get();
1,370,718
public ResourceId resolve(String other, ResolveOptions resolveOptions) {<NEW_LINE>checkState(isDirectory(), "Expected this resource to be a directory, but was [%s]", toString());<NEW_LINE>if (resolveOptions == ResolveOptions.StandardResolveOptions.RESOLVE_DIRECTORY) {<NEW_LINE>if ("..".equals(other)) {<NEW_LINE>if ("/"...
.format("Unexpected StandardResolveOptions [%s]", resolveOptions));
575,477
final SendEmailResult executeSendEmail(SendEmailRequest sendEmailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendEmailRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
522,666
public void voidInvoice(final UUID invoiceId, final CallContext context) throws InvoiceApiException {<NEW_LINE>final UUID accountId = getInvoiceInternal(invoiceId, context).getAccountId();<NEW_LINE>final WithAccountLock withAccountLock = new WithAccountLock() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterable<Defa...
invoiceId, ObjectType.INVOICE, context);
134,177
private void registerSetting(Setting<?> setting) {<NEW_LINE>if (setting.isFiltered()) {<NEW_LINE>if (settingsFilterPattern.contains(setting.getKey()) == false) {<NEW_LINE>registerSettingsFilter(setting.getKey());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (setting.hasNodeScope() || setting.hasIndexScope()) {<NEW_LINE>if (settin...
setting.getKey() + "] twice");
1,845,181
public void initialize(TemplateWizard wizard) {<NEW_LINE>// NOI18N<NEW_LINE>if (debug)<NEW_LINE>log("initialize");<NEW_LINE>index = 0;<NEW_LINE>// obtaining target folder<NEW_LINE>Project project = Templates.getProject(wizard);<NEW_LINE>DataFolder targetFolder = null;<NEW_LINE>try {<NEW_LINE>targetFolder = wizard.getTa...
(project, sourceGroups, secondPanel));
1,708,886
protected ImageWritable doTransform(ImageWritable image, Random random) {<NEW_LINE>if (image == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Convert image to gray and blur<NEW_LINE>Mat original = converter.convert(image.getFrame());<NEW_LINE>Mat grayed = new Mat();<NEW_LINE>cvtColor(original, grayed, CV_BGR2GRA...
this.mode, this.method);
144,122
public void printJson(JsonWriter writer) throws IOException {<NEW_LINE>List<ConditionalElement<List<String>>> lists = new ArrayList<>(interfaceLists.size());<NEW_LINE>lists.addAll(interfaceLists);<NEW_LINE>lists.sort(ConditionalElement.comparator(ProxyConfiguration::compareList));<NEW_LINE>writer.append('[');<NEW_LINE>...
.unindent().newline();
1,632,934
public void read(org.apache.thrift.protocol.TProtocol prot, reportTabletStatus_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incoming.g...
.trace.thrift.TInfo();
1,056,653
protected Map<String, Collection<Persona>> doInBackground() throws Exception {<NEW_LINE>Map<String, Collection<Persona>> <MASK><NEW_LINE>CommunicationsManager commManager = Case.getCurrentCase().getSleuthkitCase().getCommunicationsManager();<NEW_LINE>List<Account> relatedAccountList = commManager.getAccountsRelatedToAr...
accountMap = new HashMap<>();
888,444
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final DataContext dataContext = e.getDataContext();<NEW_LINE>Project project = e.getProject();<NEW_LINE>FavoritesViewTreeBuilder builder = <MASK><NEW_LINE>if (project == null || builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Object> selection = builde...
dataContext.getData(FavoritesTreeViewPanel.FAVORITES_TREE_BUILDER_KEY);
1,759,776
public void pushValueOntoStack(InstructionAdapter insts) {<NEW_LINE>// The syntax of class names that appear in class file structures differs from the syntax of<NEW_LINE>// class names in source code.<NEW_LINE>// See: https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.2.1<NEW_LINE>final List<String> ...
('.').splitToList(className);
1,035,129
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Add the specified assertion to the given policy version")<NEW_LINE>public Assertion putAssertionPolicyVersion(@Parameter(description = "name of the domain", required = true) @PathParam("domainName") S...
code, e, ResourceError.class);
933,454
public static void annotateBytecodeInAar(ZipFile inputZip, ZipOutputStream zipOS, MethodParamAnnotations nonnullParams, MethodReturnAnnotations nullableReturns, boolean stripJarSignatures, boolean debug) throws IOException {<NEW_LINE>BytecodeAnnotator.debug = debug;<NEW_LINE>LOG(debug, "DEBUG", "nullableReturns: " + nu...
is = inputZip.getInputStream(zipEntry);
1,353,741
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException {<NEW_LINE>AdminUser user = adminRemoteSecurityService.getPersistentAdminUser();<NEW_LINE>if (user != null && user.getLastUsedSandBoxId() != null) {<NEW_LINE>...
requestCache.removeRequest(request, response);
11,234
public void postprocess(IntermediateModel intermediateModel) {<NEW_LINE>if (shapeModifiers == null)<NEW_LINE>return;<NEW_LINE>for (Entry<String, ShapeModifier> entry : shapeModifiers.entrySet()) {<NEW_LINE><MASK><NEW_LINE>ShapeModifier modifier = entry.getValue();<NEW_LINE>if (ALL.equals(key))<NEW_LINE>continue;<NEW_LI...
String key = entry.getKey();
1,148,433
private String computeSHA(PythonEnvironmentBlob blob) throws NoSuchAlgorithmException {<NEW_LINE>var sb = new StringBuilder();<NEW_LINE>final VersionEnvironmentBlob version = blob.getVersion();<NEW_LINE>sb.append("python:");<NEW_LINE>appendVersion(sb, version);<NEW_LINE>var blobNew = AutogenPythonEnvironmentBlob.fromPr...
> constraints = blobNew.getConstraints();
458,732
private void generateStepExecutionEntry(Long executionId, Long dummyTopLevelStepExecId, BatchStatus batchStatus, String exitStatus) throws Exception {<NEW_LINE>long stepExecutionId = -1L;<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>long time = Sys...
statement.setLong(7, 0);
63,388
public com.amazonaws.services.cognitoidentity.model.InvalidIdentityPoolConfigurationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidentity.model.InvalidIdentityPoolConfigurationException invalidIdentityPoolConfigurationException = new com.amaz...
int originalDepth = context.getCurrentDepth();
443,673
protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {<NEW_LINE>if (this.isDeclarationOfReferencedTypesPattern) {<NEW_LINE>if ((element = findElement(element,...
, -1, typeBinding, locator);
678,232
private void configurePluginValidation(Project project, TaskProvider<Task> lifecycleTask, PluginRegistry registry, Map<String, List<File>> jarsByPlugin, Plugin<?> plugin) {<NEW_LINE>Class<?> pluginClass = plugin.getClass();<NEW_LINE>if (isExternal(pluginClass)) {<NEW_LINE>Optional<PluginId> pluginForClass = registry.fi...
lifecycleTask)).add(pluginJar);
1,430,850
private String formatMessage(String msg, JsniRef jsniRef, Object... extraPars) {<NEW_LINE>Object[] formatParameters = new Object[extraPars.length + 7];<NEW_LINE>if (jsniRef != null) {<NEW_LINE>formatParameters[0] = jsniRef.toString();<NEW_LINE>formatParameters[1] = jsniRef.fullClassName();<NEW_LINE>formatParameters[2] ...
3] = jsniRef.memberSignature();
747,666
private void assembleAudit(AuditEvent event) {<NEW_LINE>auditBuffer.append(event.queryId).append("\t");<NEW_LINE>auditBuffer.append(longToTimeString(event.timestamp)).append("\t");<NEW_LINE>auditBuffer.append(event.clientIp).append("\t");<NEW_LINE>auditBuffer.append(event.user).append("\t");<NEW_LINE>auditBuffer.append...
.scanBytes).append("\t");
575,066
protected MatchLocation findMatch(CraftingContainer inv) {<NEW_LINE>List<ItemStack> inputs = new ArrayList<>();<NEW_LINE>int[] slotToInput = new <MASK><NEW_LINE>Arrays.fill(slotToInput, -1);<NEW_LINE>for (int i = 0; i < inv.getContainerSize(); ++i) {<NEW_LINE>ItemStack itemstack = inv.getItem(i);<NEW_LINE>if (!itemstac...
int[inv.getContainerSize()];
1,364,633
final CreateConfigResult executeCreateConfig(CreateConfigRequest createConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateConfigRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,254,675
protected void deleteApplicationConfig() {<NEW_LINE>final ObjectMapper mapper = new ObjectMapper();<NEW_LINE>try {<NEW_LINE>Map<String, Object> systemApiRequest = new HashMap<>();<NEW_LINE>Map<String, Object> detail = new HashMap<>();<NEW_LINE>detail.put("resource", "settings/config");<NEW_LINE>detail.put("method", "DE...
payload = mapper.writeValueAsBytes(systemApiRequest);
1,833,579
public static List<Star> findClosestKStars(Iterator<Star> stars, int k) {<NEW_LINE>// maxHeap to store the closest k stars seen so far.<NEW_LINE>PriorityQueue<Star> maxHeap = new PriorityQueue<>(k, Collections.reverseOrder());<NEW_LINE>while (stars.hasNext()) {<NEW_LINE>// Add each star to the max-heap. If the max-heap...
collect(Collectors.toList());
822,713
void parseStatusParameters() {<NEW_LINE>LOG.info("Received scene register status from: " + MeshAddress.formatAddress(mMessage.getSrc(), true));<NEW_LINE>final ByteBuffer buffer = ByteBuffer.wrap(mParameters).order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>buffer.position(0);<NEW_LINE>mStatus = buffer.get() & 0xFF;<NEW_LINE>mC...
LOG.info("Status: " + mStatus);
750,539
private static FusekiServer buildServer(FusekiServer.Builder builder, ServerConfig serverConfig) {<NEW_LINE>if (serverConfig.jettyConfigFile != null)<NEW_LINE>builder.jettyServerConfig(serverConfig.jettyConfigFile);<NEW_LINE>builder.port(serverConfig.port);<NEW_LINE>builder.loopback(serverConfig.loopback);<NEW_LINE>bui...
("/$/validate/update", new UpdateValidator());
1,201,077
private static TrustManagerFactory initTrustManagerFactory(Map<String, String> props) throws GeneralSecurityException, IOException {<NEW_LINE>TrustManagerFactory tmFactory;<NEW_LINE>String trustAlgorithm = trustAlgorithm(props);<NEW_LINE>String trustStoreType = trustStoreType(props);<NEW_LINE>if ("none".equalsIgnoreCas...
tmFactory = TrustManagerFactory.getInstance(trustAlgorithm);
340,901
public static ListFunctionsResponse unmarshall(ListFunctionsResponse listFunctionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionsResponse.setRequestId<MASK><NEW_LINE>listFunctionsResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionsResponse.HttpStatusCode"));<NEW_LINE>listFunctionsResponse.setSuccess(...
(_ctx.stringValue("ListFunctionsResponse.RequestId"));
535,063
private FlowInfo analyseNullAssertion(BlockScope currentScope, Expression argument, FlowContext flowContext, FlowInfo flowInfo, boolean expectingNull) {<NEW_LINE>int nullStatus = argument.nullStatus(flowInfo, flowContext);<NEW_LINE>boolean willFail = (nullStatus == (expectingNull ? FlowInfo.NON_NULL : FlowInfo.NULL));<...
((Reference) argument, 3);
77,396
protected void updateMovedFolderAssets(Folder theFolder) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>User systemUser;<NEW_LINE>Host newHost;<NEW_LINE>try {<NEW_LINE>systemUser = APILocator.getUserAPI().getSystemUser();<NEW_LINE>newHost = APILocator.getHostAPI().findParentHost(theFolder, ...
setHostId(newHost.getIdentifier());
1,651,814
private void toggleChecklist() {<NEW_LINE>// In case checklist is active a prompt will ask about many options<NEW_LINE>// to decide hot to convert back to simple text<NEW_LINE>if (Boolean.FALSE.equals(noteTmp.isChecklist())) {<NEW_LINE>toggleChecklist2();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If checklist is active b...
.getBoolean(PREF_KEEP_CHECKMARKS, true));