idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,341,527
public <T> T runInPage(ChromeInstanceHandle chromeInstance, Function<ChromeDevToolsService, T> tabAction) {<NEW_LINE>return chromeInstance.runWithChromeInstance(chromeService -> {<NEW_LINE>try (ChromeDevToolsServiceImpl browserDevToolsService = getBrowserDevToolsService(chromeService)) {<NEW_LINE>Target target = browse...
log.debug("closed tab " + targetId);
914,643
public Event nextEvent() {<NEW_LINE>while (true) {<NEW_LINE>Event ev = source.nextEvent();<NEW_LINE>switch(ev) {<NEW_LINE>case END_OF_STREAM:<NEW_LINE>return ev;<NEW_LINE>case META_CHANGED:<NEW_LINE>meta = null;<NEW_LINE>return ev;<NEW_LINE>case NEXT_OBJECT:<NEW_LINE>if (meta == null) {<NEW_LINE>updateMeta();<NEW_LINE>...
V) source.data(column);
244,204
public List<? extends CodeGenerator> create(Lookup context) {<NEW_LINE>JTextComponent component = context.lookup(JTextComponent.class);<NEW_LINE>if (component == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>FileObject file = NbEditorUtilities.getFileObject(component.getDocument());<NEW_LINE>if (...
uri = Utils.toURI(file);
1,624,168
private Schema fromProperty(PropertySpecification source, ModelNamesRegistry modelNamesRegistry) {<NEW_LINE>Schema property = model(source.getType(), modelNamesRegistry);<NEW_LINE>ModelFacets facets = source.getType().getFacets().orElse(null);<NEW_LINE>maybeAddFacets(property, facets);<NEW_LINE>maybeAddFacets(property,...
setDescription(source.getDescription());
857,048
public void importEbicsUsers(ActionRequest request, ActionResponse response) {<NEW_LINE>String config = "/data-import/import-ebics-user-config.xml";<NEW_LINE>try {<NEW_LINE>InputStream inputStream = this.getClass().getResourceAsStream(config);<NEW_LINE>File configFile = File.createTempFile("config", ".xml");<NEW_LINE>F...
= new File(tempDir, "ebics-user.xml");
660,094
public SOM clone() {<NEW_LINE>SOM clone = new SOM(maxIters, kf, initialLearningRate, learningDecay, neighborDecay, dm.clone(), somHeight, somHeight, vcCollection.clone());<NEW_LINE>if (this.weights != null) {<NEW_LINE>clone.weights = new Vec[this.weights.length][this.weights[0].length];<NEW_LINE>for (int i = 0; i < thi...
][j].clone();
800,317
protected Bson writeMapInternal(Map<Object, Object> obj, Bson bson, TypeInformation<?> propertyType) {<NEW_LINE>for (Map.Entry<Object, Object> entry : obj.entrySet()) {<NEW_LINE>Object key = entry.getKey();<NEW_LINE>Object val = entry.getValue();<NEW_LINE>if (conversions.isSimpleType(key.getClass())) {<NEW_LINE>String ...
addToMap(bson, simpleKey, document);
1,293,635
public String testEJBBindings() throws Exception {<NEW_LINE>Container ejbContainer = getEJBJarContainer(TEST_EJB);<NEW_LINE>EJBJarBnd bindings = ejbContainer.adapt(EJBJarBnd.class);<NEW_LINE>if (bindings == null)<NEW_LINE>return "Could not adapt EJB jar bindings";<NEW_LINE>List<com.ibm.ws.javaee.dd.ejbbnd.EnterpriseBea...
return "Invalid auth alias name: " + alias.getName();
1,097,514
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>BulkRequest bulkRequest = Requests.bulkRequest();<NEW_LINE>String defaultIndex = request.param("index");<NEW_LINE>String defaultRouting = request.param("routing");<NEW_LINE>String defaultPipeline ...
waitForActiveShards = request.param("wait_for_active_shards");
416,247
private AcctSchema toAcctSchema(@NonNull final I_C_AcctSchema acctSchemaRecord) {<NEW_LINE>final AcctSchemaId acctSchemaId = AcctSchemaId.ofRepoId(acctSchemaRecord.getC_AcctSchema_ID());<NEW_LINE>final CurrencyId acctCurrencyId = CurrencyId.ofRepoId(acctSchemaRecord.getC_Currency_ID());<NEW_LINE>final Currency acctCurr...
CurrencyPrecision standardPrecision = acctCurrency.getPrecision();
1,351,989
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String refreshToken = InputParser.parseStringOrThrowError(input, "refreshToken", false);<NEW_LINE>String antiCsrfToken = Input...
, Utils.exceptionStacktraceToString(e));
439,409
private void processOverridesBelongsTo(Class<? extends Model> modelClass, BelongsTo belongsToAnnotation) {<NEW_LINE>if (belongsToAnnotation != null) {<NEW_LINE>Class<? extends Model> parentClass = belongsToAnnotation.parent();<NEW_LINE><MASK><NEW_LINE>if (metaModels.getMetaModel(parentClass).hasAssociation(modelClass, ...
String foreignKeyName = belongsToAnnotation.foreignKeyName();
1,443,111
public void addOperation(PathSpec path, MaskOperation op) {<NEW_LINE>List<String> segments = path.getPathComponents();<NEW_LINE>Map<String, Object> attributes = path.getPathAttributes();<NEW_LINE>final DataMap fieldMask = new DataMap();<NEW_LINE>// map variable contains DataMap, into which current segment will be put<N...
attributes.get(PathSpec.ATTR_ARRAY_START);
1,592,906
private boolean isWhiteSpaceToken(JoinedTokenSequence<T1> joinedTS, int rowStartOffset, int rowEndOffset, boolean forward) {<NEW_LINE><MASK><NEW_LINE>int end = joinedTS.offset() + joinedTS.token().length();<NEW_LINE>if (forward) {<NEW_LINE>if (rowStartOffset > start) {<NEW_LINE>start = Math.min(rowStartOffset, end);<NE...
int start = joinedTS.offset();
429,532
public AggregateCall topSplit(RexBuilder rexBuilder, Registry<RexNode> extra, int offset, RelDataType inputRowType, AggregateCall aggregateCall, int leftSubTotal, int rightSubTotal) {<NEW_LINE>final List<RexNode> merges = new ArrayList<>();<NEW_LINE>final List<RelDataTypeField> fieldList = inputRowType.getFieldList();<...
.makeInputRef(type, leftSubTotal));
1,329,460
final DeleteActivityResult executeDeleteActivity(DeleteActivityRequest deleteActivityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteActivityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteActivity");
256,365
private void mapRequestMatchersUrl(YamlContract.Request yamlContractRequest, Request request) {<NEW_LINE>Object url = Optional.ofNullable(request.getUrl()).map(Url<MASK><NEW_LINE>YamlContract.KeyValueMatcher keyValueMatcher = new YamlContract.KeyValueMatcher();<NEW_LINE>if (url instanceof RegexProperty) {<NEW_LINE>keyV...
::getClientValue).orElse(null);
1,729,869
private /* GRECLIPSE edit -- GROOVY-10113<NEW_LINE>private void checkCyclicInheritance(ClassNode originalNode, ClassNode parentToCompare, ClassNode[] interfacesToCompare) {<NEW_LINE>if(!originalNode.isInterface()) {<NEW_LINE>if(parentToCompare == null) return;<NEW_LINE>if(originalNode == parentToCompare.redirect()) {<N...
todo, next.getInterfaces());
451,191
public void executeTask() throws IOException {<NEW_LINE>final String currentVersion = VersionProperties.getElasticsearch();<NEW_LINE>if (needsGitTags(currentVersion)) {<NEW_LINE>findAndUpdateUpstreamRemote(gitWrapper);<NEW_LINE>}<NEW_LINE>LOGGER.info("Finding changelog files...");<NEW_LINE>final Map<QualifiedVersion, S...
versions = getVersions(gitWrapper, currentVersion);
482,979
public static boolean allowMultipleReadConns(ExecutionContext context, LogicalView logicalView) {<NEW_LINE>boolean ret = useExplicitTransaction(context);<NEW_LINE>if (ret) {<NEW_LINE>boolean shareReadView = context.isShareReadView() && context.getTransaction().getTransactionClass().isA(SUPPORT_SHARE_READVIEW_TRANSACTIO...
() == SqlSelect.LockMode.UNDEF;
274,594
public void authUser(final LoginListener listener) {<NEW_LINE>HttpUrl url = HttpUrl.parse(OAUTH_ENDPOINT).newBuilder().addQueryParameter("client_id", CLIENT_ID).addQueryParameter("scope", "openid email https://www.googleapis.com/auth/userinfo.email").addQueryParameter("response_type", "code").addQueryParameter("redirec...
AuthRequest body = response.body();
836,082
public static DataType toDataType(DataTypeManager dtm, String dataTypeString) {<NEW_LINE>if (dataTypeString.length() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>switch(dataTypeString.charAt(0)) {<NEW_LINE>case 'B':<NEW_LINE>return SignedByteDataType.dataType;<NEW_LINE>case 'C':<NEW_LINE>return CharDataType.dataTy...
, dataTypeString.substring(1));
1,192,857
private static void format(Box.Struct struct, Boxes.Context ctx, boolean isComplete, StylingString string, Style style) {<NEW_LINE>Box.StructType type = Boxes.struct(ctx.unbox<MASK><NEW_LINE>string.append("{", string.structureStyle());<NEW_LINE>int count = Math.min(type.getFieldsCount(), struct.getFieldsCount());<NEW_L...
(struct.getType()));
125,386
boolean execute2(final ScriptCommandEvent event, final CommandSender sender, final String commandLabel, final String rest) {<NEW_LINE>final ParseLogHandler log = SkriptLogger.startParseLogHandler();<NEW_LINE>try {<NEW_LINE>final boolean ok = SkriptParser.parseArguments(<MASK><NEW_LINE>if (!ok) {<NEW_LINE>final LogEntry...
rest, ScriptCommand.this, event);
1,430,926
final GetStageResult executeGetStage(GetStageRequest getStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,834,697
final DeleteRunResult executeDeleteRun(DeleteRunRequest deleteRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
471,909
public static UpdateMediaResponse unmarshall(UpdateMediaResponse updateMediaResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateMediaResponse.setRequestId(_ctx.stringValue("UpdateMediaResponse.RequestId"));<NEW_LINE>Media media = new Media();<NEW_LINE>media.setCreationTime(_ctx.stringValue("UpdateMediaResponse.Media.C...
(_ctx.stringValue("UpdateMediaResponse.Media.MediaId"));
1,618,174
BLangStatementExpression desugar(BLangQueryAction queryAction, SymbolEnv env) {<NEW_LINE>containsCheckExpr = false;<NEW_LINE>HashSet<BType> prevCheckedErrorList = this.checkedErrorList;<NEW_LINE>this.checkedErrorList = new HashSet<>();<NEW_LINE>List<BLangNode> clauses = queryAction.getQueryClauses();<NEW_LINE>Location ...
ifBody = ASTBuilderUtil.createBlockStmt(pos);
693,407
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.api.device.IDeviceManagement#createCustomerType(<NEW_LINE>* com.sitewhere.spi.customer.request.ICustomerTypeCreateRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ICustomerType createCustomerType(ICustomerTypeCreateRequest request) throws SiteWhereExceptio...
customerType = DeviceManagementPersistence.customerTypeCreateLogic(request);
1,157,892
public void delete(final Principal user, final RelationshipInterface relationship, final boolean passive) {<NEW_LINE>getState(relationship).delete(passive);<NEW_LINE>final NodeInterface sourceNode = relationship.getSourceNodeAsSuperUser();<NEW_LINE>final NodeInterface targetNode = relationship.getTargetNodeAsSuperUser(...
sourceNode, targetNode, relationship, true);
1,662,100
public boolean validateMethodRequest(MethodConfig methodConfig) {<NEW_LINE>if (methodConfig.getSpreadsheetId() == null || methodConfig.getSpreadsheetId().isBlank()) {<NEW_LINE>throw new AppsmithPluginException(AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR, "Missing required field Spreadsheet Url");<NEW_LINE>}<NEW_L...
methodConfig.getRowObject(), "Unable to parse request body. Expected a row object.");
453,215
protected void configure(HttpSecurity http) throws Exception {<NEW_LINE>NgrinderUsernamePasswordAuthenticationFilter ngrinderUsernamePasswordAuthenticationFilter = new NgrinderUsernamePasswordAuthenticationFilter(userRepository);<NEW_LINE>ngrinderUsernamePasswordAuthenticationFilter.setRememberMeServices(rememberMeServ...
ngrinderUsernamePasswordAuthenticationFilter.setAuthenticationManager(authenticationManager());
1,292,470
public static ZonedDateTime actionZDTPlusMinusTimePeriod(ZonedDateTime zdt, int factor, TimePeriod tp) {<NEW_LINE>if (tp == null) {<NEW_LINE>return zdt;<NEW_LINE>}<NEW_LINE>if (tp.getYears() != null) {<NEW_LINE>zdt = zdt.plus(factor * tp.getYears(), ChronoUnit.YEARS);<NEW_LINE>}<NEW_LINE>if (tp.getMonths() != null) {<N...
getDays(), ChronoUnit.DAYS);
1,136,295
private static void initializeFunctionDataCallTarget(JSFunctionData functionData, JSBuiltin builtin, JSFunctionData.Target target, CallTarget callTarget) {<NEW_LINE>JSContext context = functionData.getContext();<NEW_LINE>NodeFactory factory = NodeFactory.getDefaultInstance();<NEW_LINE>FrameDescriptor frameDescriptor = ...
setConstructTarget(constructRoot.getCallTarget());
876,886
public PutRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutRuleResult putRuleResult = new PutRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
JsonToken token = context.getCurrentToken();
1,809,335
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>PrintWriter pw = resp.getWriter();<NEW_LINE>try {<NEW_LINE>logger.fine((new StringBuilder()).append("In BonusPayout, called with URL: ").append(req.getRequestURL()).append("?").append(req.getQueryStrin...
()).toString());
1,315,854
public void handleWebcam() {<NEW_LINE>// Webcam can only be processed in GUI mode<NEW_LINE>GUI = true;<NEW_LINE>final Webcam webcam = openSelectedCamera();<NEW_LINE>if (desiredWidth > 0 && desiredHeight > 0)<NEW_LINE>UtilWebcamCapture.adjustResolution(webcam, desiredWidth, desiredHeight);<NEW_LINE>webcam.open();<NEW_LI...
gray.width, gray.height);
397,417
protected int sigaction(Emulator<?> emulator, int signum, Pointer act, Pointer oldact) {<NEW_LINE>SigAction action = SigAction.create(emulator, act);<NEW_LINE>SigAction oldAction = SigAction.create(emulator, oldact);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("sigaction signum=" + signum + ", action=" + ac...
0, oldAction.size());
1,700,877
public void runSupport() {<NEW_LINE>FileDialog dialog = new FileDialog(Utils.findAnyShell(), SWT.SYSTEM_MODAL | SWT.SAVE);<NEW_LINE>dialog.setFilterPath(TorrentOpener.getFilterPathData());<NEW_LINE>dialog.setText(MessageText.getString("subscript.export.select.template.file"));<NEW_LINE>dialog.setFilterExtensions(VuzeFi...
VuzeFile vf = subs.getVuzeFile();
331,419
public boolean updateRuleEngine(RuleEngineEntity ruleEngineEntity, HttpServletRequest request, HttpServletResponse response) throws GovernanceException {<NEW_LINE>try {<NEW_LINE>// check rule<NEW_LINE>this.checkRule(ruleEngineEntity);<NEW_LINE>// set payload<NEW_LINE>String payload = JsonHelper.object2Json(ruleEngineEn...
getBroker(rule.getBrokerId());
459,699
public boolean addNode(BookieNode node) {<NEW_LINE>// An ensemble cannot contain the same node twice<NEW_LINE>if (chosenNodes.contains(node)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if ((ensembleSize == writeQuorumSize) && (minRacksOrRegionsForDurability > 0)) {<NEW_LINE>if (null == quorums[0]) {<NEW_LINE>quorums[...
= (i + ensembleSize) % ensembleSize;
657,390
private boolean isGooglePlayServicesAvailable(Activity activity) {<NEW_LINE>GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();<NEW_LINE>int <MASK><NEW_LINE>switch(connectionResult) {<NEW_LINE>// Success: return true<NEW_LINE>case ConnectionResult.SUCCESS:<NEW_LINE>return true;<NEW_LINE>/...
connectionResult = googleApiAvailability.isGooglePlayServicesAvailable(activity);
529,969
public List<MetricFamilySamples> collect() {<NEW_LINE>GaugeMetricFamily retryCallsFamily = new GaugeMetricFamily(names.getCallsMetricName(), "The number of calls", LabelNames.NAME_AND_KIND);<NEW_LINE>for (Retry retry : retryRegistry.getAllRetries()) {<NEW_LINE>retryCallsFamily.addMetric(asList(retry.getName(), "success...
getMetrics().getNumberOfSuccessfulCallsWithRetryAttempt());
259,164
private Property constructIdProperty(Class<?> inheritedType) {<NEW_LINE>Property property = new Property();<NEW_LINE>property.setName("id");<NEW_LINE>BasicFieldMetadata fieldMetadata = new BasicFieldMetadata();<NEW_LINE>property.setMetadata(fieldMetadata);<NEW_LINE><MASK><NEW_LINE>fieldMetadata.setSecondaryType(Support...
fieldMetadata.setFieldType(SupportedFieldType.ID);
1,842,924
public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled compiled = env.readCompile("regression/test_module_9.epl");<NEW_LINE>EPDeployment result;<NEW_LINE>try {<NEW_LINE>result = env.runtime().getDeploymentService().deploy(compiled);<NEW_LINE>} catch (EPDeployException ex) {<NEW_LINE>throw new RuntimeException...
).getDeployments().length);
1,597,198
public static QuerySideMessageResponse unmarshall(QuerySideMessageResponse querySideMessageResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySideMessageResponse.setRequestId(_ctx.stringValue("QuerySideMessageResponse.RequestId"));<NEW_LINE>querySideMessageResponse.setErrorMessage(_ctx.stringValue("QuerySideMessageRes...
(_ctx.booleanValue("QuerySideMessageResponse.Success"));
1,229,228
public ParameterizedStatement unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterizedStatement parameterizedStatement = new ParameterizedStatement();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
84,165
public static DAVProperties findStartingProperties(DAVConnection connection, DAVRepository repos, String fullPath) throws SVNException {<NEW_LINE>DAVProperties props = null;<NEW_LINE>String originalPath = fullPath;<NEW_LINE>String loppedPath = "";<NEW_LINE>if ("".equals(fullPath)) {<NEW_LINE>props = getStartingProperti...
err, nested, SVNLogType.NETWORK);
712,026
public static void main(String[] args) {<NEW_LINE>JFrame view = new JFrame("nonegative");<NEW_LINE>view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<NEW_LINE>view.setLayout(new FlowLayout());<NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>CellLoop<Integer> value = new CellLoop<>();<NEW_LINE>SLabel lblValue = new SLab...
SButton plus = new SButton("+");
1,092,774
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>ConfigHandler configHandler = new ConfigHandler(this, this.session, this.execution);<NEW_LINE>configHandler.parseConfiguration();<NEW_LINE>getLog().debug("Parsed values for Android Lint invocation: ");<NEW_LINE>getLog().debug("failOnEr...
).debug("showAll:" + parsedShowAll);
606,971
public static DescribeDesktopGroupsResponse unmarshall(DescribeDesktopGroupsResponse describeDesktopGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDesktopGroupsResponse.setRequestId(_ctx.stringValue("DescribeDesktopGroupsResponse.RequestId"));<NEW_LINE>describeDesktopGroupsResponse.setNextToken(_ctx.strin...
("DescribeDesktopGroupsResponse.DesktopGroups[" + i + "].MaxDesktopsCount"));
781,296
// Processes the original key supplied by a character array to its final format.<NEW_LINE>private void doKey(char[] key) throws Exception {<NEW_LINE>if (key.length != 8) {<NEW_LINE>throw new Exception("Invalid key length:" + key.length);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < 8; i++) {<NEW_LINE>if (key[i] > 255) {<NEW...
] = t[6 - i];
1,755,513
private void forwardEvents(List<Response.ResponseListener> listeners, Response response) {<NEW_LINE>notifyBegin(listeners, response);<NEW_LINE>Iterator<HttpField> iterator = response<MASK><NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>HttpField field = iterator.next();<NEW_LINE>if (!notifyHeader(listeners, response, f...
.getHeaders().iterator();
122,540
private int copySetRecord(HollowSetSchema engineSchema, int currentRecordPointer, int currentRecordOrdinal) {<NEW_LINE>HollowSetWriteRecord rec = engineSchema != null ? (HollowSetWriteRecord) getWriteRecord(engineSchema) : null;<NEW_LINE>int numElements = VarInt.<MASK><NEW_LINE>currentRecordPointer += VarInt.sizeOfVInt...
readVInt(record.data, currentRecordPointer);
290,435
protected JFreeChart createTimeSeriesChart() throws JRException {<NEW_LINE>String timeAxisLabel = evaluateTextExpression(((JRTimeSeriesPlot) getPlot()).getTimeAxisLabelExpression());<NEW_LINE>String valueAxisLabel = evaluateTextExpression(((JRTimeSeriesPlot) getPlot<MASK><NEW_LINE>ChartFactory.setChartTheme(StandardCha...
()).getValueAxisLabelExpression());
1,378,748
final UpdateContactFlowMetadataResult executeUpdateContactFlowMetadata(UpdateContactFlowMetadataRequest updateContactFlowMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactFlowMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
799,113
private static void checkDoubleFastAgainstSlow() {<NEW_LINE>System.out.println("This checks every possible 64-bit floating point value - interrupt when you are satisfied.");<NEW_LINE>long stride = 1000000000000000L;<NEW_LINE>for (long base = 0; base < stride; base++) {<NEW_LINE>for (long l = base; l <= 0x7fffffffffffff...
("expected %s, but was %s", expected, actual));
1,048,058
private ExtractConstantDescriptor createRefactoringDescriptor() {<NEW_LINE>final Map<String, String> arguments = new HashMap<>();<NEW_LINE>String project = null;<NEW_LINE>IJavaProject javaProject = fCu.getJavaProject();<NEW_LINE>if (javaProject != null) {<NEW_LINE>project = javaProject.getElementName();<NEW_LINE>}<NEW_...
asString(), arguments, flags);
1,799,102
public MultiplexSettingsSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MultiplexSettingsSummary multiplexSettingsSummary = new MultiplexSettingsSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
216,821
public static StitchingTransform<Affine2D_F64> createAffine_F64() {<NEW_LINE>return new StitchingTransform<>() {<NEW_LINE><NEW_LINE>final Affine2D_F32 input_F32 = new Affine2D_F32();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PixelTransform<Point2D_F32> convertPixel(Affine2D_F64 input, @Nullable PixelTransform<Point2...
ConvertFloatType.convert(input, input_F32);
816,889
// ----------------------------------------------------------------<NEW_LINE>static void doMatrix(String verb, String[] args, boolean doCij) {<NEW_LINE>Vector<Hash256> hashes1 = new Vector<Hash256>();<NEW_LINE>Vector<Hash256> hashes2 = new Vector<Hash256>();<NEW_LINE>if (args.length == 0) {<NEW_LINE>HashReaderUtil.load...
System.out.printf("\n");
290,204
private // container at the specified index<NEW_LINE>void insertEntry(int incomingRowIdx, int currentIdx, int hashValue, BatchHolder lastEntryBatch, int lastEntryIdxWithinBatch) throws SchemaChangeException {<NEW_LINE>int currentIdxWithinBatch = currentIdx & BATCH_MASK;<NEW_LINE>setValue(incomingRowIdx, currentIdxWithi...
"BatchHolder: inserted key at incomingRowIdx = {}, currentIdx = {}, hash value = {}.", incomingRowIdx, currentIdx, hashValue);
1,747,906
private void addSootBasicClasses() {<NEW_LINE>basicclasses[SootClass.HIERARCHY] = new HashSet<String>();<NEW_LINE>basicclasses[SootClass.SIGNATURES] = new HashSet<String>();<NEW_LINE>basicclasses[SootClass.BODIES] = new HashSet<String>();<NEW_LINE>addBasicClass("java.lang.Object");<NEW_LINE>addBasicClass("java.lang.Cla...
addBasicClass("java.lang.ReflectiveOperationException", SootClass.SIGNATURES);
481,417
public static boolean isScriptlet(StyledDocument doc, JEditorPane ep, int offset) {<NEW_LINE>String t;<NEW_LINE>int line = NbDocument.findLineNumber(doc, offset);<NEW_LINE>int col = <MASK><NEW_LINE>try {<NEW_LINE>while (line > 0) {<NEW_LINE>javax.swing.text.Element lineElem = org.openide.text.NbDocument.findLineRootEle...
NbDocument.findLineColumn(doc, offset);
409,404
public static void main(final String[] args) {<NEW_LINE>if (Check.isEmpty(System.getProperty("PropertyFile"), true)) {<NEW_LINE>System.setProperty("PropertyFile", "./metasfresh.properties");<NEW_LINE>}<NEW_LINE>final CommandLineParser.CommandLineOptions commandLineOptions = CommandLineParser.parse(args);<NEW_LINE>final...
()).run(args);
849,276
public void visitListInit(EListInit userListInitNode, ScriptScope scriptScope) {<NEW_LINE>ListInitializationNode irListInitializationNode = new ListInitializationNode(userListInitNode.getLocation());<NEW_LINE>irListInitializationNode.setExpressionType(scriptScope.getDecoration(userListInitNode, ValueType.class).getValu...
.class).getStandardPainlessConstructor());
1,164,283
public void execute(State state) throws WorkflowExecutionException {<NEW_LINE>TlsContext tlsContext = state.getTlsContext(getConnectionAlias());<NEW_LINE>LOGGER.info("Terminating Connection");<NEW_LINE>try {<NEW_LINE>tlsContext<MASK><NEW_LINE>} catch (IOException ex) {<NEW_LINE>LOGGER.debug("Could not close client conn...
.getTransportHandler().closeClientConnection();
1,649,675
void maybeSendCapture() {<NEW_LINE>if (!shouldSendCapture()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Payload payload = new Payload();<NEW_LINE>for (Capturable capturable : capturables) {<NEW_LINE>StringWriter content = new StringWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(content);<NEW_LINE>ca...
job, request).execute();
825,936
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) {<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=479656<NEW_LINE>// In case of the requested type not being a member type (i.e. not being a top level type)<NEW_LINE>// we need to find the top lev...
[0]).getElementInfo();
1,408,615
public void marshall(CreatePipelineRequest createPipelineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createPipelineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createPipelineRequest...
createPipelineRequest.getInputBucket(), INPUTBUCKET_BINDING);
708,236
public void visitCode() {<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE>mv.visitMethodInsn(Opcodes.INVOKESTATIC, CONNECT_CLASS, "getString", "(Ljava/net/SocketAddress;)Ljava/lang/String;", false);<NEW_LINE>mv.visitVarInsn(Opcodes.ASTORE, 2);<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 0);<NEW_LINE>mv.visitVarInsn(Op...
visitVarInsn(Opcodes.ALOAD, 1);
1,267,547
ActionResult<Wo> execute(EffectivePerson effectivePerson, String workCompletedId) throws Exception {<NEW_LINE>String job = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>WorkCompleted workCompleted = emc.find...
).getData(Wo.class);
1,098,840
protected void onPostExecute(Void param) {<NEW_LINE>MainActivity activity = activityWeakReference.get();<NEW_LINE>if (activity == null)<NEW_LINE>return;<NEW_LINE>// Loader should still be displayed until all the providers have finished loading<NEW_LINE>activity.displayLoader(!KissApplication.getApplication(activity).ge...
) + " to completion: " + time + "ms");
1,617,782
public void createEmbeddedHotRodServer(Config.Scope config) {<NEW_LINE>try {<NEW_LINE>hotRodCacheManager = new DefaultCacheManager("hotrod/hotrod1.xml");<NEW_LINE>hotRodCacheManager2 = new DefaultCacheManager("hotrod/hotrod2.xml");<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new RuntimeException(e);<NEW_LINE>}<NE...
port(11333).build();
1,820,475
protected void map(SlicedSelectedSample selection, SlicedResult result) throws Exception {<NEW_LINE>DLPredictorService predictor = threadLocalPredictor.get();<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>List<Object> inputs = new ArrayList<>();<NEW_LINE>for (int i = 0; i < selection.length(); i++) {<NEW_L...
.format("Time elapsed for torch inference: %d ms\n", elapsed));
1,211,684
private void afterMigrate() {<NEW_LINE>ILogger logger = getLogger();<NEW_LINE>if (success) {<NEW_LINE>InternalPartitionServiceImpl partitionService = getService();<NEW_LINE>PartitionReplicaManager replicaManager = partitionService.getReplicaManager();<NEW_LINE>int destinationNewReplicaIndex = migrationInfo.getDestinati...
] replicaVersions = e.getValue();
1,236,958
public static UpdateModelResponse unmarshall(UpdateModelResponse updateModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateModelResponse.setRequestId(_ctx.stringValue("UpdateModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("UpdateModelResponse.Data.AppId"));<NEW...
(_ctx.stringValue("UpdateModelResponse.Data.ModifiedTime"));
1,093,309
public PutStatus put(K key, V value) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>putObserver.begin();<NEW_LINE><MASK><NEW_LINE>AtomicReference<StoreOperationOutcomes.PutOutcome> statOutcome = new AtomicReference<>(StoreOperationOutcomes.PutOutcome.NOOP);<NEW_LINE>StoreEven...
long now = timeSource.getTimeMillis();
894,132
public File save(Reflections reflections, String name) {<NEW_LINE>if (name.endsWith("/")) {<NEW_LINE>// trim / at the end<NEW_LINE>name = name.substring(0, name.length() - 1);<NEW_LINE>}<NEW_LINE>// prepare file<NEW_LINE>String filename = name.replace('.', '/').concat(".java");<NEW_LINE>File file = Serializer.prepareFi...
('/') + 1, lastDot);
78,033
public io.kubernetes.client.proto.V1alpha1Admissionregistration.ExternalAdmissionHook buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1alpha1Admissionregistration.ExternalAdmissionHook result = new io.kubernetes.client.proto.V1alpha1Admissionregistration.ExternalAdmissionHook(this);<NEW_LINE>int from_bitField0_ =...
bitField0_ = (bitField0_ & ~0x00000004);
707,820
private JComponent createFeaturePanel() {<NEW_LINE>JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);<NEW_LINE>waveFormCS = getCoordinateSystem(AxisUnit.AMPLITUDE);<NEW_LINE>waveForm = new LinkedPanel(waveFormCS);<NEW_LINE>waveForm.addLayer(new BackgroundLayer(waveFormCS));<NEW_LINE>waveForm.addLayer(new...
.addLayer(new ZoomMouseListenerLayer());
705,300
public static void vertical(WlCoef_I32 coefficients, GrayS32 input, GrayS32 output) {<NEW_LINE>final int offsetA <MASK><NEW_LINE>final int offsetB = coefficients.offsetWavelet * input.stride;<NEW_LINE>final int[] alpha = coefficients.scaling;<NEW_LINE>final int[] beta = coefficients.wavelet;<NEW_LINE>final int[] dataIn...
= coefficients.offsetScaling * input.stride;
1,136,324
final GetOperationResult executeGetOperation(GetOperationRequest getOperationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getOperationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,587,875
protected static JoinLongFieldBo merge(List<JoinLongFieldBo> joinLongFieldBoList) {<NEW_LINE>if (CollectionUtils.isEmpty(joinLongFieldBoList)) {<NEW_LINE>return UNCOLLECTED_FIELD_BO;<NEW_LINE>}<NEW_LINE>double avg = joinLongFieldBoList.stream().mapToLong(JoinFieldBo::getAvg).average().orElseThrow(NoSuchElementException...
long maxValue = max.getMax();
642,546
public void reduce(Iterable<T> values, Collector<T> out) throws Exception {<NEW_LINE>GetFirstIterator iterator = new GetFirstIterator(values.iterator());<NEW_LINE>Double fraction = sampleRatio;<NEW_LINE>if (null == fraction || fraction < 0) {<NEW_LINE>Row first = (Row) iterator.getFirst();<NEW_LINE>if (null != first) {...
<T>(fraction, seedAndIndex);
194,269
private static int addChunksToRegen(CommandSourceStack source, ColumnPos start, ColumnPos end) throws CommandSyntaxException {<NEW_LINE>if (!MekanismConfig.world.enableRegeneration.get()) {<NEW_LINE>throw RETROGEN_NOT_ENABLED.create();<NEW_LINE>}<NEW_LINE>int xStart = Math.min(start.x, end.x);<NEW_LINE>int xEnd = Math....
ServerLevel world = source.getLevel();
809,283
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tb, DrawSettings settings) {<NEW_LINE>if (isDrawingEnabled()) {<NEW_LINE>lineAttrs.updatePaints(view.getApplication(), settings, tb);<NEW_LINE>if (editingCtx.isInApproximationMode()) {<NEW_LINE>List<List<WptPt>> originalPointsList = editingCtx.getOriginalSe...
> before = editingCtx.getBeforeTrkSegmentLine();
287,867
final ListRecipesResult executeListRecipes(ListRecipesRequest listRecipesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRecipesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
470,141
public String[][] resolveType(String typeName, WorkingCopyOwner owner) throws JavaModelException {<NEW_LINE>JavaProject project = (JavaProject) getJavaProject();<NEW_LINE>SearchableEnvironment environment = project.newSearchableNameEnvironment(owner);<NEW_LINE>class TypeResolveRequestor implements ISelectionRequestor {...
int length = this.answers.length;
963,895
private List<TorrentFile> makeFileListRequest(Log log, Torrent torrent) throws DaemonException, LoggedOutException {<NEW_LINE>try {<NEW_LINE>// Initialise the HTTP client<NEW_LINE>initialise();<NEW_LINE>makeLoginRequest(log);<NEW_LINE>// Make request<NEW_LINE>HttpGet httpget = new HttpGet(buildWebUIUrl() + RPC_URL_FILE...
"Parsing error: " + e.toString());
1,510,608
private TextBlock createTextBlock(CharSequence cs) {<NEW_LINE>FontConfiguration config;<NEW_LINE>if (style != null)<NEW_LINE>config = <MASK><NEW_LINE>else<NEW_LINE>config = FontConfiguration.create(skinParam, fontParam, stereotype);<NEW_LINE>if (cs instanceof Member) {<NEW_LINE>final Member m = (Member) cs;<NEW_LINE>fi...
FontConfiguration.create(skinParam, style);
906,323
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
1,278,156
public boolean dispatchTouchEvent(MotionEvent ev) {<NEW_LINE>gestureDetector.onTouchEvent(ev);<NEW_LINE>int X = (int) ev.getX();<NEW_LINE>int Y = (int) ev.getY();<NEW_LINE>if (map != null) {<NEW_LINE>tapLocation = map.getProjection().fromScreenLocation(new Point(X, Y));<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>switch(ac...
action = MotionEventCompat.getActionMasked(ev);
639,252
public static TimeValue parseTimeValue(String sValue) {<NEW_LINE>if (sValue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String lowerSValue = sValue.toLowerCase(Locale.ROOT).trim();<NEW_LINE>long duration = Long.parseLong(lowerSValue.substring(0, lowerSValue.length() - 1));<NEW_LINE>TimeUnit unit...
.length() - 2));
617,952
protected Object[] makeRow(int id, int type, Long start, Long end) {<NEW_LINE>Object[] result = new Object[mProjection.length];<NEW_LINE>insertValue(result, RANGE_ID, id);<NEW_LINE>insertValue(result, RANGE_TYPE, type);<NEW_LINE>insertValue(result, RANGE_START, start);<NEW_LINE>insertValue(result, RANGE_END, end);<NEW_...
start + end) >> 1);
1,342,581
public PhraseSuggestionContext.DirectCandidateGenerator build(MapperService mapperService) throws IOException {<NEW_LINE>PhraseSuggestionContext.DirectCandidateGenerator generator = new PhraseSuggestionContext.DirectCandidateGenerator();<NEW_LINE><MASK><NEW_LINE>transferIfNotNull(this.size, generator::size);<NEW_LINE>i...
generator.setField(this.field);
381,778
public static void rewriteValue(Element element, String value) {<NEW_LINE>Text text = null;<NEW_LINE>if (element.getContent() != null) {<NEW_LINE>for (Iterator<?> it = element.getContent().iterator(); it.hasNext(); ) {<NEW_LINE>Object content = it.next();<NEW_LINE>if ((content instanceof Text) && ((Text) content).getTe...
String chars = text.getText();
1,180,297
private void readFields(String segmentName, IndexInput meta, FieldInfos infos) throws IOException {<NEW_LINE>for (int fieldNumber = meta.readInt(); fieldNumber != -1; fieldNumber = meta.readInt()) {<NEW_LINE>FieldInfo info = infos.fieldInfo(fieldNumber);<NEW_LINE>if (info == null) {<NEW_LINE>throw new CorruptIndexExcep...
CorruptIndexException("invalid type: " + type, meta);
474,854
private List<NotebookCell> mapNotebookCells(com.linkedin.notebook.NotebookCellArray pegasusCells) {<NEW_LINE>return pegasusCells.stream().map(pegasusCell -> {<NEW_LINE>NotebookCell notebookCell = new NotebookCell();<NEW_LINE>NotebookCellType cellType = NotebookCellType.valueOf(pegasusCell.getType().toString());<NEW_LIN...
(pegasusCell.getQueryCell()));
1,829,852
public double convexityFromYield(ResolvedFixedCouponBond bond, LocalDate settlementDate, double yield) {<NEW_LINE>ImmutableList<FixedCouponBondPaymentPeriod> payments = bond.getPeriodicPayments();<NEW_LINE>int nCoupon = payments.size() - couponIndex(payments, settlementDate);<NEW_LINE>FixedCouponBondYieldConvention yie...
(den, -3) / dirtyPrice;