idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,557,410
private static byte[] updateLinkedData(LinkedData linkedData) {<NEW_LINE>if (null == linkedData || null == linkedData.getByteArray() || linkedData.getByteArray().length == 0) {<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>Tuple4<Float, Double, Double, Float> preBlock = linkedData.getData();<NEW_LINE>float preLabel ...
int nonEmptyArrayLength = linkedData.compact();
643,245
public static Writable convert(final Object columnValue, final int columnType) {<NEW_LINE>if (columnValue == null)<NEW_LINE>return new NullWritable();<NEW_LINE>switch(columnType) {<NEW_LINE>case Types.BOOLEAN:<NEW_LINE>return new BooleanWritable((boolean) columnValue);<NEW_LINE>case Types.DATE:<NEW_LINE>case Types.TIME...
new DoubleWritable((double) columnValue);
1,011,013
private void fullContentResponse(HttpRequest request, String index, final String digest) throws IOException {<NEW_LINE>BlobShard blobShard = localBlobShard(index, digest);<NEW_LINE>HttpResponse response = new DefaultHttpResponse(HTTP_1_1, HttpResponseStatus.OK);<NEW_LINE>Netty4CorsHandler.<MASK><NEW_LINE>final RandomAc...
setCorsResponseHeaders(request, response, corsConfig);
742,300
public void createUsersWithListInput(List<User> body) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required...
HashMap<String, String>();
1,735,772
final ListServiceActionsForProvisioningArtifactResult executeListServiceActionsForProvisioningArtifact(ListServiceActionsForProvisioningArtifactRequest listServiceActionsForProvisioningArtifactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceActionsForProvisioningArtifactRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
168,013
private void validateSplitBrainProtectionParameters(String splitBrainProtectionName, long value, String parameterName) {<NEW_LINE>HazelcastProperties nodeProperties = nodeEngine.getProperties();<NEW_LINE>long maxNoHeartbeatMillis = nodeProperties.getMillis(ClusterProperty.MAX_NO_HEARTBEAT_SECONDS);<NEW_LINE>long heartb...
nodeProperties.getMillis(ClusterProperty.HEARTBEAT_INTERVAL_SECONDS);
479,716
public static String findGeneratedName(FileObject parent, String layerPath) {<NEW_LINE>// NOI18N<NEW_LINE>Matcher m = Pattern.compile("(.+/)?([^/.]+)(\\.[^/]+)?").matcher(layerPath);<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new IllegalArgumentException(layerPath);<NEW_LINE>}<NEW_LINE>String base = m.group(2);<NEW_LI...
= base + '_' + i + ext;
1,159,392
public <T> void declareNamedObject(BiConsumer<Value, T> consumer, NamedObjectParser<T, Context> namedObjectParser, ParseField parseField) {<NEW_LINE>if (consumer == null) {<NEW_LINE>throw new IllegalArgumentException("[consumer] is required");<NEW_LINE>}<NEW_LINE>if (namedObjectParser == null) {<NEW_LINE>throw new Ille...
positions = addConstructorArg(consumer, parseField);
534,281
public static void prepareGpxItemChartTypes(GpxDisplayItem gpxItem, List<ILineDataSet> dataSets) {<NEW_LINE>WptPt wpt = null;<NEW_LINE>gpxItem.chartTypes = null;<NEW_LINE>if (dataSets != null && dataSets.size() > 0) {<NEW_LINE>gpxItem.chartTypes = new GPXDataSetType[dataSets.size()];<NEW_LINE>for (int i = 0; i < dataSe...
OrderedLineDataSet) dataSets.get(i);
1,703,090
public static void horizontal(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final <MASK><NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final ...
int[] dataKer = kernel.data;
1,754,567
private void executeActions(TaskInternal task, @Nullable InputChangesInternal inputChanges) {<NEW_LINE>boolean hasTaskListener = listenerManager.hasListeners(org.gradle.api.execution.TaskActionListener.class) || listenerManager.hasListeners(org.gradle.api.execution.TaskExecutionListener.class);<NEW_LINE>Iterator<InputC...
.getStandardOutputCapture().start();
1,636,847
protected void deleteOldBackupFiles(File backupFolder) {<NEW_LINE>if (configProvider.getBaseConfig().getMain().getDeleteBackupsAfterWeeks().isPresent()) {<NEW_LINE>logger.info("Deleting old backups if any exist");<NEW_LINE>Integer backupMaxAgeInWeeks = configProvider.getBaseConfig().getMain()<MASK><NEW_LINE>File[] zips...
.getDeleteBackupsAfterWeeks().get();
353,387
void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>// We check if the model identifier value is within the range of a 16-bit value here. If it is then it is a sigmodel<NEW_LINE>final byte[] elementAddress = MeshAddress.addressIntToBytes(mElementAddress);<NEW_LINE>final byte[] subscripti...
byte) (mModelIdentifier & 0xFF) };
851,283
private void copyToTable(SnowflakeBatchServiceConfig config) throws SQLException {<NEW_LINE>SerializableFunction<Void, DataSource> dataSourceProviderFn = config.getDataSourceProviderFn();<NEW_LINE>List<String> filesList = config.getFilesList();<NEW_LINE>String database = config.getDatabase();<NEW_LINE>String schema = c...
collect(Collectors.toList());
606,488
public static final Optional<RelNode> view(RelNode input, Calc calc) {<NEW_LINE>if (input instanceof MycatView && ((MycatView) input).banPushdown()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final Pair<ImmutableList<RexNode>, ImmutableList<RexNode>> projectFilter = calc<MASK><NEW_LINE>RelBuilder relBuilde...
.getProgram().split();
1,238,671
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE><MASK><NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>String nonceStr = Config.zhengwuDingding().getNonce();<NEW_LINE>long timeS...
logger.debug("receive:{}", jsonElement);
39,573
public AutogenCommandLineEnvironmentDiff generate(SourceOfRandomness r, GenerationStatus status) {<NEW_LINE>// if (r.nextBoolean())<NEW_LINE>// return null;<NEW_LINE>AutogenCommandLineEnvironmentDiff obj = new AutogenCommandLineEnvironmentDiff();<NEW_LINE>if (r.nextBoolean()) {<NEW_LINE>int size = r.nextInt(0, 10);<NEW...
r.nextInt(0, 10);
1,067,421
final ListRegionalBucketsResult executeListRegionalBuckets(ListRegionalBucketsRequest listRegionalBucketsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRegionalBucketsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
"%s.", listRegionalBucketsRequest.getAccountId());
432,533
public void onViewBound(View view) {<NEW_LINE>super.onViewBound(view);<NEW_LINE>binding = WidgetLeaveGuildDialog$binding$2.INSTANCE.invoke(view);<NEW_LINE>LoadingButton okButton = getOKButton();<NEW_LINE>okButton.setText("OK");<NEW_LINE>okButton.setIsLoading(false);<NEW_LINE>okButton.setOnClickListener(onOkListener != ...
.uikit_btn_bg_color_selector_red : R.c.uikit_btn_bg_color_selector_brand;
268,088
public com.amazonaws.services.route53resolver.model.ResourceInUseException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.route53resolver.model.ResourceInUseException resourceInUseException = new com.amazonaws.services.route53resolver.model.ResourceInUseExcepti...
String currentParentElement = context.getCurrentParentElement();
1,614,699
private void showAddExtensionPopupMenu(View anchorView) {<NEW_LINE>if (addExtensionPopupMenu != null) {<NEW_LINE>addExtensionPopupMenu.dismiss();<NEW_LINE>}<NEW_LINE>addExtensionPopupMenu = new PopupMenu(getActivity(), anchorView);<NEW_LINE>Menu menu = addExtensionPopupMenu.getMenu();<NEW_LINE>// sort disabled extensio...
Menu.NONE, extension.label);
1,639,619
public static void createEventScopeExecution(ExecutionEntity execution) {<NEW_LINE>// parent execution is a subprocess or a miBody<NEW_LINE>ActivityImpl activity = execution.getActivity();<NEW_LINE>ExecutionEntity scopeExecution = (ExecutionEntity) execution.findExecutionForFlowScope(activity.getFlowScope());<NEW_LINE>...
ExecutionEntity eventScopeExecution = scopeExecution.createExecution();
859,764
public final void printGraph(final PrintStream graphWriter, final boolean writeHeader, final int pruneFactor) {<NEW_LINE>if (writeHeader) {<NEW_LINE>graphWriter.println("digraph assemblyGraphs {");<NEW_LINE>}<NEW_LINE>for (final E edge : edgeSet()) {<NEW_LINE>final String edgeString = String.format("\t%s -> %s ", getEd...
+ v.getAdditionalInfo()));
1,057,161
private void readBadges(String url, Map<String, Map<String, Badge>> badgeMap) {<NEW_LINE>try {<NEW_LINE>JSONObject globalBadgeSets = new JSONObject(Service.urlToJSONString(<MASK><NEW_LINE>for (Iterator<String> it = globalBadgeSets.keys(); it.hasNext(); ) {<NEW_LINE>String badgeSet = it.next();<NEW_LINE>Map<String, Badg...
url)).getJSONObject("badge_sets");
1,504,221
static void applyStoredDisplaySettings(Stage stage, String name) {<NEW_LINE>try {<NEW_LINE>if (PREFERENCES.nodeExists(name)) {<NEW_LINE>Preferences stagePreferences = PREFERENCES.node(name);<NEW_LINE>boolean wasMaximized = stagePreferences.getBoolean(WINDOW_MAXIMIZED, false);<NEW_LINE>if (wasMaximized) {<NEW_LINE>stage...
error(ex, "Could not access preferences for window " + name);
344,645
public void adicionaMensagemLida(String id) {<NEW_LINE>File diretorioConfiguracoes = Configuracoes.getInstancia().getDiretorioConfiguracoes();<NEW_LINE>File arquivoMensagensLidas = new File(diretorioConfiguracoes, "mensagensLidas.txt");<NEW_LINE>try {<NEW_LINE>mensagensLidas.add(id);<NEW_LINE>StringBuilder mensagens = ...
toString(), arquivoMensagensLidas, "UTF-8");
1,281,203
private void addMaterialRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String folder = "common/materials/";<NEW_LINE>// ores<NEW_LINE>metalCrafting(consumer, TinkerMaterials.cobalt, folder);<NEW_LINE>// tier 3<NEW_LINE>metalCrafting(consumer, TinkerMaterials.slimesteel, folder);<NEW_LINE>metalCrafting(<MASK><NEW...
consumer, TinkerMaterials.amethystBronze, folder);
1,141,692
public void newStreamWithData() throws Exception {<NEW_LINE>HTTP2Client http2Client = new HTTP2Client();<NEW_LINE>http2Client.start();<NEW_LINE>// tag::newStreamWithData[]<NEW_LINE>SocketAddress serverAddress = new InetSocketAddress("localhost", 8080);<NEW_LINE>CompletableFuture<Session> sessionCF = http2Client.connect...
Session session = sessionCF.get();
594,929
private void initPluginComponents() {<NEW_LINE>// Search for plugin components registered through the OSGI bundle<NEW_LINE>// context.<NEW_LINE>Collection<ServiceReference<PluginComponentFactory>> serRefs;<NEW_LINE>String osgiFilter = "(" + Container.CONTAINER_ID + "=" + Container.CONTAINER_CHAT_HELP_MENU.getID() + ")"...
getServiceReferences(PluginComponentFactory.class, osgiFilter);
399,787
public void configure(Context context) {<NEW_LINE>this.context = context;<NEW_LINE>port = context.getInteger(ConfigConstants.CONFIG_PORT);<NEW_LINE>host = context.getString(ConfigConstants.CONFIG_HOST, "0.0.0.0");<NEW_LINE>Configurables.ensureRequiredNonNull(context, ConfigConstants.CONFIG_PORT);<NEW_LINE>Preconditions...
getInteger(ConfigConstants.STAT_INTERVAL_SEC, 60);
678,106
private void buildRouterOperationList(List<RouterOperation> routerOperationList, ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository, OpenAPI openAPI, String path, Entry<RequestMappingInfo, HandlerMethod> entry, String subPath, ControllerType controllerType, MethodResourceMapping methodResourceMapp...
requestMappingInfo, handlerMethod, requestMethods, null);
1,085,254
private List<NameValueCountPair> listApplicationPair(Business business, EffectivePerson effectivePerson, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Task.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(Stri...
collect(Collectors.toList());
624,902
public void marshall(CreateNetworkRequest createNetworkRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createNetworkRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createNetworkRequest.get...
createNetworkRequest.getFramework(), FRAMEWORK_BINDING);
607,266
/*<NEW_LINE>* Calculates the value of the adjustment by first getting the current value of the order and then<NEW_LINE>* calculating the value of this adjustment.<NEW_LINE>*<NEW_LINE>* If this adjustment value is greater than the currentOrderValue (e.g. would make the order go negative<NEW_LINE>* then the adjustment va...
, 5, RoundingMode.HALF_EVEN));
334,314
public PagePosition renderIntoArea(int x, int y, int width, int height, PagePosition current, int index) {<NEW_LINE>current = current.guaranteeSpace(getFontRenderer().getMaxFontHeight() * 4, height);<NEW_LINE>int colour = getColour();<NEW_LINE>if (current.page == index) {<NEW_LINE>RenderUtil.setGLColorFromInt(colour);<...
y, width, height, index);
619,756
private void uncomment(LineDocument doc, int startOffset, int lineCount, String lineCommentString) throws BadLocationException {<NEW_LINE>final int lineCommentStringLen = lineCommentString.length();<NEW_LINE>for (int offset = startOffset; lineCount > 0; lineCount--) {<NEW_LINE>// Get the first non-whitespace char on th...
doc.remove(firstNonWhitePos, lineCommentStringLen);
1,276,533
private void loadNode497() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_Open_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), L...
(1), 0.0, false);
1,596,849
public Container unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Container container = new Container();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
class).unmarshall(context));
531,249
public FieldFolder unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FieldFolder fieldFolder = new FieldFolder();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
)).unmarshall(context));
533,493
public final XmldeclContext xmldecl() throws RecognitionException {<NEW_LINE>XmldeclContext _localctx = new XmldeclContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(45);<NEW_LINE>match(SPECIAL_OPEN_XML);<NEW_LINE>setState(49);<...
enterRule(_localctx, 4, RULE_xmldecl);
674,199
public static void perform() throws Exception {<NEW_LINE>final String fromVer = "3.9.0";<NEW_LINE>final String toVer = "4.0.0";<NEW_LINE>LOGGER.log(Level.INFO, "Upgrading from version [" + <MASK><NEW_LINE>final BeanManager beanManager = BeanManager.getInstance();<NEW_LINE>final OptionRepository optionRepository = beanM...
fromVer + "] to version [" + toVer + "]....");
216,845
public void initializeTools(@Nonnull List<Tools> outGlobalTools, @Nonnull List<Tools> outLocalTools, @Nonnull List<Tools> outGlobalSimpleTools) {<NEW_LINE>final List<Tools> usedTools = getUsedTools();<NEW_LINE>for (Tools currentTools : usedTools) {<NEW_LINE>final String shortName = currentTools.getShortName();<NEW_LINE...
jobDescriptors = toolWrapper.getJobDescriptors(this);
663,914
private Mono<Response<String>> generateUriWithResponseAsync(String resourceGroupName, String automationAccountName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LI...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
305,762
final GetAssessmentReportResult executeGetAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssessmentReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,156,187
@Override<NEW_LINE>protected Task<Void> onStopEngine() {<NEW_LINE><MASK><NEW_LINE>getOrchestrator().remove(JOB_FOCUS_RESET);<NEW_LINE>getOrchestrator().remove(JOB_FOCUS_END);<NEW_LINE>if (mCamera != null) {<NEW_LINE>try {<NEW_LINE>LOG.i("onStopEngine:", "Clean up.", "Releasing camera.");<NEW_LINE>// Just like Camera2En...
LOG.i("onStopEngine:", "About to clean up.");
1,256,424
private Mono<Response<VirtualNetworkInner>> updateTagsWithResponseAsync(String resourceGroupName, String virtualNetworkName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
891,312
private void onRecentLanguageClicked(String keyListPreference, Dialog dialog, AdapterView<?> adapterView, int position) {<NEW_LINE>final String recentLanguageCode = ((RecentLanguagesAdapter) adapterView.getAdapter()).getLanguageCode(position);<NEW_LINE>final String recentLanguageName = ((RecentLanguagesAdapter) adapter...
new Language(recentLanguageName, recentLanguageCode));
578,254
public TAgentInfo convertAgentInfo(final AgentInfo agentInfo) {<NEW_LINE>final AgentInformation agentInformation = agentInfo.getAgentInformation();<NEW_LINE>final TAgentInfo tAgentInfo = new TAgentInfo();<NEW_LINE>tAgentInfo.setIp(agentInformation.getHostIp());<NEW_LINE>tAgentInfo.setHostname(agentInformation.getMachin...
tAgentInfo.setAgentVersion(Version.VERSION);
1,683,762
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {<NEW_LINE>Task<?> methodCallTask;<NEW_LINE>switch(call.method) {<NEW_LINE>case "FirebaseModelDownloader#getModel":<NEW_LINE>methodCallTask = getModel(call.arguments());<NEW_LINE>break;<NEW_LINE>case "FirebaseModelDownloader#listDownloadedModels...
listDownloadedModels(call.arguments());
747,226
private Mono<PagedResponse<ManagedInstanceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,664,692
public static String readRelativePath(DataInputStream dis) throws IOException {<NEW_LINE>String index = dis.readUTF();<NEW_LINE>if (index.isEmpty()) {<NEW_LINE>return index;<NEW_LINE>}<NEW_LINE>String relative = dis.readUTF();<NEW_LINE>if ("user".equals(index)) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>return Sy...
[indx].concat(relative);
1,513,686
private boolean charEquals(int patternIndex, int nameIndex, boolean isIgnoreCase, boolean allowTypos, @Nonnull ErrorState errorState) {<NEW_LINE>char patternChar = charAt(patternIndex, errorState);<NEW_LINE>char nameChar = myName.charAt(nameIndex);<NEW_LINE>if (patternChar == nameChar || isIgnoreCase && (toLowerCase(pa...
patternIndex, new TypoError(leftMiss));
1,408,500
// prepare<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>X_AD_HouseKeeping houseKeeping = new X_AD_HouseKeeping(getCtx(), p_AD_HouseKeeping_ID, get_TrxName());<NEW_LINE>int tableID = houseKeeping.getAD_Table_ID();<NEW_LINE>MTable table = new MTable(getCtx(), tableID, get_TrxName());<NEW_LINE>String table...
DB.close(rs, pstmt);
1,280,069
public SkyValue compute(SkyKey key, Environment env) throws SkyFunctionException, InterruptedException {<NEW_LINE>RepositoryName repositoryName = (RepositoryName) key.argument();<NEW_LINE>ImmutableSet.Builder<PathFragment> ignoredPackagePrefixesBuilder = ImmutableSet.builder();<NEW_LINE>if (!ignoredPackagePrefixesFile....
(RepositoryDirectoryValue.key(repositoryName));
623,980
public int performSelection(final Random rnd, final Species species) {<NEW_LINE>int bestIndex = rnd.nextInt(species.getMembers().size());<NEW_LINE>Genome best = species.getMembers().get(bestIndex);<NEW_LINE>BasicEA.calculateScoreAdjustment(best, this.trainer.getScoreAdjusters());<NEW_LINE>for (int i = 0; i < this.round...
getMembers().get(competitorIndex);
1,189,851
private void splitUpAgentTable() throws Exception {<NEW_LINE>session.createTableWithLCS("create table if not exists config (agent_rollup_id varchar," + " config blob, config_update boolean, config_update_token uuid, primary key" + " (agent_rollup_id))");<NEW_LINE>session.createTableWithLCS("create table if not exists e...
.setString(i++, agentId);
1,494,344
private GlobalReferable visitPattern(Concrete.Pattern pattern, Map<String, Referable> usedNames) {<NEW_LINE>if (pattern.getAsReferable() != null && pattern.getAsReferable().type != null) {<NEW_LINE>pattern.getAsReferable().type = pattern.getAsReferable().type.accept(this, null);<NEW_LINE>}<NEW_LINE>if (pattern instance...
Referable referable = namePattern.getReferable();
1,833,528
public PTransform<PCollection<Row>, PDone> buildWriter() {<NEW_LINE>return new PTransform<PCollection<Row>, PDone>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PDone expand(PCollection<Row> input) {<NEW_LINE>BigQueryIO.Write<Row> write = BigQueryIO.<Row>write().useBeamSchema().withMethod(BigQueryIO.Write.Method.STO...
table = config.getString("table");
1,241,898
private JsonValue javaTypeToJsonValue(Object object) {<NEW_LINE>if (object == null) {<NEW_LINE>return Json.NULL;<NEW_LINE>}<NEW_LINE>Class<?> type = object.getClass();<NEW_LINE>if (typeIsString(type)) {<NEW_LINE>return Json.value((String) object);<NEW_LINE>}<NEW_LINE>if (typeIsInteger(type)) {<NEW_LINE>return Json.valu...
.value((Boolean) object);
1,737,282
private void drawActor(Graphics2D g2, float xPos, float yPos, String name) {<NEW_LINE>float zoom = HandlerElementMap.getHandlerForElement(this).getZoomFactor();<NEW_LINE>float head = 14 * zoom;<NEW_LINE>float distance = 10 * zoom;<NEW_LINE>g2.drawOval((int) (xPos + 0.5), (int) (yPos + 0.5), (int) (head + 0.5), (int) (h...
+ 0.5), AlignHorizontal.LEFT);
1,808,254
public AnomalySourceMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnomalySourceMetadata anomalySourceMetadata = new AnomalySourceMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
531,501
public INDArray applyDropout(INDArray inputActivations, INDArray output, int iteration, int epoch, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>Preconditions.checkArgument(inputActivations.rank() == 5 || inputActivations.rank() == 4 || inputActivations.rank() == 3, "Cannot apply spatial dropout to activations of rank %s:...
dim1 = inputActivations.size(1);
1,035,758
private ExecutableNode planExecution(ExpressionContext expression) {<NEW_LINE>switch(expression.getType()) {<NEW_LINE>case LITERAL:<NEW_LINE>return new ConstantExecutionNode(expression.getLiteral());<NEW_LINE>case IDENTIFIER:<NEW_LINE>String columnName = expression.getIdentifier();<NEW_LINE>ColumnExecutionNode columnEx...
> arguments = function.getArguments();
557,812
public void process(JCas resultView) throws AnalysisEngineProcessException {<NEW_LINE>Map<String, List<CandidateAnswer>> cansByText = new HashMap<String, List<CandidateAnswer>>();<NEW_LINE>for (Entry<String, List<CandidateAnswer>> entry : cansByText.entrySet()) {<NEW_LINE>if (entry.getValue().size() == 1)<NEW_LINE>cont...
"|" + can.getCoveredText());
711,207
public void dumpCurrentSheetServices() {<NEW_LINE>SheetStub stub = getSelectedStub();<NEW_LINE>logger.info("Selection services of {}", stub);<NEW_LINE>if (stub == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stub.hasSheet()) {<NEW_LINE>final Sheet sheet = stub.getSheet();<NEW_LINE>if (sheet.getLocationService() != ...
.getLocationService().dumpSubscribers();
1,270,115
public boolean execute() {<NEW_LINE>Point2i location = getRegionDirectories().getLocation();<NEW_LINE>if (!filter.appliesToRegion(location) || selection != null && !selection.isRegionSelected(location)) {<NEW_LINE>Debug.dump("filter does not apply to region " + getRegionDirectories().getLocation());<NEW_LINE>progressCh...
getRegionDirectories().getLocationAsFileName());
375,308
public boolean authenticate(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>JaspiService jaspiService = null;<NEW_LINE>boolean isNewAuthenticate = false;<NEW_LINE>boolean isCredentialPresent = false;<NEW_LINE>if (isJaspiEnabled) {<NEW_LINE>jaspiService = (JaspiService) ...
isPostLoginProcessDone, !isNewAuthenticate && !isPostLoginProcessDone);
127,780
final ListRateBasedRulesResult executeListRateBasedRules(ListRateBasedRulesRequest listRateBasedRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRateBasedRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(listRateBasedRulesRequest));
1,002,437
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>Object o;<NEW_LINE>org.netbeans.modules.schema2beans.BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("Name");<NEW_LINE>// NOI18N<NEW_LINE>str...
: s.trim()));
1,282,170
public RedirectView authenticateWithWebBasedPlugin(@PathVariable("pluginId") String pluginId, HttpServletRequest request) {<NEW_LINE>if (securityIsDisabledOrAlreadyLoggedIn(request)) {<NEW_LINE>return new RedirectView("/pipelines", true);<NEW_LINE>}<NEW_LINE>LOGGER.debug("Requesting authentication for form auth.");<NEW...
LOGGER.error("Failed to authenticate user.", e);
1,782,140
private String prepareTemplateComment(String comment, String indentation, IJavaProject project, String lineDelimiter) {<NEW_LINE>// trim comment start and end if any<NEW_LINE>if (comment.endsWith("*/")) {<NEW_LINE>comment = comment.substring(0, comment.length() - 2);<NEW_LINE>}<NEW_LINE>comment = comment.trim();<NEW_LI...
comment = comment.substring(2);
173,891
protected Predicate filterMeetingStatus(CriteriaBuilder cb, Root<Meeting> root, Predicate p, String meetingStatus) {<NEW_LINE>if (meetingStatus.equalsIgnoreCase("completed")) {<NEW_LINE>p = cb.and(p, cb.or(cb.lessThan(root.get(Meeting_.completedTime), new Date()), cb.equal(root.get(Meeting_.manualCompleted), true)));<N...
), new Date()));
903,156
private void createStatusPanels() {<NEW_LINE>codeUnitPanel = new JPanel(new BorderLayout());<NEW_LINE>codeUnitLabel = new GDLabel(" ");<NEW_LINE>codeUnitPanel.setPreferredSize(new Dimension(200, codeUnitLabel.getPreferredSize().height));<NEW_LINE>codeUnitLabel.setToolTipText(CURRENT_INSTRUCTION_...
addStatusComponent(addressPanel, true, false);
1,782,708
String resolvedDestination(String destination, DefaultChannels defaultChannel) {<NEW_LINE>try {<NEW_LINE>BindingServiceProperties channelBindingServiceProperties = this.context.getBean(BindingServiceProperties.class);<NEW_LINE>Map<String, String> channels = new HashMap<>();<NEW_LINE>for (Map.Entry<String, BindingProper...
debug("No destination named [" + destination + "] was found. Assuming that the destination equals the channel name");
639,597
public void onSendFiles(List<FileItem> list) {<NEW_LINE>if (list == null || list.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>WritableMap event = Arguments.createMap();<NEW_LINE>WritableArray array = new WritableNativeArray();<NEW_LINE>BitmapFactory.Options options = new BitmapFactory.Options();<NEW_LINE>options.i...
getId(), ON_SEND_FILES_EVENT, event);
126,162
public Observable<ServiceResponse<KeyBundle>> restoreKeyWithServiceResponseAsync(String vaultBaseUrl, byte[] keyBundleBackup) {<NEW_LINE>if (vaultBaseUrl == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null.");<NEW_LINE>}<NEW_LINE>if (this.apiVersion() == null) {...
).join("{vaultBaseUrl}", vaultBaseUrl);
1,007,284
final GetSlotTypeResult executeGetSlotType(GetSlotTypeRequest getSlotTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSlotTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,734,906
// End of variables declaration//GEN-END:variables<NEW_LINE>private void initAccesibility() {<NEW_LINE>addFriendButton.getAccessibleContext().setAccessibleDescription(getMessage("ACSD_AddFriendButton"));<NEW_LINE>removeFriendButton.getAccessibleContext()<MASK><NEW_LINE>cnbValue.getAccessibleContext().setAccessibleDescr...
.setAccessibleDescription(getMessage("ACSD_RemoveFriendButton"));
862,779
private static Vector apply(CompIntLongVector v1, IntDummyVector v2, Binary op) {<NEW_LINE>IntLongVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage...
getStorage().getValues());
1,158,886
public void prepareRenaming(PsiElement element, String newName, @NotNull Map<PsiElement, String> allRenames, @NotNull SearchScope scope) {<NEW_LINE>if (element instanceof GoTypeSpec) {<NEW_LINE>Query<PsiReference> search = ReferencesSearch.search(element, scope);<NEW_LINE>for (PsiReference ref : search) {<NEW_LINE>PsiE...
tryCast(typeParent, GoPointerType.class);
1,287,326
private void runAssertionLateConsume(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyVDW.test:vdwwithparam() as SupportBean", path);<NEW_LINE>SupportVirtualDW window = (SupportVirtualDW) getFromContext(env, "/virtualdw/MyVDW");<NEW_LI...
new Object[] { 130 });
1,504,853
private static void logState(final MessageFrame frame, final Gas currentGasCost) {<NEW_LINE>if (LOG.isTraceEnabled()) {<NEW_LINE>final StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("Depth: ").append(frame.getMessageStackDepth()).append("\n");<NEW_LINE>builder.append("Operation: ").append(frame.ge...
()).append("\n");
1,804,889
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {<NEW_LINE>int pc = codeStream.position;<NEW_LINE>if (this.constant != Constant.NotAConstant) {<NEW_LINE>if (valueRequired) {<NEW_LINE>codeStream.generateConstant(this.constant, this.implicitConversion);<NEW_LINE>}<NEW_LINE>...
codeStream.generateImplicitConversion(this.implicitConversion);
79,170
private static TsBeanModel transformBean(TsBeanModel bean, TsModel model) {<NEW_LINE>if (!bean.isClass() || bean.getConstructor() != null) {<NEW_LINE>return bean;<NEW_LINE>}<NEW_LINE>List<TsPropertyModel> <MASK><NEW_LINE>Collection<TsExpressionStatement> valueAssignmentStatements = new ArrayList<>();<NEW_LINE>for (TsPr...
newProperties = new ArrayList<>();
809,032
public static CodegenExpression codegen(ExprNewStructNodeForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(EPTypePremade.MAP.getEPType(), ExprNewStructNodeForgeEval.class, codegen...
.getForgeRenderable().getChildNodes();
1,129,728
private static void addEditions(AppliesToFilterInfo match) {<NEW_LINE>List<String> editionsList = allEditions;<NEW_LINE>// No editions in the appliesTo? That means *all* editions. Note that we need to<NEW_LINE>// test rawEditions here, not editions, because not all rawEditions may actually<NEW_LINE>// be mapped into an...
= new ArrayList<String>();
1,730,198
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>IInterpreterManager manager = InterpreterManagersAPI.getPythonInterpreterManager();<NEW_LINE>IInterpreterInfo[] existing = manager.getInterpreterInfos();<NEW_LINE>HashSet<String> skip = new HashSet<String>();<NEW_LINE>for (IInterpreterInfo info ...
updated.length - 1] = info;
1,262,783
// calculate the present value sensitivity<NEW_LINE>PointSensitivityBuilder presentValueSensitivity(ResolvedCapitalIndexedBond bond, RatesProvider ratesProvider, LegalEntityDiscountingProvider discountingProvider, LocalDate referenceDate) {<NEW_LINE>IssuerCurveDiscountFactors issuerDf = issuerCurveDf(bond, discountingP...
PointSensitivityBuilder pointCoupon = PointSensitivityBuilder.none();
53,986
private static UnionEle merge(UnionEle left, UnionEle right, ReduceOP op) {<NEW_LINE>UnionEle res = new UnionEle();<NEW_LINE>switch(op) {<NEW_LINE>case Min:<NEW_LINE>res.setDouble1(Math.min(left.getDouble1(), right.getDouble1()));<NEW_LINE>res.setDouble2(Math.min(left.getDouble2(), right.getDouble2()));<NEW_LINE>res.se...
, right.getInt2()));
431,584
protected void cloneAfter(IProgressMonitor monitor) throws Exception {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, Messages.AbstractNewProjectWizard_CloningFromGitMsg, 100);<NEW_LINE>// clone to tmp dir then copy files over top the project!<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>File tmpFile = File.cr...
, sub.newChild(2));
1,585,004
public com.amazonaws.services.kinesisfirehose.model.ConcurrentModificationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisfirehose.model.ConcurrentModificationException concurrentModificationException = new com.amazonaws.services.kinesisfirehose...
int originalDepth = context.getCurrentDepth();
212,426
void drawRect(Rect r, Paint paint) {<NEW_LINE>if (bufferedImage == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] pixels = ((DataBufferInt) bufferedImage.getRaster().<MASK><NEW_LINE>Rect toDraw = new Rect(max(0, r.left), max(0, r.top), min(getWidth(), r.right), min(getHeight(), r.bottom));<NEW_LINE>if (toDraw.left ...
getDataBuffer()).getData();
1,286,151
private void refreshDNSQueries(final String path) {<NEW_LINE>try {<NEW_LINE>List<String> lines = new ArrayList<>();<NEW_LINE>String line;<NEW_LINE>try (FileReader reader = new FileReader(path);<NEW_LINE>BufferedReader bufferedReader = new BufferedReader(reader)) {<NEW_LINE>while ((line = bufferedReader.readLine()) != n...
setText(R.string.dnscrypt_empty_log);
42,323
public EventLoopGroup init(Bootstrap bootstrap, final DockerClientConfig dockerClientConfig) {<NEW_LINE>EventLoopGroup nioEventLoopGroup = new NioEventLoopGroup(0, new DefaultThreadFactory(threadPrefix));<NEW_LINE>InetAddress addr = InetAddress.getLoopbackAddress();<NEW_LINE>final SocketAddress proxyAddress = new InetS...
-> configure(new NioSocketChannel());
1,682,180
public InProcessNeo4j build() {<NEW_LINE>Path userLogFile = serverFolder.resolve("neo4j.log");<NEW_LINE>Path internalLogFile = serverFolder.resolve("debug.log");<NEW_LINE>config.set(ServerSettings.third_party_packages, unmanagedExtentions.toList());<NEW_LINE>config.set(GraphDatabaseSettings.store_internal_log_path, int...
managementService = createNeo(dbConfig, dependencies);
159,611
private static <T> Function<Throwable, Mono<T>> recursiveWithAlternateFunc(Function<Quadruple<Boolean, Boolean, Duration, Integer>, Mono<T>> callbackMethod, IRetryPolicy retryPolicy, Function<Quadruple<Boolean, Boolean, Duration, Integer>, Mono<T>> inBackoffAlternateCallbackMethod, ShouldRetryResult shouldRetryResult, ...
as(throwable, Exception.class);
224,747
public RedisSink genStreamSink(AbstractTargetTableInfo targetTableInfo) {<NEW_LINE>RedisTableInfo redisTableInfo = (RedisTableInfo) targetTableInfo;<NEW_LINE>this.url = redisTableInfo.getUrl();<NEW_LINE>this.database = redisTableInfo.getDatabase();<NEW_LINE>this.password = redisTableInfo.getPassword();<NEW_LINE>this<MA...
.tableName = redisTableInfo.getTablename();
943,636
public Map<K, ValueHolder<V>> bulkComputeIfAbsent(Set<? extends K> keys, Function<Iterable<? extends K>, Iterable<? extends Map.Entry<? extends K, ? extends V>>> mappingFunction) throws StoreAccessException {<NEW_LINE>Map<K, ValueHolder<V>> result = new HashMap<>(keys.size());<NEW_LINE>for (K key : keys) {<NEW_LINE>Val...
entries = mappingFunction.apply(keySet);
1,635,514
protected boolean beforeDelete() {<NEW_LINE>if (AttachmentUtil.getInstance().isValidForClient(getAD_Client_ID())) {<NEW_LINE>items.stream().forEach(item -> {<NEW_LINE>try {<NEW_LINE>AttachmentUtil.getInstance().clear().withAttachmentId(getAD_Attachment_ID()).withFileName(item.getName()).withClientId(getAD_Client_ID())....
"Error deleting attachment: " + e.getLocalizedMessage());
260,105
protected ImageWritable doTransform(ImageWritable image, Random random) {<NEW_LINE>if (image == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Mat mat = converter.convert(image.getFrame());<NEW_LINE>Mat box = new Mat(height, width, mat.type());<NEW_LINE>box.put(borderValue);<NEW_LINE>x = (mat.cols() - width) / 2;<NE...
mat.rows(), height);