idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,821,232
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int childrenTextTotalHeight = calcTotalTextChildrenHeight(widthMeasureSpec, heightMeasureSpec);<NEW_LINE>final int defHeight = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec);<NEW_LINE>MarginLayoutParams imgParams = (MarginL...
- imgParams.bottomMargin - imgParams.topMargin;
511,067
private Response initiateMultipartUpload(final FileSystem fs, final String bucket, final String object) {<NEW_LINE>return S3RestUtils.call(bucket, () -> {<NEW_LINE>String bucketPath = S3RestUtils.parsePath(AlluxioURI.SEPARATOR + bucket);<NEW_LINE>S3RestUtils.checkPathIsAlluxioDirectory(fs, bucketPath);<NEW_LINE>String ...
, Long.toString(uploadId));
1,231,866
final RejectCertificateTransferResult executeRejectCertificateTransfer(RejectCertificateTransferRequest rejectCertificateTransferRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectCertificateTransferRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,053,721
public ExternallyReferencedCandidate createInvoiceCandidate(@NonNull final NewManualInvoiceCandidate newIC) {<NEW_LINE>final ExternallyReferencedCandidateBuilder candidate = ExternallyReferencedCandidate.createBuilder(newIC);<NEW_LINE>final ICountryDAO countryDAO = Services.get(ICountryDAO.class);<NEW_LINE>final BPartn...
priceListVersionId(pricingResult.getPriceListVersionId());
856,610
public Msg makeMsg(InsteonDevice d) {<NEW_LINE>Msg m = null;<NEW_LINE>int cmd1 = getIntParameter("cmd1", 0);<NEW_LINE>int cmd2 = getIntParameter("cmd2", 0);<NEW_LINE>int ext = getIntParameter("ext", -1);<NEW_LINE>try {<NEW_LINE>if (ext == 1 || ext == 2) {<NEW_LINE>int d1 = getIntParameter("d1", 0);<NEW_LINE>int d2 = ge...
) cmd1, (byte) cmd2);
1,579,918
public void exportDiagram(EntityDiagram diagram, IFigure diagramFigure, DiagramPart diagramPart, File targetFile) throws DBException {<NEW_LINE>checkWriterRegister();<NEW_LINE>try {<NEW_LINE>IFigure figure = diagramPart.getFigure();<NEW_LINE>Rectangle contentBounds = figure instanceof FreeformLayeredPane ? ((FreeformLa...
, contentBounds.y * -1);
589,895
public void visit(WasmConditional expression) {<NEW_LINE>expression.getCondition().acceptVisitor(this);<NEW_LINE>writer.writeByte(0x04);<NEW_LINE><MASK><NEW_LINE>++depth;<NEW_LINE>blockDepths.put(expression.getThenBlock(), depth);<NEW_LINE>for (WasmExpression part : expression.getThenBlock().getBody()) {<NEW_LINE>part....
writeBlockType(expression.getType());
909,578
public <K> MapKeyResult<URI, K> mapKeysV2(URI serviceUri, Iterable<K> keys) throws ServiceUnavailableException {<NEW_LINE>// distribute keys to rings for partitions<NEW_LINE>// Note that we assume the keys are partitioning keys<NEW_LINE>MapKeyResult<Ring<URI>, K> keyToPartitionResult = _ringProvider.getRings(serviceUri...
result.put(uri, collection);
1,209,227
public void printState(PrintStream out) {<NEW_LINE>out.println("#doc source pos typeindex type topic");<NEW_LINE>out.print("#alpha : ");<NEW_LINE>for (int topic = 0; topic < numTopics; topic++) {<NEW_LINE>out.print(alpha[topic] + " ");<NEW_LINE>}<NEW_LINE>out.println();<NEW_LINE>out.println("#beta : " + beta);<NEW_LINE...
doc).instance.getData();
1,660,806
private TransferPoint mapTransferPoint(org.onebusaway.gtfs.model.Stop rhsStopOrStation, org.onebusaway.gtfs.model.Route rhsRoute, Trip trip, boolean boardTrip) {<NEW_LINE>Route route = routeMapper.map(rhsRoute);<NEW_LINE>Station station = null;<NEW_LINE>Stop stop = null;<NEW_LINE>// A transfer is specified using Stops ...
: new TripTransferPoint(trip, stopPositionInPattern);
1,622,769
public final void treeParserSpec(String doc) throws RecognitionException, TokenStreamException {<NEW_LINE>Token a = null;<NEW_LINE>Token idTok;<NEW_LINE>String sup = null;<NEW_LINE>match(LITERAL_class);<NEW_LINE>idTok = id();<NEW_LINE>match(LITERAL_extends);<NEW_LINE>match(LITERAL_TreeParser);<NEW_LINE>{<NEW_LINE>switc...
(1), getFilename());
1,419,961
private void ajaxFetchTrigger(final int projectId, final String flowId, final Session session, final HashMap<String, Object> ret) {<NEW_LINE>final ScheduledFlowTrigger res = this.scheduler.getScheduledFlowTriggerJobs().stream().filter(scheduledFlowTrigger -> scheduledFlowTrigger.getFlowId().equals(flowId) && scheduledF...
"dependencies", res.getDependencyListJson());
1,430,206
public static void jerseyServletCallInitialized(CtClass ctClass, ClassPool classPool) throws NotFoundException, CannotCompileException {<NEW_LINE>CtMethod init = ctClass.getDeclaredMethod("init", new CtClass[] { classPool.get("org.glassfish.jersey.servlet.WebConfig") });<NEW_LINE>init.insertBefore(PluginManagerInvoker....
"this", "java.lang.Object", "getConfiguration()", "java.lang.Object");
1,131,832
public ExecuteStatementResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExecuteStatementResult executeStatementResult = new ExecuteStatementResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
().unmarshall(context));
1,486,311
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>Item item = wrapper.passthrough(Type.FLAT_VAR_INT_ITEM);<NEW_LINE>protocol.<MASK><NEW_LINE>if (item == null)<NEW_LINE>return;<NEW_LINE>CompoundTag tag = item.tag();<NEW_LINE>if (tag == null)<NEW_LINE>return;<NEW_LINE>Tag pages = tag.get("pages");<NEW...
getItemRewriter().handleItemToServer(item);
1,265,819
final WriteRecordsResult executeWriteRecords(WriteRecordsRequest writeRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(writeRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
860,481
public static void registerHotKeys(final JFrame parent, final CGraphPanel panel, final IFrontEndDebuggerProvider debuggerProvider, final CGraphSearchField searchField, final CGotoAddressField addressField) {<NEW_LINE>Preconditions.checkNotNull(parent, "IE01606: Parent argument can not be null");<NEW_LINE>Preconditions....
GRAPH_GOTO_ADDRESS_FIELD_KEY.getKeyStroke(), "GOTO_ADDRESS_FIELD");
158,904
public void registerPeerConnection(NetworkConnectionBase connection, boolean upload) {<NEW_LINE>if (connection.isClosed()) {<NEW_LINE>Debug.out("Connection is closed");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>connections_mon.enter();<NEW_LINE>LimitedRateGroup[] groups = connection.getRateLim...
final ConnectionData conn_data = new ConnectionData();
1,260,516
public void actionPerformed(ActionEvent e) {<NEW_LINE>RP.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (node instanceof TestsuiteNode) {<NEW_LINE>UIJavaUtils.openTestsuite((TestsuiteNode) node, projectType, testingFramework);<NEW_LINE>} else if (node instanceof CallstackFra...
node, "", projectType, testingFramework);
473,921
public void run(RegressionEnvironment env) {<NEW_LINE>SupportGraphSource.getAndResetLifecycle();<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlow MyLineFeedSource -> outstream {} SupportOperator(outstream) {propOne:'abc'}");<NEW_LINE>assertEquals(0, SupportOperator.getAndResetLifecycle().size());<NE...
("flow"), "MyDataFlow", options);
909,658
private boolean fillUnknownWithStaticImages(AddressSet unknown) {<NEW_LINE>boolean result = false;<NEW_LINE>// TODO: Expand to block? DON'T OVERWRITE KNOWN!<NEW_LINE>DebuggerStaticMappingService mappingService = tool.getService(DebuggerStaticMappingService.class);<NEW_LINE>byte[] data = new byte[4096];<NEW_LINE>for (En...
.getMinAddress().getOffset();
1,558,776
public void onEvent(MappingChangedEvent event) {<NEW_LINE>Set<String> apps = event.getApps();<NEW_LINE>if (CollectionUtils.isEmpty(apps)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String serviceName : apps) {<NEW_LINE>ServiceInstancesChangedListener serviceInstancesChangedListener = serviceListeners.get(serviceName);...
serviceListeners.put(serviceName, serviceInstancesChangedListener);
1,523,098
void recordResults(int numMeasurements, HttpResponse res) {<NEW_LINE>if (res.status() == 200) {<NEW_LINE>measurementsSent.increment(numMeasurements);<NEW_LINE>} else if (res.status() < 500) {<NEW_LINE>// For validation:<NEW_LINE>// 202 - partial failure<NEW_LINE>// 400 - all failed, could also be some other sort of fai...
numMeasurements - vres.getErrorCount());
753,804
private JavaScriptNode desugarForInOrOfBody(ForNode forNode, JavaScriptNode iterator, JumpTargetCloseable<ContinueTarget> jumpTarget) {<NEW_LINE>assert forNode.isForInOrOf();<NEW_LINE>VarRef iteratorVar = environment.createTempVar();<NEW_LINE>JavaScriptNode iteratorInit = iteratorVar.createWriteNode(iterator);<NEW_LINE...
factory.createTryFinally(wrappedWhile, resetIterator);
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...
query.setParameter("serverId", id);
1,167,391
public CodegenExpression makeNoCopy(CodegenMethodScope scope, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = scope.makeChild(EventBeanUpdateHelperNoCopy.EPTYPE, this.getClass(), classScope);<NEW_LINE>CodegenMethod updateInternal = makeUpdateInternal(method, classScope);<NEW_LINE>CodegenExpressionNewAno...
addParam(ExprEvaluatorContext.EPTYPE, NAME_EXPREVALCONTEXT);
204,266
public EueWriteFeature.Chunk call() throws BackgroundException {<NEW_LINE>overall.validate();<NEW_LINE>final Map<String, String> parameters = new HashMap<>();<NEW_LINE>parameters.<MASK><NEW_LINE>final TransferStatus status = new TransferStatus().segment(true).withOffset(offset).withLength(length).withParameters(paramet...
put(EueWriteFeature.RESOURCE_ID, resourceId);
1,712,510
public static boolean registryValueExists(HKEY root, String key, String value, int samDesiredExtra) {<NEW_LINE>HKEYByReference phkKey = new HKEYByReference();<NEW_LINE>int rc = Advapi32.INSTANCE.RegOpenKeyEx(root, key, 0, <MASK><NEW_LINE>switch(rc) {<NEW_LINE>case W32Errors.ERROR_SUCCESS:<NEW_LINE>break;<NEW_LINE>case ...
WinNT.KEY_READ | samDesiredExtra, phkKey);
1,608,876
public static ListFlowJobResponse unmarshall(ListFlowJobResponse listFlowJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowJobResponse.setRequestId(_ctx.stringValue("ListFlowJobResponse.RequestId"));<NEW_LINE>listFlowJobResponse.setPageNumber(_ctx.integerValue("ListFlowJobResponse.PageNumber"));<NEW_LINE>listFl...
(_ctx.integerValue("ListFlowJobResponse.Total"));
23,640
public List<ServiceBindingRequirementBuildItem> createServiceBindingDecorators(ApplicationInfoBuildItem applicationInfo, KubernetesServiceBindingConfig config, List<ServiceBindingQualifierBuildItem> qualifiers) {<NEW_LINE>Map<String, ServiceBindingRequirementBuildItem> requirements = new HashMap<>();<NEW_LINE>String ap...
createRequirementFromQualifier(applicationName, config, q);
346,327
public void write(final ChannelHandlerContext context, final Object message, final ChannelPromise writePromise) {<NEW_LINE>if (message instanceof AcceptNotificationResponse) {<NEW_LINE>final AcceptNotificationResponse acceptNotificationResponse = (AcceptNotificationResponse) message;<NEW_LINE>final Http2Headers headers...
), rejectNotificationResponse.getErrorReason());
932,652
public void run() {<NEW_LINE>if (null == socket)<NEW_LINE>return;<NEW_LINE>DataInputStream input = null;<NEW_LINE>DataOutputStream output = null;<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Client connected from " + socket.getRemoteSocketAddress());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>input = new DataInputStream(...
StringReader reader = new StringReader(tmp);
984,319
protected CommonAppListFilterViewModel.ListModelLoader onCreateListModelLoader() {<NEW_LINE>AppListItemDescriptionComposer composer = new AppListItemDescriptionComposer(thisActivity());<NEW_LINE>return index -> {<NEW_LINE>if (packageSet == null || packageSet.getPackageCount() == 0) {<NEW_LINE>return Lists.newArrayList(...
appInfo = pm.getAppInfo(pkg);
1,605,764
public void marshall(ConnectorSummary connectorSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (connectorSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(connectorSummary.getCapacity(), CAPA...
connectorSummary.getWorkerConfiguration(), WORKERCONFIGURATION_BINDING);
1,793,399
private void drawCon2(Graphics g, int x, int y) {<NEW_LINE>g.drawLine(x + 130, y + AbstractTtlGate.PIN_HEIGHT, x + 130, y + 33);<NEW_LINE>g.drawLine(x + 117, y + 33, x + 130, y + 33);<NEW_LINE>g.drawLine(x + 110, y + AbstractTtlGate.PIN_HEIGHT, x + 110, y + 10);<NEW_LINE>g.drawLine(x + 110, y + 10, x + 120, y + 10);<NE...
x + 105, y + 10);
809,854
protected Size2D arrangeRR(Graphics2D g2, Range widthRange, Range heightRange) {<NEW_LINE>RectangleEdge position = getPosition();<NEW_LINE>if (position == RectangleEdge.TOP || position == RectangleEdge.BOTTOM) {<NEW_LINE>float maxWidth = (float) widthRange.getUpperBound();<NEW_LINE>g2.setFont(this.font);<NEW_LINE>this....
this.content.calculateDimensions(g2);
1,748,394
public static ClientMessage encodeRequest(java.lang.String name, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value, long threadId) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.set...
DataCodec.encode(clientMessage, key);
766,281
public synchronized void moveCursor(Entry newEntry) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "moveCursor", new Object[] { newEntry });<NEW_LINE>checkEntryParent();<NEW_LINE>// if the entry is the same as the current one<NEW_LINE>// then we don't need to bother doing anything<NEW_LINE>if (newEntry !=...
exit(tc, "moveCursor", e);
1,756,155
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException {<NEW_LINE>stream.defaultReadObject();<NEW_LINE>int dataSize = stream.readInt();<NEW_LINE>m_data = new ArrayList<Data>(dataSize);<NEW_LINE>for (int i = 0, n = dataSize; i < n; ++i) {<NEW_LINE>int b = stream.readByte();<...
x1, y1, x2, y2);
1,641,617
final CreateRegexMatchSetResult executeCreateRegexMatchSet(CreateRegexMatchSetRequest createRegexMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRegexMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(createRegexMatchSetRequest));
1,851,704
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>@SuppressLint("InflateParams")<NEW_LINE>View view = LayoutInflater.from(getContext()).inflate(R.layout.preference_dialog_now_playing_screen, null);<NEW_LINE>ViewPager viewPager = view.findViewById(R.id.now_playing_screen_view_pager);<NEW_LINE>viewPager....
new NowPlayingScreenAdapter(getContext()));
214,893
public static CameraPinholeBrown loadOpenCV(Reader reader) {<NEW_LINE>CameraPinholeBrown out = new CameraPinholeBrown();<NEW_LINE>try {<NEW_LINE>String filtered = IOUtils.toString(reader);<NEW_LINE>// It doesn't like the header or that class def<NEW_LINE>filtered = filtered.replace("%YAML:1.0", "");<NEW_LINE>filtered =...
, distortion.get(4));
1,472,800
public void run() {<NEW_LINE>Configure config = null;<NEW_LINE>TraceContext traceContext = null;<NEW_LINE>long elapsedTime = 0L;<NEW_LINE>try {<NEW_LINE>config = Configure.getInstance();<NEW_LINE>config.scouter_stop = true;<NEW_LINE>traceContext = TraceContext.getInstance();<NEW_LINE>traceContext.endTime = System.curre...
String result = traceContext.toString();
1,741,806
public OriginRequestPolicyCookiesConfig unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>OriginRequestPolicyCookiesConfig originRequestPolicyCookiesConfig = new OriginRequestPolicyCookiesConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1...
().unmarshall(context));
341,204
Map<String, Object> mapFieldsFromJson(final String json) throws JsonProcessingException, DotDataException, DotSecurityException {<NEW_LINE>final Contentlet immutableContentlet = immutableFromJson(json);<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>final String inode = immutableContentlet.inode();<...
String identifier = immutableContentlet.identifier();
43,228
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {<NEW_LINE>if (evt instanceof HandshakeComplete) {<NEW_LINE>HandshakeComplete hc = (HandshakeComplete) evt;<NEW_LINE>String ruri = determineWsFrameHandler(hc.requestUri());<NEW_LINE>if (ruri.isBlank()) {<NEW_LINE>JSONStringer jsonObj...
).toString() + "]");
1,752,694
private Precedence visitBinOp(Concrete.Expression left, Concrete.ReferenceExpression infix, List<Concrete.Argument> implicitArgs, Concrete.Expression right, Precedence prec, StringBuilder builder) {<NEW_LINE>Precedence infixPrec = ((GlobalReferable) infix.getReferent()).getRepresentablePrecedence();<NEW_LINE>boolean ne...
right.accept(ppVisitor, rightPrec);
47,253
public static Rule createAndAddRepositoryRule(Package.Builder pkg, RuleClass ruleClass, RuleClass bindRuleClass, Map<String, Object> kwargs, StarlarkSemantics semantics, ImmutableList<StarlarkThread.CallStackEntry> callstack) throws RuleFactory.InvalidRuleException, Package.NameConflictException, LabelSyntaxException, ...
), ImmutableMap.of());
981,968
private static void pointAddVar(boolean negate, PointExt p, PointAccum r) {<NEW_LINE>int[] a = F.create();<NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE>int[] e = r.u;<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = r.v;<NEW_LINE>i...
mul(c, C_d2, c);
1,480,561
public void change(final Event e, @Nullable final Object[] delta, final ChangeMode mode) {<NEW_LINE>assert delta != null;<NEW_LINE>final int i = ((Number) delta[0]).intValue();<NEW_LINE>final ItemType it = getExpr().getSingle(e);<NEW_LINE>if (it == null)<NEW_LINE>return;<NEW_LINE>final ItemStack is = it.getRandom();<NE...
Material) getMaterialMethod.invoke(type);
683,228
private void extractAndPutDataTo(ExtensionTabData.Builder extensionTab, ExtensionDescription description, ResultSet set) throws SQLException {<NEW_LINE>boolean booleanValue = set.getBoolean(ExtensionPlayerValueTable.BOOLEAN_VALUE);<NEW_LINE>if (!set.wasNull()) {<NEW_LINE>extensionTab.putBooleanData(new ExtensionBoolean...
isPlayerName = set.getBoolean("is_player_name");
142,883
public boolean attachCluster(DataStore dataStore, ClusterScope scope) {<NEW_LINE>final PrimaryDataStoreInfo primaryDataStoreInfo = (PrimaryDataStoreInfo) dataStore;<NEW_LINE>final ClusterVO cluster = clusterDao.findById(primaryDataStoreInfo.getClusterId());<NEW_LINE>final HypervisorType hypervisorType = cluster.getHype...
host + " and " + primaryDataStoreInfo, e);
437,194
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select irstream symbol," + "median(all price) as myMedian," + "median(distinct price) as myDistMedian," + "stddev(all price) as myStdev," + "avedev(all price) as myAvedev " + "from Sup...
(epl).addListener("s0");
412,688
public void fullSync(long agentId, HashMap<String, Pair<Long, Long>> newGroupStates) {<NEW_LINE>ArrayList<Long> affectedVms = new ArrayList<Long>();<NEW_LINE>for (String vmName : newGroupStates.keySet()) {<NEW_LINE>Long vmId = newGroupStates.get(vmName).first();<NEW_LINE>Long seqno = newGroupStates.get(vmName).second()...
log = _rulesetLogDao.findByVmId(vmId);
372,906
public void initSDK(MethodCall methodCall, MethodChannel.Result result) {<NEW_LINE>int sdkAppID = methodCall.argument("sdkAppID");<NEW_LINE>int <MASK><NEW_LINE>String uiPlatform = methodCall.argument("uiPlatform");<NEW_LINE>final String listenerUuid = methodCall.argument("listenerUuid");<NEW_LINE>// Global configuratio...
logLevel = methodCall.argument("logLevel");
153,105
public void marshall(UpdateSlotRequest updateSlotRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateSlotRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateSlotRequest.getSlotId(), SL...
updateSlotRequest.getBotVersion(), BOTVERSION_BINDING);
1,741,775
public void initiate(@RequestParam(value = "sp", required = false) String sp, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>if (!hasText(sp)) {<NEW_LINE>throw new ProviderNotFoundException("Missing sp request parameter. sp parameter must be a valid and configured entity ID");<NEW_LINE>}<NEW_LINE>...
, UaaStringUtils.getCleanedUserControlString(sp));
106,428
private void writeXpp3DOM(XmlSerializer serializer, Xpp3Dom root, InputLocationTracker rootTracker) throws IOException {<NEW_LINE>StringBuffer b = b(serializer);<NEW_LINE>serializer.startTag(NAMESPACE, root.getName());<NEW_LINE>// need to flush the inner writer, flush on serializer closes tag<NEW_LINE>flush(serializer)...
start, b.length());
1,295,687
UserDetailBean makeUserDetailRequest(final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final CacheKey cacheKey = makeCacheKey(UserDetailBean.class.getSimpleName(), userIdentity.toDelimitedKey());<NEW_LINE>{<NEW_LINE>final UserDetailBean cached...
get(cacheKey, UserDetailBean.class);
1,833,139
public void testMultipleEndpointSameActSpec() throws Exception {<NEW_LINE>MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();<NEW_LINE><MASK><NEW_LINE>assertTrue((Boolean) mbs.invoke(obn, "isPaused", new Object[] { "MsgEndpointApp#MsgEndpointEJB.jar#EndpointBMTNonJMSAutoStartFalse" }, new String[] { String.cl...
ObjectName obn = new ObjectName(mbeanObjectName);
1,636,497
private static Value convertToValue(Object rawObject) {<NEW_LINE>Value.Builder valueBuilder = Value.newBuilder();<NEW_LINE>if (rawObject == null) {<NEW_LINE>valueBuilder.setNullValue(NullValue.NULL_VALUE);<NEW_LINE>} else if (rawObject instanceof Double) {<NEW_LINE>valueBuilder.setNumberValue((Double) rawObject);<NEW_L...
Builder structBuilder = Struct.newBuilder();
1,646,803
public static GetSmsConfigResponse unmarshall(GetSmsConfigResponse getSmsConfigResponse, UnmarshallerContext context) {<NEW_LINE>getSmsConfigResponse.setRequestId(context.stringValue("GetSmsConfigResponse.RequestId"));<NEW_LINE>getSmsConfigResponse.setSuccess<MASK><NEW_LINE>getSmsConfigResponse.setCode(context.stringVa...
(context.booleanValue("GetSmsConfigResponse.Success"));
945,629
public static void main(String[] args) {<NEW_LINE>final String authUser = "username";<NEW_LINE>final String authPassword = "password";<NEW_LINE>CredentialsProvider credsProvider = new BasicCredentialsProvider();<NEW_LINE>credsProvider.setCredentials(new AuthScope("10.10.10.10", 8080), new UsernamePasswordCredentials(au...
client = ctx.newRestfulGenericClient(serverBase);
1,687,727
public <T extends SaveFileFormat> T load(InputStream is, Class<T> format) {<NEW_LINE>entitySerializer.preLoad();<NEW_LINE>Input input = new ByteBufferInput(is);<NEW_LINE>SaveFileFormat partial = new SaveFileFormat((IntBag) null);<NEW_LINE>partial.componentIdentifiers = kryo.readObject(input, SaveFileFormat.ComponentIde...
configureWith(input.readInt());
1,211,955
public void draw(final BoundingBox boundingBox, final byte zoomLevel, final Canvas canvas, final Point topLeftPoint) {<NEW_LINE>if (coordinates == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// prepare accuracy circle<NEW_LINE>final float accuracy = coordinates.getAccuracy();<NEW_LINE>if (accuracyCircle == null) {<NEW...
drawBitmap(arrow, left, top);
1,511,886
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("NO.", 0, typeFactory.createSqlType(SqlTypeName.BIGINT)));<NEW_LINE>columns.add(new RelDa...
createSqlType(SqlTypeName.BIGINT)));
60,387
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String deviceName = Utils.getValueFromIdByName(id, "dataBoxEdgeDevices");<NEW_LINE>if (deviceName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path seg...
Utils.getValueFromIdByName(id, "storageAccounts");
393,131
public ServletContainer start(TreeLogger logger, int port, File appRootDir) throws Exception {<NEW_LINE>TreeLogger branch = logger.branch(TreeLogger.TRACE, "Starting Jetty on port " + port, null);<NEW_LINE>checkStartParams(branch, port, appRootDir);<NEW_LINE>// Setup our branch logger during startup.<NEW_LINE>Log.<MASK...
setLog(new JettyTreeLogger(branch));
1,065,460
protected CompoundTag translateExplosionToBedrock(CompoundTag explosion, String newName) {<NEW_LINE>CompoundTag newExplosionData = new CompoundTag(newName);<NEW_LINE>if (explosion.get("Type") != null) {<NEW_LINE>newExplosionData.put(new ByteTag("FireworkType", MathUtils.getNbtByte(explosion.get("Type").getValue())));<N...
] = FireworkColor.fromJavaRGB(color);
603,335
public void annotate(@NotNull PsiElement o, @NotNull AnnotationHolder holder) {<NEW_LINE>if (!o.isValid())<NEW_LINE>return;<NEW_LINE>if (o instanceof GoImportSpec && ((GoImportSpec) o).isDot()) {<NEW_LINE>// noinspection SynchronizationOnLocalVariableOrMethodParameter<NEW_LINE>synchronized (o) {<NEW_LINE>List<PsiElemen...
getColor((GoFieldDefinition) o));
1,855,259
public static void initialize() {<NEW_LINE>// Update JavaCore options<NEW_LINE>initializeJavaCoreOptions();<NEW_LINE>// Initialize default preferences<NEW_LINE>IEclipsePreferences defEclipsePrefs = DefaultScope.INSTANCE.getNode(IConstants.PLUGIN_ID);<NEW_LINE>defEclipsePrefs.put("org.eclipse.jdt.ui.typefilter.enabled",...
(new CodeTemplatePreferences.ShortMonth());
317,586
public IBaseResource readOperationDefinition(@IdParam IIdType theId, RequestDetails theRequestDetails) {<NEW_LINE>if (theId == null || theId.hasIdPart() == false) {<NEW_LINE>throw new ResourceNotFoundException(Msg.code(1977) + theId);<NEW_LINE>}<NEW_LINE>RestfulServerConfiguration configuration = getServerConfiguration...
get(theId.getIdPart());
1,049,531
private void initLucene() throws Exception {<NEW_LINE>ConfigDao configDao = new ConfigDao();<NEW_LINE>Config luceneStorageConfig = <MASK><NEW_LINE>String luceneStorage = luceneStorageConfig == null ? null : luceneStorageConfig.getValue();<NEW_LINE>// RAM directory storage by default<NEW_LINE>if (luceneStorage == null |...
configDao.getById(ConfigType.LUCENE_DIRECTORY_STORAGE);
813,321
protected Container createStartContentPane() {<NEW_LINE>JPanel pane = new JPanel(new BorderLayout());<NEW_LINE>menuBar = new JMenuBar();<NEW_LINE>pane.add(menuBar, BorderLayout.NORTH);<NEW_LINE>Locale loc = Locale.getDefault();<NEW_LINE>JMenu menu = new JMenu(messages.getMainMessage("mainMenu.file", loc));<NEW_LINE>men...
.getMainMessage("mainMenu.connect", loc));
315,888
public void exec() throws IOException {<NEW_LINE>final Collection<Tojo> tojos = this.scopedTojos().select(row -> row.exists(AssembleMojo.ATTR_EO));<NEW_LINE>int total = 0;<NEW_LINE>for (final Tojo tojo : tojos) {<NEW_LINE>if (tojo.exists(AssembleMojo.ATTR_XMIR)) {<NEW_LINE>final Path xmir = Paths.get(tojo.get(AssembleM...
.get(AssembleMojo.ATTR_EO));
216,427
private Proxy loadProxy() throws OperationFailedException {<NEW_LINE>final ConfigurationService configSvc = IrcActivator.getConfigurationService();<NEW_LINE>if (configSvc == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String globalProxyType = configSvc.getString(ProxyInfo.CONNECTION_PROXY_TYPE_PROPERTY_NAME...
new InetSocketAddress(globalProxyAddress, globalProxyPort));
1,208,389
private // ==================================================================================================<NEW_LINE>void runDecompilerAnalysis(Program program, AddressSetView functionEntries, TaskMonitor monitor) throws InterruptedException, Exception {<NEW_LINE>CachingPool<DecompInterface> decompilerPool = new Cach...
monitor.setMessage(NAME + " - creating dependency graph...");
829,367
public Problem prepare(final RefactoringElementsBag refactoringElementsBag) {<NEW_LINE>final TreePathHandle handle = getHandle();<NEW_LINE>if (handle == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final FileObject file = handle.getFileObject();<NEW_LINE>if (file == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LIN...
toPhase(JavaSource.Phase.RESOLVED);
1,246,641
public Storage.ReadSession create(TableId table, ImmutableList<String> selectedFields, Optional<String> filter, int parallelism) {<NEW_LINE>TableInfo tableDetails = bigQueryClient.getTable(table);<NEW_LINE>TableInfo actualTable = getActualTable(tableDetails, selectedFields, new String[] {});<NEW_LINE>try (BigQueryStora...
filter.ifPresent(readOptions::setRowRestriction);
252,819
private final void fireModelChange0(@NonNull final PO po, @NonNull final ModelChangeType changeType, @Nullable List<ModelValidator> interceptorsSystem, @Nullable List<ModelValidator> interceptorsClient, @Nullable List<I_AD_Table_ScriptValidator> scriptValidators) {<NEW_LINE>if (interceptorsSystem != null) {<NEW_LINE>//...
X_AD_Rule.EVENTTYPE_ModelValidatorTableEvent, changeType, scriptValidators);
508,165
private static void importTfOnnxSameDiff(OnnxFrameworkImporter onnxFrameworkImporter, TensorflowFrameworkImporter tensorflowFrameworkImporter, Framework framework, File inputFile, String inputFileNameMinusFormat, String format, File saveModelDir) throws IOException {<NEW_LINE>SameDiff sameDiff = null;<NEW_LINE>switch(f...
Collections.emptyMap(), true);
1,604,898
public final ET compile(final ExpressionContext context, final String expressionStr) {<NEW_LINE>// Check if it's an empty expression<NEW_LINE>// NOTE: we are preserving all whitespaces from expressions, so that's why we are not trimming the string<NEW_LINE>if (expressionStr == null || expressionStr.isEmpty()) {<NEW_LIN...
inStr.substring(0, i);
983,105
public void run() {<NEW_LINE>WatchService watcher;<NEW_LINE>try {<NEW_LINE>watcher = FileSystems.getDefault().newWatchService();<NEW_LINE>Path srcDir = Paths.get("src/main/java/org/glassfish/jersey/examples/reload");<NEW_LINE>registerWatcher(watcher, srcDir);<NEW_LINE>Path configFilePath = Paths.get(".");<NEW_LINE>regi...
Path modifiedFile = pathEvent.context();
586,154
public CreateProvisioningArtifactResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateProvisioningArtifactResult createProvisioningArtifactResult = new CreateProvisioningArtifactResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
1,364,218
public void handle(final HttpExchange t) throws IOException {<NEW_LINE>final String date = new Date().toString();<NEW_LINE>_sensors.get(_name).incrementAndGet();<NEW_LINE>Headers headers = t.getRequestHeaders();<NEW_LINE>Long delay = _delay;<NEW_LINE>if (headers.containsKey("delay")) {<NEW_LINE>List<String> headerValue...
(headerValues.get(0));
1,695,914
protected final Object _deserializeOther(JsonParser p, DeserializationContext ctxt, JsonToken t) throws IOException {<NEW_LINE>// and then others, generally requiring use of @JsonCreator<NEW_LINE>if (t != null) {<NEW_LINE>switch(t) {<NEW_LINE>case VALUE_STRING:<NEW_LINE>return deserializeFromString(p, ctxt);<NEW_LINE>c...
vanillaDeserialize(p, ctxt, t);
1,510,231
public void stateUpdated(PinpointServer pinpointServer, SocketStateCode updatedStateCode) {<NEW_LINE>ManagedAgentLifeCycle managedAgentLifeCycle = ManagedAgentLifeCycle.getManagedAgentLifeCycleByStateCode(updatedStateCode);<NEW_LINE>if (managedAgentLifeCycle == STATE_NOT_MANAGED) {<NEW_LINE>return;<NEW_LINE>} else {<NE...
channelProperties = channelPropertiesFactory.newChannelProperties(channelPropertiesMap);
103,344
final ListCertificatesByCAResult executeListCertificatesByCA(ListCertificatesByCARequest listCertificatesByCARequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCertificatesByCARequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
898,232
private void loadInfo(int C_ValidCombination_ID, int C_AcctSchema_ID) {<NEW_LINE>log.fine("C_ValidCombination_ID=" + C_ValidCombination_ID);<NEW_LINE>String sql = "SELECT * FROM C_ValidCombination WHERE C_ValidCombination_ID=? AND C_AcctSchema_ID=?";<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null...
(rs.getString("Alias"));
607,967
private void createActions() {<NEW_LINE>searchAction = new NavigatableContextAction(SEARCH_ACTION_NAME, getName(), false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(NavigatableActionContext context) {<NEW_LINE>openSearchDialog();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>searchAction.setHelpLocation(new ...
"For Scalars..." }, null, "search for"));
1,353,470
public void addSendFailMetric(String errorMsg, DispatchProfile currentRecord) {<NEW_LINE>Map<String, String> dimensions = new HashMap<>();<NEW_LINE>dimensions.put(SortMetricItem.KEY_CLUSTER_ID, this.getClusterId());<NEW_LINE>dimensions.put(SortMetricItem.KEY_TASK_NAME, this.getTaskName());<NEW_LINE>dimensions.put(SortM...
, String.valueOf(auditFormatTime));
245,992
private InferenceState restoreInferenceState() {<NEW_LINE>SearchRequest searchRequest = new SearchRequest(config.getDest().getIndex());<NEW_LINE>searchRequest.indicesOptions(MlIndicesUtils.addIgnoreUnavailable(SearchRequest.DEFAULT_INDICES_OPTIONS));<NEW_LINE>SearchSourceBuilder sourceBuilder = (new SearchSourceBuilder...
(searchRequest).actionGet());
1,612,383
public void start(Promise<Void> startPromise) {<NEW_LINE>pool = PgPool.pool(vertx, options, new PoolOptions().setMaxSize(5));<NEW_LINE>pool.query("create table jokes(joke varchar(255))").execute().compose(v -> vertx.fileSystem().readFile("jokes.json")).compose(buffer -> {<NEW_LINE>JsonArray array = new JsonArray(buffer...
("insert into jokes values ($1)").executeBatch(batch);
716,544
public String describe() {<NEW_LINE>// for #2398. sigh<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>ConfigTag configTag = this.getClass().getAnnotation(ConfigTag.class);<NEW_LINE>builder.append("<").append(configTag.value()).append(" ");<NEW_LINE>GoConfigClassWriter cruiseConfigClass = new GoConfigCl...
, new ConfigCache(), null);
2,073
private List<File> collectFiles(FormatterFactory formatterFactory, FormatterConfig config) {<NEW_LINE>Optional<String> ratchetFrom = formatterFactory.ratchetFrom(config);<NEW_LINE>try {<NEW_LINE>final List<File> files;<NEW_LINE>if (ratchetFrom.isPresent()) {<NEW_LINE>files = collectFilesFromGit(formatterFactory, ratche...
this.filePatterns.split(",");
1,041,653
private List<Paragraph> renderLiteral(Page page, OWLLiteral literal, Color foreground, Color background, boolean isSelected) {<NEW_LINE>if (isLiteralRenderableAsIRI(literal)) {<NEW_LINE>return renderIRI(page, IRI.create(literal.getLiteral()), foreground, background, isSelected, hasFocus());<NEW_LINE>} else {<NEW_LINE>S...
LinkSpan> linkSpans = extractLinks(rendering);
1,786,253
public void messageReceived(LCM lcm, String channel, LCMDataInputStream ins) {<NEW_LINE>System.out.println("Received message on channel " + channel);<NEW_LINE>try {<NEW_LINE>if (channel.equals("EXAMPLE")) {<NEW_LINE>example_t msg = new example_t(ins);<NEW_LINE>System.out.println(" timestamp = " + msg.timestamp);<NE...
+ msg.ranges[i]);
1,718,076
public void checkAddonCreationRights(final SubscriptionBase baseSubscription, final Plan targetAddOnPlan, final DateTime requestedDate, final InternalTenantContext context) throws SubscriptionBaseApiException {<NEW_LINE>if (baseSubscription.getState() == EntitlementState.CANCELLED || (baseSubscription.getState() == Ent...
SUB_CREATE_AO_BP_NON_ACTIVE, targetAddOnPlan.getName());
416,231
public ListTagsLogGroupResult listTagsLogGroup(ListTagsLogGroupRequest listTagsLogGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsLogGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,499,232
public Condition repeat(String xpathBase, int index, Map<String, Condition> conditionsMap, Map<String, org.opendope.xpaths.Xpaths.Xpath> xpathsMap) {<NEW_LINE>// this Xpathref is a clone already,<NEW_LINE>// but it points to the original xpathObj<NEW_LINE>// org.opendope.xpaths.Xpaths.Xpath xpathObj = XPathsPart.getXPa...
.getDataBinding().getXpath();