idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,108,545
final void calcVolume() {<NEW_LINE>synchronized (control_mutex) {<NEW_LINE>double gain = Math.pow(10.0, gain_control.getValue() / 20.0);<NEW_LINE>if (mute_control.getValue())<NEW_LINE>gain = 0;<NEW_LINE>leftgain = (float) gain;<NEW_LINE>rightgain = (float) gain;<NEW_LINE>if (mixer.getFormat().getChannels() > 1) {<NEW_L...
reverbsend_control.getValue() / 20.0);
83,284
private // cracker, that uses brute force (a<NEW_LINE>// cracker, that uses brute force (a<NEW_LINE>boolean // double loop) to find segment<NEW_LINE>checkCrackingBrute_() // intersections.<NEW_LINE>{<NEW_LINE>MultiPathImpl multiPathImpl = (MultiPathImpl) m_geometry._getImpl();<NEW_LINE>// Implementation without a QuadT...
_isIntersecting(seg2, m_toleranceIsSimple, true);
26,803
public void makeTabItem(ReactBottomNavigation bottomNavigation, Menu menu, int index, Integer itemId, ReadableMap config) {<NEW_LINE>Log.d(TAG, "makeTabItem");<NEW_LINE>MenuItem item = menu.add(Menu.NONE, itemId, Menu.NONE, config.getString("title"));<NEW_LINE>if (config.hasKey("image")) {<NEW_LINE>bottomNavigation.set...
, config.getMap("image"));
1,111,462
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setRetainInstance(true);<NEW_LINE>UUID toAddress = (UUID) getArguments().getSerializable(Constants.DESTADDRESS);<NEW_LINE>UUID fromAddress = (UUID) getArguments().getSerializable(Constants.FROM_ADDRESS);<NE...
(false).getAccount(fromAddress);
993,633
public static DatabaseConnection findDatabaseConnection(PersistenceUnit pu, Project project) {<NEW_LINE>// try to find a connection specified using the PU properties<NEW_LINE>DatabaseConnection dbcon = ProviderUtil.getConnection(pu);<NEW_LINE>if (dbcon != null) {<NEW_LINE>return dbcon;<NEW_LINE>}<NEW_LINE>// try to fin...
).lookup(JPADataSourceProvider.class);
14,880
final SendEmailResult executeSendEmail(SendEmailRequest sendEmailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendEmailRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,057,840
public org.python.Object __mul__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>boolean other_bool = ((org.python.types.Bool) other).value;<NEW_LINE>if (other_bool) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>return new Bytes(new byte[0]);<NEW_LINE>}<NEW_LINE>}<NEW_LIN...
bytes, i * len, len);
1,106,229
public void caretUpdate(CaretEvent evt) {<NEW_LINE>JTextComponent comp = (JTextComponent) evt.getSource();<NEW_LINE>if (comp != null) {<NEW_LINE>if (comp.getSelectionStart() != comp.getSelectionEnd()) {<NEW_LINE>// cancel line highlighting if selection exists<NEW_LINE>removeLineHighlight(comp);<NEW_LINE>comp.repaint();...
addHighlight(start, end, painter);
1,767,377
public void run() {<NEW_LINE>ImageBase boof = getImageType(0).createImage(1, 1);<NEW_LINE>boolean first = true;<NEW_LINE>for (int i = 0; i < files.length && !requestStop; i++) {<NEW_LINE>String path = files[i];<NEW_LINE>inputFilePath = path;<NEW_LINE>if (path == null) {<NEW_LINE>System.err.println("Error[" + i + "] pat...
convertFrom(buffered, boof, true);
1,472,721
protected PreDeConModel computeLocalModel(DBIDRef id, DoubleDBIDList neighbors, Relation<? extends NumberVector> relation) {<NEW_LINE>mvSize.put(neighbors.size());<NEW_LINE>PCAResult epairs = pca.processIds(neighbors, relation);<NEW_LINE>int cordim = filter.filter(epairs.getEigenvalues());<NEW_LINE>PCAFilteredResult pc...
return new PreDeConModel(cordim, survivors);
268,070
public static ListUserGroupsResponse unmarshall(ListUserGroupsResponse listUserGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserGroupsResponse.setRequestId(_ctx.stringValue("ListUserGroupsResponse.RequestId"));<NEW_LINE>listUserGroupsResponse.setMessage(_ctx.stringValue("ListUserGroupsResponse.Message"));<N...
("ListUserGroupsResponse.Data[" + i + "].UpdateTime"));
1,440,747
private void loadOptions() {<NEW_LINE>Options opt = tool.getOptions(PluginConstants.SEARCH_OPTION_NAME);<NEW_LINE>int newSearchLimit = opt.getInt(GhidraOptions.OPTION_SEARCH_LIMIT, PluginConstants.DEFAULT_SEARCH_LIMIT);<NEW_LINE>if (newSearchLimit <= 0) {<NEW_LINE>throw new OptionsVetoException("Search limit must be gr...
getString(BytesFieldFactory.DELIMITER_MSG, " ");
1,237,128
private void startUploadTask(final String file_path) {<NEW_LINE>upInProgress = true;<NEW_LINE>new UploadRSSLogTask(new UploadRSSLogTask.UploadRSSLogTaskListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(String result) {<NEW_LINE>upInProgress = false;<NEW_LINE>File file = new File(file_path);<NEW_L...
, "")).execute();
447,884
public void handleMouseInput() {<NEW_LINE>int x = (int) (Mouse.getEventX() * this.width / <MASK><NEW_LINE>int y = (int) ((this.height - Mouse.getEventY() * this.height / this.mc.displayHeight - 1) * glScale);<NEW_LINE>int k = Mouse.getEventButton();<NEW_LINE>if (k == 0) {<NEW_LINE>if (Mouse.getEventButtonState()) {<NEW...
this.mc.displayWidth * glScale);
882,188
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>for (Object object : this.objects.getArray(e)) {<NEW_LINE>switch(mode) {<NEW_LINE>case DELETE:<NEW_LINE>if (object instanceof LivingEntity)<NEW_LINE>PotionEffectUtils.clearAllEffects((LivingEntity) object);<NEW_LINE>else if (object instan...
(ItemType) object), delta);
618,440
public void mouseClicked(final MouseEvent e) {<NEW_LINE>boolean shouldEditOrResetPosition = e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2 && doubleClickTimer.getDelay() > 0;<NEW_LINE>if (shouldEditOrResetPosition) {<NEW_LINE>final MainView mainView = (MainView) e.getComponent();<NEW_LINE>if (mainView.ge...
NodeModel node = nodeV.getModel();
291,979
public WritableArchive createSubArchive(String name) throws IOException {<NEW_LINE>String subEntryName = getFileSubArchivePath(name);<NEW_LINE><MASK><NEW_LINE>if (!subEntry.exists()) {<NEW_LINE>// time to create a new sub directory<NEW_LINE>if (!subEntry.exists() && !subEntry.mkdirs()) {<NEW_LINE>throw new IOException(...
File subEntry = new File(subEntryName);
791,390
public Set<Integer> updateQuote(short siteId, Serializable id, CmsContentParameters contentParameters, CmsModel cmsModel, CmsCategory category, CmsContentAttribute attribute) {<NEW_LINE>CmsContent entity = getEntity(id);<NEW_LINE>Set<Integer> categoryIds = new HashSet<>();<NEW_LINE>if (null != entity) {<NEW_LINE>for (C...
delete(quote.getId());
454,596
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreateView");<NEW_LINE>View v = inflater.inflate(R.layout.fragment_info_achievements, container, false);<NEW_LINE>icon = v.findViewById(R.id.icon_info_achievements);<NEW_LINE>checkIcon = v.findViewBy...
.title_layout).setBackgroundColor(backgroundColor);
1,670,788
public void drawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double templateWidth, double templateHeight, int translateX, int translateY, double angle, double renderWidth, double renderHeight, float ratioX, float ratioY, float x, float y) throws JRException, IOException {<NEW_LINE>Pd...
) renderWidth, (int) renderHeight);
1,084,216
private String commitToGitLab(String repositoryUrl, String content, String commitMessage, boolean create) throws SourceConnectorException {<NEW_LINE>try (CloseableHttpClient httpClient = HttpClients.createDefault()) {<NEW_LINE>GitLabResource resource = resolver.resolve(repositoryUrl);<NEW_LINE>String contentUrl = this....
action.setGitLabAction(GitLabActionType.CREATE);
289,599
public JMethod overrideAnnotatedMethod(ExecutableElement executableElement, GeneratedClassHolder holder) {<NEW_LINE>TypeMirror annotatedClass = holder.getAnnotatedElement().asType();<NEW_LINE>DeclaredType baseClass = (DeclaredType) executableElement.getEnclosingElement().asType();<NEW_LINE>Types typeUtils = environment...
> bounds = typeDeclaration.getValue();
1,563,460
public // region update<NEW_LINE>UpdateRequest updateRequest(UpdateQuery query, IndexCoordinates index) {<NEW_LINE>String indexName = query.getIndexName() != null ? query.getIndexName() : index.getIndexName();<NEW_LINE>UpdateRequest updateRequest = new UpdateRequest(indexName, query.getId());<NEW_LINE>if (query.getScri...
() : Collections.emptyList();
1,842,276
public void initialize(ConfigurableListableBeanFactory beanFactory) throws BeansException {<NEW_LINE>BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory;<NEW_LINE>List<Map<String, String>> idempotentEndpointsMapping = new ManagedList<>();<NEW_LINE>for (String beanName : registry.getBeanDefinitionName...
String.class, value, "The 'mapping' of BeanDefinition 'IDEMPOTENT_ENDPOINTS_MAPPING' must be String.");
1,436,427
public void startAdding(LayoutComponent[] comps, Rectangle[] bounds, Point hotspot, String defaultContId) {<NEW_LINE>if (logTestCode()) {<NEW_LINE>// NOI18N<NEW_LINE>testCode.add("// > START ADDING");<NEW_LINE>}<NEW_LINE>prepareDragger(comps, bounds, hotspot, LayoutDragger.ALL_EDGES);<NEW_LINE>if (logTestCode()) {<NEW_...
writeString(testCode, "defaultContId", defaultContId);
950,877
public BufferedImage apply(BufferedImage img) {<NEW_LINE>BufferedImage <MASK><NEW_LINE>Graphics2D g = newImage.createGraphics();<NEW_LINE>g.setFont(font);<NEW_LINE>g.setColor(c);<NEW_LINE>g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha));<NEW_LINE>int imageWidth = img.getWidth();<NEW_LINE>int i...
newImage = BufferedImages.copy(img);
907,379
private List<BibEntry> parseEntries(Document content) {<NEW_LINE>List<BibEntry> result = new LinkedList<>();<NEW_LINE>// used for creating test cases<NEW_LINE>// XMLUtil.printDocument(content);<NEW_LINE>// Namespace srwNamespace = Namespace.getNamespace("srw","http://www.loc.gov/zing/srw/");<NEW_LINE>// Schleife ueber ...
e = getChild("record", e);
148,631
private void configurePublications(Project project) {<NEW_LINE>var publishingExtension = project.getExtensions().getByType(PublishingExtension.class);<NEW_LINE>var publication = publishingExtension.getPublications().create("elastic", MavenPublication.class);<NEW_LINE>project.afterEvaluate(project1 -> {<NEW_LINE>if (pro...
license.appendNode("distribution", "repo");
897,297
public void initNearbyFilter() {<NEW_LINE>nearbyFilterList.setVisibility(View.GONE);<NEW_LINE>searchView.setOnQueryTextFocusChangeListener((v, hasFocus) -> {<NEW_LINE>if (hasFocus) {<NEW_LINE>presenter.searchViewGainedFocus();<NEW_LINE>nearbyFilterList.setVisibility(View.VISIBLE);<NEW_LINE>} else {<NEW_LINE>nearbyFilte...
.valuesAsList()), recyclerView);
450,629
protected static KeyPair generateDHKeyPair(TransportHelper transport, boolean outbound) throws IOException {<NEW_LINE>if (dh_key_generator == null) {<NEW_LINE>throw (new IOException("Crypto not setup"));<NEW_LINE>}<NEW_LINE>synchronized (dh_key_generator) {<NEW_LINE>if (!outbound) {<NEW_LINE>InetSocketAddress is_addres...
long now = SystemTime.getCurrentTime();
826,021
public // ----------------------------------------------<NEW_LINE>void listAirports(int max) {<NEW_LINE>if (max < -1)<NEW_LINE>return;<NEW_LINE>// Try to find the requested number of airports.<NEW_LINE>// Note the use of the "__." and "Order" prefixes.<NEW_LINE>List<Vertex> vlist = g.V().hasLabel("airport").order().by(...
values("code").next();
1,024,225
public int compare(Version version1, Version version2) {<NEW_LINE>int minLength = Math.min(version1.getFragmentCount(<MASK><NEW_LINE>for (int i = 0; i < minLength; i++) {<NEW_LINE>Fragment fragment1 = version1.getFragment(i);<NEW_LINE>Fragment fragment2 = version2.getFragment(i);<NEW_LINE>long number1 = fragment1.getNu...
), version2.getFragmentCount());
796,702
final PutPlaybackConfigurationResult executePutPlaybackConfiguration(PutPlaybackConfigurationRequest putPlaybackConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPlaybackConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,183,884
private Map<String, Map<Class<?>, HandlerMethod>> findHandlerMethodsForTarget() {<NEW_LINE>Map<String, Map<Class<?>, HandlerMethod>> methods = new HashMap<>();<NEW_LINE>Map<Class<?>, HandlerMethod> candidateMethods = new HashMap<>();<NEW_LINE>Map<Class<?>, HandlerMethod> candidateMessageMethods = new HashMap<>();<NEW_L...
methods.put(CANDIDATE_MESSAGE_METHODS, fallbackMessageMethods);
569,961
public void marshall(GroupVersion groupVersion, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (groupVersion == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(groupVersion.getConnectorDefinitionVersionArn(),...
groupVersion.getFunctionDefinitionVersionArn(), FUNCTIONDEFINITIONVERSIONARN_BINDING);
188,650
private static Vector combineServerIntLongRowSplits(List<ServerRow> rowSplits, MatrixMeta matrixMeta, int rowIndex) {<NEW_LINE>int colNum = (int) matrixMeta.getColNum();<NEW_LINE>int elemNum = 0;<NEW_LINE>int size = rowSplits.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>elemNum += rowSplits.get(i).size();...
setMatrixId(matrixMeta.getId());
1,354,089
private void initializeIteratorNextReturnType() {<NEW_LINE>Type type;<NEW_LINE>if (this.type.getTag() == PredefinedTypes.TYPE_MAP.getTag()) {<NEW_LINE>BMapType <MASK><NEW_LINE>type = mapType.getConstrainedType();<NEW_LINE>} else {<NEW_LINE>BRecordType recordType = (BRecordType) this.type;<NEW_LINE>LinkedHashSet<Type> t...
mapType = (BMapType) this.type;
10,157
public MJournal reverseCorrectIt(int GL_JournalBatch_ID) {<NEW_LINE>log.info(toString());<NEW_LINE>// Journal<NEW_LINE>MJournal reverse = new MJournal(this);<NEW_LINE>reverse.setGL_JournalBatch_ID(GL_JournalBatch_ID);<NEW_LINE>reverse.setDateDoc(getDateDoc());<NEW_LINE>reverse.setC_Period_ID(getC_Period_ID());<NEW_LINE...
reverse.set_ValueNoCheck("DocumentNo", null);
48,620
public void execute(IvyModuleDescriptorSpec descriptor) {<NEW_LINE>descriptor.description(new Action<IvyModuleDescriptorDescription>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(IvyModuleDescriptorDescription description) {<NEW_LINE>description.getText().set(declaration.getDescription());<NEW_LINE>}<NE...
getAttributes().setNamedItem(name);
1,811,466
// callback changed dc list<NEW_LINE>List<String> diffRoutes(Map<String, RouteMeta> current, Map<String, RouteMeta> future) {<NEW_LINE>if (current == null || current.size() == 0)<NEW_LINE>return new ArrayList<>(future.keySet());<NEW_LINE>if (future == null || future.size() == 0)<NEW_LINE>return new ArrayList<>(current....
comparedDcs = new HashSet<>();
1,491,982
protected JComponent createContent() {<NEW_LINE>myMouseMotionListener = new MyMouseMotionListener();<NEW_LINE>myMouseListener = new MyMouseListener();<NEW_LINE>ListPopupStep<Object> step = getListStep();<NEW_LINE>myListModel = new ListPopupModel(this, getSpeedSearch(), step);<NEW_LINE>myList = new MyList();<NEW_LINE>if...
setBorder(new EmptyBorder(padding));
1,066,446
boolean saveLists(List<KeywordList> lists) {<NEW_LINE>List<KeywordList> overwritten = new ArrayList<>();<NEW_LINE>List<KeywordList> newLists = new ArrayList<>();<NEW_LINE>for (KeywordList list : lists) {<NEW_LINE>if (this.listExists(list.getName())) {<NEW_LINE>overwritten.add(list);<NEW_LINE>} else {<NEW_LINE>newLists....
), MessageNotifyUtil.MessageType.ERROR);
1,471,418
private void mapResourceFileToTargetClassFiles(Map<File, Set<String>> typesCompiledByFile) {<NEW_LINE>if (typesCompiledByFile.isEmpty()) {<NEW_LINE>// nothing to add<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Keep track of compiled Manifold types during a Rebuild.<NEW_LINE>//<NEW_LINE>// Generally, since Manifold types ar...
typesToFile.put(file, types);
1,608,545
public static DoubleMatrix2D distance(DoubleMatrix2D matrix, VectorVectorFunction distanceFunction) {<NEW_LINE>int columns = matrix.columns();<NEW_LINE>DoubleMatrix2D distance = new cern.colt.matrix.impl.DenseDoubleMatrix2D(columns, columns);<NEW_LINE>// cache views<NEW_LINE>DoubleMatrix1D[] cols = new DoubleMatrix1D[c...
setQuick(j, i, d);
1,201,123
public void visitMethodInsn(int opcode, String owner, String name, String descriptor, boolean isInterface) {<NEW_LINE>if (opcode == INVOKESTATIC && name.equals("notNull")) {<NEW_LINE>// This code is rewriting the Assert.notNull<NEW_LINE>// first, remove the parameters that would have been passed to the notNull call<NEW...
(Type.getObjectType("java/lang/Object"));
1,116,222
public int ladderLength(String beginWord, String endWord, List<String> wordList) {<NEW_LINE>//<NEW_LINE>List<String> visited = new ArrayList<>();<NEW_LINE>int len = beginWord.length();<NEW_LINE>Map<String, List<String>> base = new HashMap<>();<NEW_LINE>for (String word : wordList) {<NEW_LINE>for (int i = 0; i < len; i+...
(pair.getKey()));
1,447,801
public void lowerStoreIndexedNode(StoreIndexedNode storeIndexed, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = storeIndexed.graph();<NEW_LINE>JavaKind elementKind = storeIndexed.elementKind();<NEW_LINE>ValueNode value = storeIndexed.value();<NEW_LINE>ValueNode array = storeIndexed.array();<NEW_LINE>AddressNode ...
elementKind, storeIndexed.index());
1,225,114
private static Map<String, String> exportMetadata(VolumeManager fs, ServerContext context, TableId tableID, ZipOutputStream zipOut, DataOutputStream dataOut) throws IOException, TableNotFoundException {<NEW_LINE>zipOut.putNextEntry(new ZipEntry(Constants.EXPORT_METADATA_FILE));<NEW_LINE>Map<String, String> uniqueFiles ...
TabletColumnFamily.PREV_ROW_COLUMN.fetch(metaScanner);
1,523,197
private static DruidExpression literalToDruidExpression(final PlannerContext plannerContext, final RexNode rexNode) {<NEW_LINE>final SqlTypeName sqlTypeName = rexNode.getType().getSqlTypeName();<NEW_LINE>// Translate literal.<NEW_LINE>final ColumnType columnType = Calcites.getColumnTypeForRelDataType(rexNode.getType())...
(RexLiteral.stringValue(rexNode));
96,031
private void addDecoratedMethods(Map<MethodKey, DecorationInfo> decoratedMethods, ClassInfo classInfo, ClassInfo originalClassInfo, List<DecoratorInfo> boundDecorators, SubclassSkipPredicate skipPredicate) {<NEW_LINE>skipPredicate.startProcessing(classInfo, originalClassInfo);<NEW_LINE>for (MethodInfo method : classInf...
matching = findMatchingDecorators(method, boundDecorators);
1,020,390
public LdcInsnAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>String trim = line.trim();<NEW_LINE>int ti = line.indexOf(trim);<NEW_LINE>int space = line.indexOf(' ');<NEW_LINE>String opS = trim.substring(0, space);<NEW_LINE>// op<NEW_LINE>OpcodeParser opParser = new OpcodeParser();...
parser.visit(lineNo, content);
884,464
public static FaceletTagLibrary create(ExternalContext externalContext, URL url) throws IOException {<NEW_LINE>InputStream is = null;<NEW_LINE>FaceletTagLibrary t = null;<NEW_LINE>URLConnection conn = null;<NEW_LINE>try {<NEW_LINE>boolean schemaValidating = false;<NEW_LINE>// validate XML<NEW_LINE>if (MyfacesConfig.get...
IOException("Error parsing [" + url + "]: ");
1,180,903
private static void addDataFilesFromFolder(File folder, StringBuilder itemPath, List<DataFile> dataFiles) {<NEW_LINE>File[] files = folder.listFiles();<NEW_LINE>if (files == null || files.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int folderPathLength = itemPath.length();<NEW_LINE>if (folderPathLength > 0) {<N...
String fileName = file.getName();
1,106,937
private void parseHeaders(String headers) {<NEW_LINE>int index = 0;<NEW_LINE>List<String> keys = new ArrayList<>();<NEW_LINE>List<String> values = new ArrayList<>();<NEW_LINE>responseHeaders = new HashMap<>();<NEW_LINE>headerFields = new HashMap<>();<NEW_LINE>while (index < headers.length()) {<NEW_LINE>int next = <MASK...
headers.indexOf("\r\n", index);
543,806
public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>super.onCreateOptionsMenu(menu);<NEW_LINE>menu.findItem(R.id.menu_image).setVisible(cache.supportsLogImages());<NEW_LINE>menu.findItem(R.id<MASK><NEW_LINE>menu.findItem(R.id.clear).setVisible(true);<NEW_LINE>menu.findItem(R.id.menu_sort_trackables_by).setVi...
.save).setVisible(true);
521,730
private Collection<? extends TripToTripTransfer<T>> findStandardTransfers(TripStopTime<T> from) {<NEW_LINE>final List<TripToTripTransfer<T>> result = new ArrayList<>();<NEW_LINE>Iterator<? extends RaptorTransfer> transfers = stdTransfers.getTransfersFromStop(from.stop());<NEW_LINE>while (transfers.hasNext()) {<NEW_LINE...
, to, it, tx));
206,313
private ClassTree addPostMethod(MimeType mime, String type, WorkingCopy copy, ClassTree tree) {<NEW_LINE>Modifier[] modifiers = Constants.PUBLIC;<NEW_LINE>String[] annotations = new String[] { RestConstants.POST_ANNOTATION, RestConstants.CONSUME_MIME_ANNOTATION, RestConstants.PRODUCE_MIME_ANNOTATION };<NEW_LINE>Express...
StringBuilder comment = new StringBuilder("POST method for creating an instance of ");
1,341,139
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String loadBalancerName, LoadBalancerInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is r...
this.client.mergeContext(context);
792,727
private HttpMediaType fromString(String combinedType) {<NEW_LINE>Matcher matcher = FULL_MEDIA_TYPE_REGEX.matcher(combinedType);<NEW_LINE>Preconditions.checkArgument(matcher.matches(), "Type must be in the 'maintype/subtype; parameter=value' format");<NEW_LINE>setType(matcher.group(1));<NEW_LINE>setSubType(matcher.group...
key = matcher.group(1);
1,200,767
protected void encodeControls(FacesContext context, OrderList ol) throws IOException {<NEW_LINE><MASK><NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute("class", OrderList.CONTROLS_CLASS, null);<NEW_LINE>encodeButton(context, ol.getMoveUpLabel(), OrderList.MOVE_UP_BUTTON_CLASS, OrderList.MOVE_UP...
ResponseWriter writer = context.getResponseWriter();
1,525,161
public byte[] transform(String name, String transformedName, byte[] basicClass) {<NEW_LINE>if (basicClass == null)<NEW_LINE>return null;<NEW_LINE>// Ignore the state tracker itself<NEW_LINE>if (name.equals(GLStateTracker_CLASS))<NEW_LINE>return basicClass;<NEW_LINE>ClassReader reader = new ClassReader(basicClass);<NEW_...
= new ClassWriter(reader, 0);
1,737,327
public void run(ApplicationArguments applicationArguments) throws Exception {<NEW_LINE>String[] templates = { "Up and running with %s", "%s Basics", "%s for Beginners", "%s for Neckbeards", "Under the hood: %s", "Discovering %s", "A short guide to %s", "%s with Baeldung" };<NEW_LINE>String[] buzzWords = { "Spring REST ...
(1000 - 200) + 200);
756,269
void open() throws MessagingException {<NEW_LINE>try {<NEW_LINE>SocketAddress socketAddress = new InetSocketAddress(settings.getHost(), settings.getPort());<NEW_LINE>if (settings.getConnectionSecurity() == ConnectionSecurity.SSL_TLS_REQUIRED) {<NEW_LINE>socket = trustedSocketFactory.createSocket(null, settings.getHost(...
socket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT);
1,090,273
public void execute() {<NEW_LINE>String mysqlShowTableCol = "Tables_in_" + phyShardingNode.getDatabase();<NEW_LINE>String[] mysqlShowTableCols = new String[] { mysqlShowTableCol };<NEW_LINE>PhysicalDbInstance tds = phyShardingNode.getDbGroup().getWriteDbInstance();<NEW_LINE>PhysicalDbInstance ds = null;<NEW_LINE>if (td...
), resultHandler, ds, list);
276,636
public IPath[] enclosingProjectsAndJars() {<NEW_LINE>IPath[] result = this.enclosingPaths;<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>long start = BasicSearchEngine.VERBOSE ? System.currentTimeMillis() : -1;<NEW_LINE>try {<NEW_LINE>IJavaProject[] projects = JavaModelManager.getJavaModelM...
add(entry.getPath());
745,339
public void createVerticalChain(int topId, int topSide, int bottomId, int bottomSide, int[] chainIds, float[] weights, int style) {<NEW_LINE>if (chainIds.length < 2) {<NEW_LINE>throw new IllegalArgumentException("must have 2 or more widgets in a chain");<NEW_LINE>}<NEW_LINE>if (weights != null && weights.length != chai...
- 1], BOTTOM, 0);
15,250
public <T> T run(Function<? super BuildTreeLifecycleController, T> buildAction) {<NEW_LINE>StartParameterInternal startParameter = buildDefinition.getStartParameter();<NEW_LINE>BuildRequestMetaData buildRequestMetaData = new <MASK><NEW_LINE>BuildSessionState session = new BuildSessionState(userHomeDirServiceRegistry, c...
DefaultBuildRequestMetaData(Time.currentTimeMillis());
477,394
public static List<Region> find(int strictness, boolean findAll, RobotBase robot, Mat source, Mat target, boolean resize) {<NEW_LINE>List<Region> found = new ArrayList();<NEW_LINE>collect(strictness, found, findAll, <MASK><NEW_LINE>if (!found.isEmpty()) {<NEW_LINE>return found;<NEW_LINE>}<NEW_LINE>int stepUp = collect(...
robot, source, target, 1);
1,020,908
public void recoverUserName(RecoverUserNameRequest body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling recoverUserName");<NEW_LIN...
String[] localVarAccepts = { "application/json" };
1,056,185
private HttpClient createHttpClient(boolean isSecure, boolean isHostnameVerification, SSLSocketFactory sslSocketFactory, boolean addBasicAuthHeader, BasicCredentialsProvider credentialsProvider, boolean useSystemPropertiesForHttpClientConnections) {<NEW_LINE>HttpClient client = null;<NEW_LINE>if (isSecure) {<NEW_LINE>C...
(sslSocketFactory, new NoopHostnameVerifier());
282,172
private void toSlime(ApplicationVersion applicationVersion, Cursor object) {<NEW_LINE>applicationVersion.buildNumber().ifPresent(number -> object.setLong(applicationBuildNumberField, number));<NEW_LINE>applicationVersion.source().ifPresent(source -> toSlime(source, object.setObject(sourceRevisionField)));<NEW_LINE>appl...
.setString(commitField, commit));
1,378,990
private static void validateConditionConnections(ModuleTypeRegistry mtRegistry, @NonNull Condition condition, @NonNull List<? extends @NonNull Trigger> triggers) {<NEW_LINE>// get module type of the condition<NEW_LINE>ConditionType type = (ConditionType) mtRegistry.get(condition.getTypeUID());<NEW_LINE>if (type == null...
String name = input.getName();
1,565,916
private static void addInstrumentedFiles(StructImpl insStruct, RuleContext ruleContext, RuleConfiguredTargetBuilder builder) throws EvalException {<NEW_LINE>List<String> extensions = null;<NEW_LINE>if (insStruct.getFieldNames().contains("extensions")) {<NEW_LINE>extensions = Sequence.cast(insStruct.getValue("extensions...
> sourceAttributes = Collections.emptyList();
1,728,917
private static LoggingStrategy createLoggingStrategy(final AnnotationNode logAnnotation, final ClassLoader classLoader, final ClassLoader xformLoader) {<NEW_LINE>String annotationName = logAnnotation.getClassNode().getName();<NEW_LINE>Class<?> annotationClass;<NEW_LINE>try {<NEW_LINE>annotationClass = Class.forName(ann...
throw new RuntimeException("Could not resolve class named " + annotationName);
266,649
static Version of(Stream<String> lines) {<NEW_LINE>final Iterator<String> it = lines.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>final String line = it.next();<NEW_LINE>final Matcher matcher = PATTERN.matcher(line);<NEW_LINE>if (matcher.find()) {<NEW_LINE>// GraalVM/Mandrel:<NEW_LINE>final String version = mat...
jUpdateMatch = matcher.group("jupdate");
1,114,383
private Message<?> convertPayloadIfNecessary(Message<?> message) {<NEW_LINE>if (this.datatypes.length > 0) {<NEW_LINE>// first pass checks if the payload type already matches any of the datatypes<NEW_LINE>for (Class<?> datatype : this.datatypes) {<NEW_LINE>if (datatype.isAssignableFrom(message.getPayload().getClass()))...
messageConverter.fromMessage(message, datatype);
1,629,708
// updateData<NEW_LINE>public WindowTabDataDocument readData(ModelCRUDRequestDocument req) throws XFireFault {<NEW_LINE>WindowTabDataDocument ret <MASK><NEW_LINE>WindowTabData resp = ret.addNewWindowTabData();<NEW_LINE>ModelCRUD modelCRUD = req.getModelCRUDRequest().getModelCRUD();<NEW_LINE>String serviceType = modelCR...
= WindowTabDataDocument.Factory.newInstance();
753,955
protected SdkFileEntry generateModelHeaderFile(ServiceModel serviceModel, Map.Entry<String, Shape> shapeEntry) throws Exception {<NEW_LINE>Shape shape = shapeEntry.getValue();<NEW_LINE>if (!(shape.isRequest() || shape.isEnum() || shape.hasEventPayloadMembers() && shape.hasBlobMembers())) {<NEW_LINE>return null;<NEW_LIN...
StandardCharsets.UTF_8.name());
1,358,081
public void processElement(ProcessContext c) throws Exception {<NEW_LINE>ReadableFile file = c.element();<NEW_LINE>InputStream stream = Channels.newInputStream(file.open());<NEW_LINE>try (InputStream tikaStream = TikaInputStream.get(stream)) {<NEW_LINE>Parser parser = tikaConfig == null ? new AutoDetectParser() : new A...
CONTENT_TYPE, spec.getContentTypeHint());
1,177,684
protected synchronized void ensureSvg(JasperReportsContext jasperReportsContext) throws JRException {<NEW_LINE>if (rootNode != null) {<NEW_LINE>// already loaded<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ensureData(jasperReportsContext);<NEW_LINE>try {<NEW_LINE>UserAgent userAgent = new BatikUserAgent(jasperReportsContext);...
setValidating(userAgent.isXMLParserValidating());
1,131,586
public vector_tile.VectorTileProto.Tile.Layer buildPartial() {<NEW_LINE>vector_tile.VectorTileProto.Tile.Layer result = new vector_tile.VectorTileProto.Tile.Layer(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) != 0)) {<NEW_LINE>to_bitField0...
bitField0_ = (bitField0_ & ~0x00000010);
1,595,192
private DocLine[] loadLines(MOrder order) {<NEW_LINE>ArrayList<DocLine> list = new ArrayList<DocLine>();<NEW_LINE>MOrderLine[] lines = order.getLines();<NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>MOrderLine line = lines[i];<NEW_LINE>DocLine docLine = new DocLine(line, this);<NEW_LINE>BigDecimal Qty = li...
LineNetAmt = Qty.multiply(priceCost);
897,716
public String amt(final Properties ctx, final int WindowNo, final GridTab mTab, final GridField mField, final Object value) {<NEW_LINE>if (isCalloutActive() || value == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>// temporary<NEW_LINE>final int StdPrecision = 2;<NEW_LINE>// get values<NEW_LINE>BigDecimal QtyEntered...
Integer) mTab.getValue("C_Tax_ID");
488,321
public void visit(ClassDeclaration node) {<NEW_LINE>String name = node.getName().getName();<NEW_LINE>ClassElementAttribute ce = (ClassElementAttribute) global.enterWrite(name, Kind.CLASS, node);<NEW_LINE>node2Element.put(node, ce);<NEW_LINE>Identifier superClsName = (node.getSuperClass() != null) ? CodeUtils.extractUnq...
getBody().getStatements());
398,314
private boolean isNeedRun() {<NEW_LINE>List<String> ignoreAgentPortModule <MASK><NEW_LINE>ignoreAgentPortModule.add("imagestorebackupstorage.py");<NEW_LINE>if (isFullDeploy()) {<NEW_LINE>logger.debug("Ansible.fullDeploy is set, run ansible anyway");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (ansibleNeedRun != null) ...
= new ArrayList<String>();
1,117,875
public int indexOfIgnoreCase(String subString, int start) {<NEW_LINE>if (start < 0) {<NEW_LINE>start = 0;<NEW_LINE>}<NEW_LINE>int subCount = subString.length();<NEW_LINE>if (subCount == 0)<NEW_LINE>return start < length || start == 0 ? start : length;<NEW_LINE>int maxIndex = length - subCount;<NEW_LINE>if (start > maxI...
int o1 = i, o2 = 0;
1,780,827
public void parse(BpmnParse bpmnParse, BaseElement element) {<NEW_LINE>ActivityImpl activity = bpmnParse.getCurrentScope().findActivity(element.getId());<NEW_LINE>if (element instanceof BoundaryEvent) {<NEW_LINE>// A boundary-event never receives an activity start-event<NEW_LINE>activity.addExecutionListener(org.activi...
PvmEvent.EVENTNAME_END, ACTIVITI_INSTANCE_END_LISTENER, 1);
713,724
private static void writeGarbageCollectionStats(PrintStream out, boolean verbose, boolean pretty) {<NEW_LINE>List<GarbageCollectorMXBean> gcBeans = ManagementFactory.getGarbageCollectorMXBeans();<NEW_LINE>if (verbose) {<NEW_LINE>if (pretty) {<NEW_LINE>out.println("\nGarbage collection stats");<NEW_LINE>for (GarbageColl...
gcBean.getCollectionTime())));
1,836,795
final GetExportResult executeGetExport(GetExportRequest getExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
384,899
public void addBreezemoon(final RequestContext context) {<NEW_LINE><MASK><NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>if (isInvalid(context, requestJSONObject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JSONObject breezemoon = n...
context.renderJSON(StatusCodes.ERR);
1,221,962
private void createGroupInfoCache() {<NEW_LINE>Map<String, Object> where = new HashMap<String, Object>();<NEW_LINE>where.put("state", 1);<NEW_LINE>Map<String, Object> data = new HashMap<String, Object>();<NEW_LINE>data.put("where", where);<NEW_LINE>String dataStr = JSONHelper.toString(data);<NEW_LINE>Map<String, Object...
HashMap<String, String>();
1,073,037
public static AsmMetric registerStreamMetric(String name, AsmMetric metric, boolean mergeTopology) {<NEW_LINE>name = fixNameIfPossible(name);<NEW_LINE>LOG.debug("register stream metric:{}", name);<NEW_LINE>AsmMetric ret = streamMetrics.register(name, metric);<NEW_LINE>// ret.setEnabled(enableStreamMetrics);<NEW_LINE>if...
topologyMetricName, ret.clone());
527,641
public static void main(String[] args) {<NEW_LINE>// parse the commandline arguments to create the configuration<NEW_LINE>PSymConfiguration config = PSymOptions.ParseCommandlineArgs(args);<NEW_LINE>Reflections reflections = new Reflections("psymbolic");<NEW_LINE>try {<NEW_LINE>// load all the files in the passed jar<NE...
.toURI().getPath();
627,378
private int phySegmentFromStream(final String[] values, int index, final OStorageSegmentConfiguration iSegment) {<NEW_LINE>iSegment.location = version > 2 ? read(values[index++]) : null;<NEW_LINE>iSegment.maxSize = read(values[index++]);<NEW_LINE>iSegment.fileType = read(values[index++]);<NEW_LINE>iSegment.fileStartSiz...
read(values[index++]);
26,330
final ListVersionsByFunctionResult executeListVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVersionsByFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,057,016
protected void buildToString(StringBuilder sb) {<NEW_LINE>if (photometricInterpretation != null) {<NEW_LINE>sb.append(", Photometric Interpretation = ").append(photometricInterpretation);<NEW_LINE>}<NEW_LINE>if (exifOrientation != null) {<NEW_LINE>sb.append(", Exif Orientation = ").append(exifOrientation);<NEW_LINE>}<N...
(", Exif Compression = ").append(exifCompression);
65,007
private String prepareName(String name) {<NEW_LINE>StringBuilder sb = new <MASK><NEW_LINE>Matcher wordCharMatcher = WORD_CHAR.matcher(name);<NEW_LINE>while (wordCharMatcher.find()) {<NEW_LINE>String normalizedToken = toLowerCase(wordCharMatcher.group());<NEW_LINE>String rewrite = rewriteMap.get(normalizedToken);<NEW_LI...
StringBuilder(name.length());
379,271
public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>// 15.4.4.4<NEW_LINE>JSObject o = Types.toObject(context, self);<NEW_LINE>DynArray array = new DynArray(context.getGlobalContext());<NEW_LINE>List<Object> items = new ArrayList<>();<NEW_LINE>items.add(o);<NEW_LINE>if (args[0] != Types....
.get(context, "length"));
1,057,091
protected void projectOpened() {<NEW_LINE>if (WebServicesClientSupport.isBroken(project)) {<NEW_LINE>WebServicesClientSupport.showBrokenAlert(project);<NEW_LINE>}<NEW_LINE>FileObject jaxWsFo = WSUtils.findJaxWsFileObject(project);<NEW_LINE>try {<NEW_LINE>if (jaxWsFo != null && WSUtils.hasClients(jaxWsFo)) {<NEW_LINE>fi...
wsdlFolder = jaxWsClientSupport.getWsdlFolder(false);
155,591
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>Context context = getContext();<NEW_LINE>assert context != null;<NEW_LINE>SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);<NEW_LINE>String profile = sp.getString("profileToEdit", "profileStandard");<NEW_L...
R.xml.preference_profile_standard, false);