idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
829,842
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>if (state() == State.HEADER) {<NEW_LINE>int nLoc = in.bytesBefore((byte) '\n');<NEW_LINE>ByteBuf headerBuf = in.readBytes(nLoc + 1);<NEW_LINE>String headerLine = headerBuf.toString(UTF8).trim();<NEW_LINE>nLoc = in...
this.debugger.getCommand(commandStr);
1,177,673
public static void rememberWindowSize(final Window window) {<NEW_LINE>window.addComponentListener(new ComponentAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentResized(ComponentEvent e) {<NEW_LINE>final Dimension previousWindowSize = ((SwingPreferences) Application.getPreferences()).getWindowSize(...
getClass().getName());
579,586
public StringBuilder appendTo(final StringBuilder builder) {<NEW_LINE>if (null == buffer) {<NEW_LINE>return builder;<NEW_LINE>}<NEW_LINE>final int originalLimit = limit();<NEW_LINE>limit(initialOffset + actingBlockLength);<NEW_LINE>builder.append("[FrameCodec](sbeTemplateId=");<NEW_LINE>builder.append(TEMPLATE_ID);<NEW...
()).append('\'');
1,636,787
public MappeableContainer iandNot(final MappeableRunContainer x) {<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>for (int rlepos = 0; rlepos < x.nbrruns; ++rlepos) {<NEW_LINE>int start = (x.getValue(rlepos));<NEW_LINE>int end = start + (x.getLength(rlepo...
.getLength(rlepos)) + 1;
824,294
public SearchLocation findNextTokenForSearchRegex(String searchString, FieldLocation currentLocation, boolean forwardSearch) {<NEW_LINE>Pattern pattern = null;<NEW_LINE>try {<NEW_LINE>pattern = Pattern.compile(searchString, <MASK><NEW_LINE>} catch (PatternSyntaxException e) {<NEW_LINE>Msg.showError(this, decompilerPane...
Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
145,906
private // <editor-fold defaultstate="collapsed" desc="Init EditMenu"><NEW_LINE>void initEditMenu() throws NoSuchMethodException {<NEW_LINE>int scMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();<NEW_LINE>_editMenu.setMnemonic(java.awt.event.KeyEvent.VK_E);<NEW_LINE>JMenuItem undoItem = _editMenu.add(_undoAc...
FindAction(FindAction.FIND_NEXT)));
1,625,147
static WebServer startServer() {<NEW_LINE>// load logging configuration<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>// By default this will pick up application.yaml from the classpath<NEW_LINE>Config config = Config.create();<NEW_LINE><MASK><NEW_LINE>WebServer server = WebServer.builder(createRouting(sendingService...
SendingService sendingService = new SendingService(config);
822,747
public Orderer addOrderer(SDOrdererAdditionInfo sdOrdererAdditionInfo) throws InvalidArgumentException, ServiceDiscoveryException {<NEW_LINE>Properties properties = sdOrdererAdditionInfo.getProperties();<NEW_LINE>final String endpoint = sdOrdererAdditionInfo.getEndpoint();<NEW_LINE>final String mspid = sdOrdererAdditio...
properties.put("clientCertFile", clientCertFile);
548,111
public void paint(IFigure figure, Graphics g, Insets insets) {<NEW_LINE>ButtonModel model = ((Clickable) figure).getModel();<NEW_LINE>Rectangle r = getPaintRectangle(figure, insets);<NEW_LINE>g.setLineWidth(1);<NEW_LINE>r.width -= 3;<NEW_LINE>r.height -= 3;<NEW_LINE>if (model.isMouseOver() && !model.isArmed()) {<NEW_LI...
), r.bottom());
1,405,556
public void updateTask() {<NEW_LINE>final EntityLivingBase attackTargetNN = attackTarget;<NEW_LINE>if (attackTargetNN == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final double distToTargetSq = entityHost.getDistanceSq(attackTarget.posX, attackTargetNN.getEntityBoundingBox().minY, attackTarget.posZ);<NEW_LINE>final b...
.getNavigator().clearPath();
27,440
public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes) {<NEW_LINE>Preconditions.checkState(dataTypes != null && (dataTypes.size() == 3 || dataTypes.size() <MASK><NEW_LINE>DataType first = dataTypes.get(0);<NEW_LINE>for (int i = 0; i < dataTypes.size(); i++) {<NEW_LINE>Preconditions.checkState(dataType...
== 4), "Expected exactly 3 or 4 input datatypes, got %s", dataTypes);
265,324
static void visitMapping(Map<String, ?> mapping, Consumer<Map<String, ?>> fieldMappingConsumer) {<NEW_LINE>Object <MASK><NEW_LINE>if (properties != null && properties instanceof Map) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, ?> propertiesAsMap = (Map<String, ?>) properties;<NEW_LINE>for (Object v :...
properties = mapping.get("properties");
1,627,406
public Future<MultiGetSortKeysResult> asyncMultiGetSortKeys(byte[] hashKey, int maxFetchCount, int maxFetchSize, int timeout) {<NEW_LINE>final DefaultPromise<MultiGetSortKeysResult> promise = table.newPromise();<NEW_LINE>asyncMultiGet(hashKey, null, maxFetchCount, maxFetchSize, true, timeout).addListener(new MultiGetLi...
add(kv.getLeft());
397,282
public int read(byte[] buf, int off, int len) throws IOException {<NEW_LINE>if (log.isLoggable(Level.FINER))<NEW_LINE>log.finer("Read into " + buf + " " + hex(off) + " " + hex(len));<NEW_LINE>int n;<NEW_LINE>if (isMvsDataset) {<NEW_LINE>if (off == 0) {<NEW_LINE>n = Clib.fread(buf, 1, len, fp);<NEW_LINE>} else {<NEW_LIN...
+ hex(n) + " bytes");
942,837
private KeyManagerFactory createAndInitKeyManagerFactory() throws Exception {<NEW_LINE>X509Certificate certHolder = readCertFile(cert);<NEW_LINE>Object keyObject = readPrivateKeyFile(privateKey);<NEW_LINE>char[] passwordCharArray = "".toCharArray();<NEW_LINE>if (!StringUtils.isEmpty(password)) {<NEW_LINE>passwordCharAr...
"Unable to get private key from object: " + keyObject.getClass());
83,715
Executable detectBeanInstanceExecutable(BeanDefinition beanDefinition) {<NEW_LINE>Supplier<ResolvableType> beanType <MASK><NEW_LINE>List<ResolvableType> valueTypes = beanDefinition.hasConstructorArgumentValues() ? determineParameterValueTypes(beanDefinition.getConstructorArgumentValues()) : Collections.emptyList();<NEW...
= () -> getBeanType(beanDefinition);
1,749,973
private void togglePredefinedLocation(@SuppressWarnings("unused") ObservableValue<? extends Toggle> observable, @SuppressWarnings("unused") Toggle oldValue, Toggle newValue) {<NEW_LINE>if (iclouddriveRadioButton.equals(newValue)) {<NEW_LINE>vaultPath.set(locationPresets.getIclouddriveLocation().resolve(vaultName.get())...
(vaultName.get()));
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...
? oldDataToPost.toArray() : null;
435,370
public void visitVariableExpression(final VariableExpression expression) {<NEW_LINE>final String variableName = expression.getName();<NEW_LINE>if (expression.isThisExpression()) {<NEW_LINE>// "this" in static context is Class instance<NEW_LINE>if (controller.isStaticMethod() || controller.getCompileStack().isInSpecialC...
mv.visitTypeInsn(NEW, "org/codehaus/groovy/runtime/ScriptReference");
1,778,780
public void drawObjects(PlatformImage output) {<NEW_LINE>output.create(image.getWidth(), image.getHeight());<NEW_LINE>ImageUtils.log("Columns:", columns.size());<NEW_LINE>ImageUtils.log("Lines:", lines.size());<NEW_LINE>ImageUtils.log("Words:", words.size());<NEW_LINE>for (int y = 0; y < image.getHeight(); y++) {<NEW_L...
l.y2, PlatformImage.RED);
1,433,282
public HtmlResponse login(final LoginForm form) {<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, () -> asIndexPage(form));<NEW_LINE>verifyToken(() -> asIndexPage(form));<NEW_LINE>final String username = form.username;<NEW_LINE>final String password = form.password;<NEW_LINE>form.clearSecurityInfo();<NEW_LINE>try {<N...
LocalUserCredential(username, password)));
1,090,797
public void generate(NodeLIRBuilderTool gen) {<NEW_LINE>final LIRGeneratorTool tool = gen.getLIRGeneratorTool();<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.PTX, "emitVectorValue: values=%s", values);<NEW_LINE>if (origin instanceof InvokeNode) {<NEW_LINE>gen.setResult(this, gen.operand(origin));<NEW_LINE>} else if (or...
int numValues = values.count();
298,060
public void paint(Graphics g) {<NEW_LINE>super.paint(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>g2d.setColor(GuiBase.getTextColor());<NEW_LINE>centerX = (int) (getWidth() / 2);<NEW_LINE>centerY = (int) (getHeight() / 2);<NEW_LINE>// paints a coordinate system and draws a circle<NEW_LINE>// around the zero p...
2 * RADIUS, 2 * RADIUS);
39,221
public soot.Value eval(Body b) {<NEW_LINE>ConstructorDecl c = decl().erasedConstructor();<NEW_LINE>// this<NEW_LINE>Local base = b.emitThis(hostType());<NEW_LINE>int index = 0;<NEW_LINE>ArrayList list = new ArrayList();<NEW_LINE>if (c.needsEnclosing()) {<NEW_LINE>if (hasPrevExpr() && !prevExpr().isTypeAccess()) {<NEW_L...
type, 0, this)));
763,221
private byte[] transformImpl(ClassLoader loader, String className, byte[] classfileBuffer) {<NEW_LINE>if (durationProfilingFilter.isEmpty() && argumentFilterProfilingFilter.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String normalizedClassName = className.replaceAll("/", ".");<NEW_LINE>LOGGER.debug("Checking...
normalizedClassName, ctMethod, enableDurationProfiling, enableArgumentProfiler);
229,013
public void launchMpjwt20TCKLauncher_aud_noenv() throws Exception {<NEW_LINE>String port = String.valueOf(server.getBvtPort());<NEW_LINE>String bucketAndTestName = this.getClass().getCanonicalName();<NEW_LINE>Map<String, String> additionalProps = new HashMap<>();<NEW_LINE>// need to pass the correct url for PublicKeyAs...
resultInfo = MvnUtils.getResultInfo(server);
1,357,452
private RectNode findPositionForNewNodeContactPoint(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate) {<NEW_LINE>RectNode bestNode = new RectNode();<NEW_LINE>bestNode.rect = new Rect(null, 0, 0, 0, 0, 0);<NEW_LINE>// best contact score<NEW_LINE>bestNode.score1 = -1;<NEW_LINE>for (int i = 0; i ...
rect.y, rotatedWidth, rotatedHeight);
645,682
protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement) {<NEW_LINE>ServiceTask serviceTask = (ServiceTask) baseElement;<NEW_LINE>if ("mail".equalsIgnoreCase(serviceTask.getType())) {<NEW_LINE>setPropertyFieldValue(PROPERTY_MAILTASK_TO, serviceTask, propertiesNode);<NEW_LINE>setPropertyFi...
get(fieldExtension.getStringValue());
453,299
private void fromApiParam(ParameterExpansionContext context, ApiParam apiParam) {<NEW_LINE>String allowableProperty = ofNullable(apiParam.allowableValues()).filter(((Predicate<String>) String::isEmpty).negate()).orElse(null);<NEW_LINE>AllowableValues allowable = allowableValues(ofNullable(allowableProperty), context.ge...
e.allowedValues(allowable)));
1,803,690
public Map<String, Object> execute(Map<String, Object> inputs) {<NEW_LINE>String itemName = (String) module.getConfiguration().get(ITEM_NAME);<NEW_LINE>String command = (String) module.getConfiguration().get(COMMAND);<NEW_LINE>if (itemName != null && eventPublisher != null && itemRegistry != null) {<NEW_LINE>try {<NEW_...
cmd = inputs.get(COMMAND);
112,937
public void handleEvent(@NonNull final ShipmentScheduleCreatedEvent event) {<NEW_LINE>final DemandDetailsQuery demandDetailsQuery = DemandDetailsQuery.<MASK><NEW_LINE>final CandidatesQuery candidatesQuery = CandidatesQuery.builder().type(CandidateType.DEMAND).businessCase(CandidateBusinessCase.SHIPMENT).demandDetailsQu...
forDocumentLine(event.getDocumentLineDescriptor());
1,258,840
private static void queryData() {<NEW_LINE>Query query;<NEW_LINE>QueryResult result;<NEW_LINE>// the selector query is parallel to the field value<NEW_LINE>query = new Query("select * from student where (name=\"xie\" and sex=\"m\")or time<now()-7d", "database");<NEW_LINE>result = influxDB.query(query);<NEW_LINE>System....
result = influxDB.query(query);
726,619
public SkyValue compute(SkyKey skyKey, Environment env) throws SkyFunctionException, InterruptedException {<NEW_LINE>RootModuleFileValue root = (RootModuleFileValue) <MASK><NEW_LINE>if (root == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ImmutableMap<ModuleKey, Module> initialDepGraph = Discovery.run(env, root);<...
env.getValue(ModuleFileValue.KEY_FOR_ROOT_MODULE);
606,930
private void allSlotsIniTableDo() throws CorruptDataException {<NEW_LINE>J9ITablePointer iTable = J9ITablePointer.cast(ramClass.iTable());<NEW_LINE>int interfaceSize = 0;<NEW_LINE>final J9ITablePointer superclassITable;<NEW_LINE>final J9ClassPointer superclass = J9ClassHelper.superclass(ramClass);<NEW_LINE>if (supercla...
nextEA(), "iTable->next", "!j9itable");
1,750,961
public void init() {<NEW_LINE>root = new DefaultTreeNode("Files", null);<NEW_LINE>TreeNode node0 = new DefaultTreeNode("Documents", root);<NEW_LINE>TreeNode node1 = new DefaultTreeNode("Events", root);<NEW_LINE>TreeNode node2 <MASK><NEW_LINE>TreeNode node00 = new DefaultTreeNode("Work", node0);<NEW_LINE>TreeNode node01...
= new DefaultTreeNode("Movies", root);
1,136,158
public void init(Properties properties) {<NEW_LINE>RocketMQProducerConfig rocketMQProperties = new RocketMQProducerConfig();<NEW_LINE>this.mqProperties = rocketMQProperties;<NEW_LINE>super.init(properties);<NEW_LINE>loadRocketMQProperties(properties);<NEW_LINE>RPCHook rpcHook = null;<NEW_LINE>if (mqProperties.getAliyun...
setVipChannelEnabled(rocketMQProperties.isVipChannelEnabled());
237,643
public ClusterState execute(ClusterState currentState, Collection<Mutation> mutations, Collection<Event.SchemaChange> events) throws Exception {<NEW_LINE>if (request.create && currentState.metaData().templates().containsKey(request.name)) {<NEW_LINE>throw new IllegalArgumentException("index_template [" + request.name +...
request, templateBuilder, indicesService, xContentRegistry);
1,470,474
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject <MASK><NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>if (getTargetPointer().getFirst(game, source) != null) {<NEW_LINE>Permanent permanent = game.getPermanen...
sourceObject = game.getObject(source);
1,794,209
Mono<Response<Void>> deleteSubscriptionWithResponse(String topicName, String subscriptionName, Context context) {<NEW_LINE>if (subscriptionName == null) {<NEW_LINE>return monoError(LOGGER, new NullPointerException("'subscriptionName' cannot be null"));<NEW_LINE>} else if (subscriptionName.isEmpty()) {<NEW_LINE>return m...
context.addData(AZ_TRACING_NAMESPACE_KEY, AZ_TRACING_NAMESPACE_VALUE);
281,981
static PathEvaluator create(@Nullable Class<?> type, String pathAndFormat) {<NEW_LINE>String path;<NEW_LINE>String format;<NEW_LINE>String formatArg;<NEW_LINE>int index = pathAndFormat.indexOf('|');<NEW_LINE>if (index == -1) {<NEW_LINE>path = pathAndFormat;<NEW_LINE>format = null;<NEW_LINE>formatArg = null;<NEW_LINE>} ...
(path), format, formatArg);
339,567
public static void apply(ExprNode target, ExprNode start, ExprNode end, boolean includeStart, boolean includeEnd, boolean isNot, QueryGraphForge queryGraph) {<NEW_LINE>QueryGraphRangeEnum rangeOp = QueryGraphRangeEnum.getRangeOp(includeStart, includeEnd, isNot);<NEW_LINE>if (((target instanceof ExprIdentNode)) && ((sta...
EligibilityUtil.verifyInputStream(end, indexedStream);
570,646
private void updatePreview() {<NEW_LINE>double paperWidth = paper.unit.convert(paper.width, units);<NEW_LINE>double paperHeight = paper.unit.convert(paper.height, units);<NEW_LINE>double unitsToPixel = 400.0 / paperWidth;<NEW_LINE>// TODO switch other calibration targets over to using the generic fiducial engine<NEW_LI...
configureRenderGraphics2D(markerWidth, markerHeight, unitsToPixel);
795,148
private char[][] findMethodParameterNames(MethodBinding method, char[][] parameterTypeNames) {<NEW_LINE>TypeBinding erasure = method.declaringClass.erasure();<NEW_LINE>if (!(erasure instanceof ReferenceBinding))<NEW_LINE>return null;<NEW_LINE>char[][] parameterNames = null;<NEW_LINE>int length = parameterTypeNames.leng...
SourceTypeElementInfo) sourceType).getHandle();
283,359
public OutputStream encryptStream(OutputStream outputStream) throws CryptoException {<NEW_LINE>if (ivReused) {<NEW_LINE>throw new CryptoException("Key/IV reuse is forbidden in AESGCMCryptoModule. Too many RBlocks.");<NEW_LINE>}<NEW_LINE>incrementIV(<MASK><NEW_LINE>if (Arrays.equals(initVector, firstInitVector)) {<NEW_L...
initVector, initVector.length - 1);
1,017,381
private void addMethods(Class<?> baseClass, List<PyReflectedFunction> reflectedFuncs, Map<String, PyBeanProperty> props, Map<String, PyBeanEvent<?>> events, Method[] methods) {<NEW_LINE>boolean isInAwt = name.startsWith("java.awt.") && name.indexOf('.', 9) == -1;<NEW_LINE>for (Method meth : methods) {<NEW_LINE>if (!dec...
PyReflectedFunction) dict.__finditem__(nmethname);
424,589
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest httpReq = (HttpServletRequest) request;<NEW_LINE>KeycloakSecurityContext session = getSession(httpReq);<NEW_LINE>if (session != null) {<NEW_LINE>HttpSession httpSe...
setToken(session.getTokenString());
1,100,094
public void testSLLocalEnvEntry_Double_InvalidValue() throws Exception {<NEW_LINE>SLLa ejb1 = fhome1.create();<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envDoubleInvalid".<NEW_LINE>Double tempDouble = ejb1.getDoubleEnvVar("envDoubleBlankdValue");<NEW_LINE>fail("Get environment inv...
tempDouble = ejb1.getDoubleEnvVar("envDoubleInvalid");
334,653
public static FullHttpResponse serveSite(Path siteDirectory, FullHttpRequest request, ByteBufAllocator alloc) throws IOException {<NEW_LINE>if (request.method() != HttpMethod.GET) {<NEW_LINE>return new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.FORBIDDEN);<NEW_LINE>}<NEW_LINE>String sitePath = req...
.getFileSystem().getSeparator();
1,703,801
private BlockParsedResult parseNumericBlock() throws FormatException {<NEW_LINE>while (isStillNumeric(current.getPosition())) {<NEW_LINE>DecodedNumeric numeric = decodeNumeric(current.getPosition());<NEW_LINE>current.setPosition(numeric.getNewPosition());<NEW_LINE>if (numeric.isFirstDigitFNC1()) {<NEW_LINE>DecodedInfor...
), buffer.toString());
1,081,764
public static Map<String, Object> defaultProps() {<NEW_LINE>final Map<String, Object> props = new HashMap<>();<NEW_LINE>props.<MASK><NEW_LINE>props.put(ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG, String.valueOf(DEFAULT_AUTO_COMMIT_INTERVAL_MS));<NEW_LINE>props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, DEFAULT_AUT...
put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, DEFAULT_AUTO_COMMIT_ENABLED);
1,066,183
final GetCloudFormationStackRecordsResult executeGetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest getCloudFormationStackRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFormationStackRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
false), new GetCloudFormationStackRecordsResultJsonUnmarshaller());
850,707
public void transfer(final Session<?> session, final Session<?> destination, final Path source, final Local n, final TransferOptions options, final TransferStatus overall, final TransferStatus segment, final ConnectionCallback connectionCallback, final ProgressListener listener, final StreamListener streamListener) thr...
destination.getFeature(Directory.class);
1,360,943
private void handleAjaxLoginAction(final String username, final String password, final String ip, final HttpServletResponse resp, final Map<String, Object> ret) {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = createSession(username, password, ip, false);<NEW_LINE>} catch (final UserManagerException...
).getUserId(), ip);
65,860
public void listOrder() {<NEW_LINE>String sql = new String("SELECT o.C_Order_ID " + "FROM C_Order o " + "WHERE o.IsSOTrx='Y' " + "AND o.Processed = 'N' " + "AND o.AD_Client_ID = ? " + "AND o.C_POS_ID = ? " + "AND o.SalesRep_ID = ? " + "ORDER BY o.Updated");<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>...
setInt(3, getSalesRep_ID());
303,811
protected String doIt() throws Exception {<NEW_LINE>getSelectionKeys().stream().forEach(key -> {<NEW_LINE>Optional<MProductPrice> productPriceOptional = Optional.ofNullable(MProductPrice.get(getCtx(), getRecord_ID(), key, get_TrxName()));<NEW_LINE>MProductPrice productPrice = productPriceOptional.orElseGet(() -> new MP...
priceList = getSelectionAsBigDecimal(key, "PP_PriceList");
1,679,314
public void collect(URL url) {<NEW_LINE>// data to collect from url<NEW_LINE>int success = url.getParameter(SUCCESS_KEY, 0);<NEW_LINE>int failure = url.getParameter(FAILURE_KEY, 0);<NEW_LINE>int input = url.getParameter(INPUT_KEY, 0);<NEW_LINE>int output = url.getParameter(OUTPUT_KEY, 0);<NEW_LINE>int elapsed = url.get...
current.getMaxConcurrent() : concurrent);
1,063,402
final DetectAnomaliesResult executeDetectAnomalies(DetectAnomaliesRequest detectAnomaliesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detectAnomaliesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,799,027
public CheckedSupplier<Object> decorate(FallbackMethod fallbackMethod, CheckedSupplier<Object> supplier) {<NEW_LINE>return supplier.andThen(request -> {<NEW_LINE>if (request instanceof ObservableSource) {<NEW_LINE>Observable<?> observable <MASK><NEW_LINE>return observable.onErrorResumeNext(rxJava2OnErrorResumeNext(fall...
= (Observable<?>) request;
59,210
private void initCards() {<NEW_LINE>card1 = new CardExample(getActivity(), "Header", "Title");<NEW_LINE>cardView1 = (CardViewNative) getActivity().findViewById(R.id.carddemo_card_changevalue_id);<NEW_LINE>cardView1.setCard(card1);<NEW_LINE>card2 = new CardExample2(getActivity(), "Header", "Title");<NEW_LINE>cardView2 =...
findViewById(R.id.carddemo_card_changevalue_id2);
719,115
public Matrix interpolate(float interpolatedTime, int childWidth, int childHeight, float anchorX, float anchorY) {<NEW_LINE>Ti2DMatrix first = this;<NEW_LINE>ArrayList<Ti2DMatrix> preMatrixList = new ArrayList<>();<NEW_LINE>while (first.prev != null) {<NEW_LINE>first = first.prev;<NEW_LINE>// It is safe to use prev mat...
childWidth, childHeight, anchorX, anchorY);
619,496
void merge(Parameters defaults) {<NEW_LINE>if (defaults == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.logRaw = this.logRaw == null ? defaults.logRaw : this.logRaw;<NEW_LINE>this.logSum = this.logSum == null ? defaults.logSum : this.logSum;<NEW_LINE>this.logMean = this.logMean == null ? defaults.logMean : this.lo...
? defaults.logHistogram : this.logHistogram;
1,851,129
public static List<String> exportEndpointsToS3(PinpointClient pinpoint, S3Client s3Client, String s3BucketName, String iamExportRoleArn, String applicationId) {<NEW_LINE>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH_mm:ss.SSS_z");<NEW_LINE>String endpointsKeyPrefix = "exports/" + applicationId + "_"...
"Exporting endpoints from Amazon Pinpoint application %s to Amazon S3 " + "bucket %s . . .\n", applicationId, s3BucketName);
1,022,355
public void intercept(Invocation inv) {<NEW_LINE>Controller controller = inv.getController();<NEW_LINE>Method method = inv.getMethod();<NEW_LINE>Parameter[] parameters = method.getParameters();<NEW_LINE>Type[] paraTypes = method.getGenericParameterTypes();<NEW_LINE>Object jsonObjectOrArray = StrUtil.isBlank(controller....
parameters[index].getType();
1,123,796
public static DescribeCustomLineResponse unmarshall(DescribeCustomLineResponse describeCustomLineResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCustomLineResponse.setRequestId<MASK><NEW_LINE>describeCustomLineResponse.setId(_ctx.longValue("DescribeCustomLineResponse.Id"));<NEW_LINE>describeCustomLineResponse.se...
(_ctx.stringValue("DescribeCustomLineResponse.RequestId"));
825,410
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject result = new JSONObject(true);<NEW_LINE>result.put("accepted", false);<NEW_LINE>result.put("message", "Error: Unable to process you reques...
resetauth.put("one_time", true);
1,533,936
private void registerNavigateSearchReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>final WeakReference<MapActivity> mapActivityRef = new WeakReference<>(mapActivity);<NEW_LINE>BroadcastReceiver navigateSearchReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context c...
intent.getDoubleExtra(AIDL_SEARCH_LON, 0);
1,478,525
CompilationSupport registerFullyLinkAction(ObjcProvider objcProvider, Artifact outputArchive) throws InterruptedException, RuleErrorException {<NEW_LINE>checkNotNull(toolchain);<NEW_LINE>checkNotNull(toolchain.getFdoContext());<NEW_LINE>ObjcVariablesExtension extension = new ObjcVariablesExtension.Builder().setRuleCont...
(outputArchive.getFilename()));
645,451
final DisassociateBotResult executeDisassociateBot(DisassociateBotRequest disassociateBotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateBotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,063,314
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer vertexBuilder, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {<NEW_LINE>if (base != null) {<NEW_LINE>matrixStackIn.pushPose();<NEW_LINE>matrixStackIn.translate(0.0D, base.young ? -0.015D : -0.02D, 0.0D);<NEW_LI...
float) (Math.PI));
442,654
public void userEventTriggered(@NotNull final ChannelHandlerContext ctx, @NotNull final Object evt) throws Exception {<NEW_LINE>if (!(evt instanceof SslHandshakeCompletionEvent)) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SslHandshakeCompletionEvent sslHandshakeCompletionEvent = (SslHandshakeCompletio...
super.userEventTriggered(ctx, evt);
554,875
public static String format(Channel channel, String msg) {<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(msg, "msg");<NEW_LINE>if (LOG_CHANNEL_INFO) {<NEW_LINE>String channelStr;<NEW_LINE>StringBuilder result;<NEW_LINE>Connection connection = Connection.from(channel);<NEW_LINE>if (connection instanceof ChannelOperati...
Objects.requireNonNull(channel, "channel");
548,426
public RemoteActionResult executeRemotely(RemoteAction action, boolean acceptCachedResult, OperationObserver observer) throws IOException, InterruptedException {<NEW_LINE>checkState(!shutdown.get(), "shutdown");<NEW_LINE>checkState(mayBeExecutedRemotely(action.spawn), "spawn can't be executed remotely");<NEW_LINE>Execu...
)).setSkipCacheLookup(!acceptCachedResult);
65,122
private void buildExternalFunctionElement(Element parent, ProductExternalFunction function) {<NEW_LINE>if (!function.isValid()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element functionElem = dom.createElement("extfn");<NEW_LINE>if (function.getName() != null && function.getName().length() > 0) {<NEW_LINE>// <fname> ... ...
"var", eachOutput.getName());
795,307
public static HippyArray fromArray(Object array) {<NEW_LINE>HippyArray catalystArray = new HippyArray();<NEW_LINE>int length;<NEW_LINE>int index;<NEW_LINE>if (array instanceof String[]) {<NEW_LINE>String[] strs = (String[]) array;<NEW_LINE>length = strs.length;<NEW_LINE>for (index = 0; index < length; ++index) {<NEW_LI...
parcelables = (Parcelable[]) array;
289,086
static void selectNextPrev(final boolean next, boolean isQuery, JTree tree) {<NEW_LINE>int[] rows = tree.getSelectionRows();<NEW_LINE>int newRow = rows == null || rows.length == 0 ? 0 : rows[0];<NEW_LINE><MASK><NEW_LINE>CheckNode node;<NEW_LINE>do {<NEW_LINE>if (next) {<NEW_LINE>newRow++;<NEW_LINE>if (newRow >= maxcoun...
int maxcount = tree.getRowCount();
1,194,213
// addSchemeIdColumn.<NEW_LINE>private void createWorkflowActionStepTable(final DotConnect dc) throws DotDataException {<NEW_LINE>boolean needToCreate = false;<NEW_LINE>Logger.info(this, "Creating intermediate 'workflow_action_step' table.");<NEW_LINE>try {<NEW_LINE>if (DbConnectionFactory.isMsSql() && !DbConnectionFac...
findIntermediateTable()).loadObjectResults();
1,352,170
void onMultiSqlStart(BackendConnection connection) {<NEW_LINE>LinkedList<String> splitSql = new LinkedList<>();<NEW_LINE>ServerParseFactory.getRwSplitParser().getMultiStatement(<MASK><NEW_LINE>if (splitSql.isEmpty()) {<NEW_LINE>multiFrontendSqlEntry = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long time = System.nanoTi...
frontendSqlEntry.getSql(), splitSql);
1,441,845
protected void calculatePath(RouterOperation routerOperation, Locale locale, OpenAPI openAPI) {<NEW_LINE>String operationPath = routerOperation.getPath();<NEW_LINE>io.swagger.v3.oas.annotations.Operation apiOperation = routerOperation.getOperation();<NEW_LINE>String[] methodConsumes = routerOperation.getConsumes();<NEW...
] headers = routerOperation.getHeaders();
1,576,700
public static ListUserAnalyzersResponse unmarshall(ListUserAnalyzersResponse listUserAnalyzersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserAnalyzersResponse.setRequestId(_ctx.stringValue("ListUserAnalyzersResponse.requestId"));<NEW_LINE>listUserAnalyzersResponse.setTotalCount(_ctx.integerValue("ListUserAnalyz...
("ListUserAnalyzersResponse.result[" + i + "].updated"));
1,412,377
private DETAILXlief createDETAILXliefForLineAndPack(@NonNull final EDIExpDesadvType xmlDesadv, @NonNull final LineAndPack lineAndPack, @NonNull final DesadvSettings settings, @NonNull final DecimalFormat decimalFormat, @NonNull final String dateFormat) {<NEW_LINE>final EDIExpDesadvLineType line = lineAndPack.getLine();...
String documentId = xmlDesadv.getDocumentNo();
1,322,397
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
ReilHelpers.nextReilAddress(instruction, instructions);
1,348,801
final GetProtocolsListResult executeGetProtocolsList(GetProtocolsListRequest getProtocolsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getProtocolsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "FMS");
598,775
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.client.cassandra.query.ResultIterator#populateEntities(com<NEW_LINE>* .impetus.kundera.metadata.model.EntityMetadata,<NEW_LINE>* com.impetus.kundera.client.Client)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected List<E> populateEntities(Ent...
Row row = rowIter.next();
1,596,018
void snapshotSession(final ClusterSession session) {<NEW_LINE>final String responseChannel = session.responseChannel();<NEW_LINE>final int length = MessageHeaderEncoder.ENCODED_LENGTH + ClusterSessionEncoder.BLOCK_LENGTH + ClusterSessionEncoder.responseChannelHeaderLength<MASK><NEW_LINE>idleStrategy.reset();<NEW_LINE>w...
() + responseChannel.length();
1,301,984
public ResponseEntity<Void> addPetWithHttpInfo(Pet body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when call...
accept, contentType, authNames, returnType);
1,431,163
private static void collectCoverageInformation(TestCase testCase) {<NEW_LINE><MASK><NEW_LINE>// NOTE: Count on a per-test-case basis, not on a 'per function seen' basis<NEW_LINE>// i.e., don't double count if a SameDiff instance has multiple copies of the same op type<NEW_LINE>// Collect coverage information for backpr...
SameDiff sd = testCase.sameDiff();
645,180
public void testRequiredNonXAOptionB() throws Exception {<NEW_LINE>String deliveryID = "MD_test4d";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTJMSRequired");<NEW_LINE>// Add a option B transacted delivery to another instan...
"The RA XAResource should not be enlisted in the global transaction.", results.raXaResourceEnlisted());
1,465,647
public int sendMessageAsync(Message message) {<NEW_LINE><MASK><NEW_LINE>SessionID sId = cm.getSessionId(message.getFrom().getAddress(), mParticipant.getAddress().getAddress());<NEW_LINE>SessionStatus otrStatus = cm.getSessionStatus(sId);<NEW_LINE>message.setTo(new XmppAddress(sId.getRemoteUserId()));<NEW_LINE>if (otrSt...
OtrChatManager cm = OtrChatManager.getInstance();
1,689,813
private static void buildElement(Element element, Map<ConfigDefinitionKey, ConfigPayloadBuilder> builderMap, ConfigDefinitionStore configDefinitionStore, DeployLogger logger) {<NEW_LINE>ConfigDefinitionKey key = DomConfigPayloadBuilder.parseConfigName(element);<NEW_LINE>Optional<ConfigDefinition> def = configDefinition...
WARNING, "Multiple overrides for " + key + " found. Applying in the order they are discovered");
181,489
public void apply(AlignmentContext alignmentContext, ReferenceContext referenceContext, FeatureContext featureContext) {<NEW_LINE>final ReadPileup pileup = alignmentContext.getBasePileup();<NEW_LINE>final ReadPileup normalPileup = pileup.makeFilteredPileup(pe -> normalSamples.contains(ReadUtils.getSampleName(pe.getRead...
getRead(), header)));
1,776,583
public Dataverse execute(CommandContext ctxt) throws CommandException {<NEW_LINE>if ((!(getUser() instanceof AuthenticatedUser) || !getUser().isSuperuser())) {<NEW_LINE>throw new PermissionException("Delete dataverse linking dataverse can only be called by superusers.", this, Collections.singleton(Permission.DeleteData...
+= "\r\n" + e.getLocalizedMessage();
45,529
public File runFilter(final File file, final Map<String, String[]> parameters) {<NEW_LINE>double w = Try.of(() -> Integer.parseInt(parameters.get(getPrefix() + "w")[0])).getOrElse(0);<NEW_LINE>double h = Try.of(() -> Integer.parseInt(parameters.get(getPrefix() + "h")[0])).getOrElse(0);<NEW_LINE>final int loop = Try.of(...
src = ImageIO.read(file);
198,776
public BufferedImageOp op() {<NEW_LINE>thirdparty.jhlabs.image.PointillizeFilter op = new thirdparty.jhlabs.image.PointillizeFilter();<NEW_LINE>op.setAngle(angle);<NEW_LINE>op.setScale(scale);<NEW_LINE>op.setEdgeThickness(edgeThickness);<NEW_LINE>op.setEdgeColor(edgeColor);<NEW_LINE>op.setFadeEdges(fadeEdges);<NEW_LINE...
jhlabs.image.CellularFilter.SQUARE);
1,767,058
public UpdateCoreNetworkResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateCoreNetworkResult updateCoreNetworkResult = new UpdateCoreNetworkResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
3,582
private static void bindRequestParameters(UriComponentsBuilder builder, HandlerMethodParameter parameter, Object[] arguments, FormatterFactory factory) {<NEW_LINE>Object value = parameter.getVerifiedValue(arguments);<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> parameterType = parameter.p...
variable = TemplateVariable.requestParameter(key);
1,265,875
private void editAccount() {<NEW_LINE>final String id = idText.getText();<NEW_LINE>final String password = passText.getText();<NEW_LINE>final String email = emailText.getText();<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_L...
param.put("group", selectedGroup);
1,312,778
public static void encode(ClientMessage clientMessage, com.hazelcast.client.impl.protocol.task.dynamicconfig.NearCacheConfigHolder nearCacheConfigHolder) {<NEW_LINE>clientMessage.add(BEGIN_FRAME.copy());<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new byte[INITIAL_FRAME_SIZE]);<NEW_LINE>encodeBo...
add(END_FRAME.copy());
1,704,492
private String addTableDataAndGetResponse(String route) {<NEW_LINE>UpdateRowResponse response;<NEW_LINE>try {<NEW_LINE>Uri uri = Uri.parse(URLDecoder<MASK><NEW_LINE>String tableName = uri.getQueryParameter("tableName");<NEW_LINE>String updatedData = uri.getQueryParameter("addData");<NEW_LINE>List<RowDataRequest> rowDat...
.decode(route, "UTF-8"));
967,842
protected void onDraw(Canvas canvas) {<NEW_LINE>final int width = getMeasuredWidth();<NEW_LINE>final int height = getMeasuredHeight();<NEW_LINE>final int lThumbWidth = mLeftThumb.getMeasuredWidth();<NEW_LINE>final <MASK><NEW_LINE>final float rThumbOffset = mRightThumb.getX();<NEW_LINE>final float lineTop = mLineSize;<N...
float lThumbOffset = mLeftThumb.getX();
1,824,703
private void sendResponse(Channel channel, int packetType, int index, int serviceType, int type, ByteBuf content) {<NEW_LINE>if (channel != null) {<NEW_LINE>ByteBuf data = Unpooled.buffer();<NEW_LINE>data.writeByte(type);<NEW_LINE>data.writeShortLE(content.readableBytes());<NEW_LINE>data.writeBytes(content);<NEW_LINE>c...
, response.nioBuffer()));