idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
538,026
public JSONObject call(String endpoint, HttpMethod method, Object params, String env, Map<String, String> headers) {<NEW_LINE>log.info("begin to call endpoint {}", endpoint);<NEW_LINE>headers.put("x-auth-app", TeslaAuth.DEFAULT_AUTH_APP);<NEW_LINE>headers.put("x-auth-key", TeslaAuth.DEFAULT_AUTH_KEY);<NEW_LINE>if (!hea...
headers.put("x-auth-passwd", "test");
1,415,774
private void copyRecord(int ordinal) {<NEW_LINE>int shard = ordinal & shardNumberMask;<NEW_LINE>int shardOrdinal = ordinal >> shardOrdinalShift;<NEW_LINE>for (int i = 0; i < historicalDataElements.schema.numFields(); i++) {<NEW_LINE>if (historicalDataElements.varLengthData[i] == null) {<NEW_LINE>long value = stateEngin...
, currentWriteVarLengthDataPointers[i] + size);
174,739
public void addOperationToGroup(String tag, String resourcePath, Operation operation, CodegenOperation co, Map<String, List<CodegenOperation>> operations) {<NEW_LINE>String basePath = resourcePath;<NEW_LINE>if (basePath.startsWith("/")) {<NEW_LINE>basePath = basePath.substring(1);<NEW_LINE>}<NEW_LINE>int pos = basePath...
basePath.substring(0, pos);
258,573
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getIdBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < involvedGroups_.size(); i++) {<NEW_LINE>com.google.protobuf.Generate...
, involvedInstances_.getRaw(i));
1,356,406
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Setup base map<NEW_LINE>setContentView(R.layout.activity_samplewithtilesoverlayandcustomtilesource);<NEW_LINE>Toolbar toolbar = findViewById(R.id.my_toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>...
getOverlays().add(copyrightOverlay);
1,803,957
private List<InOutId> generateReceipts(@NonNull final JsonCreateReceiptsRequest request, @NonNull final ReceiptScheduleCache cache) {<NEW_LINE>// 1. generate missing HUs<NEW_LINE>final ImmutableSet<ReceiptScheduleId> receiptScheduleIdsToProcess = extractReceiptScheduleIds(request);<NEW_LINE>receiptScheduleIdsToProcess....
collect(ImmutableList.toImmutableList());
906,419
public Request<ListTagsForResourcesRequest> marshall(ListTagsForResourcesRequest listTagsForResourcesRequest) {<NEW_LINE>if (listTagsForResourcesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListTagsForResourcesRequest> request = new De...
"ResourceType", listTagsForResourcesRequest.getResourceType());
882,691
public static ListMetaTablePartitionResponse unmarshall(ListMetaTablePartitionResponse listMetaTablePartitionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMetaTablePartitionResponse.setRequestId(_ctx.stringValue("ListMetaTablePartitionResponse.RequestId"));<NEW_LINE>listMetaTablePartitionResponse.setErrCode(_ctx.l...
("ListMetaTablePartitionResponse.PartitionList[" + i + "].PartitionGuid"));
549,815
public static void expand() {<NEW_LINE>String[] codeTable = resetCodeTable();<NEW_LINE>int nextCodeword = R + 1;<NEW_LINE>int codeword = BinaryStdIn.readInt(W);<NEW_LINE>if (codeword == R) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String value = codeTable[codeword];<NEW_LINE>while (true) {<NEW_LINE>// Write current substr...
value + string.charAt(0);
63,375
public static List<Chapter> loadChaptersFromUrl(String url) {<NEW_LINE>try {<NEW_LINE>Request request = new Request.Builder().url(url).cacheControl(<MASK><NEW_LINE>Response response = AntennapodHttpClient.getHttpClient().newCall(request).execute();<NEW_LINE>if (response.isSuccessful() && response.body() != null) {<NEW_...
CacheControl.FORCE_CACHE).build();
389,950
public static RexNode createEquiJoinCondition(final RelNode left, final List<Integer> leftKeys, final RelNode right, final List<Integer> rightKeys, final RexBuilder rexBuilder) {<NEW_LINE>final List<RelDataType> leftTypes = RelOptUtil.getFieldTypeList(left.getRowType());<NEW_LINE>final List<RelDataType> rightTypes = Re...
getFieldTypeList(right.getRowType());
554,087
private CompletableFuture<Void> generateWarningsForSingleDoc(final Pair<CdmFolderDefinition, CdmDocumentDefinition> fd, final ResolveOptions resOpt) {<NEW_LINE>final <MASK><NEW_LINE>if (doc.getDefinitions() == null) {<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>}<NEW_LINE>resOpt.setWrtDoc(doc);<NE...
CdmDocumentDefinition doc = fd.getRight();
1,333,171
protected void chunkConfirmed(Segment c) {<NEW_LINE>// logic<NEW_LINE>// if the response has html content type and no attachment<NEW_LINE>// no matter what is the target file extension, if any, will be changed to html.<NEW_LINE>// If the download<NEW_LINE>// has video conversion option, then conversion format will be r...
.isJavaClientRequired = hc.isJavaClientRequired();
35,885
WritableMap createResultMap(@Nullable DatabaseError error, boolean committed, DataSnapshot snapshot) {<NEW_LINE>WritableMap resultMap = Arguments.createMap();<NEW_LINE>resultMap.putBoolean("timeout", timeout);<NEW_LINE>resultMap.putBoolean("committed", committed);<NEW_LINE>resultMap.putBoolean("interrupted", interrupte...
resultMap.putMap("error", errorMap);
425,199
public static ListMPCoSPhaseHistoryResponse unmarshall(ListMPCoSPhaseHistoryResponse listMPCoSPhaseHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMPCoSPhaseHistoryResponse.setRequestId(_ctx.stringValue("ListMPCoSPhaseHistoryResponse.RequestId"));<NEW_LINE>listMPCoSPhaseHistoryResponse.setCode(_ctx.integerVal...
(_ctx.stringValue("ListMPCoSPhaseHistoryResponse.Message"));
1,678,646
public int bfs(ArrayList<Integer> src, int[][] grid) {<NEW_LINE>int m = grid[0].length;<NEW_LINE>int n = grid.length;<NEW_LINE>Queue<Integer> que = new LinkedList<>();<NEW_LINE>for (int i = 0; i < src.size(); i++) {<NEW_LINE>int idx = src.get(i);<NEW_LINE>que.add(idx);<NEW_LINE>}<NEW_LINE>int[][] dir = { { 0, 1 }, { 0,...
add(x * m + y);
282,022
static void addDefaultStructureBiomes() {<NEW_LINE>// floating islands skips earth<NEW_LINE>ImmutableMultimap<ConfiguredStructureFeature<?, ?>, ResourceKey<Biome>> clayIslandMap = getClayIslandBiomes(null);<NEW_LINE>ImmutableMultimap<ConfiguredStructureFeature<?, ?>, ResourceKey<Biome>> skyIslandMap = getSkyIslandBiome...
StructureSettings settings = dimensionSettings.structureSettings();
704,566
public TeslaBaseResult token(HttpServletRequest request, @RequestParam(value = "empId", required = false) String empId, @RequestParam(value = "loginName", required = false) String loginName) {<NEW_LINE>UserDO userDo = this.getLoginUser(request);<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isNotBlank(tokenAdmin)) {<NEW_LIN...
String tokenAdmin = authProperties.getTokenAdmin();
820,884
public static List<String> doExportFileDiff(File repository, File file, String revStr, String outputFileName, OutputLogger logger) throws HgException {<NEW_LINE>// Ensure that parent directory of target exists, creating if necessary<NEW_LINE>File fileTarget = new File(outputFileName);<NEW_LINE><MASK><NEW_LINE>try {<NEW...
File parentTarget = fileTarget.getParentFile();
688,051
final GetServicesInScopeResult executeGetServicesInScope(GetServicesInScopeRequest getServicesInScopeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServicesInScopeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
428,145
public String verifyC3EnvEntryLookupClass() {<NEW_LINE>assertNotNull("ivEnvEntry_Lookup_Class not injected (null)", ivEnvEntry_Lookup_Class);<NEW_LINE>// use implicit env-entry for a Class field<NEW_LINE>assertEquals("Unexpected env-entry injection. Expected ivEnvEntry_Lookup_Class to be an instance of EnvEntryClass. ...
>) ivContext.lookup("java:comp/env/EnvEntry_Class_Using_Lookup");
1,204,327
public static AssemblyResolvedPatterns fromString(String str, String description, List<AssemblyResolution> children) {<NEW_LINE>AssemblyPatternBlock ins = null;<NEW_LINE>if (str.startsWith(INS)) {<NEW_LINE>int end = str.indexOf(SEP);<NEW_LINE>if (end == -1) {<NEW_LINE>end = str.length();<NEW_LINE>}<NEW_LINE>ins = Assem...
str = str.substring(end);
250,300
public Generator<?> decideGenerator(GeneratorRepository repository, ParameterTypeContext p) {<NEW_LINE>Only only = p.annotatedType().getAnnotation(Only.class);<NEW_LINE>if (only != null) {<NEW_LINE>StringConversion conversion = StringConversions.decide(p, only);<NEW_LINE>Set<Object> values = Arrays.stream(only.value())...
).collect(toSet());
422,922
protected void exportStyledTextRun(String textRunStyle, Map<Attribute, Object> attributes, String text, String tooltip, boolean hyperlinkStarted) throws IOException {<NEW_LINE>boolean localHyperlink = false;<NEW_LINE>JRPrintHyperlink hyperlink = (JRPrintHyperlink) attributes.get(JRTextAttribute.HYPERLINK);<NEW_LINE>if ...
(JRStringUtil.encodeXmlAttribute(tooltip));
1,496,860
private boolean trySaveOrDeleteIncident(Check check, Incident incident) {<NEW_LINE>if (incident == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (incident.getNewStatus() == CheckResult.Status.OK) {<NEW_LINE>if (!incidentRepository.deleteIncident(incident)) {<NEW_LINE>logger.warn("Optimistic lock failure when del...
setOldStatus(CheckResult.Status.OK);
1,628,391
private CompletableFuture<WriterFlushResult> flushNormally(boolean force, TimeoutTimer timer) {<NEW_LINE>assert this.state.get() == AggregatorState.Writing : "flushNormally cannot be called if state == " + this.state;<NEW_LINE>long traceId = LoggerHelpers.traceEnterWithContext(log, this.traceObjectId, "flushNormally", ...
AtomicBoolean canContinue = new AtomicBoolean(true);
651,825
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>Intent intent = getIntent();<NEW_LINE>String path = intent.getStringExtra(INTENT_PATH);<NEW_LINE>if (path == null) {<NEW_LINE>path = "";<NEW_LINE>} else {<NEW_LINE>getSupportActionBar().setTitle(path)...
setContentView(R.layout.list);
118,752
public UpdateStreamResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateStreamResult updateStreamResult = new UpdateStreamResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
953,730
public void testApplicationScopedQuery(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>QueryClient client = builder.build(QueryClient.class);<NEW_LINE>Query query = new Query();<NEW_LINE>query.setOperationName("allQueryInstancesAppScope");<NEW_LINE>query.setQuery("query allQueryInstancesAp...
response = client.getQueryInfo(query);
259,440
final DescribeEngagementResult executeDescribeEngagement(DescribeEngagementRequest describeEngagementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngagementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,804,934
protected void processElements(List<PlanItem> planItemList, CmmnModel model, ArrayNode elementArray, ArrayNode flowArray, GraphicInfo diagramInfo) {<NEW_LINE>for (PlanItem planItem : planItemList) {<NEW_LINE><MASK><NEW_LINE>elementNode.put("id", planItem.getId());<NEW_LINE>elementNode.put("name", planItem.getName());<N...
ObjectNode elementNode = objectMapper.createObjectNode();
695,949
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Mapbox access token is configured here. This needs to be called either in your application<NEW_LINE>// object or in the same activity which contains the mapview.<NEW_LINE>Mapbox.getInstance(this, getString(R.st...
("#3bb2d0"))), "settlement-label");
1,333,784
private List<RepositoryRevision> search(String fromRevision, String toRevision, int limitRevisions, String branchName, HgProgressSupport progressSupport, OutputLogger logger) {<NEW_LINE>if (progressSupport.isCanceled()) {<NEW_LINE>return Collections.<RepositoryRevision>emptyList();<NEW_LINE>}<NEW_LINE>HgLogMessage[] me...
includeMerges, includeMerges, limitRevisions, logger);
1,668,875
public static U8Pointer RCWCLASSPATH(ROMClassWrapperPointer ptr, U8Pointer[] cacheHeader) throws CorruptDataException {<NEW_LINE>PointerPointer theCpOffset = ptr.theCpOffsetEA();<NEW_LINE>if (null == cacheHeader) {<NEW_LINE>return U8Pointer.cast(ptr).add(I32Pointer.cast(theCpOffset).at(0));<NEW_LINE>} else {<NEW_LINE>t...
j9shrOffset = J9ShrOffsetPointer.cast(theCpOffset);
1,682,578
public static ListTaskFlowInstanceResponse unmarshall(ListTaskFlowInstanceResponse listTaskFlowInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskFlowInstanceResponse.setRequestId(_ctx.stringValue("ListTaskFlowInstanceResponse.RequestId"));<NEW_LINE>listTaskFlowInstanceResponse.setErrorCode(_ctx.stringValue...
= new ArrayList<DAGInstance>();
314,861
public static <T> T loadJaxbObject(FileObject input, Class<T> type, boolean includeAware, ReadInputStream reader) throws IOException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>Exception jbex = null;<NEW_LINE>try {<NEW_LINE>in = input.getInput...
loadJaxbObject(in, type, includeAware);
1,430,238
private void popupMenu(final ImageView onGridList) {<NEW_LINE>MyPopupMenu p = new MyPopupMenu(getActivity(), onGridList);<NEW_LINE>PopupHelper.addPROIcon(p, getActivity());<NEW_LINE>List<Integer> names = Arrays.asList(R.string.list, R.string.compact, R.string.grid, R.string.cover);<NEW_LINE>final List<Integer> icons = ...
(icons.get(index));
1,823,839
private <T> T call(UfsCallable<T> callable) throws IOException {<NEW_LINE>String methodName = callable.methodName();<NEW_LINE>long startMs = System.currentTimeMillis();<NEW_LINE>long durationMs;<NEW_LINE>LOG.debug("Enter: {}({})", methodName, callable);<NEW_LINE>try (Timer.Context ctx = MetricsSystem.timer(getQualified...
methodName, callable, durationMs, mLoggingThreshold);
272,887
public void updateContent() {<NEW_LINE>AndroidUiHelper.updateVisibility(view.findViewById(R.id.icon), false);<NEW_LINE>TextView titleView = view.findViewById(R.id.title);<NEW_LINE>titleView.setText(R.string.gpx_split_interval);<NEW_LINE>Typeface typeface = FontCache.getFont(app, app.getString(R.string.font_roboto_mediu...
SpannableStringBuilder spannableSplitInterval = new SpannableStringBuilder(splitInterval);
1,254,248
private void loadDefaultRepositories() {<NEW_LINE>try (QueryManager qm = new QueryManager()) {<NEW_LINE>LOGGER.info("Synchronizing default repositories to datastore");<NEW_LINE>qm.createRepository(RepositoryType.GEM, "rubygems.org", "https://rubygems.org/", true, false);<NEW_LINE>qm.createRepository(RepositoryType.HEX,...
"hex.pm", "https://hex.pm/", true, false);
313,347
public static ListStrategiesResponse unmarshall(ListStrategiesResponse listStrategiesResponse, UnmarshallerContext context) {<NEW_LINE>listStrategiesResponse.setRequestId(context.stringValue("ListStrategiesResponse.RequestId"));<NEW_LINE>listStrategiesResponse.setSuccess(context.booleanValue("ListStrategiesResponse.Suc...
("ListStrategiesResponse.Strategies[" + i + "].StrategyId"));
44,726
public static void main(String[] args) {<NEW_LINE>Exercise18 exercise18 = new Exercise18();<NEW_LINE>// Graph with girth = 3<NEW_LINE>Graph graph1 = new Graph(6);<NEW_LINE>graph1.addEdge(2, 3);<NEW_LINE>graph1.addEdge(0, 1);<NEW_LINE>graph1.addEdge(3, 1);<NEW_LINE>graph1.addEdge(5, 3);<NEW_LINE>graph1.addEdge(2, 0);<NE...
Graph graph3 = new Graph(4);
775,850
public void draw(GL2 gl, final TextureCache cache) {<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glColor3d(1, 1, 1);<NEW_LINE>square(gl, cache.getTexture(url(dir[0])));<NEW_LINE>gl.glRotatef(90, 0, 1, 0);<NEW_LINE>square(gl, cache.getTexture(url(dir[1])));<NEW_LINE>gl.glRotatef(90, 0, 1, 0);<NEW_LINE>square(gl, cache.getTe...
(dir[4])));
542,061
// Helper to check if timeout value is valid<NEW_LINE>int validateTimeout(SQLServerDriverIntProperty property) throws SQLServerException {<NEW_LINE>int timeout = property.getDefaultValue();<NEW_LINE>String sPropValue = activeConnectionProperties.getProperty(property.toString());<NEW_LINE>if (null != sPropValue && sProp...
(msgArgs), null, false);
1,261,432
public static String doPost(String url, String paramStr, Map<String, String> headers, String method) {<NEW_LINE>try {<NEW_LINE>URL u = new URL(url);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) u.openConnection();<NEW_LINE>addHeaders(conn, headers);<NEW_LINE>if (StringUtils.isBlank(method)) {<NEW_LINE>conn.set...
write(paramStr.getBytes());
604,436
public Request<CreateDBClusterSnapshotRequest> marshall(CreateDBClusterSnapshotRequest createDBClusterSnapshotRequest) {<NEW_LINE>if (createDBClusterSnapshotRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateDBClusterSnapshotRequest> r...
request.setHttpMethod(HttpMethodName.POST);
656,159
protected ArrayList<KeyNamePair> loadInvoiceData(int C_BPartner_ID) {<NEW_LINE>ArrayList<KeyNamePair> list = new ArrayList<>();<NEW_LINE>StringBuffer display = new StringBuffer("i.DocumentNo||' - '||").append(DB.TO_CHAR("DateInvoiced", DisplayType.Date, Env.getAD_Language(Env.getCtx()))).append("|| ' - ' ||").append(DB...
"GROUP BY il.C_Invoice_ID,mi.C_InvoiceLine_ID,il.QtyInvoiced " + "HAVING (il.QtyInvoiced<>SUM(mi.Qty) AND mi.C_InvoiceLine_ID IS NOT NULL)" + " OR mi.C_InvoiceLine_ID IS NULL) " + "ORDER BY i.DateInvoiced");
1,385,452
public static <T extends Runnable> List<T> readParallel(int concurrency, int batchSize, BatchNodeIterable idMapping, ParallelGraphImporter<T> importer, ExecutorService executor) {<NEW_LINE>Collection<PrimitiveIntIterable> iterators = idMapping.batchIterables(batchSize);<NEW_LINE>int threads = iterators.size();<NEW_LINE...
= new ArrayList<>(threads);
8,288
public PsiClass createBuilderBaseClass(@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) {<NEW_LINE>String builderClassName = getBuilderClassName(psiClass);<NEW_LINE>String builderClassQualifiedName = psiClass.getQualifiedName() + "." + builderClassName;<NEW_LINE>final LombokLightClassBuilder baseClassB...
, typeParamNames), baseClassBuilder, 1);
947,085
public void run() {<NEW_LINE>String urlStr = null;<NEW_LINE>try {<NEW_LINE>urlStr = opts.getString("url");<NEW_LINE>} catch (JSONException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>if (urlStr == null || urlStr.length() == 0) {<NEW_LINE>callbackContext.error("No kml file is specified");<NEW_LINE>return;<NEW...
(PluginUtil.Bundle2Json(result));
1,604,794
public static DescribeCacheAnalysisJobsResponse unmarshall(DescribeCacheAnalysisJobsResponse describeCacheAnalysisJobsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCacheAnalysisJobsResponse.setRequestId(_ctx.stringValue("DescribeCacheAnalysisJobsResponse.RequestId"));<NEW_LINE>describeCacheAnalysisJobsResponse...
("DescribeCacheAnalysisJobsResponse.Data.List[" + i + "].InstanceId"));
635,376
final DescribeOrganizationConfigurationResult executeDescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,128,816
public synchronized void run() {<NEW_LINE>final String methodName = "run";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && WORK_TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, WORK_TRACE, methodName);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (_dispatcher == null) {<NEW_LINE>_dispatcher = _connection.createDispat...
), _listenerRef.get());
1,399,952
final ListRepositorySyncDefinitionsResult executeListRepositorySyncDefinitions(ListRepositorySyncDefinitionsRequest listRepositorySyncDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRepositorySyncDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,529,921
public void writeBufferShort(ByteOrder order, long index, short value, @Shared("isBuffer") @Cached IsBufferNode isBuffer, @Shared("error") @Cached BranchProfile error, @Shared("classProfile") @Cached("createClassProfile()") ValueProfile classProfile) throws InvalidBufferOffsetException, UnsupportedMessageException {<NE...
, (int) index, value);
82,113
public TypeDefinition build(Type type, Class<?> clazz, Map<String, TypeDefinition> typeCache) {<NEW_LINE>String canonicalName = clazz.getCanonicalName();<NEW_LINE>TypeDefinition <MASK><NEW_LINE>if (td != null) {<NEW_LINE>return td;<NEW_LINE>}<NEW_LINE>td = new TypeDefinition(canonicalName);<NEW_LINE>typeCache.put(canon...
td = typeCache.get(canonicalName);
1,583,786
private FrameNode throwableHandlerFrame(MethodNode mn) {<NEW_LINE>List<Object> locals = new ArrayList<>();<NEW_LINE>for (Type argType : Type.getArgumentTypes(mn.desc)) {<NEW_LINE>if (TypeUtils.isPrimitive(argType)) {<NEW_LINE>switch(argType.getSort()) {<NEW_LINE>case Type.INT:<NEW_LINE>case Type.BOOLEAN:<NEW_LINE>case ...
locals.add(Opcodes.INTEGER);
1,837,597
protected boolean store() {<NEW_LINE>prefs.putBoolean(WinSysPrefs.MAXIMIZE_NATIVE_LAF, checkMaximizeNativeLaF.isSelected());<NEW_LINE>// NOI18N<NEW_LINE>System.setProperty("nb.native.filechooser", checkMaximizeNativeLaF.isSelected() ? "true" : "false");<NEW_LINE>int selLaFIndex = comboLaf.getSelectedIndex();<NEW_LINE>i...
setLookAndFeel(li.getClassName());
585,610
public static Map<String, String> parseEventData(byte[] data, List<byte[]> topicList, ABI.Entry entry) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>if (ArrayUtils.isEmpty(data)) {<NEW_LINE>return map;<NEW_LINE>}<NEW_LINE>// in case indexed topics do not match<NEW_LINE>if (!topicsMatched(topicList, ent...
logger.debug("UnsupportedOperationException", e);
232,302
final GetLoadBalancerTlsCertificatesResult executeGetLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest getLoadBalancerTlsCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoadBalancerTlsCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
endClientExecution(awsRequestMetrics, request, response);
6,838
private void loadNode124() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.FileType_Open, new QualifiedName(0, "Open"), new LocalizedText("en", "Open"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.addReference(new Reference(Identifiers.FileTyp...
.expanded(), true));
1,027,120
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void editBrowserButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_editBrowserButtonActionPerformed<NEW_LINE>final WebBrowsersOptionsModel wbModel = new WebBrowsersOptionsModel();<NEW_LINE>WebBrowsersOptionsPanel wbPanel = new W...
getSelectedItem().toString());
1,842,307
private Response afterPostBrokerLoginFlowSuccess(AuthenticationSessionModel authSession, BrokeredIdentityContext context, boolean wasFirstBrokerLogin) {<NEW_LINE>String providerId = context.getIdpConfig().getAlias();<NEW_LINE>UserModel federatedUser = authSession.getAuthenticatedUser();<NEW_LINE>if (wasFirstBrokerLogin...
FIRST_BROKER_LOGIN_SUCCESS, serializedCtx.getIdentityProviderId());
1,684,634
static void addFileChangeListenerImpl(Logger logger, FileChangeListener listener, File path) {<NEW_LINE>assert FileUtil.assertNormalized(path);<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "addFileChangeListener {0} @ {1}", new Object[] { listener, path });<NEW_LINE>}<NEW_LINE>final Fil...
append(prev.get());
348,262
final DeleteKeyPairResult executeDeleteKeyPair(DeleteKeyPairRequest deleteKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteKeyPairReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,760,906
public static DescribeConsumerGroupResponse unmarshall(DescribeConsumerGroupResponse describeConsumerGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeConsumerGroupResponse.setRequestId(_ctx.stringValue("DescribeConsumerGroupResponse.RequestId"));<NEW_LINE>describeConsumerGroupResponse.setErrCode(_ctx.stringV...
("DescribeConsumerGroupResponse.ConsumerChannels[" + i + "].ConsumerGroupID"));
465,613
public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception {<NEW_LINE>assertArguments();<NEW_LINE>// Shortcut to parse the provided patterns using Graph Engine and display the result<NEW_LINE>// All other parameters are effectively ignored<NEW_LINE>if (isShowParseState) {<NEW_LINE>outputParseStateWithG...
MoreExceptions.getHumanReadableOrLocalizedMessage(e)));
1,112,879
public final void write(ResultSet rs, Writer output) {<NEW_LINE>validateWriterSettings();<NEW_LINE>boolean hasWriterProcessor = writerSettings.getRowWriterProcessor() != null;<NEW_LINE>AbstractWriter<W> writer = null;<NEW_LINE>long rowCount = 0L;<NEW_LINE>Object[] row = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>Resu...
] = md.getColumnLabel(i);
946,063
public void applyFinallyBlocks(Label label, boolean isBreakLabel) {<NEW_LINE>// first find the state defining the label. That is the state<NEW_LINE>// directly after the state not knowing this label. If no state<NEW_LINE>// in the list knows that label, then the defining state is the<NEW_LINE>// current state.<NEW_LINE...
List<BlockRecorder>) Collections.EMPTY_LIST;
1,794,672
@ApiOperation(value = "Launch input on this node", response = InputCreated.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 404, message = "No such input type registered"), @ApiResponse(code = 400, message = "Missing or invalid configuration"), @ApiResponse(code = 400, message = "Type is exclusive and alread...
newId = inputService.save(input);
1,608,821
private static void parseColumn(Element tableElem, ProductTable tableObj) {<NEW_LINE>ProductColumn column = null;<NEW_LINE>NodeList childElements = tableElem.getElementsByTagName("column");<NEW_LINE>if (childElements != null && childElements.getLength() > 0) {<NEW_LINE>for (int i = 0; i < childElements.getLength(); i++...
varElements = columnElem.getElementsByTagName("var");
755,426
public void removeEdgesFromNode(@Nonnull final Urn urn, @Nonnull final List<String> relationshipTypes, @Nonnull final RelationshipFilter relationshipFilter) {<NEW_LINE>log.debug(String.format("Removing Neo4j edge types from node with urn: %s, types: %s, filter: %s", urn, relationshipTypes, relationshipFilter));<NEW_LIN...
RelationshipDirection relationshipDirection = relationshipFilter.getDirection();
201,010
public Object calculate(Context ctx) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>if (param == null || param.isLeaf() || param.getSubSize() < 3) {<NEW_LINE>throw new RQException("Fv" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Object[] result = new Object[size];<NEW_LI...
int size = param.getSubSize();
1,451,074
public void export(IndicatorGeneratorGrouping indicatorGeneratorGrouping) throws AxelorException {<NEW_LINE>String log = "";<NEW_LINE>String dataExportDir = appService.getDataExportDir();<NEW_LINE>if (indicatorGeneratorGrouping.getPath() == null || indicatorGeneratorGrouping.getPath().isEmpty()) {<NEW_LINE>log += "\n" ...
I18n.get(IExceptionMessage.INDICATOR_GENERATOR_GROUPING_2);
1,488,931
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException {<NEW_LINE>// Get all properties<NEW_LINE>Map<String, FieldMetadata> properties = getMetadata(persistencePackage, helper);<NEW_LINE>Iterator it = properties.entrySet()....
DynamicResultSet(mergedMetadata, null, null);
362,828
final DescribeLabelingJobResult executeDescribeLabelingJob(DescribeLabelingJobRequest describeLabelingJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLabelingJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new DescribeLabelingJobResultJsonUnmarshaller());
1,790,892
public NSInteger outlineView_numberOfChildrenOfItem(final NSOutlineView view, final NSObject item) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("outlineView_numberOfChildrenOfItem:" + item);<NEW_LINE>}<NEW_LINE>if (controller.isMounted()) {<NEW_LINE>if (null == item) {<NEW_LINE>return new NSInteger(this.ge...
, null)).intValue();
661,763
public void update(EntityRef[] inputEntities, float delta, EntityRef target, Vector3ic targetBlockPos, Vector3fc hitPosition, Vector3fc hitNormal, long gameTimeInMs) {<NEW_LINE>long activateTime = gameTimeInMs;<NEW_LINE>if (repeating && getState() == ButtonState.DOWN && mode.isActivatedOnPress() && activateTime - lastA...
target, targetBlockPos, hitPosition, hitNormal);
698,704
private void hashHistories() {<NEW_LINE>int fAll = maxentTagger.extractors.size() + maxentTagger.extractorsRare.size();<NEW_LINE>int fGeneral = maxentTagger.extractors.size();<NEW_LINE>log.info("Hashing histories ...");<NEW_LINE>for (int x = 0; x < xSize; x++) {<NEW_LINE>History h = tHistories.getHistory(x);<NEW_LINE>/...
h = tHistories.getHistory(x);
324,645
public void open(int taskNumber, int numTasks) throws IOException {<NEW_LINE>if (taskNumber < 0 || numTasks < 1) {<NEW_LINE>throw new IllegalArgumentException("TaskNumber: " + taskNumber + ", numTasks: " + numTasks);<NEW_LINE>}<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Opening stream for output (" + (tas...
"). WriteMode=" + writeMode + ", OutputDirectoryMode=" + outputDirectoryMode);
1,490,522
private void updateFavPointBox() {<NEW_LINE>// Favorite counts<NEW_LINE>final <MASK><NEW_LINE>if (favCount >= 0 && !cache.isEventCache()) {<NEW_LINE>favoriteLine.left.setVisibility(View.VISIBLE);<NEW_LINE>final int findsCount = cache.getFindsCount();<NEW_LINE>if (findsCount > 0) {<NEW_LINE>favoriteLine.right.setText(ge...
int favCount = cache.getFavoritePoints();
246,949
private List<Integer> loadKeyViolationCodes(String databaseProductName, Properties properties) {<NEW_LINE>String key = databaseProductName.replaceAll(" ", "_") + KEY_CODE_SUFFIX;<NEW_LINE>String property = properties.getProperty(key);<NEW_LINE>List<Integer> keyCodes = new ArrayList<>();<NEW_LINE>if (property == null) {...
pattern = properties.getProperty(k);
212,697
private void printInstances(ArrayList<DisplayInstance> unsorted, Comparator<DisplayInstance> comparator, boolean headerPrinted, boolean isZOS) {<NEW_LINE>DisplayInstance[] sortedAr = unsorted.toArray(new DisplayInstance[unsorted.size()]);<NEW_LINE>// sort the array<NEW_LINE>Arrays.sort(sortedAr, comparator);<NEW_LINE>/...
), comparator, headerPrinted, isZOS);
24,691
public void showIssue(final Issue issue) {<NEW_LINE>setToolbarTitle(getString(R.string.issue).concat(" #").concat(String.valueOf(issue.getNumber())));<NEW_LINE>GlideApp.with(getActivity()).load(issue.getUser().getAvatarUrl()).onlyRetrieveFromCache(!PrefUtils.isLoadImageEnable()).into(userImageView);<NEW_LINE>issueTitle...
setImageResource(R.drawable.ic_issues_closed);
1,691,678
public static void main(String[] args) {<NEW_LINE>int cache_size = 5;<NEW_LINE>Cache cache = new Cache(cache_size);<NEW_LINE>cache.setKeyValue(1, "1");<NEW_LINE>System.out.println(cache.getCacheAsString());<NEW_LINE>cache.setKeyValue(2, "2");<NEW_LINE>System.out.println(cache.getCacheAsString());<NEW_LINE>cache.setKeyV...
println(cache.getCacheAsString());
660,420
private static void onMainThreadPriorityModified(int priorityBefore, int priorityAfter) {<NEW_LINE>if (sMainThreadPriorityModifiedListener != null) {<NEW_LINE>sMainThreadPriorityModifiedListener.onMainThreadPriorityModified(priorityBefore, priorityAfter);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TracePlugin ...
"onMainThreadPriorityModified error: %s", t.getMessage());
1,468,844
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>if (jsonReader.readIfNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (jsonReader.nextIfMatch('[')) {<NEW_LINE>byte[] values = new byte[16];<NEW_LINE>int size = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>if (jsonRea...
Arrays.copyOf(values, newCapacity);
221,002
private static SupplyRequiredDescriptor createSupplyRequiredDescriptor(@NonNull final Candidate demandCandidate, @NonNull final BigDecimal requiredAdditionalQty, @Nullable final CandidateId supplyCandidateId) {<NEW_LINE>final SupplyRequiredDescriptorBuilder descriptorBuilder = createAndInitSupplyRequiredDescriptor(dema...
DemandDetail demandDetail = demandCandidate.getDemandDetail();
98,433
final void executeTerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateWorkflowExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(terminateWorkflowExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aws...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TerminateWorkflowExecution");
500,646
public static void horizontal11(Kernel1D_S32 kernel, GrayU8 image, GrayI8 dest, int divisor) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final byte[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int...
+ i * image.stride - radius;
276,478
private ImmutableSet<KV<DomainNameInfo, ThreatMatch>> evaluateAndFlush() {<NEW_LINE>ImmutableSet.Builder<KV<DomainNameInfo, ThreatMatch>> resultBuilder = new ImmutableSet.Builder<>();<NEW_LINE>try {<NEW_LINE>URIBuilder uriBuilder = new URIBuilder(SAFE_BROWSING_URL);<NEW_LINE>// Add the API key param<NEW_LINE>uriBuilder...
HttpPost(uriBuilder.build());
1,732,919
public static JSDynamicObject toTemporalTimeZone(JSContext ctx, Object temporalTimeZoneLikeParam) {<NEW_LINE>Object temporalTimeZoneLike = temporalTimeZoneLikeParam;<NEW_LINE>if (JSRuntime.isObject(temporalTimeZoneLike)) {<NEW_LINE>JSDynamicObject tzObj = (JSDynamicObject) temporalTimeZoneLike;<NEW_LINE>if (isTemporalZ...
identifier = JSRuntime.toString(temporalTimeZoneLike);
24,285
public static SpreadsheetMLPackage createPackage() throws InvalidFormatException {<NEW_LINE>// Create a package<NEW_LINE>SpreadsheetMLPackage xlsPack = new SpreadsheetMLPackage();<NEW_LINE>try {<NEW_LINE>xlsPack.wb = new WorkbookPart();<NEW_LINE>xlsPack.wb.setJaxbElement(Context.<MASK><NEW_LINE>xlsPack.addTargetPart(xl...
getsmlObjectFactory().createWorkbook());
393,382
public void run() {<NEW_LINE>try {<NEW_LINE>serverChannel.register(nioSelector, SelectionKey.OP_ACCEPT);<NEW_LINE>startupComplete();<NEW_LINE>int currentProcessor = 0;<NEW_LINE>while (isRunning()) {<NEW_LINE>int <MASK><NEW_LINE>if (ready > 0) {<NEW_LINE>Set<SelectionKey> keys = nioSelector.selectedKeys();<NEW_LINE>Iter...
ready = nioSelector.select(selectTimeOutMs);
1,541,937
protected void configure() {<NEW_LINE>switch(configuration.getMessageJournalMode()) {<NEW_LINE>case NOOP_JOURNAL_MODE:<NEW_LINE>bindMessageQueueImplementation(NoopMessageQueueReader.class, NoopMessageQueueWriter.class, NoopMessageQueueAcknowledger.class);<NEW_LINE>break;<NEW_LINE>case DISK_JOURNAL_MODE:<NEW_LINE>bindMe...
).in(Scopes.SINGLETON);
1,447,222
private void renderAuras(Graphics2D g, PlayerView view) {<NEW_LINE>// Setup<NEW_LINE>timer.start("auras-1");<NEW_LINE>Graphics2D newG = (Graphics2D) g.create();<NEW_LINE>if (!view.isGMView() && visibleScreenArea != null) {<NEW_LINE>Area clip = new Area(g.getClip());<NEW_LINE>clip.intersect(visibleScreenArea);<NEW_LINE>...
colorMap.put(paint, list);
961,627
public RejectTransitGatewayVpcAttachmentResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>RejectTransitGatewayVpcAttachmentResult rejectTransitGatewayVpcAttachmentResult = new RejectTransitGatewayVpcAttachmentResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int tar...
().unmarshall(context));
684,197
public void perform(TimerEvent event) {<NEW_LINE>synchronized (statusUpdater.this) {<NEW_LINE>if (tracker.isEnabled() && (crypto_ok || !has_buddies)) {<NEW_LINE>String tt;<NEW_LINE>int ns = tracker.getNetworkStatus();<NEW_LINE>if (ns == BuddyPluginTracker.BUDDY_NETWORK_IDLE) {<NEW_LINE><MASK><NEW_LINE>} else if (ns == ...
tt = MessageText.getString("azbuddy.tracker.bbb.status.idle");
462,888
public static CommandComplete parse(ByteBuffer buffer, int offset) {<NEW_LINE>if (buffer.get(offset) != PacketMarker.B_CommandComplete.getValue()) {<NEW_LINE>throw new IllegalArgumentException("this packetData not is CommandComplete");<NEW_LINE>}<NEW_LINE>CommandComplete packet = new CommandComplete();<NEW_LINE>packet....
, "").trim());
1,358,069
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>DialogIconPickerBinding binding = DialogIconPickerBinding.inflate(LayoutInflater.from(context));<NEW_LINE>Bundle arguments = getArguments();<NEW_LINE>int current = arguments.getInt(EXTRA_CURRENT);<NEW_LINE>IconPickerAdapter iconPickerAdapter =...
submitList(CustomIcons.getIconList());