idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,709,172
private static Collection<VariableTree> findVarsUsages(final Collection<VariableTree> vars, final List<? extends StatementTree> stms, final CompilationUnitTree cu, final Trees trees) {<NEW_LINE>final Map<Element, VariableTree> elms = new HashMap<Element, VariableTree>();<NEW_LINE>for (VariableTree var : vars) {<NEW_LIN...
.getPath(cu, node));
1,493,027
private static void findSyntacticRelationsFromDependency(List<Mention> orderedMentions) {<NEW_LINE>if (orderedMentions.size() == 0)<NEW_LINE>return;<NEW_LINE>markListMemberRelation(orderedMentions);<NEW_LINE>SemanticGraph dependency = orderedMentions.get(0).enhancedDependency;<NEW_LINE>// apposition<NEW_LINE>Set<Pair<I...
= source.index() - 1;
51,825
void receiveCommand(Item item, Command command, ZWaveNode node, ZWaveThermostatModeCommandClass commandClass, int endpointId, Map<String, String> arguments) {<NEW_LINE>ZWaveCommandConverter<?, ?> converter = this.getCommandConverter(command.getClass());<NEW_LINE>if (converter == null) {<NEW_LINE>logger.warn("NODE {}: N...
getController().sendData(serialMessage);
768,959
protected DatadogReporter createInstance() {<NEW_LINE>final DatadogReporter.Builder reporter = DatadogReporter.forRegistry(getMetricRegistry());<NEW_LINE>final Transport transport;<NEW_LINE>String transportName = getProperty(TRANSPORT);<NEW_LINE>if ("http".equalsIgnoreCase(transportName)) {<NEW_LINE>HttpTransport.Build...
.withPrefix(getProperty(STATSD_PREFIX));
1,850,291
public void walk(String path) throws IOException {<NEW_LINE>File root = new File(path);<NEW_LINE>File[] list = root.listFiles();<NEW_LINE>if (list == null)<NEW_LINE>return;<NEW_LINE>for (File f : list) {<NEW_LINE>if (f.isDirectory()) {<NEW_LINE>walk(f.getAbsolutePath());<NEW_LINE>// System.out.println( "Dir:" + f.getAb...
.getName() + ".docx"));
1,596,152
public void downloadFileViaToken(String token, String range, Boolean genericMimetype, Boolean inline) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'token' is set<NEW_LINE>if (token == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter...
= new ArrayList<Pair>();
1,575,232
private void initializeClassFields() {<NEW_LINE>for (SootField field : sootMethod.getDeclaringClass().getFields()) {<NEW_LINE>if (!field.isStatic()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>for (Tag tag : field.getTags()) {<NEW_LINE>Value value = null;<NEW_LINE>if (tag instanceof DoubleConstantValueTag) {<NEW_LINE>Doub...
StringConstantValueTag) tag).getStringValue();
282,408
public static void main(String[] args) {<NEW_LINE>Connection connection = null;<NEW_LINE>try {<NEW_LINE>// create a database connection<NEW_LINE>connection = DriverManager.getConnection("jdbc:sqlite:sample.db");<NEW_LINE>Statement statement = connection.createStatement();<NEW_LINE>// set timeout to 30 sec.<NEW_LINE>sta...
+ rs.getString("name"));
943,132
/* test */<NEW_LINE>static String createImpliedFileName(@NonNull String original, String extension, boolean underscore) {<NEW_LINE>if (extension == null && !underscore) {<NEW_LINE>// no change<NEW_LINE>return original;<NEW_LINE>}<NEW_LINE>if (!underscore) {<NEW_LINE>return new StringBuilder().append(original).append('....
"" : extension).toString();
176,549
private void createReceivers() {<NEW_LINE>List<CompletableFuture<CoreMessageReceiver>> receiverFutures = partitions.stream().map(TopicPartitionInfo::getFullTopicName).map(queue -> {<NEW_LINE>MessagingFactory factory;<NEW_LINE>try {<NEW_LINE>factory = MessagingFactory<MASK><NEW_LINE>} catch (InterruptedException | Execu...
.createFromConnectionStringBuilder(createConnection(queue));
90,515
static boolean validateCalendarInterval(DateHistogramInterval requestInterval, DateHistogramInterval configInterval) {<NEW_LINE>if (requestInterval == null || configInterval == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// The request must be gte the config. The CALENDAR_ORDERING map values are integers represe...
.getDuration().toMillis();
1,001,407
final GetIdentityPoolConfigurationResult executeGetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest getIdentityPoolConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIdentityPoolConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
659,670
public CrossRegionCopyDeprecateRule unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CrossRegionCopyDeprecateRule crossRegionCopyDeprecateRule = new CrossRegionCopyDeprecateRule();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
int originalDepth = context.getCurrentDepth();
891,516
public TextFieldMapper build(MapperBuilderContext context) {<NEW_LINE>FieldType fieldType = TextParams.buildFieldType(index, store, indexOptions, norms, termVectors);<NEW_LINE>TextFieldType tft = buildFieldType(fieldType, context);<NEW_LINE>SubFieldInfo phraseFieldInfo = buildPhraseInfo(fieldType, tft);<NEW_LINE>SubFie...
buildPrefixInfo(context, fieldType, tft);
612,509
static String writeIpV6(byte[] ipv6) {<NEW_LINE>int pos = 0;<NEW_LINE>char[] buf = RecyclableBuffers.shortStringBuffer();<NEW_LINE>// Compress the longest string of zeros<NEW_LINE>int zeroCompressionIndex = -1;<NEW_LINE>int zeroCompressionLength = -1;<NEW_LINE>int zeroIndex = -1;<NEW_LINE>boolean allZeros = true;<NEW_L...
byte low = ipv6[i++];
1,409,723
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T extends java.lang.Enum<?>> void visitCtEnum(final spoon.reflect.declaration.CtEnum<T> ctEnum) {<NEW_LINE>spoon.reflect.declaration.CtEnum<T> aCtEnum = ctEnum.getFactory().Core().createEnum();<NEW_LINE>this.builder.copy(ctEnum, aCtEnum);<NE...
(ctEnum.getSuperInterfaces()));
1,280,424
public synchronized void acquireReadLock() throws ConcurrencyException {<NEW_LINE>final Thread currentThread = Thread.currentThread();<NEW_LINE>final long whileStartTimeMillis = System.currentTimeMillis();<NEW_LINE>DeferredLockManager lockManager = getDeferredLockManager(currentThread);<NEW_LINE>ReadLockManager readLoc...
waitWasInterrupted(exception.getMessage());
810,538
private boolean handleWRegModification(Instruction instr) {<NEW_LINE><MASK><NEW_LINE>boolean modUnknown = false;<NEW_LINE>if ("CLRW".equals(mnemonic)) {<NEW_LINE>wContext.setValueAt(instr, 0, false);<NEW_LINE>return true;<NEW_LINE>} else if ("MOVLW".equals(mnemonic)) {<NEW_LINE>Scalar s = instr.getScalar(0);<NEW_LINE>i...
String mnemonic = instr.getMnemonicString();
1,720,136
private VaultoroNewOrderResponse placeOrder(String type, CurrencyPair currencyPair, OrderType orderType, BigDecimal amount, BigDecimal price) throws IOException {<NEW_LINE>String baseSymbol = currencyPair.base.getCurrencyCode().toLowerCase();<NEW_LINE>if (orderType == OrderType.BID) {<NEW_LINE>if (price == null) {<NEW_...
apiKey, amount, price, signatureCreator);
146,644
public ServiceOverride mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>Service data = Service.newBuilder().setId(SqlUtil.getString(rs, "pk_show_service")).setName(SqlUtil.getString(rs, "str_name")).setThreadable(rs.getBoolean("b_threadable")).setMinCores(rs.getInt("int_cores_min")).setMaxCores(rs.getInt...
("int_timeout_llu")).build();
1,669,927
public void processCatch(CatchStmtToken result, ListIterator<Token> iterator) {<NEW_LINE>Token next = nextToken(iterator);<NEW_LINE>if (!isOpenedBrace(next, BraceExprToken.Kind.SIMPLE))<NEW_LINE>unexpectedToken(next, "(");<NEW_LINE>List<FulledNameToken> exceptions = new ArrayList<>();<NEW_LINE>do {<NEW_LINE>next = next...
.getRealName((NameToken) next);
1,782,873
public ObjectCursor<Note> queryNotes() {<NEW_LINE>if (!isAdded())<NEW_LINE>return null;<NEW_LINE>NotesActivity notesActivity = (NotesActivity) requireActivity();<NEW_LINE>Query<Note> query = notesActivity.getSelectedTag().query();<NEW_LINE>String searchString = mSearchString;<NEW_LINE>if (hasSearchQuery()) {<NEW_LINE>s...
Note.TITLE_INDEX_NAME, Note.CONTENT_PREVIEW_INDEX_NAME);
595,306
final ListIdentitiesResult executeListIdentities(ListIdentitiesRequest listIdentitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentitiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
178,365
public UpdateAliasesRequest indicesUpdateAliasesRequest(AliasActions aliasActions) {<NEW_LINE>Assert.notNull(aliasActions, "aliasActions must not be null");<NEW_LINE>UpdateAliasesRequest.Builder updateAliasRequestBuilder = new UpdateAliasesRequest.Builder();<NEW_LINE>List<Action> actions = new ArrayList<>();<NEW_LINE>a...
add = (AliasAction.Add) aliasAction;
679,173
public Object toObject() {<NEW_LINE>final HashMap<String, Object> objMap = new HashMap<>();<NEW_LINE>objMap.put("id", this.id);<NEW_LINE>objMap.put("jobSource", this.jobSource);<NEW_LINE>objMap.put("propSource", this.propsSource);<NEW_LINE>objMap.put("jobType", this.type);<NEW_LINE>if (this.embeddedFlowId != null) {<NE...
put("level", this.level);
871,321
private boolean executeCommand0(String itemName, Type command, final RFXComBindingProvider provider, RFXComSerialConnector connector) {<NEW_LINE>String id = provider.getId(itemName);<NEW_LINE>PacketType packetType = provider.getPacketType(itemName);<NEW_LINE>Object subType = provider.getSubType(itemName);<NEW_LINE>RFXC...
valueSelector = provider.getValueSelector(itemName);
1,750,588
public Void isString(final EditorString editor) {<NEW_LINE>final String[] tokens = editor.value.split("=|\\s");<NEW_LINE>final ArrayList<String> components = new ArrayList<>();<NEW_LINE>for (final String token : tokens) {<NEW_LINE>if (!token.isEmpty()) {<NEW_LINE>components.add(token);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if...
(components.get(1));
599,884
// ===========================================================<NEW_LINE>// Methods from SuperClass/Interfaces<NEW_LINE>// ===========================================================<NEW_LINE>@Override<NEW_LINE>public void draw(Canvas c, Projection projection) {<NEW_LINE>final double zoomLevel = projection.getZoomLevel(...
c.translate(offsetX, offsetY);
6,959
protected void run() throws Exception {<NEW_LINE>// Error if not running on Windows<NEW_LINE>if (Platform.CURRENT_PLATFORM.getOperatingSystem() != OperatingSystem.WINDOWS) {<NEW_LINE>popup("Aborting: This script is for use on Windows only.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get appropriate pdb.exe file<NEW_LINE...
Arrays.asList("single file", "directory of files");
626,382
/* Unused by j2objc.<NEW_LINE>public static String toASCIILowerCase(String string) {<NEW_LINE>char[<MASK><NEW_LINE>StringBuilder sb = new StringBuilder(charArray.length);<NEW_LINE>for (int index = 0; index < charArray.length; index++) {<NEW_LINE>if ('A' <= charArray[index] && charArray[index] <= 'Z') {<NEW_LINE>sb.appe...
] charArray = string.toCharArray();
1,717,268
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>listGui.render(matrixStack, mouseX, mouseY, partialTicks);<NEW_LINE>drawCenteredText(matrixStack, client.textRenderer, blockList.getName() + " (" + listGui.getItemCount() + ")", width / 2, 12, 0xffffff);<NEW_LINE>matrixSt...
64, height - 37, black);
1,032,477
public void addDefinition(Block block) {<NEW_LINE>String procedureName = getProcedureNameOrFail(block);<NEW_LINE>String canonicalProcName = mProcedureNameManager.makeCanonical(procedureName);<NEW_LINE>if (mProcedureDefinitions.get(canonicalProcName) == block) {<NEW_LINE>throw new IllegalStateException("Tried to add the...
canonicalProcName = mProcedureNameManager.makeCanonical(procedureName);
928,588
public static TargetInformation parse(final byte[] data) throws MessageParserException {<NEW_LINE>Preconditions.checkNotNull(data, "IE01300: Data argument can not be null");<NEW_LINE>final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>int addressSize = -1;<NEW_LINE>List<RegisterDescrip...
Preconditions.checkNotNull(options, "IE01046: Received invalid target information string (missing options information)");
153,134
private Map<String, ShapeModel> addEmptyInputShapes(Map<String, OperationModel> javaOperationMap) {<NEW_LINE>final Map<String, Operation> operations = serviceModel.getOperations();<NEW_LINE>final Map<String, ShapeModel> emptyInputShapes = new HashMap<String, ShapeModel>();<NEW_LINE>for (Map.Entry<String, Operation> ent...
.getMetadata(), operation));
975,853
public DetectorResult[] detectMulti(Map<DecodeHintType, ?> hints) throws NotFoundException {<NEW_LINE>BitMatrix image = getImage();<NEW_LINE>ResultPointCallback resultPointCallback = hints == null ? null : (ResultPointCallback) hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK);<NEW_LINE>MultiFinderPatternFinder find...
.add(processFinderPatternInfo(info));
322,072
private File generateGPXForRecordings(Set<Recording> selected) {<NEW_LINE>File tmpFile = new File(getActivity(<MASK><NEW_LINE>tmpFile.getParentFile().mkdirs();<NEW_LINE>GPXFile file = new GPXFile(Version.getFullVersion(getMyApplication()));<NEW_LINE>for (Recording r : getRecordingsForGpx(selected)) {<NEW_LINE>if (r != ...
).getCacheDir(), "share/noteLocations.gpx");
1,366,267
public void queueEvent(FacesEvent event) {<NEW_LINE>FacesContext context = getFacesContext();<NEW_LINE>Map<String, String> params = context<MASK><NEW_LINE>if (ComponentUtils.isRequestSource(this, context)) {<NEW_LINE>String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM);<NEW_LINE>String cl...
.getExternalContext().getRequestParameterMap();
867,308
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>// We have to do this every time since these come from the properties file and that can change...<NEW_LINE>final StringBuilder builder = new StringBuilder(256).append(configString);<NEW_LIN...
, MaxScoreLimit.class))));
1,258,220
public Integer[] calculateRange(String beginValue, String endValue) {<NEW_LINE>Integer[] targetPartition = null;<NEW_LINE>try {<NEW_LINE>long startTime = formatter.get().parse(beginValue).getTime();<NEW_LINE>long endTime = formatter.get().parse(endValue).getTime();<NEW_LINE>Calendar now = Calendar.getInstance();<NEW_LI...
long limitDate = nowTime - sLastTime * oneDay;
154,104
// Tests behavior when shutdownNow occurs while invokeAll is submitting and running tasks. Supply a group of 3 tasks to invokeAll.<NEW_LINE>// The first task should complete successfully. The second task waits for the third to start and then shuts down the executor.<NEW_LINE>// Relying on behavior of policy executor th...
.toNanos(5))));
11,318
protected void paintPlainLine(Graphics gfx, int line, int x, int y) {<NEW_LINE>paintHighlight(gfx, line, y);<NEW_LINE>// don't try to draw lines past where they exist in the document<NEW_LINE>// https://github.com/processing/processing/issues/5628<NEW_LINE>if (line < textArea.getLineCount()) {<NEW_LINE>textArea.getLine...
[currentLine.offset + i]);
668,579
public void invoke(List<PdfObject> operands, PdfContentStreamHandler handler, PdfDictionary resources) {<NEW_LINE>PdfObject firstOperand = operands.get(0);<NEW_LINE>String tagName = firstOperand.toString().substring(1).toLowerCase(Locale.ROOT);<NEW_LINE>if ("artifact".equals(tagName) || "placedpdf".equals(tagName) || h...
(alternateText.toString()));
1,640,908
private static void assignSequence(StarlarkThread.Frame fr, List<Expression> lhs, Object x) throws EvalException, InterruptedException {<NEW_LINE>// TODO(adonovan): lock/unlock rhs during iteration so that<NEW_LINE>// assignments fail when the left side aliases the right,<NEW_LINE>// which is a tricky case in Python as...
nrhs = Starlark.len(x);
1,656,708
final CreateStackInstancesResult executeCreateStackInstances(CreateStackInstancesRequest createStackInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStackInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateStackInstances");
30,446
public static PrivTable read(DataInput in) throws IOException {<NEW_LINE>String <MASK><NEW_LINE>if (className.startsWith("org.apache.doris")) {<NEW_LINE>className = className.replaceFirst("org.apache.doris", "com.starrocks");<NEW_LINE>}<NEW_LINE>PrivTable privTable = null;<NEW_LINE>try {<NEW_LINE>Class<? extends PrivTa...
className = Text.readString(in);
1,377,618
private ClassPath[] validatePaths() {<NEW_LINE>ClassPath pmp = processorModulePath.get();<NEW_LINE>if (pmp == null) {<NEW_LINE>pmp = ClassPath.getClassPath(root, JavaClassPathConstants.MODULE_PROCESSOR_PATH);<NEW_LINE>if (pmp != null && processorModulePath.compareAndSet(null, pmp)) {<NEW_LINE>listenOnProcessorPath(pmp,...
ClassPath pp = processorPath.get();
332,119
private void loadNode428() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_Size, new QualifiedName(0, "Size"), new LocalizedText("en", "Size"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV...
(1), 0.0, false);
744,729
//<NEW_LINE>// admin index<NEW_LINE>@GetMapping("/admin")<NEW_LINE>public void adminHome(Model model, @Value("${alfio.version}") String version, HttpServletRequest request, HttpServletResponse response, Principal principal) throws IOException {<NEW_LINE><MASK><NEW_LINE>model.addAttribute("username", principal.getName()...
model.addAttribute("alfioVersion", version);
779,426
public void processImage(int sourceID, long frameID, BufferedImage buffered, ImageBase input) {<NEW_LINE>original = ConvertBufferedImage.checkCopy(buffered, original);<NEW_LINE>GrayF32 gray = (GrayF32) input;<NEW_LINE>GrayF32 featureImg;<NEW_LINE>double processingTime;<NEW_LINE>synchronized (lockAlgorithm) {<NEW_LINE>l...
= (time1 - time0) * 1e-6;
56,196
private CompiledCondition generateExpiryCompiledCondition() {<NEW_LINE>MetaStreamEvent tableMetaStreamEvent = new MetaStreamEvent();<NEW_LINE>tableMetaStreamEvent.setEventType(MetaStreamEvent.EventType.TABLE);<NEW_LINE>TableDefinition matchingTableDefinition = TableDefinition.id(cacheTable.getTableDefinition().getId())...
Compare(leftExpressionForCompare, greaterThanOperator, rightExpressionForCompare);
778,372
private void configure() {<NEW_LINE>final LogManager manager = LogManager.getLogManager();<NEW_LINE>final String className = this.getClass().getName();<NEW_LINE>final String level = manager.getProperty(className + ".level");<NEW_LINE>this.setLevel((level == null) ? Level.INFO : Level.parse(level));<NEW_LINE>final Level...
setLevels(levelStdOut, levelSplit, levelStdErr);
240,576
private void applyConfig(@Nullable Map<String, Object> config) {<NEW_LINE>if (config == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String providerNameString = Objects.toString(config.get("provider"), null);<NEW_LINE>if (providerNameString != null) {<NEW_LINE>providerName = providerNameString;<NEW_LINE>}<NEW_LIN...
scale = Double.parseDouble(scaleString);
960,149
public //<NEW_LINE>ResponseEntity<JsonAttachment> //<NEW_LINE>importMunicipalityInvoiceXML(//<NEW_LINE>@RequestParam("file") @NonNull final MultipartFile xmlInvoiceFile, //<NEW_LINE>@ApiParam(defaultValue = "DONT_UPDATE", value = "This is applied only to the biller; the invoice recipient (municipality) is always create...
GM, billerSyncAdvise, debitorSyncAdvise, productSyncAdvise);
986,659
final DeleteProjectVersionResult executeDeleteProjectVersion(DeleteProjectVersionRequest deleteProjectVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
144,655
static Dictionary load(DataInputStream dis, Args args) throws IOException {<NEW_LINE>Dictionary dict = new Dictionary(args);<NEW_LINE>dict.size_ = dis.readInt();<NEW_LINE>dict.nwords_ = dis.readInt();<NEW_LINE>dict.nlabels_ = dis.readInt();<NEW_LINE>dict.ntokens_ = dis.readLong();<NEW_LINE>dict.pruneidx_size_ = dis.rea...
i).word)] = i;
1,780,182
public static ListenableFuture<FetchedImage> load(Client client, Path.Device device, Path.ResourceData imagePath) {<NEW_LINE>return MoreFutures.transformAsync(client.get(resourceInfo(imagePath), device), value -> {<NEW_LINE>API.ResourceData data = value.getResourceData();<NEW_LINE>API.Texture texture = data.getTexture(...
(texture.getTexture1DArray()));
119,671
public Object call(Hints readOnly, Object... params) throws Throwable {<NEW_LINE>//<NEW_LINE>DataStack cloneStack = new DataStack() {<NEW_LINE><NEW_LINE>{<NEW_LINE>push(new RefLambdaCallStruts(params));<NEW_LINE>}<NEW_LINE>};<NEW_LINE>//<NEW_LINE>InstSequence instSequence = this.instSequence.clone();<NEW_LINE>OpcodesPo...
= new DataHeap(this.dataHeap);
362,979
public void checkParentLimit(long newBytesReserved, String label) throws CircuitBreakingException {<NEW_LINE>long totalUsed = parentUsed(newBytesReserved);<NEW_LINE>long parentLimit = this.parentSettings.getLimit();<NEW_LINE>if (totalUsed > parentLimit) {<NEW_LINE>long breakersTotalUsed = breakers.values().stream().map...
CircuitBreaker::getUsed).sum();
1,438,956
public boolean visit(ClassInstanceCreation node) {<NEW_LINE>if (node.getAnonymousClassDeclaration() != null) {<NEW_LINE>// record anonymous class here instead of overriding visit(AnonymousClassDeclaration<NEW_LINE>// node) because the ClassInstanceCreation still contains the Type node.<NEW_LINE>AnonymousClassDeclaratio...
AccessKind.NONE, DefinitionKind.EXPLICIT);
918,402
public void doTag() throws JspException {<NEW_LINE>if (items == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JspFragment body = getJspBody();<NEW_LINE>if (body == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PageContext pageContext = (PageContext) getJspContext();<NEW_LINE>// create an iterator status if the status att...
), from, count, pageContext);
1,393,099
private static void startAppServers() throws Exception {<NEW_LINE>server.setServerConfigurationFile("JMSContext_ssl.xml");<NEW_LINE>server1.setServerConfigurationFile("TestServer1_ssl.xml");<NEW_LINE>server.startServer("DurableUnShared_Client.log");<NEW_LINE>server1.startServer("DurableUnShared_Server.log");<NEW_LINE>/...
"Server message " + messageId + " not found", waitFor);
345,683
// Converts a TableLayout (two columns, label and value) to a string which can be copied<NEW_LINE>public static String table2Text(TableLayout table) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>for (int i = 0; i < table.getChildCount(); i++) {<NEW_LINE>View v = table.getChildAt(i);<NEW_LINE>if ((v i...
) v).getChildAt(1);
1,559,691
public void testOneShotCallable(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask task = new DBIncrementTask("testOneShotCallable");<NEW_LINE>task.getExecutionProperties().put(ManagedTask.TRANSACTION, ManagedTask.SUSPEND);<NEW_LINE>task.getExecutionProperties().<MASK><NEW_LINE>TaskStatus<Integer> status = sc...
put(PersistentExecutor.TRANSACTION_TIMEOUT, "1010");
1,358,392
public void saveConnection() {<NEW_LINE>final boolean connectionChanged = !database.getConfiguration().getPassword().equals(new String(passwordField.getPassword())) || !database.getConfiguration().getHost().equals(databaseHostField.getText()) || !database.getConfiguration().getName().equals(databaseNameField.getText())...
setUser(databaseUserField.getText());
1,639,627
private static void splitSegment(SplitMetric metric, SplitMetric secondaryMetric, double metricLimit, List<SplitSegment> splitSegments, TrkSegment segment, boolean joinSegments) {<NEW_LINE>double currentMetricEnd = metricLimit;<NEW_LINE>double secondaryMetricEnd = 0;<NEW_LINE>SplitSegment sp = new SplitSegment(segment,...
secondaryMetric.metric(prev, point);
1,151,662
private static List<Note> extractMonophonicMelodyFromPolyphonicNoteList(List<Note> notes) {<NEW_LINE>final List<Note> result = new ArrayList<>();<NEW_LINE>// This contains the set of notes that we should skip because they overlap an earlier note<NEW_LINE>final Set<Note> notesToSkip = new HashSet<>();<NEW_LINE>Note prev...
note, notes, i, notesToSkip);
711,347
private void trySendEscToDialog() {<NEW_LINE>if (isTableUI()) {<NEW_LINE>// let the table decide, don't be preemptive<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// System.err.println("SendEscToDialog");<NEW_LINE>EventObject ev = EventQueue.getCurrentEvent();<NEW_LINE>if (ev instanceof KeyEvent && (((KeyEvent) ev).getKeyCode(...
= getRootPane().getActionMap();
1,118,036
private void tryMapping() {<NEW_LINE>int size = notMapped.size();<NEW_LINE>Iterator<DataWrap<T><MASK><NEW_LINE>while (iter.hasNext()) {<NEW_LINE>DataWrap<T> next = iter.next();<NEW_LINE>if (next.parent == null) {<NEW_LINE>Node<T> n = new Node<T>(next.data);<NEW_LINE>map.put(next.id, n);<NEW_LINE>root.getChildren().add(...
> iter = notMapped.iterator();
127,614
static Symbol<Type>[] parse(Types typeDescriptors, Symbol<Signature> signature, int startIndex) throws ClassFormatError {<NEW_LINE>if ((startIndex > signature.length() - 3) || signature.byteAt(startIndex) != '(') {<NEW_LINE>throw new ClassFormatError("Invalid method signature: " + signature);<NEW_LINE>}<NEW_LINE>final ...
.size() + 1]);
1,580,766
protected JComponent createItemComponent() {<NEW_LINE>myTextLabel = new ErrorLabel() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setText(String text) {<NEW_LINE>super.setText(text);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>myTextLabel.setOpaque(true);<NEW_LINE>myTextLabel.setBorder(JBUI.Borders.empty(1));<NEW_LINE>myInf...
, DEFAULT_HGAP, 1, 1));
733,191
private static ImmutableSortedSet<MethodModel> findAllBenchmarkMethods(BenchmarkClassModel benchmarkClass, Instrument instrument) throws InvalidBenchmarkException {<NEW_LINE>ImmutableSortedSet.Builder<MethodModel> result = ImmutableSortedSet.orderedBy(Ordering.natural().onResultOf(new Function<MethodModel, String>() {<...
overloadedMethodNames, benchmarkClass.simpleName());
1,654,566
private void emitTraps() {<NEW_LINE>Chain<Trap> traps = body.getTraps();<NEW_LINE>SootClass throwable = Scene.v().getSootClass("java.lang.Throwable");<NEW_LINE>Map<LabelNode, Iterator<UnitBox>> handlers = new LinkedHashMap<LabelNode, Iterator<UnitBox>>(tryCatchBlocks.size());<NEW_LINE>for (TryCatchBlockNode tc : tryCat...
cls, start, end, handler);
1,353,654
public PointSensitivityBuilder presentValueSensitivity(CmsPeriod cmsPeriod, RatesProvider provider) {<NEW_LINE>Currency ccy = cmsPeriod.getCurrency();<NEW_LINE>LocalDate valuationDate = provider.getValuationDate();<NEW_LINE>if (valuationDate.isAfter(cmsPeriod.getPaymentDate())) {<NEW_LINE>return PointSensitivityBuilder...
()).get(fixingDate);
579,355
private void traceApiMessage(JsMessage msg, DestinationHandler dest) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "traceApiMessage", new Object[] { msg, dest });<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && UserTrace.tc_mt.isDebugEnabled()) {<NEW_LINE>if (...
String(msg.getApiMessageIdAsBytes());
1,580,981
public static void writeFieldStats(StreamOutput out, ObjectObjectHashMap<String, CollectionStatistics> fieldStatistics) throws IOException {<NEW_LINE>out.writeVInt(fieldStatistics.size());<NEW_LINE>for (ObjectObjectCursor<String, CollectionStatistics> c : fieldStatistics) {<NEW_LINE>out.writeString(c.key);<NEW_LINE>Col...
(statistics.sumDocFreq()));
1,521,812
private void levelDataPrint(String symbName) {<NEW_LINE>// Initial room for 8 symbols with same name<NEW_LINE>Vector<SymbolNode> symbolVect = new Vector<>(8);<NEW_LINE>// Collect in Vector symbols all SymbolNodes in the semNodesTable whose name ==<NEW_LINE>// symbName<NEW_LINE>for (Enumeration<ExploreNode> Enum = semNo...
print("Module: " + "null" + "\n");
679,936
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String automationAccountName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resour...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
181,981
public T visitObjectKeyValue(ObjectKeyValueContext ctx) {<NEW_LINE>TerminalNode fieldKeyTerm = ctx.STRING();<NEW_LINE>String fieldKey = fixString(fieldKeyTerm);<NEW_LINE>StringToken fieldKeyToken = code(new StringToken(fieldKey), fieldKeyTerm);<NEW_LINE>//<NEW_LINE>ObjectVariable objectVariable = (ObjectVariable) this....
.Expr, null), fieldKeyTerm);
1,613,643
private void onSolution(Solver solver, XCSPParser parser) {<NEW_LINE>output.setLength(0);<NEW_LINE>output.append(parser.printSolution(!flatten));<NEW_LINE>if (solver.getObjectiveManager().isOptimization()) {<NEW_LINE>if (level.isLoggable(Level.COMPET) || level.is(Level.RESANA)) {<NEW_LINE>solver.log().printf(java.util....
), solver.getTimeCount());
921,730
public com.amazonaws.services.opsworks.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.opsworks.model.ValidationException validationException = new com.amazonaws.services.opsworks.model.ValidationException(null);<NEW_LINE>int originalDe...
String currentParentElement = context.getCurrentParentElement();
175,493
private Collection<? extends String> considerImageCache(PrimaryStorageAllocationSpec spec, List<LocalStorageHostRefVO> candidateHosts) {<NEW_LINE>List<String> ret = new ArrayList<>();<NEW_LINE>String sql = "select i.actualSize from ImageVO i where i.uuid = :uuid";<NEW_LINE>TypedQuery<Long> sq = dbf.getEntityManager().<...
createQuery(sql, Long.class);
724,986
public com.amazonaws.services.workspaces.model.ResourceCreationFailedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.workspaces.model.ResourceCreationFailedException resourceCreationFailedException = new com.amazonaws.services.workspaces.model.Resource...
JsonToken token = context.getCurrentToken();
226,715
public void handle(GameEvent event) {<NEW_LINE>DebugCommandEvent e = (DebugCommandEvent) event;<NEW_LINE>if (e.getName().equals("chargeShield")) {<NEW_LINE>GameObject cubot = GameServer.INSTANCE.getGameUniverse().getObject<MASK><NEW_LINE>if (cubot != null) {<NEW_LINE>if (cubot instanceof Cubot) {<NEW_LINE>String hp = (...
(e.getObjectId("objectId"));
283,504
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings settings) {<NEW_LINE>if (tileBox.getZoom() >= startZoom) {<NEW_LINE>OsmandApplication app = getApplication();<NEW_LINE>float textScale = getTextScale();<NEW_LINE>float iconSize = getIconSize(app);<NEW_LINE>QuadTree<QuadRect> boundInter...
), o.getLongitude());
1,512,117
protected Map<String, ParameterDescription<?>> computeParameters() {<NEW_LINE>HashMap<String, ParameterDescription<?>> map = new HashMap<String, ParameterDescription<?>>();<NEW_LINE>ParameterDescription<String> address = ParameterDescription.create(String.class, "Address", true, "", "Address", "function address");<NEW_...
map.put("Name", name);
277,520
private static List<LogEntry> logEntry(ILoggingEvent event, String message, org.slf4j.event.Level level, LogEntry logEntry) {<NEW_LINE>Iterable<String> split;<NEW_LINE>if (message == null) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>if (message.length() > MAX_MESSAGE_LENGTH) {<NEW_LINE>split = Splitter.fix...
(MAX_MESSAGE_LENGTH).split(message);
1,585,469
public void testInvocationContextGetConstructor() throws Exception {<NEW_LINE>svLogger.info("Default getConstructor Test");<NEW_LINE>AroundConstructInterceptor.setTestType(TestType.GETCONSTRUCT);<NEW_LINE>AroundConstructManagedBean lookupMB = (AroundConstructManagedBean) new InitialContext().lookup(managedBeanLookup);<...
1, postConstructMB.getPostConstructCount());
556,386
public void prepareLocalIndexData() {<NEW_LINE>if (repartitionPrepareData == null) {<NEW_LINE>repartitionPrepareData = new RepartitionPrepareData();<NEW_LINE>}<NEW_LINE>Map<String, List<String>> localIndexes = new HashMap<>();<NEW_LINE>repartitionPrepareData.setLocalIndexes(localIndexes);<NEW_LINE>final GsiMetaManager....
localIndex = new ArrayList<>();
488,139
public void paintIcon(Component c, Graphics g2, int x, int y) {<NEW_LINE>if (!(c instanceof JMenuItem)) {<NEW_LINE>fallbackIcon.paintIcon(c, g2, x, y);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Graphics2D g = (Graphics2D) g2.create();<NEW_LINE>;<NEW_LINE>g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VAL...
7, 10, sz, 2);
1,640,763
public boolean isHistoryEnabledForActivity(String processDefinitionId, String activityId) {<NEW_LINE><MASK><NEW_LINE>if (isEnableProcessDefinitionHistoryLevel() && processDefinitionId != null) {<NEW_LINE>HistoryLevel processDefinitionLevel = getProcessDefinitionHistoryLevel(processDefinitionId);<NEW_LINE>if (processDef...
HistoryLevel engineHistoryLevel = processEngineConfiguration.getHistoryLevel();
445,859
boolean bind() {<NEW_LINE>if (TextUtils.isEmpty(mPkgName)) {<NEW_LINE>Intent intent = new Intent(Utils.getApp(), ServerService.class);<NEW_LINE>return Utils.getApp().bindService(intent, mConn, Context.BIND_AUTO_CREATE);<NEW_LINE>}<NEW_LINE>if (UtilsBridge.isAppInstalled(mPkgName)) {<NEW_LINE>if (UtilsBridge.isAppRunnin...
= new Intent(mPkgName + ".messenger");
896,006
private List<Match> findAnyCollect(List<Object> pList) {<NEW_LINE>List<Match> mList = new ArrayList<Match>();<NEW_LINE>if (pList == null) {<NEW_LINE>return mList;<NEW_LINE>}<NEW_LINE>Match[] mArray = new Match[pList.size()];<NEW_LINE>SubFindRun[] theSubs = new SubFindRun[pList.size()];<NEW_LINE>int nobj = 0;<NEW_LINE>S...
[nobj]).start();
1,843,805
final ListApiDestinationsResult executeListApiDestinations(ListApiDestinationsRequest listApiDestinationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApiDestinationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
185,346
public static DescribeContactGroupsResponse unmarshall(DescribeContactGroupsResponse describeContactGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeContactGroupsResponse.setRequestId(_ctx.stringValue("DescribeContactGroupsResponse.RequestId"));<NEW_LINE>describeContactGroupsResponse.setSuccess(_ctx.boolean...
+ "].Contacts[" + j + "].ContactId"));
830,598
public Mono<ActionCollectionDTO> update(String id, ActionCollectionDTO actionCollectionDTO) {<NEW_LINE>if (id == null) {<NEW_LINE>return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, FieldName.ID));<NEW_LINE>}<NEW_LINE>Mono<ActionCollection> actionCollectionMono = repository.findById(id, MANAGE_ACTI...
id))).cache();
973,760
// WorkbenchPane overrides -------------------------------------------------<NEW_LINE>@Override<NEW_LINE>protected Toolbar createMainToolbar() {<NEW_LINE>Toolbar toolbar = new <MASK><NEW_LINE>toolbar.addLeftWidget(commands_.loadWorkspace().createToolbarButton());<NEW_LINE>toolbar.addLeftWidget(commands_.saveWorkspace()...
Toolbar(constants_.environmentTab());
1,226,678
void showLogcatMessages() {<NEW_LINE>CheckBox chkLocationsOnly = (CheckBox) rootView.findViewById(R.id.logview_chkLocationsOnly);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (ILoggingEvent message : SessionLogcatAppender.Statuses) {<NEW_LINE>if (message.getMarker() == SessionLogcatAppender.MARKER_LOCA...
.getTimeStamp(), false));
1,175,007
private void generateDirectMovement(final DDOrderMoveSchedule schedule) {<NEW_LINE>//<NEW_LINE>// Make sure DD Order is completed<NEW_LINE>final <MASK><NEW_LINE>if (!skipCompletingDDOrder) {<NEW_LINE>final I_DD_Order ddOrder = getDDOrderById(ddOrderId);<NEW_LINE>ddOrderService.completeDDOrderIfNeeded(ddOrder);<NEW_LINE...
DDOrderId ddOrderId = schedule.getDdOrderId();
248,014
private void tryUpdateData(String monthUrlString, final String regionUrlString) {<NEW_LINE>GetJsonAsyncTask.OnResponseListener<Protocol.TotalChangesByMonthResponse> onResponseListener = new GetJsonAsyncTask.OnResponseListener<Protocol.TotalChangesByMonthResponse>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void on...
.regionBtc * 1000f) + " mBTC");
1,222,024
public void requestPermissions(String[] permissions) {<NEW_LINE>if (component.isService()) {<NEW_LINE>// https://developer.android.com/training/articles/wear-permissions.html<NEW_LINE>// Inspired by PermissionHelper.java from Michael von Glasow:<NEW_LINE>// https://github.com/mvglasow/satstat/blob/master/src/com/vongla...
putExtra(PermissionRequestor.KEY_RESULT_RECEIVER, resultReceiver);