idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,157,791
private static String createRandomKey() {<NEW_LINE>SecureRandom random = new SecureRandom();<NEW_LINE>List<Character> possibleCharacters = new ArrayList<>();<NEW_LINE>for (char c = 'A'; c <= 'Z'; c++) {<NEW_LINE>possibleCharacters.add(c);<NEW_LINE>}<NEW_LINE>for (char c = 'a'; c <= 'z'; c++) {<NEW_LINE>possibleCharacte...
(Character.valueOf('l'));
911,327
// snippet-start:[s3.java2.getobjecttags.main]<NEW_LINE>public static void listTags(S3Client s3, String bucketName, String keyName) {<NEW_LINE>try {<NEW_LINE>GetObjectTaggingRequest getTaggingRequest = GetObjectTaggingRequest.builder().key(keyName).bucket(bucketName).build();<NEW_LINE>GetObjectTaggingResponse <MASK><NE...
tags = s3.getObjectTagging(getTaggingRequest);
940,030
public void prepareDocumentForEncryption(PDDocument document) throws IOException {<NEW_LINE>PDEncryption encryptionDictionary = document.getEncryption();<NEW_LINE>if (encryptionDictionary == null) {<NEW_LINE>encryptionDictionary = new PDEncryption();<NEW_LINE>}<NEW_LINE>int version = computeVersionNumber();<NEW_LINE>in...
String userPassword = policy.getUserPassword();
1,344,765
final GetSizeConstraintSetResult executeGetSizeConstraintSet(GetSizeConstraintSetRequest getSizeConstraintSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSizeConstraintSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new GetSizeConstraintSetResultJsonUnmarshaller());
702,840
public void reset() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "reset");<NEW_LINE>if (finalResults != null) {<NEW_LINE>for (int i = 0; i < MessageProcessorMatchTarget.NUM_TYPES; i++) {<NEW_LINE>if (handlers[i] != null)<NEW_LINE>handlers[i].resetResult(finalResul...
handlers[i].initResult();
1,114,365
// autogenerated by CtBiScannerGenerator<NEW_LINE>public <T, A extends T> void visitCtOperatorAssignment(final spoon.reflect.code.CtOperatorAssignment<T, A> assignment) {<NEW_LINE>spoon.reflect.code.CtOperatorAssignment other = ((spoon.reflect.code.CtOperatorAssignment) (this<MASK><NEW_LINE>enter(assignment);<NEW_LINE>...
.stack.peek()));
704,946
public static void scrollToTheEnd(@Nonnull Editor editor, boolean preferVerticalScroll) {<NEW_LINE>editor.getSelectionModel().removeSelection();<NEW_LINE><MASK><NEW_LINE>int lastLine = Math.max(0, document.getLineCount() - 1);<NEW_LINE>boolean caretWasAtLastLine = editor.getCaretModel().getLogicalPosition().line == las...
Document document = editor.getDocument();
219,735
public GenericTrigger createContainerTriggerImpl(@NotNull GenericStructContainer container, @NotNull JDBCResultSet dbResult) throws DBException {<NEW_LINE>String name = <MASK><NEW_LINE>if (name == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int sequence = JDBCUtils.safeGetInt(dbResult, "RDB$TRIGGER_SEQUENCE");<NE...
JDBCUtils.safeGetStringTrimmed(dbResult, "RDB$TRIGGER_NAME");
63,352
public static byte[] toPdf(String fileName, byte[] bytes, String stamp) throws Exception {<NEW_LINE>Config.collect().validate();<NEW_LINE>URL serverUrl = new URL(Config.collect().url() + "/o2_collect_assemble/jaxrs/document/to/pdf");<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) serverUrl.openConnection()...
toString(in, DefaultCharset.charset_utf_8);
170,639
public void delete(ClientModel client) {<NEW_LINE>String id = client.getId();<NEW_LINE>ResourceServerEntity entity = entityManager.find(ResourceServerEntity.class, id);<NEW_LINE>if (entity == null)<NEW_LINE>return;<NEW_LINE>// This didn't work, had to loop through and remove each policy individually<NEW_LINE>// entityM...
(ResourceEntity.class, resourceId));
851,295
public void drawBackground(@Nonnull PoseStack matrix, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>super.drawBackground(matrix, mouseX, mouseY, partialTicks);<NEW_LINE>// Draw Black and border<NEW_LINE>renderBackgroundTexture(matrix, GuiInnerScreen.SCREEN, GuiInnerScreen.SCREEN_SIZE, GuiInnerScreen.SCREEN_SIZ...
1, height, TEXTURE_WIDTH, TEXTURE_HEIGHT);
339,463
public void marshall(RuleGroupResponse ruleGroupResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ruleGroupResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ruleGroupResponse.getRuleGroupArn...
ruleGroupResponse.getRuleGroupId(), RULEGROUPID_BINDING);
1,336,429
private Object post(Object[] arguments) throws ArityException, UnsupportedTypeException, UnsupportedMessageException {<NEW_LINE>if (arguments.length < 1) {<NEW_LINE>throw ArityException.create(1, -1, arguments.length);<NEW_LINE>}<NEW_LINE>if (!InteropLibrary.getUncached().isString(arguments[0])) {<NEW_LINE>throw Unsupp...
] { arguments[2] });
658,123
static org.batfish.datamodel.eigrp.EigrpProcess toEigrpProcess(EigrpProcess proc, String vrfName, Configuration c, AsaConfiguration oldConfig) {<NEW_LINE>org.batfish.datamodel.eigrp.EigrpProcess.Builder newProcess = org.batfish.datamodel.eigrp.EigrpProcess.builder();<NEW_LINE>if (proc.getAsn() == null) {<NEW_LINE>oldCo...
= new RoutingPolicy(redistributionPolicyName, c);
71,846
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.set(Position...
.nextInt(0) == 1);
712,448
public void draw() {<NEW_LINE>TabSegment segment = segments.get(segmentIndex);<NEW_LINE>// getAdvance();<NEW_LINE>float advance = segment.layout.getVisibleAdvance();<NEW_LINE>if (bulletChunk != null) {<NEW_LINE>PdfPhrase phrase = pdfProducer.createPhrase();<NEW_LINE>pdfExporter.getPhrase(bulletChunk, bulletText, text, ...
PdfPhrase phrase = pdfProducer.createPhrase();
1,067,035
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_...
DataCodec.encode(clientMessage, value);
1,516,277
public boolean command(Room room, String command, Parameters parameters) {<NEW_LINE>String channel = room.getChannel();<NEW_LINE>// Args could be null<NEW_LINE>String parameter = parameters.getArgs();<NEW_LINE>command = StringUtil.toLowerCase(command);<NEW_LINE>if (commands.performCommand(command, room, parameters)) {<...
testCommands(room, actualCommand, actualParamter);
1,698,022
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {<NEW_LINE>this.exprs = exprs[0] instanceof ExpressionList ? (ExpressionList<?>) exprs[0] : new ExpressionList<>(new Expression<?>[] { exprs[0] }, Object.class, false);<NEW_LINE>this.recursive = matchedPattern ==...
(null, false) + "' can only ever have one value at most, thus the 'amount of ...' expression is useless. Use '... exists' instead to find out whether the expression has a value.");
263,161
public static void hashClientMetaTypeSecret(@Sensitive JsonObject clientMetadataAsJson, String clientId, boolean updateXORtoHash) {<NEW_LINE>if (clientMetadataAsJson != null && clientMetadataAsJson.has(OAuth20Constants.CLIENT_SECRET)) {<NEW_LINE>String clientSecret = clientMetadataAsJson.get(<MASK><NEW_LINE>if (clientS...
OAuth20Constants.CLIENT_SECRET).getAsString();
1,112,671
private List<NameValueCountPair> listActivityName(Business business, EffectivePerson effectivePerson, Application application) throws Exception {<NEW_LINE>List<NameValueCountPair> wos = new ArrayList<>();<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Work.class);<NEW_LINE>CriteriaBuilder cb = em.get...
), application.getId());
1,232,562
PBytes doit(ZLibCompObject.JavaZlibCompObject self, int mode, PythonObjectFactory factory) {<NEW_LINE>byte[] result = new byte[DEF_BUF_SIZE];<NEW_LINE>Deflater <MASK><NEW_LINE>int deflateMode = mode;<NEW_LINE>if (mode == Z_FINISH) {<NEW_LINE>deflateMode = Z_SYNC_FLUSH;<NEW_LINE>deflater.finish();<NEW_LINE>}<NEW_LINE>in...
deflater = (Deflater) self.stream;
1,455,791
final ListViolationEventsResult executeListViolationEvents(ListViolationEventsRequest listViolationEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listViolationEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,688,000
private static float draw(final PGraphics pGraphic, final String pText, final float pArcRadius, final float pTheta, final EDisplay pDisplay, final EReverseDirection pReverseDrawDirection) {<NEW_LINE>assert pGraphic != null;<NEW_LINE>assert pText != null;<NEW_LINE>assert pArcRadius >= 0;<NEW_LINE>// assert pTheta >= 0f ...
!= 'i' ? w * 0.5f : w;
164,762
protected void addRowTable() {<NEW_LINE>SingleRowTabTable table = new SingleRowTabTable(tabModel);<NEW_LINE>table.getSelectionModel().setSelectionInterval(0, 0);<NEW_LINE>table.getColumnModel().getSelectionModel().setSelectionInterval(0, 0);<NEW_LINE>table.addMouseWheelListener(this);<NEW_LINE>table.<MASK><NEW_LINE>tab...
getSelectionModel().addListSelectionListener(this);
507,338
public IndexDescriptor completeConfiguration(IndexDescriptor index) {<NEW_LINE>EnumMap<IndexSlot, IndexDescriptor> descriptors = new EnumMap<>(IndexSlot.class);<NEW_LINE>EnumMap<IndexSlot, IndexCapability> capabilities = new <MASK><NEW_LINE>for (IndexSlot slot : IndexSlot.values()) {<NEW_LINE>IndexDescriptor result = p...
EnumMap<>(IndexSlot.class);
29,343
public void marshall(SplunkDestinationUpdate splunkDestinationUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (splunkDestinationUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(splunkDestinati...
splunkDestinationUpdate.getHECAcknowledgmentTimeoutInSeconds(), HECACKNOWLEDGMENTTIMEOUTINSECONDS_BINDING);
241,456
private void queryMultiDumpGraph(UAVHttpMessage data) {<NEW_LINE>String ipport = data.getRequest("ipport");<NEW_LINE>String timesStr = data.getRequest("times");<NEW_LINE>String threadIdsStr = data.getRequest("threadIds");<NEW_LINE>List<String> times = JSONHelper.toObjectArray(timesStr, String.class);<NEW_LINE>List<Stri...
BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
188,151
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol as mySymbol from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by mySymbol";<NEW_LINE>SupportUpdateListener listener = new SupportUpdateListe...
createAndSend(env, epl, milestone);
853,395
public ContextQuery toContextQuery(CompletionQuery query, Map<String, List<ContextMapping.InternalQueryContext>> queryContexts) {<NEW_LINE>ContextQuery typedContextQuery = new ContextQuery(query);<NEW_LINE>boolean hasContext = false;<NEW_LINE>if (queryContexts.isEmpty() == false) {<NEW_LINE>CharsRefBuilder scratch = ne...
.boost, !context.isPrefix);
481,198
private View createIconItemView(@NonNull LayoutInflater inflater, @NonNull String iconName) {<NEW_LINE>View iconItemView = inflater.inflate(R.layout.point_editor_button, iconsSelector, false);<NEW_LINE>int iconId = RenderingIcons.getBigIconResourceId(iconName);<NEW_LINE>int validIconId = iconId != 0 ? iconId : DEFAULT_...
findViewById(R.id.icon);
1,694,718
private void makeVars() {<NEW_LINE>SourceInfo info = jsProgram.createSourceInfoSynthetic(getClass());<NEW_LINE>JsVar stackVar = new JsVar(info, stack);<NEW_LINE>stackVar.setInitExpr(new JsArrayLiteral(info));<NEW_LINE>JsVar stackDepthVar = new JsVar(info, stackDepth);<NEW_LINE>stackDepthVar.setInitExpr(new JsNumberLite...
).add(0, vars);
233,699
public Object lookup(Name inName) throws NamingException {<NEW_LINE>NameUtil nameUtil = new NameUtil(inName);<NEW_LINE>Object toReturn = null;<NEW_LINE>// if there wasn't a name to lookup return a Context<NEW_LINE>if (nameUtil.getStringNameWithoutPrefix().equals(""))<NEW_LINE>return new JavaURLContext(nameUtil.getName(...
), nameUtil.getNameInContext());
1,267,909
private MessageType buildParquetSchema(final String group) throws SerialisationException {<NEW_LINE>SchemaElementDefinition groupGafferSchema;<NEW_LINE>final boolean isEntity = gafferSchema.getEntityGroups().contains(group);<NEW_LINE>final StringBuilder schemaString = new StringBuilder("message Element {\n");<NEW_LINE>...
Serialiser serialiser = gafferSchema.getVertexSerialiser();
660,494
public S3DestinationConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3DestinationConfiguration s3DestinationConfiguration = new S3DestinationConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
831,821
public void onSelectionChanged() {<NEW_LINE>super.onSelectionChanged();<NEW_LINE>selectedRows.clear();<NEW_LINE>if (tracker.hasSelection()) {<NEW_LINE>final Iterator<TableViewRowProxy> i = tracker.getSelection().iterator();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>final TableViewRowProxy row = i.next();<NEW_LINE>if (row...
final KrollDict data = new KrollDict();
1,521,269
// Allowed Skew is deprecated for users, but must be respected<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>private void checkTimestamp(Instant timestamp) {<NEW_LINE>Instant lowerBound;<NEW_LINE>try {<NEW_LINE>lowerBound = timestamp().<MASK><NEW_LINE>} catch (ArithmeticException e) {<NEW_LINE>lowerBound = Bounded...
minus(fn.getAllowedTimestampSkew());
650,101
public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {<NEW_LINE>final String failureUrlParam = StringUtil.cleanseUrlString(request.getParameter("failureUrl"));<NEW_LINE>String successUrlParam = StringUtil.cl...
.getClass().getName();
864,664
public static boolean update(Map<String, Object> source, Map<String, Object> changes, boolean checkUpdatesAreUnequal) {<NEW_LINE>boolean modified = false;<NEW_LINE>for (Map.Entry<String, Object> changesEntry : changes.entrySet()) {<NEW_LINE>if (!source.containsKey(changesEntry.getKey())) {<NEW_LINE>// safe to copy, cha...
old, changesEntry.getValue());
1,324,328
private static void messageForwardingViaEmail(final Switchboard sb, final MessageBoard.entry msgEntry) {<NEW_LINE>try {<NEW_LINE>if (!sb.getConfigBool("msgForwardingEnabled", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// get the recipient address<NEW_LINE>final String sendMailTo = sb.getConfig("msgForwardingTo", "r...
log.warn("message: message forwarding via email failed. ", e);
645,378
public static Transaction retrieveTransaction(final Driver driver, final DatabaseSelection targetDatabase, final UserSelection asUser) {<NEW_LINE>if (!TransactionSynchronizationManager.isSynchronizationActive()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Check whether we have a transaction managed by a Neo4j transa...
new Neo4jSessionSynchronization(connectionHolder, driver));
934,798
public static int parseUnsignedIntAttribute(CharSequence charSeq) {<NEW_LINE>String value = charSeq.toString();<NEW_LINE>long bits;<NEW_LINE>int index = 0;<NEW_LINE><MASK><NEW_LINE>int base = 10;<NEW_LINE>if ('0' == value.charAt(index)) {<NEW_LINE>// Quick check for zero by itself<NEW_LINE>if (index == (len - 1)) {<NEW...
int len = value.length();
244,018
protected SentryPartInstanceEntity createSentryPartInstanceEntity(EntityWithSentryPartInstances entityWithSentryPartInstances, Sentry sentry, SentryOnPart sentryOnPart, SentryIfPart sentryIfPart) {<NEW_LINE>SentryPartInstanceEntityManager sentryPartInstanceEntityManager = CommandContextUtil.getSentryPartInstanceEntityM...
) entityWithSentryPartInstances).getId());
3,201
private TimeLockServices createNewClient(String namespace, boolean ignoreDisabled) {<NEW_LINE>Preconditions.checkArgument(IS_VALID_NAME.test(namespace), "Invalid namespace", SafeArg<MASK><NEW_LINE>Preconditions.checkArgument(!namespace.equals(PaxosTimeLockConstants.LEADER_ELECTION_NAMESPACE), "The client name is reserv...
.of("namespace", namespace));
1,536,222
/*<NEW_LINE>* this http interface is used to return configuration information requested by other fe.<NEW_LINE>*/<NEW_LINE>@RequestMapping(path = "/config", method = RequestMethod.GET)<NEW_LINE>public Object config(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>executeCheckPassword(request, respons...
> results = Lists.newArrayList();
682,531
public static <P extends ImmutableFollowParameters> void initParser(ConstructingObjectParser<P, ?> parser) {<NEW_LINE>parser.declareInt(ConstructingObjectParser.optionalConstructorArg(), FollowParameters.MAX_READ_REQUEST_OPERATION_COUNT);<NEW_LINE>parser.declareInt(ConstructingObjectParser.optionalConstructorArg(), Fol...
MAX_RETRY_DELAY, ObjectParser.ValueType.STRING);
1,292,987
public static BArray slice(BArray arr, long startIndex, long endIndex) {<NEW_LINE>int size = arr.size();<NEW_LINE>if (startIndex < 0) {<NEW_LINE>throw BLangExceptionHelper.getRuntimeException(RuntimeErrors.ARRAY_INDEX_OUT_OF_RANGE, startIndex, size);<NEW_LINE>}<NEW_LINE>if (endIndex > size) {<NEW_LINE>throw BLangExcept...
, arr.getRefValue(i));
374,633
private static void annotateBytecode(InputStream is, OutputStream os, MethodParamAnnotations nonnullParams, MethodReturnAnnotations nullableReturns, String nullableDesc, String nonnullDesc) throws IOException {<NEW_LINE>ClassReader cr = new ClassReader(is);<NEW_LINE>ClassWriter cw = new ClassWriter(0);<NEW_LINE>ClassNo...
+ method.name + method.desc;
1,599,149
private Hover summaryHover(CpuTrack.Data data, Fonts.TextMeasurer m, double x, int mods) {<NEW_LINE>long time = state.pxToTime(x);<NEW_LINE>int bucket = (int) ((time - data.request.range.start) / data.bucketSize);<NEW_LINE>if (bucket < 0 || bucket >= data.utilizations.length) {<NEW_LINE>return Hover.NONE;<NEW_LINE>}<NE...
getThreadInfo(s.utid)));
1,202,929
private void printReceiptLabels(final InOutGenerateResult result) {<NEW_LINE>final IInOutDAO inOutDAO = <MASK><NEW_LINE>final IHUAssignmentDAO huAssignmentDAO = Services.get(IHUAssignmentDAO.class);<NEW_LINE>final Set<Integer> seenHUIds = new HashSet<>();<NEW_LINE>final List<I_M_InOut> inouts = createList(result.getInO...
Services.get(IInOutDAO.class);
1,561,764
int injectFile(AnActionEvent event) {<NEW_LINE>try {<NEW_LINE>if (!new File(bundlePath).exists())<NEW_LINE>return alert("Please download InjectionIII from the Mac App Store.");<NEW_LINE>if (clientOutput == null)<NEW_LINE>return alert("Application not running/connected.");<NEW_LINE>Project project = event.getData(Platfo...
Connected.ordinal(), projectPath);
508,075
public void update(long time) {<NEW_LINE>if (isMergeable() && isPickable() && (mergeDelay == null || !Cooldown.hasCooldown(time, lastMergeCheck, mergeDelay))) {<NEW_LINE>this.lastMergeCheck = time;<NEW_LINE>this.instance.getEntityTracker().nearbyEntities(position, mergeRange, EntityTracker.Target.ITEMS, itemEntity -> {...
stackingRule.apply(itemStack, totalAmount);
1,711,551
public DateTimeParseResult parse(ExtractResult er, LocalDateTime reference) {<NEW_LINE>LocalDateTime referenceDate = reference;<NEW_LINE>Object value = null;<NEW_LINE>if (er.getType().equals(getParserName())) {<NEW_LINE>DateTimeResolutionResult innerResult = this.mergeDateAndTime(er.getText(), referenceDate);<NEW_LINE>...
er.getText(), referenceDate);
56,169
public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) throws NotificationFailedException {<NEW_LINE>String httpUrl = StringUtils.<MASK><NEW_LINE>if (httpUrl == null) {<NEW_LINE>LOGGER.warn("URL needs to be set before sending notifications to HTTP");<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
trimToNull(subscription.getTarget());
252,735
private List<Wo> list(Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>for (String str : wi.getUnitList()) {<NEW_LINE>Unit o = business.<MASK><NEW_...
unit().pick(str);
1,008,162
public void execute(Transaction transaction) throws UserException, BimserverLockConflictException, BimserverDatabaseException, IOException, QueryException {<NEW_LINE>PackageMetaData packageMetaData = transaction.getDatabaseSession().getMetaDataManager().getPackageMetaData(transaction.getProject().getSchema());<NEW_LINE...
getDatabaseSession().getEClassForOid(referenceOid);
953,036
public static PrivateTransaction readFrom(final RLPInput input) throws RLPException {<NEW_LINE>input.enterList();<NEW_LINE>final Builder builder = builder().nonce(input.readLongScalar()).gasPrice(Wei.of(input.readUInt256Scalar())).gasLimit(input.readLongScalar()).to(input.readBytes(v -> v.size() == 0 ? null : Address.w...
.readUInt256Scalar().toUnsignedBigInteger();
1,426,099
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " PutItems <datasetArn, item1Id, item1PropertyName, item1PropertyValue,\n" + " item2Id, item2PropertyName, item2PropertyValue>\n\n" + "Where:\n" + " datasetArn - The ARN (Amazon Resource Name) for the item's destinat...
+ " item1propertyValue - The metadata value for the first item.\n" + " item2Id - The identification number of the second item.\n" + " item2propertyName - The metadata field name (in camel case) for the second item.\n" + " item2propertyValue - The metadata value for the second item.\n\n";
734,127
public void process() throws BimserverDatabaseException, UserException, ServerException {<NEW_LINE>DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY);<NEW_LINE>try {<NEW_LINE>Project project = session.get(StorePackage.eINSTANCE.getProject(), poid, OldQuery.getDefault());<NEW_L...
roid, Trigger.NEW_EXTENDED_DATA, service);
241,945
public static boolean enablePlugin(@Nullable Activity activity, @NonNull OsmandApplication app, @NonNull OsmandPlugin plugin, boolean enable) {<NEW_LINE>if (enable) {<NEW_LINE>if (!plugin.init(app, activity)) {<NEW_LINE>plugin.setEnabled(false);<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>plugin.setEnabled(true);...
DashFragmentData fragmentData = plugin.getCardFragment();
865,517
public static DescribeLoadBalancersResponse unmarshall(DescribeLoadBalancersResponse describeLoadBalancersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLoadBalancersResponse.setRequestId(_ctx.stringValue("DescribeLoadBalancersResponse.RequestId"));<NEW_LINE>describeLoadBalancersResponse.setPageNumber(_ctx.inte...
("DescribeLoadBalancersResponse.LoadBalancers[" + i + "].VSwitchId"));
1,315,428
public List<Double> evaluate(List<Object> timeSeriesObj, int dayWindow) {<NEW_LINE>List<Double> timeSeries = this.parseDoubleList(timeSeriesObj);<NEW_LINE>List<Double> mvnAvgTimeSeries = new ArrayList<Double<MASK><NEW_LINE>double mvnTotal = 0.0;<NEW_LINE>for (int i = 0; i < timeSeries.size(); ++i) {<NEW_LINE>// // Do w...
>(timeSeries.size());
790,657
void sendTokenProperties(MTWebSocket mtws, String inResponseTo, JsonObject data) {<NEW_LINE>String tokenId = data.get("tokenId").getAsString();<NEW_LINE>Token token = findTokenFromId(tokenId);<NEW_LINE>if (token == null) {<NEW_LINE>System.out.println("DEBUG: sendTokenInfo(): Unable to find token " + tokenId);<NEW_LINE>...
jprop.addProperty("value", val);
1,277,457
public static Properties replaceUseBlackUIProperty(@NonNull Properties properties) {<NEW_LINE>String useBlackUIStringValue = properties.getProperty(TermuxPropertyConstants.KEY_USE_BLACK_UI);<NEW_LINE>if (useBlackUIStringValue == null)<NEW_LINE>return properties;<NEW_LINE>Logger.logWarn(LOG_TAG, "Removing deprecated pro...
useBlackUI = SharedProperties.getBooleanValueForStringValue(useBlackUIStringValue);
178,062
public AddLFTagsToResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AddLFTagsToResourceResult addLFTagsToResourceResult = new AddLFTagsToResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
1,428,892
public void customize(MavenBuild mavenBuild) {<NEW_LINE>Version platformVersion = this.description.getPlatformVersion();<NEW_LINE>String sccPluginVersion = this.projectsVersionResolver.resolveVersion(platformVersion, "org.springframework.cloud:spring-cloud-contract-verifier");<NEW_LINE>if (sccPluginVersion == null) {<N...
.scope(DependencyScope.TEST_COMPILE));
1,490,830
public List<InetRecord> selectTrafficRoutersLocalized(final Geolocation clientGeolocation, final String zoneName, final DeliveryService ds, final Track track, final int queryType) throws GeolocationException {<NEW_LINE>final List<InetRecord> trafficRouterRecords = new ArrayList<>();<NEW_LINE>if (!isEdgeDNSRouting() && ...
).getEdgeTrafficRouterLocations(), clientGeolocation);
223,551
private void strip(@Nonnull final Document document) {<NEW_LINE>if (!document.isWritable())<NEW_LINE>return;<NEW_LINE>FileDocumentManager fileDocumentManager = FileDocumentManager.getInstance();<NEW_LINE>VirtualFile file = fileDocumentManager.getFile(document);<NEW_LINE>if (file == null || !file.isValid() || Boolean.TR...
? overrideStripTrailingSpacesData : settings.getStripTrailingSpaces();
1,506,069
public void addRange(int n, float[] x, float[] y1, float[] y2, Color c) {<NEW_LINE>if (xPoints.length <= n) {<NEW_LINE>float[][] yp = new float[n + 2][];<NEW_LINE>float[][] xp = new float[n + 2][];<NEW_LINE>Color[] ncol <MASK><NEW_LINE>int[] m = new int[n + 2];<NEW_LINE>for (int i = 0; i < xPoints.length; i++) {<NEW_LI...
= new Color[n + 2];
880,568
public Boolean hasUserPermissionToObject(final User user, final PermissionName permissionName, final SecurableModel securableModel) {<NEW_LINE>if (user == null) {<NEW_LINE>throw new IllegalArgumentException("User can not be null.");<NEW_LINE>}<NEW_LINE>if (permissionName == null) {<NEW_LINE>throw new IllegalArgumentExc...
), securableModel.getId());
1,716,856
private void notEqualToValue(Node mLiteral, Node otherNode, AnnotationMirror otherAnno, CFStore store) {<NEW_LINE>Long integerLiteral = ValueCheckerUtils.getExactValue(mLiteral.getTree(), aTypeFactory.getValueAnnotatedTypeFactory());<NEW_LINE>if (integerLiteral == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long intLi...
Node> internals = splitAssignments(otherNode);
679,337
public static ListUsersOfRoleResponse unmarshall(ListUsersOfRoleResponse listUsersOfRoleResponse, UnmarshallerContext context) {<NEW_LINE>listUsersOfRoleResponse.setRequestId<MASK><NEW_LINE>listUsersOfRoleResponse.setSuccess(context.booleanValue("ListUsersOfRoleResponse.Success"));<NEW_LINE>listUsersOfRoleResponse.setC...
(context.stringValue("ListUsersOfRoleResponse.RequestId"));
101,317
final BatchGetCustomDataIdentifiersResult executeBatchGetCustomDataIdentifiers(BatchGetCustomDataIdentifiersRequest batchGetCustomDataIdentifiersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetCustomDataIdentifiersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
invoke(request, responseHandler, executionContext);
537,718
private PropertyNode createDefaultClassConstructor(int classLineNumber, long classToken, long lastToken, IdentNode className, boolean subclass) {<NEW_LINE>final int ctorFinish = finish;<NEW_LINE>final List<Statement> statements;<NEW_LINE>final List<IdentNode> parameters;<NEW_LINE>final long identToken = Token.recast(cl...
getName()).setIsDirectSuper();
1,751,796
private void layout() {<NEW_LINE>assert !isLayouted() : "Already layouted";<NEW_LINE>final int wordSize = ConfigurationValues.getTarget().wordSize;<NEW_LINE>int offset = 0;<NEW_LINE>for (Entry<CGlobalDataImpl<?>, CGlobalDataInfo> entry : map.entrySet()) {<NEW_LINE>CGlobalDataImpl<?> data = entry.getKey();<NEW_LINE>CGlo...
info.assign(offset, bytes);
403,969
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN_PING, (String) msg);<NEW_LINE>if (parser.matches()) {<NEW_LINE>if (channel != null) {<NEW_LINE>channel.writeAndFlush(new // keep-alive response<NEW_LINE>NetworkMessage(// keep...
setTime(parser.nextDateTime());
472,991
public void paginatingChannels() {<NEW_LINE>// Get the first 10 channels<NEW_LINE>FilterObject filter = Filters.in("members", "thierry");<NEW_LINE>int offset = 0;<NEW_LINE>int limit = 10;<NEW_LINE>QuerySort<Channel> sort = new QuerySort<>();<NEW_LINE>int messageLimit = 0;<NEW_LINE>int memberLimit = 0;<NEW_LINE>QueryCha...
limit, sort, messageLimit, memberLimit);
1,012,823
public void bind(Name name, Object obj) throws NamingException {<NEW_LINE>if (__root.isLocked())<NEW_LINE>throw new NamingException("This context is immutable");<NEW_LINE>Name cname = __root.toCanonicalName(name);<NEW_LINE>if (cname == null)<NEW_LINE>throw new NamingException("Name is null");<NEW_LINE>if (cname.size() ...
, cname.get(0));
1,671,589
// for test<NEW_LINE>SpanBo newSpanBo(TSpan tSpan) {<NEW_LINE><MASK><NEW_LINE>spanBo.setAgentId(tSpan.getAgentId());<NEW_LINE>spanBo.setApplicationId(tSpan.getApplicationName());<NEW_LINE>spanBo.setAgentStartTime(tSpan.getAgentStartTime());<NEW_LINE>final TransactionId transactionId = newTransactionId(tSpan.getTransact...
final SpanBo spanBo = new SpanBo();
229,748
private boolean isObjectLocal(Value localOrRef, SootMethod sm, boolean includePrimitiveDataFlowIfAvailable) {<NEW_LINE>if (localOrRef instanceof StaticFieldRef) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (dfa.printDebug()) {<NEW_LINE>logger.debug(" CLOA testing if " + localOrRef + " is local in " + sm);<NEW_L...
getFieldRef().resolve());
341,448
public JSONObject buildOptions4InternalAddon(String appId, String addonId) {<NEW_LINE>log.<MASK><NEW_LINE>if (INTERNAL_ADDON_DEVELOPMENT_META.equals(addonId)) {<NEW_LINE>return new JSONObject();<NEW_LINE>}<NEW_LINE>if (INTERNAL_ADDON_APP_META.equals(addonId)) {<NEW_LINE>return new JSONObject();<NEW_LINE>}<NEW_LINE>AppA...
info("action=packService|buildOptions4InternalAddon|enter|appId={}|addonId={}|", appId, addonId);
1,674,253
final CreateResponseHeadersPolicyResult executeCreateResponseHeadersPolicy(CreateResponseHeadersPolicyRequest createResponseHeadersPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createResponseHeadersPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
373,999
private void callClassModuleBuilder(String name, boolean is_singleton) {<NEW_LINE>MethodGenerator mg = cg_.getMethodGenerator();<NEW_LINE>int i = mg.newLocal(Types.RUBY_VALUE_TYPE);<NEW_LINE>mg.storeLocal(i);<NEW_LINE>String uniqueName = NameFactory.createClassnameForClassModuleBuilder(extra_, script_name_, name);<NEW_...
invokeConstructor(builder, CgUtil.CONSTRUCTOR);
857,043
private Element createXSDEnumeration(final String name, final int AD_Reference_ID) {<NEW_LINE>Check.assume(toJavaName(name).equals(name), "'name' param '" + name + "' equals '" + toJavaName(name) + "'");<NEW_LINE>final List<ADRefListItem> listValues = new ArrayList<>(adReferenceDAO.retrieveListItems(AD_Reference_ID));<...
String value = listValue.getValue();
1,022,685
public static DescribeDcdnsecServiceResponse unmarshall(DescribeDcdnsecServiceResponse describeDcdnsecServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnsecServiceResponse.setRequestId(_ctx.stringValue("DescribeDcdnsecServiceResponse.RequestId"));<NEW_LINE>describeDcdnsecServiceResponse.setInstanceId(_ct...
(_ctx.stringValue("DescribeDcdnsecServiceResponse.DomainNum"));
216,938
public static void insertTask(TaskEntity taskEntity, ExecutionEntity execution, boolean fireCreateEvent, boolean addEntityLinks) {<NEW_LINE>// Inherit tenant id (if applicable)<NEW_LINE>if (execution != null && execution.getTenantId() != null) {<NEW_LINE>taskEntity.setTenantId(execution.getTenantId());<NEW_LINE>}<NEW_L...
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
476,629
public DruidFilter deserialize(JsonParser jp, DeserializationContext context) throws IOException {<NEW_LINE>ObjectMapper mapper = (ObjectMapper) jp.getCodec();<NEW_LINE>ObjectNode root = mapper.readTree(jp);<NEW_LINE>boolean filterKnowsItsType = root.has("type");<NEW_LINE>if (filterKnowsItsType) {<NEW_LINE>DruidCompare...
toString(), DruidRegexFilter.class);
1,384,598
public void start(Stage stage) {<NEW_LINE>stage.setTitle("Touch Suite");<NEW_LINE>Group root = new Group();<NEW_LINE>Scene scene = new Scene(root, WIDTH, HEIGHT);<NEW_LINE>scene.setFill(Color.BEIGE);<NEW_LINE>root.getChildren().add(launcher);<NEW_LINE>root.<MASK><NEW_LINE>register("Hello Gestures", HelloGestures.class,...
getChildren().add(info);
407,842
public ListPortalsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPortalsResult listPortalsResult = new ListPortalsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
int originalDepth = context.getCurrentDepth();
1,467,203
// See CompatibilityReport for the report format.<NEW_LINE>private void processLine(String s) {<NEW_LINE>String message = s.substring(s.indexOf(':') + 1);<NEW_LINE>if (s.startsWith("[RS-COMPAT]")) {<NEW_LINE>isRestSpecCompatible = Boolean.parseBoolean(message.trim());<NEW_LINE>} else if (s.startsWith("[MD-COMPAT]")) {<...
parseBoolean(message.trim());
1,137,697
IQueryBuilder<I_AD_User_Record_Access> query(@NonNull final RecordAccessQuery query) {<NEW_LINE>final IQueryBuilder<I_AD_User_Record_Access> queryBuilder = queryBL.createQueryBuilder(I_AD_User_Record_Access.class);<NEW_LINE>//<NEW_LINE>// Records<NEW_LINE>final ImmutableSet<TableRecordReference> recordRefs = query.getR...
addInArrayFilter(I_AD_User_Record_Access.COLUMNNAME_AD_UserGroup_ID, userGroupIds);
19,762
private void deleteNullFieldRecord(int fk) {<NEW_LINE>Column[] newColumns = columns.clone();<NEW_LINE>for (int i = 0; i < newColumns.length; i++) {<NEW_LINE>newColumns[i] = <MASK><NEW_LINE>}<NEW_LINE>int size = this.size;<NEW_LINE>int total = 0;<NEW_LINE>int count = columns.length;<NEW_LINE>Column[] columns = this.colu...
columns[i].clone();
354,240
final DeleteWorkteamResult executeDeleteWorkteam(DeleteWorkteamRequest deleteWorkteamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorkteamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteWorkt...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,438,804
private void initFromEquinoxAD() {<NEW_LINE>EquinoxAttributeDefinition delegate = (EquinoxAttributeDefinition) this.delegate;<NEW_LINE>Set<String> supportedExtensions = delegate.getExtensionUris();<NEW_LINE>if (supportedExtensions != null && supportedExtensions.contains(XMLConfigConstants.METATYPE_EXTENSION_URI)) {<NEW...
rename = extensions.get(RENAME_ATTR_NAME);
1,567,715
private Mono<Response<CheckNameAvailabilityResultInner>> checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is ...
), checkNameAvailabilityRequest, accept, context);
614,460
// / Extract unsatisfiable core example with AssertAndTrack<NEW_LINE>public void unsatCoreAndProofExample2(Context ctx) {<NEW_LINE>System.out.println("UnsatCoreAndProofExample2");<NEW_LINE>Log.append("UnsatCoreAndProofExample2");<NEW_LINE>Solver solver = ctx.mkSolver();<NEW_LINE>BoolExpr pa = ctx.mkBoolConst("PredA");<...
solver.assertAndTrack(f2, p2);
22,451
public void init(Map<String, Object> params) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>BackgroundTask<T, V> task = (BackgroundTask<T, V>) params.get("task");<NEW_LINE>String title = (<MASK><NEW_LINE>if (title != null) {<NEW_LINE>setCaption(title);<NEW_LINE>}<NEW_LINE>String message = (String) params.get("messa...
String) params.get("title");
73,525
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>output.writeMessage(1, getHandle());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) != 0)) {<NEW_LINE>output.writeFloat(4, networkCost_);<NEW_LINE>}<NEW_LINE>if ((...
writeMessage(16, getContext());
839,751
protected Object visitLambdaExpression(LambdaExpression node, Object context) {<NEW_LINE>if (optimize) {<NEW_LINE>// TODO: enable optimization related to lambda expression<NEW_LINE>// A mechanism to convert function type back into lambda expression need to exist to enable optimization<NEW_LINE>return node;<NEW_LINE>}<N...
<Expression>of(node));
694,443
public void process() {<NEW_LINE>try {<NEW_LINE>final InputStream istream = this.getClass().getResourceAsStream("/iris.csv");<NEW_LINE>if (istream == null) {<NEW_LINE>System.out.println("Cannot access data set, make sure the resources are available.");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final DataSet ds = Dat...
species = ds.encodeEquilateral(4);