idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
31,318
public String parseParamValueToString(Param param, String inputValue) throws ProposalValidationException {<NEW_LINE>switch(param.getParamType()) {<NEW_LINE>case UNDEFINED:<NEW_LINE>return Res.get("shared.na");<NEW_LINE>case BSQ:<NEW_LINE>return formatCoin(parseParamValueToCoin(param, inputValue));<NEW_LINE>case BTC:<NE...
(parseParamValueToBlocks(param, inputValue));
1,630,102
public void marshall(AwsElbLoadBalancerDetails awsElbLoadBalancerDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsElbLoadBalancerDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsElbLoa...
awsElbLoadBalancerDetails.getPolicies(), POLICIES_BINDING);
1,841,679
public static CoreNLPProtos.DependencyGraph toProto(SemanticGraph graph) {<NEW_LINE>CoreNLPProtos.DependencyGraph.Builder builder <MASK><NEW_LINE>// Roots<NEW_LINE>Set<Integer> rootSet = graph.getRoots().stream().map(IndexedWord::index).collect(Collectors.toCollection(IdentityHashSet::new));<NEW_LINE>// Nodes<NEW_LINE>...
= CoreNLPProtos.DependencyGraph.newBuilder();
587,302
public MethodsGroupBuilder methodWithExplicitJavaTypes(String methodName, List<Optional<Class<?>>> types) {<NEW_LINE>requireNonNull(methodName, "methodName is null");<NEW_LINE>List<MethodAndNativeContainerTypes> matchingMethod = Arrays.stream(clazz.getMethods()).filter(method -> methodName.equals(method.getName())).map...
> classOptional = typesIterator.next();
1,290,137
public void verifyCertificatesSubject(ServerNames serverNames, InetSocketAddress peer, X509Certificate certificate) throws HandshakeException {<NEW_LINE>if (certificate == null) {<NEW_LINE>throw new NullPointerException("Certficate must not be null!");<NEW_LINE>}<NEW_LINE>if (serverNames == null && peer == null) {<NEW_...
hostname = StringUtil.toHostString(peer);
915,889
public UserStorage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UserStorage userStorage = new UserStorage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ...
String currentParentElement = context.getCurrentParentElement();
1,759,484
private boolean isGsiTable(CdcDDLContext cdcDDLContext) throws SQLException {<NEW_LINE>String schemaName = cdcDDLContext.getSchemaName();<NEW_LINE>String tableName = cdcDDLContext.getTableName();<NEW_LINE>if (StringUtils.isNotBlank(schemaName) && StringUtils.isNotBlank(tableName)) {<NEW_LINE>try (Connection metaDbConn ...
getTablePartitionsByDbNameTbName(schemaName, tableName, false);
1,828,737
public Object execute(VirtualFrame frame) {<NEW_LINE>Object[] arguments = frame.getArguments();<NEW_LINE>VirtualFrame asyncFrame = JSArguments.getResumeExecutionContext(arguments);<NEW_LINE>PromiseCapabilityRecord promiseCapability = (<MASK><NEW_LINE>Completion resumptionValue = JSArguments.getResumeCompletion(argument...
PromiseCapabilityRecord) JSArguments.getResumeGeneratorOrPromiseCapability(arguments);
566,293
public static Set<Integer> scanSessionIds(HugeConfig config, List<String> tableDirs) {<NEW_LINE>Set<Integer> sessionIds = new HashSet<>();<NEW_LINE>String path = config.get(PaloOptions.PALO_TEMP_DIR);<NEW_LINE>File pathDir = Paths.get(path).toFile();<NEW_LINE>if (!pathDir.exists()) {<NEW_LINE>return sessionIds;<NEW_LIN...
] fileNames = tableDir.list();
1,807,085
private void checkLogicalUniqueKeyDuplicate(Users users, List<RwSplitUser> rwSplitUserList) throws SQLException {<NEW_LINE>List<RwSplitUser> sourceList = users.getUser().stream().filter(user -> user instanceof RwSplitUser).map(user -> (RwSplitUser) user).collect(Collectors.toList());<NEW_LINE>for (RwSplitUser rwSplitUs...
), COLUMN_USERNAME, COLUMN_CONN_ATTR_KEY, COLUMN_CONN_ATTR_VALUE);
1,226,366
void resolve() throws InjectionException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE><MASK><NEW_LINE>Map<String, Object> props = new HashMap<String, Object>();<NEW_LINE>if (properties != null) {<NEW_LINE>int i = 0;<NEW_LINE>for (Map....
Tr.entry(tc, "resolve");
1,135,923
public void endActivity() {<NEW_LINE>if (Thread.currentThread() != mainThread || activityStack.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ActivityInfo oldActivity = activityStack.pop();<NEW_LINE>long endTime = timer.getRealTimeInMs();<NEW_LINE>long totalTime = (oldActivity.resumeTime > 0) ? oldActivity.ownTime +...
.resumeTime : endTime - oldActivity.startTime;
1,153,844
private Batch fetch(List<Long> indices, int progress) throws IOException {<NEW_LINE>NDManager subManager = manager.newSubManager();<NEW_LINE>subManager.setName("dataIter fetch");<NEW_LINE>int batchSize = indices.size();<NEW_LINE>NDList[] data = new NDList[batchSize];<NEW_LINE>NDList[] labels = new NDList[batchSize];<NE...
i] = record.getLabels();
1,005,031
public ListThemesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListThemesResult listThemesResult = new ListThemesResult();<NEW_LINE>listThemesResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
)).unmarshall(context));
1,777,808
public void validate() {<NEW_LINE>if (image() == null) {<NEW_LINE>throw LOGGER.<MASK><NEW_LINE>}<NEW_LINE>if (ports() != null) {<NEW_LINE>ports().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (environmentVariables() != null) {<NEW_LINE>environmentVariables().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (inst...
logExceptionAsError(new IllegalArgumentException("Missing required property image in model ContainerProperties"));
502,935
// Implementations for KotlinModulePackageVisitor.<NEW_LINE>@Override<NEW_LINE>public void visitKotlinModulePackage(KotlinModule kotlinModule, KotlinModulePackage kotlinModulePart) {<NEW_LINE>// Shrink the referenced facades.<NEW_LINE>for (int k = kotlinModulePart.referencedFileFacades.size() - 1; k >= 0; k--) {<NEW_LI...
kotlinModulePart.referencedFileFacades.get(k);
217,044
private static TestStepConfig createFromDialog(WsdlProject project, String name) {<NEW_LINE>WsdlMockResponseStepFactory.project = project;<NEW_LINE>try {<NEW_LINE>List<Interface> interfaces = new ArrayList<Interface>();<NEW_LINE>for (Interface iface : project.getInterfaces(WsdlInterfaceFactory.WSDL_TYPE)) {<NEW_LINE>if...
.getBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
1,195,402
public void start() throws Exception {<NEW_LINE>// 1. Do prepare work<NEW_LINE>// create an instance of state manager<NEW_LINE>String statemgrClass = Context.stateManagerClass(config);<NEW_LINE><MASK><NEW_LINE>IStateManager statemgr;<NEW_LINE>try {<NEW_LINE>statemgr = ReflectionUtils.newInstance(statemgrClass);<NEW_LIN...
LOG.info("Context.stateManagerClass " + statemgrClass);
965,327
public static void run(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>if (_tc.isEntryEnabled())<NEW_LINE>Tr.entry(_tc, "run", request.getRemoteHost());<NEW_LINE>ESIProcessor processor = null;<NEW_LINE>try {<NEW_LINE>processor = new ESIProcessor(request, response);<NEW_LINE>runCommon(processor);<NE...
exit(_tc, "run", processor);
1,705,994
public void marshall(ReservedElasticsearchInstance reservedElasticsearchInstance, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reservedElasticsearchInstance == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
reservedElasticsearchInstance.getReservationName(), RESERVATIONNAME_BINDING);
105,511
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
this.client.mergeContext(context);
368,924
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result =...
new ArrayList<Wo>());
717,722
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Card card = game.getCard(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (card != null) {<NEW_LINE>if (controller.chooseUse(Outcome.PlayForFre...
game.addEffect(effect, source);
433,519
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>changeNameTextField = new javax.swing.JTextField();<NEW_LINE>renameCommentsChe...
5, 5, 0, 5);
684,461
public final Value takeExcept(ValueExcept ex) {<NEW_LINE>try {<NEW_LINE>if (ex.idx < ex.path.length) {<NEW_LINE>int tlen = this.elems.length;<NEW_LINE>Value[<MASK><NEW_LINE>Value arcVal = ex.path[ex.idx];<NEW_LINE>if (arcVal instanceof IntValue) {<NEW_LINE>int idx = ((IntValue) arcVal).val - 1;<NEW_LINE>if (0 <= idx &&...
] newElems = new Value[tlen];
523,786
private void mapVftablesToParents(RecoveredClass recoveredClass, List<RecoveredClass> ancestorsAllowedToMap) throws CancelledException {<NEW_LINE>Map<Integer, Address> orderToVftableMap = recoveredClass.getOrderToVftableMap();<NEW_LINE>List<Integer> sortedOrder = new ArrayList<Integer>(orderToVftableMap.keySet());<NEW_...
vftableAddress = orderToVftableMap.get(order);
1,170,096
final InvokeScreenAutomationResult executeInvokeScreenAutomation(InvokeScreenAutomationRequest invokeScreenAutomationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(invokeScreenAutomationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(invokeScreenAutomationRequest));
332,830
static synchronized void loadInitialPlugins() {<NEW_LINE>lazyInitialization = true;<NEW_LINE>loadCorePlugin();<NEW_LINE>if (JavaWebStart.isRunningViaJavaWebstart()) {<NEW_LINE>installWebStartPlugins();<NEW_LINE>} else {<NEW_LINE>installStandardPlugins();<NEW_LINE>installUserInstalledPlugins();<NEW_LINE>}<NEW_LINE>Set<E...
.getAllProperties().entrySet();
1,207,272
private static void AddBackupSoSource(Context context, ArrayList<SoSource> soSources, int apkSoSourceFlags) throws IOException {<NEW_LINE>if ((sFlags & SOLOADER_DISABLE_BACKUP_SOSOURCE) != 0) {<NEW_LINE>sBackupSoSources = null;<NEW_LINE>// Clean up backups<NEW_LINE>final File backupDir = UnpackingSoSource.getSoStorePat...
backupSources = new ArrayList<>();
506,215
void refreshStorageBreakdown(@NonNull Context context) {<NEW_LINE>SignalExecutors.BOUNDED.execute(() -> {<NEW_LINE>MediaDatabase.StorageBreakdown breakdown = SignalDatabase<MASK><NEW_LINE>StorageGraphView.StorageBreakdown latestStorageBreakdown = new StorageGraphView.StorageBreakdown(Arrays.asList(new StorageGraphView....
.media().getStorageBreakdown();
1,245,366
private void highlightInConference(String nick) {<NEW_LINE>final Editable editable = this.binding.textinput.getText();<NEW_LINE>String oldString = editable.toString().trim();<NEW_LINE>final int pos = this.binding.textinput.getSelectionStart();<NEW_LINE>if (oldString.isEmpty() || pos == 0) {<NEW_LINE>editable.<MASK><NEW...
insert(0, nick + ": ");
721,436
public StringBuffer printExpression(int tab, StringBuffer output, boolean makeShort) {<NEW_LINE>int parenthesesCount = (this.bits & ASTNode<MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>String suffix = "";<NEW_LINE>for (int i = 0; i < parenthesesCount; i++) {<NEW_LINE>output.append('(');<NEW_LINE>suffix += ')';<NEW_LINE>}<NEW...
.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
1,005,023
boolean localize(QrCode.Alignment pattern, float guessY, float guessX) {<NEW_LINE>// sample along the middle. Try to not sample the outside edges which could confuse it<NEW_LINE>for (int i = 0; i < arrayY.length; i++) {<NEW_LINE>float x = guessX - 1.5f + i * 3f / 12.0f;<NEW_LINE>float y = guessY <MASK><NEW_LINE>arrayX[...
- 1.5f + i * 3f / 12.0f;
454,209
public static PathData lineSimplifyAndCurve(List<Float> points, int oWidth, int oHeight) {<NEW_LINE>ArrayList<Point2D.Double> startingLine = new ArrayList<Point2D.Double>();<NEW_LINE>// denormalize and turn into point2d<NEW_LINE>for (int i = 0; i < points.size(); i += 2) {<NEW_LINE>startingLine.add(new Point2D.Double(d...
i + 1), oHeight));
1,162,708
public static List<BufferPage> merge(List<BufferPage> pagesToMerge, int maxPageSize) {<NEW_LINE>if (pagesToMerge == null || pagesToMerge.size() < 1) {<NEW_LINE>return pagesToMerge;<NEW_LINE>}<NEW_LINE>// NOTE: instead of constructing all Entries and then rebuilding offsetIndex and rawData,<NEW_LINE>// it could use arra...
= new ArrayList<>(numNewPages);
231,391
protected void initPinPad() {<NEW_LINE>pinDisp = (TextView) findViewById(R.id.pin_display);<NEW_LINE>addrInfoPrefix = (TextView) findViewById(R.id.pin_addr_info_prefix);<NEW_LINE>addrInfoHighlight = (TextView) findViewById(R.id.pin_addr_info_highlight);<NEW_LINE>addrInfoPostfix = (TextView) findViewById(R.id.pin_addr_i...
R.id.pin_hexbutton2)));
245,174
private void writeInnerClass(Collection<FieldInitializer> initializers, Path packageDir, String fullyQualifiedOuterClass, String innerClass) throws IOException {<NEW_LINE>ClassWriter innerClassWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS);<NEW_LINE>String fullyQualifiedInnerClass = <MASK><NEW_LINE>List<FieldInitia...
writeInnerClassHeader(fullyQualifiedOuterClass, innerClass, innerClassWriter);
753,606
private WillPublishBuilder fromComplete(@NotNull final Qos qos, final boolean retain, @NotNull final String topic, @NotNull final Optional<PayloadFormatIndicator> payloadFormatIndicator, @NotNull final Optional<Long> messageExpiryInterval, @NotNull final Optional<String> responseTopic, @NotNull final Optional<ByteBuffe...
payload = payload.orElse(null);
606,554
private boolean isPanelValid() {<NEW_LINE>if (panelType == PanelType.IMPORT) {<NEW_LINE>if (txtFile.getText().length() == 0) {<NEW_LINE>dialogDescriptor.getNotificationLineSupport().setWarningMessage(NbBundle.getMessage(OptionsChooserPanel.class, "OptionsChooserPanel.import.file.warning"));<NEW_LINE>} else if (getOptio...
(OptionsChooserPanel.class, "OptionsChooserPanel.import.nooption.warning"));
960,738
public StopJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StopJobResult stopJobResult = new StopJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
JsonToken token = context.getCurrentToken();
565,907
private static void addPipeUpgradeRecipe(ItemPipeHolder from, ItemPipeHolder to, Object additional) {<NEW_LINE>if (from == null || to == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (additional == null) {<NEW_LINE>throw new NullPointerException("additional");<NEW_LINE>}<NEW_LINE>IRecipe returnRecipe = new ShapelessO...
(CraftingHelper.getIngredient(additional));
739,782
public void start(Target target, final OnSessionReadyListener listener) throws ChildManager.ChildNotStartedException {<NEW_LINE>this.stop();<NEW_LINE>if (mWithProxy) {<NEW_LINE>if (System.getProxy() == null) {<NEW_LINE>listener.onError(null, R.string.error_mitm_proxy);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (System.ge...
listener.onError(line, 0);
1,409,848
private void validateDataSource(DataSource ds, String user, @Sensitive String password, LinkedHashMap<String, Object> result) throws SQLException {<NEW_LINE>java.sql.Connection con = user == null ? ds.getConnection() : ds.getConnection(user, password);<NEW_LINE>try {<NEW_LINE>DatabaseMetaData metadata = con.getMetaData...
String schema = con.getSchema();
475,294
private void populateExtensions() {<NEW_LINE>for (InstanceOfferingFactory f : pluginRgty.getExtensionList(InstanceOfferingFactory.class)) {<NEW_LINE>InstanceOfferingFactory old = instanceOfferingFactories.get(f.getInstanceOfferingType().toString());<NEW_LINE>if (old != null) {<NEW_LINE>throw new CloudRuntimeException(S...
).toString(), f);
1,828,904
public AccessTokenResponse doTokenExchange(String realm, String token, String requestedIssuer, String clientId, String clientSecret) throws Exception {<NEW_LINE>try (CloseableHttpClient client = (CloseableHttpClient) new HttpClientBuilder().disableTrustManager().build()) {<NEW_LINE>String exchangeUrl = KeycloakUriBuild...
OAuth2Constants.SUBJECT_TOKEN_TYPE, OAuth2Constants.ACCESS_TOKEN_TYPE);
242,330
private boolean runInference(Model model) {<NEW_LINE>Log.i(TAG, "runInference: ");<NEW_LINE>MSTensor inputTensor = model.getInputByTensorName("graph_input-173");<NEW_LINE>if (inputTensor.getDataType() != DataType.kNumberTypeFloat32) {<NEW_LINE>Log.e(TAG, "Input tensor data type is not float, the data type is " + inputT...
Log.e(TAG, "MindSpore Lite run failed.");
301,834
final ListCoreDevicesResult executeListCoreDevices(ListCoreDevicesRequest listCoreDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoreDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(listCoreDevicesRequest));
911,473
public static LinkedBuffer writeUTF8VarDelimited(final CharSequence str, final WriteSession session, LinkedBuffer lb) {<NEW_LINE>final int len = str.length();<NEW_LINE>if (len == 0) {<NEW_LINE>if (lb.offset == lb.buffer.length) {<NEW_LINE>// buffer full<NEW_LINE>lb = new LinkedBuffer(session.nextBufferSize, lb);<NEW_LI...
FOUR_BYTE_LOWER_LIMIT, 4, session, lb);
1,648,408
public MultiMetricsSummary merge(MultiMetricsSummary multiClassMetrics) {<NEW_LINE>if (null == multiClassMetrics) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (Arrays.equals(labels, multiClassMetrics.labels)) {<NEW_LINE>this.matrix.plusEqual(multiClassMetrics.matrix);<NEW_LINE>} else {<NEW_LINE>// Merge labels from t...
] mergedLabels = allLabelSet.toArray();
586,447
private void generateRelationshipFile(org.odpi.openmetadata.fvt.opentypes.model.OmrsBeanRelationship omrsBeanRelationship, String fileName, String pkg) throws IOException {<NEW_LINE>FileWriter outputFileWriter = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>outputFileWriter = new FileWriter(fileN...
replacementMap = new HashMap<>();
31,666
private List<SDDocumentType> sortDocumentTypes(List<SDDocumentType> docList) {<NEW_LINE>Set<String> <MASK><NEW_LINE>doneNames.add(SDDocumentType.VESPA_DOCUMENT.getName());<NEW_LINE>List<SDDocumentType> doneList = new LinkedList<>();<NEW_LINE>List<SDDocumentType> prevList = null;<NEW_LINE>List<SDDocumentType> nextList =...
doneNames = new HashSet<>();
948,121
private static // - args: false <installation path> <command> <...command args><NEW_LINE>void start(String[] args) {<NEW_LINE>boolean viaInstaller = Boolean.parseBoolean(args[0]);<NEW_LINE>String installationDir;<NEW_LINE>String command;<NEW_LINE>String[] options;<NEW_LINE>if (viaInstaller) {<NEW_LINE>installationDir =...
handler = commandHandler.get(command);
152,933
public float interpolateFirstDerivative(float t) {<NEW_LINE>// Handle the boundary cases.<NEW_LINE>final int n = mT.size();<NEW_LINE>if (Float.isNaN(t)) {<NEW_LINE>return t;<NEW_LINE>}<NEW_LINE>t = MathHelper.clamp(t, mT.get(0), mT.get(n - 1));<NEW_LINE>// Find the index 'i' of the last point with smaller X.<NEW_LINE>/...
) - mT.get(i);
1,049,153
public DataSet<Row> buildIndex(BatchOperator in, Params params) {<NEW_LINE>Preconditions.checkArgument(params.get(VectorApproxNearestNeighborTrainParams.METRIC).equals(VectorApproxNearestNeighborTrainParams.Metric.EUCLIDEAN), "KDTree solver only supports Euclidean distance!");<NEW_LINE>EuclideanDistance distance = new ...
[i].toString());
912,195
public ExitCode run(CommandEnv commandEnv) throws ValidationException, IOException, RepoException {<NEW_LINE>ConfigFileArgs configFileArgs = commandEnv.parseConfigFileArgs(this, /*useSourceRef*/<NEW_LINE>false);<NEW_LINE>ConfigLoader configLoader = configLoaderProvider.newLoader(configFileArgs.getConfigPath(), configFi...
"Configuration '%s' is valid.", configLoader.location());
1,832,470
public void update(int count, int creatures, int lands, int sorceries, int instants, int enchantments, int artifacts) {<NEW_LINE>if (this.lblCount != null)<NEW_LINE>this.lblCount.setText(Integer.toString(count));<NEW_LINE>if (this.lblCreatureCount != null)<NEW_LINE>this.lblCreatureCount.setText(Integer.toString(creatur...
(Integer.toString(sorceries));
1,680,400
static Request clearRealmCache(ClearRealmCacheRequest clearRealmCacheRequest) {<NEW_LINE>RequestConverters.EndpointBuilder builder = new RequestConverters.EndpointBuilder().addPathPartAsIs("_security/realm");<NEW_LINE>if (clearRealmCacheRequest.getRealms().isEmpty() == false) {<NEW_LINE>builder.addCommaSeparatedPathPar...
Request(HttpPost.METHOD_NAME, endpoint);
129,412
public void visitRoots(final RootVisitor visitor) {<NEW_LINE>final Deque<String> prefixStack <MASK><NEW_LINE>rootNode.visitHierarchy(0, new NodeVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitNode(int depth, Node node) {<NEW_LINE>while (prefixStack.size() > depth) {<NEW_LINE>prefixStack.removeLast();...
= new ArrayDeque<String>();
304,633
public okhttp3.Call importTenantThemeCall(File file, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/tenant-theme";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> ...
String[] localVarContentTypes = { "multipart/form-data" };
1,640,655
public <E> List<E> aggregate(EntityMetadata entityMetadata, BasicDBObject mongoQuery, BasicDBList lookup, BasicDBObject aggregation, BasicDBObject orderBy, int maxResult) throws Exception {<NEW_LINE>String collectionName = entityMetadata.getTableName();<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata...
>) extractAggregationValues(aggregationResults, aggregation);
685,481
private void doRegisterStore(String storeName, Scope scope, boolean b) throws SyncException {<NEW_LINE>ensureConnected();<NEW_LINE>RegisterRequestMessage rrm = new RegisterRequestMessage();<NEW_LINE>AsyncMessageHeader header = new AsyncMessageHeader();<NEW_LINE><MASK><NEW_LINE>rrm.setHeader(header);<NEW_LINE>Store stor...
header.setTransactionId(getTransactionId());
1,623,931
public <T> boolean registerValidator(final Control c, boolean required, final Validator<T> validator) {<NEW_LINE>Optional.ofNullable(c).ifPresent(ctrl -> {<NEW_LINE>ctrl.getProperties().addListener(new MapChangeListener<Object, Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onChanged(javafx.collections.M...
(observable.getValue()));
1,409,760
public void complete() {<NEW_LINE>String asmString = builder.toString().trim();<NEW_LINE>if (DEBUG_LOGGING_ASSEMBLY) {<NEW_LINE>logger.debug("complete({})", asmString.length());<NEW_LINE>}<NEW_LINE>if (asmString.length() > 0) {<NEW_LINE>IAssemblyParser parser = AssemblyUtil.getParserForArchitecture(architecture);<NEW_L...
assemblyMethod = parser.parseAssembly(asmString);
1,634,753
public static ListQualityRulesResponse unmarshall(ListQualityRulesResponse listQualityRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQualityRulesResponse.setRequestId<MASK><NEW_LINE>listQualityRulesResponse.setHttpStatusCode(_ctx.integerValue("ListQualityRulesResponse.HttpStatusCode"));<NEW_LINE>listQualityRul...
(_ctx.stringValue("ListQualityRulesResponse.RequestId"));
84,868
public List<RouteColorizationPoint> simplify() {<NEW_LINE>if (dataList == null) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < latitudes.length; i++) {<NEW_LINE>dataList.add(new RouteColorizationPoint(i, latitudes[i], longitudes[i], values[i]));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<Node> nodes = new ArrayList<>();<NEW_L...
dataList = new ArrayList<>();
1,126,192
private void muxTrack(MKVMuxerTrack track) {<NEW_LINE>try {<NEW_LINE>track.trackStart = sink.position();<NEW_LINE>EbmlMaster trackEntryElem = (EbmlMaster) createByType(TrackEntry);<NEW_LINE>createLong(trackEntryElem, TrackNumber, track.trackNo);<NEW_LINE>createLong(trackEntryElem, TrackUID, track.trackNo);<NEW_LINE>if ...
, TrackType, (byte) 0x01);
811,997
/*<NEW_LINE>* Setup context path to a non-empty value (typically project artifactID)<NEW_LINE>* Should be used f.e. when creating new project<NEW_LINE>*/<NEW_LINE>private static void initContextPath(Project project) {<NEW_LINE>NbMavenProject mavenProject = project.getLookup(<MASK><NEW_LINE>WebModuleProviderImpl webModu...
).lookup(NbMavenProject.class);
653,704
private EngineConnPlugin loadEngineConnPlugin(Class<? extends EngineConnPlugin> pluginClass, EngineConnPluginClassLoader enginePluginClassLoader, Map<String, Object> props) throws EngineConnPluginLoadException {<NEW_LINE>ClassLoader storeClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Thread.curr...
getName() + "]", null);
567,565
final GetAssociatedRoleResult executeGetAssociatedRole(GetAssociatedRoleRequest getAssociatedRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssociatedRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,620,302
private TornadoInstalledCode compileTask(SchedulableTask task) {<NEW_LINE>final CompilableTask executable = (CompilableTask) task;<NEW_LINE>final ResolvedJavaMethod resolvedMethod = TornadoCoreRuntime.getTornadoRuntime().resolveMethod(executable.getMethod());<NEW_LINE>final Sketch sketch = TornadoSketcher.lookup(resolv...
, taskMeta.getId()));
106,359
private Long lookupSandboxId(WebRequest request) {<NEW_LINE>String sandboxIdStr = request.getParameter(SANDBOX_ID_VAR);<NEW_LINE>Long sandboxId = null;<NEW_LINE>if (sandboxIdStr != null) {<NEW_LINE>try {<NEW_LINE>sandboxId = Long.valueOf(sandboxIdStr);<NEW_LINE>if (LOG.isTraceEnabled()) {<NEW_LINE>LOG.trace("SandboxId ...
LOG.trace("SandboxId found in session " + sandboxId);
1,475,011
public static void requestSoftInputChange(KrollProxy proxy, View view) {<NEW_LINE>if (proxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int focusState = TiUIView.SOFT_KEYBOARD_DEFAULT_ON_FOCUS;<NEW_LINE>if (proxy.hasProperty(TiC.PROPERTY_SOFT_KEYBOARD_ON_FOCUS)) {<NEW_LINE>focusState = TiConvert.toInt(proxy<MASK><N...
.getProperty(TiC.PROPERTY_SOFT_KEYBOARD_ON_FOCUS));
1,508,596
private void updatePartnerProductQualityRating(PartnerProductQualityRating partnerProductQualityRating, StockMoveLine stockMoveLine, boolean undo) {<NEW_LINE>BigDecimal qty = !undo ? stockMoveLine.getRealQty() : stockMoveLine.getRealQty().negate();<NEW_LINE>BigDecimal compliantArrivalProductQty = partnerProductQualityR...
.setQualityRatingSelect(computeQualityRatingSelect(qualityRating));
957,053
final GetLoggingConfigurationResult executeGetLoggingConfiguration(GetLoggingConfigurationRequest getLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
713,690
protected void loadOutputProperties(RenderingRule rule, boolean override) {<NEW_LINE>RenderingRuleProperty[<MASK><NEW_LINE>for (int i = 0; i < properties.length; i++) {<NEW_LINE>RenderingRuleProperty rp = properties[i];<NEW_LINE>if (rp.isOutputProperty()) {<NEW_LINE>if (!isSpecified(rp) || override) {<NEW_LINE>Renderin...
] properties = rule.getProperties();
1,463,108
private void appendInternalArchiveLabel(IPackageFragmentRoot root, long flags) {<NEW_LINE>IResource resource = root.getResource();<NEW_LINE>boolean rootQualified = getFlag(flags, JavaElementLabels.ROOT_QUALIFIED);<NEW_LINE>if (rootQualified) {<NEW_LINE>fBuilder.append(root.getPath().makeRelative().toString());<NEW_LINE...
getFlag(flags, JavaElementLabels.REFERENCED_ROOT_POST_QUALIFIED);
1,283,065
private void updateDisplayName() {<NEW_LINE>// NON-NLS<NEW_LINE>String // NON-NLS<NEW_LINE>query = // NON-NLS<NEW_LINE>"SELECT count(distinct SUBSTR(blackboard_attributes.value_text,1,8)) AS BINs " + // NON-NLS<NEW_LINE>" FROM blackboard_artifacts " + " JOIN blackboard_attributes ON blackboard_artifacts.artifact_i...
resultSet.getLong("BINs")));
1,457,782
public synchronized void merge() {<NEW_LINE>if (activeDialog <= 0) {<NEW_LINE>throw new RevokingStoreIllegalStateException(ACTIVE_DIALOG_POSITIVE);<NEW_LINE>}<NEW_LINE>if (activeDialog == 1 && stack.size() == 1) {<NEW_LINE>stack.pollLast();<NEW_LINE>--activeDialog;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stack.size() ...
, e.getValue()));
151,247
protected void initView() {<NEW_LINE>illust = Shaft.sGson.fromJson(Params.EXAMPLE_ILLUST, IllustsBean.class);<NEW_LINE>baseBind.toolbar.toolbar.setNavigationOnClickListener(v -> mActivity.finish());<NEW_LINE>baseBind.toolbar.toolbar.<MASK><NEW_LINE>baseBind.showNow.setOnClickListener(new View.OnClickListener() {<NEW_LI...
setTitle(R.string.string_242);
1,244,140
public void marshall(InfrastructureConfiguration infrastructureConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (infrastructureConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(inf...
e.getMessage(), e);
515,625
private void initializeConfigRepository(ConfigRepoConfig repo) {<NEW_LINE><MASK><NEW_LINE>Material material = new Materials(new MaterialConfigs(materialConfig)).first();<NEW_LINE>MaterialInstance materialInstance = this.materialRepository.findMaterialInstance(materialConfig);<NEW_LINE>if (materialInstance != null) {<NE...
MaterialConfig materialConfig = repo.getRepo();
1,463,907
private static boolean verifyConditions(HintContext ctx, ExpressionTree cond, boolean equalsToNull) {<NEW_LINE>switch(cond.getKind()) {<NEW_LINE>case PARENTHESIZED:<NEW_LINE>return verifyConditions(ctx, ((ParenthesizedTree) cond).getExpression(), equalsToNull);<NEW_LINE>case NOT_EQUAL_TO:<NEW_LINE>return !equalsToNull ...
).getRightOperand(), equalsToNull);
52,954
public BufferedImage filter(BufferedImage src, BufferedImage dst) {<NEW_LINE>int width = src.getWidth();<NEW_LINE>int height = src.getHeight();<NEW_LINE>if (dst == null) {<NEW_LINE>dst = createCompatibleDestImage(src, null);<NEW_LINE>}<NEW_LINE>int[] inPixels <MASK><NEW_LINE>int[] outPixels = new int[width * height];<N...
= new int[width * height];
435,525
public void receiveResponse(HttpClientResponse clientResponse) {<NEW_LINE>int sc = clientResponse.statusCode();<NEW_LINE>int maxRedirects = request.followRedirects ? client.getOptions().getMaxRedirects() : 0;<NEW_LINE>this.clientResponse = clientResponse;<NEW_LINE>if (redirects < maxRedirects && sc >= 300 && sc < 400) ...
redirectHandler().apply(clientResponse);
904,403
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>String address = <MASK><NEW_LINE>final Target t = System.getTargetByAddress(address);<NEW_LINE>if (t == null)<NEW_LINE>return;<NEW_LINE>new ConfirmDialog(getString(R.string.mitm_ss_select_target_title), String.format(getString(R...
mAdapter.getByPosition(position).mAddress;
820,964
public void saveSettings(DBPDataSourceContainer dataSource) {<NEW_LINE>DBPConnectionConfiguration connectionInfo = dataSource.getConnectionConfiguration();<NEW_LINE>final Set<String> properties = metaURL == null ? Collections.emptySet<MASK><NEW_LINE>if (hostText != null && properties.contains(JDBCConstants.PROP_HOST)) ...
() : metaURL.getAvailableProperties();
974,184
public InferenceExecutionConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InferenceExecutionConfig inferenceExecutionConfig = new InferenceExecutionConfig();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
631,814
public ListPolicyAttachmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPolicyAttachmentsResult listPolicyAttachmentsResult = new ListPolicyAttachmentsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
923,006
private void discardRowsOutsideOf(int optimalFirstRow, int optimalLastRow) {<NEW_LINE>int firstDiscarded = -1, lastDiscarded = -1;<NEW_LINE>boolean cont = true;<NEW_LINE>while (cont && scrollBody.getLastRendered() > optimalFirstRow && scrollBody.getFirstRendered() < optimalFirstRow) {<NEW_LINE>if (firstDiscarded == -1)...
"-" + scrollBody.getLastRendered());
1,373,731
public static QueryMigrateRegionListResponse unmarshall(QueryMigrateRegionListResponse queryMigrateRegionListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMigrateRegionListResponse.setRequestId(_ctx.stringValue("QueryMigrateRegionListResponse.RequestId"));<NEW_LINE>queryMigrateRegionListResponse.setCode(_ctx.inte...
(_ctx.stringValue("QueryMigrateRegionListResponse.Message"));
1,236,332
public void initializeForModule(ModuleBinding module) {<NEW_LINE>initializeHeader(null, ClassFileConstants.AccModule);<NEW_LINE>int classNameIndex = this.constantPool.literalIndexForType(TypeConstants.MODULE_INFO_NAME);<NEW_LINE>this.contents[this.contentsOffset++] = (byte) (classNameIndex >> 8);<NEW_LINE>this.contents...
[this.contentsOffset++] = 0;
1,355,757
public Request<RemoveRoleFromDBInstanceRequest> marshall(RemoveRoleFromDBInstanceRequest removeRoleFromDBInstanceRequest) {<NEW_LINE>if (removeRoleFromDBInstanceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RemoveRoleFromDBInstanceReque...
request.setHttpMethod(HttpMethodName.POST);
1,010,737
public PutEventsConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutEventsConfigurationResult putEventsConfigurationResult = new PutEventsConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
944,705
private Node createNodeDelegateImpl() {<NEW_LINE>try {<NEW_LINE>if (!getPrimaryFile().getFileSystem().isDefault()) {<NEW_LINE>return new DataNode(this, Children.LEAF);<NEW_LINE>}<NEW_LINE>} catch (FileStateInvalidException ex) {<NEW_LINE>err.log(Level.WARNING, null, ex);<NEW_LINE>return new DataNode(this, Children.LEAF...
new CookieAdjustingFilter(new UnrecognizedSettingNode());
1,166,826
public boolean visit(MySqlCharExpr x) {<NEW_LINE>String mysqlCharset = x.getCharset();<NEW_LINE>String mysqlCollate = x.getCollate();<NEW_LINE>boolean isHex = x.isHex();<NEW_LINE>if (this.parameterized && mysqlCharset != null) {<NEW_LINE>print('?');<NEW_LINE>incrementReplaceCunt();<NEW_LINE>if (this.parameters != null)...
text = charsetName.toUTF16String(text);
1,211,909
public static //<NEW_LINE>int loadProgram(String vertShaderSrc, String fragShaderSrc) {<NEW_LINE>int vertexShader;<NEW_LINE>int fragmentShader;<NEW_LINE>int programObject;<NEW_LINE>int[] linked = new int[1];<NEW_LINE>// Load the vertex/fragment shaders<NEW_LINE>vertexShader = loadShader(GLES30.GL_VERTEX_SHADER, vertSha...
GLES30.glAttachShader(programObject, fragmentShader);
1,421,942
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>if (mAdjustViewBounds) {<NEW_LINE>ViewGroup.LayoutParams layoutParams = getLayoutParams();<NEW_LINE>if (layoutParams.width == WRAP_CONTENT && layoutParams.height == WRAP_CONTENT) {<NEW_LINE>throw new CameraException("android:adjustViewBoun...
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
355,006
private void recreateConfigDriveIso(NicProfile nic, Network network, VirtualMachineProfile vm, DeployDestination dest) throws ResourceUnavailableException {<NEW_LINE>if (nic.isDefaultNic() && _networkModel.getUserDataUpdateProvider(network).getProvider().equals(Provider.ConfigDrive)) {<NEW_LINE>DiskTO diskToUse = null;...
.getName() : ""));
1,172,078
protected void buildTreeAndRestoreState(@Nonnull final XStackFrame stackFrame) {<NEW_LINE>XSourcePosition position = stackFrame.getSourcePosition();<NEW_LINE>XDebuggerTree tree = getTree();<NEW_LINE>tree.setSourcePosition(position);<NEW_LINE>createNewRootNode(stackFrame);<NEW_LINE>final Project project = tree.getProjec...
Object newEqualityObject = stackFrame.getEqualityObject();
1,038,040
private final ILookupData call0(final INamePairIterator data) {<NEW_LINE>final Stopwatch duration = Stopwatch.createStarted();<NEW_LINE>if (!data.isValid()) {<NEW_LINE>this.validationKey = null;<NEW_LINE>values.clear();<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>this.validationKey = MLookup.createValidationKey(validatio...
lookupInfo, data.getValidationKey());