idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
335,919
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("select timeTaken.format() as timeTakenStr from RFIDEvent");<NEW_LINE>env.compileDeploy("select timeTaken.get('month') as timeTakenMonth from RFIDEvent");<NEW_LINE>env.compileDeploy("select timeTaken.getMonthOfYear() as timeTakenMonth from RFIDEven...
"2002-05-30T08:59:59.999", "2002-05-30T09:00:00.000", false, milestone);
1,335,579
public double process(Point2D_F64 a, Point2D_F64 b, Se3_F64 a_to_b, Point3D_F64 Xa) {<NEW_LINE>PerspectiveOps.convertNormToPixel(intrinsicA, a.x, a.y, pixelN);<NEW_LINE>PerspectiveOps.convertNormToPixel(intrinsicA, Xa.x / Xa.z, Xa.y / Xa.z, pixelX);<NEW_LINE>double error = pixelN.distance2(pixelX);<NEW_LINE>a_to_b.tran...
.distance2(pixelX)) / 2;
61,193
protected static Set<String> createRelationshipTypes(Set<String> features) {<NEW_LINE>Set<String> relationshipTypes = new TreeSet<String>();<NEW_LINE>if (features.contains(PP_COMMON_MOVE_BOOKMARKS) || features.contains(PP_COMMON_CONTAINERIZATION) || features.contains(PP_COMMON_COMBINE_FIELDS)) {<NEW_LINE>relationshipTy...
relationshipTypes.add(Namespaces.COMMENTS);
1,083,385
private boolean projectBuild(Project project, String socketId) {<NEW_LINE>StringBuilder builder = tailBuffer.get(project.getId());<NEW_LINE>AtomicBoolean success = new AtomicBoolean(false);<NEW_LINE>CommandUtils.execute(project.getMavenBuildCmd(), (line) -> {<NEW_LINE>builder.append(line).append("\n");<NEW_LINE>if (lin...
info(builder.toString());
1,378,907
public void start(Schema schema, DictionaryProvider provider) throws IOException {<NEW_LINE>List<Field> fields = new ArrayList<>(schema.getFields().size());<NEW_LINE>Set<Long> <MASK><NEW_LINE>// Store original Schema to ensure batches written match<NEW_LINE>this.schema = schema;<NEW_LINE>// Convert fields with dictiona...
dictionaryIdsUsed = new HashSet<>();
633,815
public byte[] decrypt(byte[] encryptedMessage) {<NEW_LINE>int paramsLength = Byte.toUnsignedInt(encryptedMessage[0]);<NEW_LINE>int messageLength <MASK><NEW_LINE>byte[] params = new byte[paramsLength];<NEW_LINE>byte[] message = new byte[messageLength];<NEW_LINE>System.arraycopy(encryptedMessage, 1, params, 0, paramsLeng...
= encryptedMessage.length - paramsLength - 1;
69,979
public void showBroadcastNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRend...
put(Common.BROADCAST_NOTIFICATIONS, broadcastNotifications);
864,950
private <R> R readInternal(final CosmosPersistentEntity<?> entity, Class<R> type, final JsonNode jsonNode) {<NEW_LINE>try {<NEW_LINE>if (jsonNode.isValueNode()) {<NEW_LINE>return objectMapper.treeToValue(jsonNode, type);<NEW_LINE>}<NEW_LINE>Assert.notNull(entity, "Entity is null.");<NEW_LINE>final ObjectNode objectNode...
objectNode.remove(Constants.ID_PROPERTY_NAME);
70,995
protected AbstractValidator loadValidatorWithoutAttributes(Element element, String messagePack) {<NEW_LINE>AbstractValidator validator;<NEW_LINE>switch(element.getName()) {<NEW_LINE>case "negativeOrZero":<NEW_LINE>validator = beanLocator.getPrototype(NegativeOrZeroValidator.NAME);<NEW_LINE>break;<NEW_LINE>case "negativ...
(loadMessage(element, messagePack));
1,505,845
private String createContainerImage(ContainerImageConfig containerImageConfig, DockerConfig dockerConfig, ContainerImageInfoBuildItem containerImageInfo, OutputTargetBuildItem out, ImageIdReader reader, boolean forNative, boolean pushRequested, PackageConfig packageConfig) {<NEW_LINE>DockerfilePaths dockerfilePaths = g...
), reader.getImageId());
1,149,600
final GetAnomaliesResult executeGetAnomalies(GetAnomaliesRequest getAnomaliesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAnomaliesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
561,711
public BindingResult<Object> bind(ArgumentConversionContext<Object> context, HttpRequest<?> source) {<NEW_LINE>MutableConvertibleValues<Object> attrs = source.getAttributes();<NEW_LINE>if (!attrs.contains(HttpSessionFilter.class.getName())) {<NEW_LINE>// the filter hasn't been executed but the argument is not satisfied...
session.get(finalName, context);
944,375
private List<WSParameter> unWrapPart(Part part) {<NEW_LINE>List<WSParameter> parms = new ArrayList<WSParameter>();<NEW_LINE>NamedComponentReference<GlobalElement<MASK><NEW_LINE>if (gbr != null) {<NEW_LINE>GlobalElement gb = gbr.get();<NEW_LINE>if (gb != null) {<NEW_LINE>List<ComplexType> complexTypes = gb.getChildren(C...
> gbr = part.getElement();
861,270
private boolean printLinearScanTime(long toIndex, long fromKnownIndex, long start, long end, String desc) {<NEW_LINE>StackTrace st = null;<NEW_LINE>if (Jvm.isDebugEnabled(getClass())) {<NEW_LINE>int time = Jvm<MASK><NEW_LINE>// ignore the time for the first message<NEW_LINE>if (toIndex > 0 && end > start + time)<NEW_LI...
.isArm() ? 20_000_000 : 250_000;
790,875
public void visitToken(DetailAST catchBlockToken) {<NEW_LINE>// get the caught exception variable name from the catch block<NEW_LINE>final DetailAST catchStatement = catchBlockToken.findFirstToken(TokenTypes.PARAMETER_DEF);<NEW_LINE>final String caughtExceptionVariableName = catchStatement.findFirstToken(TokenTypes.IDE...
DetailAST> throwStatements = getThrowStatements(catchBlockToken);
469,836
final DeleteJobResult executeDeleteJob(DeleteJobRequest deleteJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,397,412
final ModifyLunaClientResult executeModifyLunaClient(ModifyLunaClientRequest modifyLunaClientRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyLunaClientRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,134,532
private static double[] readValues(TokenBuffer buffer, int size, TensorAddress address, TensorType type) {<NEW_LINE>int index = 0;<NEW_LINE>double[<MASK><NEW_LINE>if (buffer.currentToken() == JsonToken.VALUE_STRING) {<NEW_LINE>values = decodeHexString(buffer.currentText(), type.valueType());<NEW_LINE>index = values.len...
] values = new double[size];
592,748
public IBundleProvider search(final SearchParameterMap theParams, RequestDetails theRequest, HttpServletResponse theServletResponse) {<NEW_LINE>if (theParams.getSearchContainedMode() == SearchContainedModeEnum.BOTH) {<NEW_LINE>throw new MethodNotAllowedException(Msg.code(983) + "Contained mode 'both' is not currently s...
), cacheControlDirective, theRequest, requestPartitionId);
773,242
private void handleUnrestrictedCommands(ChannelHandlerContext ctx, WebSocketFrame frame, JSONObject jso) {<NEW_LINE>if (jso.has("query")) {<NEW_LINE>try {<NEW_LINE>switch(jso.getString("query")) {<NEW_LINE>case "songlist":<NEW_LINE>EventBus.instance().postAsync(new YTPlayerRequestSonglistEvent());<NEW_LINE>break;<NEW_L...
.postAsync(new YTPlayerRequestCurrentSongEvent());
1,528,010
public GlueDataCatalogConfigurationUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GlueDataCatalogConfigurationUpdate glueDataCatalogConfigurationUpdate = new GlueDataCatalogConfigurationUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
JsonToken token = context.getCurrentToken();
682,339
public DateProcessor create(Map<String, Processor.Factory> registry, String processorTag, String description, Map<String, Object> config) throws Exception {<NEW_LINE>String field = ConfigurationUtils.readStringProperty(<MASK><NEW_LINE>String targetField = ConfigurationUtils.readStringProperty(TYPE, processorTag, config...
TYPE, processorTag, config, "field");
550,631
public void connectProcess(SpringProcessDescriptor descriptor) {<NEW_LINE>VirtualMachine vm = null;<NEW_LINE>VirtualMachineDescriptor vmDescriptor = descriptor.getVm();<NEW_LINE>try {<NEW_LINE>String jmxAddress = null;<NEW_LINE>vm = VirtualMachine.attach(vmDescriptor);<NEW_LINE>try {<NEW_LINE>jmxAddress = vm.getAgentPr...
log.error("Error starting local management agent", e);
1,481,580
public OAuth2AccessToken sendPasswordGrant(String username, String password) {<NEW_LINE>HttpHeaders reqHeaders = new HttpHeaders();<NEW_LINE>reqHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);<NEW_LINE>MultiValueMap<String, String> formParams = new LinkedMultiValueMap<>();<NEW_LINE>formParams.set("usernam...
formParams.set("grant_type", "password");
1,462,885
public void reinit() {<NEW_LINE>// We use dummy component here in order to being able to work with font metrics.<NEW_LINE>JLabel component = new JLabel();<NEW_LINE>myCanUse = true;<NEW_LINE>for (Map.Entry<SoftWrapDrawingType, char[]> entry : mySymbols.entrySet()) {<NEW_LINE><MASK><NEW_LINE>char c = entry.getValue()[0];...
SoftWrapDrawingType type = entry.getKey();
274,057
private ResponseData<Boolean> processCreateWeId(String weId, String publicKey, String privateKey, boolean isDelegate) {<NEW_LINE>String address = WeIdUtils.convertWeIdToAddress(weId);<NEW_LINE>try {<NEW_LINE>return weIdServiceEngine.createWeId(address, publicKey, privateKey, isDelegate);<NEW_LINE>} catch (PrivateKeyIll...
logger.error("[createWeId] create weid failed with exception. ", e);
659,167
public static IntMap<IrMesh> splitByMaterial(IrMesh mesh) {<NEW_LINE>IntMap<List<IrPolygon>> materialToPolyList = new IntMap<>();<NEW_LINE>for (IrPolygon polygon : mesh.polygons) {<NEW_LINE>int materialIndex = -1;<NEW_LINE>for (IrVertex vertex : polygon.vertices) {<NEW_LINE>if (vertex.material == null) {<NEW_LINE>conti...
throw new UnsupportedOperationException("Multiple materials " + "assigned to the same polygon");
1,068,037
public void run() {<NEW_LINE>try {<NEW_LINE>createAndShowGUI(args);<NEW_LINE>} catch (Throwable t) {<NEW_LINE>// Windows Defender has been insisting on destroying each new<NEW_LINE>// release by removing core.jar and other files. Yay!<NEW_LINE>// https://github.com/processing/processing/issues/5537<NEW_LINE>if (Platfor...
"A serious error happened during startup. Please report:\n" + "http://github.com/processing/processing/issues/new", t, true);
1,741,078
private boolean processBuilderField(VariableElement field) {<NEW_LINE>if (NamingMirror.isPresent(field)) {<NEW_LINE>reporter.withElement(field).annotationNamed(NamingMirror.simpleName()).warning("@Enclosing.Builder field '%s' have naming annotation which is ignored," + " an builder field name is derived automatically",...
AtomicReference<>(StandardNaming.NONE);
859,529
public void executePreload() {<NEW_LINE>if (nwActivator.getNamedWindowContextName() != null && !nwActivator.getNamedWindowContextName().equals(agentInstanceContext.getStatementContext().getContextName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collection<EventBean> snapshot = consumer.getConsumerCallback().snapshot(nwA...
consumer.update(events, null);
1,133,374
public Options addString(String options) {<NEW_LINE>StringBuilder opt = new StringBuilder();<NEW_LINE>boolean inQuote = false;<NEW_LINE>int quoteCount = 0;<NEW_LINE>for (int i = 0; i < options.length(); i++) {<NEW_LINE>char <MASK><NEW_LINE>if (c == '"') {<NEW_LINE>inQuote = !inQuote;<NEW_LINE>quoteCount++;<NEW_LINE>}<N...
c = options.charAt(i);
33,336
public void update(DataPoint dataPoint, double weight, int targetClass) {<NEW_LINE>if (finalized)<NEW_LINE>throw new FailedToFitException("Model has already been finalized, and can no longer be updated");<NEW_LINE>final <MASK><NEW_LINE>// Categorical value updates<NEW_LINE>int[] catValues = dataPoint.getCategoricalValu...
Vec x = dataPoint.getNumericalValues();
1,687,557
protected Node createItem(ToggleGroup group) {<NEW_LINE>BorderPane pane = new BorderPane();<NEW_LINE>pane.setPadding(new Insets(3));<NEW_LINE>FXUtils.setLimitHeight(pane, 30);<NEW_LINE>left.setText(title);<NEW_LINE>BorderPane.<MASK><NEW_LINE>left.setToggleGroup(group);<NEW_LINE>left.setUserData(data);<NEW_LINE>pane.set...
setAlignment(left, Pos.CENTER_LEFT);
1,338,873
public static PointList smooth(PointList points) {<NEW_LINE>int nSize = points.size();<NEW_LINE>if (nSize <= 2)<NEW_LINE>return points;<NEW_LINE>DistanceCalc distCalc = new DistanceCalc3D();<NEW_LINE>final double MIN_DISTANCE = 10;<NEW_LINE>final int WINDOW_SIZE = 20;<NEW_LINE>PointList newPoints = new PointList(nSize,...
y0 = points.getLat(0);
916,832
protected void initView() {<NEW_LINE>mAutoComplete = mPreference.getBoolean(PreferenceManager.PREF_SEARCH_AUTO_COMPLETE, false);<NEW_LINE>mEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFocusChange(View v, boolean hasFocus) {<NEW_LINE>if (mAction...
.getText().toString();
959,346
public void render(TileMarkerVolume marker, double tileX, double tileY, double tileZ, float partialTicks, int destroyStage, float alpha) {<NEW_LINE>if (marker == null || !marker.isShowingSignals())<NEW_LINE>return;<NEW_LINE>Minecraft.getMinecraft().mcProfiler.startSection("bc");<NEW_LINE>Minecraft.getMinecraft().mcProf...
VEC_HALF, marker.getPos());
568,979
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Location s3Location = new S3Location();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
722,943
public void onClick(AjaxRequestTarget target) {<NEW_LINE>// ensure the patchset is still current AND not vetoed<NEW_LINE>Patchset patchset = ticket.getCurrentPatchset();<NEW_LINE>final TicketModel refreshedTicket = app().tickets().getTicket(getRepositoryModel(), ticket.number);<NEW_LINE>if (patchset.equals(refreshedTic...
ticket.number, patchset.number);
515,055
public ListApplicationSnapshotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListApplicationSnapshotsResult listApplicationSnapshotsResult = new ListApplicationSnapshotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
class).unmarshall(context));
1,848,762
public void onBindHeaderViewHolder(RecyclerView.ViewHolder viewHolder, int position) {<NEW_LINE>TextView textView = (TextView) viewHolder.itemView.findViewById(R.id.stick_text);<NEW_LINE>textView.setText(String.valueOf(getItem(hasHeaderView() ? position - 1 : position).charAt(0)));<NEW_LINE>// viewHolder.itemView.setBa...
setImageResource(R.drawable.jr13);
885,370
public final void update(EventBean[] newData, EventBean[] oldData) {<NEW_LINE>agentInstanceContext.getAuditProvider().view(newData, oldData, agentInstanceContext, lengthFirstFactory);<NEW_LINE>agentInstanceContext.getInstrumentationProvider().qViewProcessIRStream(lengthFirstFactory, newData, oldData);<NEW_LINE>OneEvent...
child.update(nd, od);
1,812,278
public static String formatDownloadStatusDefaultLocale(DownloadManager manager) {<NEW_LINE>int state = manager.getState();<NEW_LINE>String tmp = "";<NEW_LINE>DiskManager dm = manager.getDiskManager();<NEW_LINE>switch(state) {<NEW_LINE>case DownloadManager.STATE_WAITING:<NEW_LINE>tmp = MessageText.getDefaultLocaleString...
tmp = MessageText.getDefaultLocaleString("ManagerItem.seeding");
559,385
final GetConnectivityInfoResult executeGetConnectivityInfo(GetConnectivityInfoRequest getConnectivityInfoRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConnectivityInfoRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
525,624
public void saveCustomFilter() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>final PoiUIFilter filter = app.getPoiFilters().getCustomPOIFilter();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());<NEW_LINE>builder.setTitle(R.string.access_hint_enter_name);<NEW_LINE>fin...
.getSearchUICore().refreshCustomPoiFilters();
1,286,242
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerCo...
workCompleted, jsonElement, path0, path1);
1,348,932
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>final SimpleDraweeView draweeWebpStatic = view.findViewById(R.id.drawee_view_webp_static);<NEW_LINE>draweeWebpStatic.setImageURI(sampleUris().createWebpStaticUri());<NEW_LINE>final SimpleDraweeView draweeWebpTranslucent = view.<MASK><N...
findViewById(R.id.drawee_view_webp_translucent);
749,069
public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}...
localVarHeaderParams.put("Content-Type", localVarContentType);
231,711
public void run(String[] argv) throws IOException, SAXException {<NEW_LINE>argv = init(argv, 1, 1, null);<NEW_LINE>// right kind of database?<NEW_LINE>if (!(database instanceof AbstractBlockingDatabase)) {<NEW_LINE>System.out.println("ERR: Only blocking databases are supported.");<NEW_LINE>System.exit(2);<NEW_LINE>}<NE...
sizes.put(size, c);
1,459,702
public void connectionRouted(final NetworkConnection connection, Object _routing_data) {<NEW_LINE>Object[] x = (Object[]) _routing_data;<NEW_LINE>Object entry1 = x[0];<NEW_LINE>if (entry1 instanceof TransportHelper) {<NEW_LINE>// routed on failure<NEW_LINE>writeReply(connection, (TransportHelper) x[0], (String) x[1]);<...
final String url = (String) entry1;
1,026,496
public static void main(String[] args) {<NEW_LINE>AVLTree tree = new AVLTree();<NEW_LINE>tree.root = tree.insert(tree.root, 10);<NEW_LINE>tree.root = tree.insert(tree.root, 6);<NEW_LINE>tree.root = tree.insert(tree.root, 11);<NEW_LINE>tree.root = tree.insert(tree.root, 1);<NEW_LINE>tree.root = tree.<MASK><NEW_LINE>tree...
insert(tree.root, 7);
386,267
private void initializeData(ImageData<BufferedImage> imageData) {<NEW_LINE>if (this.imageData != imageData) {<NEW_LINE>if (this.imageData != null)<NEW_LINE>this.imageData.getHierarchy().removePathObjectListener(this);<NEW_LINE>this.imageData = imageData;<NEW_LINE>if (imageData != null) {<NEW_LINE>imageData.getHierarchy...
> server = imageData.getServer();
1,705,158
public E peek() {<NEW_LINE>final AtomicReferenceArray<E> buffer = consumerBuffer;<NEW_LINE>final long cIndex = lpConsumerIndex();<NEW_LINE>final long mask = consumerMask;<NEW_LINE>final int <MASK><NEW_LINE>Object e = lvRefElement(buffer, offset);<NEW_LINE>if (e == null) {<NEW_LINE>long pIndex = lvProducerIndex();<NEW_L...
offset = modifiedCalcCircularRefElementOffset(cIndex, mask);
1,827,454
public void run() {<NEW_LINE>if (mPrinter == null) {<NEW_LINE>mCallback.onErrorHash("printer not connected !");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mPrinterConnection.isConnected()) {<NEW_LINE>mCallback.onErrorHash("printer not connected !!!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String[] extensio...
.add(names[i]);
881,705
public ProcessResult process(DataArtifact artifact) {<NEW_LINE>if (flagNotableItems || flagPrevSeenDevices || flagUniqueArtifacts || saveCorrAttrInstances) {<NEW_LINE>for (CorrelationAttributeInstance corrAttr : CorrelationAttributeUtil.makeCorrAttrsToSave(artifact)) {<NEW_LINE>if (corrAttrValuesAlreadyProcessed.add(co...
.getJobId()), ex);
1,705,581
private void addToWrapper(EntityMetadata entityMetadata, AttributeWrapper wrapper, Object embeddedObject, Attribute attrib, Attribute embeddedAttrib) {<NEW_LINE>if (embeddedObject == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>byte[] value = PropertyAccessorHelper.get(embeddedObject, (Field) attrib.getJavaMember());<N...
wrapper.addColumn(name, value);
1,520,973
private Future<JsonObject> solveRemoteRef(final URI ref) {<NEW_LINE>String uri = ref.toString();<NEW_LINE>if (!options.getAuthQueryParams().isEmpty()) {<NEW_LINE>QueryStringEncoder encoder = new QueryStringEncoder(uri);<NEW_LINE>options.getAuthQueryParams().forEach(encoder::addParam);<NEW_LINE>uri = encoder.toString();...
HttpClientResponse res = responseAr.result();
309,588
private static ArtifactStoreService initializeArtifactStore(MDBArtifactStoreConfig mdbArtifactStoreConfig) throws ModelDBException, IOException {<NEW_LINE>// ------------- Start Initialize Cloud storage base on configuration ------------------<NEW_LINE>ArtifactStoreService artifactStoreService;<NEW_LINE>if (mdbArtifact...
).put("file.upload-dir", rootDir);
1,112,971
public double rayCast(Ray2D ray) {<NEW_LINE>final Ray2D transformedRay = ray.transform(transform);<NEW_LINE>final double squaredHorizontal = horizontalLength * horizontalLength;<NEW_LINE>final double squaredVertical = verticalLength * verticalLength;<NEW_LINE>final double squaredDirectionX = transformedRay.getDirection...
.abs(squareRoot)) / divisor;
65,442
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "create variable long SIZE = 1000;\n" + "@name('s0') select irstream * from SupportBean#expr_batch(newest_timestamp - oldest_timestamp > SIZE);\n";<NEW_LINE>env.compil...
runtimeSetVariable("s0", "SIZE", 999);
942,617
public void store(File file) throws IOException {<NEW_LINE>OutputStream os = null;<NEW_LINE>try {<NEW_LINE>File parent = file.getParentFile();<NEW_LINE>if (parent != null && !parent.exists()) {<NEW_LINE>parent.mkdirs();<NEW_LINE>}<NEW_LINE>os = FileUtils.createOutputStream(file);<NEW_LINE>for (Iterator it = getMap().ke...
(Key) it.next();
172,707
private void renderManaTablet(PoseStack ms, MultiBufferSource buffers, Player player) {<NEW_LINE>boolean renderedOne = false;<NEW_LINE>for (int i = 0; i < player.getInventory().getContainerSize(); i++) {<NEW_LINE>ItemStack stack = player.getInventory().getItem(i);<NEW_LINE>if (!stack.isEmpty() && stack.is(ModItems.mana...
EquipmentSlot.LEGS).isEmpty();
1,594,250
final DescribeRemediationConfigurationsResult executeDescribeRemediationConfigurations(DescribeRemediationConfigurationsRequest describeRemediationConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRemediationConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
invoke(request, responseHandler, executionContext);
1,016,335
private CanonicalSubscription canonicalizeR4(IBaseResource theSubscription) {<NEW_LINE>org.hl7.fhir.r4.model.Subscription subscription = (org.hl7.fhir.r4.model.Subscription) theSubscription;<NEW_LINE>CanonicalSubscription retVal = new CanonicalSubscription();<NEW_LINE>retVal.setStatus(subscription.getStatus());<NEW_LIN...
).getExtensionString(HapiExtensions.EXT_SUBSCRIPTION_RESTHOOK_DELIVER_LATEST_VERSION);
1,841,094
void prepare(WeChatBacktrace.Configuration configuration) {<NEW_LINE>synchronized (mPrepared) {<NEW_LINE>if (mPrepared[0]) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mPrepared[0] = true;<NEW_LINE>}<NEW_LINE>mConfiguration = configuration;<NEW_LINE>mIsolateRemote = configuration.mWarmUpInIsolateProcess;<NEW_LINE>mThreadTask...
MatrixLog.i(TAG, "Need clean up");
718,649
public void handle(JsonObject msg) {<NEW_LINE>String nonce = getStringOrThrow(msg, "nonce");<NEW_LINE>String <MASK><NEW_LINE>String browser = msg.get("browser").getAsString();<NEW_LINE>PublicKey remotePublicKey = CryptographyUtils.parsePublicKey(msg.get("publicKey").getAsString());<NEW_LINE>// check if the public keys ...
sessionId = getStringOrThrow(msg, "sessionId");
1,701,368
public static RBCompIntFloatMatrix blas2RBCompDense(BlasFloatMatrix mat, int subDim) {<NEW_LINE>int dim = mat.getNumCols();<NEW_LINE>int numRows = mat.getNumRows();<NEW_LINE>int numComp = (dim + subDim - 1) / subDim;<NEW_LINE>float[] data = mat.getData();<NEW_LINE>CompIntFloatVector[] rows = new CompIntFloatVector[numR...
] part = new float[thisSubDim];
1,536,930
public EndpointResponse isValidProperty(final String property) {<NEW_LINE>try {<NEW_LINE>final Map<String, Object> properties = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>denyListPropertyValidator.validateAll(properties);<NEW_LINE>final KsqlConfigResolver resolver = new KsqlConfigResolver();<NEW_LINE>final Optional<Conf...
properties.put(property, "");
565,884
protected List<ParameterInfo> initInputParameters() {<NEW_LINE>ArrayList<ParameterInfo> inputParams = new ArrayList<ParameterInfo>();<NEW_LINE>try {<NEW_LINE>Resource[] rArray = m.getResourcePath();<NEW_LINE>if (rArray == null || rArray.length == 0)<NEW_LINE>throw new IllegalArgumentException("Method do not belong to a...
.addAll(findWadlParams(m));
1,813,786
static void configureHttp2Pipeline(ChannelPipeline p, boolean acceptGzip, HttpResponseDecoderSpec decoder, Http2Settings http2Settings, ConnectionObserver observer) {<NEW_LINE>Http2FrameCodecBuilder http2FrameCodecBuilder = Http2FrameCodecBuilder.forClient().validateHeaders(decoder.validateHeaders()).initialSettings(ht...
(LogLevel.DEBUG, "reactor.netty.http.client.h2"));
467,632
public static DoubleArray truncateSetInclusive(double lower, double upper, DoubleArray set) {<NEW_LINE>double[] temp = truncateSetExclusive(lower, upper, set.toArray());<NEW_LINE>int n = temp.length;<NEW_LINE>if (n == 0) {<NEW_LINE>return DoubleArray.of(lower, upper);<NEW_LINE>}<NEW_LINE>boolean addLower = different(lo...
] res = new double[m];
639,335
public static long convertDurationStrToLong(long currentTime, long value, String unit, String timestampPrecision) {<NEW_LINE>DurationUnit durationUnit = DurationUnit.valueOf(unit);<NEW_LINE>long res = value;<NEW_LINE>switch(durationUnit) {<NEW_LINE>case y:<NEW_LINE>res *= 365 * 86_400_000L;<NEW_LINE>break;<NEW_LINE>cas...
, (int) (value));
1,313,605
public static SusiThought readRSS(String url) {<NEW_LINE>SyndFeedInput input = new SyndFeedInput();<NEW_LINE>SyndFeed feed = null;<NEW_LINE>try {<NEW_LINE>ClientConnection connection = new ClientConnection(url);<NEW_LINE>XmlReader xmlreader = new XmlReader(connection.inputStream);<NEW_LINE>feed = input.build(xmlreader)...
getPublishedDate().toString());
454,747
public DeleteRegistryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteRegistryResult deleteRegistryResult = new DeleteRegistryResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
1,722,654
public void register(@PathVariable("type") ApplicationType type, @PathVariable("name") String name, @PathVariable("version") String version, @RequestParam("uri") String uri, @RequestParam(name = "metadata-uri", required = false) String metadataUri, @RequestParam(value = "force", defaultValue = "false") boolean force) {...
find(name, type, version);
816,883
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@name('s0') select p0.n0 as a, p1[0].n0 as b, p1[1].n0 as c, p0 as d, p1 as e from MyMapWithAMap");<NEW_LINE>env.addListener("s0");<NEW_LINE>Map<String, Object> n0Bean1 = EventMapCore.makeMap(new Object[][] { { "n0", 1 } });<NEW_LINE>Map<String, O...
, eventType.getPropertyType("c"));
461,119
public static DescribePostPaidDesktopBillsResponse unmarshall(DescribePostPaidDesktopBillsResponse describePostPaidDesktopBillsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePostPaidDesktopBillsResponse.setRequestId(_ctx.stringValue("DescribePostPaidDesktopBillsResponse.RequestId"));<NEW_LINE>describePostPaidDe...
("DescribePostPaidDesktopBillsResponse.Bills[" + i + "].ConsumeTime"));
1,493,205
public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId<MASK><NEW_LINE>describeInstancesResponse.setPageSize(context.integerValue("DescribeInstancesResponse.PageSize"));<NEW_LINE>describeInstan...
(context.stringValue("DescribeInstancesResponse.RequestId"));
872,587
public void prepareResponse(RequestAdapter<Q> requestAdapter, ResponseAdapter<R> responseAdapter) {<NEW_LINE>if (!isActive()) {<NEW_LINE>decisionLog(() -> String.format("CORS ignoring request %s; CORS processing is inactive", requestAdapter));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// silent: already logged during req pr...
requestType = requestType(requestAdapter, true);
287,774
public boolean isConflict(WebComponentDescriptor other, boolean allowNullImplNameOverride) {<NEW_LINE>if (conflict || other.isConflict()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!getCanonicalName().equals(other.getCanonicalName())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String otherImplFile = other.getWeb...
asyncSupported != null) ? asyncSupported : false;
1,154,746
private RefactoringStatus checkRelatedMethods() throws CoreException {<NEW_LINE>RefactoringStatus result = new RefactoringStatus();<NEW_LINE>for (Iterator<IMethod> iter = fMethodsToRename.iterator(); iter.hasNext(); ) {<NEW_LINE>IMethod method = iter.next();<NEW_LINE>result.merge(Checks.checkIfConstructorName(method, g...
(RefactoringCoreMessages.RenameMethodRefactoring_no_read_only, msgData));
1,688,803
public static String serializeToJson(CacheLine cacheLine) {<NEW_LINE>JSONObject cacheLineJson = new JSONObject();<NEW_LINE>cacheLineJson.put("rowCount", cacheLine.getOriginRowCount());<NEW_LINE>cacheLineJson.put("cardinalityMap", cacheLine.getCardinalityMap());<NEW_LINE>cacheLineJson.put("nullCountMap", cacheLine.getNu...
"sampleRate", cacheLine.getSampleRate());
479,362
public StaticConfig build() throws InvalidConfigException {<NEW_LINE>LOG.info("enableNumRowsQuery:" + _enableNumRowsQuery);<NEW_LINE>LOG.info("NumRowsPrefetch:" + _numRowsPrefetch);<NEW_LINE><MASK><NEW_LINE>LOG.info("Commit Interval:" + _commitInterval);<NEW_LINE>LOG.info("Num Retries:" + _numRetries);<NEW_LINE>LOG.inf...
LOG.info("_LOBPrefetchSize:" + _LOBPrefetchSize);
228,657
public void refresh() {<NEW_LINE>List<AppPackage> appPackageList = appPackageRepository.findAllByStatusNotIn(Arrays.asList("WAIT_FOR_OP", "FAILURE", "SUCCESS", "EXCEPTION"));<NEW_LINE>appPackageList.parallelStream().filter(x -> !StringUtil.isEmpty(x.getStatus())).forEach(appPackage -> {<NEW_LINE>try {<NEW_LINE>JSONObje...
taskStatus = ret.getString("taskStatus");
198,289
public ByteBuf encode(ByteBuf buf, MapDataMessage message) throws IOException {<NEW_LINE>List<Icon> icons = message.getIcons();<NEW_LINE>ByteBufUtils.writeVarInt(buf, message.getId());<NEW_LINE>buf.writeByte(message.getScale());<NEW_LINE>ByteBufUtils.writeVarInt(buf, icons.size());<NEW_LINE>for (Icon icon : icons) {<NE...
buf.writeByte(icon.z);
557,592
boolean check(String in, String[] out, int flags, String rel) {<NEW_LINE>out[0] = null;<NEW_LINE>if (in == null)<NEW_LINE>return false;<NEW_LINE>if ((flags & allFlags) == 0)<NEW_LINE>return false;<NEW_LINE>int ix = in.lastIndexOf('/');<NEW_LINE>if (ix == -1)<NEW_LINE>return false;<NEW_LINE>if (ix == 0 && (flags & ABSOL...
in.substring(0, ix);
1,249,483
void initialize(VolumeManager fs, String rootTabletDirUri, String rootTabletFileUri, ServerContext context) throws IOException, InterruptedException, KeeperException {<NEW_LINE>SiteConfiguration siteConfig = initConfig.getSiteConf();<NEW_LINE>// initialize initial system tables config in zookeeper<NEW_LINE>initSystemTa...
rootTabletFileUri, siteConfig, tablesTablet, defaultTablet);
906,911
public static ListTransitRouterVbrAttachmentsResponse unmarshall(ListTransitRouterVbrAttachmentsResponse listTransitRouterVbrAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterVbrAttachmentsResponse.setRequestId<MASK><NEW_LINE>listTransitRouterVbrAttachmentsResponse.setNextToken(_ctx.stringValue...
(_ctx.stringValue("ListTransitRouterVbrAttachmentsResponse.RequestId"));
865,031
protected void executeServiceCode(ServiceProxy proxy) {<NEW_LINE>String fullUrl = url;<NEW_LINE>if (!fullUrl.contains("://") && !fullUrl.startsWith("/") && proxy.getCreationUrl().baseUrl != null) {<NEW_LINE>fullUrl = proxy.getCreationUrl().baseUrl + fullUrl;<NEW_LINE>}<NEW_LINE>if (Log.isDebugModeEnabled()) {<NEW_LINE>...
fullUrl.replaceAll("app:/", "Resources");
1,686,441
private void initKnownContainers(Map<IJavaProject, Map<IPath, IClasspathContainer>> perProjectContainers, IProgressMonitor monitor) throws JavaModelException {<NEW_LINE>Iterator<Entry<IJavaProject, Map<IPath, IClasspathContainer>>> entriesIterator = perProjectContainers<MASK><NEW_LINE>List<SetContainerOperation> operat...
.entrySet().iterator();
535,620
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>in.markReaderIndex();<NEW_LINE>ProtocolCode protocolCode;<NEW_LINE>Protocol protocol;<NEW_LINE>try {<NEW_LINE>protocolCode = decodeProtocolCode(in);<NEW_LINE>if (protocolCode == null) {<NEW_LINE>// read to end<NEW...
protocol = ProtocolManager.getProtocol(protocolCode);
1,016,256
List<Path> defaultJavaLibraryPath() {<NEW_LINE>// Win32 library search order (See the documentation for LoadLibrary):<NEW_LINE>//<NEW_LINE>// 1. The directory from which application is loaded.<NEW_LINE>// 2. The system wide Java Extensions directory (Java only)<NEW_LINE>// 3. System directory (GetSystemDirectory)<NEW_L...
PACKAGE_DIR).resolve("bin"));
353,728
protected void handleMessageInternal(Message<?> message) {<NEW_LINE>String sessionId;<NEW_LINE>if (!this.client) {<NEW_LINE>sessionId = this.subProtocolHandlerRegistry.resolveSessionId(message);<NEW_LINE>if (sessionId == null) {<NEW_LINE>throw new IllegalArgumentException("The WebSocket 'sessionId' is required in the M...
) -> "Terminating session id '" + sessionId + "'");
1,586,518
private void handleSets(int leftSquareBracket, int index) {<NEW_LINE>boolean isComplementSet = false;<NEW_LINE>HashSet<Character> charactersToComplement = null;<NEW_LINE>List<RangeComplement> rangesToComplement = null;<NEW_LINE>// Handle complement set descriptors<NEW_LINE>// If it is a complement operator, put all cha...
.add(regularExpression[indexInsideBrackets]);
418,529
public int compare(Object o1, Object o2) {<NEW_LINE>// Get Objects to compare<NEW_LINE>Object cmp1 = o1;<NEW_LINE>if (cmp1 instanceof NamePair)<NEW_LINE>cmp1 = ((NamePair) cmp1).getName();<NEW_LINE>Object cmp2 = o2;<NEW_LINE>if (cmp2 instanceof NamePair)<NEW_LINE>cmp2 = ((NamePair) cmp2).getName();<NEW_LINE>// Comparin...
((BigDecimal) cmp2) * m_multiplier;
722,277
private boolean processAsChangeNameEvent(PropertyChangeEvent deleteEvent, PropertyChangeEvent createEvent) {<NEW_LINE>boolean result = false;<NEW_LINE>// swap old bean pointer for new bean.<NEW_LINE>// change name field.<NEW_LINE>CommonDDBean newBean = <MASK><NEW_LINE>NameVisitor nameVisitor = getNameVisitor(newBean);<...
(CommonDDBean) createEvent.getNewValue();
1,263,386
public static DescribeNasFileSystemsResponse unmarshall(DescribeNasFileSystemsResponse describeNasFileSystemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNasFileSystemsResponse.setRequestId(_ctx.stringValue("DescribeNasFileSystemsResponse.RequestId"));<NEW_LINE>describeNasFileSystemsResponse.setSuccess(_ctx.b...
= new ArrayList<FileSystem>();
259,133
public void authenticate(AuthenticationFlowContext context) {<NEW_LINE>String existingUserId = context.getAuthenticationSession(<MASK><NEW_LINE>if (existingUserId != null) {<NEW_LINE>UserModel existingUser = AbstractIdpAuthenticator.getExistingUser(context.getSession(), context.getRealm(), context.getAuthenticationSess...
).getAuthNote(AbstractIdpAuthenticator.EXISTING_USER_INFO);
367,937
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select istream avg(price) as aprice, symbol from SupportMarketDataBean" + "#length(2) group by symbol";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = "aprice,symbol".split(",");<NEW_LINE>sendEvent(e...
, { 4.0, "B" } });
1,452,395
private PartitionInfo extractPartitionInfoFromSegmentZKMetadataZNRecord(String segment, @Nullable ZNRecord znRecord) {<NEW_LINE>if (znRecord == null) {<NEW_LINE>LOGGER.warn("Failed to find segment ZK metadata for segment: {}, table: {}", segment, _tableNameWithType);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String par...
getColumnPartitionMap().get(_partitionColumn);
1,066,945
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.getLibrary().hasCards()...
getIdName(), cards, game);