idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,804,584
public static List<Types.Field> applyAddChange2Fields(List<Types.Field> fields, ArrayList<Types.Field> adds, ArrayList<TableChange.ColumnPositionChange> pchanges) {<NEW_LINE>if (adds == null && pchanges == null) {<NEW_LINE>return fields;<NEW_LINE>}<NEW_LINE>LinkedList<Types.Field> result = new LinkedList<>(fields);<NEW...
.indexOf(dsrField), srcField);
342,652
final PutJobFailureResultResult executePutJobFailureResult(PutJobFailureResultRequest putJobFailureResultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putJobFailureResultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
386,679
public void signDataVerifyData() throws NoSuchAlgorithmException {<NEW_LINE>CryptographyClient cryptographyClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.cryptography.CryptographyClient.signData#SignatureAlgorithm-byte<NEW_LINE>byte[] data = new byte[100];<NEW_LINE>new Random(0x1234567L).n...
"Verification status: %s.%n", verificationResult.isValid());
1,785,278
public static void main(String[] args) {<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://localhost:1111";<NEW_LINE>else<NEW_LINE>url = args[0];<NEW_LINE>Node foo1 = Node.createURI("http://example.org/#foo1");<NEW_LINE>Node bar1 = Node.createURI("http://example.org/#bar1");<NEW_LINE>N...
baz3 = Node.createURI("http://example.org/#baz3");
1,642,460
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE><MASK><NEW_LINE>LinearLayout layout = new LinearLayout(context);<NEW_LINE>layout.setOrientation(LinearLayout.HORIZONTAL);<NEW_LINE>layout.setGravity(Gravity.CENTER_VERTICAL);<NEW_LINE>layout.setLayoutParams(new ViewGroup.LayoutPara...
int wrapContent = ViewGroup.LayoutParams.WRAP_CONTENT;
359,700
public void send(Configurable configurable, String fromName, String to, List<String> cc, String subject, String text, Optional<String> html, Attachment... attachments) {<NEW_LINE>var conf = configurationManager.getFor(Set.of(SMTP_FROM_EMAIL, MAIL_REPLY_TO, SMTP_HOST, SMTP_PORT, SMTP_PROTOCOL, SMTP_USERNAME, SMTP_PASSWO...
), a.getContentType());
972,376
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "service");
511,677
public void addInvitedSignaling(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>HashMap<String, Object> info = CommonUtil.getParam(methodCall, result, "info");<NEW_LINE>V2TIMSignalingInfo param = new V2TIMSignalingInfo();<NEW_LINE>if (info.get("inviteID") != null) {<NEW_LINE>param.setInviteID((Stri...
) info.get("businessID"));
1,409,500
public void waitFor(Point point) throws InterruptedException, OptimizationException {<NEW_LINE>if (isOutsideRange(point)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (functionCache.containsKey(point)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Future<Double> future = futureMap.get(point);<NEW_LINE>if (future == null) {<NEW_L...
functionCache.put(point, value);
765,776
public Future<Result> resolve() {<NEW_LINE>FutureTask<Result> task = new FutureTask<Result>(new Callable<Result>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Result call() throws Exception {<NEW_LINE>final Result[] res = new Result[1];<NEW_LINE>try {<NEW_LINE>SwingUtilities.invokeAndWait(new Runnable() {<NEW_LINE><...
Result.create(Status.UNRESOLVED);
1,470,706
public void authenticate(Context context, ActionListener<AuthenticationResult<Authentication>> listener) {<NEW_LINE>final AuthenticationToken authenticationToken = context.getMostRecentAuthenticationToken();<NEW_LINE>if (false == authenticationToken instanceof ApiKeyCredentials) {<NEW_LINE>listener.onResponse(Authentic...
Authentication.newApiKeyAuthentication(authResult, nodeName);
517,373
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>// 1) Creation options ODT 2 PDF to select well converter form the<NEW_LINE>// registry<NEW_LINE>Options options = Options.getFrom(DocumentKind.ODT).to(ConverterTypeTo.PDF);<NEW_LINE>// 2) Get the converter from the registry<NEW_LINE>IConverter converter ...
= new File(out, "ODTHelloWord2PDF.pdf");
691,066
public CodegenExpression evaluateGetCollEventsCodegen(CodegenMethodScope parent, ExprSubselectEvalMatchSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenExpression aggService = classScope.getPackageScope().addOrGetFieldWellKnown(new CodegenFieldNameSubqueryAgg(subselect.getSubselectNumber()), AggregationR...
("groupKeys"), "size")));
1,391,458
public static void startURL(Activity activity, Uri uri) {<NEW_LINE>CustomTabsIntent.Builder customTabsIntent = new CustomTabsIntent.Builder();<NEW_LINE>customTabsIntent.setShowTitle(true);<NEW_LINE>CustomTabColorSchemeParams params = new CustomTabColorSchemeParams.Builder().setToolbarColor(ResourceUtils.resolveColor(ac...
Toast.LENGTH_SHORT).show();
164,883
private void findBits(Set<CheerEmoticon> emotes, String text, Map<Integer, Integer> ranges, Map<Integer, MutableAttributeSet> rangesStyle, User user) {<NEW_LINE>for (CheerEmoticon emote : emotes) {<NEW_LINE>if (!emote.matchesUser(user, null)) {<NEW_LINE>// CONTINUE<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Matcher m = emo...
out.println("Error parsing cheer: " + ex);
610,933
public DescribeClusterOperationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClusterOperationResult describeClusterOperationResult = new DescribeClusterOperationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
106,372
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>Picker picker = new Picker();<NEW_LINE>picker.setStrings("No cycle", "Repeat", "Reflect");<NEW_LINE>picker.addActionListener(e -> {<NEW_LINE>if...
.CENTER, new MyComponent());
1,741,793
public void renderParticle(@Nonnull BufferBuilder worldRendererIn, @Nonnull Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) {<NEW_LINE>GlStateManager.pushMatrix();<NEW_LINE>GlStateManager.enableLighting();<NEW_LINE>GlStateManager.disableLighti...
posY - entityIn.lastTickPosY) * partialTicks;
1,025,151
public ImportDataSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportDataSource importDataSource = new ImportDataSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
().unmarshall(context));
1,795,484
public void loadLibraries(ClassLoader cl) throws IOException {<NEW_LINE>assert cl != null;<NEW_LINE>Enumeration<URL> en = cl.getResources(LibIndex.DEFAULT_RESOURCE);<NEW_LINE>while (en.hasMoreElements()) {<NEW_LINE>URL url = en.nextElement();<NEW_LINE>LibIndex index = new <MASK><NEW_LINE>long created = index.getCreated...
LibIndex(url.openStream());
1,056,523
static final FeatureDescriptor findFeatureDescriptor(PropertyDisplayer pd) {<NEW_LINE>if (pd instanceof EditorPropertyDisplayer) {<NEW_LINE>// Issue 38004, more gunk to ensure we get the right feature<NEW_LINE>// descriptor<NEW_LINE>EditorPropertyDisplayer epd = (EditorPropertyDisplayer) pd;<NEW_LINE>if (epd.modelRef !...
= epd.modelRef.get();
1,004,001
protected void consumeConstructorHeader() {<NEW_LINE>// ConstructorHeader ::= ConstructorHeaderName MethodHeaderParameters MethodHeaderThrowsClauseopt<NEW_LINE>AbstractMethodDeclaration method = (AbstractMethodDeclaration) this.astStack[this.astPtr];<NEW_LINE>if (this.currentToken == TokenNameLBRACE) {<NEW_LINE>method<...
.bodyStart = this.scanner.currentPosition;
1,013,908
private int path2(String beginWord, String endWord, List<String> wordList) {<NEW_LINE>// abc -> *bc, a*c, ab*<NEW_LINE>Map<String, List<String>> map1 = new HashMap<>(wordList.size());<NEW_LINE>// *bc -> abc, bbc, cbc<NEW_LINE>Map<String, List<String>> map2 = new HashMap<>(wordList.size() * 3);<NEW_LINE>for (String word...
paths = map1.remove(crt);
1,108,269
public static boolean validateSignature(Transaction transaction, byte[] hash, AccountStore accountStore, DynamicPropertiesStore dynamicPropertiesStore) throws PermissionException, SignatureException, SignatureFormatException {<NEW_LINE>Transaction.Contract contract = transaction.getRawData().getContractList().get(0);<N...
(ByteString.copyFrom(owner));
1,462,153
private // F61004.1<NEW_LINE>void simulateCommitBean(BeanO beanO, ContainerTx containerTx) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "simulateCommitBean");<NEW_LINE>// React to exceptions the same as afterCompletion, i...
[] { this, beanO });
850,908
public float noise(float x, float y) {<NEW_LINE>float xMod = TeraMath.modulus(x, sampleRate);<NEW_LINE>float yMod = TeraMath.modulus(y, sampleRate);<NEW_LINE>float x0 = x - xMod;<NEW_LINE>float x1 = x0 + sampleRate;<NEW_LINE>float y0 = y - yMod;<NEW_LINE>float y1 = y0 + sampleRate;<NEW_LINE>float q00 = source.noise(x0 ...
x, y0 * zoom.y);
127,954
public void execute(final LanguageSourceSet languageSourceSet) {<NEW_LINE>final DependentSourceSet dependentSourceSet = (DependentSourceSet) languageSourceSet;<NEW_LINE>if (dependentSourceSet.getPreCompiledHeader() != null) {<NEW_LINE>nativeBinarySpec.addPreCompiledHeaderFor(dependentSourceSet);<NEW_LINE>final SourceTr...
getTasks().add(pchTask);
442,330
public void assignValue(JBlock targetBlock, IJAssignmentTarget fieldRef, EComponentWithViewSupportHolder holder, Element element, Element param) {<NEW_LINE>TypeMirror elementType = param.asType();<NEW_LINE>String typeQualifiedName = elementType.toString();<NEW_LINE>TypeElement nativeFragmentElement = <MASK><NEW_LINE>bo...
annotationHelper.typeElementFromQualifiedName(CanonicalNameConstants.FRAGMENT);
1,364,664
protected void registerDefaultRecipes() {<NEW_LINE>registerRecipe(12, new ItemStack[] { SlimefunItems.TIN_CAN, new ItemStack(Material.WHEAT) }, new ItemStack[] { new SlimefunItemStack(SlimefunItems.WHEAT_ORGANIC_FOOD, OrganicFood.OUTPUT) });<NEW_LINE>registerRecipe(12, new ItemStack[] { SlimefunItems.TIN_CAN, new ItemS...
SWEET_BERRIES_ORGANIC_FOOD, OrganicFood.OUTPUT) });
1,058,787
public void marshall(CreateLocationFsxWindowsRequest createLocationFsxWindowsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLocationFsxWindowsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
createLocationFsxWindowsRequest.getSecurityGroupArns(), SECURITYGROUPARNS_BINDING);
470,578
public static ListFlowRulesOfAppResponse unmarshall(ListFlowRulesOfAppResponse listFlowRulesOfAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowRulesOfAppResponse.setRequestId(_ctx.stringValue("ListFlowRulesOfAppResponse.RequestId"));<NEW_LINE>listFlowRulesOfAppResponse.setCode(_ctx.stringValue("ListFlowRulesOf...
("ListFlowRulesOfAppResponse.Data.Datas[" + i + "].RefResource"));
1,819,851
private void addMethods(RpcConnector connector) {<NEW_LINE>// Add/replace this method first to increase likelihood of getting extra metrics and global dimensions<NEW_LINE>connector.addMethod(new Method("setExtraMetrics", "s", "", this::setExtraMetrics).methodDesc("Set extra metrics that will be added to output from get...
(0, "metricsJson", "The metrics in json format"));
210,709
public void generateExport(final CsvWriter csvWriter) throws ExporterException {<NEW_LINE>try {<NEW_LINE>List<String> names = Arrays.asList(mContext.getResources().getStringArray(R.array.csv_account_headers));<NEW_LINE>List<Account> accounts = mAccountsDbAdapter.getAllRecords();<NEW_LINE>for (int i = 0; i < names.size(...
writeToken(account.getColorHexString());
692,829
// Inject a new submission<NEW_LINE>public String injestNewSubmission(WorkItem item) {<NEW_LINE>Connection c = null;<NEW_LINE>int rowCount = 0;<NEW_LINE>try {<NEW_LINE>// Create a Connection object<NEW_LINE>c = ConnectionHelper.getConnection();<NEW_LINE>// Use a prepared statement<NEW_LINE>PreparedStatement ps = null;<...
ps.setString(6, status);
100,046
public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>String appName = executionContext.getAppName();<NEW_LINE>RecycleBin bin = <MASK><NEW_LINE>if (bin == null) {<NEW_LINE>throw new TddlRuntimeException(ErrorCode.ERR_RECYCLEBIN_EXECUTE, "can't find recycle bin");<NEW_LINE>}<NEW_LINE>Ar...
RecycleBinManager.instance.getByAppName(appName);
23,351
private static void parseObjectGotoArray(HippyArray array, Object obj) throws JSONException {<NEW_LINE>if (obj == null || obj == JSONObject.NULL) {<NEW_LINE>array.pushNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> cls = obj.getClass();<NEW_LINE>if (obj instanceof String) {<NEW_LINE>array.pushString((String) obj)...
> keys = jsonObj.keys();
1,451,057
private void doSwitchStatementsIndentation(ASTNode switchNode, List<Statement> statements) {<NEW_LINE>if (this.options.indent_switchstatements_compare_to_cases) {<NEW_LINE>int nonBreakStatementEnd = -1;<NEW_LINE>for (Statement statement : statements) {<NEW_LINE>boolean isBreaking = isSwitchBreakingStatement(statement);...
.lastIndexIn(statement, -1);
1,547,252
private boolean canDropNode(ProgramNode destinationNode, ProgramNode dropNode, int dropAction, int relativeMousePosition) {<NEW_LINE><MASK><NEW_LINE>if (dragGroup.equals(destinationNode.getGroup())) {<NEW_LINE>// can't drop a group onto itself<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (relativeMousePosition != 0) {...
Group dragGroup = dropNode.getGroup();
457,346
public void recordValues(final GATKRead read, final SAMFileHeader header, final ReadCovariates values, final boolean recordIndelValues) {<NEW_LINE>final int originalReadLength = read.getLength();<NEW_LINE>// store the original bases and then write Ns over low quality ones<NEW_LINE>// Note: this makes a copy of the read...
getStrandedOffset(negativeStrand, i, readLengthAfterClipping);
161,874
private void dealWithSwitchNode(ASTSwitchNode node) {<NEW_LINE>// System.out.println("dealing with SwitchNode");<NEW_LINE>// do a depthfirst on elements of the switchNode<NEW_LINE>List<Object<MASK><NEW_LINE>Map<Object, List<Object>> index2BodyList = node.getIndex2BodyList();<NEW_LINE>Iterator<Object> it = indexList.ite...
> indexList = node.getIndexList();
88,205
public void onSectionIncreased(long incDuration, long totalDuration, int sectionCount) {<NEW_LINE>long totalRecordDurationMs = incDuration + (mDurationRecordStack.isEmpty() ? <MASK><NEW_LINE>double totalVideoDurationMs = incDuration + (mDurationVideoStack.isEmpty() ? 0 : mDurationVideoStack.peek());<NEW_LINE>if (totalV...
0 : mDurationRecordStack.peek());
469,982
private List<Symbol> findVftablesFromVtables() throws Exception {<NEW_LINE>List<Symbol> vftableSymbols = new ArrayList<Symbol>();<NEW_LINE>// find all vtable symbols<NEW_LINE>List<Symbol> listOfVtableSymbols = extendedFlatAPI.getListOfSymbolsInAddressSet(program.getAddressFactory().getAddressSet(), VTABLE_LABEL, true);...
vftableSymbol = symbolTable.getPrimarySymbol(vftableAddress);
1,289,264
final ListAssistantAssociationsResult executeListAssistantAssociations(ListAssistantAssociationsRequest listAssistantAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssistantAssociationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
901,612
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(Job.ID.getPreferredName(), jobId);<NEW_LINE>builder.field(MIN_VERSION.getPreferredName(), minVersion);<NEW_LINE>if (timestamp != null) {<NEW_LINE>builder.timeField(TIMEST...
SNAPSHOT_DOC_COUNT.getPreferredName(), snapshotDocCount);
1,201,227
public void cleanupTemplateSR(final Connection conn) {<NEW_LINE>Set<PBD> pbds = null;<NEW_LINE>try {<NEW_LINE>final Host host = Host.getByUuid(conn, _host.getUuid());<NEW_LINE>pbds = host.getPBDs(conn);<NEW_LINE>} catch (final XenAPIException e) {<NEW_LINE>s_logger.warn("Unable to get the SRs " + e.toString(), e);<NEW_...
srRec = sr.getRecord(conn);
338,110
public static <T> byte[] write(Writer<T> writer, T value) {<NEW_LINE>byte[] result = new byte[writer.sizeInBytes(value)];<NEW_LINE>WriteBuffer b = WriteBuffer.wrap(result);<NEW_LINE>try {<NEW_LINE>writer.write(value, b);<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>int lengthWritten = result.length;<NEW_LINE>for (i...
, 0, lengthWritten, UTF_8));
1,308,847
public Mono<PagedResponse<Object>> listRelationshipsNextSinglePageAsync(String nextLink, DigitalTwinsListRelationshipsOptions digitalTwinsListRelationshipsOptions, Context context) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be nu...
error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
506,482
private void alignScopeOutline(PanmirrorEditingOutlineLocation location) {<NEW_LINE>// Get all of the chunks from the document (code view)<NEW_LINE>ArrayList<Scope> chunkScopes = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>chunks.selectAll(ScopeList.CHUNK);<NEW_LINE>for (Scope chunk : chunks) {<NEW_LINE>chunkScopes.add...
ScopeList chunks = new ScopeList(docDisplay_);
1,675,745
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputUpdateAlias input = getRequestBody(request.<MASK><NEW_LINE>if (!StringUtil.isNullOrEmpty(input.getOperator()) && !StringUtil.isNullOrEmpty(input.getTargetId())) {<NEW_LINE>WFCMe...
getNettyRequest(), InputUpdateAlias.class);
291,732
private void populateDependencies(Set<? extends UsageContext> usageContexts, PublicationWarningsCollector publicationWarningsCollector) {<NEW_LINE>for (UsageContext usageContext : usageContexts) {<NEW_LINE>publicationWarningsCollector.newContext(usageContext.getName());<NEW_LINE>for (ModuleDependency dependency : usage...
, dependency.getVersion()));
607,320
public void reload() {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>File currentProjectPluginsDir;<NEW_LINE>File currentGlobalPluginsDir;<NEW_LINE>List<GrailsPlugin> currentLocalPlugins;<NEW_LINE>synchronized (this) {<NEW_LINE>File newProjectRoot = FileUtil.<MASK><NEW_LINE>assert newProjectRoot != null;<N...
toFile(project.getProjectDirectory());
1,854,948
private void initNewPreferences() {<NEW_LINE>prefPayload = new PreferencesPayload();<NEW_LINE>prefPayload.setUserLanguage(GlobalSettings.getLocale().getLanguage());<NEW_LINE>prefPayload.setUserCountry(CountryUtil.getDefaultCountry());<NEW_LINE>GlobalSettings.setLocale(new Locale(prefPayload.getUserLanguage(), prefPaylo...
code, ia.toString());
1,642,572
public static void exportCDIFaultToleranceAppToServer(LibertyServer server) throws Exception {<NEW_LINE>String APP_NAME = "CDIFaultTolerance";<NEW_LINE>JavaArchive faulttolerance_jar = ShrinkWrap.create(JavaArchive.class, "faulttolerance.jar").addPackages(true, "com.ibm.ws.microprofile.faulttolerance_fat.util");<NEW_LI...
server, CDIFaultTolerance_war, DeployOptions.SERVER_ONLY);
1,707,989
public Request<UpdateAccessKeyRequest> marshall(UpdateAccessKeyRequest updateAccessKeyRequest) {<NEW_LINE>if (updateAccessKeyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UpdateAccessKeyRequest> request = new DefaultRequest<MASK><NEW_LI...
<UpdateAccessKeyRequest>(updateAccessKeyRequest, "AmazonIdentityManagement");
644,051
public CreateGroupMembershipResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateGroupMembershipResult createGroupMembershipResult = new CreateGroupMembershipResult();<NEW_LINE>createGroupMembershipResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = ...
String currentParentElement = context.getCurrentParentElement();
388,650
public void activate(Map<String, Object> properties) {<NEW_LINE>Object cid = properties.get("component.id");<NEW_LINE>name = (String) properties.get("id");<NEW_LINE>if (name == null)<NEW_LINE>name = "sipEndpoint-" + cid;<NEW_LINE>if (isNeedToActivateSipEndpoint(name)) {<NEW_LINE>if (c_logger.isEventEnabled()) {<NEW_LIN...
c_logger.event("activate sipEndpoint " + this);
1,386,371
public void updateSubstitutabilityMap() {<NEW_LINE>ElementDecl parent = this;<NEW_LINE>XSType type = this.getType();<NEW_LINE>boolean rused = false;<NEW_LINE>boolean eused = false;<NEW_LINE>while ((parent = (ElementDecl) parent.getSubstAffiliation()) != null) {<NEW_LINE>if (parent.isSubstitutionDisallowed(XSType.SUBSTI...
).isSubstitutionProhibited(XSType.EXTENSION);
877,714
private void processProps(Map<String, Object> props) {<NEW_LINE>// warn users on the ignored attributes<NEW_LINE>Tr.warning(tc, "SAML_CONFIG_IGNORE_ATTRIBUTES", new Object[] { "true", ignoreAttributes, providerId });<NEW_LINE>// milliseconds<NEW_LINE>clockSkewMilliSeconds = (Long) props.get(KEY_clockSkew);<NEW_LINE>sig...
) props.get(KEY_audiences));
143,115
private List<PathElement> parse(String path) {<NEW_LINE>if (path == null) {<NEW_LINE>throw new NullPointerException("path");<NEW_LINE>}<NEW_LINE>final String[] split = path.split(Pattern.quote("."));<NEW_LINE>final List<PathElement> elements = new ArrayList<PathElement>();<NEW_LINE>for (String element : split) {<NEW_LI...
index = element.indexOf('[');
1,801,572
protected void addSupportingElement(Element el) {<NEW_LINE>el = (<MASK><NEW_LINE>if (lastSupportingTokenElement != null) {<NEW_LINE>insertAfter(el, lastSupportingTokenElement);<NEW_LINE>} else if (lastDerivedKeyElement != null) {<NEW_LINE>insertAfter(el, lastDerivedKeyElement);<NEW_LINE>} else if (lastEncryptedKeyEleme...
Element) DOMUtils.getDomElement(el);
35,523
public Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, ArgumentHandler argumentHandler, Sort sort) {<NEW_LINE>StackManipulation readAssignment = assigner.assign(TypeDescription.THROWABLE.asGenericType(), target, typing);<NEW_LINE>if (!readAssignment.isValid()) {...
throw new IllegalStateException("Cannot assign Throwable to " + target);
1,571,976
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>final String[] abiList;<NEW_LINE>if (VMRuntime.getRuntime().is64Bit()) {<NEW_LINE>abiList = SUPPORTED_64_BIT_ABIS;<NEW_LINE>} else {<NEW_LINE>abiList = SUPPORTED_32_BIT_ABIS;<NEW_LINE>}<NEW_LINE>CPU_ABI = abiList[0];<NEW_LINE>if (abiList.length > 1) {<NEW_LIN...
DisplayMetrics dm = res.getDisplayMetrics();
404,538
private NativeEntity<InputWithExtractors> decode(EntityV1 entity, Map<String, ValueReference> parameters, String username) {<NEW_LINE>final InputEntity inputEntity = objectMapper.convertValue(entity.data(), InputEntity.class);<NEW_LINE>final Map<String, ValueReference> staticFields = inputEntity.staticFields();<NEW_LIN...
(), parameters), username);
755,454
protected synchronized void processInitHeaders(List<BlockHeader> received) {<NEW_LINE>final BlockHeader blockHeader = received.get(0);<NEW_LINE>final long blockNumber = blockHeader.getNumber();<NEW_LINE>if (ethState == EthState.STATUS_SENT) {<NEW_LINE>updateBestBlock(blockHeader);<NEW_LINE>logger.trace("Peer {}: init r...
"Peer {}: all validations passed", channel.getPeerIdShort());
1,409,521
static // tvalue = (sep alphanum{3,8})+ ;<NEW_LINE>void parseTransformedExtensions(CharSequence inLocaleId, LocaleIdTokenizer localeIdTokenizer, ParsedLocaleIdentifier parsedLocaleIdentifier) throws JSRangeErrorException, LocaleIdTokenizer.LocaleIdSubtagIterationFailed {<NEW_LINE>if (!localeIdTokenizer.hasMoreSubtags()...
localeIdTokenizer, nextSubtag, true, parsedLocaleIdentifier);
1,206,988
// Implement AdEvent.AdEventListener.<NEW_LINE>@MainThread<NEW_LINE>@Override<NEW_LINE>public void onAdEvent(AdEvent event) {<NEW_LINE>AdPlaybackState newAdPlaybackState = adPlaybackState;<NEW_LINE>switch(event.getType()) {<NEW_LINE>case CUEPOINTS_CHANGED:<NEW_LINE>// CUEPOINTS_CHANGED event is firing multiple times wi...
event.getAd(), newAdPlaybackState);
1,338,653
static public KrollDict placeFromAddress(Address address) {<NEW_LINE>final KrollDict place = new KrollDict();<NEW_LINE>// Create place entry data.<NEW_LINE>place.put(TiC.PROPERTY_STREET1, address.getThoroughfare());<NEW_LINE>place.put(TiC.PROPERTY_STREET, address.getThoroughfare());<NEW_LINE>place.put(TiC.PROPERTY_CITY...
PROPERTY_REGION2, address.getSubAdminArea());
637,789
public String makeHtml(FitNesseContext context, WikiPage page) {<NEW_LINE>PageData pageData = page.getData();<NEW_LINE>HtmlPage html = context.pageFactory.newPage();<NEW_LINE>WikiPagePath fullPath = page.getFullPath();<NEW_LINE>String fullPathName = PathParser.render(fullPath);<NEW_LINE>PageTitle pt = new PageTitle(ful...
"content", new WikiPageRenderer(page));
1,720,969
protected static void appendNavUrlQueryParams(final StringBuilder sb, final QueryParams theQuery, final boolean authenticatedFeatures) {<NEW_LINE>sb.append("&maximumRecords=");<NEW_LINE>sb.append(theQuery.itemsPerPage());<NEW_LINE>sb.append("&resource=");<NEW_LINE>sb.append((theQuery.isLocal()) ? "local" : "global");<N...
().getQueryString(true));
1,437,345
private static void verifyEdgesConditionQuery(ConditionQuery query) {<NEW_LINE>assert query.resultType().isEdge();<NEW_LINE>int total = query.conditionsSize();<NEW_LINE>if (total == 1) {<NEW_LINE>if (query.containsCondition(HugeKeys.LABEL) || query.containsCondition(HugeKeys.PROPERTIES) || query.containsScanRelation())...
value = query.condition(key);
768,054
public void refresh() throws Exception {<NEW_LINE>InstanceStatus serverStatuses = clientManager.getServerDataApiClient().getServerStatuses();<NEW_LINE>List<RemoteProxy> proxys = new ArrayList<>(serverStatuses.server2WorkerInfo.size());<NEW_LINE>Set<WorkerInfo> workerInfoSet = new TreeSet<>(serverStatuses.getWorkInfo(Ro...
(p, v.id));
1,174,646
public ORawBuffer readRecordIfVersionIsNotLatest(final long clusterPosition, final int recordVersion) throws IOException, ORecordNotFoundException {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final OAtomicOperation atomicOperation = atomi...
get(clusterPosition, 1, atomicOperation);
278,749
public void actionPerformed(ActionEvent e) {<NEW_LINE>X509Metadata metadata = new X509Metadata("whocares", "whocares");<NEW_LINE>File certificatesConfigFile = new File(folder, X509Utils.CA_CONFIG);<NEW_LINE>FileBasedConfig config = new FileBasedConfig(certificatesConfigFile, FS.detect());<NEW_LINE>NewCertificateConfig ...
setText("" + certificateConfig.duration);
1,652,153
public void execute(ComplexEventChunk streamEventChunk) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Event Chunk received by the Aggregation " + aggregatorName + " for duration " + this.duration + " will be dropped since persisted aggregation has been scheduled ");<NEW_LINE>}<NEW_LINE>streamEventChunk.res...
(StreamEvent) streamEventChunk.next();
27,616
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) {<NEW_LINE>// Validate type of the inner aggregate call<NEW_LINE>validateOperands(validator, scope, call);<NEW_LINE>// Assume the first operand is an aggregate call and derive its type.<NEW_LINE>SqlNode agg = call.operand(0);<N...
final SqlCall aggCall = (SqlCall) agg;
524,599
protected void calculateStatistics(List<RouteSegmentResult> result) {<NEW_LINE>InputStream is = RenderingRulesStorage.class.getResourceAsStream("default.render.xml");<NEW_LINE>final Map<String, String> renderingConstants = new LinkedHashMap<String, String>();<NEW_LINE>try {<NEW_LINE>InputStream pis = RenderingRulesStor...
= new RenderingRulesStorage("default", renderingConstants);
864,425
/*<NEW_LINE>* @see com.sitewhere.grpc.service.DeviceEventManagementGrpc.<NEW_LINE>* DeviceEventManagementImplBase#listAlertsForIndex(com.sitewhere.grpc.service.<NEW_LINE>* GListAlertsForIndexRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listAlertsForIndex(GListAlertsForIndexR...
Builder results = GDeviceAlertSearchResults.newBuilder();
681,460
public static byte[] resizeKey(byte[] in, int inOffset, int cbIn, int cbOut) {<NEW_LINE>if (cbOut == 0)<NEW_LINE>return new byte[0];<NEW_LINE>byte[] hash;<NEW_LINE>if (cbOut <= 32) {<NEW_LINE>hash = hashSha256(in, inOffset, cbIn);<NEW_LINE>} else {<NEW_LINE>hash = hashSha512(in, inOffset, cbIn);<NEW_LINE>}<NEW_LINE>if ...
part = hmac.doFinal(pbR);
1,024,823
public static GetSubscriptionItemDetailResponse unmarshall(GetSubscriptionItemDetailResponse getSubscriptionItemDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSubscriptionItemDetailResponse.setRequestId(_ctx.stringValue("GetSubscriptionItemDetailResponse.RequestId"));<NEW_LINE>getSubscriptionItemDetailResponse...
(_ctx.stringValue("GetSubscriptionItemDetailResponse.SubscriptionItemDetail.Channel"));
1,107,367
public static void main(String[] args) {<NEW_LINE>Exercise9 exercise9 = new Exercise9();<NEW_LINE>SeparateChainingHashTableWithDelete<Integer, Integer> separateChainingHashTableWithDelete = exercise9.new SeparateChainingHashTableWithDelete<>();<NEW_LINE>separateChainingHashTableWithDelete.put(1, 1);<NEW_LINE>separateCh...
StdOut.println("\nDelete key " + k);
1,382,272
/* public void operate(SimFunctionContext<String> context) {<NEW_LINE>String first = context.getFirstOperand();<NEW_LINE><MASK><NEW_LINE>double score1 = 0.0;<NEW_LINE>double score2 = 0.0;<NEW_LINE>double score = 0.0;<NEW_LINE>try {<NEW_LINE>if (!(first == null || first.trim().equals(""))) {<NEW_LINE>score1 = 1.0d;<NEW_...
String second = context.getSecondOperand();
1,128,922
public void probeMemory() {<NEW_LINE>long freeMemoryBytes = Runtime.getRuntime().freeMemory();<NEW_LINE>long totalMemoryBytes = Runtime.getRuntime().totalMemory();<NEW_LINE>long maxMemoryBytes = Runtime.getRuntime().maxMemory();<NEW_LINE>long totalGcTimeMs = 0;<NEW_LINE>for (GarbageCollectorMXBean gcMxBean : Management...
String name = memoryPoolBean.getName();
1,458,314
public static boolean fillFluidContainer(IFluidHandler handler, int slotIn, int slotOut, IntFunction<ItemStack> invGet, BiConsumer<Integer, ItemStack> invSet) {<NEW_LINE>ItemStack filledContainer = fillFluidContainer(handler, invGet.apply(slotIn), invGet.apply(slotOut), null);<NEW_LINE>if (!filledContainer.isEmpty()) {...
slotIn, filledContainer.copy());
933,227
public void apply() {<NEW_LINE><MASK><NEW_LINE>codeInsightSettings.COMPLETION_CASE_SENSITIVE = getCaseSensitiveValue();<NEW_LINE>codeInsightSettings.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS = myCbSelectByChars2.getValue();<NEW_LINE>codeInsightSettings.AUTOCOMPLETE_ON_CODE_COMPLETION = myCbOnCodeCompletion2.getValue();<NEW...
CodeInsightSettings codeInsightSettings = CodeInsightSettings.getInstance();
834,275
public DataSet data() {<NEW_LINE>DataSet result = newDataSet();<NEW_LINE>StargateLocalInfo info = StargateSystemKeyspace.instance.getLocal().copy();<NEW_LINE>DataSet.RowBuilder rowBuilder = // + "bootstrapped text,"<NEW_LINE>result.newRowBuilder().addColumn("bootstrapped", // + "broadcast_address inet,"<NEW_LINE>() -> ...
("last_nodesync_checkpoint_time", () -> null);
148,545
private void assignExportedMethodsKeys(String moduleName, List<Map<String, Object>> exportedMethodsInfos) {<NEW_LINE>if (mExportedMethodsKeys.get(moduleName) == null) {<NEW_LINE>mExportedMethodsKeys.put(moduleName, new HashMap<String, Integer>());<NEW_LINE>}<NEW_LINE>if (mExportedMethodsReverseKeys.get(moduleName) == n...
String) methodInfo.get(METHOD_INFO_NAME);
1,675,805
public InstanceMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceMetadata instanceMetadata = new InstanceMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,668,113
void processBuilds(TeletraanServiceContext workerContext) throws Exception {<NEW_LINE>BuildDAO buildDAO = workerContext.getBuildDAO();<NEW_LINE>UtilDAO utilDAO = workerContext.getUtilDAO();<NEW_LINE>long timeToKeep = (long) workerContext.getMaxDaysToKeep() * MILLIS_PER_DAY;<NEW_LINE>long maxToKeep = (long) workerContex...
> buildNames = buildDAO.getAllBuildNames();
571,048
private void writeActivationOS(ActivationOS activationOS, String tagName, XmlSerializer serializer) throws java.io.IOException {<NEW_LINE>serializer.startTag(NAMESPACE, tagName);<NEW_LINE>flush(serializer);<NEW_LINE>StringBuffer b = b(serializer);<NEW_LINE>int start = b.length();<NEW_LINE>if (activationOS.getName() != ...
activationOS.getName(), activationOS);
1,475,919
public NaiveBayesTextModelData deserializeModel(Params meta, Iterable<String> data, Iterable<Object> distinctLabels) {<NEW_LINE>NaiveBayesTextModelData modelData = new NaiveBayesTextModelData();<NEW_LINE>String json = data.iterator().next();<NEW_LINE>NaiveBayesTextProbInfo dataInfo = JsonConverter.fromJson(json, NaiveB...
= modelData.theta.numRows();
308,072
private ListenableFuture<?> rollupOneFromRows(int rollupLevel, String agentRollupId, String syntheticMonitorId, long to, int adjustedTTL, Iterable<Row> rows) throws Exception {<NEW_LINE>double totalDurationNanos = 0;<NEW_LINE>long executionCount = 0;<NEW_LINE>ErrorIntervalCollector errorIntervalCollector = new ErrorInt...
.setDouble(i++, totalDurationNanos);
415,277
UnresolvedModule build() {<NEW_LINE>List<Export> localExports = new ArrayList<>();<NEW_LINE>ImmutableList.Builder<Export> indirectExportsBuilder = <MASK><NEW_LINE>ImmutableList.Builder<Export> starExportsBuilder = new ImmutableList.Builder<>();<NEW_LINE>for (Export ee : exports) {<NEW_LINE>if (ee.moduleRequest() == nul...
new ImmutableList.Builder<>();
144,731
public void run(RegressionEnvironment env) {<NEW_LINE>String eventNameOne = SupportBeanSimple.class.getSimpleName();<NEW_LINE>String eventNameTwo = SupportMarketDataBean.class.getSimpleName();<NEW_LINE>String text = "@name('s0') select *, myString||myString as concat " + "from " + eventNameOne + "#length(5) as eventOne...
(text).addListener("s0");
921,964
public void trainModel(String[] lingFactors, String featuresFile, int numFeatures, double percentToTrain, SoP sop) throws Exception {<NEW_LINE>// desired size of the solution<NEW_LINE>int d = solutionSize;<NEW_LINE>// maximum deviation allowed with respect to d<NEW_LINE>int D = 0;<NEW_LINE>int cols = lingFactors.length...
out.println("Using independent variable without log()" + "\n");
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...
(CONTENT_TYPE).setQueueDescription(description);
804,420
private Mono<Response<ClusterConfigurationsInner>> listWithResponseAsync(String resourceGroupName, String clusterName) {<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>}<NEW_LINE>...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
864,001
private MyNavigationGutterIconRenderer createGutterIconRenderer(@Nonnull Project project) {<NEW_LINE>checkBuilt();<NEW_LINE>final SmartPointerManager manager = SmartPointerManager.getInstance(project);<NEW_LINE>NotNullLazyValue<List<SmartPsiElementPointer>> pointers = new NotNullLazyValue<List<SmartPsiElementPointer>>(...
(manager.createSmartPsiElementPointer(psiElement));
839,430
private static String generateXRefTitle(ProgramLocation location) {<NEW_LINE>// note: we likely need to improve this title generation as we find more specific needs<NEW_LINE>Program program = location.getProgram();<NEW_LINE>FunctionManager functionManager = program.getFunctionManager();<NEW_LINE>Address address = locat...
getFunctionContaining(vl.getFunctionAddress());
1,179,572
final RetryDataReplicationResult executeRetryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryDataReplicationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Retry...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,166,101
private static <T> void createADTableInstanceIfNeccesary(final Properties ctx, final Class<T> cl) {<NEW_LINE>if (!Adempiere.isUnitTestMode()) {<NEW_LINE>// we are not in unit test mode. Don't create in-memory objects on the fly.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String tableName = InterfaceWrapperHelper.getTab...
Services.get(ITrxConstraintsBL.class);