idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
328,442
public static boolean vertical(Kernel1D_S32 kernel, GrayS32 image, GrayS32 dest, int divisor, GrowArray<DogArray_I32> work) {<NEW_LINE>// Unrolled functions only exist for symmetric kernels with an odd width<NEW_LINE>if (kernel.offset != kernel.width / 2 || kernel.width % 2 == 0)<NEW_LINE>return false;<NEW_LINE>switch(...
image, dest, divisor, work);
748,779
public void receiveCommand(Item item, Command command, ZWaveNode node, ZWaveDoorLockCommandClass commandClass, int endpointId, Map<String, String> arguments) {<NEW_LINE>ZWaveCommandConverter<?, ?> converter = this.getCommandConverter(command.getClass());<NEW_LINE>if (converter == null) {<NEW_LINE>logger.warn("NODE {}: ...
getValueMessage(), commandClass, endpointId);
1,153,256
private static Tuple2<Boolean, Integer> chooseStatusFromError(ErrorMessage error) {<NEW_LINE>Tuple2<Boolean, Integer> webServiceStatus = chooseWebServiceStatus(error);<NEW_LINE>if (webServiceStatus.first) {<NEW_LINE>return webServiceStatus;<NEW_LINE>}<NEW_LINE>if (error.getCode() == NO_BACKENDS_IN_SERVICE.code)<NEW_LIN...
true, Response.Status.BAD_REQUEST);
936,361
private ButtonToggleGroup createGroup(final LinearLayout ll, final StatusGeocacheFilter.StatusType statusType, final boolean isAdvanced) {<NEW_LINE>final View view = inflateLayout(R.layout.buttontogglegroup_labeled_item);<NEW_LINE>final ButtontogglegroupLabeledItemBinding <MASK><NEW_LINE>binding.itemText.setText(status...
binding = ButtontogglegroupLabeledItemBinding.bind(view);
265,916
private Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String serverName, ServerRestartParameter parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ...
error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
1,115,051
public boolean hurt(DamageSource source, float amount) {<NEW_LINE>if (this.level.isClientSide || this.isRemoved()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (this.isInvulnerableTo(source)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Vehicle vehicle = (Vehicle) this.getBukkitEntity();<NEW_LINE>org.bukkit.entity.En...
getPluginManager().callEvent(destroyEvent);
800,512
// Substitute for FormattingUtils if there is no dependency to core<NEW_LINE>public static String formatDurationAsWords(long durationMillis) {<NEW_LINE>String format = "";<NEW_LINE>String second = "second";<NEW_LINE>String minute = "minute";<NEW_LINE>String hour = "hour";<NEW_LINE>String day = "day";<NEW_LINE>String da...
replacePattern(duration, "^0 days, ", "");
989,173
public DatastorePartitions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatastorePartitions datastorePartitions = new DatastorePartitions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
)).unmarshall(context));
1,357,463
public static DescribeSqlServerRestoresResponse unmarshall(DescribeSqlServerRestoresResponse describeSqlServerRestoresResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSqlServerRestoresResponse.setRequestId(_ctx.stringValue("DescribeSqlServerRestoresResponse.RequestId"));<NEW_LINE>describeSqlServerRestoresResponse...
("DescribeSqlServerRestoresResponse.SqlServerRestores[" + i + "].ClusterId"));
619,732
public void onSaveInstanceState(Bundle savedInstanceState) {<NEW_LINE>super.onSaveInstanceState(savedInstanceState);<NEW_LINE>Log.d(TAG, "Saving selections in onSaveInstanceState: " + "position: " + currentPosition + ", " + "class: " + currentSelection + ", " + "mouseEvents: " + enableMouseEvents + ", " + "joystickEven...
", " + "VerboseLogging: " + verboseLogging + ", ");
137,350
public boolean processRequest(@Nullable CorsConfiguration config, HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>Collection<String> varyHeaders = response.getHeaders(HttpHeaders.VARY);<NEW_LINE>if (!varyHeaders.contains(HttpHeaders.ORIGIN)) {<NEW_LINE>response.addHeader(HttpHead...
HttpHeaders.VARY, HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS);
1,670,805
public String buildClipboard() {<NEW_LINE>// Data collection<NEW_LINE>Map<String, Map<String, String>> data = new LinkedHashMap<>();<NEW_LINE>// Current section title/map<NEW_LINE>String currentSection = null;<NEW_LINE>Map<MASK><NEW_LINE>// Current section key<NEW_LINE>boolean labelIsKey = true;<NEW_LINE>String current...
<String, String> currentMap = null;
968,933
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.cc_t, NativeType.UCHAR);
232,857
final DescribeAuditFindingResult executeDescribeAuditFinding(DescribeAuditFindingRequest describeAuditFindingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditFindingRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Descr...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
79,617
public void run() throws Exception {<NEW_LINE>initializeOutputDir();<NEW_LINE>IOUtil.checkDirectoryArgument(modelRoot, "Model Root");<NEW_LINE>IOUtil.checkFileArgument(inputPath, "Input File");<NEW_LINE>Path out = outDir.resolve(inputPath.toFile().getName() + ".ne");<NEW_LINE>List<String> lines = Files.readAllLines(inp...
sentence = TextUtil.normalizeSpacesAndSoftHyphens(sentence);
162,678
public void handleLdsResponse(ServerInfo serverInfo, String versionInfo, List<Any> resources, String nonce) {<NEW_LINE>syncContext.throwIfNotInThisSynchronizationContext();<NEW_LINE>Map<String, ParsedResource> parsedResources = new HashMap<>(resources.size());<NEW_LINE>Set<String> unpackedResources = new HashSet<>(reso...
retainedRdsResources, versionInfo, nonce, errors);
1,095,126
public final void closeChildWrappers() {<NEW_LINE>// Close any child wrappers in the child wrapper list.<NEW_LINE>if (childWrappers != null && !childWrappers.isEmpty()) {<NEW_LINE>JdbcObject wrapper = null;<NEW_LINE>// Children remove themselves from the childWrappers list as they<NEW_LINE>// are closed.<NEW_LINE>for (...
[] { wrapper, closeX });
1,386,152
private void adjustTargetLiveOffsetUs(long liveOffsetUs) {<NEW_LINE>// Stay in a safe distance (3 standard deviations = >99%) to the minimum possible live offset.<NEW_LINE>long safeOffsetUs = smoothedMinPossibleLiveOffsetUs + 3 * smoothedMinPossibleLiveOffsetDeviationUs;<NEW_LINE>if (currentTargetLiveOffsetUs > safeOff...
(maxPlaybackSpeed - 1f) * minUpdateIntervalUs);
978,927
public static void main(String[] args) throws Exception {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>int parallelism = 2;<NEW_LINE>int spouts = parallelism;<NEW_LINE>builder.setSpout("word", new TestWordSpout(Duration.ofMillis(0)), spouts);<NEW_LINE>int bolts = 2 * parallelism;<NEW_LINE>builder....
put(Config.TOPOLOGY_WORKER_CHILDOPTS, "-XX:+HeapDumpOnOutOfMemoryError");
701,852
public void initComplete(Bus bus) {<NEW_LINE>if (bus == null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "initComplete", "bus == NULL");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LibertyApplicationBus.Type busType = bus.getExtension(LibertyApplicationBus.Type.class);<NE...
final LibertyLoggingOutInterceptor out = new LibertyLoggingOutInterceptor();
846,119
public AviatorObject call(final Map<String, Object> env, final AviatorObject arg1, final AviatorObject arg2) {<NEW_LINE>Object coll = arg1.getValue(env);<NEW_LINE>Object key = arg2.getValue(env);<NEW_LINE>if (coll == null) {<NEW_LINE>throw new NullPointerException("the collection of seq.get is null, which the value of ...
IllegalArgumentException("Invalid index `" + key + "` for list,it's not a number.");
927,961
public Collection<DeploymentTarget> execute(MBeanServerConnection connection) throws Exception {<NEW_LINE>List<DeploymentTarget> <MASK><NEW_LINE>ObjectName service = new // NOI18N<NEW_LINE>ObjectName(// NOI18N<NEW_LINE>"com.bea:Name=DomainRuntimeService," + "Type=weblogic.management.mbeanservers.domainruntime.DomainRun...
result = new ArrayList<>();
473,046
private boolean handleTopicAssignmentOnline(String topic, String srcCluster, String dstCluster) {<NEW_LINE>HelixMirrorMakerManager helixManager = _currentControllerInstance.getHelixResourceManager();<NEW_LINE>if (helixManager.isTopicExisted(topic)) {<NEW_LINE>LOGGER.warn(<MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LIN...
"Topic {} already exists from cluster {} to {}", topic, srcCluster, dstCluster);
1,280,287
protected List<GeneratorTask> createTasks() throws Exception {<NEW_LINE>List<GeneratorTask> generatorTasks = new ArrayList<>();<NEW_LINE>if (model.getEndpointOperation() != null) {<NEW_LINE>String cacheName = model.getMetadata().getSyncInterface() + "EndpointCache";<NEW_LINE>String cacheLoaderName = model.getMetadata()...
.getEndpointDiscoveryCacheLoaderTemplate(), loaderDataModel));
678,630
private static void extendParentWithAnswer(List<SusiIntent> preceding_intents, SusiIntent child_intent) {<NEW_LINE>// check if the child is qualified - if it is actually a child or a parent on root level<NEW_LINE>int depth = child_intent.getDepth();<NEW_LINE>// not a child<NEW_LINE>if (depth <= 0)<NEW_LINE>return;<NEW_...
.getPattern().pattern();
462,906
// GEN-LAST:event_nextPageButtonActionPerformed<NEW_LINE>@Messages({ "# {0} - selectedPage", "# {1} - maxPage", "ResultsPanel.invalidPageNumber.message=The selected page number {0} does not exist. Please select a value from 1 to {1}.", "ResultsPanel.invalidPageNumber.title=Invalid Page Number" })<NEW_LINE>private void ...
getItemAt(pageSizeComboBox.getSelectedIndex());
1,253,684
private DataBase select(String logicDbName, DatabaseSet dbSet, DalHints hints, String shard, boolean isMaster, boolean isSelect) throws DalException {<NEW_LINE>if (dbSet instanceof ClusterDatabaseSet && !((ClusterDatabaseSet) dbSet).getCluster().getRouteStrategyConfig().multiMaster()) {<NEW_LINE>return clusterSelect(db...
getSelector().select(context);
1,319,278
public void changeOrder(final String pageId, final String direction) throws ServiceException {<NEW_LINE>final Transaction transaction = pageRepository.beginTransaction();<NEW_LINE>try {<NEW_LINE>final JSONObject srcPage = pageRepository.get(pageId);<NEW_LINE>final int srcPageOrder = srcPage.getInt(Page.PAGE_ORDER);<NEW...
), srcPage, Page.PAGE_ORDER);
1,177,686
public static ListDistributedProductResponse unmarshall(ListDistributedProductResponse listDistributedProductResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDistributedProductResponse.setRequestId(_ctx.stringValue("ListDistributedProductResponse.RequestId"));<NEW_LINE>listDistributedProductResponse.setSuccess(_ctx.b...
= new ArrayList<Items>();
436,219
Data pollInternal(long timeout) {<NEW_LINE><MASK><NEW_LINE>long itemId = reservedOffer == null ? -1 : reservedOffer.getItemId();<NEW_LINE>TxnReservePollOperation operation = new TxnReservePollOperation(name, timeout, itemId, tx.getTxnId());<NEW_LINE>operation.setCallerUuid(tx.getOwnerUuid());<NEW_LINE>try {<NEW_LINE>Fu...
QueueItem reservedOffer = offeredQueue.peek();
1,144,299
public Future<Void> deleteResource(Reconciliation reconciliation, ResourceName resourceName) {<NEW_LINE>Promise<Void> handler = Promise.promise();<NEW_LINE>vertx.executeBlocking(future -> {<NEW_LINE>try {<NEW_LINE>// Delete the resource by the topic name, because neither ZK nor Kafka know the resource name<NEW_LINE>if ...
"KafkaTopic {} could not be deleted, since it doesn't seem to exist", resourceName.toString());
1,276,222
private // returns true iff wraps<NEW_LINE>boolean putObject(Object o) {<NEW_LINE>if (5 * size / 4 > table.length)<NEW_LINE>rehash(3 * table.length / 2);<NEW_LINE>size++;<NEW_LINE>int sysID = System.identityHashCode(o);<NEW_LINE>int bucket = sysID % table.length;<NEW_LINE>boolean wrap = usedId(sysID);<NEW_LINE>int temp...
.valueOf(nextFreeId()));
226,763
void afterStatementClose(CON connectionKey, STMT statementKey) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("After statement close");<NEW_LINE>}<NEW_LINE>ConnectionInfo connectionInfo = this.openConnections.get(connectionKey);<NEW_LINE>// ConnectionInfo may be null if Connection was closed before Statement...
connectionInfo.nestedResultSetSpans.remove(resultSetKey);
1,456,522
private void showDebugCounters() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle("Tile Source");<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(Counters.class.getCanonicalName() + "\nPerformance and debug counters\n\n");<NEW_LINE>sb.append(<MASK><NE...
"Out of memory errors: " + Counters.countOOM + "\n");
1,826,332
public static Query<Long> averagePlaytimePerRegularPlayer(long after, long before, Long threshold) {<NEW_LINE>return database -> {<NEW_LINE>// INNER JOIN limits the users to only those that are regular<NEW_LINE>String selectPlaytimePerPlayer = SELECT + "p." + SessionsTable.USER_UUID + "," + "SUM(p." + SessionsTable.SES...
+ FROM + '(' + selectPlaytimePerPlayer + ") q1";
1,706,804
final DeleteConfigurationSetEventDestinationResult executeDeleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest deleteConfigurationSetEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConfigurationSetEventDestinationRequest);<NEW_LINE>AWS...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteConfigurationSetEventDestination");
794,141
public void showMissingQuantityOfProduct(ActionRequest request, ActionResponse response) {<NEW_LINE>Map<String, Long> mapId = Beans.get(ProjectedStockService.class).getProductIdCompanyIdStockLocationIdFromContext(request.getContext());<NEW_LINE>if (mapId == null || mapId.get("productId") == 0L) {<NEW_LINE>return;<NEW_L...
productId = mapId.get("productId");
779,145
public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (keyed) {<NEW_LINE>builder.startObject(CommonFields.VALUES.getPreferredName());<NEW_LINE>for (int i = 0; i < keys.length; ++i) {<NEW_LINE>String key = String<MASK><NEW_LINE>double value = value(keys[i]);<NEW_L...
.valueOf(keys[i]);
365,927
public ListPoliciesGrantingServiceAccessEntry unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListPoliciesGrantingServiceAccessEntry listPoliciesGrantingServiceAccessEntry = new ListPoliciesGrantingServiceAccessEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetD...
XMLEvent xmlEvent = context.nextEvent();
1,238,975
private static ResponseInfo buildResponseInfo(okhttp3.Response response, String ip, long duration, final UpToken upToken, final long totalSize) {<NEW_LINE><MASK><NEW_LINE>String reqId = response.header("X-Reqid");<NEW_LINE>reqId = (reqId == null) ? null : reqId.trim().split(",")[0];<NEW_LINE>byte[] body = null;<NEW_LIN...
int code = response.code();
1,657,601
public static void main(String[] args) {<NEW_LINE>// Parse text to separate words<NEW_LINE>String INPUT_TEXT = "Hello World! Hello All! Hi World!";<NEW_LINE>// Create Multiset<NEW_LINE>Multiset<String> multiset = LinkedHashMultiset.create(Arrays.asList(INPUT_TEXT.split(" ")));<NEW_LINE>// Print count words<NEW_LINE>// ...
println(multiset.elementSet());
973,594
public void read(org.apache.thrift.protocol.TProtocol prot, TFJvmGcDetailed struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(8);<NEW_LINE>if (incoming.get(0)) {...
.jvmPoolSurvivorSpaceUsed = iprot.readDouble();
901,857
static HeapCompactDoublesSketch heapifyInstance(final Memory srcMem) {<NEW_LINE>final long memCapBytes = srcMem.getCapacity();<NEW_LINE>if (memCapBytes < Long.BYTES) {<NEW_LINE>throw new SketchesArgumentException("Source Memory too small: " + memCapBytes + " < 8");<NEW_LINE>}<NEW_LINE>final int preLongs = extractPreLon...
HeapCompactDoublesSketch hds = new HeapCompactDoublesSketch(k);
992,761
private void invokeSimpleImplProviderService(String msg, String warName, String serviceName, PrintWriter writer) {<NEW_LINE>StringBuilder sBuilder = new StringBuilder("http://").append(hostname).append(":").append(port).append("/").append(warName).append("/").append(serviceName).append("?wsdl");<NEW_LINE>// System.out....
SOAPMessage message = messageFactory.createMessage();
1,422,422
protected void createMethodParamsGrid(MethodInfo methodInfo) {<NEW_LINE>GridLayout methodParamsGrid = uiComponents.create(GridLayout.class);<NEW_LINE>methodParamsGrid.setWidth("100%");<NEW_LINE>methodParamsGrid.setSpacing(true);<NEW_LINE>methodParamsGrid.setColumns(2);<NEW_LINE>methodParamsGrid.setColumnExpandRatio(1, ...
updateMethodParameters(selectedMethod.getParameters());
735,890
public static String streamFile(HttpServletResponse response, File file) {<NEW_LINE>if (file == null)<NEW_LINE>return "No File";<NEW_LINE>if (!file.exists())<NEW_LINE>return "File not found: " + file.getAbsolutePath();<NEW_LINE>MimeType mimeType = MimeType.get(file.getAbsolutePath());<NEW_LINE>// Stream File<NEW_LINE>t...
= System.currentTimeMillis() - time;
1,805,180
public <T extends Actor> Cell<T> add(@Null T actor) {<NEW_LINE>Cell<T> cell = obtainCell();<NEW_LINE>cell.actor = actor;<NEW_LINE>// The row was ended for layout, not by the user, so revert it.<NEW_LINE>if (implicitEndRow) {<NEW_LINE>implicitEndRow = false;<NEW_LINE>rows--;<NEW_LINE>cells.peek().endRow = false;<NEW_LIN...
= lastCell.column + lastCell.colspan;
733,351
public ListManagedEndpointsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListManagedEndpointsResult listManagedEndpointsResult = new ListManagedEndpointsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
1,770,526
final DescribePrincipalMappingResult executeDescribePrincipalMapping(DescribePrincipalMappingRequest describePrincipalMappingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePrincipalMappingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
243,418
public static void main(String[] args) {<NEW_LINE>LOGGER.info("---------------------");<NEW_LINE>LOGGER.info("KEY VAULT - SECRETS");<NEW_LINE>LOGGER.info("IDENTITY - CREDENTIAL");<NEW_LINE>LOGGER.info("---------------------");<NEW_LINE>// Configure authority host from AZURE_CLOUD<NEW_LINE>String azureCloud = System.get...
azureCloud, SecretServiceVersion.getLatest());
1,091,850
private List<List<Object>> genInfo() {<NEW_LINE>ArrayList<List<Object>> list = new ArrayList<>();<NEW_LINE>list.add(Arrays.asList(new Object[] { "Instances", String.valueOf(node4CalcPos.node.getCounter().getNumInst()), "" }));<NEW_LINE>list.add(Arrays.asList(new Object[] { "Weights", print(node4CalcPos.node.getCounter(...
/ weight * 100) }));
1,378,990
private static void validateConditionConnections(ModuleTypeRegistry mtRegistry, @NonNull Condition condition, @NonNull List<? extends @NonNull Trigger> triggers) {<NEW_LINE>// get module type of the condition<NEW_LINE>ConditionType type = (ConditionType) mtRegistry.get(condition.getTypeUID());<NEW_LINE>if (type == null...
connectionsMap.put(inputName, connection);
689,938
private JPanel buttonTab(final RailButton rbc) {<NEW_LINE>JPanel primary = new JPanel(new MigLayout("fill"));<NEW_LINE>JPanel panel = new JPanel(new MigLayout());<NEW_LINE>{<NEW_LINE>// // Outer Diameter<NEW_LINE>panel.add(new JLabel(trans.get("RailBtnCfg.lbl.OuterDiam")));<NEW_LINE>DoubleModel ODModel = new DoubleMode...
primary.add(panel, "grow, gapright 201p");
1,359,061
protected String doInBackground(String... params) {<NEW_LINE>String host = params[0];<NEW_LINE>String message = params[1];<NEW_LINE>String portStr = params[2];<NEW_LINE>int port = TextUtils.isEmpty(portStr) ? 0 : Integer.valueOf(portStr);<NEW_LINE>try {<NEW_LINE>channel = OkHttpChannelBuilder.forAddress(host, port).tra...
.usePlaintext().build();
1,560,742
public static void run(JavaPlatform javaPlatform, FileObject js, boolean debug) throws IOException, UnsupportedOperationException {<NEW_LINE>LifecycleManager.getDefault().saveAll();<NEW_LINE>Map<String, Object> properties = new HashMap<>();<NEW_LINE>properties.put(JavaRunner.PROP_PLATFORM, javaPlatform);<NEW_LINE>final...
put(JavaRunner.PROP_CLASSNAME, NASHORN_SHELL);
855,263
public static void renderArrow(MatrixStack matrixStack, BlockPos start, BlockPos end) {<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>bufferBuilder.begin(VertexFormat.DrawMode.DEBUG_LINES, VertexFormats.POSITION);<NEW_LINE>int startX = start.getX();<NEW_LINE>int startY = start.g...
2, 1).next();
1,505,151
// Calculate a rotation for the given time<NEW_LINE>Quaternion rotForTime(double sinceStart) {<NEW_LINE>double totalAng = (velocity + 0.5 * acceleration * sinceStart) * sinceStart;<NEW_LINE>AngleAxis angAxis = new AngleAxis(totalAng, axis);<NEW_LINE>Quaternion newRotQuat = startQuat.multiply(angAxis);<NEW_LINE>if (nort...
newUp = globeView.prospectiveUp(newRotQuat);
1,110,022
public void dispatchFunction(HippyViewPager view, String functionName, HippyArray var) {<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int curr = view.getCurrentItem();<NEW_LINE>switch(functionName) {<NEW_LINE>case FUNC_SET_PAGE:<NEW_LINE>if (var != null) {<NEW_LINE>Object selected = var.get(0);<NEW...
.getAdapter().getCount();
1,693,471
protected void init0() {<NEW_LINE>for (Parameter parameter : info.getParameters()) {<NEW_LINE>Name parameterRoutineName = name(parameter.getSpecificCatalog(), parameter.getSpecificSchema(), parameter.getSpecificPackage(), parameter.getSpecificName());<NEW_LINE>if (specificName.equals(parameterRoutineName)) {<NEW_LINE>D...
addParameter(InOutDefinition.INOUT, p);
317,727
private void showPopup() {<NEW_LINE>if (!isShown()) {<NEW_LINE>// set popup to be always on top to be in front of all<NEW_LINE>// floating separate windows<NEW_LINE>popup = new JWindow();<NEW_LINE>popup.setAlwaysOnTop(true);<NEW_LINE>popup.getContentPane().add(switcher);<NEW_LINE>Dimension popupDim = switcher.getPrefer...
(popupDim.height / 2));
1,693,222
public final PrimaryContext commandPrimary() throws RecognitionException {<NEW_LINE>PrimaryContext _localctx = new PrimaryContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>setState(1547);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case AS:<NEW_LINE>case IN:<NEW_LINE>case ...
enterRule(_localctx, 256, RULE_commandPrimary);
1,480,924
public void run(final FlowTrigger trigger, final Map data) {<NEW_LINE>taskProgress("create cdRoms");<NEW_LINE>final VmInstanceSpec spec = (VmInstanceSpec) data.get(VmInstanceConstant.Params.VmInstanceSpec.toString());<NEW_LINE>List<CdRomSpec> cdRomSpecs = spec.getCdRomSpecs();<NEW_LINE>if (cdRomSpecs.isEmpty()) {<NEW_L...
() : Platform.getUuid();
981,499
private static Fix finishFix(SuggestedFix baseFix, Type exceptionType, List<String> newAsserts, List<StatementTree> throwingStatements, VisitorState state) {<NEW_LINE>if (throwingStatements.isEmpty()) {<NEW_LINE>return baseFix;<NEW_LINE>}<NEW_LINE>SuggestedFix.Builder fix = SuggestedFix.builder().merge(baseFix);<NEW_LI...
.getKind() == Kind.EXPRESSION_STATEMENT;
1,326,035
public void onQuotaStatus(QuotaStatusEvent event) {<NEW_LINE>QuotaStatus quotaStatus = event.getQuotaStatus();<NEW_LINE>// always show warning if the user is over quota<NEW_LINE>if (quotaStatus.isOverQuota()) {<NEW_LINE>long over = quotaStatus.getUsed() - quotaStatus.getQuota();<NEW_LINE>StringBuilder msg = new StringB...
quotaStatus.getQuota())));
235,735
public Map<String, String> provideLicensesByName(Context context) {<NEW_LINE>Map<String, String> byName = new HashMap<>();<NEW_LINE>byName.put(context.getString(R.string.license_name_cc0), Prefs.Licenses.CC0);<NEW_LINE>byName.put(context.getString(R.string.license_name_cc_by<MASK><NEW_LINE>byName.put(context.getString(...
), Prefs.Licenses.CC_BY_3);
1,785,009
private void showAnalysisNotification(@NotNull String title, @NotNull String content, boolean isError) {<NEW_LINE>final ToolWindow dartProblemsView = ToolWindowManager.getInstance(myProject).getToolWindow(DartProblemsView.TOOLWINDOW_ID);<NEW_LINE>if (dartProblemsView != null && !dartProblemsView.isVisible()) {<NEW_LINE...
notification.setIcon(FlutterIcons.Flutter);
77,499
protected void createA(List<AssociatedPair> points, DMatrixRMaj A) {<NEW_LINE>A.reshape(points.size(), 9, false);<NEW_LINE>A.zero();<NEW_LINE>Point2D_F64 f_norm = new Point2D_F64();<NEW_LINE>Point2D_F64 s_norm = new Point2D_F64();<NEW_LINE>final int size = points.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LI...
unsafe_set(i, 8, 1);
1,458,246
public void visit(Node<E> expr) {<NEW_LINE>assert expr != null;<NEW_LINE>if (expr instanceof ColumnReferenceNode<?, ?>) {<NEW_LINE>sb.append(((ColumnReferenceNode<?, ?>) expr).getColumn().getFullQualifiedName());<NEW_LINE>} else if (expr instanceof NewUnaryPostfixOperatorNode<?>) {<NEW_LINE>visit((NewUnaryPostfixOperat...
(NewInOperatorNode<E>) expr);
1,344,815
public Pair<Expression, Concrete.Expression> visitLet(Concrete.LetExpression expr, Expression coreExpr) {<NEW_LINE>if (matchesSubExpr(expr))<NEW_LINE>return new Pair<>(coreExpr, expr);<NEW_LINE>var coreLetExpr = <MASK><NEW_LINE>if (coreLetExpr == null)<NEW_LINE>return nullWithError(SubExprError.mismatch(coreExpr));<NEW...
coreExpr.cast(LetExpression.class);
699,588
public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) {<NEW_LINE>if (oldStack == newStack) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// basic changes<NEW_LINE>if (slotChanged || oldStack.getItem() != newStack.getItem()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// ...
get(attribute).iterator();
1,569,952
private static int buildConverters(List<TypeConverter> converters, Class<?>[] parameters, Class<?>[] arguments) {<NEW_LINE>int cost = 0;<NEW_LINE>int tempCost = -1;<NEW_LINE>int size = arguments.length;<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>if (arguments[i] == null) {<NEW_LINE>if (parameters[i].isPrimitive...
, arguments[i], converters);
1,786,261
final DeleteMitigationActionResult executeDeleteMitigationAction(DeleteMitigationActionRequest deleteMitigationActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMitigationActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,350,507
protected void processHandlerMethodException(HandlerMethod handlerMethod, Exception exception, Message<?> message) {<NEW_LINE>InvocableHandlerMethod invocable = getExceptionHandlerMethod(handlerMethod, exception);<NEW_LINE>if (invocable == null) {<NEW_LINE>logger.error("Unhandled exception from message handler method",...
Throwable cause = exception.getCause();
946,421
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {<NEW_LINE>// make the class public otherwise we can't call its static init converters<NEW_LINE>access &= ~(Opcodes.ACC_PRIVATE | Opcodes.ACC_PROTECTED);<NEW_LINE>access |= Opcodes.ACC_PUBLIC;<NEW_LINE>// if...
String[interfaces.length + 1];
806,101
final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListDomainsRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,527,515
protected int initialAssignToNearestCluster() {<NEW_LINE>assert k == means.length;<NEW_LINE>double[][] sep2 = new double[k][k];<NEW_LINE>computeSquaredSeparation(sep2);<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>NumberVector fv = relation.get(it);<NEW_LINE>// Find closest cen...
.sqrt(min2) : min2);
389,913
private void resize() {<NEW_LINE>final byte[] oldKeysArr = keysArr_;<NEW_LINE>final short[] oldCouponsArr = couponsArr_;<NEW_LINE>final byte[] oldStateArr = stateArr_;<NEW_LINE>final int oldTableEntries = tableEntries_;<NEW_LINE>tableEntries_ = nextPrime((int) (curCountEntries_ / COUPON_MAP_TARGET_FILL_FACTOR));<NEW_LI...
(int) (tableEntries_ * COUPON_MAP_GROW_TRIGGER_FACTOR);
785,445
public void addParams(CommandArguments args) {<NEW_LINE>if (type != null) {<NEW_LINE>args.add(SearchKeyword.ON.name());<NEW_LINE>args.add(type.name());<NEW_LINE>}<NEW_LINE>if (async) {<NEW_LINE>args.add(SearchKeyword.ASYNC.name());<NEW_LINE>}<NEW_LINE>if (prefixes != null && prefixes.length > 0) {<NEW_LINE>args.add(Sea...
.toString(prefixes.length));
785,410
private void uuidChanged(String fromUuid, String toUuid) {<NEW_LINE>if (ActFmInvoker.SYNC_DEBUG)<NEW_LINE>Log.e(ERROR_TAG, "Task UUID collision -- old uuid: " + fromUuid + ", new uuid: " + toUuid);<NEW_LINE>// Update reference from UserActivity to task uuid<NEW_LINE>UserActivityDao activityDao = PluginServices.getUserA...
eq(fromUuid)), activityTemplate);
97,995
public void paint(Graphics2D g) {<NEW_LINE>if (!chart.getStyler().isLegendVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (chart.getSeriesMap().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// if the area to draw a chart on is so small, don't even bother<NEW_LINE>if (chart.getPlot().getBounds().getWidth() < 30...
bounds.getHeight()) / 2.0;
251,401
public void run() throws Exception {<NEW_LINE>Map<Function<MASK><NEW_LINE>DecompilerCallback<Void> callback = new DecompilerCallback<Void>(currentProgram, new SwitchAnalysisDecompileConfigurer(currentProgram)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void process(DecompileResults results, TaskMonitor m) throws Ex...
, Instruction> instructionsByFunction = filterFunctions();
1,738,043
public Sequence list(VDB vdb, String opt) {<NEW_LINE>ArchiveDir[] subDirs = this.subDirs;<NEW_LINE>if (subDirs == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int size = subDirs.length;<NEW_LINE>Sequence seq = new Sequence(size);<NEW_LINE>boolean listFiles = true, listDirs = false;<NEW_LINE>if (opt != null) {<NEW_...
new VS(vdb, section));
505,307
private void checkConsumedAndProducedValues(Instruction ins, ValueNumber[] consumedValueList, ValueNumber[] producedValueList) {<NEW_LINE>int numConsumed = <MASK><NEW_LINE>int numProduced = ins.produceStack(getCPG());<NEW_LINE>if (numConsumed == Constants.UNPREDICTABLE) {<NEW_LINE>throw new InvalidBytecodeException("Un...
ins.consumeStack(getCPG());
1,218,110
public void processFrame(T image) {<NEW_LINE>if (detector.getRequiresGradient()) {<NEW_LINE>if (derivX == null) {<NEW_LINE>derivX = GeneralizedImageOps.createSingleBand(derivType, <MASK><NEW_LINE>derivY = GeneralizedImageOps.createSingleBand(derivType, image.width, image.height);<NEW_LINE>}<NEW_LINE>// compute the imag...
image.width, image.height);
584,561
private static List<? extends TypeMirror> computeEnhancedForLoop(Set<ElementKind> types, CompilationInfo info, TreePath parent, Tree error, int offset) {<NEW_LINE>EnhancedForLoopTree efl = (EnhancedForLoopTree) parent.getLeaf();<NEW_LINE>if (efl.getExpression() != error) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Type...
types.add(ElementKind.FIELD);
1,506,629
final CreateTableResult executeCreateTable(CreateTableRequest createTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTableRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateTableRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
302,991
public void updateClientConfiguration(ClientConfiguration clientConfig, RemoteFile file) throws Exception {<NEW_LINE>// write contents to a temporary file<NEW_LINE>RemoteFile newClientFile = LibertyFileManager.createRemoteFile(machine, getClientConfigurationPath() + ".tmp");<NEW_LINE>OutputStream os = newClientFile.ope...
).marshal(clientConfig, os);
997,091
private void writeBinding(JndiBinding binding) throws IOException {<NEW_LINE>write("<td>");<NEW_LINE>final String name = binding.getName();<NEW_LINE>final String className = binding.getClassName();<NEW_LINE>final String contextPath = binding.getContextPath();<NEW_LINE>final String value = binding.getValue();<NEW_LINE>i...
+ urlEncode(contextPath) + "\">");
1,522,421
public IRubyObject squeeze_bang(ThreadContext context, IRubyObject[] args) {<NEW_LINE>if (value.getRealSize() == 0) {<NEW_LINE>modifyCheck();<NEW_LINE>return context.nil;<NEW_LINE>}<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>RubyString otherStr = args[0].convertToString();<NEW_LINE>Encoding enc = checkEnco...
squeeze, null, true, enc);
908,639
private void restoreCurrentMap(boolean checkAlternatives) throws FileNotFoundException, IOException, URISyntaxException, XMLException {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>final MapModel map = controller.getMap();<NEW_LINE>final URL url = map.getURL();<NEW_LINE>if (url == ...
url, AlternativeFileMode.ALL) : url;
1,524,056
private void importApp(String appInfo, List<Env> importEnvs, String operator) {<NEW_LINE>App toImportApp = gson.fromJson(appInfo, App.class);<NEW_LINE>String appId = toImportApp.getAppId();<NEW_LINE>toImportApp.setDataChangeCreatedBy(operator);<NEW_LINE>toImportApp.setDataChangeLastModifiedBy(operator);<NEW_LINE>toImpo...
.setDataChangeLastModifiedTime(new Date());
1,280,965
final DescribeQueryResult executeDescribeQuery(DescribeQueryRequest describeQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
412,647
public static NcrackRun parse(InputStream stream) throws IOException {<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(stream, UTF_8));<NEW_LINE>ImmutableList.Builder<DiscoveredCredential<MASK><NEW_LINE>String line;<NEW_LINE>while ((line = reader.readLine()) != null) {<NEW_LINE>Matcher matcher...
> credentialBuilder = ImmutableList.builder();
531,597
private static void notifyReplicatorStatusListener(final Replicator replicator, final ReplicatorEvent event, final Status status, final ReplicatorState newState) {<NEW_LINE>final ReplicatorOptions replicatorOpts = Requires.requireNonNull(replicator.getOpts(), "replicatorOptions");<NEW_LINE>final Node node = Requires.re...
error("Fail to notify ReplicatorStatusListener, listener={}, event={}.", listener, event);
478,729
private void onStyleLoaded(final Style style) {<NEW_LINE>if (modifyLocationButton.getVisibility() == View.VISIBLE) {<NEW_LINE>initDroppedMarker(style);<NEW_LINE>adjustCameraBasedOnOptions();<NEW_LINE>enableLocationComponent(style);<NEW_LINE>if (style.getLayer(DROPPED_MARKER_LAYER_ID) != null) {<NEW_LINE>final GeoJsonSo...
droppedMarkerLayer = style.getLayer(DROPPED_MARKER_LAYER_ID);
1,646,566
public static QueryPackHistoriesResponse unmarshall(QueryPackHistoriesResponse queryPackHistoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPackHistoriesResponse.setRequestId(_ctx.stringValue("QueryPackHistoriesResponse.RequestId"));<NEW_LINE>List<PackInfo> packInfos = new ArrayList<PackInfo>();<NEW_LINE>for (...
("QueryPackHistoriesResponse.PackInfos[" + i + "].CreateTime"));
579,493
private Query<Integer> tableID() {<NEW_LINE>String sql = SELECT + ExtensionTableProviderTable.ID + FROM + ExtensionTableProviderTable.TABLE_NAME + WHERE + ExtensionTableProviderTable.PROVIDER_NAME + "=?" + AND + ExtensionTableProviderTable.PLUGIN_ID <MASK><NEW_LINE>return new QueryStatement<Integer>(sql) {<NEW_LINE><NE...
+ "=" + ExtensionPluginTable.STATEMENT_SELECT_PLUGIN_ID + " LIMIT 1";
943,074
private JsonObject toJsonFromRequestObj(UserInfo ui, Set<String> scope, JsonObject authorizedClaims, JsonObject requestedClaims) {<NEW_LINE>// get the base object<NEW_LINE>JsonObject obj = ui.toJson();<NEW_LINE>Set<String> allowedByScope = translator.getClaimsForScopeSet(scope);<NEW_LINE>Set<<MASK><NEW_LINE>Set<String>...
String> authorizedByClaims = extractUserInfoClaimsIntoSet(authorizedClaims);
428,643
public static String makeBetterErrorString(String msg, SAXParseException ex) {<NEW_LINE>StringBuilder sb = new StringBuilder(msg);<NEW_LINE>sb.append(": ");<NEW_LINE>String str = ex.getMessage();<NEW_LINE>if (str.lastIndexOf('.') == str.length() - 1) {<NEW_LINE>str = str.substring(0, str.length() - 1);<NEW_LINE>}<NEW_L...
append(ex.getSystemId());
1,426,036
private void addDrawerItems() {<NEW_LINE>String[] webmapTitles = { getString(R.string.webmap_geology_us), getString(R.string.webmap_terrestrial_ecosystems), getString(R.string.webmap_hurricanes_cyclones_typhoons) };<NEW_LINE>ArrayAdapter<String> mAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, w...
= new PortalItem(mPortal, "5be0bc3ee36c4e058f7b3cebc21c74e6");