idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,569,289
public String primaryNetworkInterfaceId() {<NEW_LINE>final List<NetworkInterfaceReference> nicRefs = this.innerModel().networkProfile().networkInterfaces();<NEW_LINE>String primaryNicRefId = null;<NEW_LINE>if (nicRefs.size() == 1) {<NEW_LINE>// One NIC so assume it to be primary<NEW_LINE>primaryNicRefId = nicRefs.<MASK...
get(0).id();
1,248,792
public static JSONObject createFromNativeWindowsSource(JSONObject from) throws JSONException {<NEW_LINE>JSONObject node = new JSONObject();<NEW_LINE>node.put<MASK><NEW_LINE>node.put("id", getNodeTitle(from));<NEW_LINE>// add an id to the node to make them selectable by :reference<NEW_LINE>JSONObject attr = new JSONObje...
("data", getNodeTitle(from));
1,305,712
public <T> FutureList<T> findFutureList(Query<T> query, Transaction transaction) {<NEW_LINE>SpiQuery<T> spiQuery = (SpiQuery<T>) query.copy();<NEW_LINE>spiQuery.setFutureFetch(true);<NEW_LINE>// FutureList query always run in it's own persistence content<NEW_LINE>spiQuery.setPersistenceContext(new DefaultPersistenceCon...
(this, spiQuery, newTxn));
281,745
public void preRemove(RealmModel realm) {<NEW_LINE>int num = em.createNamedQuery("deleteFederatedUserConsentClientScopesByRealm").setParameter("realmId", realm.getId()).executeUpdate();<NEW_LINE>num = em.createNamedQuery("deleteFederatedUserConsentsByRealm").setParameter("realmId", realm.getId()).executeUpdate();<NEW_L...
getId()).executeUpdate();
169,867
private static final Options prepareOptions() {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(new Option("h", "help", false, "Print a help message and exit."));<NEW_LINE>options.addOption(new Option("c", "configDir", true, "Path for Configs Directory.\n" + "Expected Directory Structure under Conf...
+ "./db/sql/db1.hjson\n" + "./db/sql/db2.hjson\n" + "./db/sql/dbN.hjson\n"));
1,812,162
protected void cleanupCompensation() {<NEW_LINE>// The compensation is at the end here. Simply stop the execution.<NEW_LINE>commandContext.getHistoryManager().recordActivityEnd(execution, null);<NEW_LINE>commandContext.getExecutionEntityManager().deleteExecutionAndRelatedData(execution, null);<NEW_LINE>ExecutionEntity ...
getAgenda().planDestroyScopeOperation(executionEntityToEnd);
152,770
private TypeVariableBinding[] createTypeVariables(SignatureWrapper wrapper, boolean assignVariables, char[][][] missingTypeNames, ITypeAnnotationWalker walker, boolean isClassTypeParameter) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>// detect all type variables first<NEW_LINE><M...
char[] typeSignature = wrapper.signature;
1,446,674
public MockConfigResponse genMockConfig(MockConfigRequest request) {<NEW_LINE>MockConfigResponse returnRsp;<NEW_LINE>MockConfigExample example = new MockConfigExample();<NEW_LINE>MockConfigExample.Criteria criteria = example.createCriteria();<NEW_LINE>if (request.getId() != null) {<NEW_LINE>criteria.andIdEqualTo(reques...
andMockConfigIdEqualTo(config.getId());
613,912
public Map<String, Object> toMap() {<NEW_LINE>HashMap<String, Object> map = new HashMap<>();<NEW_LINE>map.put("appName", appName);<NEW_LINE>map.put("appVersion", appVersion);<NEW_LINE>map.put("cacheDir", cacheDir);<NEW_LINE>map.put("deviceHeight", deviceHeight);<NEW_LINE>map.put("deviceModel", deviceModel);<NEW_LINE>ma...
map.put("libIcuPath", libIcuPath);
860,745
private static void filteringSimpleProbableThreats() {<NEW_LINE>LOGGER.info("### Filtering ProbabilisticThreatAwareSystem by probability ###");<NEW_LINE>var trojanArcBomb = new SimpleProbableThreat("Trojan-ArcBomb", 1, ThreatType.TROJAN, 0.99);<NEW_LINE>var rootkit = new SimpleProbableThreat("Rootkit-Kernel", 2, Threat...
List.of(trojanArcBomb, rootkit);
210,285
public void receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener) {<NEW_LINE>final String action = PeerRecoveryTargetService.Actions.FILES_INFO;<NEW_LINE>final long requestS...
= in -> TransportResponse.Empty.INSTANCE;
709,207
public static void gradientInner(GrayS32 ii, double tl_x, double tl_y, double samplePeriod, int regionSize, double kernelSize, int[] derivX, int[] derivY) {<NEW_LINE>// add 0.5 to c_x and c_y to have it round when converted to an integer pixel<NEW_LINE>// this is faster than the straight forward method<NEW_LINE>tl_x +=...
derivX[i] = right - left;
1,397,412
final ModifyLunaClientResult executeModifyLunaClient(ModifyLunaClientRequest modifyLunaClientRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyLunaClientRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ModifyLunaClientRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
963,583
private Supplier<Pair<Integer, JsonNode>> handleAddOp(String path, JsonNode patchValue, PatchRequestScope requestScope, PatchAction action) {<NEW_LINE>try {<NEW_LINE>JsonApiDocument value = requestScope.getMapper().readJsonApiPatchExtValue(patchValue);<NEW_LINE>Data<Resource> data = value.getData();<NEW_LINE>if (data =...
getSingleResource(resources).getId();
91,563
private List<com.intellij.formatting.Block> buildNoParenthesesKeywordPairChildren(@NotNull ASTNode noParenthesesKeywordPair) {<NEW_LINE>Wrap keywordKeyWrap = Wrap.createWrap(WrapType.CHOP_DOWN_IF_LONG, true);<NEW_LINE>Indent keywordKeyIndent = Indent.getIndent(Indent.Type.NONE, true, false);<NEW_LINE>Wrap keywordPairCo...
(child, keywordKeyWrap, keywordKeyIndent));
983,136
private static void createNonAutoMenuItems(Menu menu, Tag tag, TagType tag_type, Menu[] menuShowHide) {<NEW_LINE>if (tag_type.hasTagTypeFeature(TagFeature.TF_PROPERTIES)) {<NEW_LINE>TagFeatureProperties props = (TagFeatureProperties) tag;<NEW_LINE>boolean has_ut = props.getProperty(TagFeatureProperties.PR_UNTAGGED) != ...
.PR_UNTAGGED).setBoolean(true);
1,640,526
static void addStructureConfiguration(BiConsumer<StructureFeature<?>, StructureFeatureConfiguration> consumer) {<NEW_LINE>if (Config.COMMON.earthslimeIslands.doesGenerate()) {<NEW_LINE>consumer.accept(earthSlimeIsland.get(), Config.COMMON.earthslimeIslands.makeConfiguration());<NEW_LINE>} else {<NEW_LINE>consumer.accep...
bloodIsland.get(), null);
1,550,057
public <// readTimeout millisecond<NEW_LINE>T> ResponseEntity<T> exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, String requestId, long connectTimeout, long readTimeout) throws RestClientException {<NEW_LINE>assert connectTimeout >= 0;<NEW_LINE>assert readTimeout >= 0;<NEW_LI...
this.setRequestConfig(connectTimeout, readTimeout);
1,619,505
public void filter(ContainerRequestContext reqCtx, ContainerResponseContext resCtx) throws IOException {<NEW_LINE>if (!Constants.MEDIA_TYPE_JSON.equals(reqCtx.getHeaderString("Accept"))) {<NEW_LINE>// Don't wrap if using legacy mode<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if ((status >= 200) && (status <= ...
int status = resCtx.getStatus();
784,969
// @see com.biglybt.ui.swt.debug.ObfuscateImage#obfuscatedImage(org.eclipse.swt.graphics.Image)<NEW_LINE>@Override<NEW_LINE>public Image obfuscatedImage(Image image) {<NEW_LINE>Rectangle bounds = swt_getBounds();<NEW_LINE>if (bounds != null) {<NEW_LINE>TreeItem treeItem = getTreeItem();<NEW_LINE>Point location = Utils....
map = new HashMap<>();
1,457,683
public Object evaluate(EditorAdaptor vim, Queue<String> command) {<NEW_LINE>try {<NEW_LINE>StringBuilder args = new StringBuilder();<NEW_LINE>if (command.size() > 0) {<NEW_LINE>args.append(command.poll());<NEW_LINE>}<NEW_LINE>while (command.size() > 0) {<NEW_LINE>args.append(' ').<MASK><NEW_LINE>}<NEW_LINE>LineRange ra...
append(command.poll());
1,350,473
public static byte[] calculateMasterSecretSSL3(byte[] preMasterSecret, byte[] random) {<NEW_LINE>Digest md5 = TlsUtils.createHash(HashAlgorithm.md5);<NEW_LINE>Digest sha1 = <MASK><NEW_LINE>int md5Size = md5.getDigestSize();<NEW_LINE>byte[] shaTmp = new byte[sha1.getDigestSize()];<NEW_LINE>byte[] rval = new byte[md5Size...
TlsUtils.createHash(HashAlgorithm.sha1);
651,196
private IQueryParameterType mapReferenceChainToRawParamType(String remainingChain, RuntimeSearchParam param, String theParamName, String qualifier, Class<? extends IBaseResource> nextType, String chain, boolean isMeta, String resourceId) {<NEW_LINE>IQueryParameterType chainValue;<NEW_LINE>if (remainingChain != null) {<...
) chainValue).setChain(remainingChain);
1,361,360
static void genTypeInfoFolder(String folder, Type type) throws IOException {<NEW_LINE>final List<Class<?>> all = listSubtypeClasses(TYPE_BASES_CLASSES.get(type)).stream().filter(GeneratePyOp::shouldGenerate).sorted(Comparator.comparing(Class::getSimpleName)).<MASK><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_L...
collect(Collectors.toList());
1,826,004
private void initialiseObjectPropertyFrameSections() {<NEW_LINE>// @formatter:off<NEW_LINE>initialiseSection(new AnnAxiom<OWLObjectProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), <MASK><NEW_LINE>initialiseSection(new AnnAxiom<OWLObjectProperty,...
o, anns)), objectPropertyFrameSections);
870,194
private void cleanupUnfinishedWork() {<NEW_LINE>Date before = new Date(System.currentTimeMillis() - 2 * _timeBetweenCleanups * 1000l);<NEW_LINE>List<SecurityGroupWorkVO> <MASK><NEW_LINE>if (unfinished.size() > 0) {<NEW_LINE>s_logger.info("Network Group Work cleanup found " + unfinished.size() + " unfinished work items ...
unfinished = _workDao.findUnfinishedWork(before);
1,090,294
public List<R> visit(final AnnotationMemberDeclaration n, final A arg) {<NEW_LINE>List<R> result = new ArrayList<>();<NEW_LINE>List<R> tmp;<NEW_LINE>if (n.getDefaultValue().isPresent()) {<NEW_LINE>tmp = n.getDefaultValue().get(<MASK><NEW_LINE>if (tmp != null)<NEW_LINE>result.addAll(tmp);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>...
).accept(this, arg);
1,231,687
public static void main(String[] args) {<NEW_LINE>Exercise31_CuckooHashing exercise31_cuckooHashing = new Exercise31_CuckooHashing();<NEW_LINE>CuckooHashing<Integer, Integer> cuckooHashing = exercise31_cuckooHashing.new CuckooHashing<>(16);<NEW_LINE>for (int key = 1; key < 10; key++) {<NEW_LINE>int randomKey = StdRando...
cuckooHashing.put(randomKey, randomKey);
1,016,093
private static Object buildObject(ObjectDef def, ExecutionContext context) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {<NEW_LINE>Class clazz = Class.forName(def.getClassName());<NEW_LINE>Object obj = null;<NEW_LINE>if (def.hasConstruct...
clazz.getName(), cArgs);
1,198,767
public void writeExternal(ObjectOutput oo) throws IOException {<NEW_LINE>oo.writeObject(new Integer(LOADER_VERSION));<NEW_LINE>SystemAction[] arr = (SystemAction[]) getProperty(PROP_ACTIONS);<NEW_LINE>if (arr == null) {<NEW_LINE>oo.writeObject(null);<NEW_LINE>} else {<NEW_LINE>// convert actions to class names<NEW_LINE...
getClass().getName());
1,593,522
public static boolean implementsInterfaceOrIsSubclassOf(final ClassNode type, final ClassNode superOrInterface) {<NEW_LINE>boolean result = (type.equals(superOrInterface) || type.isDerivedFrom(superOrInterface) || type.implementsInterface(superOrInterface) || type == UNKNOWN_PARAMETER_TYPE);<NEW_LINE>if (result) {<NEW_...
result = type.implementsInterface(interfaceNode);
1,795,490
@NonNull<NEW_LINE>public final <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull R> Observable<R> withLatestFrom(@NonNull ObservableSource<T1> source1, @NonNull ObservableSource<T2> source2, @NonNull ObservableSource<T3> source3, @NonNull Function4<? super T, ? super T1, ? super T2, ? super T3, R> combiner) {<NEW_LINE>O...
, source2, source3 }, f);
380,471
public com.squareup.okhttp.Call userGetExecutionHistoryCall(String symbol, OffsetDateTime timestamp, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create ...
] { "apiExpires", "apiKey", "apiSignature" };
366,206
public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>TypeSystem typeSystem = new TypeSystem(context.getClasspath(), context.getMainClass());<NEW_LINE>typeSystem.setAotOptions(aotOptions);<NEW_LINE>SpringAnalyzer springAnalyzer = new SpringAnalyzer(typeSystem, aotOptions);<NEW_LINE>springAnalyz...
(Paths.get("META-INF"));
1,032,048
private static void typecheckCoerce(Concrete.UseDefinition def, FunctionDefinition typedDef, ErrorReporter errorReporter, Map<Definition, List<Pair<Expression, FunctionDefinition>>> fromMap, Map<Definition, List<Pair<Expression, FunctionDefinition>>> toMap) {<NEW_LINE>Definition useParent = def.getUseParent().getTypech...
).cast(DefCallExpression.class);
1,542,565
public static void iteratePrev(final int startInstruction, @Nonnull final Instruction[] instructions, @Nonnull final Function<Instruction, Operation> closure) {<NEW_LINE>final IntStack stack = new IntStack(instructions.length);<NEW_LINE>final boolean[] visited = new boolean[instructions.length];<NEW_LINE>stack.push(sta...
nextOperation = closure.fun(instr);
1,632,763
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE><MASK><NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext(), RecyclerView.VERTICAL, false);<NEW_LIN...
super.onViewCreated(view, savedInstanceState);
511,328
private void dialogChanged() {<NEW_LINE>String location = getLocation();<NEW_LINE>String fileName = getFileName();<NEW_LINE>Path path = new Path(location);<NEW_LINE>if (location.length() == 0) {<NEW_LINE>updateStatus("File location must be specified");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fileName.length() == 0) {<...
file = project.getFile(fileName);
1,332,524
private void sendStatementExecuteCommand(MySQLPreparedStatement statement, boolean sendTypesToServer, Tuple params, byte cursorType) {<NEW_LINE>ByteBuf packet = allocateBuffer();<NEW_LINE>// encode packet header<NEW_LINE>int packetStartIdx = packet.writerIndex();<NEW_LINE>// will set payload length later by calculation...
1 << (i & 7));
975,358
public static void vp8_short_inv_walsh4x4(PositionableIntArrPointer ip, FullAccessIntArrPointer mb_dqcoeff) {<NEW_LINE>int inPos = ip.getPos();<NEW_LINE>FullAccessIntArrPointer op = new FullAccessIntArrPointer(16);<NEW_LINE>int i;<NEW_LINE>int a1, b1, c1, d1;<NEW_LINE>int a2, b2, c2, d2;<NEW_LINE>for (i = 0; i < 4; ++i...
) - op.getRel(3);
1,253,186
public void print(StringBuilder toStringBuilder) {<NEW_LINE>toStringBuilder.append("MailConfiguration: [");<NEW_LINE>toStringBuilder.append("description=").append(description);<NEW_LINE>toStringBuilder.append(", jndiName=").append(jndiName);<NEW_LINE>toStringBuilder.append(", enabled=").append(enabled);<NEW_LINE>toStri...
(String) e.nextElement();
1,133,387
public boolean testDerivatives(double[] x, double functionTolerance) {<NEW_LINE>boolean ret = false;<NEW_LINE>boolean compareHess = true;<NEW_LINE>log.info("Making sure that the stochastic derivatives are ok.");<NEW_LINE><MASK><NEW_LINE>StochasticCalculateMethods tmpMethod = thisFunc.method;<NEW_LINE>// Make sure that ...
AbstractStochasticCachingDiffFunction.SamplingMethod tmpSampleMethod = thisFunc.sampleMethod;
1,178,279
private Mono<Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String diskName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE...
error(new IllegalArgumentException("Parameter diskName is required and cannot be null."));
192,268
public static double crossGamma(double forward, double strike, double timeToExpiry, double lognormalVol) {<NEW_LINE>ArgChecker.isTrue(forward >= 0d, "negative/NaN forward; have {}", forward);<NEW_LINE>ArgChecker.isTrue(strike >= 0d, "negative/NaN strike; have {}", strike);<NEW_LINE>ArgChecker.isTrue(timeToExpiry >= 0d,...
strike) / sigmaRootT - 0.5 * sigmaRootT;
1,305,076
public long sampleOneNeighbor(long vertexId) {<NEW_LINE>int <MASK><NEW_LINE>int start = localId == 0 ? 0 : srcEnds[localId - 1];<NEW_LINE>int end = srcEnds[localId];<NEW_LINE>if (start == end) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>int resLocalId = 0;<NEW_LINE>if (!isWeighted) {<NEW_LINE>// uniform sampling<NEW_LINE...
localId = srcVertexId2LocalId.get(vertexId);
1,345,827
public RexNode convertOverlaps(SqlRexContext cx, SqlOverlapsOperator op, SqlCall call) {<NEW_LINE>// for intervals [t0, t1] overlaps [t2, t3], we can find if the<NEW_LINE>// intervals overlaps by: ~(t1 < t2 or t3 < t0)<NEW_LINE>assert call.getOperandList().size() == 2;<NEW_LINE>final Pair<RexNode, RexNode> left = conve...
le(rexBuilder, r2, r3);
57,783
private Mono<Response<Flux<ByteBuffer>>> listLearnedRoutesWithResponseAsync(String resourceGroupName, String hubName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and c...
error(new IllegalArgumentException("Parameter hubName is required and cannot be null."));
435,163
protected String buildUndoSQL() {<NEW_LINE>TableRecords beforeImage = sqlUndoLog.getBeforeImage();<NEW_LINE>List<Row> beforeImageRows = beforeImage.getRows();<NEW_LINE>if (CollectionUtils.isEmpty(beforeImageRows)) {<NEW_LINE>// TODO<NEW_LINE>throw new ShouldNeverHappenException("Invalid UNDO LOG");<NEW_LINE>}<NEW_LINE>...
collect(Collectors.toList());
3,644
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>List<ComponentManagerImpl> areas = new ArrayList<>();<NEW_LINE>areas.add((ComponentManagerImpl) Application.get());<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project != null) {<NEW_LINE>areas<MASK><NEW_LINE>final Mod...
.add((ComponentManagerImpl) project);
1,222,671
protected void before(XParam param) throws Throwable {<NEW_LINE>switch(mMethod) {<NEW_LINE>case getRecentTasks:<NEW_LINE>case getRunningAppProcesses:<NEW_LINE>case getRunningServices:<NEW_LINE>case getRunningTasks:<NEW_LINE>case Srv_getRecentTasks:<NEW_LINE>case Srv_getRunningAppProcesses:<NEW_LINE>case Srv_getServices...
), we.getName());
1,511,711
final GetRepositoryPermissionsPolicyResult executeGetRepositoryPermissionsPolicy(GetRepositoryPermissionsPolicyRequest getRepositoryPermissionsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRepositoryPermissionsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetRepositoryPermissionsPolicy");
1,475,315
public void showMenuBuilderRecords(ActionRequest request, ActionResponse response) {<NEW_LINE>MenuBuilder menuBuilder = request.getContext().asType(MenuBuilder.class);<NEW_LINE>if (menuBuilder.getMetaMenu() == null || menuBuilder.getMetaMenu().getAction() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>M...
getActions().get(0);
34,175
public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));<NEW_LINE>describeBackupsResponse.setTotalRecordCount(_ctx.stringValue("DescribeBackupsRespon...
("DescribeBackupsResponse.Items[" + i + "].StoreStatus"));
57,303
protected Authentication doInternalAuthenticate(LoginCredential loginCredential) {<NEW_LINE>_logger.debug("authentication " + loginCredential);<NEW_LINE>sessionValid(loginCredential.getSessionId());<NEW_LINE>// jwtTokenValid(j_jwtToken);<NEW_LINE>authTypeValid(loginCredential.getAuthType());<NEW_LINE>Institutions inst ...
emptyUsernameValid(loginCredential.getUsername());
869,064
final UpdateDomainNameResult executeUpdateDomainName(UpdateDomainNameRequest updateDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
false), new UpdateDomainNameResultJsonUnmarshaller());
1,587,674
// TODO-BQ: this function may be refactored<NEW_LINE>private void updateBaseInfo(final BaseInfo baseInfo, final ResolveOptions resOpt) {<NEW_LINE>if (this.getExtendsTrait() != null) {<NEW_LINE>baseInfo.setTrait(this.getExtendsTrait().fetchObjectDefinition(resOpt));<NEW_LINE>if (baseInfo.getTrait() != null) {<NEW_LINE>b...
setValues(basePv.getValues());
1,226,405
protected List<Contentlet> findAllCurrent(final int offset, final int limit) throws ElasticsearchException {<NEW_LINE>final String indexToHit;<NEW_LINE>try {<NEW_LINE>indexToHit = APILocator.getIndiciesAPI().loadIndicies().getWorking();<NEW_LINE>} catch (DotDataException ee) {<NEW_LINE>Logger.fatal(this, "Can't get ind...
final SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
36,192
public static ListMerchantResponse unmarshall(ListMerchantResponse listMerchantResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMerchantResponse.setRequestId(_ctx.stringValue("ListMerchantResponse.RequestId"));<NEW_LINE>listMerchantResponse.setSuccess(_ctx.booleanValue("ListMerchantResponse.Success"));<NEW_LINE>listM...
(_ctx.integerValue("ListMerchantResponse.Data.PageSize"));
1,612,465
private List<IPair<IAllocationRequest, IAllocationResult>> unloadAll(final IHUContext huContext, final I_M_HU hu) {<NEW_LINE>final List<IPair<IAllocationRequest, IAllocationResult>> result = new ArrayList<>();<NEW_LINE>final HUIteratorListenerAdapter huIteratorListener = new HUIteratorListenerAdapter() {<NEW_LINE><NEW_...
.of(productStorageRequest, productStorageResult));
937,931
public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) {<NEW_LINE>JavaElement handle = (JavaElement) this.handleStack.peek();<NEW_LINE>FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek();<NEW_LINE>IJavaElement[] elements = getChildren(fieldInfo);<NEW_LINE>SourceFieldElementInfo...
info.setNameSourceEnd(fieldInfo.nameSourceEnd);
214,824
private void mergeModules(Map<String, Object> source) {<NEW_LINE>Set<String> newKeys = source.keySet();<NEW_LINE>for (String key : newKeys) {<NEW_LINE>Object newEntry = source.get(key);<NEW_LINE>if (!modules.containsKey(key)) {<NEW_LINE>modules.put(key, newEntry);<NEW_LINE>} else {<NEW_LINE>Object origEntry = modules.g...
JSONArray) newEntryMap.get(listName);
1,633,986
public AttributeNode createAttributeNode(@NonNegative final long parentKey, @NonNull final QNm name, @NonNull final byte[] value, @NonNegative final long pathNodeKey, final SirixDeweyID id) {<NEW_LINE>final long revision = pageTrx.getRevisionNumber();<NEW_LINE>final int uriKey = pageTrx.createNameKey(name.getNamespaceU...
hashFunction, null, revision, id);
1,092,722
public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder holder, int position) {<NEW_LINE>boolean isSelected = false;<NEW_LINE>if (tracker != null) {<NEW_LINE>final Long itemId = getItemId(position);<NEW_LINE>if (tracker.isSelected(itemId)) {<NEW_LINE>tracker.select(itemId);<NEW_LINE>isSelected = true;<NEW_L...
showCategory, mainColor, textColor, searchQuery);
1,193,988
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", new BorderLayout());<NEW_LINE><MASK><NEW_LINE>$(button1).selectAllStyles().setBgColor(0xff0000);<NEW_LINE>Button button2 = new Button("Button 2");<NEW_LINE>$(button2).select...
Button button1 = new Button("Button 1");
1,356,485
public void modifyTestElement(TestElement te) {<NEW_LINE>te.clear();<NEW_LINE>super.configureTestElement(te);<NEW_LINE>te.setProperty(SmtpSampler.SERVER, smtpPanel.getServer());<NEW_LINE>te.setProperty(SmtpSampler.SERVER_PORT, smtpPanel.getPort());<NEW_LINE>// $NON-NLS-1$<NEW_LINE>te.setProperty(SmtpSampler.SERVER_TIME...
(smtpPanel.isEnableDebug()));
1,052,370
final ListTableRowsResult executeListTableRows(ListTableRowsRequest listTableRowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTableRowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,474,976
protected void initBottomNavDemoControls(View view) {<NEW_LINE>initAddNavItemButton(view.findViewById(R.id.add_button));<NEW_LINE>initRemoveNavItemButton(view.findViewById(R.id.remove_button));<NEW_LINE>initAddIncreaseBadgeNumberButton(view.findViewById(R.id.increment_badge_number_button));<NEW_LINE>Spinner badgeGravit...
android.R.layout.simple_spinner_dropdown_item);
877,269
final DisableIpamOrganizationAdminAccountResult executeDisableIpamOrganizationAdminAccount(DisableIpamOrganizationAdminAccountRequest disableIpamOrganizationAdminAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableIpamOrganizationAdminAccountRequest);<NEW_LINE>AWSRequestMetrics ...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
577,271
private static MapKey argumentToMapKeySpecifier(Node argument, AccessPathContext apContext) {<NEW_LINE>// Required to have Node type match Tree type in some instances.<NEW_LINE>if (argument instanceof WideningConversionNode) {<NEW_LINE>argument = ((WideningConversionNode) argument).getOperand();<NEW_LINE>}<NEW_LINE>// ...
MethodInvocationNode) argument).getArguments();
799,735
public JComponent config() {<NEW_LINE>poll();<NEW_LINE>JPanel top = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints c = new GridBagConstraints();<NEW_LINE>c.fill = GridBagConstraints.BOTH;<NEW_LINE>c.insets = new Insets(0, 5, 0, 5);<NEW_LINE>c.ipadx = 5;<NEW_LINE>c.gridx = 0;<NEW_LINE>c.gridy = 0;<NEW_LINE...
top.add(debugPack, c);
1,203,106
private void readHeaderFormat(int headerSize, byte[] buff) throws TTransportException {<NEW_LINE>ByteBuffer frame = ByteBuffer.wrap(buff);<NEW_LINE>// Advance past version, flags, seqid<NEW_LINE>frame.position(10);<NEW_LINE>headerSize = headerSize * 4;<NEW_LINE>int endHeader = headerSize + frame.position();<NEW_LINE>if...
throw new TTransportException("Trying to recv JSON encoding " + "over binary");
1,343,676
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#deleteObjects(com.amazonaws.services<NEW_LINE>* .s3.model.DeleteObjectsRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) {<NEW_LINE>final Request<D...
request.addHeader("Content-Type", "application/xml");
114,810
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
= new Viewpoint(point, 200000);
50,036
public final NumberContext number() throws RecognitionException {<NEW_LINE>NumberContext _localctx = new NumberContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 60, RULE_number);<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(477);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>swit...
_localctx.num = match(NUMBER);
904,100
protected void editorCreated(@Nonnull EditorFactoryEvent event) {<NEW_LINE>final Editor editor = event.getEditor();<NEW_LINE>if ((editor.getProject() != null && editor.getProject() != myProject) || myProject.isDisposedOrDisposeInProgress()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final PsiFile psiFile = PsiDocumentManag...
JComponent component = editor.getComponent();
825,255
void syncByMaster(TextSync textSync) {<NEW_LINE>beforeDocumentModification();<NEW_LINE>ignoreDocModifications++;<NEW_LINE>boolean oldTM = DocumentUtilities.isTypingModification(doc);<NEW_LINE>DocumentUtilities.setTypingModification(doc, false);<NEW_LINE>try {<NEW_LINE>TextRegion<?> masterRegion = textSync.validMasterRe...
), masterRegion.endOffset());
907,921
/*<NEW_LINE>* TODO: Refactor to do one query to get rid and srckey from bootstrap_seeder_state<NEW_LINE>*/<NEW_LINE>public String geSrcKeyFromCheckpoint(OracleTriggerMonitoredSourceInfo sourceInfo) {<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>ResultSet row = null;<NEW_LINE>String ...
LOG.error("Got exception while trying to fetch the srckey from bootstrap_seeder_state !!", e);
205,353
protected void deleteOtherEventsRelatedToEventBasedGateway(DelegateExecution execution, EventGateway eventGateway) {<NEW_LINE>// To clean up the other events behind the event based gateway, we must gather the<NEW_LINE>// activity ids of said events and check the _sibling_ executions of the incoming execution.<NEW_LINE>...
()).eventCancelledByEventGateway(executionEntity);
927,811
protected void generateSampleSeries(DashboardContainer container, TimeSeriesCollection dataset) {<NEW_LINE>TimeSeries seriesSin = new TimeSeries("Sin");<NEW_LINE>long startTime = System.currentTimeMillis() <MASK><NEW_LINE>for (int i = 0; i < 100; i++) {<NEW_LINE>seriesSin.add(new TimeSeriesDataItem(new FixedMillisecond...
- 1000 * 60 * 60 * 2;
995,475
public void onClick(View v) {<NEW_LINE>if (clickListener != null) {<NEW_LINE>clickListener.onClick(v);<NEW_LINE>}<NEW_LINE>// using 8dip on axisX offset to make dropdown view visually be at start of dropdown itself<NEW_LINE>// using 4dip on axisY offset to make space between dropdown view and dropdown itself<NEW_LINE>/...
= -DimenUtils.dpToPixels(8);
992,483
private static void sortSam(final File input, final File output, final File reference, final ValidationStringency stringency) {<NEW_LINE>final SortSam sort = new SortSam();<NEW_LINE>// We can't use ArgumentsBuilder since it assumes GATK argument names, but we're running a Picard<NEW_LINE>// tool, which uses upper case ...
add(reference.getAbsolutePath());
1,735,151
public void testFlowableRxInvoker_get1(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFactory(...
).get(Response.class);
774,795
private Collection<BPartnerId> extractBPartnerIds(@NonNull final TableRecordReference recordRef) {<NEW_LINE>final ImmutableList<BPartnerId> result;<NEW_LINE>if (I_C_BPartner.Table_Name.equals(recordRef.getTableName())) {<NEW_LINE>result = ImmutableList.of(BPartnerId.ofRepoId(recordRef.getRecord_ID()));<NEW_LINE>} else ...
recordRef.getModel(I_C_User_Assigned_Role.class);
886,719
public ODeleteExecutionPlan createExecutionPlan(OCommandContext ctx, boolean enableProfiling) {<NEW_LINE>ODeleteExecutionPlan result = new ODeleteExecutionPlan(ctx);<NEW_LINE>if (handleIndexAsTarget(result, fromClause.getItem().getIndex(), whereClause, ctx)) {<NEW_LINE>if (limit != null) {<NEW_LINE>throw new OCommandEx...
handleDelete(result, ctx, enableProfiling);
408,358
private void processPersonalBlockChanges() {<NEW_LINE>if (blockChanges.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// separate messages by chunk<NEW_LINE>// inner map is used to only send one entry for same coordinates<NEW_LINE>Map<Key, Map<BlockVector, BlockChangeMessage>> chunks = new HashMap<>();<NEW_LINE>Bloc...
.getZ(), value));
757,247
public BatchScheduleActionDeleteRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchScheduleActionDeleteRequest batchScheduleActionDeleteRequest = new BatchScheduleActionDeleteRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
)).unmarshall(context));
144,384
public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account...
tokenID, tokenQuant, dynamicStore, assetIssueStore);
105,307
public void addSchema(NamedReader reader) {<NEW_LINE>if (properties.featureFlags().experimentalSdParsing()) {<NEW_LINE>try {<NEW_LINE>var parsedName = mediator.addSchemaFromReader(reader);<NEW_LINE>addRankProfileFiles(parsedName);<NEW_LINE>} catch (ParseException e) {<NEW_LINE>throw new IllegalArgumentException("Could ...
(IOUtils.readAll(reader));
671,446
final CreateNetworkProfileResult executeCreateNetworkProfile(CreateNetworkProfileRequest createNetworkProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createNetworkProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new CreateNetworkProfileResultJsonUnmarshaller());
1,449,932
private static MapModelCriteriaBuilder<Object, MapClientEntity, ClientModel> checkClientAttributes(MapModelCriteriaBuilder<Object, MapClientEntity, ClientModel> mcb, Operator op, Object[] values) {<NEW_LINE>if (values == null || values.length != 2) {<NEW_LINE>throw new CriterionNotSupportedException(ClientModel.Searcha...
+ Arrays.toString(values));
782,214
private void loadNode318() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.FileDirectoryType_FileDirectoryName_Placeholder_CreateDirectory_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.N...
setInput(new StringReader(xml));
328,503
protected void readObjStm(PRStream stream, IntHashtable map) throws IOException {<NEW_LINE>int first = stream.getAsNumber(PdfName.FIRST).intValue();<NEW_LINE>int n = stream.getAsNumber(<MASK><NEW_LINE>byte[] b = getStreamBytes(stream, tokens.getFile());<NEW_LINE>PRTokeniser saveTokens = tokens;<NEW_LINE>tokens = new PR...
PdfName.N).intValue();
1,672,990
final UpdateDocumentationPartResult executeUpdateDocumentationPart(UpdateDocumentationPartRequest updateDocumentationPartRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDocumentationPartRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,253,757
protected void close(final boolean hasFailed) {<NEW_LINE>try {<NEW_LINE>if (!hasFailed) {<NEW_LINE>LOGGER.info("Migration finished with no explicit errors. Copying data from tmp tables to permanent");<NEW_LINE>writeConfigs.values().forEach(mongodbWriteConfig -> Exceptions.toRuntime(() -> {<NEW_LINE>try {<NEW_LINE>copyT...
()).drop());
1,290,638
public static ListClusterResponse unmarshall(ListClusterResponse listClusterResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClusterResponse.setRequestId(_ctx.stringValue("ListClusterResponse.RequestId"));<NEW_LINE>listClusterResponse.setCode(_ctx.integerValue("ListClusterResponse.Code"));<NEW_LINE>listClusterRespons...
("ListClusterResponse.ClusterList[" + i + "].Mem"));
1,767,976
private TSStatus concludeFinalStatus(PhysicalPlan parentPlan, int totalRowNum, boolean noFailure, boolean isBatchRedirect, boolean isBatchFailure, TSStatus[] subStatus, List<String> errorCodePartitionGroups) {<NEW_LINE>if (parentPlan instanceof InsertMultiTabletPlan && !((InsertMultiTabletPlan) parentPlan).getResults()...
(Arrays.asList(subStatus));
1,644,505
final CreateCertificateFromCsrResult executeCreateCertificateFromCsr(CreateCertificateFromCsrRequest createCertificateFromCsrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCertificateFromCsrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
86,411
private byte[] createFlowControlPacket(Address member, Connection expectedConnection) throws IOException {<NEW_LINE>try (BufferObjectDataOutput output = createObjectDataOutput(nodeEngine, lastFlowPacketSize)) {<NEW_LINE>boolean hasData = false;<NEW_LINE>Map<Long, ExecutionContext> executionContexts = jobExecutionServic...
> ordinalToMemberToTasklet = e1.getValue();
842,219
final UpdateProjectResult executeUpdateProject(UpdateProjectRequest updateProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,048,373
protected Tuple4<String[], String[], TypeInformation<?>[], String[]> prepareIoSchema(TableSchema modelSchema, TableSchema dataSchema, Params params) {<NEW_LINE>boolean isPredDetail = params.contains(KnnPredictParams.PREDICTION_DETAIL_COL);<NEW_LINE>TypeInformation<?> idType = modelSchema.getFieldTypes()[modelSchema.get...
.get(KnnPredictParams.RESERVED_COLS));