idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,775,191
public Object calculate(Context ctx) {<NEW_LINE>ArrayList<Number> num = new ArrayList<Number>();<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("gcd" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object result = ...
] nums = new Number[k];
170,802
public com.amazonaws.services.kendra.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kendra.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurr...
kendra.model.ResourceNotFoundException(null);
1,454,979
public okhttp3.Call deleteAPILifecycleStatePendingTasksCall(String apiId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/lifecycle-state/pending-tasks".replaceAll("\\{" + "apiId" + "\\}",...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
1,242,933
public static void logAndDie(String message, Throwable thrown, boolean dumpThreads) {<NEW_LINE>boolean shutDownInProgress = alreadyShuttingDown.getAndSet(true);<NEW_LINE>try {<NEW_LINE>if (thrown != null) {<NEW_LINE>log.log(Level.SEVERE, message, thrown);<NEW_LINE>} else {<NEW_LINE>log.<MASK><NEW_LINE>}<NEW_LINE>log.lo...
log(Level.SEVERE, message);
420,921
final DeletePipelineResult executeDeletePipeline(DeletePipelineRequest deletePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeletePipel...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,437,050
public void writeHeaders(final String iContentType, final boolean iKeepAlive) throws IOException {<NEW_LINE>if (getHeaders() != null) {<NEW_LINE>writeLine(getHeaders());<NEW_LINE>}<NEW_LINE>// Set up a date formatter that prints the date in the Http-date format as<NEW_LINE>// per RFC 7231, section 7.1.1.1<NEW_LINE><MAS...
SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz");
674,151
private void locationPermissionGranted() {<NEW_LINE>isPermissionDenied = false;<NEW_LINE>applicationKvStore.putBoolean("doNotAskForLocationPermission", false);<NEW_LINE>lastKnownLocation = locationManager.getLastLocation();<NEW_LINE>fr.free.nrw.commons.location.LatLng target = lastFocusLocation;<NEW_LINE>if (null == la...
(CameraUpdateFactory.newCameraPosition(position));
390,186
public void write(@Nonnull Writer writer, @Nonnull Server server, @Nonnull Query query, @Nonnull Iterable<Result> results) throws IOException {<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>JsonGenerator g = closer.register(jsonFactory.createGenerator(writer));<NEW_LINE>g.writeStartObject();<NEW_LIN...
("value", (Integer) value);
861,644
public ListMilestonesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMilestonesResult listMilestonesResult = new ListMilestonesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
1,092,788
private static HttpUpload createHttpUploader(IParam param, Context ctx) {<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>Object url = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (!(url instanceof String)) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("httpupload" <MASK><NEW_LINE>...
+ mm.getMessage("function.paramTypeError"));
862,380
public static OtpInfo fromJson(String type, JSONObject obj) throws OtpInfoException {<NEW_LINE>OtpInfo info;<NEW_LINE>try {<NEW_LINE>byte[] secret = Base32.decode(obj.getString("secret"));<NEW_LINE>String algo = obj.getString("algo");<NEW_LINE>int digits = obj.getInt("digits");<NEW_LINE>switch(type) {<NEW_LINE>case Tot...
, obj.getInt("period"));
867,666
public int writeUTF8(final CharSequence chars, int off, int len) {<NEW_LINE>// fast path if we fit in the block assuming optimistically for all ASCII<NEW_LINE>if (len > remaining()) {<NEW_LINE>return writeUTF8Slow(chars, off, len);<NEW_LINE>}<NEW_LINE>final Block block = current;<NEW_LINE>int limit = block.limit;<NEW_L...
ch = chars.charAt(off);
1,570,854
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.admin.JsEngineComponent#start(int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(int mode) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "start, mode ", mode);<NEW_LINE>// _eventNotif...
{ _name, "", "start()" });
1,618,599
void tryInitUserObject(CommandLine commandLine) throws Exception {<NEW_LINE>Tracer tracer = commandLine.tracer;<NEW_LINE>if (typeInfo() != null) {<NEW_LINE>tracer.debug("Creating new user object of type %s for group %s%n", typeInfo().getAuxiliaryTypes()[0], synopsis());<NEW_LINE>Object userObject = DefaultFactory.creat...
scope().set(userObject);
1,798,965
public ImmutableAttributes safeConcat(ImmutableAttributes attributes1, ImmutableAttributes attributes2) throws AttributeMergingException {<NEW_LINE>if (attributes1 == ImmutableAttributes.EMPTY) {<NEW_LINE>return attributes2;<NEW_LINE>}<NEW_LINE>if (attributes2 == ImmutableAttributes.EMPTY) {<NEW_LINE>return attributes1...
Object currentAttribute = entry.get();
1,594,851
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>@SuppressLint("InflateParams")<NEW_LINE>final View view;<NEW_LINE>switch(mRequestedProperty) {<NEW_LINE>case ACTIVITIES:<NEW_LINE>case SERVICES:<NEW_LINE>case RECEIVERS:<NEW_LINE>case PROVIDERS:<NEW_LINE>case PERMISSIONS:<NEW_LINE>...
layout.item_text_view, parent, false);
1,368,676
private Object readObject(final DataInputStream stream) throws IOException {<NEW_LINE>final String classType = stream.readUTF();<NEW_LINE>Object value;<NEW_LINE>switch(classType) {<NEW_LINE>case "Boolean":<NEW_LINE>value = stream.readBoolean();<NEW_LINE>break;<NEW_LINE>case "Byte":<NEW_LINE>value = (byte) stream.read()...
throw new IOException("Cannot read type of " + classType);
81,904
public Request decodeRequest(Object packet) throws Exception {<NEW_LINE>Request request = new RpcRequest();<NEW_LINE>DubboPacket dubboPacket = (DubboPacket) packet;<NEW_LINE>request.setCorrelationId(dubboPacket.getHeader().getCorrelationId());<NEW_LINE>// check if it is heartbeat request<NEW_LINE>byte flag = dubboPacke...
setRpcMethodInfo(dubboRequestBody.getRpcMethodInfo());
1,436,255
public static GetDeviceAppUpdateFunnelEventsResponse unmarshall(GetDeviceAppUpdateFunnelEventsResponse getDeviceAppUpdateFunnelEventsResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDeviceAppUpdateFunnelEventsResponse.setRequestId(_ctx.stringValue("GetDeviceAppUpdateFunnelEventsResponse.RequestId"));<NEW_LINE>List<Eve...
("GetDeviceAppUpdateFunnelEventsResponse.EventList[" + i + "].DeviceId"));
83,980
public void handleMetadata(int entityId, EntityType type, Metadata metadata, List<Metadata> metadatas, UserConnection connection) throws Exception {<NEW_LINE>metadata.setMetaType(Types1_16.META_TYPES.byId(metadata.metaType().typeId()));<NEW_LINE>if (metadata.metaType() == Types1_16.META_TYPES.itemType) {<NEW_LINE>proto...
Item) metadata.getValue());
1,615,557
public void writeLayout(DataOutputStream dos) throws IOException {<NEW_LINE>dos.writeInt(LAYOUT_SIGNATURE);<NEW_LINE>dos.writeInt(LAYOUT_VERSION);<NEW_LINE>dos.writeInt(LAYOUT_KEYS);<NEW_LINE>dos.writeInt(keypad.length * 20 + 4);<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < keypad.length; i++) {<NEW_LINE>dos.writeInt(k...
dos.writeInt(keypad.length);
1,220,141
void analyseOneArgument18(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, TypeBinding expectedType, Expression argument, Boolean expectedNonNullness, TypeBinding originalExpected) {<NEW_LINE>if (argument instanceof ConditionalExpression && argument.isPolyExpression()) {<NEW_LINE>// drill into both ...
ce.ifTrueNullStatus, expectedNonNullness, originalExpected);
769,981
public static TransformGroup drawCylinder(double x, double y, double z, double r, double h, String imageURL) {<NEW_LINE>Appearance appearance = createAppearance();<NEW_LINE>// Load an image from the file<NEW_LINE>TextureLoader loader;<NEW_LINE>try {<NEW_LINE>loader = new TextureLoader(imageURL, "RGBA", new Container())...
textureAttributes.setTextureMode(TextureAttributes.REPLACE);
1,437,746
public int[] executeBatch() throws BatchUpdateException {<NEW_LINE>// Check if the batch vector exists<NEW_LINE>if (batch == null)<NEW_LINE>return new int[0];<NEW_LINE>// Else execute one by one SQL request<NEW_LINE>int[] result = new int[batch.size()];<NEW_LINE>// Flag to say if there is a problem<NEW_LINE>boolean err...
throwBatchUpdateException(result, "Batch executes only update statements", 0);
346,967
public static boolean canRefactorSingle(Lookup lookup, boolean notOnlyFile, boolean onlyFromEditor) {<NEW_LINE>Collection<? extends Node> nodes = new HashSet<Node>(lookup<MASK><NEW_LINE>if (nodes.size() != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Node node = nodes.iterator().next();<NEW_LINE>TreePathHandle tph =...
.lookupAll(Node.class));
1,592,636
@SuppressWarnings("unused")<NEW_LINE>public static int onLoad(JNIJavaVM vm, CCharPointer options, @SuppressWarnings("unused") PointerBase reserved) {<NEW_LINE>AgentIsolate.setGlobalIsolate(CurrentIsolate.getIsolate());<NEW_LINE>String optionsString = options.isNonNull(<MASK><NEW_LINE>WordPointer jvmtiPtr = StackValue.g...
) ? fromCString(options) : "";
16,191
public void marshall(WorkflowExecutionContinuedAsNewEventAttributes workflowExecutionContinuedAsNewEventAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workflowExecutionContinuedAsNewEventAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>...
workflowExecutionContinuedAsNewEventAttributes.getDecisionTaskCompletedEventId(), DECISIONTASKCOMPLETEDEVENTID_BINDING);
1,741,553
public ListVerifiedEmailAddressesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListVerifiedEmailAddressesResult listVerifiedEmailAddressesResult = new ListVerifiedEmailAddressesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
int originalDepth = context.getCurrentDepth();
1,804,606
protected StructureElement parseStructureElement(JsonObject object, boolean parsingMethods) throws CommonException {<NEW_LINE>String name = helper.getString(object, "name");<NEW_LINE>String posString = helper.getString(object, "pos");<NEW_LINE>SourceFileLocation elementSourceFileLoc = SourceFileLocation.parseSourceRang...
children = parseElements(methods, true);
591,925
public static void registerRecipeTypes(BiConsumer<RecipeSerializer<?>, ResourceLocation> r) {<NEW_LINE>ResourceLocation id = IElvenTradeRecipe.TYPE_ID;<NEW_LINE>Registry.register(Registry.RECIPE_TYPE, id, ELVEN_TRADE_TYPE);<NEW_LINE>r.accept(ELVEN_TRADE_SERIALIZER, id);<NEW_LINE>r.accept(LEXICON_ELVEN_TRADE_SERIALIZER,...
Registry.RECIPE_TYPE, id, TERRA_PLATE_TYPE);
1,303,290
private long readNote(long offset) throws IOException {<NEW_LINE>_reader.seek(offset);<NEW_LINE>long nameLength = _reader.readInt();<NEW_LINE>long dataSize = _reader.readInt();<NEW_LINE>long type = _reader.readInt();<NEW_LINE>long dataOffset = offset + ELF_NOTE_HEADER_SIZE + padToIntBoundary(nameLength);<NEW_LINE>if (N...
new DataEntry(dataOffset, dataSize));
1,685,845
private EventData traceMessageSpan(EventData eventData) {<NEW_LINE>Optional<Object> eventContextData = eventData.getContext().getData(SPAN_CONTEXT_KEY);<NEW_LINE>if (eventContextData.isPresent()) {<NEW_LINE>// if message has context (in case of retries), don't start a message span or add a new context<NEW_LINE>return e...
eventDiagnosticIdOptional = eventSpanContext.getData(DIAGNOSTIC_ID_KEY);
247,430
private void walkSections() {<NEW_LINE>sections = new ArrayList<Object>();<NEW_LINE>J9JavaStackIterator stacks;<NEW_LINE>try {<NEW_LINE>stacks = J9JavaStackIterator.fromJ9JavaStack(thread.stackObject());<NEW_LINE>} catch (Throwable t) {<NEW_LINE>CorruptData cd = J9DDRDTFJUtils.handleAsCorruptData(DTFJContext.getProcess...
.size().longValue();
173,141
final UpdateMailboxQuotaResult executeUpdateMailboxQuota(UpdateMailboxQuotaRequest updateMailboxQuotaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMailboxQuotaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
828,726
/* Build call for policiesMediationGet */<NEW_LINE>private com.squareup.okhttp.Call policiesMediationGetCall(Integer limit, Integer offset, String query, String accept, String ifNoneMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestList...
String[] localVarAccepts = { "application/json" };
666,264
protected void drawBackground(int x, int y) {<NEW_LINE>RenderUtil.setGLColorFromInt(overlayColor);<NEW_LINE>this.guiBuildCraft.mc.renderEngine.bindTexture(GuiBuildCraft.LEDGER_TEXTURE);<NEW_LINE>this.guiBuildCraft.drawTexturedModalRect(x, y, 0, 256 - currentHeight, 4, currentHeight);<NEW_LINE>this.guiBuildCraft.drawTex...
1.0f, 1.0f, 1.0f, 1.0F);
1,353,492
public List<PrimaryStorageVO> allocatePrimaryStorage(List<SystemTagInventory> tags, List<PrimaryStorageVO> candidates) {<NEW_LINE>for (SystemTagInventory tag : tags) {<NEW_LINE>final String uuid = PrimaryStorageSystemTags.PRIMARY_STORAGE_ALLOCATOR_UUID_TAG.getTokenByTag(tag.getTag(), "uuid");<NEW_LINE>if (uuid != null)...
= new ArrayList<PrimaryStorageVO>();
723,964
public static LogFileKey fromKey(Key key) {<NEW_LINE>var logFileKey = new LogFileKey();<NEW_LINE>byte[] rowParts = key.getRow().getBytes();<NEW_LINE>logFileKey.tabletId = getTabletId(rowParts);<NEW_LINE>logFileKey.seq = getSequence(rowParts);<NEW_LINE>logFileKey.event = LogEvents.valueOf(key.getColumnFamilyData().toStr...
throw new AssertionError("Event in row differs from column family. Key: " + key);
1,259,853
static void fromJSON(final JSONObject json) {<NEW_LINE>if (json != null) {<NEW_LINE>UserData.name = json.optString(NAME_KEY, null);<NEW_LINE>UserData.username = json.optString(USERNAME_KEY, null);<NEW_LINE>UserData.email = json.optString(EMAIL_KEY, null);<NEW_LINE>UserData.org = json.optString(ORG_KEY, null);<NEW_LINE>...
L.w("[ModuleUserProfile] Got exception converting an Custom Json to Custom User data", e);
900,895
public int transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) throws BadBytecode {<NEW_LINE>int c = iterator.byteAt(pos);<NEW_LINE>if (c == GETFIELD || c == GETSTATIC) {<NEW_LINE>int index = <MASK><NEW_LINE>String typedesc = isField(tclazz.getClassPool(), cp, fieldClass, fieldname, isPrivate, index...
iterator.u16bitAt(pos + 1);
46,178
public Object execute(Value... arguments) {<NEW_LINE>if (arguments != null && arguments.length > 0) {<NEW_LINE>Object[] parameters = Arrays.stream(arguments).map(arg -> PolyglotWrapper.unwrap(actionContext, arg)).toArray();<NEW_LINE>if (parameters.length > 0 && parameters[0] != null) {<NEW_LINE>try {<NEW_LINE>if (param...
{ principal, node, permissions });
459,870
private LambdaExpression cachedResolvedCopy(TypeBinding targetType, boolean anyTargetOk, boolean requireExceptionAnalysis, InferenceContext18 context) {<NEW_LINE>targetType = findGroundTargetType(this.enclosingScope, <MASK><NEW_LINE>if (targetType == null)<NEW_LINE>return null;<NEW_LINE>MethodBinding sam = targetType.g...
targetType, targetType, argumentsTypeElided());
1,392,563
public long createFile(String fileName, String keyFile) {<NEW_LINE>// Check to see if this filename is already used<NEW_LINE>Cursor cursor;<NEW_LINE>try {<NEW_LINE>cursor = mDb.query(true, FILE_TABLE, new String[] { KEY_FILE_ID }, KEY_FILE_FILENAME + "=?", new String[] { fileName }, null, null, null, null);<NEW_LINE>} ...
KEY_FILE_UPDATED, System.currentTimeMillis());
704,409
public static RetrieveCallResponse unmarshall(RetrieveCallResponse retrieveCallResponse, UnmarshallerContext _ctx) {<NEW_LINE>retrieveCallResponse.setRequestId(_ctx.stringValue("RetrieveCallResponse.RequestId"));<NEW_LINE>retrieveCallResponse.setCode(_ctx.stringValue("RetrieveCallResponse.Code"));<NEW_LINE>retrieveCall...
(_ctx.longValue("RetrieveCallResponse.Data.UserContext.Reserved"));
992,769
public void write(int b) throws IOException {<NEW_LINE>if (threadLocal == null) {<NEW_LINE>throw new IOException("buffer closed");<NEW_LINE>}<NEW_LINE>if (b == 0)<NEW_LINE>return;<NEW_LINE>if (b == '\n') {<NEW_LINE>// always flush with newlines instead of adding to the buffer<NEW_LINE>flush();<NEW_LINE>return;<NEW_LINE...
Buffer buffer = threadLocal.get();
844,148
private void initView() {<NEW_LINE>setContentView(R.layout.layout_setting_view);<NEW_LINE>View debugContainer = findViewById(R.id.lua_setting_debug);<NEW_LINE>View hotReloadContainer = findViewById(R.id.lua_setting_hr);<NEW_LINE>View serialContainer = findViewById(R.id.lua_setting_serial);<NEW_LINE>etDebugIp = findView...
String s = HotReloadHelper.getSerial();
202,345
final StartRxNormInferenceJobResult executeStartRxNormInferenceJob(StartRxNormInferenceJobRequest startRxNormInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startRxNormInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,067,858
public void fillForeignKeys(EntityType item, String... columnNames) {<NEW_LINE>HashSet<String> columnNameSet = new HashSet<String>(asList(columnNames));<NEW_LINE>boolean fillAll = columnNameSet.isEmpty();<NEW_LINE>FieldSpec<ColumnAnn>[] columnSpecs = ClassSpecRegistry.getTableColumnSpecs(cls);<NEW_LINE>for (FieldSpec<C...
getFieldVal(item, spec.field);
1,779,065
public JsNode transformMethodCall(JMethodCall methodCall) {<NEW_LINE>JMethod method = methodCall.getTarget();<NEW_LINE>if (JProgram.isClinit(method)) {<NEW_LINE><MASK><NEW_LINE>JDeclaredType clinitTarget = type.getClinitTarget();<NEW_LINE>if (clinitTarget == null) {<NEW_LINE>// generate a null expression, which will ge...
JDeclaredType type = method.getEnclosingType();
1,715,155
public void onBrowserEvent(Event event) {<NEW_LINE>super.onBrowserEvent(event);<NEW_LINE>final int <MASK><NEW_LINE>if (type == Event.ONKEYDOWN && shortcutHandler != null) {<NEW_LINE>shortcutHandler.handleKeyboardEvent(event);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (type == Event.ONSCROLL) {<NEW_LINE>int newscrollTop =...
type = DOM.eventGetType(event);
1,637,122
private boolean applyTemplate(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBaseResource theResource) {<NEW_LINE>if (templateDoesntApplyToResource(theTemplate, theResource)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean retVal = false;<NEW_LINE>String resourceName = theFhirContext.getResourceType(...
.code(1865) + e);
1,281,990
public static ListGatewaySlbResponse unmarshall(ListGatewaySlbResponse listGatewaySlbResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGatewaySlbResponse.setRequestId(_ctx.stringValue("ListGatewaySlbResponse.RequestId"));<NEW_LINE>listGatewaySlbResponse.setHttpStatusCode(_ctx.integerValue("ListGatewaySlbResponse.HttpS...
("ListGatewaySlbResponse.Data[" + i + "].GatewaySlbMode"));
824,743
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ftp_dir" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = 0;<NEW_LINE>FtpClientImpl client = null;<NEW_LINE>SFtpClientImpl sclient = null;<NEW_L...
path, patterns, onlyDir, fullPath);
1,790,483
private void loadNode988() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_UnregisterNodesCount, new QualifiedName(0, "UnregisterNodesCount"), new LocalizedText("en", "UnregisterNodesCount"), LocalizedText.NULL_VALUE, UInt...
this.nodeManager.addNode(node);
93,410
private static Object unmapHackImpl() {<NEW_LINE>final Lookup lookup = lookup();<NEW_LINE>try {<NEW_LINE>// *** sun.misc.Unsafe unmapping (Java 9+) ***<NEW_LINE>final Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");<NEW_LINE>// first check if Unsafe has the right method, otherwise we can give up<NEW_LINE>// wit...
return "Unmapping is not supported, because not all required permissions are given to the Lucene JAR file: " + se + " [Please grant at least the following permissions: RuntimePermission(\"accessClassInPackage.sun.misc\") " + " and ReflectPermission(\"suppressAccessChecks\")]";
827,017
@CheckForNull<NEW_LINE>MoveDesc<E> removeAt(int index) {<NEW_LINE>checkPositionIndex(index, size);<NEW_LINE>modCount++;<NEW_LINE>size--;<NEW_LINE>if (size == index) {<NEW_LINE>queue[size] = null;<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>E actualLastElement = elementData(size);<NEW_LINE>int lastElementAt = heapForIndex...
changes = fillHole(index, toTrickle);
208,428
private List<Setup> addPropertySetups(SvnClient client, SVNUrl leftFileUrl, SVNRevision leftRevision, SVNUrl rightFileUrl, SVNRevision rightRevision) throws SVNClientException {<NEW_LINE>List<Setup> propSetups = new ArrayList<>();<NEW_LINE>DiffProvider diffAlgorithm = (DiffProvider) Lookup.getDefault().lookup(DiffProvi...
(leftFileUrl, leftRevision, leftRevision));
386,034
public List<Fix> run(CompilationInfo info, String diagnosticKey, int offset, TreePath treePath, Data<Void> data) {<NEW_LINE>if (KEY_EXTENDS_TO_IMPLEMENTS.equals(diagnosticKey)) {<NEW_LINE>Element wrong = info.<MASK><NEW_LINE>TreePath clazz = findClass(treePath);<NEW_LINE>if (wrong == null || !wrong.getKind().isInterfac...
getTrees().getElement(treePath);
1,355,240
protected Object readValueOfType(byte type, ByteBuffer buffer) {<NEW_LINE>switch(type) {<NEW_LINE>case DATA_TYPE_DATE_TIME:<NEW_LINE>return new Date(buffer.getLong());<NEW_LINE>case DATA_TYPE_TIMESTAMP:<NEW_LINE>return new Timestamp(buffer.getLong(), buffer.getInt());<NEW_LINE>case DATA_TYPE_GEO_POINT:<NEW_LINE>readAli...
(new String[0]));
1,442,676
public Object clone() {<NEW_LINE>Deflate dest = new Deflate(strm);<NEW_LINE>dest.pending_buf = dup(dest.pending_buf);<NEW_LINE>dest.window = dup(dest.window);<NEW_LINE>dest.prev = dup(dest.prev);<NEW_LINE>dest.head = dup(dest.head);<NEW_LINE>dest.dyn_ltree = dup(dest.dyn_ltree);<NEW_LINE>dest.dyn_dtree = dup(dest.dyn_d...
depth = dup(dest.depth);
20,438
public boolean dbNeedsMigration() {<NEW_LINE>final Version dbVersion = Version.valueOf(dbVersionStr);<NEW_LINE>logger.info("AD_System.DBVersion is {}", dbVersion);<NEW_LINE>final Version rolloutVersion = Version.valueOf(rolloutVersionStr);<NEW_LINE><MASK><NEW_LINE>final int comp = dbVersion.compareTo(rolloutVersion);<N...
logger.info("Our own version is {}", rolloutVersion);
769,636
protected int nextSubToken() {<NEW_LINE>skipWhitespace();<NEW_LINE>nullSafe = false;<NEW_LINE>switch(expr[tkStart = cursor]) {<NEW_LINE>case '[':<NEW_LINE>return COL;<NEW_LINE>case '{':<NEW_LINE>if (expr[cursor - 1] == '.') {<NEW_LINE>return WITH;<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case '.':<NEW_LINE>if ((start + 1) !...
CompileException("unexpected end of statement", expr, start);
1,097,309
protected final void copySelfTo(PlanNode to) {<NEW_LINE>to.setAlias(this.alias);<NEW_LINE>to.setDistinct(this.isDistinct);<NEW_LINE>for (Item selected : this.getColumnsSelected()) {<NEW_LINE>Item copySel = selected.cloneStruct();<NEW_LINE>copySel.setItemName(selected.getItemName());<NEW_LINE>copySel.setCharsetIndex(sel...
: this.whereFilter.cloneStruct();
1,788,172
private void handleClientCoreMessage_TemplateChange(Message msg) {<NEW_LINE>SonicUtils.log(TAG, Log.INFO, "handleClientCoreMessage_TemplateChange wasLoadDataInvoked = " + wasLoadDataInvoked.get() + ",msg arg1 = " + msg.arg1);<NEW_LINE>if (wasLoadDataInvoked.get()) {<NEW_LINE>if (TEMPLATE_CHANGE_REFRESH == msg.arg1) {<N...
sessionClient.loadUrl(srcUrl, null);
1,076,624
private void prepareCameraSize(Camera cam, float xMult) {<NEW_LINE>if (environment != null) {<NEW_LINE>if (environment.getApplication() != null) {<NEW_LINE>} else {<NEW_LINE>throw new IllegalStateException("This VR environment is not attached to any application.");<NEW_LINE>}<NEW_LINE>Vector2f size = new Vector2f();<NE...
.getSettings().getHeight();
333,747
Stateful doMultiNewKeyCached(SmallMap state, Object key, Object local_state, Object computation, @Cached("key") Object cachedNewKey, @Cached(value = "state.getKeys()", dimensions = 1) Object[] cachedOldKeys, @Cached("state.indexOf(key)") int index, @Cached(value = "buildNewKeys(cachedNewKey, cachedOldKeys)", dimensions...
(SmallMap) res.getState();
990,533
private void addDemoView(LayoutInflater layoutInflater, ViewGroup demoContainer, Demo demo, boolean isAdditional) {<NEW_LINE>View demoView = layoutInflater.inflate(R.layout.cat_demo_landing_row, demoContainer, false);<NEW_LINE>View rootView = demoView.findViewById(R.id.cat_demo_landing_row_root);<NEW_LINE>TextView titl...
getString(demo.getTitleResId());
370,171
//<NEW_LINE>@Override<NEW_LINE>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>// The in...
entry(this, tc, test);
1,566,966
private void createGot() {<NEW_LINE>if (lastSectionGotEntryAddress == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int size = (int) lastSectionGotEntryAddress.subtract(sectionGotAddress) + 1;<NEW_LINE>String sectionName = relocationTable<MASK><NEW_LINE>String blockName = getSectionGotName();<NEW_LINE>try {<NEW_LINE>Mem...
.getSectionToBeRelocated().getNameAsString();
1,770,212
private void cleanUpDelayMetrics(List<TableConfig> tableConfigs) {<NEW_LINE>Map<String, TableConfig> <MASK><NEW_LINE>for (TableConfig tableConfig : tableConfigs) {<NEW_LINE>tableConfigMap.put(tableConfig.getTableName(), tableConfig);<NEW_LINE>}<NEW_LINE>for (String tableNameWithType : new ArrayList<>(_mergeRollupWaterm...
tableConfigMap = new HashMap<>();
876,295
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_config_file_editor);<NEW_LINE>optionsTextView = (AutoCompleteTextView) findViewById(R.id.optionsTextView);<NEW_LINE>typeTextView = (TextView) findViewById(R.id.typeTextView);<NEW_L...
findViewById(R.id.usageTextView);
1,393,207
public void marshall(AutoScalingSettingsDescription autoScalingSettingsDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (autoScalingSettingsDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
e.getMessage(), e);
687,884
private void loadNode1222() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_HistoryReadCount, new QualifiedName(0, "HistoryReadCount"), new LocalizedText("en", "HistoryReadCount"), LocalizedText.NU...
.expanded(), true));
1,789,936
final ReplicationGroup executeIncreaseReplicaCount(IncreaseReplicaCountRequest increaseReplicaCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(increaseReplicaCountRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<IncreaseReplica...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,297,037
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public CurrencyParameterSensitivities parameterSensitivity(FxForwardSensitivity pointSensitivity) {<NEW_LINE>// use the specified base currency to determine the desired currency pair<NEW_LINE>// then derive sensitiv...
dfCcyBaseAtMaturity = discountFactorsRefBase.discountFactor(referenceDate);
136,305
private void executeBonemeal(@Nonnull BlockPos farmingPos, @Nonnull IBlockState bs) {<NEW_LINE>final IFarmer farmer = getFarmer();<NEW_LINE>if (hasBonemeal() && bonemealCooldown-- <= 0 && random.nextFloat() <= FarmConfig.farmBonemealChance.get() && farmer.checkAction(FarmingAction.FERTILIZE, FarmingTool.HAND)) {<NEW_LI...
final ItemStack fertStack = getStackInSlot(minFirtSlot);
10,157
public MJournal reverseCorrectIt(int GL_JournalBatch_ID) {<NEW_LINE><MASK><NEW_LINE>// Journal<NEW_LINE>MJournal reverse = new MJournal(this);<NEW_LINE>reverse.setGL_JournalBatch_ID(GL_JournalBatch_ID);<NEW_LINE>reverse.setDateDoc(getDateDoc());<NEW_LINE>reverse.setC_Period_ID(getC_Period_ID());<NEW_LINE>reverse.setDat...
log.info(toString());
1,772,633
private void _delete(final List<PartitionSequenceIds> subPartitionIds) {<NEW_LINE>final List<String> paramVariables = subPartitionIds.stream().map(s -> "?").collect(Collectors.toList());<NEW_LINE>final SqlParameterValue[] partIds = subPartitionIds.stream().map(p -> new SqlParameterValue(Types.BIGINT, p.getPartId())).to...
, (Object[]) sdsIds);
1,622,902
public DSLExpression reduce(DSLExpressionReducer reducer) {<NEW_LINE>DSLExpression newReceiver = null;<NEW_LINE>if (receiver != null) {<NEW_LINE>newReceiver = receiver.reduceImpl(reducer);<NEW_LINE>}<NEW_LINE>boolean parameterChanged = false;<NEW_LINE>List<DSLExpression> newParameters = new ArrayList<>();<NEW_LINE>for ...
newParam = param.reduceImpl(reducer);
1,850,287
final DeleteMLTransformResult executeDeleteMLTransform(DeleteMLTransformRequest deleteMLTransformRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMLTransformRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,069,013
public void pullTimeSeriesSchemas(List<PartialPath> prefixPaths, RaftNode ignoredGroup) throws MetadataException {<NEW_LINE>// Remove duplicated prefix paths to optimize<NEW_LINE>Set<PartialPath> prefixPathSet = new HashSet<>(prefixPaths);<NEW_LINE>List<PartialPath> uniquePrefixPaths = new ArrayList<>(prefixPathSet);<N...
PartitionGroup partitionGroup = partitionGroupListEntry.getKey();
1,647,263
public InternalAggregation[] buildAggregations(long[] owningBucketOrds) throws IOException {<NEW_LINE>InternalTimeSeries.InternalBucket[][] allBucketsPerOrd = new InternalTimeSeries.InternalBucket[owningBucketOrds.length][];<NEW_LINE>for (int ordIdx = 0; ordIdx < owningBucketOrds.length; ordIdx++) {<NEW_LINE>BytesRef s...
) -> b.aggregations = a);
1,044,158
public void actionPerformed(ActionEvent evt, JTextComponent target) {<NEW_LINE>if (target != null) {<NEW_LINE>if ((target instanceof JEditorPane) && ((JEditorPane) target).getEditorKit() instanceof SearchNbEditorKit) {<NEW_LINE>target = SearchBar.getInstance().getActualTextComponent();<NEW_LINE>}<NEW_LINE>JPanel jp = n...
target.getClientProperty(SearchNbEditorKit.PROP_SEARCH_CONTAINER);
1,453,364
public Iterable<V> removeGroupReturn(K dependeeGroup) {<NEW_LINE>HashSet<V> combination = new HashSet<V>();<NEW_LINE>Collection<INDArray> g = dependeeGroup.getCollection();<NEW_LINE>for (INDArray arr : g) {<NEW_LINE>if (arr != null) {<NEW_LINE>HashSet<Pair<Long, V>> hashSet = map.get(arr.getId());<NEW_LINE>if (hashSet ...
remove(arr.getId());
1,373,801
public void refresh() {<NEW_LINE>List<GarbageCollectorMXBean> gcBeans = ManagementFactory.getGarbageCollectorMXBeans();<NEW_LINE>try {<NEW_LINE>if (gcBeans != null) {<NEW_LINE>for (GarbageCollectorMXBean gc : gcBeans) {<NEW_LINE>GCMetrics gcMetric = gcMetricsMap.computeIfAbsent(gc.getName()<MASK><NEW_LINE>long newGcTim...
, gcName -> new GCMetrics());
182,229
public void subscribe(CoreSubscriber<? super T> actual) {<NEW_LINE>Publisher<? extends T>[] a = array;<NEW_LINE>int n;<NEW_LINE>if (a == null) {<NEW_LINE>n = 0;<NEW_LINE>a = new Publisher[8];<NEW_LINE>Iterator<? extends Publisher<? extends T>> it;<NEW_LINE>try {<NEW_LINE>it = Objects.requireNonNull(<MASK><NEW_LINE>} ca...
iterable.iterator(), "The iterator returned is null");
1,609,080
public static void readFieldsValue(MapWritable mapWritable, List<Field> fields, List<String> measurementIds) throws InterruptedException {<NEW_LINE>int index = 0;<NEW_LINE>for (Field field : fields) {<NEW_LINE>if (field == null || field.getDataType() == null) {<NEW_LINE>logger.info("Current value is null");<NEW_LINE>ma...
(field.getDoubleV()));
240,779
public void clip(final RenderingBackend.WindingRule windingRule, final com.gargoylesoftware.htmlunit.javascript.host.canvas.Path2D path) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("[" + id_ + "] clip(" + windingRule + ", " + path + ")");<NEW_LINE>}<NEW_LINE>if (path == null && subPaths_.isEmpty()) {<NEW_...
currentPath.setWindingRule(Path2D.WIND_EVEN_ODD);
116,324
private TileSet unmarshalTilesetFile(InputStream in, URL file) throws Exception {<NEW_LINE>TileSet set = null;<NEW_LINE>Node tsNode;<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>try {<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>// builder.setErro...
set = unmarshalTileset(tsNode, true);
211,143
public boolean loadExisting() {<NEW_LINE>if (segments.length > 0)<NEW_LINE>throw new IllegalStateException("already initialized");<NEW_LINE>if (isClosed())<NEW_LINE>throw new IllegalStateException("already closed");<NEW_LINE>if (!store)<NEW_LINE>return false;<NEW_LINE>File file = new File(getFullName());<NEW_LINE>if (!...
raFile.read(bytes) / 4;
2,986
private static void printTree(PrintWriter p, Node node, int level) {<NEW_LINE>if (node == null) {<NEW_LINE>p.print("null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>p.print(nodeName(node));<NEW_LINE>ArrayList<Object> childFields = new ArrayList<>();<NEW_LINE>String sep = "";<NEW_LINE>p.print("(");<NEW_LINE>NodeClass nodeCl...
(nodeClass.getFieldName(field));
1,778,002
public void execute(LuckPermsPlugin plugin, Sender sender, ArgumentList args, String label) {<NEW_LINE>if (args.isEmpty()) {<NEW_LINE>sendUsage(sender, label);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String trackName = args.get(0<MASK><NEW_LINE>if (!DataConstraints.TRACK_NAME_TEST.test(trackName)) {<NEW_LINE>Message.TRACK...
).toLowerCase(Locale.ROOT);
659,822
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasRule()) {<NEW_LINE>bitField0_ |= 0x00000001;<NEW_LINE>rule_ = other.ru...
bitField0_ = (bitField0_ & ~0x00000002);
1,295,217
private boolean isPointInsideDragJogRotationHandle(int x, int y) {<NEW_LINE>HeadMountable selectedTool = MainFrame.get().getMachineControls().getSelectedTool();<NEW_LINE>if (selectedTool.getAxisRotation() == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Insets ins = getInsets();<NEW_LINE>int width = getWidth() - i...
) rotHandleY, (int) halfHandleSize);
1,147,997
public void marshall(VulnerablePackage vulnerablePackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vulnerablePackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vulnerablePackage.getArch(), ARCH...
vulnerablePackage.getSourceLayerHash(), SOURCELAYERHASH_BINDING);
808,909
final DescribeOfferingResult executeDescribeOffering(DescribeOfferingRequest describeOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(describeOfferingRequest));
1,189,434
public static ListFavoriteReportsResponse unmarshall(ListFavoriteReportsResponse listFavoriteReportsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFavoriteReportsResponse.setRequestId(_ctx.stringValue("ListFavoriteReportsResponse.RequestId"));<NEW_LINE>listFavoriteReportsResponse.setSuccess(_ctx.booleanValue("ListF...
(_ctx.integerValue("ListFavoriteReportsResponse.Result.TotalNum"));
476,843
private Function<SourceLookup, FragmentsBuilder> fragmentsBuilderSupplier(SearchHighlightContext.Field field, MappedFieldType fieldType, boolean forceSource) {<NEW_LINE>BoundaryScanner boundaryScanner = getBoundaryScanner(field);<NEW_LINE>FieldOptions options = field.fieldOptions();<NEW_LINE>Function<SourceLookup, Base...
options.postTags(), boundaryScanner);
1,347,634
public static JSONEntityFormat fromJSON(String name, ClassLoader loader, JsonNode json) {<NEW_LINE>JSONEntityFormat format = new JSONEntityFormat();<NEW_LINE>String eTypeName = json.path("entity_type").asText().toLowerCase();<NEW_LINE>EntityType etype = EntityType.forName(eTypeName);<NEW_LINE>logger.debug("{}: reading ...
TextEntitySource.parseEntityBuilder(loader, json);
1,020,953
private Collection<Function<StateContext<String, String>, Mono<Void>>> loadStateActionsFromRepositoryState(Set<? extends RepositoryAction> repositoryStateActions) {<NEW_LINE>Collection<Function<StateContext<String, String>, Mono<Void>>> stateActions = new ArrayList<>();<NEW_LINE>if (repositoryStateActions != null) {<NE...
(repositoryAction.getSpel()));