idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,204,880
public DescribeAppVersionTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAppVersionTemplateResult describeAppVersionTemplateResult = new DescribeAppVersionTemplateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
907,122
public static void main(String[] args) throws IoTDBConnectionException {<NEW_LINE>Options options = createOptions();<NEW_LINE>HelpFormatter hf = new HelpFormatter();<NEW_LINE>hf.setOptionComparator(null);<NEW_LINE>hf.setWidth(MAX_HELP_CONSOLE_WIDTH);<NEW_LINE>CommandLine commandLine = null;<NEW_LINE>CommandLineParser p...
printHelp(TSFILEDB_CLI_PREFIX, options, true);
1,417,544
public static void init() {<NEW_LINE>AssemblerUtils.init();<NEW_LINE>AssemblerUtils.registerDataset(TextVocab.textDataset, new TextDatasetAssembler());<NEW_LINE>Assembler.general.implementWith(TextVocab.entityMap, new EntityDefinitionAssembler());<NEW_LINE>Assembler.general.implementWith(TextVocab<MASK><NEW_LINE>Assemb...
.textIndexLucene, new TextIndexLuceneAssembler());
1,443,063
public static void addCompletions(@NotNull CompletionResultSet result, @NotNull Module module, @Nullable PsiElement context, @NotNull GlobalSearchScope scope, boolean allowMain) {<NEW_LINE>Project project = module.getProject();<NEW_LINE>boolean vendoringEnabled = GoVendoringUtil.isVendoringEnabled(module);<NEW_LINE>Str...
testFileWithTestPackage = GoTestFinder.isTestFileWithTestPackage(contextFile);
711,583
public void testFlowProgram_ClientIBMJson4JProviders_JSONArray_Post(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>JSONArray newJsonArr = new JSONArray();<NEW_LINE>JSONObject obj1 = new JSONObject();<NEW_LI...
ClientBuilder cb = ClientBuilder.newBuilder();
481,741
public Instance pipe(Instance carrier) {<NEW_LINE>Object inputData = carrier.getData();<NEW_LINE>LabelAlphabet labels;<NEW_LINE>LabelSequence target = null;<NEW_LINE>String[][] tokens;<NEW_LINE>StringBuffer source = new StringBuffer();<NEW_LINE>StringTokenization ts = new StringTokenization(source);<NEW_LINE>if (inputD...
tokens[l][nFeatures]);
107,092
public boolean unplugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest) throws ConcurrentOperationException, ResourceUnavailableException {<NEW_LINE>boolean result = true;<NEW_LINE>final VMInstanceVO router = _vmDao.findById(vm.getId())...
class, router.getDataCenterId());
367,268
private Number runHandler(AbstractEmulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>if (stack == null) {<NEW_LINE>stack = allocateStack(emulator);<NEW_LINE>}<NEW_LINE>if (action.needSigInfo() && infoBlock == null) {<NEW_LINE>infoBlock = emulator.getMemory().malloc(128, true);<NEW_LINE>i...
UC_ARM_REG_LR, emulator.getReturnAddress());
1,222,539
public static GetIndexResponse fromXContent(XContentParser parser) throws IOException {<NEW_LINE>Map<String, List<AliasMetadata>> aliases = new HashMap<>();<NEW_LINE>Map<String, MappingMetadata> mappings = new HashMap<>();<NEW_LINE>Map<String, Settings> settings = new HashMap<>();<NEW_LINE>Map<String, Settings> default...
put(indexName, indexEntry.indexMappings);
1,144,446
final AddFacetToObjectResult executeAddFacetToObject(AddFacetToObjectRequest addFacetToObjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addFacetToObjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(addFacetToObjectRequest));
1,030,735
static void pattern(int n) {<NEW_LINE>// Procedure to print the Required Pattern<NEW_LINE>int inSpaces = 2;<NEW_LINE>int belowSpaces = 2 * n - 2;<NEW_LINE>for (int row = 1; row <= 2 * n; row++) {<NEW_LINE>int totalColumns = row > n ? row - n : n - row + 1;<NEW_LINE>for (int column = 1; column <= totalColumns; column++)...
System.out.print("*");
485,889
private void testPartitionedRollbackMetric(JobExecution jobExec, long execID) throws Exception {<NEW_LINE>if (!jobExec.getBatchStatus().equals(BatchStatus.FAILED)) {<NEW_LINE>throw new TestFailureException("Didn't fail as expected successfully, returned a Status of: " + jobExec.getBatchStatus());<NEW_LINE>}<NEW_LINE>St...
Metric.MetricType.ROLLBACK_COUNT + " was not equal to 3");
1,313,597
public static synchronized boolean registerComponent(Map<String, ComponentCache> componentCacheMap) {<NEW_LINE>if (componentCacheMap.isEmpty())<NEW_LINE>return true;<NEW_LINE>final Iterator<Map.Entry<String, ComponentCache>> iterator = componentCacheMap.entrySet().iterator();<NEW_LINE>WXBridgeManager.getInstance().post...
, Object> registerInfo = value.componentInfo;
106,355
public static String expandIP(String netaddress, int part) {<NEW_LINE>netaddress = netaddress.toUpperCase();<NEW_LINE>// expand netaddress<NEW_LINE>int separatorCount = StringUtils.countMatches(netaddress, ":");<NEW_LINE>int padCount = part - separatorCount;<NEW_LINE>if (padCount > 0) {<NEW_LINE>StringBuilder padStr = ...
StringUtils.splitPreserveAllTokens(netaddress, ":");
138,396
private void readSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) throws Http2Exception {<NEW_LINE>if (flags.ack()) {<NEW_LINE>listener.onSettingsAckRead(ctx);<NEW_LINE>} else {<NEW_LINE>int numSettings = payloadLength / SETTING_ENTRY_LENGTH;<NEW_LINE>Http2Settings settings = new H...
(char) payload.readUnsignedShort();
1,666,851
public static StitchingTransform<Affine2D_F32> createAffine_F32() {<NEW_LINE>return new StitchingTransform<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PixelTransform<Point2D_F32> convertPixel(Affine2D_F32 input, @Nullable PixelTransform<Point2D_F32> output) {<NEW_LINE>if (output != null) {<NEW_LINE>((PixelTransf...
) output).setTo(input);
303,377
public final CreateTablespaceInnodbContext createTablespaceInnodb() throws RecognitionException {<NEW_LINE>CreateTablespaceInnodbContext _localctx = new CreateTablespaceInnodbContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 40, RULE_createTablespaceInnodb);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAl...
_la = _input.LA(1);
1,325,088
private static Document convertAllTriplesToDocument(DigestURL url, String mimeType, String charset, IRDFaTriple[] allTriples) {<NEW_LINE>// Set<String> languages = new HashSet<String>(2);<NEW_LINE>Set<String> keywords = new HashSet<String>(allTriples.length);<NEW_LINE>// Set<String> sections = new HashSet<String>(5);<N...
string.replace(".", "Y");
593,092
private void processExample(Example ex) {<NEW_LINE>File inPath = new File(opts.filtererInputDumpDirectory, ex.id + ".gz");<NEW_LINE>File outPath = new File(Execution.getFile("filtered"), ex.id + ".gz");<NEW_LINE>try {<NEW_LINE>BufferedReader reader = IOUtils.openInHard(inPath);<NEW_LINE>PrintWriter <MASK><NEW_LINE>int ...
writer = IOUtils.openOutHard(outPath);
1,381,824
protected void disconnectTransactions(StoredBlock oldBlock) throws PrunedException, BlockStoreException {<NEW_LINE><MASK><NEW_LINE>blockStore.beginDatabaseBatchWrite();<NEW_LINE>try {<NEW_LINE>StoredUndoableBlock undoBlock = blockStore.getUndoBlock(oldBlock.getHeader().getHash());<NEW_LINE>if (undoBlock == null)<NEW_LI...
checkState(lock.isHeldByCurrentThread());
1,497,756
public StorageReport queryHourlyReport(String reportId, Date start, Date end) {<NEW_LINE>StorageReportMerger merger = new StorageReportMerger(new StorageReport(reportId));<NEW_LINE>long startTime = start.getTime();<NEW_LINE>long endTime = end.getTime();<NEW_LINE>String name = StorageAnalyzer.ID;<NEW_LINE>for (; startTi...
StorageReport storageReport = merger.getStorageReport();
1,750,707
public Request<GetTemplateRequest> marshall(GetTemplateRequest getTemplateRequest) {<NEW_LINE>if (getTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetTemplateRequest> request = new DefaultRequest<GetTemplateRequest>(getTemplateR...
(getTemplateRequest.getChangeSetName()));
999,408
public void processEntryEvent(Event event, RequestContext requestContext) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "processEntryEvent " + event);<NEW_LINE>}<NEW_LINE>if (_logger.isLoggable(Level.INFO)) {<NEW_LINE>try {<NEW_LINE>LogRecordContext.addExtension("ev...
getContextInfo().toString());
74,162
protected void createItemStack(@Nonnull Consumer<ItemStack> output, LootContext context) {<NEW_LINE>if (context.hasParam(LootContextParams.BLOCK_ENTITY)) {<NEW_LINE>BlockEntity te = context.getParamOrNull(LootContextParams.BLOCK_ENTITY);<NEW_LINE>if (te instanceof IGeneralMultiblock) {<NEW_LINE>BlockEntity masterTE = (...
setStackInSlot(i, ItemStack.EMPTY);
459,090
public static GetSecretParametersByPathResponse unmarshall(GetSecretParametersByPathResponse getSecretParametersByPathResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSecretParametersByPathResponse.setRequestId(_ctx.stringValue("GetSecretParametersByPathResponse.RequestId"));<NEW_LINE>getSecretParametersByPathResponse...
("GetSecretParametersByPathResponse.Parameters[" + i + "].Type"));
1,730,087
public VocabularyInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VocabularyInfo vocabularyInfo = new VocabularyInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
151,149
private static BufferedImage resampleMagick(BufferedImage pSrc, int pWidth, int pHeight, int pFilterType) {<NEW_LINE>// Convert to Magick, scale and convert back<NEW_LINE>MagickImage image = null;<NEW_LINE>MagickImage scaled = null;<NEW_LINE>try {<NEW_LINE>image = MagickUtil.toMagick(pSrc);<NEW_LINE>long start = 0;<NEW...
println("Filtered: " + time + " ms");
369,605
public void createIfNotExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.AppendBlobClient.createIfNotExists<NEW_LINE>client.createIfNotExists();<NEW_LINE>System.out.println("Created AppendBlob");<NEW_LINE>// END: com.azure.storage.blob.specialized.AppendBlobClient.createIfNotExists<NEW_LINE>/...
("binary").setContentLanguage("en-US");
450,418
public void validatePeriods(final I_C_Flatrate_Term term) {<NEW_LINE>if (term.getStartDate() != null && !term.isProcessed()) {<NEW_LINE>Services.get(IFlatrateBL.class).updateNoticeDateAndEndDate(term);<NEW_LINE>setMasterEndDate(term);<NEW_LINE>}<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(term);<NEW_L...
trxName = InterfaceWrapperHelper.getTrxName(term);
865,058
public void buildUserInfo(List<ApiDefinitionResult> apis) {<NEW_LINE>if (CollectionUtils.isEmpty(apis)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> <MASK><NEW_LINE>apis.forEach(i -> {<NEW_LINE>userIds.add(i.getUserId());<NEW_LINE>userIds.add(i.getDeleteUserId());<NEW_LINE>userIds.add(i.getCreateUser());<NEW_LINE...
userIds = new HashSet<>();
853,476
private void loadNode1039() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.FileType_SetPosition_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.v...
.expanded(), false));
1,782,661
private void init() {<NEW_LINE>setBorder(BorderFactory.createTitledBorder("Resolve Conflict"));<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>headerLabel = new GDHtmlLabel(" ");<NEW_LINE>headerLabel.setHorizontalAlignment(SwingConstants.CENTER);<NEW_LINE>add(headerLabel, BorderLayout.NORTH);<NEW_LINE>rowComps = new ...
rows = new ArrayList<>();
1,438,003
private void logXmlProblem(CategorizedProblem problem, char[] unitSource) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>final int id = problem.getID();<NEW_LINE>// ID as field name<NEW_LINE>this.parameters.put(Logger.ID, getFieldName(id));<N...
, Integer.valueOf(sourceStart));
1,654,794
private Path unpack() {<NEW_LINE>try (InputStream inner = Preconditions.checkNotNull(Resources.getResource(relativeTo, name), "Unable to find: %s", name).openStream();<NEW_LINE>BufferedInputStream stream = new BufferedInputStream(inner)) {<NEW_LINE>Path outputPath = filesystem.getBuckPaths().getResDir().resolve(relativ...
filename.toString(), ".zip");
1,626,580
final DeleteVpnConnectionRouteResult executeDeleteVpnConnectionRoute(DeleteVpnConnectionRouteRequest deleteVpnConnectionRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVpnConnectionRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
524,538
public int predict(double[] x, double[] posteriori) {<NEW_LINE>if (x.length != p) {<NEW_LINE>throw new IllegalArgumentException(String.format("Invalid input vector size: %d, expected: %d"<MASK><NEW_LINE>}<NEW_LINE>double[] d = new double[p];<NEW_LINE>double[] ux = new double[p];<NEW_LINE>for (int i = 0; i < k; i++) {<N...
, x.length, p));
425,624
public static DetectLungNoduleResponse unmarshall(DetectLungNoduleResponse detectLungNoduleResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectLungNoduleResponse.setRequestId(_ctx.stringValue("DetectLungNoduleResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Serie> series = new ArrayList<Serie>();<...
+ "].Elements[" + j + "].Diameter"));
1,171,044
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {<NEW_LINE>this.config = TbNodeUtils.<MASK><NEW_LINE>this.cache = ctx.getDeviceProfileCache();<NEW_LINE>this.ctx = ctx;<NEW_LINE>scheduleAlarmHarvesting(ctx, null);<NEW_LINE>ctx.addDeviceProfileListeners(this::onProfileUpdate, thi...
convert(configuration, TbDeviceProfileNodeConfiguration.class);
1,631,115
public static void newInstall(Context context) {<NEW_LINE>String appVersion = "";<NEW_LINE>if (context != null) {<NEW_LINE>try {<NEW_LINE>PackageManager manager = context.getPackageManager();<NEW_LINE>PackageInfo info = manager.getPackageInfo(context.getPackageName(), PackageManager.GET_ACTIVITIES);<NEW_LINE>appVersion...
options.put("firebase_token", firebaseToken);
1,000,545
public void forwardToSuccessPage(final String message, final Flag... flags) throws ServletException, PwmUnrecoverableException, IOException {<NEW_LINE>final <MASK><NEW_LINE>this.pwmRequest.setAttribute(PwmRequestAttribute.SuccessMessage, message);<NEW_LINE>final boolean showMessage = !pwmDomain.getConfig().readSettingA...
PwmDomain pwmDomain = pwmRequest.getPwmDomain();
316,644
public void onBindViewHolder(@NonNull VH holder, int position, @NonNull List<Object> payloads) {<NEW_LINE>float prevSwipeItemSlideAmount = 0;<NEW_LINE>SwipeableItemViewHolder swipeableHolder = (holder instanceof SwipeableItemViewHolder) ? (((SwipeableItemViewHolder) holder)) : null;<NEW_LINE>if (swipeableHolder != null...
onBindViewHolder(holder, position, payloads);
1,577,352
private boolean validatePrepares(final PreparedRoundMetadata metaData, final long currentHeight, final List<SignedData<PreparePayload>> prepares) {<NEW_LINE>if (hasDuplicateAuthors(prepares)) {<NEW_LINE>LOG.info("{}}: multiple prepares from the same author.", ERROR_PREFIX);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if...
LOG.info("{}: Insufficient prepares for proposal", ERROR_PREFIX);
1,311,025
public void start(FlinkInfo flinkInfo) throws Exception {<NEW_LINE>String jobId = flinkInfo.getJobId();<NEW_LINE>try {<NEW_LINE>// Start a new task without savepoint<NEW_LINE>if (StringUtils.isEmpty(jobId)) {<NEW_LINE>IntegrationTaskRunner taskRunner = new IntegrationTaskRunner(flinkService, flinkInfo, TaskCommitType.S...
future = TaskRunService.submit(taskRunner);
1,360,409
protected List<Element> expandOrdinal(Document doc, long value, boolean createMtu, String orig) {<NEW_LINE>StringBuilder exp = new StringBuilder();<NEW_LINE>switch((int) Math.abs(value)) {<NEW_LINE>case 1:<NEW_LINE>exp.append("primo");<NEW_LINE>break;<NEW_LINE>case 2:<NEW_LINE>exp.append("secondo");<NEW_LINE>break;<NEW...
"sounds_like", exp.toString());
1,819,494
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.action_share_file:<NEW_LINE>{<NEW_LINE>mContainerActivity.getFileOperationsHelper().showShareFile(getFile());<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>case R.id.action_open_file_with:<NEW_LINE>{<NEW_LINE>openFi...
getFragmentManager(), ConfirmationDialogFragment.FTAG_CONFIRMATION);
972,403
private void insertDefault(SQLiteDatabase db) {<NEW_LINE>ContentValues screenValues = new ContentValues();<NEW_LINE>screenValues.put(DB_KEY_SCREEN_COLORS, 32);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_RESOLUTION, 1);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_WIDTH, 1024);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_HEIGHT, 76...
bookmarkValues.put(DB_KEY_BOOKMARK_ASYNC_CHANNEL, 1);
99,483
private SlimTestResult resultFromMessage(String codeAndMessage, String content) {<NEW_LINE>int colon = codeAndMessage.indexOf(":");<NEW_LINE>if (colon == -1)<NEW_LINE>return SlimTestResult.fail(manageSymbolInContent(content, codeAndMessage));<NEW_LINE>String code = <MASK><NEW_LINE>String message = codeAndMessage.substr...
codeAndMessage.substring(0, colon);
924,261
private S3Resource parseS3AccessPointArn(Arn arn) {<NEW_LINE>Matcher objectMatcher = OBJECT_AP_PATTERN.matcher(arn.resource().resource());<NEW_LINE>if (objectMatcher.matches()) {<NEW_LINE>// ARN is actually an object addressed through an access-point<NEW_LINE>String <MASK><NEW_LINE>String objectKey = objectMatcher.grou...
accessPointName = objectMatcher.group(1);
1,526,416
public void stateUpdate(final ObdCommandJob job) {<NEW_LINE>final String cmdName = job.getCommand().getName();<NEW_LINE>String cmdResult = "";<NEW_LINE>final String cmdID = LookUpCommand(cmdName);<NEW_LINE>if (job.getState().equals(ObdCommandJob.ObdCommandJobState.EXECUTION_ERROR)) {<NEW_LINE>cmdResult = job.getCommand...
TextView) vv.findViewWithTag(cmdID);
829,945
public Connector build(Server server, MetricRegistry metrics, String name, @Nullable ThreadPool threadPool) {<NEW_LINE>// Prepare connection factories for HTTP/2c<NEW_LINE>final HttpConfiguration httpConfig = buildHttpConfiguration();<NEW_LINE>final HttpConnectionFactory http11 = buildHttpConnectionFactory(httpConfig);...
HTTP2ServerConnectionFactory http2c = new HTTP2CServerConnectionFactory(httpConfig);
536,213
private static void search(PrintStream out, String s, boolean isRegex) {<NEW_LINE>List<BaseConfigSection> sections = ConsoleConfigSections.getInstance().getAllConfigSections(true);<NEW_LINE>int count = 0;<NEW_LINE>for (BaseConfigSection section : sections) {<NEW_LINE>boolean needsBuild = !section.isBuilt();<NEW_LINE>if...
(section.getSectionNameKey()));
913,981
private // grid lines.<NEW_LINE>void drawVerticalGrid(Graphics2D g2) {<NEW_LINE>double minorSpacing = majorX / getMinorCountX();<NEW_LINE>double axisH = yPositionToPixel(originY);<NEW_LINE>Stroke gridStroke = new BasicStroke(STROKE_GRID);<NEW_LINE>Stroke axisStroke = new BasicStroke(STROKE_AXIS);<NEW_LINE>Rectangle cli...
g2.setColor(getMinorGridColor());
570,216
// getClass<NEW_LINE>private final Class<?> findModelClassByTableName(final String tableName) {<NEW_LINE>if (Check.isEmpty(tableName, true) || tableName.endsWith("_Trl")) {<NEW_LINE>return NO_CLASS;<NEW_LINE>}<NEW_LINE>// Import Tables (Name conflict)<NEW_LINE>if (tableName.startsWith("I_")) {<NEW_LINE>final Class<?> c...
log.warn("No class for table with it entity: {}", tableName);
817,983
private boolean isConfigEqualToProductInstance(DefaultMutableTreeNode rootProductInstance) {<NEW_LINE>log.fine("In isConfigEqualToProductInstance");<NEW_LINE>boolean retValue = false;<NEW_LINE>boolean done = false;<NEW_LINE>DefaultMutableTreeNode rootProductConfig = this.m_RadioButtonTreeCellRenderer.root;<NEW_LINE>log...
(nodeUserObject) child.getUserObject();
336,046
protected void initScene() {<NEW_LINE>mLight = new DirectionalLight(0, 1, -1);<NEW_LINE>mLight.setPower(1);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().setPosition(0, 0, 20);<NEW_LINE>Object3D redSphere = new Sphere(1, 16, 16);<NEW_LINE>redSphere.setPosition(0, -4, 0);<NEW_LINE>redSphere.se...
Animation3D yellowAnim = new SplineTranslateAnimation3D(yellowBezierPath);
1,167,479
private static void initWindows2AndroidMap() {<NEW_LINE>windowsToAndroidEventMap.put(0x08, KeyEvent.KEYCODE_DEL);<NEW_LINE>windowsToAndroidEventMap.put(0x09, KeyEvent.KEYCODE_TAB);<NEW_LINE>windowsToAndroidEventMap.put(0x0C, KeyEvent.KEYCODE_CLEAR);<NEW_LINE>windowsToAndroidEventMap.put(0x0D, KeyEvent.KEYCODE_ENTER);<N...
put(0x28, KeyEvent.KEYCODE_DPAD_DOWN);
1,163,956
private void addStackParameters(Function func, List<Variable> sortedVariables, VariableStorageConflicts conflicts, TaskMonitor monitor) {<NEW_LINE>Parameter[] oldParamList = func.getParameters();<NEW_LINE>List<Variable> newParamList = new ArrayList<>();<NEW_LINE>boolean growsNegative = func.getStackFrame().growsNegativ...
oldParamList, newParamList, callingConvention, hasStackParams);
1,729,322
private DocLine[] loadLines(MHRProcess process) {<NEW_LINE>ArrayList<DocLine> list = new ArrayList<DocLine>();<NEW_LINE>// Get Movements<NEW_LINE>List<MHRMovement> movements = new Query(getCtx(), I_HR_Movement.Table_Name, "HR_Movement.HR_Process_ID = ? " + "AND HR_Movement.Amount <> 0 " + "AND EXISTS(SELECT 1 FROM HR_C...
fine(docLine.toString());
374,393
public static <K, I> FileBasedIndexExtension<K, Void> wrapStubIndexExtension(StubIndexExtension<K, ?> extension) {<NEW_LINE>return new FileBasedIndexExtension<K, Void>() {<NEW_LINE><NEW_LINE>@Nonnull<NEW_LINE>@Override<NEW_LINE>public ID<K, Void> getName() {<NEW_LINE>return (ID<K, Void>) extension.getKey();<NEW_LINE>}<...
StringStubIndexExtension) extension).traceKeyHashToVirtualFileMapping();
402,238
private static <T> com.google.security.zynamics.binnavi.api2.plugins.IPlugin<T> loadClassFile(final File file, final String pluginDirectory) throws ClassNotFoundException, InstantiationException, IllegalAccessException {<NEW_LINE>NaviLogger.info("Loading class file %s", file.getAbsolutePath());<NEW_LINE>final FileClass...
substring(pluginDirectory.length());
1,101,372
public static void main(String[] args) {<NEW_LINE>// Load image and templates<NEW_LINE>String directory = UtilIO.pathExample("template");<NEW_LINE>GrayF32 image = UtilImageIO.loadImage(directory, "desktop.png", GrayF32.class);<NEW_LINE>GrayF32 templateCursor = UtilImageIO.loadImage(directory, "cursor.png", GrayF32.clas...
directory, "paint.png", GrayF32.class);
317,924
public Optional<SqlBasicCall> convertToSQLNode(final InExpression expression) {<NEW_LINE>if (null == expression) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Collection<SqlNode> sqlNodes = new LinkedList<>();<NEW_LINE>ExpressionConverter expressionConverter = new ExpressionConverter();<NEW_LINE>expressionCon...
).ifPresent(sqlNodes::add);
1,038,052
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("SPACE", 0, typeFactory.createSqlType(SqlTypeName.INTEGER)));<NEW_LINE>columns.add(new Re...
createSqlType(SqlTypeName.VARCHAR)));
1,624,854
public void init(Map<String, Object> properties) throws Exception {<NEW_LINE>SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");<NEW_LINE>String tableName = (String) properties.getOrDefault("dirtyTableName", "DirtyData_" + properties.get("tableName") + "_" + timeFormat.format(System.currentTimeMi...
String) properties.get("password");
1,102,311
@SuppressWarnings("unchecked")<NEW_LINE>@Operation(summary = "Add elements to device group", description = "Add elements to device group")<NEW_LINE>public Response addDeviceGroupElements(@Parameter(description = "Unique token that identifies device group", required = true) @PathParam("groupToken") String groupToken, @R...
()).setIncludeDetails(false);
950,611
public static void jar(Path sourcePath, String outJarPath) throws IOException {<NEW_LINE>URI uri = URI.create("jar:" + Paths.get(outJarPath).normalize().toUri());<NEW_LINE>Files.walkFileTree(sourcePath, new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult visitFile(Path file, Bas...
StandardCopyOption.COPY_ATTRIBUTES, LinkOption.NOFOLLOW_LINKS };
1,514,136
public void prepareExpressions() {<NEW_LINE>if (columnResolver == null) {<NEW_LINE>createTable();<NEW_LINE>}<NEW_LINE>if (orderList != null) {<NEW_LINE>ArrayList<String> expressionsSQL = new ArrayList<>();<NEW_LINE>for (Expression e : expressions) {<NEW_LINE>expressionsSQL.add(e.getSQL(DEFAULT_SQL_FLAGS, WITHOUT_PARENT...
columnResolver, 0, Expression.MAP_INITIAL);
1,817,013
protected void performContextAction(final Node[] nodes) {<NEW_LINE>if (!Subversion.getInstance().checkClientAvailable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Context ctx = getContext(nodes);<NEW_LINE>File[] roots = SvnUtils.getActionRoots(ctx);<NEW_LINE>if (roots == null || roots.length == 0)<NEW_LINE>return;<NEW_LIN...
final RequestProcessor rp = createRequestProcessor(ctx);
1,814,947
private static IntermediateOperation importOperation(String name, Onnx.GraphProto onnxGraph, IntermediateGraph intermediateGraph) {<NEW_LINE>if (intermediateGraph.alreadyImported(name)) {<NEW_LINE>return intermediateGraph.get(name);<NEW_LINE>}<NEW_LINE>IntermediateOperation operation;<NEW_LINE>if (isArgumentTensor(name...
operation.name(), operation);
187,775
static void parseRules(List<String> rules, StemmerOverrideFilter.Builder builder, String mappingSep) {<NEW_LINE>for (String rule : rules) {<NEW_LINE>String[] sides = rule.split(mappingSep, -1);<NEW_LINE>if (sides.length != 2) {<NEW_LINE>throw new RuntimeException("Invalid Keyword override Rule:" + rule);<NEW_LINE>}<NEW...
sides[1].trim();
126,854
private String buildValuesCondition(List<String> fieldTypes, Row row) {<NEW_LINE>String valuesCondition = fieldTypes.stream().map(f -> {<NEW_LINE>for (String item : NEED_QUOTE_TYPE) {<NEW_LINE>if (f.toLowerCase().contains(item)) {<NEW_LINE>return String.format("cast('?' as %s)", f.toLowerCase());<NEW_LINE>}<NEW_LINE>}<...
(Collectors.joining(", "));
1,022,555
public AckArgs deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {<NEW_LINE>List<Object> args = new ArrayList<Object>();<NEW_LINE>AckArgs result = new AckArgs(args);<NEW_LINE>ObjectMapper mapper = (ObjectMapper) jp.getCodec();<NEW_LINE>JsonNode root = mapper.readTree(jp...
> clazz = callback.getResultClass();
1,312,767
public List<OptExpression> transform(OptExpression input, OptimizerContext context) {<NEW_LINE>LogicalAggregationOperator aggregateAbove = (LogicalAggregationOperator) input.getOp();<NEW_LINE>LogicalAggregationOperator aggregateBelow = (LogicalAggregationOperator) input.getInputs().get(0).getInputs().get(0).getOp();<NE...
CallOperator fn = entry.getValue();
940,043
protected Expression castExpression(AST castNode) {<NEW_LINE>AST node = castNode.getFirstChild();<NEW_LINE>ClassNode type = makeTypeWithArguments(node);<NEW_LINE>assertTypeNotNull(type, node);<NEW_LINE>AST expressionNode = node.getNextSibling();<NEW_LINE>Expression expression = expression(expressionNode);<NEW_LINE>Cast...
setNameEnd(type.getEnd());
1,680,041
public Object transform(Object input, Map<String, Object> context) {<NEW_LINE>List<?> pipelines = getFieldFromMap(input, "pipelines");<NEW_LINE>if (pipelines == null) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>pipelines.forEach((Object pipeline) -> {<NEW_LINE>List<?> stages = getFieldFromMap(pipeline, "stages");<NEW_...
, Arrays.asList(echoTask));
1,288,517
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure structure = new StructureDataType("ext4_inode", 0);<NEW_LINE>structure.add(WORD, "i_mode", null);<NEW_LINE>structure.add(WORD, "i_uid", null);<NEW_LINE>structure.add(DWORD, "i_size_lo", null);<NEW_LINE>structure.add(DWORD, "i_a...
add(DWORD, "i_generation", null);
1,789,875
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_IN4__MSUBDEVICES:<NEW_LINE>return msubdevices != null && !msubdevices.isEmpty();<NEW_LINE>case ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_IN4__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logg...
: !ENABLED_A_EDEFAULT.equals(enabledA);
1,775,671
public DBRecord createRecord(String name, String comments, long categoryID, long returnDtID, boolean hasVarArgs, GenericCallingConvention genericCallingConvention, long sourceArchiveID, long sourceDataTypeID, long lastChangeTime) throws IOException {<NEW_LINE>byte flags = (byte) 0;<NEW_LINE>if (hasVarArgs) {<NEW_LINE>f...
record.setString(V1_FUNCTION_DEF_COMMENT_COL, comments);
440,944
public TypeNeighborElement deepClone() {<NEW_LINE>long[] newData = new long[data.length];<NEW_LINE>System.arraycopy(data, 0, newData, 0, data.length);<NEW_LINE>if (type != null) {<NEW_LINE>int[] newType = new int[type.length];<NEW_LINE>int[] newIndptr = new int[indptr.length];<NEW_LINE>System.arraycopy(type, 0, newType...
newAccept, 0, accept.length);
155,678
public CipherParameters decrypt(byte[] in, int inOff, int inLen, int keyLen) throws IllegalArgumentException {<NEW_LINE>if (!(key instanceof ECPrivateKeyParameters)) {<NEW_LINE>throw new IllegalArgumentException("Private key required for encryption");<NEW_LINE>}<NEW_LINE>ECPrivateKeyParameters ecPrivKey = (ECPrivateKey...
BigInteger xHat = ecPrivKey.getD();
1,789,776
public void updateDashboardView(DashboardItem dashboardItem) {<NEW_LINE>XYPlot plot = getDashboardPlot(dashboardItem);<NEW_LINE>if (plot != null) {<NEW_LINE>DashboardChartComposite chartComposite = getChartComposite(dashboardItem);<NEW_LINE>DashboardViewConfiguration viewConfiguration = chartComposite.getViewContainer(...
setVisible(dashboardConfig.isDomainTicksVisible());
135,434
public void marshall(AwsEksClusterDetails awsEksClusterDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEksClusterDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEksClusterDetails.get...
awsEksClusterDetails.getName(), NAME_BINDING);
1,178,044
public String dumpHeap(String fileName) {<NEW_LINE>Class clazz;<NEW_LINE>try {<NEW_LINE>clazz = Class.forName("com.sun.management.HotSpotDiagnosticMXBean");<NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>return "ERROR: dumpHeap only works on a Sun Java 1.6+ VM containing " + "the class com.sun.management.HotSpo...
? e.getCause() : e;
1,585,649
protected INDArray preOutput(boolean training, boolean forBackprop, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(false);<NEW_LINE>applyDropOutIfNecessary(training, workspaceMgr);<NEW_LINE>if (input.rank() != 4) {<NEW_LINE>throw new DL4JInvalidInputException("Got rank " + input.rank() + " array as input to ...
dataType(), outShape, 'c');
278,947
public boolean apply(Game game, Ability source) {<NEW_LINE>Player activePlayer = game.getPlayer(game.getActivePlayerId());<NEW_LINE>if (activePlayer != null) {<NEW_LINE>for (Permanent permanent : game.getBattlefield().getAllActivePermanents(activePlayer.getId())) {<NEW_LINE>// Noncreature cards are safe.<NEW_LINE>if (!...
).getWatcher(AttackedOrBlockedThisCombatWatcher.class);
177,820
private OidcClientRegistration.Builder buildRegistration(RegisteredClient registeredClient) {<NEW_LINE>// @formatter:off<NEW_LINE>OidcClientRegistration.Builder builder = OidcClientRegistration.builder().clientId(registeredClient.getClientId()).clientIdIssuedAt(registeredClient.getClientIdIssuedAt()).clientName(registe...
(registeredClient.getScopes()));
243,802
private boolean decodeObd(Position position, Parser parser) {<NEW_LINE>position.setValid(true);<NEW_LINE>position.setTime(parser.nextDateTime());<NEW_LINE>position.setLatitude(parser.nextDouble());<NEW_LINE>position.setLongitude(parser.nextDouble());<NEW_LINE>position.set(Position.KEY_ODOMETER, parser.nextLong());<NEW_...
KEY_FUEL_CONSUMPTION, parser.nextInt());
1,161,155
public Observable<VectorSchemaRoot> execute(RootContext rootContext) {<NEW_LINE>OutputLinq4jPhysicalPlan leftObjectPlan = OutputLinq4jPhysicalPlan.create(left);<NEW_LINE>Observable<Object[]> leftObservable = leftObjectPlan.executeToObject(rootContext);<NEW_LINE>@NonNull<NEW_LINE>Iterable<Record> leftObjects = MycatRxJa...
create(v0, v1, leftColumnCount);
1,779,682
public void testRxObservableInvoker_post2WithClass(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE><MASK><NEW_LINE>Thread jaxrs21Thread = jaxrs21ThreadFact...
ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFactory();
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<MASK...
.value((Integer) object);
723,371
ArrayList<Object> new138() /* reduce AAdynamicinvokeexpr3InvokeExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList9 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Arra...
<Object> nodeArrayList5 = pop();
1,743,709
private void printTopicInfo(final SourceDescription source) {<NEW_LINE>final String timestamp = source.getTimestamp().isEmpty() ? "Not set - using <ROWTIME>" : source.getTimestamp();<NEW_LINE>writer().println(String.format("%-20s : %s", "Timestamp field", timestamp));<NEW_LINE>writer().println(String.format("%-20s : %s...
, source.getKeyFormat()));
279,264
public AuthorizationRequest checkForPreApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication) {<NEW_LINE>boolean approved = false;<NEW_LINE>String clientId = authorizationRequest.getClientId();<NEW_LINE>Set<String> scopes = authorizationRequest.getScope();<NEW_LINE>if (clientDetailsServi...
logger.debug("User already approved with token=" + accessToken);
894,266
public VBox createForm() {<NEW_LINE>FXForm editorConfigForm = new FXFormBuilder<>().resourceBundle(ResourceBundle.getBundle("terminalConfig")).includeAndReorder("terminalWinCommand", "terminalNixCommand", "backgroundColor", "cursorColor", "foregroundColor", "clearSelectionAfterCopy", "copyOnSelect", "ctrlCCopy", "ctrlV...
5, saveButton, loadButton, infoLabel);
51,289
private JsonResponseContact toJson(@NonNull final BPartnerContact contact, @Nullable final Language language) {<NEW_LINE>try {<NEW_LINE>final JsonMetasfreshId metasfreshId = JsonMetasfreshId.of(BPartnerContactId.toRepoId<MASK><NEW_LINE>final JsonMetasfreshId metasfreshBPartnerId = JsonMetasfreshId.of(BPartnerId.toRepoI...
(contact.getId()));
1,778,977
private void checkWithSegmentLock() {<NEW_LINE>final Map<Interval, List<DataSegment>> oldSegmentsMap = groupSegmentsByIntervalAndSort(segmentsToBeOverwritten);<NEW_LINE>final Map<Interval, List<DataSegment<MASK><NEW_LINE>oldSegmentsMap.values().forEach(TaskLockHelper::verifyRootPartitionIsAdjacentAndAtomicUpdateGroupIs...
>> newSegmentsMap = groupSegmentsByIntervalAndSort(segments);
943,927
public final ShardSearchRequest buildShardSearchRequest(SearchShardIterator shardIt) {<NEW_LINE>AliasFilter filter = aliasFilter.get(shardIt.shardId().getIndex().getUUID());<NEW_LINE>assert filter != null;<NEW_LINE>float indexBoost = concreteIndexBoosts.getOrDefault(shardIt.shardId().getIndex(<MASK><NEW_LINE>String ind...
).getUUID(), DEFAULT_INDEX_BOOST);
504,400
public Object call(Object who, Method method, Object... args) throws Throwable {<NEW_LINE>String creator = (String) args[1];<NEW_LINE>String[] resolvedTypes = (String[]) args[mResolvedTypesIndex];<NEW_LINE>int type = (int) args[0];<NEW_LINE>int flags = (int) args[mFlagsIndex];<NEW_LINE>if (args[5] instanceof Intent[]) ...
(), resolvedTypes[i]);
1,530,075
public void bfs(Node localRoot) {<NEW_LINE>// Create a queue for the order of the nodes<NEW_LINE>Queue<Node> queue <MASK><NEW_LINE>// If the give root is null, then we don't add to the queue<NEW_LINE>// and won't do anything<NEW_LINE>if (localRoot != null) {<NEW_LINE>queue.add(localRoot);<NEW_LINE>}<NEW_LINE>// Continu...
= new LinkedList<Node>();
1,143,100
final DeletePlatformVersionResult executeDeletePlatformVersion(DeletePlatformVersionRequest deletePlatformVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlatformVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);