idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,802,786
private List<ProtocolMessage> handleDtlsHandshakeRecordBytes(byte[] recordBytes, TlsContext context, boolean onlyParse, int dtlsEpoch) {<NEW_LINE>int dataPointer = 0;<NEW_LINE>List<ProtocolMessage> receivedFragments = new LinkedList<>();<NEW_LINE>while (dataPointer < recordBytes.length) {<NEW_LINE>ParserResult result =...
add(result.getMessage());
812,346
public final void filterNaviExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST filterNaviExpr_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case AT_IS_NULL:<NEW_LINE>case AT_IS_NOT_NULL:<NEW_LINE>case AT_IS_ARRAY:<NEW_LINE>case...
filterNaviExpr_AST = (AST) currentAST.root;
931,016
private void initAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {<NEW_LINE>float density = context.getResources().getDisplayMetrics().density;<NEW_LINE>float scaledDensity = context.getResources<MASK><NEW_LINE>TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.BaseW...
().getDisplayMetrics().scaledDensity;
576,537
private static void toStringInternal(String prefix, Object obj, StringBuffer sb) {<NEW_LINE>if (obj instanceof String) {<NEW_LINE>// A string value, just print it<NEW_LINE>sb.append<MASK><NEW_LINE>} else if (obj instanceof Hashtable) {<NEW_LINE>// A table, start a new sub-section...<NEW_LINE>Hashtable<?, ?> tab = (Hash...
(obj).append('\n');
825,984
private void drawBackground(MatrixStack matrixStack, int x1, int x2, int x3, int x4, int y1, int y2, int y4, int y5) {<NEW_LINE>float[] bgColor = GUI.getBgColor();<NEW_LINE>float opacity = GUI.getOpacity();<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessell...
y4, 0).next();
1,506,694
private Optional<Integer> toInteger(ParserRuleContext messageCtx, Named_icmp_typeContext ctx) {<NEW_LINE>if (ctx.DESTINATION_UNREACHABLE() != null) {<NEW_LINE>return Optional.of(IcmpType.DESTINATION_UNREACHABLE);<NEW_LINE>} else if (ctx.ECHO_REPLY() != null) {<NEW_LINE>return <MASK><NEW_LINE>} else if (ctx.ECHO_REQUEST...
Optional.of(IcmpType.ECHO_REPLY);
1,194,452
public void sortAlbums(List<Album> albums, int key) {<NEW_LINE>switch(key) {<NEW_LINE>case AlbumSort.DEFAULT:<NEW_LINE>Collections.sort(albums, Album::compareTo);<NEW_LINE>break;<NEW_LINE>case AlbumSort.NAME:<NEW_LINE>Collections.sort(albums, (a, b) -> ComparisonUtils.compare(a.name, b.name));<NEW_LINE>Collections.sort...
.albumArtistName, b.albumArtistName));
558,631
private DWARFDataType makeDataTypeForStruct(DIEAggregate diea) {<NEW_LINE>DWARFNameInfo dni = prog.getName(diea);<NEW_LINE>long structSize = diea.getUnsignedLong(DWARFAttribute.DW_AT_byte_size, 0);<NEW_LINE>long origStructSize = structSize;<NEW_LINE>if (isStructTooBigForGhidra(structSize)) {<NEW_LINE>Msg.error(this, "L...
.toString(origStructSize), "\n");
1,156,663
private void loadNode1219() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_TotalRequestCount, new QualifiedName(0, "TotalRequestCount"), new LocalizedText("en", "TotalRequestCount"), LocalizedText...
(1), 0.0, false);
1,415,391
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {<NEW_LINE>View view = super.onCreateView(inflater, parent, savedInstanceState);<NEW_LINE>int titleHeight = getDimen(R.dimen.bottom_sheet_descr_height);<NEW_LINE>TextViewEx titleView = (TextViewEx) itemTitle.getView(...
localUpdatePreference = preferenceForLocalIndex(fileName, settings);
1,848,092
protected void onRender(long elapsedRealtime, double deltaTime) {<NEW_LINE>// -- no proper physics here, just a bad approximation to keep<NEW_LINE>// this example as short as possible ;-)<NEW_LINE>mRaptor.setZ(mRaptor.getZ() + 2.0);<NEW_LINE>mRaptor.setX(Math.sin(mTime) * 20.0);<NEW_LINE>// mRaptor.setRotZ(Math.sin(mTi...
setZ(mRaptor.getZ());
589,988
public List<PodcastIndexResponse.PodcastIndexResult> search(String username, String search) throws Exception {<NEW_LINE>UserSettings userSettings = settingsService.getUserSettings(username);<NEW_LINE>if (!userSettings.getPodcastIndexEnabled() || StringUtils.isBlank(search)) {<NEW_LINE>return Collections.emptyList();<NE...
decoded = SecurityService.decodeCredentials(cred);
1,284,551
private static JSONObject dumpMap(ParameterizedType pt, Stack<Class> hasDone) throws JSONException {<NEW_LINE>JSONObject oj = nj();<NEW_LINE>Type st = pt.getActualTypeArguments()[1];<NEW_LINE>if (st instanceof ParameterizedType) {<NEW_LINE>ParameterizedType spt = (ParameterizedType) st;<NEW_LINE>if (Collection.class.is...
mj = dumpObject(elementType, hasDone);
1,323,611
private static void buildChangelogLatest(String version, String fullVersion, String argIn, String argOut) throws Exception {<NEW_LINE>File in, out;<NEW_LINE>if (argIn == null) {<NEW_LINE>in = new File(".");<NEW_LINE>if (new File(in, "build.xml").isFile() && new File(in, "website").isDirectory())<NEW_LINE>in <MASK><NEW_...
= new File(in, "website");
1,311,587
public void testEJBJarX02_EmployeeAndManagerwithParamNoAuth_methodPermissionEmployeeManager_DenyAccessNoRole() throws Exception {<NEW_LINE>Log.info(logClass, getName().getMethodName(), "**Entering " + <MASK><NEW_LINE>String queryString = "/SimpleXMLServlet?testInstance=" + getEJBString() + "&testMethod=employeeAndManag...
getName().getMethodName());
371,754
/*<NEW_LINE>* Fix TB if T and B go almost in parralel.<NEW_LINE>* If T (ntb[1]) and B (ntb[2]) is almost parallel, invent something<NEW_LINE>* artificial in NTB.<NEW_LINE>*<NEW_LINE>* This method assumes that T and B are normalized.<NEW_LINE>*/<NEW_LINE>static void fixParallelTB(Vec3f[] ntb) {<NEW_LINE>MeshTempState in...
[1].mul(INV_SQRT2);
974,217
private static StorageDescriptor convertStorage(Storage storage, List<Column> columns) {<NEW_LINE>if (storage.isSkewed()) {<NEW_LINE>throw new IllegalArgumentException("Writing to skewed table/partition is not supported");<NEW_LINE>}<NEW_LINE>SerDeInfo serdeInfo = new SerDeInfo().withSerializationLibrary(storage.getSto...
> bucketProperty = storage.getBucketProperty();
712,633
public Object read(final InputStream is) {<NEW_LINE><MASK><NEW_LINE>final EncogReadHelper in = new EncogReadHelper(is);<NEW_LINE>EncogFileSection section;<NEW_LINE>while ((section = in.readNextSection()) != null) {<NEW_LINE>if (section.getSectionName().equals("HOPFIELD") && section.getSubSectionName().equals("PARAMS"))...
final HopfieldNetwork result = new HopfieldNetwork();
335,739
public static LongDoubleVector mergeSparseDoubleVector(LongIndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>long dim = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(param.getMatrixId()).getColNum();<NEW_LINE>LongDoubleVector vector = VFactory.sparseLongKeyDoubleVector(dim, param.size())...
setMatrixId(param.getMatrixId());
1,750,735
public void onClick(View arg0) {<NEW_LINE>switch(arg0.getId()) {<NEW_LINE>case (R.id.bForgot):<NEW_LINE>Intent gotoForgot = new Intent("com.mobshep.PoorAuthentication.Forgotton");<NEW_LINE>startActivity(gotoForgot);<NEW_LINE>break;<NEW_LINE>case (R.id.bLogin):<NEW_LINE>String CheckName = username<MASK><NEW_LINE>String ...
.getText().toString();
225,040
final AssociateGatewayToServerResult executeAssociateGatewayToServer(AssociateGatewayToServerRequest associateGatewayToServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateGatewayToServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(associateGatewayToServerRequest));
433,482
final CreateRoleResult executeCreateRole(CreateRoleRequest createRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
480,620
private void createPreviewRequest() {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "createPreviewRequest");<NEW_LINE>if (camera == null) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "camera not available!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "camera: " + camera);<NEW_LINE>try...
camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);
1,300,508
public static int runAnt(String[] args) {<NEW_LINE>String className = null;<NEW_LINE>Class c = null;<NEW_LINE>try {<NEW_LINE>className = "org.apache.tools.ant.Main";<NEW_LINE>c = Class.forName(className);<NEW_LINE>} catch (ClassNotFoundException e1) {<NEW_LINE>System.err.println("Error: ant.jar not found on the classpa...
] methodArgs = new Object[1];
1,229,351
public ScimGroup create(final ScimGroup group, final String zoneId) throws InvalidScimResourceException {<NEW_LINE>final String id = UUID.randomUUID().toString();<NEW_LINE>logger.debug("creating new group with id: " + id);<NEW_LINE>try {<NEW_LINE>validateGroup(group);<NEW_LINE>jdbcTemplate.update(ADD_GROUP_SQL, ps -> {...
++, group.getDescription());
975,657
public DataFormatConversionConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataFormatConversionConfiguration dataFormatConversionConfiguration = new DataFormatConversionConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
().unmarshall(context));
943,487
public <T extends BaseRequest<T, R>, R extends BaseResponse> void send(final T request, final Callback<T, R> callback) {<NEW_LINE>OkHttpClient client = getOkHttpClient(request);<NEW_LINE>client.newCall(createRequest(request)).enqueue(new okhttp3.Callback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponse(...
callback.onFailure(request, ioEx);
441,863
protected void startHeartbeat() throws ServiceException {<NEW_LINE>if (master == null) {<NEW_LINE>LOG.error("Master has not been connected");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clientId = master.getClientId(null, GetClientIdRequest.getDefaultInstance()).getClientId();<NEW_LINE>master.clientRegister(null, ClientRegist...
long lastHbTs = System.currentTimeMillis();
621,190
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String[] fields = "theString,intPrimitive".split(",");<NEW_LINE><MASK><NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "E1",...
String epl = "@name('s0') select * from SupportBean\n" + " group by theString\n" + " output first every 10 seconds";
941,865
public void visit(LambdaExpr n, Object arg) {<NEW_LINE>printJavaComment(n.getComment(), arg);<NEW_LINE>final List<Parameter> parameters = n.getParameters();<NEW_LINE>final boolean printPar = n.isParametersEnclosed();<NEW_LINE>if (printPar) {<NEW_LINE>printer.print("(");<NEW_LINE>}<NEW_LINE>if (parameters != null) {<NEW...
Statement body = n.getBody();
1,586,026
public UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) {<NEW_LINE>String dn = ctx.getNameInNamespace();<NEW_LINE>this.logger.debug(LogMessage.format("Mapping user details from context with DN %s", dn));<NEW_LINE>LdapUserDetailsImpl.Essence es...
ctx.getObjectAttribute(PasswordPolicyControl.OID);
1,511,135
private int initializeBuilder(int kind, boolean forBuild) throws CoreException {<NEW_LINE>// some calls just need the nameEnvironment initialized so skip the rest<NEW_LINE>this.javaProject = (JavaProject) JavaCore.create(this.currentProject);<NEW_LINE>this.workspaceRoot = this.currentProject<MASK><NEW_LINE>if (forBuild...
.getWorkspace().getRoot();
793,457
public static void sendWorkflowMessageToNextAssign(WorkflowProcessor processor, String subject, String emailText, Boolean isHTML) {<NEW_LINE>try {<NEW_LINE>Role assignedTo = null;<NEW_LINE>assignedTo = processor.getNextAssign();<NEW_LINE>if (assignedTo == null) {<NEW_LINE>throw new WorkflowActionFailureException("Next ...
= new HashSet<String>();
1,706,199
protected void encodeResourceToWriter(IBaseResource theResource, Writer theWriter, EncodeContext theEncodeContext) throws IOException {<NEW_LINE>Validate.notNull(theResource, "theResource can not be null");<NEW_LINE>Validate.notNull(theWriter, "theWriter can not be null");<NEW_LINE>Validate.notNull(theEncodeContext, "t...
doEncodeResourceToWriter(theResource, theWriter, theEncodeContext);
553,083
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>SubType subType = ChooseCreatureTypeEffect.getChosenCreatureType(<MASK><NEW_LINE>if (subType == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterCo...
source.getSourceId(), game);
135,659
public void registerMap() {<NEW_LINE>handler(wrapper -> {<NEW_LINE>Chunk chunk = wrapper.read(new Chunk1_16_2Type());<NEW_LINE>if (!chunk.isFullChunk()) {<NEW_LINE>// All chunks are full chunk packets now (1.16 already stopped sending non-full chunks)<NEW_LINE>// Construct multi block change packets instead<NEW_LINE>//...
chunk.getSections()[s];
1,155,102
public static AddAiotPersonTableItemsResponse unmarshall(AddAiotPersonTableItemsResponse addAiotPersonTableItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>addAiotPersonTableItemsResponse.setRequestId(_ctx.stringValue("AddAiotPersonTableItemsResponse.RequestId"));<NEW_LINE>addAiotPersonTableItemsResponse.setCode(_ct...
("AddAiotPersonTableItemsResponse.ResultList[" + i + "].Code"));
554,531
public TColumn toThrift() {<NEW_LINE>TColumn tColumn = new TColumn();<NEW_LINE>tColumn.setColumnName(this.name);<NEW_LINE>TColumnType tColumnType = new TColumnType();<NEW_LINE>tColumnType.setType(this.<MASK><NEW_LINE>tColumnType.setLen(this.getStrLen());<NEW_LINE>tColumnType.setPrecision(this.getPrecision());<NEW_LINE>...
getDataType().toThrift());
1,222,023
private void doCreateProject(HttpServletRequest request, HttpServletResponse response, Properties parameters) throws ServletException, IOException {<NEW_LINE>long jobID = Long.parseLong(parameters.getProperty("jobID"));<NEW_LINE>ImportingJob job = ImportingManager.getJob(jobID);<NEW_LINE>if (job == null) {<NEW_LINE>Htt...
format = request.getParameter("format");
1,393,701
public R visit(final ClassOrInterfaceDeclaration n, final A arg) {<NEW_LINE>if (n.getJavaDoc() != null) {<NEW_LINE>{<NEW_LINE>R result = n.getJavaDoc().accept(this, arg);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (n.getAnnotations() != null) {<NEW_LINE>for (fina...
c.accept(this, arg);
50,131
private ExpectationResponseCallback instantiateCallback(HttpClassCallback httpClassCallback) {<NEW_LINE>try {<NEW_LINE>Class expectationResponseCallbackClass = contextClassLoader.loadClass(httpClassCallback.getCallbackClass());<NEW_LINE>if (ExpectationResponseCallback.class.isAssignableFrom(expectationResponseCallbackC...
.getName() + " required for responses using class callback"));
327,626
private static Alias merge(Alias a1, String name, Function<String, Alias> findUnqualifiedAlias, HashSet<String> names) {<NEW_LINE>if (names.contains(name)) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>String[] parts = name.split("@");<NEW_LINE>if (parts.length > 2 || parts[0].isEmpty()) {<NEW_LINE>throw new RuntimeE...
RuntimeException("Encountered alias loop on '" + name + "'");
746,987
public void addRestoreMenuItem(final String chosenName) {<NEW_LINE>final HorizontalPanel hp = new HorizontalPanel();<NEW_LINE>Label label = new Label(chosenName);<NEW_LINE>label.setTitle("open diagram " + chosenName);<NEW_LINE>label.addStyleName(style.menuItem());<NEW_LINE>label.addClickHandler(new ClickHandler() {<NEW...
Notification.showInfo("Deleted diagram: " + chosenName);
850,449
public ExecResult exec(byte[] classBytes) {<NEW_LINE>ExecResult result = new ExecResult();<NEW_LINE>UserExecInterface executor = null;<NEW_LINE>try {<NEW_LINE>// modify class<NEW_LINE>ClassModifier cm = new ClassModifier(classBytes);<NEW_LINE>classBytes = cm.modifyUTF8Constant(SYSTEM_STRING, HACK_SYSTEM_STRING);<NEW_LI...
setDebugInfo(HackSystem.getBufString());
440,672
public void verifyModification(ConfigOption option) {<NEW_LINE>Preconditions.checkArgument(graph.getConfiguration().isUpgradeAllowed(option.getName()) || option.getType() != ConfigOption.Type.FIXED, "Cannot change the fixed configuration option: %s", option);<NEW_LINE>Preconditions.checkArgument(option.getType() != Con...
getConfiguration().getUniqueGraphId());
1,393,227
private LoadResponse loadBatch(String data) {<NEW_LINE>final HttpClientBuilder httpClientBuilder = HttpClients.custom().setRedirectStrategy(new DefaultRedirectStrategy() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean isRedirectable(String method) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>});<NEW_LINE>Strin...
toString(response.getEntity());
1,814,808
public void process(final Exchange exchange) throws Exception {<NEW_LINE>final GetAttachmentRouteContext routeContext = ProcessorHelper.getPropertyOrThrowError(exchange, <MASK><NEW_LINE>final Document document = routeContext.getDocument();<NEW_LINE>final File file = getFile(routeContext, document.getId());<NEW_LINE>fin...
GetAttachmentRouteConstants.ROUTE_PROPERTY_GET_ATTACHMENT_CONTEXT, GetAttachmentRouteContext.class);
1,747,993
private List<SQLite3Expression> generateGroupByClause(List<SQLite3Column> columns, SQLite3RowValue rw, boolean allTablesContainOneRow) {<NEW_LINE>errors.add("GROUP BY term out of range");<NEW_LINE>if (allTablesContainOneRow && Randomly.getBoolean()) {<NEW_LINE>List<SQLite3Expression> collect = new ArrayList<>();<NEW_LI...
(rw).generateExpression());
1,624,342
private void handleMember(String signature, Map<String, String> attrs, EventType type, Tag tag) {<NEW_LINE>IMetaMember metaMember = findMemberWithSignature(signature);<NEW_LINE>long stampTime = ParseUtil.getStamp(attrs);<NEW_LINE>if (metaMember != null) {<NEW_LINE>switch(type) {<NEW_LINE>case QUEUE:<NEW_LINE>{<NEW_LINE...
model.updateStats(metaMember, attrs);
1,430,774
protected void writeTextureToHardware(final GLState pGLState) throws IOException {<NEW_LINE>final IPVRTexturePixelBufferStrategyBufferManager pvrTextureLoadStrategyManager = this.mPVRTexturePixelBufferStrategy.newPVRTexturePixelBufferStrategyManager(this);<NEW_LINE>int width = this.getWidth();<NEW_LINE>int height = thi...
= this.mPVRTextureHeader.getDataLength();
297,405
private String constructExampleCode(CodegenModel codegenModel, HashMap<String, CodegenModel> modelMaps, HashMap<String, Integer> processedModelMap) {<NEW_LINE>// break infinite recursion. Return, in case a model is already processed in the current context.<NEW_LINE>String model = codegenModel.name;<NEW_LINE>if (process...
count = processedModelMap.get(model);
340,475
private void notifyDocumentStatusChanged(@NonNull final WFProcess wfProcess, @NonNull final Set<UserId> usersToNotify) {<NEW_LINE>// Notify only if WF process was Completed (and not aborted or suspended)<NEW_LINE>if (!wfProcess.getState().isCompleted()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final UserId invokerId = wf...
collect(ImmutableSet.toImmutableSet());
23,640
public List<ServiceBindingRequirementBuildItem> createServiceBindingDecorators(ApplicationInfoBuildItem applicationInfo, KubernetesServiceBindingConfig config, List<ServiceBindingQualifierBuildItem> qualifiers) {<NEW_LINE>Map<String, ServiceBindingRequirementBuildItem> requirements = new HashMap<>();<NEW_LINE>String ap...
.put(key, r));
413,406
public void marshall(ParameterDefinition parameterDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parameterDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMar...
parameterDefinition.getAllowedPattern(), ALLOWEDPATTERN_BINDING);
308,050
public GraphQLInputObjectType toGraphQLInputType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env) {<NEW_LINE>BuildContext buildContext = env.buildContext;<NEW_LINE>GraphQLInputObjectType.Builder typeBuilder = newInputObject().name(typeName).description(buildContext.typeInfoGenerator.generateInputTyp...
(javaType, buildContext.messageBundle));
1,647,366
public boolean process(LookUpSimilarImages dbSimilar, LookUpCameraInfo dbCams, PairwiseImageGraph pairwise) {<NEW_LINE>scenes.reset();<NEW_LINE>// Declare storage for book keeping at each view<NEW_LINE>scenesInEachView.initialize(pairwise);<NEW_LINE>// Score nodes for their ability to be seeds<NEW_LINE>Map<String, Seed...
"No seeds found. pairwise.size=" + pairwise.nodes.size);
989,569
private void searchDecompilation(List<DataTypeReference> results) {<NEW_LINE>ClangTokenGroup tokens = decompilation.getCCodeMarkup();<NEW_LINE>// TODO delete this when the ticket settles down<NEW_LINE>// dumpTokens(tokens, 0);<NEW_LINE>// dumpTokenNames(tokens, 0);<NEW_LINE>if (tokens == null) {<NEW_LINE>// assume a ba...
"Unable to get decompilation tokens for " + function.getName());
1,458,292
private void init() {<NEW_LINE>this.parameterList = null;<NEW_LINE>if (this.ctx == null) {<NEW_LINE>this.ctx = new Context();<NEW_LINE>}<NEW_LINE>this.whereList = new HashSet<String>();<NEW_LINE>this.selectList = new HashSet<String>();<NEW_LINE>this.recycleList <MASK><NEW_LINE>this.intoFileName = "";<NEW_LINE>this.sing...
= new ArrayList<String>();
1,639,616
private void buildCrossReferences(LibraryInfo libraryInfo, Map<String, Type> typesByName) {<NEW_LINE>for (TypeInfo typeInfo : libraryInfo.getTypeList()) {<NEW_LINE>Type type = typesByName.get(libraryInfo.getTypeMap(typeInfo.getTypeId()));<NEW_LINE>String superClassName = libraryInfo.getTypeMap(typeInfo.getExtendsType()...
"." + methodInvocation.getMethod());
469,217
public int save(CommonDbServerInfo info) throws Exception {<NEW_LINE>LOGGER.debug("create CommonDbServer info=[{}]", info);<NEW_LINE>// Check validity<NEW_LINE>checkValidity(info);<NEW_LINE>// Check for duplicates based on username, dbType, dbServerIp and port<NEW_LINE>List<CommonDbServerEntity> entities = commonDbServ...
.getLoginUserDetail().getUserName();
18,556
private static void findTwinMentionsStrict(Document doc) {<NEW_LINE>for (int sentNum = 0; sentNum < doc.goldMentions.size(); sentNum++) {<NEW_LINE>List<Mention> golds = doc.goldMentions.get(sentNum);<NEW_LINE>List<Mention> predicts = doc.predictedMentions.get(sentNum);<NEW_LINE>// For CoNLL training there are some docu...
p.startIndex, p.endIndex);
1,329,077
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>ArrayList<FeedPreferences> feedPreferencesList = (ArrayList<FeedPreferences>) <MASK><NEW_LINE>Set<String> commonTags = new HashSet<>(feedPreferencesList.get(0).getTags());<NEW_LINE>for (FeedPreferences preference : feedPreferencesList) {<NEW_L...
getArguments().getSerializable(ARG_FEED_PREFERENCES);
433,925
protected String doIt() throws Exception {<NEW_LINE>ExportHelper expHelper = new ExportHelper(getCtx(), p_AD_Client_ID);<NEW_LINE>MEXPFormat exportFormat = new MEXPFormat(getCtx(), p_EXP_Format_ID, get_TrxName());<NEW_LINE>File file = new File(p_FileName);<NEW_LINE>Document doc = expHelper.exportRecord(exportFormat, ""...
Transformer aTransformer = tranFactory.newTransformer();
902,674
public static void main(String[] args) {<NEW_LINE>Scanner in = new Scanner(System.in);<NEW_LINE>// int[][] arr = new int[3][];<NEW_LINE>// int[][] arr = {<NEW_LINE>// {1, 2, 3}, // 0th index<NEW_LINE>// {4, 5}, // 1st index<NEW_LINE>// {6, 7, 8, 9} // 2nd index -> arr[2] = {6, 7, 8, 9}<NEW_LINE>// };<NEW_LINE>int[][] a...
out.println(arr.length);
1,355,766
protected double calcZoom(final double zoom, final int amount) {<NEW_LINE>if (amount > 0) {<NEW_LINE>final double minzoom = ZoomHelpers.getMinimumZoom(m_zyGraph.getView());<NEW_LINE>setMinimumZoom(minzoom);<NEW_LINE>final double zoomfactor = 1 - (m_zyGraph.getSettings().getMouseSettings(<MASK><NEW_LINE>if (minzoom > 0....
).getZoomSensitivity() * ZOOM_SUB_FACTOR);
523,052
private void addIpV6WildcardMatch(final String endpoint, final String peer, final boolean deny) {<NEW_LINE>byte[] pattern = new byte[16];<NEW_LINE>byte[] mask = new byte[16];<NEW_LINE>String[] parts = peer.split("\\:");<NEW_LINE>assert parts.length == 8;<NEW_LINE>for (int i = 0; i < 8; ++i) {<NEW_LINE>if (!parts[i].equ...
(parts[i], 16);
339,038
private void generateJsonPom(File outputDir, String version, boolean isWebsphereLiberty) throws MavenRepoGeneratorException {<NEW_LINE>String groupId = isWebsphereLiberty ? Constants.WEBSPHERE_LIBERTY_FEATURES_GROUP_ID : Constants.OPEN_LIBERTY_FEATURES_GROUP_ID;<NEW_LINE>MavenCoordinates coordinates = new MavenCoordina...
, Utils.getRepositorySubpath(coordinates));
950,695
protected void commitOrRollback(String cmdName) {<NEW_LINE>if (!error && commit(conn)) {<NEW_LINE>long executionTime = System.currentTimeMillis() - startTime;<NEW_LINE>String execTimeStr = SQLExecutionHelper.millisecondsToSeconds(executionTime);<NEW_LINE>String infoMsg = cmdName + " " + NbBundle.getMessage(SQLStatement...
= new DBException(errorMsg, ex);
1,819,669
public Set<String> parse(String s) {<NEW_LINE>Set<String> <MASK><NEW_LINE>StringBuilder currentToken = new StringBuilder();<NEW_LINE>boolean inEscapeMode = false;<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>if (inEscapeMode) {<NEW_LINE>inEscapeMode = false;<NEW_LINE>currentToken.append(s.charAt(i));<NEW_LI...
result = new HashSet<>();
645,090
private void writeSavedConnectionResponse(HttpServletResponse response, DatabaseConfiguration savedConnection) throws IOException {<NEW_LINE>Writer w = response.getWriter();<NEW_LINE>try {<NEW_LINE>JsonGenerator writer = ParsingUtilities.mapper.getFactory().createGenerator(w);<NEW_LINE>writer.writeStartObject();<NEW_LI...
decrypt(savedConnection.getDatabasePassword());
1,464,428
static ProjectSettings create(@NotNull final ProjectFilePaths projectFilePaths, @NotNull final PluginConfiguration currentPluginConfig) {<NEW_LINE>final Map<String, String> mapForSerialization = new TreeMap<>();<NEW_LINE>mapForSerialization.put(CHECKSTYLE_VERSION_SETTING, currentPluginConfig.getCheckstyleVersion());<NE...
final ProjectSettings projectSettings = new ProjectSettings();
1,084,346
public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextField holderNameInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow<MASK><NEW_LINE>holderNameInputTextField.setValidator(inputValidator);<NEW_LINE>holderNameInputTextField.textProperty().addListener((ov, oldValue, ...
, Res.get("payment.account.owner"));
1,360,959
private void onInit(CallbackInfo ci) {<NEW_LINE>if (!WurstClient.INSTANCE.isEnabled())<NEW_LINE>return;<NEW_LINE>lastServerButton = addDrawableChild(new ButtonWidget(width / 2 - 154, 10, 100, 20, new LiteralText("Last Server"), b -> LastServerRememberer.joinLastServer((MultiplayerScreen<MASK><NEW_LINE>addDrawableChild(...
) (Object) this)));
1,854,359
private static void addFilterInstances(FilterBindings.Builder builder, ServerConfig config, FilterChainRepository filterRepository) {<NEW_LINE>Set<String> filterIds = new HashSet<>();<NEW_LINE>config.filter().forEach(filterBinding -> filterIds.add(filterBinding.id()));<NEW_LINE>config.defaultFilters().forEach(defaultFi...
throw new IllegalArgumentException("No http filter with id " + filterId);
36,098
public boolean onActivate(Item item, Player player) {<NEW_LINE>BlockEntity blockEntity = this.getLevel().getBlockEntity(this);<NEW_LINE>BlockEntityItemFrame itemFrame = (BlockEntityItemFrame) blockEntity;<NEW_LINE>if (itemFrame.getItem().getId() == Item.AIR) {<NEW_LINE>Item itemOnFrame = item.clone();<NEW_LINE>if (play...
addLevelEvent(this, LevelEventPacket.EVENT_SOUND_ITEM_FRAME_ITEM_ROTATED);
91,279
private <E extends Definition> List<Node> makeNodes(String prefix, DefType type) {<NEW_LINE>List<Node<MASK><NEW_LINE>Map<String, Node> namespaceNodes = Maps.newHashMap();<NEW_LINE>DescriptorFilter matcher = new DescriptorFilter(String.format("%s://*:*", prefix), type);<NEW_LINE>Set<DefDescriptor<?>> descriptors = defin...
> ret = Lists.newArrayList();
1,648,922
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>runAssertion(env, BEAN_TYPE.getSimpleName(), FBEAN, new MyIMEvent(new String[] { "v1", "v2" }, Collections.singletonMap("k1", "v1")), path);<NEW_LINE>runAssertion(env, MAP_TYPENAME, FMAP, twoEntryMap("indexed", ne...
AVRO_TYPENAME, FAVRO, datum, path);
164,319
private void buildSegmentTree(int i, int tl, int tr, long[] values) {<NEW_LINE>if (tl == tr) {<NEW_LINE>st[i] = new Segment(i, values[tl], values[tl], values[tl], tl, tr);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int tm <MASK><NEW_LINE>buildSegmentTree(2 * i + 1, tl, tm, values);<NEW_LINE>buildSegmentTree(2 * i + 2, tm + 1...
= (tl + tr) / 2;
1,570,970
public Iterator<Edge> scanEdge(Set<String> labelList) {<NEW_LINE>Pair<GraphSchema, Long> pair = schemaFetcher.getSchemaSnapshotPair();<NEW_LINE>Set<Integer<MASK><NEW_LINE>if (null == labelList || labelList.isEmpty()) {<NEW_LINE>labelIdList.add(0);<NEW_LINE>} else {<NEW_LINE>for (String label : labelList) {<NEW_LINE>try...
> labelIdList = Sets.newHashSet();
1,073,010
public static boolean isValidCaptcha(String token) {<NEW_LINE>if (StringUtils.isBlank(CONF.captchaSecretKey())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (StringUtils.isBlank(token)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<NameValuePair> params = new ArrayList<>();<NEW_LINE>params.add(new BasicNameValueP...
setEntity(new UrlEncodedFormEntity(params));
1,785,015
public static List<ZLFile> archiveEntries(ZLFile archive) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (stream != null) {<NEW_LINE>LinkedList<ZLFile> entries = new LinkedList<ZLFile>();<NEW_LINE>ZLTarHeader header = new ZLTarHeader();<NEW_LINE>while (header.read(stream)) {<NEW_LINE>if (header.IsRegularFile) {<NEW_LINE>...
InputStream stream = archive.getInputStream();
576,453
public synchronized void addMedias(List<MediaWrapper> mws) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>mDatabase.beginTransaction();<NEW_LINE>for (MediaWrapper mw : mws) {<NEW_LINE>values.put(TomahawkSQLiteHelper.MEDIA_LOCATION, mw.getLocation());<NEW_LINE>values.put(TomahawkSQLiteHelper.MEDIA_TIME,...
MEDIA_ALBUMARTIST, mw.getAlbumArtist());
1,396,027
private static long triggerNotification() {<NEW_LINE>long maxMemory = tenuredGenPool.getUsage().getMax();<NEW_LINE>long usedMemory = tenuredGenPool.getUsage().getUsed();<NEW_LINE>Runtime runtime = Runtime.getRuntime();<NEW_LINE>long usedMem = runtime.totalMemory() - runtime.freeMemory();<NEW_LINE>synchronized (warningS...
tenuredGenPool.setUsageThreshold(ws.threshold);
502,212
public void actionPerformed(ActionEvent e) {<NEW_LINE>JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(this);<NEW_LINE>final JDialog d = new JDialog(frame, "Choose Color", true);<NEW_LINE>d.getContentPane().setLayout(new BorderLayout(10, 10));<NEW_LINE>// final ColorSwatch colorSwatch = new ColorSwatch(port.asC...
colorValue().getAwtColor());
1,367,953
public ImmutablePair<TourId, ZonedDateTime> calculateTourAndPreparationDate(@NonNull final IContextAware context, @NonNull final SOTrx soTrx, @NonNull final ZonedDateTime calculationTime, @NonNull final ZonedDateTime datePromised, @NonNull final BPartnerLocationId bpartnerLocationId) {<NEW_LINE>LocalDate preparationDay...
(dd.getDeliveryDate()));
1,089,981
private void convertFile(FileChannel fc) throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {<NEW_LINE>Tr.event(tc, "Converting FileChannel to buffers");<NEW_LINE>}<NEW_LINE>final WsByteBuffer[] body = new WsByteBuffer[1];<NEW_LINE>final WsByteBufferPoolManager mgr = HttpDisp...
{ this, this.isc });
195,268
private void generateNegativeSubcolumnsData() {<NEW_LINE>int numSubcolumns = 4;<NEW_LINE>int numColumns = 4;<NEW_LINE>List<Column> columns = new ArrayList<Column>();<NEW_LINE>List<SubcolumnValue> values;<NEW_LINE>for (int i = 0; i < numColumns; ++i) {<NEW_LINE>values = new ArrayList<SubcolumnValue>();<NEW_LINE>for (int...
, ChartUtils.pickColor()));
1,752,605
public PutAccountSettingDefaultResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutAccountSettingDefaultResult putAccountSettingDefaultResult = new PutAccountSettingDefaultResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
int originalDepth = context.getCurrentDepth();
682,771
private static RouterFunction<?> routingFunction() {<NEW_LINE>return route(GET("/test"), serverRequest -> ok().body(fromValue("helloworld"))).andRoute(POST("/login"), serverRequest -> serverRequest.body(toFormData()).map(MultiValueMap::toSingleValueMap).map(formData -> {<NEW_LINE>System.out.println("form data: " + form...
())).block();
784,533
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {<NEW_LINE>switch(operationID) {<NEW_LINE>case ModelPackage.MBRICKLET_PIEZO_SPEAKER___TURN_SWITCH__ONOFFVALUE_DEVICEOPTIONS:<NEW_LINE>turnSwitch((OnOffValue) arguments.get(0), (DeviceOptions<MASK><NEW_LINE>return null;<NEW_LINE>...
) arguments.get(1));
425,935
final DeleteContactListResult executeDeleteContactList(DeleteContactListRequest deleteContactListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteContactListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.SERVICE_ID, "SESv2");
1,322,096
void close() {<NEW_LINE>if (isOpen.compareAndSet(true, false)) {<NEW_LINE>for (UndeleteOperation op : undeleteOperations) {<NEW_LINE>// There is a rare scenario where the operation gets removed from this set and gets completed concurrently by<NEW_LINE>// the RequestResponseHandler thread when it is in poll() or handleR...
getCallback(), null, e);
527,469
public GenericRow next(GenericRow destination) {<NEW_LINE>if (_kafkaIterator == null || !_kafkaIterator.hasNext()) {<NEW_LINE>updateKafkaIterator();<NEW_LINE>}<NEW_LINE>if (_kafkaIterator.hasNext()) {<NEW_LINE>try {<NEW_LINE>final ConsumerRecord<Bytes, Bytes<MASK><NEW_LINE>updateOffsets(record.partition(), record.offse...
> record = _kafkaIterator.next();
45,274
public static AlertDialog selectGPXFile(final Activity activity, final boolean showCurrentGpx, final boolean multipleChoice, final CallbackWithObject<GPXFile[]> callbackWithObject, boolean nightMode) {<NEW_LINE>int dialogThemeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;<NEW_LINE>OsmandApplicati...
createGpxContextMenuAdapter(app, list, false);
1,117,823
private static UsageViewPresentation createPresentation(@Nonnull UsageViewDescriptor descriptor, @Nonnull Usage[] usages) {<NEW_LINE>UsageViewPresentation presentation = new UsageViewPresentation();<NEW_LINE>presentation.setTabText(RefactoringBundle.message("usageView.tabText"));<NEW_LINE>presentation.setTargetsNodeTex...
codeUsageCount, codeFiles.size());
1,007,489
private void openCloseWindowGroup() {<NEW_LINE>final Project[] projects = OpenProjects.getDefault().getOpenProjects();<NEW_LINE>Runnable r = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>// NOI18N<NEW_LINE>TopComponentGroup projectsGroup = WindowManager.<MASK><NEW_LINE>if (null == ...
getDefault().findTopComponentGroup("OpenedProjects");
339,018
private static void addParameterMissmatchProposals(IInvocationContext context, IProblemLocationCore problem, List<IMethodBinding> similarElements, ASTNode invocationNode, List<Expression> arguments, Collection<ChangeCorrectionProposal> proposals) throws CoreException {<NEW_LINE>int nSimilarElements = similarElements.si...
().length - argTypes.length;
309,619
public boolean removeLogrotateFile() {<NEW_LINE>boolean deleted = false;<NEW_LINE>try {<NEW_LINE>if (Files.exists(getLogrotateConfPath())) {<NEW_LINE>deleted = Files.deleteIfExists(getLogrotateConfPath());<NEW_LINE>log.debug("Deleted {} : {}", getLogrotateConfPath(), deleted);<NEW_LINE>} else {<NEW_LINE>deleted = true;...
Files.deleteIfExists(getLogrotateSizeBasedConfPath());
164,804
private MimeMultipart make(MimeBodyPart content) throws SMIMEException {<NEW_LINE>try {<NEW_LINE>MimeBodyPart sig = new MimeBodyPart();<NEW_LINE>sig.setContent(new ContentSigner(content, false), DETACHED_SIGNATURE_TYPE);<NEW_LINE>sig.addHeader("Content-Type", DETACHED_SIGNATURE_TYPE);<NEW_LINE>sig.addHeader("Content-Di...
throw new SMIMEException("exception putting multi-part together.", e);
736,881
public static int parseDuration(final String property) {<NEW_LINE>StringTokenizer tokens = new StringTokenizer(property.toUpperCase(java.util<MASK><NEW_LINE>if (!tokens.hasMoreTokens()) {<NEW_LINE>throw new IllegalArgumentException("Duration argument is empty");<NEW_LINE>}<NEW_LINE>final long time;<NEW_LINE>try {<NEW_L...
.Locale.ENGLISH), " \t");