idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
328,567
public void register(List<JarScan> jars, int version) {<NEW_LINE>Map<String, List<FunctionHolder>> newJars = new HashMap<>();<NEW_LINE>for (JarScan jarScan : jars) {<NEW_LINE>FunctionConverter converter = new FunctionConverter();<NEW_LINE>List<AnnotatedClassDescriptor> providerClasses = jarScan.getScanResult().getAnnot...
func, jarScan.getClassLoader());
1,576,476
final PutAccountSendingAttributesResult executePutAccountSendingAttributes(PutAccountSendingAttributesRequest putAccountSendingAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccountSendingAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,724,956
public void processLocalTransactionStartedEvent(Object handle) throws ResourceException {<NEW_LINE>svLogger.entering(CLASSNAME, "processLocalTransactionStartedEvent", handle);<NEW_LINE>// An application level local transaction has been requested started<NEW_LINE>// The isValid method returns an exception if it is not v...
svLogger.info("Firing LOCAL TRANSACTION STARTED event for: " + handle);
753,147
protected void writeForLoopWithClosureList(final ForStatement statement) {<NEW_LINE>controller.getAcg().onLineNumber(statement, "visitForLoop");<NEW_LINE>writeStatementLabel(statement);<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>controller.getCompileStack().pushLoop(statement.getVariableScope()...
).castToBool(mark, true);
1,361,410
final UpdateTagOptionResult executeUpdateTagOption(UpdateTagOptionRequest updateTagOptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTagOptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
827,710
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>if (req.getRequestURI().endsWith("logout")) {<NEW_LINE>UriBuilder redirectUriBuilder = UriBuilder.fromUri(ServletTestUtils.getUrlBase() + "/offline-client");<NEW_LINE>if (req.getParameter(OAuth2Constan...
.build().toString();
1,681,313
private static void convertMoveCompilationUnitChange(WorkspaceEdit edit, MoveCompilationUnitChange change) throws JavaModelException {<NEW_LINE>IPackageFragment newPackage = change.getDestinationPackage();<NEW_LINE>ICompilationUnit unit = change.getCu();<NEW_LINE>CompilationUnit astCU = RefactoringASTParser.parseWithAS...
(JDTUtils.toURI(unit));
341,666
private void load() {<NEW_LINE>ApplicationRegistry appRegistry = habitat.<ApplicationRegistry>getService(ApplicationRegistry.class);<NEW_LINE>ApplicationInfo appInfo = appRegistry.get(AdminConsoleAdapter.ADMIN_APP_NAME);<NEW_LINE>if (appInfo != null && appInfo.isLoaded()) {<NEW_LINE>// Application is already loaded<NEW...
adapter.setStateMsg(AdapterState.APPLICATION_LOADED);
120,962
private static String microsoftLogin(String email, String password, String cookie, String ppft, String urlPost) throws LoginException {<NEW_LINE>Map<String, String> postData = new HashMap<>();<NEW_LINE>postData.put("login", email);<NEW_LINE>postData.put("loginfmt", email);<NEW_LINE>postData.put("passwd", password);<NEW...
int responseCode = connection.getResponseCode();
1,319,423
public static GalenActionDumpArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("u", "url", true, "Initial test url");<NEW_LINE>options.addOption("s", "size", true, "Browser window size");<NEW_LINE>options.a...
(cmd.getOptionValue("E"));
1,597,591
private void innerDeleteLog(int sizeToReserve) {<NEW_LINE>long removeSize = (long) committedEntryManager.getTotalSize() - sizeToReserve;<NEW_LINE>if (removeSize <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long compactIndex = Math.min(committedEntryManager.getDummyIndex(<MASK><NEW_LINE>try {<NEW_LINE>logger.debug("{}: ...
) + removeSize, maxHaveAppliedCommitIndex - 1);
870,985
protected void buildBinding(Definition definition, Collection<BindingInfo> bindingInfos, Collection<PortType> portTypes) {<NEW_LINE>Binding binding = null;<NEW_LINE>for (BindingInfo bindingInfo : bindingInfos) {<NEW_LINE>binding = definition.createBinding();<NEW_LINE>addDocumentation(binding, bindingInfo.getDocumentati...
binding, bindingInfo.getOperations());
1,040,430
static void parseAndValidateExtensionSchemas(String resolverPath, File inputDir) throws IOException, InvalidExtensionSchemaException {<NEW_LINE>// Parse each extension schema and validate it<NEW_LINE>Iterator<File> iterator = FileUtils.iterateFiles(inputDir, new String[] { PDL }, true);<NEW_LINE>DataSchemaResolver <MAS...
resolver = MultiFormatDataSchemaResolver.withBuiltinFormats(resolverPath);
1,075,607
protected void launch(Builder contextBuilder) {<NEW_LINE>contextBuilder.allowExperimentalOptions(true);<NEW_LINE>contextBuilder.arguments("python", new String[] { "java_embedding_bench" });<NEW_LINE>if (options.sharedEngine) {<NEW_LINE>contextBuilder.engine(Engine.newBuilder().allowExperimentalOptions(true).options(eng...
options.warmupIterations, options.iterations);
120,541
private int compareDuration(Duration duration1, Duration duration2) {<NEW_LINE>int resultA = DatatypeConstants.INDETERMINATE;<NEW_LINE>int resultB = DatatypeConstants.INDETERMINATE;<NEW_LINE>XMLGregorianCalendar tempA = (XMLGregorianCalendar) TEST_POINTS[0].clone();<NEW_LINE>XMLGregorianCalendar tempB = (XMLGregorianCa...
resultB = tempA.compare(tempB);
504,597
public SAMPileupFeature decode(String line) {<NEW_LINE>// Split the line<NEW_LINE>final String[] tokens = SPLIT_PATTERN.split(line.trim(), -1);<NEW_LINE>// check the number of fields<NEW_LINE>if (tokens.length < MINIMUM_FIELDS || tokens.length > MAXIMUM_FIELDS) {<NEW_LINE>throw new CodecLineParsingException(String.form...
(tokens[1], "position");
234,444
// @formatter:on<NEW_LINE>@Inject(method = "teleportEntity", cancellable = true, locals = LocalCapture.CAPTURE_FAILHARD, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;setPortalCooldown()V"))<NEW_LINE>private static void arclight$portal(Level level, BlockPos pos, BlockState state, Entity entity...
getPluginManager().callEvent(event);
1,081,793
private void monitor(MeterRegistry registry, ForkJoinPool fj) {<NEW_LINE>FunctionCounter.builder(metricPrefix + "executor.steals", fj, ForkJoinPool::getStealCount).tags(tags).description("Estimate of the total number of tasks stolen from " + "one thread's work queue by another. The reported value " + "underestimates th...
("An estimate of the total number of tasks currently held in queues by worker threads").register(registry);
297,993
private Integer openWriteLinear(String functionName, String fileName, long fileSize) {<NEW_LINE>byte[] command = new byte[26];<NEW_LINE>// System command telegram, response required<NEW_LINE>command[0] = (byte) 0x01;<NEW_LINE>// OPEN WRITE LINEAR command<NEW_LINE>command<MASK><NEW_LINE>copyStringValueToBytes(fileName, ...
[1] = (byte) 0x89;
460,848
public PrototypeModel selectModel(Parameter[] params) throws SleighException {<NEW_LINE>int bestscore = 500;<NEW_LINE>int bestindex = -1;<NEW_LINE>for (int i = 0; i < modellist.length; ++i) {<NEW_LINE>ScoreProtoModel scoremodel = new ScoreProtoModel(true, modellist<MASK><NEW_LINE>for (Parameter p : params) {<NEW_LINE>s...
[i], params.length);
1,771,091
final ListTagOptionsResult executeListTagOptions(ListTagOptionsRequest listTagOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
invoke(request, responseHandler, executionContext);
1,643,051
Mono<Response<QueueProperties>> createQueueWithResponse(String queueName, CreateQueueOptions createQueueOptions, Context context) {<NEW_LINE>if (queueName == null) {<NEW_LINE>return monoError(LOGGER, new NullPointerException("'queueName' cannot be null."));<NEW_LINE>} else if (queueName.isEmpty()) {<NEW_LINE>return mon...
addSupplementaryAuthHeader(SERVICE_BUS_DLQ_SUPPLEMENTARY_AUTHORIZATION_HEADER_NAME, forwardDlqToEntity, contextWithHeaders);
821,328
public static XFormDialog buildTabbedDialogWithCustomActions(Class<? extends Object> tabbedFormClass, ActionList actions) {<NEW_LINE>AForm formAnnotation = tabbedFormClass.getAnnotation(AForm.class);<NEW_LINE>if (formAnnotation == null) {<NEW_LINE>throw new RuntimeException("formClass is not annotated correctly..");<NE...
name(), formClass, messages);
424,315
public okhttp3.Call apisApiIdEnvironmentsEnvIdKeysGetCall(String apiId, String envId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/environments/{envId}/keys".replaceAll("\\{" + "apiId" ...
final String[] localVarContentTypes = {};
925,348
public static <T extends ImageBase<T>, O extends ImageBase> void add(T inputA, T inputB, O output) {<NEW_LINE>if (inputA instanceof ImageGray) {<NEW_LINE>if (GrayU8.class == inputA.getClass()) {<NEW_LINE>PixelMath.add((GrayU8) inputA, (GrayU8) inputB, (GrayU16) output);<NEW_LINE>} else if (GrayS8.class == inputA.getCla...
) inputB, (GrayS32) output);
950,932
public <T> QueryTaskFuture<Void> eval(final QueryEnvironment<T> env, final QueryExpressionContext<T> context, final Callback<T> callback) {<NEW_LINE>if (!NAME_PATTERN.matcher(varName).matches()) {<NEW_LINE>return env.immediateFailedFuture(new QueryException(this, "invalid variable name '" + varName + "' in let expressi...
eval(bodyExpr, bodyContext, callback);
388,790
public List<Issue> execute(Client client) {<NEW_LINE>List<Issue> issues = new ArrayList<Issue>();<NEW_LINE>List<Security<MASK><NEW_LINE>for (Portfolio portfolio : client.getPortfolios()) {<NEW_LINE>long[] shares = new long[securities.size()];<NEW_LINE>for (PortfolioTransaction t : portfolio.getTransactions()) {<NEW_LIN...
> securities = client.getSecurities();
1,195,368
public Void methodMissing(String name, Object argsObj) {<NEW_LINE>Object[] args = (Object[]) argsObj;<NEW_LINE>if (args.length == 1 && args[0] instanceof Class<?>) {<NEW_LINE>Class<? extends I> itemType = uncheckedCast(args[0]);<NEW_LINE>create(name, itemType);<NEW_LINE>} else if (args.length == 2 && args[0] instanceof...
= uncheckedCast(args[0]);
335,579
public Object postUpdate(@Nullable String itemName, @Nullable String stateString) {<NEW_LINE>EventPublisher eventPublisher = this.eventPublisher;<NEW_LINE>ItemRegistry itemRegistry = this.itemRegistry;<NEW_LINE>if (eventPublisher != null && itemRegistry != null && itemName != null && stateString != null) {<NEW_LINE>try...
item.getAcceptedDataTypes(), stateString);
1,530,085
public String postHttp(@ShellOption(value = { "", "--target" }, help = "the location to post to", defaultValue = Target.DEFAULT_TARGET) String target, @ShellOption(help = "the text payload to post. exclusive with file. " + "embedded double quotes are not supported if next to a space character", defaultValue = ShellOpti...
format(buffer + "Failed to send data to http endpoint %s", target);
1,341,850
public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> typeToken) {<NEW_LINE>// Check if we can deal with the given type<NEW_LINE>if (!IUnknownPropertiesConsumer.class.isAssignableFrom(typeToken.getRawType())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// If we can, we should get the backing class to fet...
gson.getDelegateAdapter(this, typeToken);
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...
assertNotNull(result.getDeploymentId());
407,932
private void replaceNull(LocalValue<?> key, Object value, int index) {<NEW_LINE>Entry[] tab = table;<NEW_LINE>int len = tab.length;<NEW_LINE>Entry e;<NEW_LINE>int slotToExpunge = index;<NEW_LINE>for (int i = prevIndex(index, len); (e = tab[i]) != null; i = prevIndex(i, len)) if (e.k == null) {<NEW_LINE>slotToExpunge = ...
Misc.free(e.value);
1,676,428
public static MatrixContext createMatrixContext(ModelContext context, RowType rowType, Class<? extends IElement> elemClass, int rowNum) {<NEW_LINE>if (rowType.isComplexValue() && elemClass == null) {<NEW_LINE>throw new InvalidParameterException("Complex value type must set element class type");<NEW_LINE>}<NEW_LINE>Matr...
setName(context.getModelName());
1,317,074
public List<KnowledgesEntity> selectAccessAbleEvents(Calendar start, LoginedUser loginedUser, int limit, int offset) {<NEW_LINE>String sql;<NEW_LINE>if (loginedUser != null && loginedUser.isAdmin()) {<NEW_LINE>sql = SQLManager.getInstance().getSql("/org/support/project/knowledge/dao/sql/EventsDao/EventsDao_selectAdminK...
params = new ArrayList<>();
1,327,231
public boolean apply(Game game, Ability source) {<NEW_LINE>UUID targetId = source.getFirstTarget();<NEW_LINE>FilterCreaturePermanent filter = new FilterCreaturePermanent("each other creature that player controls");<NEW_LINE>filter.add(Predicates.not(new PermanentIdPredicate(targetId)));<NEW_LINE>Permanent creature = ga...
getPlayer(creature.getControllerId());
1,334,886
protected void checkIfComplete() {<NEW_LINE>if (observer == null) {<NEW_LINE>logger.debug("observer is null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!completed) {<NEW_LINE>completed = true;<NEW_LINE>logger.info(" Rip completed!");<NEW_LINE>RipStatusComplete rsc = new RipStatusComplete(workingDir, getCount());<NEW_...
.workingDir + File.separator + "urls.txt";
325
// voidIt<NEW_LINE>@Override<NEW_LINE>public boolean closeIt() {<NEW_LINE>// Before Close<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_CLOSE);<NEW_LINE>if (m_processMsg != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Close Not delivered Qty - SO/PO<NEW_...
line.save(get_TrxName());
316,353
public boolean accept(EdgeIteratorState iter) {<NEW_LINE>int <MASK><NEW_LINE>int vt = gsHeavyVehicles.getEdgeVehicleType(edgeId, buffer);<NEW_LINE>// ((buffer[1] >> (vehicleType >> 1)) & 1) == 1<NEW_LINE>boolean dstFlag = buffer[1] != 0;<NEW_LINE>// if edge has some restrictions<NEW_LINE>if (vt != HeavyVehicleAttribute...
edgeId = EdgeIteratorStateHelper.getOriginalEdge(iter);
1,773,419
private // https://github.com/aosp-mirror/platform_packages_apps_mms/blob/master/src/com/android/mms/transaction/SmsReceiverService.java#L554<NEW_LINE>void storeMessage(Context context, SmsMessage[] messages) {<NEW_LINE>final int pduCount = messages.length;<NEW_LINE>SmsMessage sms = messages[0];<NEW_LINE>Log.d(TAG, "st...
DATE, System.currentTimeMillis());
728,362
public synchronized List<ResizeOption> loadAll() {<NEW_LINE>Preferences prefs = getPreferences();<NEW_LINE>// NOI18N<NEW_LINE>int count = prefs.getInt("count", 0);<NEW_LINE>List<ResizeOption> res = new ArrayList<ResizeOption>(count);<NEW_LINE>if (count == 0) {<NEW_LINE>res.add(ResizeOption.create(ResizeOption.Type.DESK...
prefs.node("option" + i);
1,682,474
public static DescribeDiskMonitorDataResponse unmarshall(DescribeDiskMonitorDataResponse describeDiskMonitorDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDiskMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeDiskMonitorDataResponse.RequestId"));<NEW_LINE>describeDiskMonitorDataResponse.setTotalCou...
("DescribeDiskMonitorDataResponse.MonitorData[" + i + "].LatencyRead"));
883,243
private TBParVec particleClosureBeta(final TBPar terms, final Vect<TBTriple> alphas, final Vect<TBTriple> betas) {<NEW_LINE>// try a beta expansion. See MP page 403<NEW_LINE>// figure 5.1. for beta expansion rules.<NEW_LINE>for (int i = 0; i < terms.size(); i++) {<NEW_LINE>LiveExprNode <MASK><NEW_LINE>LiveExprNode kapp...
ln = terms.exprAt(i);
1,443,460
private String frequencyCounter(String[] words, int minLength) {<NEW_LINE>String title = "BinarySearchST costs using put() in FrequencyCounter";<NEW_LINE>String xAxisLabel = "operations";<NEW_LINE>String yAxisLabel = "cost";<NEW_LINE>double maxNumberOfOperations = 18000;<NEW_LINE>double maxCost = 20000;<NEW_LINE>int or...
.get(word) + 1);
933,945
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>String eplFragment = "@name('s0') select " + "utildate.roundCeiling('msec') as val0," + "utildate.roundCeiling('sec') as val1," + "utildate.roundCeiling('minutes') as val2," + "utildate.roundCeiling('hour') as val3," + "utildate.roundCeiling...
fields = "val0,val1,val2,val3,val4,val5,val6".split(",");
65,793
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ...
Source src = new StreamSource(respMsg);
436,122
public void initScene() {<NEW_LINE>mObject3D = new Cube(3.0f);<NEW_LINE>mObject3D.setColor(0);<NEW_LINE>mObject3D.setPosition(0, 0, -3);<NEW_LINE>mObject3D.setRenderChildrenAsBatch(true);<NEW_LINE>mStreamingTexture = new StreamingTexture("viewTexture", this);<NEW_LINE>Material material = new Material();<NEW_LINE>materi...
Axis.Y, 0, 360);
1,167,084
protected void show(AbstractFile file) throws IOException {<NEW_LINE>setCurrentFile(file);<NEW_LINE>if (fileEditor == null) {<NEW_LINE>getFrame().setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);<NEW_LINE>getFrame().addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void windowClos...
Level.SEVERE, "Unexpected cancellation", ex);
1,438,302
public boolean reverseCorrectIt() {<NEW_LINE>log.info("reverseCorrectIt - " + toString());<NEW_LINE>// Before reverseCorrect<NEW_LINE>processMesssage = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_REVERSECORRECT);<NEW_LINE>if (processMesssage != null)<NEW_LINE>return false;<NEW_LINE>MM...
getScrappedQty().negate());
918,088
public void write(DataOutput out) throws IOException {<NEW_LINE>final byte[] integerBuffer = new byte[5];<NEW_LINE>serialize();<NEW_LINE>byte hasValues = (values == null) ? 0 : (byte) 1;<NEW_LINE>if (!replicationSources.isEmpty()) {<NEW_LINE>// Use 2nd least-significant bit for whether or not we have replication source...
integerBuffer, values.size());
713,243
public static Status.StoredFieldStatus testStoredFields(CodecReader reader, PrintStream infoStream, boolean failFast) throws IOException {<NEW_LINE>long startNS = System.nanoTime();<NEW_LINE>final Status.StoredFieldStatus <MASK><NEW_LINE>try {<NEW_LINE>if (infoStream != null) {<NEW_LINE>infoStream.print(" test: stor...
status = new Status.StoredFieldStatus();
1,338,536
protected void checkAndUpdateSubConfigs() {<NEW_LINE>if (StringUtils.isEmpty(interfaceName)) {<NEW_LINE>throw new IllegalStateException("<dubbo:reference interface=\"\" /> interface not allow null!");<NEW_LINE>}<NEW_LINE>// get consumer's global configuration<NEW_LINE>completeCompoundConfigs();<NEW_LINE>// init some nu...
, (String[]) null);
524,119
public static void init(FMLPreInitializationEvent event) {<NEW_LINE>globalDataDirectory = new File(event.getModConfigurationDirectory().getParentFile(), "data" + File.separator + EquivalentExchange.MOD_ID);<NEW_LINE>globalTestDirectory = new File(globalDataDirectory, "tests");<NEW_LINE>globalTestDirectory.mkdirs();<NEW...
File(EnergyValueRegistry.energyValuesDirectory, PRE_CALCULATION_ENERGY_VALUES_FILENAME);
447,028
private List<NameValueCountPair> listApplicationPair(Business business, EffectivePerson effectivePerson, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.c...
(2, Long.class));
1,330,233
private void addToSummary(DatasetField dsfo, DatasetField dsfn) {<NEW_LINE>if (dsfo == null) {<NEW_LINE>dsfo = new DatasetField();<NEW_LINE>dsfo.setDatasetFieldType(dsfn.getDatasetFieldType());<NEW_LINE>}<NEW_LINE>if (dsfn == null) {<NEW_LINE>dsfn = new DatasetField();<NEW_LINE>dsfn.setDatasetFieldType(dsfo.getDatasetF...
dsft = blockList.get(0);
1,691,116
final GetDownloadUrlForLayerResult executeGetDownloadUrlForLayer(GetDownloadUrlForLayerRequest getDownloadUrlForLayerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDownloadUrlForLayerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
804,944
public Object visit(Object context1, PostOpExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object lhs = expr.getExpr().accept(context, this, strict);<NEW_LINE>if (lhs instanceof Reference) {<NEW_LINE>if (((Reference) lhs).isStrictReference()) {<NEW_LINE>if ((...
, getValue(context, lhs));
1,734,420
public <T> T[] toArray(@Nonnull T[] a) {<NEW_LINE>int aLength = a.length;<NEW_LINE>if (mySize == 1) {<NEW_LINE>if (aLength != 0) {<NEW_LINE>a[0] = (T) myElem;<NEW_LINE>} else {<NEW_LINE>T[] r = (T[]) Array.newInstance(a.getClass().getComponentType(), 1);<NEW_LINE>r[0] = (T) myElem;<NEW_LINE>return r;<NEW_LINE>}<NEW_LIN...
0, a, 0, mySize);
1,697,921
protected static void fillArrayANDNOT(char[] container, LongBuffer bitmap1, LongBuffer bitmap2) {<NEW_LINE>int pos = 0;<NEW_LINE>if (bitmap1.limit() != bitmap2.limit()) {<NEW_LINE>throw new IllegalArgumentException("not supported");<NEW_LINE>}<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(bitmap1) && BufferUtil.isBacke...
int len = bitmap1.limit();
45,040
public static ExchangeMetaData adaptToExchangeMetaData(Map<String, PoloniexCurrencyInfo> poloniexCurrencyInfo, Map<String, PoloniexMarketData> poloniexMarketData, ExchangeMetaData exchangeMetaData) {<NEW_LINE>Map<Currency, CurrencyMetaData> currencyMetaDataMap = exchangeMetaData.getCurrencies();<NEW_LINE>CurrencyMetaDa...
> marketMetaDataMap = exchangeMetaData.getCurrencyPairs();
857,400
public <A, B> double dependence(NumberArrayAdapter<?, A> adapter1, A data1, NumberArrayAdapter<?, B> adapter2, B data2) {<NEW_LINE>final int len = Utils.size(adapter1, data1, adapter2, data2);<NEW_LINE>double[] <MASK><NEW_LINE>double dVarA = computeDCovar(dMatrixA, dMatrixA, len);<NEW_LINE>if (!(dVarA > 0.)) {<NEW_LINE...
dMatrixA = computeDistances(adapter1, data1);
871,463
private void startAutomaticRefresh(MeteoBlueConfiguration config) {<NEW_LINE>if (refreshJob != null && !refreshJob.isCancelled()) {<NEW_LINE>logger.trace("Refresh job already exists.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Runnable runnable = () -> {<NEW_LINE>boolean updateSuccessful = false;<NEW_LINE>try {<NEW_LINE>//...
e.getMessage(), e);
779,409
public <A> SimpleGaussianContinuousUncertainObject newFeatureVector(Random rand, A array, NumberArrayAdapter<?, A> adapter) {<NEW_LINE>final int dim = adapter.size(array);<NEW_LINE>double[] min = new double[dim], max = new double[dim];<NEW_LINE>if (symmetric) {<NEW_LINE>for (int i = 0; i < dim; ++i) {<NEW_LINE>double v...
+ rand.nextGaussian() * s;
897,289
private void adjustNumRubricFields(int questionNum, int numSubQn, int numChoices) {<NEW_LINE>int numSubQnsNeeded = numSubQn - (getNumRubricRows(questionNum) - 2);<NEW_LINE>int numChoicesNeeded = numChoices - <MASK><NEW_LINE>if (numSubQnsNeeded > 0) {<NEW_LINE>for (int i = 0; i < numSubQnsNeeded; i++) {<NEW_LINE>click(g...
(getNumRubricCols(questionNum) - 1);
1,291,972
private void cleanupReferencesToReservation(boolean expired, String username, String reservationId, PurchaseContext purchaseContext) {<NEW_LINE>List<String> reservationIdsToRemove = singletonList(reservationId);<NEW_LINE>specialPriceRepository.resetToFreeAndCleanupForReservation(reservationIdsToRemove);<NEW_LINE>groupM...
(List.of(reservationId));
1,105,747
final PutSubscriptionFilterResult executePutSubscriptionFilter(PutSubscriptionFilterRequest putSubscriptionFilterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putSubscriptionFilterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
259,849
final StartSnapshotResult executeStartSnapshot(StartSnapshotRequest startSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,784,505
public void addSection(NodeSectionPanel section) {<NEW_LINE>scrollPanel.remove(filler);<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();<NEW_LINE>gridBagConstraints.gridx = 0;<NEW_LINE>gridBagConstraints.gridy = sectionCount;<NEW_LINE>gridBagConstraints.fill = java.awt.GridBa...
= java.awt.GridBagConstraints.WEST;
719,633
private void checkPending() {<NEW_LINE>if (executing) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>executing = true;<NEW_LINE>ChannelHandlerContext ctx = socket.channelHandlerContext();<NEW_LINE>int written = 0;<NEW_LINE>CommandBase<?> cmd;<NEW_LINE>while (!paused && inflight < pipeliningLimit && (cmd = pendin...
fail(new NoStackTraceThrowable(msg));
108,590
private Object onAddTrackedDataInsertMap(Int2ObjectMap<?> int2ObjectMap, int k, Object valueRaw) {<NEW_LINE>DataTracker.Entry<?> v = (DataTracker.Entry<?>) valueRaw;<NEW_LINE>DataTracker.Entry<?>[] storage = this.entriesArray;<NEW_LINE>// Check if we need to grow the backing array to accommodate the new key range<NEW_L...
min(k + GROW_FACTOR, 256);
1,242,552
public static double[] medianFilter(double[] x, int N) {<NEW_LINE>double[] y = new double[x.length];<NEW_LINE>Vector<Double> v = new Vector<Double>();<NEW_LINE>int k, j, midVal;<NEW_LINE>if (// Odd version<NEW_LINE>N % 2 == 1) {<NEW_LINE>midVal = (N - 1) / 2;<NEW_LINE>for (k = 0; k < x.length; k++) {<NEW_LINE>// MS, 27...
length - 1, iLeft + N);
444,361
public E relaxedPoll() {<NEW_LINE>final long[] sBuffer = sequenceBuffer;<NEW_LINE>final long mask = this.mask;<NEW_LINE>long cIndex;<NEW_LINE>long seqOffset;<NEW_LINE>long seq;<NEW_LINE>long expectedSeq;<NEW_LINE>do {<NEW_LINE>cIndex = lvConsumerIndex();<NEW_LINE>seqOffset = calcCircularLongElementOffset(cIndex, mask);...
offset = calcCircularRefElementOffset(cIndex, mask);
1,027,489
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>if (!J9BuildFlags.interp_nativeSupport) {<NEW_LINE>CommandUtils.dbgPrint(out, "No JIT in this build\n");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String[] realArgs = null;<NEW_LIN...
CommandUtils.dbgPrint(out, "\t!jitstack thread,sp,pc\n");
518,483
public static Collection<ErrorDescription> run(HintContext hintContext) {<NEW_LINE>List<ErrorDescription> problems = new ArrayList<>();<NEW_LINE>final JsfHintsContext <MASK><NEW_LINE>if (ctx.getJsfVersion() == null || !ctx.getJsfVersion().isAtLeast(JSFVersion.JSF_2_2)) {<NEW_LINE>return problems;<NEW_LINE>}<NEW_LINE>Co...
ctx = JsfHintsUtils.getOrCacheContext(hintContext);
709,677
private static int storageCheck(ByteString stmt, int offset) {<NEW_LINE>if (stmt.length() > offset + "torage".length()) {<NEW_LINE>char c1 = stmt.charAt(++offset);<NEW_LINE>char c2 = stmt.charAt(++offset);<NEW_LINE>char c3 = stmt.charAt(++offset);<NEW_LINE>char c4 = stmt.charAt(++offset);<NEW_LINE>char c5 = stmt.charAt...
, stmt.length()));
822,212
private void saveProfile() {<NEW_LINE>profile = changedProfile;<NEW_LINE>if (isNewProfile) {<NEW_LINE>DialogInterface.OnShowListener showListener = new DialogInterface.OnShowListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onShow(DialogInterface dialog) {<NEW_LINE>app.runInUIThread(new Runnable() {<NEW_LI...
mode.setLocationIcon(changedProfile.locationIcon);
142,144
public Boolean call() {<NEW_LINE>try {<NEW_LINE>LoggerUtil.buildMDC(schemaName);<NEW_LINE>if (!DdlHelper.isRunnable() || !ExecUtils.hasLeadership(null)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Perform the DDL job.<NEW_LINE>DdlHelper.getServerConfigManager().restoreDDL(schemaName, jobId);<NEW_LINE>...
.getMessage()), t);
1,307,993
public void mouseDown(MouseEvent e) {<NEW_LINE>mouseDown = true;<NEW_LINE>// we need to fill the selected row indexes here because the<NEW_LINE>// dragstart event can occur before the SWT.SELECTION event and<NEW_LINE>// our drag code needs to know the selected rows..<NEW_LINE>TableRowSWT row = mouseDownOnRow = tv.getTa...
e.x, e.y);
1,410,213
private void chooseSnapshot() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>// NOI18N<NEW_LINE>chooser.putClientProperty("JFileChooser.packageIsTraversable", "always");<NEW_LINE>chooser.setDialogTitle(// NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<NEW_LINE>JavaPlatformSelector.clas...
new File(getJavaBinary()));
746,041
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {<NEW_LINE>String inputs = String.valueOf(charSequence);<NEW_LINE>baseBind.clear.setVisibility(inputs.length() > 0 ? View.VISIBLE : View.INVISIBLE);<NEW_LINE>if (inputs.length() > 0 && searchType == 0 && !inputs.endsWith(" ") && fuck != null) {...
.size() - 1));
436,309
public Map<String, String> insertAgentCount(@RequestParam("agentCount") int agentCount, @RequestParam("timestamp") long timestamp) {<NEW_LINE>if (timestamp < 0) {<NEW_LINE>Map<String, String> result = new HashMap<>();<NEW_LINE>result.put("result", "FAIL");<NEW_LINE>result.put("message", "negative timestamp.");<NEW_LINE...
success = agentStatisticsService.insertAgentCount(agentCountStatistics);
305,637
public boolean move(Point vector) {<NEW_LINE>final int dx = vector.x;<NEW_LINE>if (dx == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Data<NEW_LINE>box.width += dx;<NEW_LINE>if (box.width > 0) {<NEW_LINE>WordInter word = (WordInter) inter;<NEW_LINE>String value = word.getValue();<NEW_LINE>int fontSize = (int) Mat...
() / 2), y);
1,554,228
public static <K> PartitionByParams<K> build(final LogicalSchema sourceSchema, final ExecutionKeyFactory<K> serdeFactory, final List<Expression> partitionBys, final KsqlConfig ksqlConfig, final FunctionRegistry functionRegistry, final ProcessingLogger logger) {<NEW_LINE>final List<PartitionByColumn> partitionByCols = g...
).allMatch(sourceSchema::isKeyColumn);
1,092,986
private void replaceDomainUsers() throws SQLException {<NEW_LINE>// Remove users<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = closer.register(conn.prepareStatement("DELETE FROM " + config.getTablePrefix() + "region_players " + "WHERE region_id = ? " + "AND world_id = " + wo...
1, region.getId());
118,207
public void pay(@RequestAttribute SysSite site, Long paymentId, String returnUrl, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {<NEW_LINE>Map<String, String> config = configComponent.getConfigData(site.getId(), Config.CONFIG_CODE_SITE);<NEW_LINE>String safeReturnUrl = confi...
get(entity.getAccountType());
801,817
public Object parse(FhirContext theContext, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException {<NEW_LINE>Collection<Include> retValCollection = null;<NEW_LINE>if (myInstantiableCollectionType != null) {<NEW_LINE>try {<NEW_LINE>retValCollection = myInstantiableCollectionType.newI...
(IncludeParameter.class, "orIncludeInRequest"));
638,436
final CreateProcessingJobResult executeCreateProcessingJob(CreateProcessingJobRequest createProcessingJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProcessingJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
854,107
public BackgroundException map(final SSLException failure) {<NEW_LINE>final StringBuilder buffer = new StringBuilder();<NEW_LINE>for (Throwable cause : ExceptionUtils.getThrowableList(failure)) {<NEW_LINE>if (cause instanceof SocketException) {<NEW_LINE>// Connection has been shutdown: javax.net.ssl.SSLException: java....
.map((SocketException) cause);
678,177
public AwsEc2InstanceViolation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsEc2InstanceViolation awsEc2InstanceViolation = new AwsEc2InstanceViolation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
)).unmarshall(context));
134,953
public RestResponse copyRestApiCurl(@NotBlank(message = "{required}") String appId, @NotBlank(message = "{required}") String baseUrl, @NotBlank(message = "{required}") String path) {<NEW_LINE>String resultCURL = null;<NEW_LINE>CURLBuilder curlBuilder = new CURLBuilder(baseUrl + path);<NEW_LINE>User user = commonService...
"id", appId).build();
590,559
protected Void doInBackground() {<NEW_LINE>int numberOfScrapes = 0;<NEW_LINE>int progressAmountPerWorker;<NEW_LINE>setProgress(0);<NEW_LINE>// failIfInterrupted();<NEW_LINE>// get the latest version of the sraper group preference - if it's not there for whatever reason (usually from a specific scrape), just leave it al...
.getOverallAmalgamationPreference().getAmalgamationPreferenceOrder();
177,571
private void drawControls(int sx, int sy) {<NEW_LINE>FontRenderer fr = getFontRenderer();<NEW_LINE>int textColor = ColorUtil.getRGB(engineControlEnabled.isSelected() ? Color.black : Color.darkGray);<NEW_LINE>int x0 = sx + TEXT_MARGIN_LEFT;<NEW_LINE>int y0 = sy + TEXT_MARGIN_TOP;<NEW_LINE>// Emit signal when storage les...
.get().trim();
921,971
private void replaceSimpleEnumSwitchInstruction(Clazz clazz, int loadOffset, int switchOffset, SwitchInstruction replacementSwitchInstruction) {<NEW_LINE>logger.debug(" Replacing switch instruction at [{}] -> [{}] swap + pop, {})", switchOffset, loadOffset, replacementSwitchInstruction.toString(switchOffset));<NEW_LIN...
null, null, switchOffset, extraInstructionVisitor);
643,018
public void execute(AdminCommandContext context) {<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>HashMap attrList = new HashMap();<NEW_LINE>attrList.put(FACTORY_CLASS, factoryClass);<NEW_LINE>attrList.put(RES_TYPE, resType);<NEW_LINE>attrList.put(JNDI_LOOKUP, jndiLookupName);<NEW_LINE>attrLis...
put(ServerTags.DESCRIPTION, description);
291,653
List<FloatIntPair> predict(int k, float threshold, Vector hidden, Vector output) {<NEW_LINE>if (k <= 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (args_.model != model_name.supervised) {<NEW_LINE>throw new IllegalArgumentException("Model needs to be supervised for prediction! Mmodel = " + args_.model);<NEW_LINE>}<NEW_LI...
throw new IllegalArgumentException("k needs to be 1 or higher! Value = " + k);
1,308,657
public boolean[] encode(String contents) {<NEW_LINE>int length = contents.length();<NEW_LINE>if (length > 80) {<NEW_LINE>throw new IllegalArgumentException("Requested contents should be less than 80 digits long, but got " + length);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>int indexInString = Cod...
toIntArray(Code39Reader.ASTERISK_ENCODING, widths);
565,656
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE><MASK><NEW_LINE>int n1 = sc.nextInt();<NEW_LINE>System.out.println("Enter the number of columns of the first matrix");<NEW_LINE>int m1 = sc.nextInt();<NEW_LINE>System.out.println("Enter the elements of the first matrix");<NE...
System.out.println("Enter the number of rows of the first matrix");
612,433
private void writeObjectMonitorToBuffer(FilterOptions filter, ObjectMonitor objMon, StringBuilder out) throws CorruptDataException {<NEW_LINE>if (filter.shouldPrint(objMon)) {<NEW_LINE>out.append(String.format("Object monitor for %s\t\n", objMon.getObject().formatShortInteractive()));<NEW_LINE>if (objMon.isInflated()) ...
J9VMThreadHelper.getName(ownerThreadPointer)));
922,579
private static void updateJDBCResourcesAndPools(Resources resources, ServerInterface mejb) {<NEW_LINE>HashMap serverPools = getServerConnectionPools(mejb, WizardConstants.__GetJdbcConnectionPool);<NEW_LINE>HashMap serverDatasources = getServerResources(mejb, WizardConstants.__GetJdbcResource);<NEW_LINE>JdbcConnectionPo...
newPoolName, WizardConstants.__CreateCP, mejb);
1,690,332
public void onLoad() {<NEW_LINE>this.skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.SkillDepotId);<NEW_LINE>// Get fetters from GenshinData<NEW_LINE>this.fetters = GenshinData.getFetterDataEntries().get(this.Id);<NEW_LINE>int size = GenshinData.getAvatarCurveDataMap().size();<NEW_LINE>this.hpGrowthCurve...
.defenseGrowthCurve = new float[size];