idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,096,806
private ClspMethod readMethod(DataInputStream in, ClassInfo clsInfo) throws IOException {<NEW_LINE>String name = readString(in);<NEW_LINE>List<ArgType> argTypes = readArgTypesList(in);<NEW_LINE>ArgType retType = readArgType(in);<NEW_LINE>List<ArgType> genericArgTypes = readArgTypesList(in);<NEW_LINE>if (genericArgTypes...
ArgType> typeParameters = readArgTypesList(in);
1,678,881
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select theString.* as s0, intPrimitive as a, theString.* as s1, intPrimitive as b from SupportBean#length(3) as theString";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>EventT...
sendBeanEvent(env, "E1", 12);
920,340
public static String[] packagLog(byte[] data, String charset) {<NEW_LINE>String type, content = null;<NEW_LINE>String[] arr = new String[2];<NEW_LINE>arr[0] = (type = MySQLPacket.TO_STRING.get(data[4])) == null ? "UNKNOWN" : type;<NEW_LINE>arr[1] = null;<NEW_LINE>try {<NEW_LINE>switch(data[4]) {<NEW_LINE>case MySQLPack...
MySQLMessage mm2 = new MySQLMessage(data);
1,242,083
public IArchimateModel createNewModel() throws IOException {<NEW_LINE>File file = getTempModelFile();<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IArchimateModel model = IEditorModelManager.INSTANCE.openModel(file);<NEW_LINE>if (model != null) {<NEW_LINE>// New name<NEW_LINE...
model.setVersion(ModelVersion.VERSION);
20,220
public void doFormat(int depth, Hints formatOption, FormatWriter writer) throws IOException {<NEW_LINE>this.parent.doFormat(depth, formatOption, writer);<NEW_LINE>if (this.parent instanceof EnterRouteVariable) {<NEW_LINE>RouteType routeType = ((EnterRouteVariable) parent).getRouteType();<NEW_LINE>SpecialType specialTyp...
write(specialType.getCode());
1,528,843
public Object visit(ASTConstructorDeclaration node, Object data) {<NEW_LINE>if (!(getCurrentEvalPackage() instanceof NullEvalPackage)) {<NEW_LINE>// only evaluate if we have an eval package for this class<NEW_LINE>List<MethodInvocation> calledMethodsOfConstructor = new ArrayList<>();<NEW_LINE>ConstructorHolder ch = new...
).calledMethods.addAll(calledMethodsOfConstructor);
35,103
public static BulkUpdateRequest fromJSON(JsonReader jsonReader) {<NEW_LINE>JsonReader operations = jsonReader.readJsonObject("operations");<NEW_LINE>List<String> usersToAdd = new ArrayList<>();<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> rolesToAdd = new ArrayList<>();<NEW_LINE>List<String> rolesToRemove = new A...
usersToRemove = new ArrayList<>();
1,728,785
public synchronized SystemInfo execute() {<NEW_LINE>SystemInfo systemInfo = new SystemInfo();<NEW_LINE>systemInfo.setCollectTime(System.currentTimeMillis());<NEW_LINE>try {<NEW_LINE>BandWidth networkUsage = getNetworkUsage();<NEW_LINE>BandWidth bandWidth = networkUsage.adjust(prev.getBandWidth());<NEW_LINE>systemInfo.s...
"Error while getting system perf data: {}", e.getMessage());
779,409
public <A> SimpleGaussianContinuousUncertainObject newFeatureVector(Random rand, A array, NumberArrayAdapter<?, A> adapter) {<NEW_LINE>final int dim = adapter.size(array);<NEW_LINE>double[] min = new double[dim], max = new double[dim];<NEW_LINE>if (symmetric) {<NEW_LINE>for (int i = 0; i < dim; ++i) {<NEW_LINE>double v...
* (maxDev - minDev) + minDev;
808,811
final GetControlResult executeGetControl(GetControlRequest getControlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getControlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
787,071
public void deleteQueueForStream(InlongGroupInfo groupInfo, InlongStreamInfo streamInfo, String operator) {<NEW_LINE>Preconditions.checkNotNull(groupInfo, "inlong group info cannot be null");<NEW_LINE>Preconditions.checkNotNull(streamInfo, "inlong stream info cannot be null");<NEW_LINE>String groupId = streamInfo.getIn...
info("success to delete pulsar resource for groupId={}, streamId={}", groupId, streamId);
1,604,034
public void marshall(EventsBatch eventsBatch, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (eventsBatch.getEndpoint() != null) {<NEW_LINE>PublicEndpoint endpoint = eventsBatch.getEndpoint();<NEW_LINE>jsonWriter.name("Endpoint");<NEW_LINE>PublicEndpointJsonMarshaller.getIns...
).marshall(eventsValue, jsonWriter);
270,205
/* Build call for throttlingPoliciesApplicationPolicyIdPut */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesApplicationPolicyIdPutCall(String policyId, ApplicationThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener...
= new ArrayList<Pair>();
862,807
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "SortWindow");<NEW_LINE>int inputFieldCount = getInput().getRowType().getFieldCount();<NEW_LINE>for (Ord<RelDataTypeField> field : Ord.zip(getInput().getRowType().getFieldList())) {<NEW_LINE>String fieldName = getRowType()....
constants.size() > 0);
114,543
public void uncaughtException(Thread thread, final Throwable arg1) {<NEW_LINE>Log.e("AndroidRuntime", getErrorInfo(arg1));<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>super.run();<NEW_LINE>Looper.prepare();<NEW_LINE>String errorinfo = getErrorInfo(arg1);<NEW_LINE>String[] ...
os.Process.myPid());
633,977
void updateHub(Graph graph, double[] newValues, double[] authValues, boolean isDirected, Map<Node, Integer> indices) {<NEW_LINE>double norm = 0;<NEW_LINE>for (Node p : indices.keySet()) {<NEW_LINE>double hub = 0;<NEW_LINE>EdgeIterable edge_iter;<NEW_LINE>if (isDirected) {<NEW_LINE>edge_iter = ((DirectedGraph<MASK><NEW_...
) graph).getOutEdges(p);
1,150,869
public void alert(Anomaly anomaly, boolean autoFixTriggered, long selfHealingStartTime, AnomalyType anomalyType) {<NEW_LINE>super.alert(anomaly, autoFixTriggered, selfHealingStartTime, anomalyType);<NEW_LINE>if (_msTeamsWebhook == null) {<NEW_LINE>LOG.warn("MSTeams webhook is null, can't send MSTeams self healing notif...
("Self Healing start time", utcDateFor(selfHealingStartTime));
794,267
public int encryptData(byte[] buff, int start, int len) throws ZipException {<NEW_LINE>if (finished) {<NEW_LINE>// A non 16 byte block has already been passed to encrypter<NEW_LINE>// non 16 byte block should be the last block of compressed data in AES encryption<NEW_LINE>// any more encryption will lead to corruption ...
update(buff, j, loopCount);
1,350,618
private int sendRedirects(final ArrayList<ClusterSession> redirectSessions, final long nowNs) {<NEW_LINE>int workCount = 0;<NEW_LINE>for (int lastIndex = redirectSessions.size() - 1, i = lastIndex; i >= 0; i--) {<NEW_LINE>final ClusterSession session = redirectSessions.get(i);<NEW_LINE>final EventCode eventCode = Event...
int leaderId = leaderMember.id();
116,962
protected void initListeners() {<NEW_LINE>super.initListeners();<NEW_LINE>binding.detailTitleRootLayout.setOnClickListener(this);<NEW_LINE>binding.detailTitleRootLayout.setOnLongClickListener(this);<NEW_LINE>binding.detailUploaderRootLayout.setOnClickListener(this);<NEW_LINE>binding.detailUploaderRootLayout.setOnLongCl...
binding.overlayThumbnail.setOnClickListener(this);
434,107
public static void main(String[] args) throws IOException {<NEW_LINE>// Model converters will be loaded based on naming convention.<NEW_LINE>// Previously it would be loaded through ServiceLoader.load,<NEW_LINE>// which is still an option if dsljson.configuration name is specified.<NEW_LINE>// DSL-JSON loads all servic...
ImmutablePerson("first name", "last name", 35);
1,208,378
private void init(Hashtable toCopy) {<NEW_LINE>type = (String) toCopy.get("type");<NEW_LINE>attribution = (String) toCopy.get("attribution");<NEW_LINE>message = (String) toCopy.get("message");<NEW_LINE>linkUrl = (String) toCopy.get("link");<NEW_LINE>linkDescription = (String) toCopy.get("description");<NEW_LINE>Hashtab...
likesObj = toCopy.get("likes");
1,574,311
protected boolean handleResourceRequest(HttpServletResponse theResponse, ServletRequestDetails theRequestDetails, String requestPath) throws IOException {<NEW_LINE>if (requestPath.equals("/swagger-ui/") || requestPath.equals("/swagger-ui/index.html")) {<NEW_LINE>serveSwaggerUiHtml(theRequestDetails, theResponse);<NEW_L...
substring("/swagger-ui/".length());
1,375,435
private void exportTemplateAccounts(XmlSerializer xmlSerializer, Collection<Account> accountList) throws IOException {<NEW_LINE>for (Account account : accountList) {<NEW_LINE>xmlSerializer.startTag(null, GncXmlHelper.TAG_ACCOUNT);<NEW_LINE>xmlSerializer.attribute(null, GncXmlHelper.ATTR_KEY_VERSION, GncXmlHelper.BOOK_V...
endTag(null, GncXmlHelper.TAG_ACCT_TYPE);
1,675,249
private // wayne 10<NEW_LINE>void rangeLookupCSV(String[] args) {<NEW_LINE>String filePath = Constants.FILES_PATH + args[0];<NEW_LINE>In in = new In(filePath);<NEW_LINE>int keyField = Integer.parseInt(args[1]);<NEW_LINE>int valueField = Integer<MASK><NEW_LINE>RedBlackBST<String, String> symbolTable = new RedBlackBST<>(...
.parseInt(args[2]);
375,791
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyWindowVS#keepall as select * from VarStream", path);<NEW_LINE>env.compileDeploy("@name('window') @public create window MyWindowVSTwo#keepall as MyWindowVS", path);<NEW_LI...
sendEventBean(new SupportBean_A("A1"));
1,077,533
public InlineResponse200 leaderboardGetName() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/leaderboard/name";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams <MASK><NEW_LINE>...
= new ArrayList<Pair>();
292,880
public <T2, R1, R2, R3, R> Maybe<Active<W, R>> forEach4(final Function<? super T, ? extends Higher<W, R1>> value1, final BiFunction<? super T, ? super R1, ? extends Higher<W, R2>> value2, final Function3<? super T, ? super R1, ? super R2, ? extends Higher<W, R3>> value3, final Function4<? super T, ? super R1, ? super R...
monadZero().orElse(null);
1,315,190
private PulsarSerializationSchema<RowData> createPulsarSerializer(SerializationSchema<RowData> keySerialization, SerializationSchema<RowData> valueSerialization) {<NEW_LINE>final List<LogicalType> physicalChildren = physicalDataType.getLogicalType().getChildren();<NEW_LINE>final RowData.FieldGetter[] keyFieldGetters = ...
, valueProjection), formatType, delayMilliseconds);
835,427
protected void insertSetContextCalls(InstructionGroup group, int localVarIx) {<NEW_LINE>InsnList instructions = group.getInstructions();<NEW_LINE>for (InstructionGraphNode node : group.getNodes()) {<NEW_LINE>if (node.isCallOnContextAware()) {<NEW_LINE>AbstractInsnNode insn = node.getInstruction();<NEW_LINE>if (node.get...
new VarInsnNode(ALOAD, localVarIx));
752,690
public boolean performOk() {<NEW_LINE>TextProxy.service.setLimit(CastUtil.cint(service.getText()));<NEW_LINE>TextProxy.sql.setLimit(CastUtil.cint(sql.getText()));<NEW_LINE>TextProxy.method.setLimit(CastUtil.cint(method.getText()));<NEW_LINE>TextProxy.error.setLimit(CastUtil.cint(error.getText()));<NEW_LINE>TextProxy.ap...
(subcall.getText()));
719,872
void vex3(Instruction instruction) {<NEW_LINE>if ((((state_zs_flags & StateFlags.HAS_REX) | state_zs_mandatoryPrefix) & invalidCheckMask) != 0)<NEW_LINE>setInvalidInstruction();<NEW_LINE>state_zs_flags &= ~StateFlags.W;<NEW_LINE>int b2 = readByte();<NEW_LINE>state_zs_flags |= b2 & 0x80;<NEW_LINE>state_vectorLength = (b...
b2 >>> 3) & 0x0F;
982,905
public void onSensorChanged(SensorEvent event) {<NEW_LINE>// Attention : sensor produces a lot of events & can hang the system<NEW_LINE>if (inUpdateValue) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>if (!sensorRegistered) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inUpdateValue = true;<NEW_LINE>tr...
mRotationM, new float[3]);
1,704,574
public void paintChart(Graphics g) {<NEW_LINE>synchronized (ChartModelBase.STATIC_MUTEX) {<NEW_LINE>// GanttGraphicArea.super.paintComponent(g);<NEW_LINE>ChartModel model = myChartModel;<NEW_LINE>model.setBottomUnitWidth(getViewState().getBottomUnitWidth());<NEW_LINE>var rowHeight = Math.max(model.calculateRowHeight(),...
> visibleTasks = myTaskTableConnector.getVisibleTasks();
1,078,769
public AclSubject createFrom(final Subject subject) {<NEW_LINE>if (null == subject) {<NEW_LINE>throw new NullPointerException("subject is null");<NEW_LINE>}<NEW_LINE>Set<? extends Principal> userPrincipals = subject.getPrincipals(userType);<NEW_LINE>final String username;<NEW_LINE>if (userPrincipals.size() > 0) {<NEW_L...
urnsPrincipals = subject.getPrincipals(urnType);
1,468,577
private void loadNode979() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_AddReferencesCount, new QualifiedName(0, "AddReferencesCount"), new LocalizedText("en", "AddReferencesCount"), LocalizedText.NULL_VALUE, UInteger.v...
this.nodeManager.addNode(node);
257,099
CompletableFuture<PTable<ByteBuf, ByteBuf>> refreshRangeSpaces(HashStreamRanges newRanges) {<NEW_LINE>// compare the ranges to see if it requires an update<NEW_LINE><MASK><NEW_LINE>if (null != oldRanges && oldRanges.getMaxRangeId() >= newRanges.getMaxRangeId()) {<NEW_LINE>log.info("No new stream ranges found for stream...
HashStreamRanges oldRanges = rangeRouter.getRanges();
900,613
public void collectViewUpdates(JavaOnlyMap propsMap) {<NEW_LINE>for (Map.Entry<String, Integer> entry : mPropMapping.entrySet()) {<NEW_LINE>@Nullable<NEW_LINE>AnimatedNode node = mNativeAnimatedNodesManager.<MASK><NEW_LINE>if (node == null) {<NEW_LINE>throw new IllegalArgumentException("Mapped style node does not exist...
getNodeById(entry.getValue());
1,436,321
public org.eclipse.jetty.io.Connection newConnection(EndPoint endPoint, Map<String, Object> context) throws IOException {<NEW_LINE>SSLEngine engine;<NEW_LINE>SocketAddress remote = (SocketAddress) context.get(ClientConnector.REMOTE_SOCKET_ADDRESS_CONTEXT_KEY);<NEW_LINE>if (remote instanceof InetSocketAddress) {<NEW_LIN...
context.put(SSL_ENGINE_CONTEXT_KEY, engine);
629,842
public PurchaseOrder purchaseOrderLineProcess(Invoice invoice, InvoiceLine invoiceLine) throws AxelorException {<NEW_LINE><MASK><NEW_LINE>if (purchaseOrderLine == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PurchaseOrder purchaseOrder = purchaseOrderLine.getPurchaseOrder();<NEW_LINE>BigDecimal invoicedAmountToAdd...
PurchaseOrderLine purchaseOrderLine = invoiceLine.getPurchaseOrderLine();
1,411,739
public NicIpConfigurationImpl primaryIPConfiguration() {<NEW_LINE>NicIpConfigurationImpl primaryIPConfig = null;<NEW_LINE>if (this.nicIPConfigurations.size() == 0) {<NEW_LINE>// If no primary IP config found yet, then create one automatically, otherwise the NIC is in a bad state<NEW_LINE>primaryIPConfig = prepareNewNic...
innerModel().withPrimary(true);
103,830
public void visitSerializableProperties(final Object object, final JavaBeanProvider.Visitor visitor) {<NEW_LINE>final PropertyDescriptor[] propertyDescriptors = getSerializableProperties(object);<NEW_LINE>for (final PropertyDescriptor property : propertyDescriptors) {<NEW_LINE>ErrorWritingException ex = null;<NEW_LINE>...
"Cannot get property", e.getTargetException());
1,000,114
public void addDebugTask(String qid, List<String> docIds, JsonNode jsonQuery) {<NEW_LINE>if (debugTasks.containsKey(qid))<NEW_LINE>throw new IllegalArgumentException("existed qid");<NEW_LINE>debugTasks.put(qid, pool.submit(() -> {<NEW_LINE>List<FeatureExtractor> localExtractors = new ArrayList<>();<NEW_LINE>for (Featur...
(docId, features, time));
1,205,360
public SyncQueueVO queue(final String syncObjType, final long syncObjId, final String itemType, final long itemId, final long queueSizeLimit) {<NEW_LINE>try {<NEW_LINE>return Transaction.execute(new TransactionCallback<SyncQueueVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public SyncQueueVO doInTransaction(Transaction...
_syncQueueDao.find(syncObjType, syncObjId);
1,508,165
public static TakeBreakResponse unmarshall(TakeBreakResponse takeBreakResponse, UnmarshallerContext _ctx) {<NEW_LINE>takeBreakResponse.setRequestId(_ctx.stringValue("TakeBreakResponse.RequestId"));<NEW_LINE>takeBreakResponse.setCode<MASK><NEW_LINE>takeBreakResponse.setHttpStatusCode(_ctx.integerValue("TakeBreakResponse...
(_ctx.stringValue("TakeBreakResponse.Code"));
1,678,548
private void listenForInitSessionEventsToReactNative(ReactApplicationContext reactContext) {<NEW_LINE>mInitSessionFinishedEventReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>RNBranchModule mBranchModule;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context, Intent intent) {<NEW_LINE>fina...
mInitSessionFinishedEventReceiver, new IntentFilter(NATIVE_INIT_SESSION_FINISHED_EVENT));
639,385
private void createMethodMemoryBlocks(Program program, ByteProvider provider, ClassFileJava classFile, TaskMonitor monitor) {<NEW_LINE>AbstractConstantPoolInfoJava[] constantPool = classFile.getConstantPool();<NEW_LINE>MethodInfoJava[] methods = classFile.getMethods();<NEW_LINE>monitor.setMessage("Processing Methods......
start = start.add(1);
1,423,010
public static List<String> tokenize(String source, String separator) {<NEW_LINE>if (separator.length() == 1) {<NEW_LINE>// slightly faster<NEW_LINE>return tokenize(source<MASK><NEW_LINE>}<NEW_LINE>ArrayList<String> tokenized = new ArrayList<String>();<NEW_LINE>int len = source.length();<NEW_LINE>StringBuilder buf = new...
, separator.charAt(0));
1,673,350
private String generateIntFieldAccessor(int fieldNum) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>String fieldName = substituteInvalidChars(objectSchema.getFieldName(fieldNum));<NEW_LINE>builder.append(" public int get").append(uppercase(fieldName)).append("(int ordinal) {\n");<NEW_LINE>builder....
fieldName)).append("Boxed(int ordinal) {\n");
382,266
private RollingUpdateOp rollingUpdateTimedoutError(final RollingUpdateOpFactory opFactory, final String host, final JobId jobId, final TaskStatus taskStatus) {<NEW_LINE>final List<TaskStatus.State> previousJobStates = getPreviousJobStates(jobId, host, 10);<NEW_LINE>final String baseError = "timed out waiting for job " ...
host, RollingUpdateError.TIMED_OUT_WAITING_FOR_JOB_TO_REACH_RUNNING, metadata);
1,051,972
private boolean createKeymapCopyIfNeeded() {<NEW_LINE>if (mySelectedKeymap.canModify())<NEW_LINE>return true;<NEW_LINE>final KeymapImpl selectedKeymap = getSelectedKeymap();<NEW_LINE>if (selectedKeymap == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>KeymapImpl newKeymap = selectedKeymap.deriveKeymap();<NEW_LINE>S...
insertElementAt(newKeymap, indexOf + 1);
1,765,040
public SofaTracerSpan cloneInstance() {<NEW_LINE>SofaTracerSpanContext spanContext = this.sofaTracerSpanContext.cloneInstance();<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>tags.putAll(this.tagsWithBool);<NEW_LINE>tags.putAll(this.tagsWithStr);<NEW_LINE>tags.putAll(this.tagsWithNumber);<NEW_LINE>SofaTracerSpan cloneSp...
tags = new HashMap<>();
923,943
public static Object unmarshalString(String str, JAXBContext jc) throws JAXBException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Unmarshalling '" + str + "'");<NEW_LINE>// log.debug("using context '" + jc.getClass().getName() + "'"); // which JAXB implementation?<NEW_LINE>}<NEW_LINE>// Uncomment the fol...
jc, eventHandler, document, ue);
236,861
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyWindowMerge#keepall as (p0 string, p1 string)", path);<NEW_LINE>env.compileExecuteFAFNoResult("insert into MyWindowMerge select 'a' as p0, 'b' as p1", path);<NEW_LINE>env...
.sendEventBean(new SupportBean());
988,361
private static CommandLine parseArgs(String[] args) {<NEW_LINE>Options options = new Options();<NEW_LINE>Option telemetryAllFrom = new Option("telemetryFrom", "telemetryFrom", true, "telemetry source file");<NEW_LINE>telemetryAllFrom.setRequired(true);<NEW_LINE>options.addOption(telemetryAllFrom);<NEW_LINE>Option lates...
"partitionsOut", "partitionsOut", true, "partitions save dir");
1,162,515
private Mono<Response<RemediationInner>> createOrUpdateAtSubscriptionWithResponseAsync(String remediationName, RemediationInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
1,695,976
private static String serializeHistogram(QuantileDigest digest) {<NEW_LINE>int buckets = 100;<NEW_LINE>long min = digest.getMin();<NEW_LINE>long max = digest.getMax();<NEW_LINE>long bucketSize = (max - min + buckets) / buckets;<NEW_LINE>ImmutableList.Builder<Long> boundaryBuilder = ImmutableList.builder();<NEW_LINE>for...
counts = digest.getHistogram(boundaries);
1,001,806
private // So, request without user-agent and Pulsar-CPP-vX (X < 1.21) must be rejected<NEW_LINE>void validateClientVersion() {<NEW_LINE>if (!pulsar().getConfiguration().isClientLibraryVersionCheckEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String <MASK><NEW_LINE>if (StringUtils.isBlank(userAgent)) {<NEW_LI...
userAgent = httpRequest.getHeader("User-Agent");
1,373,671
public void run(RegressionEnvironment env) {<NEW_LINE>// test for ESPER-185<NEW_LINE>String[] fields = "mycount".split(",");<NEW_LINE>String epl = "@name('s0') select irstream count(price) as mycount " + "from SupportMarketDataBean#length(5) " + "group by symbol, price";<NEW_LINE>env.compileDeploy(epl).addListener("s0"...
sendEvent(env, SYMBOL_DELL, 10);
1,647,391
private String createQuery() {<NEW_LINE>Calendar prevDayQuery = (Calendar) prevDay.clone();<NEW_LINE>// NON-NLS<NEW_LINE>String // NON-NLS<NEW_LINE>query = // NON-NLS<NEW_LINE>"(dir_type = " + TskData.TSK_FS_NAME_TYPE_ENUM.REG.getValue() + ")" + " AND (known IS NULL OR known != 1) AND (";<NEW_LINE>long lowerLimit = pre...
add(Calendar.DATE, 1);
1,137,628
public void unlock() {<NEW_LINE>final byte[] internalKey = getInternalKey();<NEW_LINE>final Acquirer acquirer = getAcquirer();<NEW_LINE>try {<NEW_LINE>final Owner owner = this.rheaKVStore.releaseLockWith(internalKey, acquirer).get();<NEW_LINE>updateOwner(owner);<NEW_LINE>if (!owner.isSameAcquirer(acquirer)) {<NEW_LINE>...
, StackTraceUtil.stackTrace(e));
500,163
private void load() throws FileNotFoundException {<NEW_LINE>if (files == null && subdirs == null) {<NEW_LINE>if (!directory.exists() || !directory.isDirectory()) {<NEW_LINE>files = new ArrayList<File>();<NEW_LINE>subdirs = new ArrayList<Directory>();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File[] listFiles = directory.lis...
= new ArrayList<Directory>();
1,633,987
private void activateWindow(PlumberAPIParams params) {<NEW_LINE>WindowEx win = satelliteManager_.getSatelliteWindowObject(PlumberAPISatellite.NAME);<NEW_LINE>boolean isRefresh = win != null && (params == null || (params_ != null && StringUtil.equals(params.getPath(), params_.getPath())));<NEW_LINE>boolean isChrome = !D...
PlumberAPISatellite.NAME, params_, true);
973,608
private void mergeFromField(final Map.Entry<T, Object> entry) {<NEW_LINE>final T descriptor = entry.getKey();<NEW_LINE>Object otherValue = entry.getValue();<NEW_LINE>if (otherValue instanceof LazyField) {<NEW_LINE>otherValue = ((LazyField) otherValue).getValue();<NEW_LINE>}<NEW_LINE>if (descriptor.isRepeated()) {<NEW_L...
(descriptor, cloneIfMutable(otherValue));
1,239,912
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see freeplane.extensions.NodeHook#invoke(freeplane.modes.MindMapNode,<NEW_LINE>* java.util.List)<NEW_LINE>*/<NEW_LINE>public void actionPerformed(final ActionEvent e) {<NEW_LINE>final NodeModel selectedNode = Controller.getCurrentModeController().getMapController().getSelectedNod...
selectedNode, true, false, false);
314,023
public BufferedImage filter(final BufferedImage src, BufferedImage dst) {<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final int type = src.getType();<NEW_LINE>final WritableRaster srcRaster = src.getRaster();<NEW_LINE>if (dst == null) {<NEW_LINE>dst = createCompatibl...
, y, inPixels[x]);
621,923
public void start() {<NEW_LINE>// init position file. If file is not exists, create it<NEW_LINE>String rootMetaPath = this.getConfigManager().<MASK><NEW_LINE>IOHelper.createFolder(rootMetaPath);<NEW_LINE>positionFilePath = rootMetaPath + File.separator + POSITION_FILE;<NEW_LINE>taskFilePath = rootMetaPath + File.separa...
getContext(IConfigurationManager.METADATAPATH) + "collectdata";
231,275
public Regressor convertToOutput(Tensor tensor, ImmutableOutputInfo<Regressor> outputIDInfo) {<NEW_LINE>FloatNdArray predictions = getBatchPredictions(tensor, outputIDInfo.size());<NEW_LINE>long[] shape = predictions.shape().asArray();<NEW_LINE>if (shape[0] != 1) {<NEW_LINE>throw new IllegalArgumentException("Supplied ...
return new Regressor(names, values);
699,992
private TruffleNode parseNode(StringLineReader slr) {<NEW_LINE>String className = slr.nextLine();<NEW_LINE>String description = slr.nextLine();<NEW_LINE>String sourceURI;<NEW_LINE>int l1, c1, l2, c2;<NEW_LINE>String ss = slr.nextLine();<NEW_LINE>if (ss.isEmpty()) {<NEW_LINE>sourceURI = null;<NEW_LINE>l1 = c1 = l2 = c2 ...
ss.indexOf(':', i1);
1,810,648
private void loadNode538() {<NEW_LINE>SessionSecurityDiagnosticsArrayTypeNode node = new SessionSecurityDiagnosticsArrayTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_SessionSecurityDiagnosticsArray, new QualifiedName(0, "SessionSecurityDiagnosticsArray"), new LocalizedText("en", "SessionSecurityDiag...
this.nodeManager.addNode(node);
1,742,340
public static ProgressDialogDescriptor createProgressDialog(String title, ProgressHandle handle, ActionListener cancelationListener) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>Component <MASK><NEW_LINE>JLabel label = ProgressHandleFactory.createDetailLabelComponent(handle);<NEW_LINE>JPanel panel...
progress = ProgressHandleFactory.createProgressComponent(handle);
1,832,487
public okhttp3.Call apisApiIdSdksLanguageGetCall(String apiId, String language, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/sdks/{language}".replaceAll("\\{" + "api...
localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
295,785
protected void read(FileAccessor fa, DirectByteBuffer buffer, long position) throws FMFileManagerException {<NEW_LINE>int original_limit = buffer.limit(SS);<NEW_LINE>try {<NEW_LINE>int len = original_limit - buffer.position(SS);<NEW_LINE>// System.out.println( "compact: read - " + position + "/" + len );<NEW_LINE>// de...
buffer.limit(SS, original_limit);
1,567,973
public void intern(@Nonnull ClassDef classDef) {<NEW_LINE>PoolClassDef poolClassDef = new PoolClassDef(classDef);<NEW_LINE>PoolClassDef prev = internedItems.put(poolClassDef.getType(), poolClassDef);<NEW_LINE>if (prev != null) {<NEW_LINE>throw new ExceptionWithContext("Class %s has already been interned", poolClassDef....
dexPool.encodedArraySection.intern(staticInitializers);
1,638,743
private Eh107CacheManager createCacheManager(URI uri, Configuration config, Properties properties) {<NEW_LINE>Collection<ServiceCreationConfiguration<?, ?><MASK><NEW_LINE>Jsr107Service jsr107Service = new DefaultJsr107Service(ServiceUtils.findSingletonAmongst(Jsr107Configuration.class, serviceCreationConfigurations));<...
> serviceCreationConfigurations = config.getServiceCreationConfigurations();
354,718
static Long nextEvent_start(ContentResolver contentResolver, long calendar_id) {<NEW_LINE>final String[] EVENT_PROJECTION = new String[] { // 0<NEW_LINE>// 1<NEW_LINE>CalendarContract.Events._ID, // 2<NEW_LINE>CalendarContract.Events.DTSTART, CalendarContract.Events.DTEND };<NEW_LINE>Calendar calendar = Calendar.getIns...
long current_time = calendar.getTimeInMillis();
1,629,760
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UUID sid;<NEW_LINE>try {<NEW_LINE>sid = UUID.f...
getInstance().getTxnClientSession(sid);
1,721,853
List<Tag> readTags(Tag[] tagsArray, byte numberOfTags) {<NEW_LINE>List<Tag> tags = new ArrayList<>();<NEW_LINE>tagIds.clear();<NEW_LINE>int maxTag = tagsArray.length;<NEW_LINE>for (byte tagIndex = numberOfTags; tagIndex != 0; --tagIndex) {<NEW_LINE>int tagId = readUnsignedInt();<NEW_LINE>if (tagId < 0 || tagId >= maxTa...
String.valueOf(readByte());
1,263,552
protected void write(ClassWriter classWriter, MethodWriter methodWriter, WriteScope writeScope) {<NEW_LINE>methodWriter.writeStatementOffset(getLocation());<NEW_LINE>Variable variable = writeScope.defineVariable(variableType, variableName);<NEW_LINE>Variable array = writeScope.defineInternalVariable(arrayType, arrayNam...
writeScope.defineInternalVariable(indexType, indexName);
869,264
protected Proxy validateProxyConfigFields() {<NEW_LINE>boolean isConfigValid = true;<NEW_LINE>int proxyTypeId = ((RadioGroup) mProxyConfigDialog.findViewById(R.id.proxy_type)).getCheckedRadioButtonId();<NEW_LINE>if (proxyTypeId == -1) {<NEW_LINE>isConfigValid = false;<NEW_LINE>appendStatusMessage(R.string.proxy_type_in...
appendStatusMessage(R.string.proxy_credentials_invalid);
1,455,190
private Predicate toFilterPredicate(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Draft.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Draft> cq = cb.createQuery(Draft.class);<NEW_LIN...
wi.getStartTime())));
1,077,682
protected SchemaRegistryClient client() {<NEW_LINE>if (null == this.client) {<NEW_LINE>Map<String, String> config = new HashMap<>();<NEW_LINE>if (configs != null && !configs.isEmpty()) {<NEW_LINE>config.putAll(configs);<NEW_LINE>}<NEW_LINE>if (userInfoConfig != null) {<NEW_LINE>// Note that BASIC_AUTH_CREDENTIALS_SOURC...
put(SchemaRegistryClientConfig.BASIC_AUTH_CREDENTIALS_SOURCE, "USER_INFO");
1,161,216
public void init(IExportDialogAdapter adapter, Composite container, IFigure figure) {<NEW_LINE>setFigure(figure);<NEW_LINE>container.setLayout(new GridLayout(8, false));<NEW_LINE>container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));<NEW_LINE>fSetViewboxButton = new Button(container, SWT.CHECK);<NEW_LINE>fSet...
fSpinner3.setSelection(viewPortBounds.width);
727,256
FloatBuffer mergeSortIn(final FloatBuffer bufIn) {<NEW_LINE>if (!sorted_ || !bufIn.isSorted()) {<NEW_LINE>throw new SketchesArgumentException("Both buffers must be sorted.");<NEW_LINE>}<NEW_LINE>// may be larger than its item count.<NEW_LINE>final float[] arrIn = bufIn.getArray();<NEW_LINE>final int bufInLen = bufIn.ge...
k] = arrIn[j--];
1,621,643
public OsStats osStats() {<NEW_LINE>final long uptime = -1L;<NEW_LINE>final double systemLoadAverage = ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage();<NEW_LINE>final double[] loadAverage = systemLoadAverage < 0.0d ? new double[0] : new double[] { systemLoadAverage };<NEW_LINE>final Processor proces...
1L, -1L, -1L);
735,572
private boolean areSinglesFoundInData(AuditData auditResults, SearchPatternsSingleton searchPatterns) throws Exception {<NEW_LINE>String thisMethod = "areSinglesFoundInData";<NEW_LINE>boolean searchedOnce = false;<NEW_LINE>String firstSearchedSequenceNum, lastSearchedSequenceNum = "notSet";<NEW_LINE>for (String auditEn...
logClass, thisMethod, "----- Started searching audit log at eventSequenceNumber: " + firstSearchedSequenceNum);
307,751
private void migrateFunds(Keccak256 rskTxHash, Wallet retiringFederationWallet, Address activeFederationAddress, List<UTXO> availableUTXOs) throws IOException {<NEW_LINE>ReleaseTransactionSet releaseTransactionSet = provider.getReleaseTransactionSet();<NEW_LINE>Pair<BtcTransaction, List<UTXO>> <MASK><NEW_LINE>BtcTransa...
createResult = createMigrationTransaction(retiringFederationWallet, activeFederationAddress);
1,763,737
protected void init() {<NEW_LINE>myRoot = new Wrapper();<NEW_LINE>OnePixelSplitter splitter <MASK><NEW_LINE>myRoot.setContent(splitter);<NEW_LINE>myDescriptionPanel = new PluginDescriptionPanel();<NEW_LINE>splitter.setSecondComponent(myDescriptionPanel.getPanel());<NEW_LINE>myTablePanel = new JPanel(new BorderLayout())...
= new OnePixelSplitter(false, 0.5f);
279,772
private void doDrop(@Nonnull TreePath target, PsiElement[] sources) {<NEW_LINE><MASK><NEW_LINE>if (targetElement == null)<NEW_LINE>return;<NEW_LINE>if (DumbService.isDumb(myProject)) {<NEW_LINE>Messages.showMessageDialog(myProject, "Copy refactoring is not available while indexing is in progress", "Indexing", null);<NE...
final PsiElement targetElement = getPsiElement(target);
1,314,825
// Method to create files from directories/files tree in destination<NEW_LINE>private void createFiles(TreeNode node, String namespace, String pod, String container, String srcPath, Path destination) throws IOException, ApiException {<NEW_LINE>if (node == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (TreeNode child...
genericPathBuilder(srcPath, childNode.name);
418,006
public List<AdbMySqlTable> findTable(String schemaName, String[] tableName) throws SQLException {<NEW_LINE>List<<MASK><NEW_LINE>if (tableList.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>//<NEW_LINE>String queryString;<NEW_LINE>Object[] queryArgs;<NEW_LINE>if (StringUtils.isBlank(schemaName...
String> tableList = stringArray2List(tableName);
922,559
public ListBotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBotsResult listBotsResult = new ListBotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
384,920
// Perform preflight checks on the given node.<NEW_LINE>public String performPreflightCheck(Cluster cluster, NodeDetails currentNode, @Nullable UUID rootCA, @Nullable UUID clientRootCA) {<NEW_LINE>if (cluster.userIntent.providerType != com.yugabyte.yw.commissioner.Common.CloudType.onprem) {<NEW_LINE>return null;<NEW_LI...
.universeUUID = taskParams().universeUUID;
925,014
void initializeInstrument(Object polyglotInstrument, String instrumentClassName, Supplier<? extends Object> instrumentSupplier) {<NEW_LINE>if (TRACE) {<NEW_LINE>trace("Initialize instrument class %s %n", instrumentClassName);<NEW_LINE>}<NEW_LINE>Env env = new Env(polyglotInstrument, out, err, in, messageInterceptor);<N...
env.instrumenter.instrument, instrumentClassName);
1,444,782
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_LINE>setFocusable(false);<NEW_LINE>gridBagConstraints = new java.awt.GridBag...
= java.awt.GridBagConstraints.NORTHWEST;
720,304
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
611,966
private Mono<PagedResponse<DatabaseInner>> listByClusterSinglePageAsync(String resourceGroupName, String clusterName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_...
error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
593,608
private void handle(final DetachPrimaryStorageFromClusterMsg msg) {<NEW_LINE>final DetachPrimaryStorageFromClusterReply reply = new DetachPrimaryStorageFromClusterReply();<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return getSyncId();...
self = dbf.reload(self);
709,631
static Class<?>[] extractTypeParameters(ParameterizedType genericType) {<NEW_LINE>ParameterizedType parameterizedType = genericType;<NEW_LINE>// e.g. ? extends Number<NEW_LINE>Type[] paramTypes = parameterizedType.getActualTypeArguments();<NEW_LINE>Class<?>[] result = new Class<?>[paramTypes.length];<NEW_LINE>for (int ...
= (GenericArrayType) paramTypes[i];
755,937
final DescribeDatasetResult executeDescribeDataset(DescribeDatasetRequest describeDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);