idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
291,862
protected double[][] medians(List<? extends DBIDs> clusters, double[][] medians, Relation<? extends NumberVector> relation) {<NEW_LINE>final int dim = medians[0].length;<NEW_LINE>final SortDBIDsBySingleDimension sorter = new SortDBIDsBySingleDimension(relation);<NEW_LINE>double[][] newMedians = new double[k][];<NEW_LIN...
))).doubleValue(d);
812,075
public int stackRegionBlockUnits(Region region, BlockVector3 offset, int count, boolean copyEntities, boolean copyBiomes, Mask mask) throws MaxChangedBlocksException, RegionOperationException {<NEW_LINE>checkNotNull(region);<NEW_LINE>checkNotNull(offset);<NEW_LINE>checkArgument(count >= 1, "count >= 1 required");<NEW_L...
BlockVector3 to = region.getMinimumPoint();
1,063,690
private boolean apply(final MigrationConfig config, final Client ksqlClient, final String migrationsDir, final Clock clock) {<NEW_LINE>String previous = MetadataUtil.getLatestMigratedVersion(config, ksqlClient);<NEW_LINE>LOGGER.info("Loading migration files");<NEW_LINE>final List<MigrationFile> migrations;<NEW_LINE>try...
migrations = loadMigrationsToApply(migrationsDir, previous);
177,324
private static void tryChainedCountSum(RegressionEnvironment env, int numThreads, int numEvents) {<NEW_LINE>// setup statements<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public insert into MyStreamOne select count(*) as cnt from SupportBean", path);<NEW_LINE>env.compileDeploy("@n...
("s0").addListener(listener);
1,848,561
public Document exportRecord(final MEXPFormat exportFormat, final String where, final Integer ReplicationMode, final String ReplicationType, final Integer ReplicationEvent, final IReplicationAccessContext racCtx) throws Exception {<NEW_LINE>final I_AD_Client client = Services.get(IClientDAO.class).retriveClient(exportF...
"po.get_TrxName() = " + po.get_TrxName());
1,131,699
final UpdateDataSourceResult executeUpdateDataSource(UpdateDataSourceRequest updateDataSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDataSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
587,009
public RelRoot rel(String sql, QueryParameters params) {<NEW_LINE>RelOptCluster cluster = RelOptCluster.create(planner, new RexBuilder(typeFactory));<NEW_LINE>AnalyzerOptions options = SqlAnalyzer.getAnalyzerOptions(params, defaultTimezone);<NEW_LINE>BeamZetaSqlCatalog catalog = BeamZetaSqlCatalog.create(defaultSchemaP...
registerTables(this.defaultSchemaPlus, tables);
1,008,275
protected MatParam adaptMatParam(MatParam param) {<NEW_LINE>if (param.getName().equals("alpha")) {<NEW_LINE>String alphaMode = (String) param.getValue();<NEW_LINE>switch(alphaMode) {<NEW_LINE>// fallthrough<NEW_LINE>case "MASK":<NEW_LINE>case "BLEND":<NEW_LINE>getMaterial().getAdditionalRenderState().<MASK><NEW_LINE>br...
setBlendMode(RenderState.BlendMode.Alpha);
979,352
protected void prepareInstall(File installDir) throws IOException {<NEW_LINE>createInfoPList(installDir);<NEW_LINE>generateDsym(installDir, getExecutable(), false);<NEW_LINE>if (isDeviceArch(arch)) {<NEW_LINE>// strip local symbols<NEW_LINE>strip(installDir, getExecutable());<NEW_LINE>// remove bitcode to minimize bina...
).warn("Skipping code signing. The resulting app will " + "be unsigned and will not run on unjailbroken devices");
994,206
private static void dp(int idx, int open, int val) {<NEW_LINE>// OFFSET = 3000<NEW_LINE>if (// has been reached before<NEW_LINE>visited[idx][open][val + OFFSET])<NEW_LINE>// +3000 offset to make<NEW_LINE>return;<NEW_LINE>// indices in [100..6000]<NEW_LINE>// set this to true<NEW_LINE>visited[idx][open][val + OFFSET] = ...
0) ? 1 : -1);
223,284
protected void processDyldInfo(boolean doClassic) {<NEW_LINE>List<DyldInfoCommand> commands = machoHeader.getLoadCommands(DyldInfoCommand.class);<NEW_LINE>for (DyldInfoCommand command : commands) {<NEW_LINE>if (command.getBindSize() > 0) {<NEW_LINE>BindProcessor processor = new BindProcessor(<MASK><NEW_LINE>try {<NEW_L...
program, machoHeader, provider, command);
790,864
public PointSensitivityBuilder presentValueSensitivityRatesStickyModel(ResolvedSwaption swaption, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities) {<NEW_LINE><MASK><NEW_LINE>ZonedDateTime expiryDateTime = swaption.getExpiry();<NEW_LINE>double expiry = swaptionVolatilities.relativeTime(expiryD...
validate(swaption, ratesProvider, swaptionVolatilities);
1,397,574
public void differentiateLink(String email) {<NEW_LINE>FirebaseAuth auth = FirebaseAuth.getInstance();<NEW_LINE>// [START auth_differentiate_link]<NEW_LINE>auth.fetchSignInMethodsForEmail(email).addOnCompleteListener(new OnCompleteListener<SignInMethodQueryResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void o...
> signInMethods = result.getSignInMethods();
1,113,407
final GetAccountSettingsResult executeGetAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccountSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,120,209
/* this is (non-tail) recursive right now, haven't figured out a way<NEW_LINE>* to speed it up */<NEW_LINE>private Set<Map.Entry<Object, Double>> entrySet(Set<Map.Entry<Object, Double>> s, Object[] key, boolean useLists) {<NEW_LINE>if (depth == 1) {<NEW_LINE>// System.out.println("key is long enough to add to set");<NE...
newKey[0], value1));
1,686,983
public void validate(FacesContext context) {<NEW_LINE>super.validate(context);<NEW_LINE>if (isValid() && customEvents != null) {<NEW_LINE>for (Map.Entry<String, AjaxBehaviorEvent> event : customEvents.entrySet()) {<NEW_LINE>String eventName = event.getKey();<NEW_LINE>AjaxBehaviorEvent behaviorEvent = event.getValue();<...
) + " does not support event " + eventName + "!");
1,852,031
public Optional<FieldValueBuilder> fieldValue(final Object value) {<NEW_LINE>if (null != value) {<NEW_LINE>if (value instanceof String) {<NEW_LINE>return Optional.of(HiddenFieldType.builder().value(((String) value)));<NEW_LINE>}<NEW_LINE>if (value instanceof Boolean) {<NEW_LINE>return Optional.of(BoolHiddenFieldType.bu...
().value(false));
328,487
private int computedJump(int from, int to) throws Exception {<NEW_LINE>int thisInstructionsSize = 2;<NEW_LINE>String fromString = "0x" + Integer.toHexString(from);<NEW_LINE>String toString = "0x" + Integer.toHexString(to);<NEW_LINE>String endString = "0x" + Integer.toHexString(from + thisInstructionsSize - 1);<NEW_LINE...
int distance = to - from - thisInstructionsSize;
1,409,542
public static void main(String[] args) {<NEW_LINE>DetectSingleFiducialCalibration detector;<NEW_LINE>List<String> images;<NEW_LINE>// Regular Circle Example<NEW_LINE>// detector = FactoryFiducialCalibration.circleRegularGrid(null, new ConfigGridDimen(/*numRows*/ 8, /*numCols*/ 10, 1.5, 2.5));<NEW_LINE>// images = UtilI...
getDetectedPoints().copy());
301,714
private List<I_C_Invoice_Candidate> createInvoiceCandidates(@NonNull final List<I_C_ILCandHandler> handlerRecords, final Object model) {<NEW_LINE>final List<I_C_Invoice_Candidate> result = new ArrayList<>();<NEW_LINE>if (handlerRecords.isEmpty()) {<NEW_LINE>logger.warn("No C_ILCandHandler were provided for '{}'. Nothin...
result.isEmpty(), "Internal error: result shall be empty");
1,180,119
public boolean visit(SQLDropSequenceStatement x) {<NEW_LINE>List<SQLCommentHint<MASK><NEW_LINE>if (headHints != null) {<NEW_LINE>final SqlNodeList sqlNodeList = FastSqlConstructUtils.convertHints(headHints, context, ec);<NEW_LINE>}<NEW_LINE>final SQLName name = x.getName();<NEW_LINE>String schemaName = SQLUtils.normali...
> headHints = x.getHeadHintsDirect();
198,929
private void createSaml2LogoutFilter() {<NEW_LINE>Element saml2LogoutElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.SAML2_LOGOUT);<NEW_LINE>if (saml2LogoutElt == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Saml2LogoutBeanDefinitionParser parser = new Saml2LogoutBeanDefinitionParser(this.logoutHandlers,...
BeanDefinition saml2LogoutRequestFilter = parser.getLogoutRequestFilter();
200,070
private static String pickDistributedTransition(List<DistributedTransitionOption> transitions, Person person) {<NEW_LINE><MASK><NEW_LINE>double high = 0.0;<NEW_LINE>for (DistributedTransitionOption option : transitions) {<NEW_LINE>processDistributedTransition(option);<NEW_LINE>if (option.numericDistribution != null) {<...
double p = person.rand();
208,289
static int encodeAsProperties(Query query, ByteBuffer buffer, boolean encodeQueryData) {<NEW_LINE>// Make sure we don't encode anything here if we have turned the property feature off<NEW_LINE>// Due to sendQuery we sometimes end up turning this feature on and then encoding a 0 int as the number of<NEW_LINE>// property...
getFeatures().encode(buffer);
1,409,300
private void processWebBundleDescriptor(VirtualServer virtualServer, WebModule webModule, WebModuleConfig webModuleConfig, String displayContextPath) {<NEW_LINE><MASK><NEW_LINE>if (webBundleDescriptor != null) {<NEW_LINE>// Determine if an alternate DD is set for this web-module in the application<NEW_LINE>webModule.co...
WebBundleDescriptor webBundleDescriptor = webModuleConfig.getDescriptor();
1,172,155
private void addDyeRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Black<NEW_LINE>dye(consumer, basePath, Items.BLACK_DYE, false, EnumColor.BLACK, "black_dye");<NEW_LINE>// Blue<NEW_LINE>dye(consumer, basePath, Items.BLUE_DYE, false, EnumColor.DARK_BLUE, "blue_dye");<NEW_LINE>dye(consumer, bas...
WHITE, "white_dye", BYGBlocks.ODDITY_CACTUS);
796,496
private static Point index2point(Point index) {<NEW_LINE>int indexPos = index.x;<NEW_LINE>int indexLevel = index.y;<NEW_LINE>if (indexPos < indexLevel)<NEW_LINE>return new Point(indexLevel, indexPos);<NEW_LINE>else if (indexPos < 3 * indexLevel)<NEW_LINE>return new Point(indexLevel - (indexPos - indexLevel), indexLevel...
(indexPos - 3 * indexLevel));
1,091,118
public void process(final Exchange exchange) {<NEW_LINE>final ImportProductsRouteContext context = ProcessorHelper.getPropertyOrThrowError(exchange, ROUTE_PROPERTY_IMPORT_PRODUCTS_CONTEXT, ImportProductsRouteContext.class);<NEW_LINE>final JsonProduct product = context.getJsonProduct();<NEW_LINE>final PriceListBasicInfo...
product, context.getPInstanceId());
287,302
public void adminRemoveUserFromGroup(AdminRemoveUserFromGroupRequest adminRemoveUserFromGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminRemoveUserFromGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionConte...
invoke(request, responseHandler, executionContext);
1,401,993
private static JSFunctionData createPromiseRejectFunctionImpl(JSContext context) {<NEW_LINE>class PromiseRejectRootNode extends JavaScriptRootNode implements AsyncHandlerRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode reasonNode;<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private PropertyGetNode getPromise...
AlreadyResolved) getAlreadyResolvedNode.getValue(functionObject);
1,786,261
final DeleteMitigationActionResult executeDeleteMitigationAction(DeleteMitigationActionRequest deleteMitigationActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMitigationActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteMitigationAction");
257,270
public RestResultBean doPostRandomPasswordJson(final RestRequest restRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final JsonInput jsonInput = RestUtility.deserializeJsonBody(restRequest, JsonInput.class);<NEW_LINE>try {<NEW_LINE>final JsonOutput jsonOutput = doOperation(restRequest, jsonInput);<NEW...
withData(jsonOutput, JsonOutput.class);
1,721,640
public void undo(DiagramHandler handler) {<NEW_LINE>super.undo(handler);<NEW_LINE>// We must zoom to the defaultGridsize before execution<NEW_LINE>int oldZoom = handler.getGridSize();<NEW_LINE>handler.setGridAndZoom(Constants.DEFAULTGRIDSIZE, false);<NEW_LINE>int offsetX = origin.x - handler.getDrawPanel().getOriginAtD...
().getOriginAtDefaultZoom().y;
1,391,584
public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>super.closeElement(<MASK><NEW_LINE>try {<NEW_LINE>if (RocksimCommonConstants.OD.equals(element)) {<NEW_LINE>lug.setOuterRadius(Math.max(0, Double.parseDouble(content) / Rocksi...
element, attributes, content, warnings);
821,832
void run0(@NonNull final RolloutMigrationConfig config) {<NEW_LINE>final DBConnectionSettings dbConnectionSettings;<NEW_LINE>if (config.getDbConnectionSettings() != null) {<NEW_LINE>dbConnectionSettings = config.getDbConnectionSettings();<NEW_LINE>} else {<NEW_LINE>final DBConnectionSettingProperties settingProperties ...
.build().prepareNewDBCopy();
95,507
public void onRequestFinish(MegaApiJava api, MegaRequest request, MegaError e) {<NEW_LINE>if (request.getType() == MegaRequest.TYPE_INVITE_CONTACT) {<NEW_LINE>logDebug("MegaRequest.TYPE_INVITE_CONTACT finished: " + request.getNumber());<NEW_LINE>if (request.getNumber() == MegaContactRequest.INVITE_ACTION_REMIND) {<NEW_...
(R.string.context_contact_invitation_deleted));
446,668
private Result doTypechecking(List<Concrete.Pattern> patterns, List<? extends Concrete.Parameter> concreteParams, DependentLink parameters, ExprSubstitution paramSubst, ExprSubstitution totalSubst, ConcreteSourceNode sourceNode) {<NEW_LINE>// Put patterns in the correct order<NEW_LINE>// If some parameters are not elim...
patterns1 = new ArrayList<>();
1,745,928
public static boolean splitKeyRangeContains(Object[] key, Object[] splitKeyStart, Object[] splitKeyEnd) {<NEW_LINE>// for all range<NEW_LINE>if (splitKeyStart == null && splitKeyEnd == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// first split<NEW_LINE>if (splitKeyStart == null) {<NEW_LINE>int[] upperBoundRes = n...
(value -> value <= 0));
287,555
public TByteBuffer putLong(int index, long value) {<NEW_LINE>if (readOnly) {<NEW_LINE>throw new TReadOnlyBufferException();<NEW_LINE>}<NEW_LINE>if (index < 0 || index + 3 >= limit) {<NEW_LINE>throw new IndexOutOfBoundsException("Index " + index + " is outside of range [0;" + (limit - 3) + ")");<NEW_LINE>}<NEW_LINE>if (...
+ 0] = (byte) value;
1,048,575
public static void createUpgradeInfoByURL(String url, final OnResultListener listener) {<NEW_LINE>OkHttpClient client = new OkHttpClient();<NEW_LINE>Request request = new Request.Builder().url(url).build();<NEW_LINE>client.newCall(request).enqueue(new Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFai...
(jsonObject.optString("Version"));
405,154
public void collect(CrawlController controller, StatisticsTracker stats) {<NEW_LINE>// TODO: reconsider names of these methods, inline?<NEW_LINE>downloadedUriCount = controller.getFrontier().succeededFetchCount();<NEW_LINE>bytesProcessed <MASK><NEW_LINE>timestamp = System.currentTimeMillis();<NEW_LINE>novelBytes = stat...
= stats.crawledBytes.getTotalBytes();
785,836
public void marshall(ListRecommendedIntentsRequest listRecommendedIntentsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listRecommendedIntentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
listRecommendedIntentsRequest.getMaxResults(), MAXRESULTS_BINDING);
937,960
protected void initializeQualifierKindFields(@UnderInitialization DefaultQualifierKindHierarchy this, Map<DefaultQualifierKind, Set<DefaultQualifierKind>> directSuperMap) {<NEW_LINE>for (DefaultQualifierKind qualifierKind : directSuperMap.keySet()) {<NEW_LINE>if (!qualifierKind.isPoly()) {<NEW_LINE>qualifierKind.strict...
.poly = qualifierKind.top.poly;
953,193
private void performAction(Savable sc, Node n) {<NEW_LINE>UserQuestionException userEx = null;<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>if (userEx == null) {<NEW_LINE>sc.save();<NEW_LINE>} else {<NEW_LINE>userEx.confirmed();<NEW_LINE>}<NEW_LINE>StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(SaveAct...
, e.getLocalizedMessage()));
1,411,232
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Location s3Location = new S3Location();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
1,604,341
protected void closeDown(final boolean end_of_day) {<NEW_LINE>// problems here at end of day regarding devices that hang and cause AZ to hang around<NEW_LINE>// got ages before terminating<NEW_LINE>final AESemaphore sem = new AESemaphore("UPnPPlugin:closeTimeout");<NEW_LINE>new AEThread2("UPnPPlugin:closeTimeout") {<NE...
removeMapping(log, mapping, end_of_day);
1,621,473
private void pasteSeveralValues(ArrayList<ClipboardCell> list) {<NEW_LINE>// TODO algorithm very bad<NEW_LINE>int minRow = getGrid().getRowCount();<NEW_LINE>int minCol = getGrid().getColumnCount();<NEW_LINE>int maxRow = 0;<NEW_LINE>int maxCol = 0;<NEW_LINE>for (final ClipboardCell p : list) {<NEW_LINE>final int tempcol...
change.getRow() + offsetRow);
572,780
public void sawOpcode(int seen) {<NEW_LINE>if (reportedForThisClass) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(seen) {<NEW_LINE>case LDC:<NEW_LINE>Constant constantValue = getConstantRefOperand();<NEW_LINE>if (constantValue instanceof ConstantClass) {<NEW_LINE>sawGetClass = -100;<NEW_LINE>} else if (constantValue i...
).getBytes(getConstantPool());
104,644
public void LAPACK_zggsvp3(String arg0, String arg1, String arg2, int[] arg3, int[] arg4, int[] arg5, double[] arg6, int[] arg7, double[] arg8, int[] arg9, double[] arg10, double[] arg11, int[] arg12, int[] arg13, double[] arg14, int[] arg15, double[] arg16, int[] arg17, double[] arg18, int[] arg19, int[] arg20, double...
arg22, arg23, arg24, arg25);
1,246,193
public static void forceCloseApp(PathVars pathVars) {<NEW_LINE>ModulesStatus modulesStatus = ModulesStatus.getInstance();<NEW_LINE>if (modulesStatus.isRootAvailable()) {<NEW_LINE><MASK><NEW_LINE>String ip6tablesPath = pathVars.getIp6tablesPath();<NEW_LINE>String busyboxPath = pathVars.getBusyboxPath();<NEW_LINE>modules...
String iptablesPath = pathVars.getIptablesPath();
316,214
private Intent createOpenFileIntent(OCFile file) {<NEW_LINE>String storagePath = file.getStoragePath();<NEW_LINE>Uri fileUri = getFileUri(file, MainApp.getAppContext().getResources().getStringArray(R.array.ms_office_extensions));<NEW_LINE>Intent openFileWithIntent = null;<NEW_LINE>int lastIndexOfDot = storagePath.lastI...
fileUri, file.getMimeType());
1,472,683
// GEN-LAST:event_includeExcludeButtonActionPerformed<NEW_LINE>private void updateFolder(JTextField textField) {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>FileUtil.preventFileChooserSymlinkTraversal(chooser, null);<NEW_LINE>chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);<NEW_LINE>File fi...
normalizeFile(chooser.getSelectedFile());
1,169,950
private void save(ServerIntFloatRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>int startCol = (int) meta.getStartCol();<NEW_LINE>IntFloatVector <MASK><NEW_LINE>IntFloatElement element = new IntFloatElement();<NEW_LINE>if (vector.isDense()) {<NEW_L...
vector = ServerRowUtils.getVector(row);
1,376,044
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) {<NEW_LINE>// Must call here in addition to onStateChanged because<NEW_LINE>// onConnectorHierarchyChange is invoked before onStateChanged<NEW_LINE>updateHtmlTemplate();<NEW_LINE>// For all contained widgets<NEW_LINE>for (ComponentConnector chi...
warning("Child not rendered as no slot with id '" + location + "' has been defined");
281,774
private static HashSet<IElementType> initKeyWordsSet() {<NEW_LINE>HashSet<IElementType> keyWords = new HashSet<>();<NEW_LINE>keyWords.add(SdTypes.SEARCH);<NEW_LINE>keyWords.add(SdTypes.SCHEMA);<NEW_LINE>keyWords.add(SdTypes.FIELD);<NEW_LINE>keyWords.add(SdTypes.TYPE);<NEW_LINE>keyWords.add(SdTypes.INDEXING);<NEW_LINE>k...
keyWords.add(SdTypes.DICTIONARY);
890,341
public ConnectedUsers chatGetConnected() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/chat/connected";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>()...
headerParams, formParams, contentType, authNames);
295,996
// Just copy attributes one by one.<NEW_LINE>private void copyFewAttribs(InGeometry in, int i0, int index, int nvert) {<NEW_LINE>for (int i = 0; i < nvert; i++) {<NEW_LINE>int inIdx = i0 + i;<NEW_LINE>int tessIdx = firstPolyVertex + i;<NEW_LINE>index = 2 * inIdx;<NEW_LINE>float u = in.texcoords[index++];<NEW_LINE>float...
++] = inValues[index0++];
935,980
public void run() {<NEW_LINE>setTitleImage(Images.active);<NEW_LINE>CircularBufferDataProvider callProvider = (CircularBufferDataProvider) callTrace.getDataProvider();<NEW_LINE>CircularBufferDataProvider selectProvider = (CircularBufferDataProvider) selectTrace.getDataProvider();<NEW_LINE>CircularBufferDataProvider ins...
.substring(6, 8));
660,273
public static NameAndVisibility pickName(DeclaredType targetType, Elements elements, Types types, TypeMirror returnType, String preferredName, TypeMirror... parameterTypes) {<NEW_LINE>Map<String, ExecutableElement> methodsByName = methodsOn(asElement(targetType), elements, errorType -> {<NEW_LINE>}).stream().filter(mat...
NameAndVisibility.of(name, visibility);
1,312,559
public void toSink(CharSink sink) {<NEW_LINE>sink.put("insert");<NEW_LINE>if (batchSize != -1) {<NEW_LINE>sink.put<MASK><NEW_LINE>}<NEW_LINE>if (commitLag != 0) {<NEW_LINE>sink.put(" lag ").put(commitLag);<NEW_LINE>}<NEW_LINE>sink.put(" into ").put(tableName.token).put(' ');<NEW_LINE>int n = columnSet.size();<NEW_LINE>...
(" batch ").put(batchSize);
1,005,799
private void initialize() {<NEW_LINE>viewModel = new GlobalSearchResultDialogViewModel(preferencesService);<NEW_LINE>PreviewViewer previewViewer = new PreviewViewer(viewModel.getSearchDatabaseContext(), dialogService, stateManager, themeManager);<NEW_LINE>previewViewer.setLayout(preferencesService.getPreviewPreferences...
setEntry(newValue.getEntry());
1,804,264
private void timeoutLog(final RpcRequestCommand cmd, long currentTimestamp, RemotingContext ctx) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("request id [{}] currenTimestamp [{}] - arriveTime [{}] = server cost [{}] >= timeout value [{}].", cmd.getId(), currentTimestamp, cmd.getArriveTime(), (curren...
Channel channel = channelCtx.channel();
1,100,278
private HyperlinkInfo buildFileHyperlinkInfo(@Nonnull String url) {<NEW_LINE>if (myProject != null && !url.endsWith(".html") && url.startsWith(LocalFileSystem.PROTOCOL_PREFIX)) {<NEW_LINE><MASK><NEW_LINE>int filePathEndIndex = url.length();<NEW_LINE>final int lastColonInd = url.lastIndexOf(':');<NEW_LINE>if (lastColonI...
int documentLine = 0, documentColumn = 0;
531,035
private void startScaning(ScanResult callback) {<NEW_LINE>this.callback = callback;<NEW_LINE>try {<NEW_LINE>// Add the listener for scan and cancel<NEW_LINE>Container cmdContainer = new Container(new FlowLayout(Component.CENTER));<NEW_LINE>Button scanButton = new Button(new Command("Scan") {<NEW_LINE><NEW_LINE>public v...
addComponent(BorderLayout.SOUTH, cmdContainer);
380,109
public void initialize(Server server, Injector injector) {<NEW_LINE>final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS);<NEW_LINE>root.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");<NEW_LINE>root.addServlet(new ServletHolder(new DefaultServlet()), "/*...
GuiceFilter.class, "/druid-ext/*", null);
1,811,615
public void updateTableEntries(final WireCommands.UpdateTableEntries updateTableEntries) {<NEW_LINE>String segment = updateTableEntries.getSegment();<NEW_LINE>final String operation = "updateTableEntries";<NEW_LINE>if (!verifyToken(segment, updateTableEntries.getRequestId(), updateTableEntries.getDelegationToken(), ope...
), timer.getElapsed());
490,031
protected void runOneIteration() {<NEW_LINE>try {<NEW_LINE>LaunchingTasks launchingTasks = new LaunchingTasks(facadeService.getEligibleJobContext());<NEW_LINE>List<TaskRequest> taskRequests = launchingTasks.getPendingTasks();<NEW_LINE>if (!taskRequests.isEmpty()) {<NEW_LINE>AppConstraintEvaluator.getInstance().loadAppR...
0).getOffer()));
296,092
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>HttpServletResponse resp = (HttpServletResponse) response;<NEW_LINE>String servletPath = servletPathPrefix;<NEW_LINE>i...
resp.getWriter(), exceptionDto);
317,729
private static void printRawOpenOrders(MercadoBitcoinTradeServiceRaw tradeService) throws IOException, InterruptedException {<NEW_LINE>MercadoBitcoinBaseTradeApiResult<MercadoBitcoinUserOrders> openOrdersResult = tradeService.getMercadoBitcoinUserOrders("btc_brl", null, "active", null, null, null, null);<NEW_LINE>Merca...
null, null, null, null);
836,161
public static APIChangeRoleStateEvent __example__() {<NEW_LINE>APIChangeRoleStateEvent event = new APIChangeRoleStateEvent();<NEW_LINE>RoleInventory role = new RoleInventory();<NEW_LINE>role.setName("role-1");<NEW_LINE>RolePolicyStatementInventory inv = new RolePolicyStatementInventory();<NEW_LINE>PolicyStatement state...
inv.setRoleUuid(uuid());
307,190
private void makeUnderlyingCodegen(CodegenMethod method, CodegenClassScope codegenClassScope) {<NEW_LINE>method.getBlock().declareVar(jsonEventType.getUnderlyingEPType(), "und", cast(jsonEventType.getUnderlyingEPType(), beanInstantiator.make(method, codegenClassScope))).declareVar(EPTypePremade.OBJECT.getEPType(), "val...
getBlock().expression(set);
32,595
private static void updateContactsDatabase(@NonNull Context context, @NonNull Collection<RecipientId> activeIds, boolean removeMissing, @NonNull Map<String, String> rewrites) {<NEW_LINE>if (!Permissions.hasAll(context, Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS)) {<NEW_LINE>Log.w(TAG, "[updat...
w(TAG, "Failed to update contacts.", e);
696,276
public void marshall(ExportSnapshotRecord exportSnapshotRecord, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (exportSnapshotRecord == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(exportSnapshotRecord.get...
exportSnapshotRecord.getResourceType(), RESOURCETYPE_BINDING);
1,568,688
public GetChangeLogsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetChangeLogsResult getChangeLogsResult = new GetChangeLogsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,420,727
public static void main(String[] args) throws Exception {<NEW_LINE>String url = "https://alink-release.oss-cn-beijing.aliyuncs.com/data-files/movielens_ratings.csv";<NEW_LINE>String schema = "userid bigint, movieid bigint, rating double, timestamp string";<NEW_LINE>BatchOperator data = new CsvSourceBatchOp().setFilePat...
SplitBatchOp().setFraction(0.8);
940,316
public void updateGui() {<NEW_LINE>// Note: There is a reason for why we have to update the toolbar<NEW_LINE>// from the outside. The toolbar can not update itself because<NEW_LINE>// the toolbar state depends on the state of the TID box in the<NEW_LINE>// debug panel.<NEW_LINE>final IDebugger debugger = m_debugger.get...
.getDebuggerOptions().mustHaltBeforeCommunicating();
560,455
public boolean buildHourlyTask(String name, String domain, Date start) {<NEW_LINE>UtilizationReport utilizationReport = new UtilizationReport(Constants.CAT);<NEW_LINE>Date end = new Date(start.getTime() + TimeHelper.ONE_HOUR);<NEW_LINE>Set<String> domains = m_reportService.queryAllDomainNames(start, end, TransactionAna...
d = utilizationReport.findOrCreateDomain(project);
1,821,407
public boolean retryRequest(HttpResponse response, int executionCount, HttpContext ctx) {<NEW_LINE>log.fine(() -> String.format("retryRequest(responseCode='%s', executionCount='%d', ctx='%s'", response.getStatusLine().getStatusCode(), executionCount, ctx));<NEW_LINE>HttpClientContext clientCtx = HttpClientContext.adapt...
("Retrying after %s for '%s'", delay, ctx));
213,243
public void parseScope(Element scopeElement, ScopeImpl parentScope) {<NEW_LINE>// Not yet supported on process level (PVM additions needed):<NEW_LINE>// parseProperties(processElement);<NEW_LINE>// filter activities that must be parsed separately<NEW_LINE>List<Element> activityElements = new ArrayList<>(scopeElement.el...
Element> compensationHandlers = filterCompensationHandlers(activityElements);
1,475,644
public void buildFakeAjaxResponse(ActionRequest req, ActionResponse res) throws IOException, LanguageException {<NEW_LINE>try {<NEW_LINE>HibernateUtil.closeAndCommitTransaction();<NEW_LINE>} catch (DotHibernateException e) {<NEW_LINE>try {<NEW_LINE>HibernateUtil.rollbackTransaction();<NEW_LINE>} catch (DotHibernateExce...
Writer out = response.getWriter();
903,709
public void writeObject(ByteBuffer buffer, Object object) throws IOException {<NEW_LINE>Collection collection = (Collection) object;<NEW_LINE>int length = collection.size();<NEW_LINE>buffer.putInt(length);<NEW_LINE>if (length == 0)<NEW_LINE>return;<NEW_LINE>Iterator it = collection.iterator();<NEW_LINE>Class elementCla...
Object obj = it.next();
528,199
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response revokeUsersToken(@Context final HttpServletRequest request, @Context final HttpServletResponse response) throws DotSecurityException, DotDataException {<NEW_LINE>final InitDataObject init...
.get(request).respectAnonPerms);
1,093,730
final ListDatasetImportJobsResult executeListDatasetImportJobs(ListDatasetImportJobsRequest listDatasetImportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetImportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
742,688
// Assumes the type has already been deserialized<NEW_LINE>public static SchemaChange deserializeEvent(ByteBuf cb, ProtocolVersion version) {<NEW_LINE>Change change = CBUtil.readEnumValue(Change.class, cb);<NEW_LINE>if (version.isGreaterOrEqualTo(ProtocolVersion.V3)) {<NEW_LINE>Target target = CBUtil.<MASK><NEW_LINE>St...
readEnumValue(Target.class, cb);
1,299,150
public void write(UI ui, Writer writer, PaintTarget target) throws IOException {<NEW_LINE>Collection<ClientConnector> dirtyVisibleConnectors = ui.getConnectorTracker().getDirtyVisibleConnectors();<NEW_LINE>List<Component> legacyComponents = new ArrayList<>(dirtyVisibleConnectors.size());<NEW_LINE>for (ClientConnector c...
String pid = c.getConnectorId();
570,166
public Object handle(HttpServletRequest request, @RequestBody(required = false) Map<String, String> body) {<NEW_LINE>HttpHeaders headers = new ServletServerHttpRequest(request).getHeaders();<NEW_LINE>Map<String, Object> arguments = getArguments(request, body);<NEW_LINE>try {<NEW_LINE>ServletSecurityContext securityCont...
getRequiredWebApplicationContext(request.getServletContext());
1,815,888
public UploadPartCopyResult uploadPartCopy(UploadPartCopyRequest uploadPartCopyRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(uploadPartCopyRequest, "uploadPartCopyRequest");<NEW_LINE>String key = uploadPartCopyRequest.getKey();<NEW_LINE>String bucketName = uploadPartCopyRequest.getBuck...
int partNumber = uploadPartCopyRequest.getPartNumber();
118,899
public void writeTo(T obj, Class<?> cls, Type genericType, Annotation[] anns, MediaType m, MultivaluedMap<String, Object> headers, OutputStream os) throws IOException {<NEW_LINE>try {<NEW_LINE>String encoding = HttpUtils.getSetEncoding(m, headers, StandardCharsets.UTF_8.name());<NEW_LINE>if (InjectionUtils.isSupportedC...
obj, cls, anns, true);
1,165,397
private Set<String> determineImports(GroovyCompilationUnit compilationUnit) {<NEW_LINE>List<String> imports = new ArrayList<>();<NEW_LINE>for (GroovyTypeDeclaration typeDeclaration : compilationUnit.getTypeDeclarations()) {<NEW_LINE>if (requiresImport(typeDeclaration.getExtends())) {<NEW_LINE>imports.add(typeDeclaratio...
return new LinkedHashSet<>(imports);
16,429
final ClusterSecurityGroup executeAuthorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest authorizeClusterSecurityGroupIngressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(authorizeClusterSecurityGroupIngressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,134,576
public KnowledgesEntity rawPhysicalInsert(KnowledgesEntity entity) {<NEW_LINE>String sql = SQLManager.getInstance().getSql("/org/support/project/knowledge/dao/sql/KnowledgesDao/KnowledgesDao_raw_insert.sql");<NEW_LINE>executeUpdate(sql, entity.getKnowledgeId(), entity.getTitle(), entity.getContent(), entity.getPublicFl...
).getDriverClass(getConnectionName());
1,595,912
public ActionErrors validate(ActionMapping arg0, HttpServletRequest request) {<NEW_LINE>ActionErrors errors = new ActionErrors();<NEW_LINE>String title = request.getParameter("title");<NEW_LINE>if (title == null || title.equals("")) {<NEW_LINE>errors.add(ActionMessages.<MASK><NEW_LINE>}<NEW_LINE>if (request instanceof ...
GLOBAL_MESSAGE, new ActionMessage("message.contentlet.title.required"));
1,219,100
private AttributedString formatTransfers(String projectId) {<NEW_LINE>Collection<TransferEvent> transfers = this.transfers.getOrDefault(projectId, Collections.emptyMap()).values();<NEW_LINE>if (transfers.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TransferEvent event = transfers.iterator().next();<NEW_LINE>S...
== TransferEvent.PUT ? "to" : "from";
1,295,560
public boolean bodyCall(Node[] args, int length, RuleContext context) {<NEW_LINE>StringBuilder key = new StringBuilder();<NEW_LINE>for (int i = 1; i < length; i++) {<NEW_LINE>Node n = getArg(i, args, context);<NEW_LINE>if (n.isBlank()) {<NEW_LINE>key.append("B");<NEW_LINE>key.<MASK><NEW_LINE>} else if (n.isURI()) {<NEW...
append(n.getBlankNodeLabel());
1,171,143
public ItemStack finishUsingItem(ItemStack stack, Level worldIn, LivingEntity entityLiving) {<NEW_LINE>if (!(entityLiving instanceof Player))<NEW_LINE>return stack;<NEW_LINE>Player player = (Player) entityLiving;<NEW_LINE><MASK><NEW_LINE>if (tag.contains("Polishing")) {<NEW_LINE>ItemStack toPolish = ItemStack.of(tag.ge...
CompoundTag tag = stack.getOrCreateTag();
628,111
private void updateUi() {<NEW_LINE>// Set Hash<NEW_LINE>TransactionDetailsLabel tvHash = findViewById(R.id.tvHash);<NEW_LINE>tvHash.setColuMode(coluMode);<NEW_LINE>tvHash.setTransaction(tx);<NEW_LINE>// Set Confirmed<NEW_LINE>int confirmations = tx.getConfirmations();<NEW_LINE>String confirmed;<NEW_LINE>if (confirmatio...
getString(R.string.transaction_not_broadcasted_info);
1,532,290
public static AudioSampleEntry audioSampleEntry(String fourcc, int drefId, int sampleSize, int channels, int sampleRate, ByteOrder endian) {<NEW_LINE>AudioSampleEntry ase = createAudioSampleEntry(Header.createHeader(fourcc, 0), (short) drefId, (short) channels, (short) 16, sampleRate, (short) 0, 0, 65535, 0, 1, sampleS...
(FormatBox.createFormatBox(fourcc));
1,653,042
private SubmitBlockResult processSolution(String blockHashForMergedMining, BtcBlock blockWithHeaderOnly, BtcTransaction coinbase, Function<MerkleProofBuilder, byte[]> proofBuilderFunction, boolean lastTag) {<NEW_LINE>Block newBlock;<NEW_LINE>Keccak256 key = new Keccak256(TypeConverter.removeZeroX(blockHashForMergedMini...
.bitcoinSerialize(), lastTag));
837,470
public void generateMetatype() throws Exception {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>ClassLoader raClassLoader = cmInfo.getClassLoader();<NEW_LINE>this<MASK><NEW_LINE>this.urls = cmInfo.getContainer().getURLs();<NEW_LINE>// configurationHelper<NEW_LINE>Map<String, Object> meta...
.rarFileName = cmInfo.getURI();
961,755
public PathItem convert(Path v2Path) {<NEW_LINE>PathItem v3Path = new PathItem();<NEW_LINE>if (v2Path instanceof RefPath) {<NEW_LINE>v3Path.set$ref(((RefPath) v2Path).get$ref());<NEW_LINE>} else {<NEW_LINE>if (v2Path.getParameters() != null) {<NEW_LINE>for (io.swagger.models.parameters.Parameter param : v2Path.getParam...
(v2Path.getVendorExtensions()));