idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,774,555
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.wsspi.channelfw.InterChannelCallback#error(com.ibm.wsspi.channelfw.VirtualConnection, java.lang.Throwable)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void error(VirtualConnection vc, Throwable t) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<N...
this.in.getReadListener());
534,542
public final PropertyExpressionAtomicContext propertyExpressionAtomic() throws RecognitionException {<NEW_LINE>PropertyExpressionAtomicContext _localctx = new PropertyExpressionAtomicContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 394, RULE_propertyExpressionAtomic);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>e...
_la = _input.LA(1);
455,212
public void loadGroupMembers(GroupInfo groupInfo, int filter, long nextSeq, final IUIKitCallback<GroupInfo> callBack) {<NEW_LINE>if (filter != V2TIMGroupMemberFullInfo.V2TIM_GROUP_MEMBER_FILTER_ALL && filter != V2TIMGroupMemberFullInfo.V2TIM_GROUP_MEMBER_FILTER_OWNER && filter != V2TIMGroupMemberFullInfo.V2TIM_GROUP_ME...
> iterator = members.iterator();
927,611
private // | '{' dict_entry comprehension_suffix '}'<NEW_LINE>Expression parseDictExpression() {<NEW_LINE>int <MASK><NEW_LINE>if (token.kind == TokenKind.RBRACE) {<NEW_LINE>// empty Dict<NEW_LINE>int rbraceOffset = nextToken();<NEW_LINE>return new DictExpression(locs, lbraceOffset, ImmutableList.of(), rbraceOffset);<NE...
lbraceOffset = expect(TokenKind.LBRACE);
839,129
private List<OSProcess> processMapToList(Collection<Integer> pids) {<NEW_LINE>// Get data from the registry if possible<NEW_LINE>Map<Integer, ProcessPerformanceData.PerfCounterBlock> processMap = processMapFromRegistry.get();<NEW_LINE>// otherwise performance counters with WMI backup<NEW_LINE>if (processMap == null || ...
, ThreadPerformanceData.PerfCounterBlock> threadMap = null;
1,491,707
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,366,684
public HiresTileModel rotateByQuaternion(int start, int count, double qx, double qy, double qz, double qw) {<NEW_LINE>double x, y, z, px, py, pz, pw;<NEW_LINE>int end = start + count, index;<NEW_LINE>for (int face = start; face < end; face++) {<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>index = face * FI_POSITION ...
+ qx * y - qy * x;
1,203,278
private void switchTimelines(final Timeline activeTimeline, final Timeline nextTimeline) throws InconsistentStateException, RepositoryProblemException, TimelineException, ConflictException {<NEW_LINE>LOG.<MASK><NEW_LINE>try {<NEW_LINE>timelineSync.startTimelineUpdate(activeTimeline.getEventType(), nakadiSettings.getTim...
info("Switching timelines from {} to {}", activeTimeline, nextTimeline);
825,298
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>output.writeInt32(1, batchSize_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) != 0)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.<MASK><NEW_LINE>}<NEW_LIN...
writeString(output, 2, exporterType_);
257,694
private static void parseNodeList(SqlNode sqlNode, NodeStream stream) {<NEW_LINE>while (stream.hasMore()) {<NEW_LINE>SqlNode childNode;<NEW_LINE>if (stream.match(Node.TEXT_NODE)) {<NEW_LINE>childNode = new TextSqlNode(stream.consume().<MASK><NEW_LINE>} else {<NEW_LINE>if (stream.match("foreach")) {<NEW_LINE>childNode =...
getNodeValue().trim());
13,188
// https://stackoverflow.com/questions/21270892/generate-affinetransform-from-3-points<NEW_LINE>public static AffineTransform deriveAffineTransform(double sourceX1, double sourceY1, double sourceX2, double sourceY2, double sourceX3, double sourceY3, double destX1, double destY1, double destX2, double destY2, double des...
transform.getEntry(0, 0);
817,950
final GetBlueprintsResult executeGetBlueprints(GetBlueprintsRequest getBlueprintsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlueprintsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,270
protected static void loadConfigParameters(Configuration parameters) {<NEW_LINE>int maxSamples = parameters.getInteger(OptimizerOptions.DELIMITED_FORMAT_MAX_LINE_SAMPLES);<NEW_LINE>int minSamples = parameters.getInteger(OptimizerOptions.DELIMITED_FORMAT_MIN_LINE_SAMPLES);<NEW_LINE>if (maxSamples < 0) {<NEW_LINE>LOG.err...
error("Invalid value for the maximum sample record length. Using default value of " + maxLen + '.');
1,209,676
private final static RpcResponse parse(String json, boolean strict) {<NEW_LINE>try {<NEW_LINE>// we first call parseStrict so we can use the browser<NEW_LINE>// json parser (for performance) whenever possible)<NEW_LINE>JSONValue val = JSONParser.parseStrict(json);<NEW_LINE>return val.isObject().getJavaScriptObject().ca...
val = JSONParser.parseLenient(json);
1,535,237
public // the subscription, then a JMSRuntimeException will be thrown.<NEW_LINE>void testCreateSharedNonDurableConsumerWithMsgSelector_JRException(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE><MASK><NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createSharedConsumer(jmsTopic1, "...
JMSContext jmsContext = jmsTCFBindings.createContext();
1,559,716
public void exitOgs_service_object(Ogs_service_objectContext ctx) {<NEW_LINE>if (ctx.predef != null) {<NEW_LINE>String name = ctx.predef.getText();<NEW_LINE>_currentServiceObjectGroup.getLines().add(new ServiceObjectReferenceServiceObjectGroupLine(name));<NEW_LINE>_configuration.getServiceObjects().computeIfAbsent(name...
getLines().add(_currentServiceObject);
1,151,182
public static void writeNodes(final AbstractSQLProvider provider, final int newViewId, final List<INaviViewNode> nodes) throws SQLException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE01992: Provider argument can not be null");<NEW_LINE>Preconditions.checkArgument(newViewId > 0, "IE01993: New View ID argument mu...
provider, nodes, firstNode, functionNodeIndices);
488,328
public void denoise(GrayF32 transform, int numLevels) {<NEW_LINE>int scale = UtilWavelet.computeScale(numLevels);<NEW_LINE>final int h = transform.height;<NEW_LINE>final int w = transform.width;<NEW_LINE>// width and height of scaling image<NEW_LINE>final int innerWidth = w / scale;<NEW_LINE>final int innerHeight = h /...
UtilDenoiseWavelet.universalThreshold(subbandHH, sigma);
590,853
public static List<MDElement> parseMDString(final String mdString) {<NEW_LINE>final List<MDElement> results = new ArrayList<>();<NEW_LINE>final Matcher match = mdPat.matcher(mdString);<NEW_LINE>while (match.find()) {<NEW_LINE>String mg;<NEW_LINE>if (((mg = match.group(1)) != null) && (!mg.isEmpty())) {<NEW_LINE>// It's...
.length() - 1));
725,327
final DeleteOTAUpdateResult executeDeleteOTAUpdate(DeleteOTAUpdateRequest deleteOTAUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOTAUpdateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
516,753
final CreateScriptResult executeCreateScript(CreateScriptRequest createScriptRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createScriptRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateScriptRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
159,302
final UpdateLoadBalancerAttributeResult executeUpdateLoadBalancerAttribute(UpdateLoadBalancerAttributeRequest updateLoadBalancerAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLoadBalancerAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
405,053
public static void main(String[] arg) {<NEW_LINE>if (arg.length != 1) {<NEW_LINE>System.err.println("Usage: java Alt15K <basename>");<NEW_LINE>System.err.println("Files will be saved <basename>-old.log, -med and -new");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String device = null;<NEW_LINE>String[<MASK><NEW_LINE>for (int...
] devices = Alt15K.getNames();
1,788,301
private RunnerApi.Components resolveArtifacts(RunnerApi.Components components) {<NEW_LINE>if (components.getEnvironmentsMap().values().stream().allMatch(env -> env.getDependenciesCount() == 0)) {<NEW_LINE>return components;<NEW_LINE>}<NEW_LINE>ManagedChannel channel = ManagedChannelBuilder.forTarget(endpoint.getUrl())....
retrievalStub = ArtifactRetrievalServiceGrpc.newBlockingStub(channel);
1,286,687
public synchronized void updateJobAfterRetry(@NonNull String id, boolean isRunning, int runAttempt, long nextRunAttemptTime, @NonNull String serializedData) {<NEW_LINE>JobSpec job = getJobById(id);<NEW_LINE>if (job == null || !job.isMemoryOnly()) {<NEW_LINE>jobDatabase.updateJobAfterRetry(id, <MASK><NEW_LINE>}<NEW_LINE...
isRunning, runAttempt, nextRunAttemptTime, serializedData);
1,001,416
private static BooleanBinding notEqualIgnoreCase(final ObservableStringValue op1, final ObservableStringValue op2, final Observable... dependencies) {<NEW_LINE>if ((op1 == null) || (op2 == null)) {<NEW_LINE>throw new NullPointerException("Operands cannot be null.");<NEW_LINE>}<NEW_LINE>assert (dependencies != null) && ...
new ImmutableObservableList<Observable>(dependencies);
760,213
protected double dnrm2(long N, INDArray X, int incX) {<NEW_LINE>Preconditions.checkArgument(X.dataType() == DataType.DOUBLE, "Double dtype expected");<NEW_LINE>Nd4j.getExecutioner().push();<NEW_LINE>double ret;<NEW_LINE>CudaContext ctx = allocator.getFlowController().prepareAction(null, X);<NEW_LINE>CublasPointer cAPoi...
DoublePointer resultPointer = new DoublePointer(0.0f);
1,714,407
public double distance(SparseVector a, SparseVector b) {<NEW_LINE>double dist = 0;<NEW_LINE>double diff;<NEW_LINE>if (a == null || b == null) {<NEW_LINE>throw new IllegalArgumentException("Distance from a null vector is undefined.");<NEW_LINE>}<NEW_LINE>int leftLength = a.numLocations();<NEW_LINE>int rightLength = b.nu...
(b.valueAtLocation(rightIndex));
917,835
protected TSQueryDataSet packBuffer(TSQueryDataSet tsQueryDataSet, PublicBAOS timeBAOS, PublicBAOS[] valueBAOSList, PublicBAOS[] bitmapBAOSList) {<NEW_LINE>int columnsNum = transformers.length;<NEW_LINE>ByteBuffer timeBuffer = ByteBuffer.allocate(timeBAOS.size());<NEW_LINE>timeBuffer.put(timeBAOS.getBuf(), 0, timeBAOS....
valueBufferList = new ArrayList<>();
1,143,734
private Map<String, String> retrieveProperties(Vertex vertex) {<NEW_LINE>boolean isClassificationVertex = vertex.edges(Direction.IN, EDGE_LABEL_CLASSIFICATION).hasNext();<NEW_LINE>Map<String, String> <MASK><NEW_LINE>Iterator<VertexProperty<Object>> originalProperties = vertex.properties();<NEW_LINE>while (originalPrope...
newNodeProperties = new HashMap<>();
424,021
public void read(org.apache.thrift.protocol.TProtocol iprot, LocalStateData struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org....
serialized_parts.put(_key205, _val206);
419,741
public static GetMonitorListResponse unmarshall(GetMonitorListResponse getMonitorListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMonitorListResponse.setRequestId(_ctx.stringValue("GetMonitorListResponse.RequestId"));<NEW_LINE>getMonitorListResponse.setCode(_ctx.stringValue("GetMonitorListResponse.Code"));<NEW_LIN...
("GetMonitorListResponse.Data.Records[" + i + "].NotifierType"));
1,686,348
private void addBreakingQuads(@Nonnull IConduitBundle bundle, @Nonnull List<BakedQuad> quads) {<NEW_LINE>Class<? extends IConduit> conduitType = null;<NEW_LINE>RayTraceResult hit = Minecraft.getMinecraft().objectMouseOver;<NEW_LINE>if (NullHelper.untrust(hit) != null && (hit.hitInfo instanceof CollidableComponent)) {<N...
bound, tex.getSprite());
427,714
private void createButtonPanel(Composite parent) {<NEW_LINE>Composite client = new Composite(parent, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>client.setLayout(layout);<NEW_LINE>GridData gd = new GridData(GridData.VERTICAL_ALIGN...
= new GridData(GridData.FILL_HORIZONTAL);
1,595,257
@NoCache<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public SynchronizationResult syncMapperData(@PathParam("parentId") String parentId, @PathParam("id") String mapperId, @QueryParam("direction") String direction) {<NEW_LINE>auth<MASK><NEW_LINE>ComponentModel parentModel = realm.getComponent(parentId);<NEW_...
.users().requireManage();
197,025
public static void horizontal(GrayF64 input, GrayF64 output, int radius) {<NEW_LINE>final int kernelWidth = radius * 2 + 1;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexIn = input.startIndex + input.stride * y;<NEW_LINE>...
total += input.data[indexIn];
114,717
private void loadHeaderAndData(DataInputStream dis) {<NEW_LINE>try {<NEW_LINE>if (!General.readWord(dis).equals("EST_File") || !General.readWord(dis).equals("Track")) {<NEW_LINE>throw new Error("The given data input stream is not an EST Track file.");<NEW_LINE>}<NEW_LINE>// Read Header<NEW_LINE>String token = General.r...
(General.readWord(dis));
1,517,660
protected void onHandleWork(@Nullable Intent intent) {<NEW_LINE>SharedPreferences preferences = getApplicationContext().getSharedPreferences("Settings", 0);<NEW_LINE>Date nowTime = new Date();<NEW_LINE>Date lastTime = new Date(preferences.getLong("lastSync", nowTime.getTime()));<NEW_LINE>int lastVersion = preferences.g...
"lastTagsVersion", newVersion).apply();
869,937
private void init(Context context) {<NEW_LINE>binding.getRoot().setBackgroundColor(ThemeStore.primaryColor(context));<NEW_LINE>binding.vwBg.setOnClickListener(null);<NEW_LINE>primaryTextColor = MaterialValueHelper.getPrimaryTextColor(context, ColorUtils.isColorLight(ThemeStore.primaryColor(context)));<NEW_LINE>setColor...
binding.ivTimer.getDrawable());
45,118
public HashMap<String, double[]> captureTwo(int samples, double timeGap, String traceOneRemap, boolean trigger) {<NEW_LINE>if (traceOneRemap == null)<NEW_LINE>traceOneRemap = "CH1";<NEW_LINE>this.captureTraces(2, samples, timeGap, traceOneRemap, trigger, null);<NEW_LINE>try {<NEW_LINE>Thread.sleep((long) (1e-6 * this.s...
retData = new HashMap<>();
1,783,767
public void marshall(BatchPrediction batchPrediction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (batchPrediction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(batchPrediction.getJobId(), JOBID_BINDI...
batchPrediction.getArn(), ARN_BINDING);
45,198
private int handleScrollingSubOrientation(int delta) {<NEW_LINE>if (getChildCount() == 0 || delta == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>ensureOrientationHelper();<NEW_LINE>boolean isMainAxisHorizontal = isMainAxisDirectionHorizontal();<NEW_LINE>int parentLength = isMainAxisHorizontal ? mParent.getWidth() : mPa...
? getWidth() : getHeight();
1,069,357
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final XmlDBNode doc = ((XmlDBNode) args[0]);<NEW_LINE>final <MASK><NEW_LINE>final XmlIndexController controller = (XmlIndexController) rtx.getResourceManager().getRtxIndexController(rtx.getRevisionNumber());<NEW_LINE>if (controlle...
NodeReadOnlyTrx rtx = doc.getTrx();
1,456,802
private static double lengthReductionToStayWithinBounds(Point2D centerPoint, double width, double height, Rectangle2D bounds) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>Objects.requireNonNull(bounds, "The specified bounds for the new rectangle must not be null.");<NEW_LINE>boolean center...
Objects.requireNonNull(centerPoint, "The specified center point of the new rectangle must not be null.");
1,396,639
public void mergeTree(final String formatName, final Node root) throws IIOInvalidTreeException {<NEW_LINE>Validate.isTrue(nativeMetadataFormatName.equals(formatName), formatName, "Unsupported metadata format: %s");<NEW_LINE>notNull(root, "root");<NEW_LINE>if (!nativeMetadataFormatName.equals(root.getNodeName())) {<NEW_...
Node node = root.getFirstChild();
1,060,250
protected PlanItemCreationType evaluateReactivationRule(ReactivationRule reactivationRule, CaseInstanceEntity caseInstanceEntity, VariableContainer parentPlanItemInstance) {<NEW_LINE>// first evaluate for an activate condition<NEW_LINE>Boolean condition = evaluateReactivationCondition(reactivationRule.<MASK><NEW_LINE>i...
getActivateCondition(), caseInstanceEntity, parentPlanItemInstance);
1,088,752
private void addActionInOnReceive(EReceiverHolder holder, ExecutableElement executableElement, String methodName, JFieldVar actionsField, JFieldVar dataSchemesField) {<NEW_LINE>String actionsInvoke = getInvocationName(actionsField);<NEW_LINE>IJExpression filterCondition = actionsField.invoke(actionsInvoke).arg(holder.g...
arg(holder.getOnReceiveContext());
1,243,209
private int save(Collection<HugeServerInfo> serverInfos) {<NEW_LINE>return this.call(() -> {<NEW_LINE>if (serverInfos.isEmpty()) {<NEW_LINE>return serverInfos.size();<NEW_LINE>}<NEW_LINE>HugeServerInfo.Schema schema = HugeServerInfo.schema(this.graph);<NEW_LINE>if (!schema.existVertexLabel(HugeServerInfo.P.SERVER)) {<N...
"Schema is missing for %s", HugeServerInfo.P.SERVER);
496,698
public static String translateStringJapaneseToEnglish(String japaneseKanjiString) {<NEW_LINE>StringBuilder englishStringBuilder = new StringBuilder();<NEW_LINE>try {<NEW_LINE>Map<String, String> data = new HashMap<>();<NEW_LINE>data.put("text", japaneseKanjiString);<NEW_LINE>data.put("lang_from", "ja");<NEW_LINE>data.p...
data.put("lang", "en");
184,194
final UpdateDomainEndpointOptionsResult executeUpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest updateDomainEndpointOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainEndpointOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,814,685
// invalidateIt<NEW_LINE>@Override<NEW_LINE>public String prepareIt() {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>MPeriod.testPeriodOpen(getCtx(), getDateAcct(), getC_DocTypeTarget_ID(), getAD_Org_ID());<NEW_LINE>// Lines<NEW_LINE>final MInvoiceLine[] lin...
bpartnerStatsDAO.getCreateBPartnerStats(getC_BPartner_ID());
651,779
public Map<String, String> tableOptions() {<NEW_LINE>Map<String, String> options = super.tableOptions();<NEW_LINE>options.<MASK><NEW_LINE>options.put(KafkaConstant.PROPERTIES_BOOTSTRAP_SERVERS, bootstrapServers);<NEW_LINE>if (format instanceof JsonFormat || format instanceof AvroFormat || format instanceof CsvFormat) {...
put(KafkaConstant.TOPIC, topic);
1,096,294
protected void createHUDocumentsFromTypedModel(final HUDocumentsCollector documentsCollector, final I_DD_Order ddOrder) {<NEW_LINE>final IWarehouseDAO warehouseDAO = Services.get(IWarehouseDAO.class);<NEW_LINE>final IHandlingUnitsDAO handlingUnitsDAO = Services.get(IHandlingUnitsDAO.class);<NEW_LINE>final IHUDocumentFa...
I_M_HU hu = hus.next();
654,149
public NewsBlurResponse markFeedsAsRead(FeedSet fs, Long includeOlder, Long includeNewer) {<NEW_LINE>ValueMultimap values = new ValueMultimap();<NEW_LINE>if (fs.getSingleFeed() != null) {<NEW_LINE>values.put(APIConstants.PARAMETER_FEEDID, fs.getSingleFeed());<NEW_LINE>} else if (fs.getMultipleFeeds() != null) {<NEW_LIN...
.toString(cut / 1000L));
542,050
private void createDesignDocForAggregations() throws URISyntaxException, UnsupportedEncodingException, IOException, ClientProtocolException {<NEW_LINE>HttpResponse response = null;<NEW_LINE>URI uri = new URI(CouchDBConstants.PROTOCOL, null, httpHost.getHostName(), httpHost.getPort(), CouchDBConstants.URL_SEPARATOR + da...
HttpPut put = new HttpPut(uri);
334,688
final DetachLoadBalancersResult executeDetachLoadBalancers(DetachLoadBalancersRequest detachLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
889,117
public INDArray computeScoreForExamples(double fullNetRegTerm, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>// For RNN: need to sum up the score over each time step before returning.<NEW_LINE>INDArray input = this.input;<NEW_LINE>INDArray labels = this.labels;<NEW_LINE>if (input == null || labels == null)<NEW_LINE>throw ...
labels, workspaceMgr, ArrayType.FF_WORKING_MEM);
394,703
public static DescribeUissResponse unmarshall(DescribeUissResponse describeUissResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUissResponse.setRequestId(_ctx.stringValue("DescribeUissResponse.RequestId"));<NEW_LINE>describeUissResponse.setPageSize(_ctx.longValue("DescribeUissResponse.PageSize"));<NEW_LINE>descri...
("DescribeUissResponse.Uiss[" + i + "].Description"));
1,154,528
public boolean onGroupClick(ExpandableListView list, View group, int groupPosition, long id) {<NEW_LINE>Intent i = null;<NEW_LINE>if (adapter.isRowAllStories(groupPosition)) {<NEW_LINE>if (currentState == StateFilter.SAVED) {<NEW_LINE>// the existence of this row in saved mode is something of a framework artifact and m...
canonicalFolderName = adapter.getGroupFolderName(groupPosition);
1,070,360
void updateName() {<NEW_LINE>// "Ruby-0-Thread-16: (irb):21"<NEW_LINE>// "Ruby-0-Thread-17@worker#1: (irb):21"<NEW_LINE>String newName;<NEW_LINE>String setName = rubyName;<NEW_LINE>final String currentName = thread.getName();<NEW_LINE>if (currentName != null && currentName.startsWith(RUBY_THREAD_PREFIX)) {<NEW_LINE>// ...
currentName.substring(0, end);
1,515,065
public Credentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Credentials credentials = new Credentials();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
777,621
private void predictVector(Vector vector, Node node, LabelCounter result, double weight) {<NEW_LINE>if (node.isLeaf()) {<NEW_LINE>result.add(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double val = vector.get(node.getFeatureIndex());<NEW_LINE>if (Preprocessing.isMissing(val, zeroAsMissing)) {<NEW_LINE>if (node.getMissi...
node.getCounter(), weight);
949,943
protected int assignToNearestCluster() {<NEW_LINE>int changed = 0;<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>final int orig = assignment.intValue(it);<NEW_LINE>// Compute the current bound:<NEW_LINE>final double l = lower.doubleValue(it);<NEW_LINE>double u = upper.doubleValu...
(orig).remove(it);
413,734
public static DynamicConfigAddRingbufferConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next...
decodeInt(initialFrame.content, REQUEST_ASYNC_BACKUP_COUNT_FIELD_OFFSET);
1,652,699
private void onSearchValueChange() {<NEW_LINE>lastSearchValue_ = searchWidget_.getValue();<NEW_LINE>// fast path -- no query to use<NEW_LINE>String query = StringUtil.notNull(lastSearchValue_).trim();<NEW_LINE>if (query.isEmpty()) {<NEW_LINE>onBeforePopulateMenu(menu_);<NEW_LINE>populateMenu(menu_, initialBranchMap_);<...
filteredBranches = new ArrayList<>();
541,670
public static Revision fetchToTemp(GitClient client, ProgressMonitor pm, GitBranch branch) throws GitException {<NEW_LINE>if (!branch.isRemote()) {<NEW_LINE>GitBranch trackedBranch = branch.getTrackedBranch();<NEW_LINE>if (trackedBranch == null || !trackedBranch.isRemote()) {<NEW_LINE>throw new GitException(Bundle.MSG_...
), true, GitUtils.NULL_PROGRESS_MONITOR);
840,872
private boolean annotationHandlerSourceTargetMatch(String[] msources, String[] mtargets, Annotation methodAnnotation, State<S, E> sourceState, State<S, E> targetState) {<NEW_LINE>Map<String, Object> annotationAttributes = AnnotationUtils.getAnnotationAttributes(methodAnnotation);<NEW_LINE>Object source = annotationAttr...
tcoll = Arrays.asList(mtargets);
989,876
private boolean resolveGenericsType(GenericsType genericsType) {<NEW_LINE>if (genericsType.isResolved())<NEW_LINE>return true;<NEW_LINE>currentClass.setUsingGenerics(true);<NEW_LINE>ClassNode type = genericsType.getType();<NEW_LINE>// save name before redirect<NEW_LINE>GenericsTypeName name = new GenericsTypeName(type....
resolveGenericsTypes(upperBound.getGenericsTypes());
689,649
private void showInfoAboutRoot() {<NEW_LINE>boolean rootIsAvailable = preferenceRepository.get().getBoolPreference(ROOT_IS_AVAILABLE);<NEW_LINE>boolean busyBoxIsAvailable = preferenceRepository.get().getBoolPreference("bbOK");<NEW_LINE>boolean mitmDetected = ArpScanner.getArpAttackDetected() || ArpScanner.getDhcpGatewa...
show(getSupportFragmentManager(), "NotificationDialogFragment");
1,723,530
public HttpCmdResponse execute(HttpCmdRequest request) throws Exception {<NEW_LINE>HttpCmdResponse response = new HttpCmdResponse();<NEW_LINE>response.setSuccess(false);<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.isEmpty(jobJSON)) {<NEW_LINE>response.setMsg("job can not be null");<NEW_LINE>return response;<NEW_LIN...
jobJSON = request.getParam("job");
1,360,340
public EventInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EventInfo eventInfo = new EventInfo();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NE...
int originalDepth = context.getCurrentDepth();
1,492,969
void decode(ByteBuf payload) {<NEW_LINE>while (payload.isReadable()) {<NEW_LINE>short tokenType = payload.readUnsignedByte();<NEW_LINE>switch(tokenType) {<NEW_LINE>case LOGINACK:<NEW_LINE>payload.skipBytes(payload.readUnsignedShortLE());<NEW_LINE>handleLoginAck();<NEW_LINE>break;<NEW_LINE>case COLMETADATA:<NEW_LINE>han...
skipBytes(payload.readUnsignedShortLE());
1,390,270
private static void loadFile() throws IOException {<NEW_LINE>kits.clear();<NEW_LINE>NbtCompound rootTag = NbtIo.read(new File(configPath.toFile(), "kits.dat"));<NEW_LINE>if (rootTag == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int currentVersion = SharedConstants.getGameVersion().getWorldVersion();<NEW_LINE>fi...
kits.put(key, updatedListTag);
1,379,738
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
268,192
private static CertificateMessage readX509CertificateMessage(final DatagramReader reader) throws HandshakeException {<NEW_LINE>LOGGER.debug("Parsing X.509 CERTIFICATE message");<NEW_LINE>int certificateChainLength = reader.read(CERTIFICATE_LIST_LENGTH_BITS);<NEW_LINE>DatagramReader rangeReader = reader.createRangeReade...
certificateLength = rangeReader.read(CERTIFICATE_LENGTH_BITS);
221,723
public Object doIt(VirtualFrame frame, Object[] args, PKeyword[] kwargs, @CachedLibrary("getContext().getSysModules().getDictStorage()") HashingStorageLibrary hlib) {<NEW_LINE>if (getDebuggerSessionCount() > 0) {<NEW_LINE>// we already have a Truffle debugger attached, it'll stop here<NEW_LINE>return PNone.NONE;<NEW_LI...
frame, breakpointhook, args, kwargs);
995,223
private static int[] buildLookupArray(Iterable<LocalDate> holidays, Iterable<DayOfWeek> weekendDays, int startYear, int endYearExclusive, Iterable<LocalDate> workingDays) {<NEW_LINE>// array that has one entry for each month<NEW_LINE>int[] array = new int[<MASK><NEW_LINE>// loop through all months to handle end-of-mont...
(endYearExclusive - startYear) * 12];
736,545
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>// logger.debug(effectivePerson, "receive:{}.", jsonElement);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW...
result = new ActionResult<>();
1,822,953
final DescribeWorkteamResult executeDescribeWorkteam(DescribeWorkteamRequest describeWorkteamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorkteamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
145,251
private void addJAXWSServiceMapBinding(ProfileServiceMapMgr smgr, String appid, String className, Map<String, Object> classInfo) {<NEW_LINE>Collection<String> classPaths = new ArrayList<String>();<NEW_LINE>String classPath = null;<NEW_LINE>if (classInfo.containsKey("dyn")) {<NEW_LINE>Map<String, Object> classDynInfo = ...
(formatRelativePath(classPath, false));
1,373,453
public static Link parse(String origin, String link, boolean allowModuleName) {<NEW_LINE>String originMod = origin;<NEW_LINE>int index = link.indexOf('#');<NEW_LINE>if (index == -1) {<NEW_LINE>if (allowModuleName) {<NEW_LINE>index = link.lastIndexOf('/');<NEW_LINE>if (index == -1) {<NEW_LINE>return new Link(null, null,...
originMod.substring(0, index);
570,252
public boolean isValid() {<NEW_LINE>if (!isListenerSelected()) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>wizard.// NOI18N<NEW_LINE>putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, org.openide.util.NbBundle.getMessage(ListenerPanel.class, "MSG_noListenerSelected"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Proj...
.class, "MSG_noWebInfDirectory", resource));
1,017,151
public static Shape createLineRegion(Line2D line, float width) {<NEW_LINE>Args.nullNotPermitted(line, "line");<NEW_LINE>final GeneralPath result = new GeneralPath();<NEW_LINE>final float x1 = (float) line.getX1();<NEW_LINE>final float x2 = (float) line.getX2();<NEW_LINE>final float y1 = (float) line.getY1();<NEW_LINE>f...
x1 + dx, y1 - dy);
1,069,605
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(SearchSourceBuilder.<MASK><NEW_LINE>builder.field(SearchSourceBuilder.SIZE_FIELD.getPreferredName(), size);<NEW_LINE>builder.field(SearchSourceBuilder.VERSION_FI...
FROM_FIELD.getPreferredName(), from);
426,874
public void readPayload(int id, PacketBufferBC buffer, Side side, MessageContext ctx) throws IOException {<NEW_LINE>super.readPayload(id, buffer, side, ctx);<NEW_LINE>if (id == NET_GUI_DATA) {<NEW_LINE>recipesStates.clear();<NEW_LINE>int count = buffer.readInt();<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>Asse...
[buffer.readInt()]);
564,351
protected void execGetGSP(HttpAction action) {<NEW_LINE>ActionLib.setCommonHeaders(action);<NEW_LINE>MediaType mediaType = ActionLib.contentNegotationRDF(action);<NEW_LINE>OutputStream output;<NEW_LINE>try {<NEW_LINE>output = action.getResponseOutputStream();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>ServletOps.erro...
Graph graph = target.graph();
738,057
private void classHeaderExtendsOrImplements(boolean isInterface, boolean isRecord) {<NEW_LINE>if (this.currentElement != null && this.currentToken == TokenNameIdentifier && this.cursorLocation + 1 >= this.scanner.startPosition && this.cursorLocation < this.scanner.currentPosition) {<NEW_LINE>this.pushIdentifier();<NEW_...
[ptr], Keywords.EXTENDS);
837,747
private void initializeRecyclerView(Bundle savedInstanceState) {<NEW_LINE>// Initialize Adapter and RecyclerView<NEW_LINE>// ExampleAdapter makes use of stableIds, I strongly suggest to implement 'item.hashCode()'<NEW_LINE>FlexibleAdapter.useTag("StaggeredLayoutAdapter");<NEW_LINE>mAdapter = new FlexibleAdapter<>(Datab...
swipeRefreshLayout, mRecyclerView, Mode.IDLE);
660,153
private void lowMemoryInternalBatchSizes() {<NEW_LINE>// The "expected" size is with power-of-two rounding in some vectors.<NEW_LINE>// We later work backwards to the row count assuming average internal<NEW_LINE>// fragmentation.<NEW_LINE>// Must hold two input batches. Use half of the rest for the spill batch.<NEW_LIN...
= memoryLimit - 2 * spillBatchSize.maxBufferSize;
133,694
protected UniformTimeSnapshot snapshot(final Collection<AggregatedValueObject> values, final long timeInterval, final TimeUnit timeIntervalUnit, final long time, final TimeUnit timeUnit) {<NEW_LINE>final UniformTimeSnapshot notTrimmedMeasurementsSnapshot = notifier.getTimeReservoirNotifier().getSnapshot(time, timeUnit)...
count, count, timeInterval, timeIntervalUnit);
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...
setText(" " + Messages.SVGExportProvider_2);
479,112
private void writeDependencies(OptionalAttributeXmlWriter xmlWriter) throws IOException {<NEW_LINE>xmlWriter.startElement("dependencies");<NEW_LINE>for (IvyDependencyInternal dependency : dependencies) {<NEW_LINE>String org = dependency.getOrganisation();<NEW_LINE><MASK><NEW_LINE>String projectPath = dependency.getProj...
String module = dependency.getModule();
378,183
public static void assertEqualsToScale(Se3_F64 expected, Se3_F64 found, double tolAngle, double tolT) {<NEW_LINE>var R = new DMatrixRMaj(3, 3);<NEW_LINE>CommonOps_DDRM.multTransA(expected.R, found.R, R);<NEW_LINE>Rodrigues_F64 rod = ConvertRotation3D_F64.matrixToRodrigues(R, null);<NEW_LINE>assertEquals(0.0, rod.theta,...
- found.T.y / normFound;
891,684
void addModRMRegister(Instruction instruction, int operand, int regLo, int regHi) {<NEW_LINE>if (!verifyOpKind(operand, OpKind.REGISTER, instruction.getOpKind(operand)))<NEW_LINE>return;<NEW_LINE>int reg = instruction.getOpRegister(operand);<NEW_LINE>if (!verify(operand, reg, regLo, regHi))<NEW_LINE>return;<NEW_LINE>in...
regNum, 31) <= 0 : regNum;
1,631,071
public boolean visit(Javadoc node) {<NEW_LINE>this.noFormatTagOpenStart = -1;<NEW_LINE>this.formatCodeTagOpenEnd = -1;<NEW_LINE>this.lastFormatCodeClosingTagIndex = -1;<NEW_LINE>this.firstTagToken = null;<NEW_LINE>this.ctm = null;<NEW_LINE>int commentIndex = this.tm.firstIndexIn(node, TokenNameCOMMENT_JAVADOC);<NEW_LIN...
this.tm.get(commentIndex);
199,441
public void process(I input) {<NEW_LINE>if (frameID == -1)<NEW_LINE>associate.initializeAssociator(input.width, input.height);<NEW_LINE>frameID++;<NEW_LINE>tracksActive.clear();<NEW_LINE>tracksInactive.clear();<NEW_LINE>tracksDropped.clear();<NEW_LINE>tracksNew.clear();<NEW_LINE>detector.detect(input);<NEW_LINE>final i...
] = detector.getDescription(i);
1,249,960
public Response execute(Request request) {<NEW_LINE>HttpContext context = new BasicHttpContext();<NEW_LINE>HttpUriRequestBase httpUriRequest = new HttpUriRequestBase(request.method(), URI.create(pathPrefix + request.path()));<NEW_LINE>httpUriRequest.setScheme(host.getSchemeName());<NEW_LINE>httpUriRequest.setAuthority(...
, host.getPort()));
1,054,350
public void touchUp(final InputEvent event, final float x, final float y, final int pointer, final int button) {<NEW_LINE>if (isDragged()) {<NEW_LINE>removeBlocker();<NEW_LINE>getStageCoordinates(event);<NEW_LINE>mimic.setPosition(MIMIC_COORDINATES.x, MIMIC_COORDINATES.y);<NEW_LINE>if (listener == null || mimic.getActo...
(fadingTime, fadingInterpolation), fadingTime);
1,045,394
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>String username = request.getParameter("username");<NEW_LINE>if (!validation.isValidUsername(username)) {<NEW_LINE>response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Invalid userna...
sendError(HttpServletResponse.SC_BAD_REQUEST, "ERROR");
332,101
protected void exec() {<NEW_LINE>ShexSchema shapes;<NEW_LINE>try {<NEW_LINE>shapes = Shex.readSchema(shapesfile);<NEW_LINE>} catch (ShexException ex) {<NEW_LINE>System.err.println("Failed to read shapes: " + ex.getMessage());<NEW_LINE>throw new CmdException();<NEW_LINE>}<NEW_LINE>Graph dataGraph;<NEW_LINE>try {<NEW_LIN...
dataGraph, shapes, startShape, focus);