idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,062,045
public String tax(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>String column = mField.getColumnName();<NEW_LINE>if (value == null)<NEW_LINE>return "";<NEW_LINE>int C_Charge_ID = 0;<NEW_LINE>if (column.equals("C_Charge_ID"))<NEW_LINE>C_Charge_ID = ((Integer) value).intValue();<N...
getContextAsInt(ctx, WindowNo, "C_Charge_ID");
1,541,582
static void tryVirtualLock() {<NEW_LINE>JNAKernel32Library kernel = JNAKernel32Library.getInstance();<NEW_LINE>Pointer process = null;<NEW_LINE>try {<NEW_LINE>process = kernel.GetCurrentProcess();<NEW_LINE>// By default, Windows limits the number of pages that can be locked.<NEW_LINE>// Thus, we need to first increase ...
JNAKernel32Library.PAGE_GUARD) != JNAKernel32Library.PAGE_GUARD;
646,313
public static void writeTo(CompositeValuesSourceBuilder<?> builder, StreamOutput out) throws IOException {<NEW_LINE>final byte code;<NEW_LINE>if (builder.getClass() == TermsValuesSourceBuilder.class) {<NEW_LINE>code = 0;<NEW_LINE>} else if (builder.getClass() == DateHistogramValuesSourceBuilder.class) {<NEW_LINE>code =...
getClass().getSimpleName());
574,295
private String[] scanFiles(IJavaProject project, String[] javaFiles, List<CachedSymbol> generatedSymbols, SCAN_PASS pass) throws Exception {<NEW_LINE>ASTParser parser = createParser(project, SCAN_PASS<MASK><NEW_LINE>List<String> nextPassFiles = new ArrayList<>();<NEW_LINE>FileASTRequestor requestor = new FileASTRequest...
.ONE.equals(pass));
1,262,135
public static DescribeDBInstancesResponse unmarshall(DescribeDBInstancesResponse describeDBInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeDBInstancesResponse.setRequestId(context.stringValue("DescribeDBInstancesResponse.RequestId"));<NEW_LINE>describeDBInstancesResponse.setCode(context.stringValue("...
(context.stringValue("DescribeDBInstancesResponse.Success"));
1,655,904
private DynaClass searchFile(String classpath, String fileName) throws Exception {<NEW_LINE>DynaClass dynCls = null;<NEW_LINE>String path = fileName.replace('.', File.separatorChar) + ".class";<NEW_LINE>System.out.println("class " + classpath + " file " + path);<NEW_LINE>File f = new File(classpath, path);<NEW_LINE>if ...
DynaClass(f.getPath());
462,111
public static ClefKind guessKind(Shape shape, Double[] measuredPitches, Map<ClefKind, Double> results) {<NEW_LINE>Map<ClefKind, int[]> map = (shape == Shape.FLAT) ? FLAT_PITCHES_MAP : SHARP_PITCHES_MAP;<NEW_LINE>if (results == null) {<NEW_LINE>results = new EnumMap<>(ClefKind.class);<NEW_LINE>}<NEW_LINE>ClefKind bestKi...
ClefKind kind = entry.getKey();
1,499,652
public void selectionChanged(TableRowCore[] selected_rows, TableRowCore[] deselected_rows) {<NEW_LINE>Map<DownloadManager, Set<Integer>> sel_map = new HashMap<>();<NEW_LINE>IdentityHashSet<DownloadManager> unselected_dms = new IdentityHashSet<>();<NEW_LINE>if (managers != null) {<NEW_LINE>unselected_dms.addAll<MASK><NE...
(Arrays.asList(managers));
191,587
public void dumpTo(MemoryW mem) {<NEW_LINE>mem.putLong(OFFSET_VERSION_64, version);<NEW_LINE>boolean areaA = (version & 1L) == 0L;<NEW_LINE>final long offset = HEADER_SIZE;<NEW_LINE>mem.putLong(areaA ? OFFSET_OFFSET_A_64 : OFFSET_OFFSET_B_64, offset);<NEW_LINE>final long size = (long) (cachedList.size() / BLOCK_SIZE) *...
.getQuick(i + 3));
1,112,370
public void errorHandlerEvent(RetrofitError error) {<NEW_LINE>String errorType;<NEW_LINE>String errorDesc;<NEW_LINE>ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);<NEW_LINE>NetworkInfo netinfo = connMgr != null <MASK><NEW_LINE>if (!(netinfo != null && netinfo.isConnec...
? connMgr.getActiveNetworkInfo() : null;
1,249,270
public InputStream pull(final ConsulConfig consulConfig) {<NEW_LINE>if (consul == null) {<NEW_LINE>if (StringUtils.isNoneBlank(consulConfig.getHostAndPorts())) {<NEW_LINE>consul = Consul.builder().withMultipleHostAndPort(buildHostAndPortList(consulConfig.getHostAndPorts()), consulConfig.getBlacklistTimeInMillis()).buil...
LOGGER.debug("consul content {}", content);
1,118,591
// Creates and AudioTrack instance using AudioAttributes and AudioFormat as input.<NEW_LINE>// It allows certain platforms or routing policies to use this information for more<NEW_LINE>// refined volume or routing decisions.<NEW_LINE>@TargetApi(21)<NEW_LINE>private static AudioTrack createAudioTrackOnLollipopOrHigher(i...
Logging.w(TAG, "Unable to use fast mode since requested sample rate is not native");
1,776,530
public void onHUAssigned(final I_M_HU hu, final Object model, final String trxName) {<NEW_LINE>if (!InterfaceWrapperHelper.isInstanceOf(model, I_M_InOutLine.class)) {<NEW_LINE>// does not apply<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_M_InOutLine inoutLine = InterfaceWrapperHelper.create(model, I_M_InOutLine.class)...
ofRepoId(inout.getM_Warehouse_ID());
588,856
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>int primaryColor = themeColorUtils.primaryColor(getContext());<NEW_LINE>user = getArguments().getParcelable(ARG_USER);<NEW_LINE>arbitraryDataProvider = new ArbitraryDataProvider(getContext().getContentResolver());<NEW_LINE>// Inflate the layout for the ...
= getActivity().getLayoutInflater();
495,377
public void xmlWriteOn(FormattedWriter writer) throws IOException {<NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd @ HH:mm:ss.SSS");<NEW_LINE>String timeNow = dateFormat.format(new Date());<NEW_LINE>writer.newLine();<NEW_LINE>writer.startTag(XML_CACHE_LOADER);<NEW_LINE>writer.indent();<NEW_LINE>write...
, Boolean.valueOf(enabled));
1,272,210
static CompactionPlan selectFiles(CompactionKind kind, Tablet tablet, SortedMap<StoredTabletFile, DataFileValue> datafiles, CompactionStrategyConfig csc) {<NEW_LINE>var trsm = tablet.getTabletResources().getTabletServerResourceManager();<NEW_LINE>BlockCache sc = trsm.getSummaryCache();<NEW_LINE>BlockCache ic = trsm.get...
fileLenCache, tablet.getContext());
1,624,843
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String verifier = params[0].getString(PARAM_VERIFIER);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>HttpsURLConnection httpsURLConnection = null;<NEW_LINE>try {<NEW_LINE>String tokenURLString = LINKEDIN_TOKEN + "&code=" + verifier + "&redirect_uri=" + mRed...
+ "&client_id=" + mConsumerKey + "&client_secret=" + mConsumerSecret;
1,553,110
final DescribeReservedDBInstancesResult executeDescribeReservedDBInstances(DescribeReservedDBInstancesRequest describeReservedDBInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedDBInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,320,921
public static DescribeTasksResponse unmarshall(DescribeTasksResponse describeTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTasksResponse.setRequestId(_ctx.stringValue("DescribeTasksResponse.RequestId"));<NEW_LINE>describeTasksResponse.setTotalCount(_ctx.integerValue("DescribeTasksResponse.TotalCount"));<N...
(_ctx.stringValue("DescribeTasksResponse.Code"));
334,222
public ClusterEndpoint unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClusterEndpoint clusterEndpoint = new ClusterEndpoint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken...
String currentParentElement = context.getCurrentParentElement();
422,083
public void stateChanged(ChangeEvent e) {<NEW_LINE>if (e.getSource() == spinnerMinEdgeD) {<NEW_LINE>config.detector.minimumEdgeIntensity = ((Number) spinnerMinEdgeD.getValue()).doubleValue();<NEW_LINE>} else if (e.getSource() == spinnerMinEdgeR) {<NEW_LINE>config.minimumRefineEdgeIntensity = ((Number) spinnerMinEdgeR.g...
getValue()).intValue();
1,768,632
private void initRules() {<NEW_LINE>// Always use the default version for GMS.<NEW_LINE>String version = TddlRuleConfig.NO_VERSION_NAME;<NEW_LINE>VirtualTableRoot virtualTableRoot = new VirtualTableRoot();<NEW_LINE>Map<String, TableRule> virtualTableMap = TreeMaps.caseInsensitiveMap();<NEW_LINE>List<TablesExtRecord> re...
= new HashMap<>(1);
420,204
private void generateSet(final Class target, final Method[] setters) {<NEW_LINE>// setPropertyValues<NEW_LINE>CodeEmitter e = begin_method(Constants.ACC_PUBLIC, SET_PROPERTY_VALUES, null);<NEW_LINE>if (setters.length > 0) {<NEW_LINE>Local index = e.make_local(Type.INT_TYPE);<NEW_LINE>e.push(0);<NEW_LINE>e.store_local(i...
.getMethodInfo(setters[i]);
1,109,934
private static File findPath() {<NEW_LINE>String classResourcePath = WorkPath.class.getName().replaceAll("\\.", "/") + ".class";<NEW_LINE>URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath);<NEW_LINE>if (resource != null) {<NEW_LINE>String urlString = resource.toString();<NEW_LINE>LOGGER.de...
UnexpectedException("Can not locate oap core jar file by url:" + urlString, e);
1,677,928
// creates the unadjusted dates, returning the mutable list<NEW_LINE>private List<LocalDate> generateUnadjustedDates(LocalDate start, LocalDate regStart, LocalDate regEnd, LocalDate end, RollConvention rollConv) {<NEW_LINE>LocalDate overrideStart = overrideStartDate != null <MASK><NEW_LINE>boolean explicitInitStub = !s...
? overrideStartDate.getUnadjusted() : start;
877,494
public OStorageConfigurationImpl load(final OContextConfiguration configuration) throws OSerializationException {<NEW_LINE>lock.acquireWriteLock();<NEW_LINE>try {<NEW_LINE>initConfiguration(configuration);<NEW_LINE>final Path file = storagePath.resolve(NAME);<NEW_LINE>final Path <MASK><NEW_LINE>if (Files.exists(file)) ...
backupFile = storagePath.resolve(BACKUP_NAME);
872,278
/*<NEW_LINE>* postinvoke<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>public void postInvoke(HandleList hl, boolean singleThread) throws CSIException {<NEW_LINE>// take the handle list off the thread context<NEW_LINE>HandleList threadHandleList = (HandleList) threadContext.endContext();<NEW_LINE>// make sure our handle lists match<...
this, tc, "postInvoke", "unexpected - error manipulating connection handles. See any previous errors related to Managed Connection.");
1,834,035
public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLSubselectUnfilteredExpression());<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new EPLSubselectUnfilteredLengthWindow());<NEW_LINE>execs.add(new EPLSubselectUnfilteredAsAfterSubselec...
.add(new EPLSubselectUnfilteredUnlimitedStream());
1,821,599
public boolean dpll(Set<Clause> clauses, List<PropositionSymbol> symbols, Model model) {<NEW_LINE>// if every clause in clauses is true in model then return true<NEW_LINE>if (everyClauseTrue(clauses, model))<NEW_LINE>return true;<NEW_LINE>// if some clause in clauses is false in model then return false<NEW_LINE>if (som...
.union(p, false));
1,005,240
private Map<String, Boolean> deal(SysSite site, String path) {<NEW_LINE>path = path.replace("\\", CommonConstants.SEPARATOR).replace("//", CommonConstants.SEPARATOR);<NEW_LINE>Map<String, Boolean> map = new LinkedHashMap<>();<NEW_LINE>List<FileInfo> list = CmsFileUtils.getFileList(siteComponent.getWebTemplateFilePath<M...
(site, path), null);
991,612
/* Load the bytes of a class, accessible from the parent classloader */<NEW_LINE>private byte[] loadClassBytes(String binaryName) throws ClassNotFoundException {<NEW_LINE>String resourceName = '/' + binaryName.<MASK><NEW_LINE>InputStream stream = J9DDRClassLoader.class.getResourceAsStream(resourceName);<NEW_LINE>if (st...
replace('.', '/') + ".class";
1,588,101
public static <T> void testSimplePersistRetrieveUpdateDelete(EntityManager entityManager, Class<T> entityType, Function<String, T> constructor, Function<T, Long> idGetter, BiConsumer<T, String> setter, Function<T, String> getter) {<NEW_LINE>String initialName = "someName";<NEW_LINE>T persistedEntity = constructor.apply...
, idGetter.apply(persistedEntity));
1,828,522
// End of variables declaration//GEN-END:variables<NEW_LINE>private void loadData() {<NEW_LINE>iconFileReset = false;<NEW_LINE>appTypeName.setText(applicationType.getName() == null || applicationType.getName().isEmpty() ? defaultName : applicationType.getName());<NEW_LINE>appTypeMainClass.setText(applicationType.getMai...
resizeImage(iconImage, 16, 16);
969,908
public Filter unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Filter filter = new Filter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>...
new ArrayList<String>());
1,535,785
public void draw(Bullet b) {<NEW_LINE>float realLength = Damage.findLaserLength(b, length);<NEW_LINE>float fout = Mathf.clamp(b.time > b.lifetime - fadeTime ? 1f - (b.time - (lifetime - fadeTime)) / fadeTime : 1f);<NEW_LINE>float baseLen = realLength * fout;<NEW_LINE>Lines.lineAngle(b.x, b.y, b.rotation(), baseLen);<NE...
rotation(), baseLen * 1.1f);
627,260
static public // }<NEW_LINE>void selectFolder(final Frame parentFrame, final String prompt, final File defaultSelection, final Callback callback) {<NEW_LINE>// EventQueue.invokeLater(new Runnable() {<NEW_LINE>// public void run() {<NEW_LINE>File selectedFile = null;<NEW_LINE>if (System.getProperty("os.name").contains("...
result = fileChooser.showOpenDialog(parentFrame);
1,360,809
public static void toJSON(OutputWriter jsonOutputWriter, StageInstanceModel model, String pipelineName, String pipelineCounter) {<NEW_LINE>jsonOutputWriter.addLinks(linkWriter -> {<NEW_LINE>linkWriter.addLink("self", Routes.Stage.self(pipelineName, pipelineCounter, model.getName(), model.getCounter()));<NEW_LINE>}).add...
"GoCD" : model.getCancelledBy());
1,593,643
/* GRECLIPSE edit<NEW_LINE>@Override<NEW_LINE>public void visitAnnotations(final AnnotatedNode node) {<NEW_LINE>List<AnnotationNode> annotations = node.getAnnotations();<NEW_LINE>if (annotations.isEmpty()) return;<NEW_LINE>Map<String, AnnotationNode> tmpAnnotations = new HashMap<>();<NEW_LINE>for (AnnotationNode an : a...
annTypeClass.getAnnotation(Retention.class);
1,584,963
public MethodDeclaration createCanEqual(EclipseNode type, ASTNode source, List<Annotation> onParam) {<NEW_LINE>int pS = source.sourceStart;<NEW_LINE>int pE = source.sourceEnd;<NEW_LINE>long p = (long) pS << 32 | pE;<NEW_LINE>char[] otherName = "other".toCharArray();<NEW_LINE>MethodDeclaration method = new MethodDeclara...
modifiers = toEclipseModifier(AccessLevel.PROTECTED);
846,004
public PutLifecyclePolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutLifecyclePolicyResult putLifecyclePolicyResult = new PutLifecyclePolicyResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
651,628
private static int compareDimsInRows(RowBasedKey key1, RowBasedKey key2, final List<ColumnType> fieldTypes, int dimStart) {<NEW_LINE>for (int i = dimStart; i < key1.getKey().length; i++) {<NEW_LINE>final int cmp;<NEW_LINE>// sometimes doubles can become floats making the round trip from serde, make sure to coerce them ...
).doubleValue() : null);
1,540,364
private void paintAncestors(DiGraphNode<N, E> root, Color color) {<NEW_LINE>checkState(this.searchQueue.isEmpty());<NEW_LINE>this.searchQueue.addLast(root);<NEW_LINE>while (!this.searchQueue.isEmpty()) {<NEW_LINE>DiGraphNode<N, E> curr <MASK><NEW_LINE>List<? extends DiGraphEdge<N, E>> parentEdges = curr.getInEdges();<N...
= this.searchQueue.removeFirst();
1,821,458
private CommandExecutionResult executeInternal(SequenceDiagram diagram, final RegexResult line0, BlocLines lines) throws NoSuchColorException {<NEW_LINE>final EventWithDeactivate m = diagram.getLastEventWithDeactivate();<NEW_LINE>if (m instanceof AbstractMessage || m instanceof GroupingLeaf) {<NEW_LINE>final NotePositi...
) m).setNote(note);
922,676
public static RowCountEstimatingRowKeyResultSet create(List<ResultSet> delegateResultSets) {<NEW_LINE>List<Row> rowBuffer = new ArrayList<>(SAMPLE_SIZE * delegateResultSets.size());<NEW_LINE>double estimatedRowCount = 0;<NEW_LINE>int seenRowCount = 0;<NEW_LINE>boolean isEstimated = false;<NEW_LINE>for (ResultSet delega...
averageDiff = diffSum / (double) rowCount;
474,316
public void log(final OAuditingOperation operation, final String dbName, OSecurityUser user, final String message) {<NEW_LINE>// If dbName is null, then we submit the log message to the global auditing hook.<NEW_LINE>// Otherwise, we submit it to the hook associated with dbName.<NEW_LINE>if (dbName != null) {<NEW_LINE>...
operation, dbName, user, message);
48,132
void onCallFinished(RPCCall c) {<NEW_LINE>InetSocketAddress addr = c.getRequest().getDestination();<NEW_LINE>RPCState state = c.state();<NEW_LINE>switch(state) {<NEW_LINE>case RESPONDED:<NEW_LINE>map.computeIfPresent(addr, (k, oldEntry) -> {<NEW_LINE>if (oldEntry.failures <= 1)<NEW_LINE>return null;<NEW_LINE>CacheEntry...
.failures = oldEntry.failures + 1;
1,110,122
public void updateStats(IMetaMember member, Map<String, String> attrs) {<NEW_LINE>String fullSignature = member.toString();<NEW_LINE>for (String modifier : MODIFIERS) {<NEW_LINE>if (fullSignature.contains(modifier + S_SPACE)) {<NEW_LINE>String incMethodName = "incCount" + modifier.substring(0, 1).toUpperCase() + modifi...
compileID = attrs.get(ATTR_COMPILE_ID);
1,436,897
private Mono<Response<Void>> runWithResponseAsync(String resourceGroupName, String workflowName, String triggerName, Context context) {<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_L...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
73,376
public void encode(SceneStructureMetric structure, double[] output) {<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < structure.points.size; i++) {<NEW_LINE>SceneStructureCommon.Point p = structure.points.data[i];<NEW_LINE>output[index++] = p.coordinate[0];<NEW_LINE>output[index++] = p.coordinate[1];<NEW_LINE>outp...
+= camera.model.getIntrinsicCount();
1,711,517
public boolean visit(SQLBetweenExpr x) {<NEW_LINE>if (x.isNot()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String begin;<NEW_LINE>if (x.beginExpr instanceof SQLCharExpr) {<NEW_LINE>begin = (String) ((SQLCharExpr) x.beginExpr).getValue();<NEW_LINE>} else if (x.beginExpr instanceof SQLNullExpr) {<NEW_LINE>begin <MASK><...
= x.beginExpr.toString();
1,000,934
private static URI absolutizeRedirect(URI requestUri, String redirectLocation) throws URISyntaxException {<NEW_LINE>// Rules<NEW_LINE>// 1. Given absolute URL use it<NEW_LINE>// 1a. Protocol Relative URL given starting of // we use the protocol from the request<NEW_LINE>// 2. Given Starting Slash prepend public facing ...
redirectLocationUri = URI.create(redirectLocation);
690,310
public void serialize(Page page, JsonGenerator generator, SerializerProvider serializers) throws IOException {<NEW_LINE>generator.writeStartObject();<NEW_LINE>generator.writeObjectField("content", page.getContent());<NEW_LINE>generator.writeNumberField("pages", page.getTotalPages());<NEW_LINE>generator.writeNumberField...
"hasPrevious", page.hasPrevious());
147,764
public static final IRubyObject native_read(ThreadContext context, IRubyObject self, IRubyObject src, IRubyObject dst, IRubyObject rbLength) {<NEW_LINE>if (!(src instanceof RubyIO)) {<NEW_LINE>throw context.runtime.newTypeError("wrong argument (expected IO)");<NEW_LINE>}<NEW_LINE>if (!(dst instanceof AbstractMemory)) {...
context.runtime.newTypeError("wrong argument (expected FFI memory)");
1,391,851
private double computeF_rep(Quadtree.Node node, int i, double[] z, double[] workSpace) {<NEW_LINE>if (node == null || node.N_cell == 0 || node.indx == i)<NEW_LINE>return 0;<NEW_LINE>double x = z[i * 2];<NEW_LINE>double y = z[i * 2 + 1];<NEW_LINE>// double r_cell = node.diagLen();<NEW_LINE>double r_cell = Math.max(node....
+= q_cell_Z_sqrd * (x - mass_x);
217,642
public void marshall(GlobalConfiguration globalConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (globalConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(globalConfiguration.getInit...
globalConfiguration.getOutputLockingMode(), OUTPUTLOCKINGMODE_BINDING);
740,931
private static BiConsumer<SearchRequest, BiConsumer<List<Map<?, ?>>, Exception>> createSearchRunner(Client client, EnrichCache enrichCache) {<NEW_LINE>Client originClient <MASK><NEW_LINE>return (req, handler) -> {<NEW_LINE>// intentionally non-locking for simplicity...it's OK if we re-put the same key/value in the cach...
= new OriginSettingClient(client, ENRICH_ORIGIN);
1,030,902
private String mutinySupportNeeded(CombinedIndexBuildItem indexBuildItem) {<NEW_LINE>Set<DotName> mutinyTypes = new HashSet<>(Arrays.asList(DotName.createSimple("io.smallrye.mutiny.Uni"), DotName.createSimple("io.smallrye.mutiny.Multi"), DotName.createSimple("io.smallrye.mutiny.GroupedMulti")));<NEW_LINE>List<MethodInf...
Type type = methodInfo.returnType();
165,803
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>Activity ctx = getActivity();<NEW_LINE>int themeId = isNightMode(true) ? R.style.OsmandDarkTheme_DarkActionbar : R.style.OsmandLightTheme_DarkActionbar_LightStatusBar;<NEW_LINE>Dialog dialog = new Dialog(ctx, themeId);<NEW_LINE><MASK><NEW_LINE...
Window window = dialog.getWindow();
491,311
private void addDurationAndOverhead() {<NEW_LINE>final JPanel panel = new JPanel();<NEW_LINE>panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));<NEW_LINE>final long displayDuration = System.currentTimeMillis() - start;<NEW_LINE>final JLabel lastCollectDurationLabel = new JLabel(getString("temps_derniere_collecte")...
JLabel("JavaMelody " + Parameters.JAVAMELODY_VERSION);
965,322
public boolean onMethodEntry() {<NEW_LINE>if (skipTraces || isTrivial() || isAlreadyTraced()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isStaticInitializer()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Label skipTraceLabel = new Label();<NEW_LINE>visitInvokeTraceGuardMethod("isEntryEnabled", skipTraceLabel);<N...
.class) }), false);
1,328,733
public DescribeStackEventsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeStackEventsResult describeStackEventsResult = new DescribeStackEventsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta...
XMLEvent xmlEvent = context.nextEvent();
521,009
public void handleMessage(BrowserMessage message) {<NEW_LINE><MASK><NEW_LINE>if (OP_LOAD_VUZE_FILE.equals(opid)) {<NEW_LINE>Map decodedMap = message.getDecodedMap();<NEW_LINE>String content = MapUtils.getMapString(decodedMap, "content", null);<NEW_LINE>if (content == null) {<NEW_LINE>throw new IllegalArgumentException(...
String opid = message.getOperationId();
1,562,344
public Iterator<T> iterator() {<NEW_LINE>PeekingIterator<T> left = Iterators.peekingIterator(a.iterator());<NEW_LINE>PeekingIterator<T> right = Iterators.peekingIterator(b.iterator());<NEW_LINE>return new Iterator<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<NEW_LINE>return left.hasNext<MASK>...
() || right.hasNext();
1,315,122
protected void loadTemplateStyles(String location, Set<String> loadedLocations, Set<String> parentLocations) {<NEW_LINE>if (!parentLocations.add(location)) {<NEW_LINE>throw new JRRuntimeException(EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY_FOUND, new Object[] { location });<NEW_LINE>}<NEW_LINE>if (!loadedLocations.add(lo...
warn("Could not load template from location " + location + "; some styles might remain unresolved.");
1,369,048
public void browse(final Path path) {<NEW_LINE>if (!Objects.equals(path, browsedPath)) {<NEW_LINE>cleanPathMaps();<NEW_LINE>}<NEW_LINE>this.browsedPath = path;<NEW_LINE>threadService.runActionLater(() -> {<NEW_LINE>current<MASK><NEW_LINE>this.treeView = controller.getFileSystemView();<NEW_LINE>if (treeItemChangeListene...
.currentEditor().updatePreviewUrl();
333,947
public Object calculate(Context ctx) {<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf('d') != -1) {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTimeInMillis(System.currentTimeMillis());<NEW_LINE>calendar.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>calendar.set(Calendar.MINUTE, 0);<N...
Time(calendar.getTimeInMillis());
149,424
public void informAlgorithmEnds(VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) {<NEW_LINE>if (out == null)<NEW_LINE>out = new PrintWriter(System.out);<NEW_LINE>try {<NEW_LINE>for (String stratId : strategyMap.keySet()) {<NEW_LINE>StrategyAnalyser.Strategy strategy = strategyMap.get(...
).toString() + "\n");
158,203
public void addConstraints() {<NEW_LINE>final Component comp = getComponent(getStringBounder());<NEW_LINE>final Dimension2D dim = comp.getPreferredDimension(getStringBounder());<NEW_LINE>final double width = dim.getWidth();<NEW_LINE>Real point1 = getPoint1(getStringBounder());<NEW_LINE>Real point2 = getPoint2(getString...
point2.addFixed(level2 * LIVE_DELTA_SIZE);
527,474
private byte[] renderFunction(WasmFunction function) {<NEW_LINE>WasmBinaryWriter code = new WasmBinaryWriter();<NEW_LINE>List<WasmLocal> localVariables = function.getLocalVariables();<NEW_LINE>int parameterCount = Math.min(function.getParameters().size(), localVariables.size());<NEW_LINE>localVariables = localVariables...
localEntries = new ArrayList<>();
378,232
private CompletableFuture<Pair<List<String>, String>> readAll(int limit, String continuationToken, String tableName, OperationContext context) {<NEW_LINE>List<String> taken = new ArrayList<>();<NEW_LINE>AtomicReference<String> token = new AtomicReference<>(continuationToken);<NEW_LINE>AtomicBoolean canContinue = new At...
addAll(result.getValue());
273,122
public static DescribeVerifyResultResponse unmarshall(DescribeVerifyResultResponse describeVerifyResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVerifyResultResponse.setRequestId(_ctx.stringValue("DescribeVerifyResultResponse.RequestId"));<NEW_LINE>describeVerifyResultResponse.setAuthorityComparisionScore(...
= new ArrayList<String>();
1,678,255
private List<Snap> findCandidateSnapsInBBox(double queryLat, double queryLon, BBox queryShape) {<NEW_LINE>EdgeFilter edgeFilter = new DefaultSnapFilter(unwrappedWeighting, inSubnetworkEnc);<NEW_LINE>List<Snap> <MASK><NEW_LINE>IntHashSet seenEdges = new IntHashSet();<NEW_LINE>IntHashSet seenNodes = new IntHashSet();<NEW...
snaps = new ArrayList<>();
1,684,935
public void drawArea(GL2 gl, GLU glu) {<NEW_LINE>if (!stop) {<NEW_LINE>float x = startPosition[0];<NEW_LINE>float y = startPosition[1];<NEW_LINE>float w = rectangle[0] - startPosition[0];<NEW_LINE>float h = rectangle<MASK><NEW_LINE>gl.glMatrixMode(GL2.GL_PROJECTION);<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glLoadIdenti...
[1] - startPosition[1];
493,100
public void showAlert(Bitmap screenshot) {<NEW_LINE>AlertDialog.Builder alertadd = new AlertDialog.Builder(QuizResultActivity.this);<NEW_LINE>LayoutInflater factory = LayoutInflater.from(QuizResultActivity.this);<NEW_LINE>final View view = factory.inflate(<MASK><NEW_LINE>ImageView screenShotImage = view.findViewById(R....
R.layout.image_alert_layout, null);
667,958
public void importRules(final RulesImportExportObject importer, final User user) throws IOException, DotDataException {<NEW_LINE>try {<NEW_LINE>final RulesAPI rulesAPI = APILocator.getRulesAPI();<NEW_LINE>// Saving the rules.<NEW_LINE>for (Rule rule : importer.getRules()) {<NEW_LINE>rule.setParentPermissionable(RulePer...
saveCondition(condition, user, false);
816,875
// Moves a path from any geometry before a given path in the dst_geom<NEW_LINE>// geometry. The path_handle do not change after the operation.<NEW_LINE>// before_path can be -1, then the path is moved to the end of the dst_geom.<NEW_LINE>void movePath(int geom, int before_path, int path_to_move) {<NEW_LINE>if (path_to_...
, getPathCount(geom) + 1);
298,259
protected Collection<Node> initCollection() {<NEW_LINE>Collection<Node> nodesChildren = new ArrayList<>();<NEW_LINE>if (query == null && topQuery == null) {<NEW_LINE>nodesChildren.add(new HelpNode());<NEW_LINE>} else {<NEW_LINE>Query[] children = topQuery != null ? topQuery : query.getChildren();<NEW_LINE>boolean hasPa...
&& query.getPropertiesCount() > 0;
157,668
void advance() {<NEW_LINE>int totalCycleCount = 0;<NEW_LINE>try {<NEW_LINE>// See how many clusters we can read and then make BclData objects for them<NEW_LINE>final int clustersRead = this.streams[0].read(buffer);<NEW_LINE>if (clustersRead == -1)<NEW_LINE>return;<NEW_LINE>final BclData[] bclDatas = new BclData[cluster...
i] = new BclData(outputLengths);
693,579
private void applyToQuery(final AST2BOpContext context, final QueryRoot queryRoot, final QueryHintScope scope, final String name, final String value) {<NEW_LINE>if (false && context.queryHints != null) {<NEW_LINE>context.queryHints.setProperty(name, value);<NEW_LINE>}<NEW_LINE>final Iterator<BOp> itr = BOpUtility.preOr...
final ASTBase t = (ASTBase) op;
369,891
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4,c5".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.allof(v => p00 = 7)");<NEW_LINE>builder.expression(fields[1], "contained.an...
false, true, false, false);
1,269,962
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>return doQuery(null);<NEW_LINE>// MessageManager mm = EngineMessage.get();<NEW_LINE>// throw new RQException("model " + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>Object[] objs = null;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE...
+ mm.getMessage("function.invalidParam"));
503,724
final DeleteTaskResult executeDeleteTask(DeleteTaskRequest deleteTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
960,309
protected static final void traceArrayTransition(ScriptArray oldArray, ScriptArray newArray, long index, Object value) {<NEW_LINE>String access = oldArray.getClass().getSimpleName() + " -> " + newArray.getClass().getSimpleName();<NEW_LINE>Stream<Node> nodeStream = null;<NEW_LINE>List<FrameInstance> <MASK><NEW_LINE>Truf...
stackTrace = new ArrayList<>();
442,584
void readServiceProvider(XMLExtendedStreamReader reader, List<ModelNode> list, PathAddress parentAddr) throws XMLStreamException {<NEW_LINE>String entityId = readRequiredAttribute(reader, Constants.XML.ENTITY_ID);<NEW_LINE>PathAddress addr = PathAddress.pathAddress(parentAddr, PathElement.pathElement(Constants.Model.SE...
parsedElements = new HashSet<>();
1,044,033
private Map<String, String> extractBuildConfigSymbols(File buildConfig) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>try {<NEW_LINE>FileReader fileReader = new FileReader(buildConfig);<NEW_LINE>ArrayList<CompilationUnitTree> trees = new ArrayList<>();<NEW_LINE>JavacPlugin.instance().getHost().getJavaP...
JCTree.JCClassDecl) cls).defs;
564,736
private int addChar(char c) {<NEW_LINE>int oldLength = startChars.length;<NEW_LINE>int i = findSpot(c, 0, oldLength - 1);<NEW_LINE>char[] tmp = startChars.clone();<NEW_LINE>StringTrie[] t = tries.clone();<NEW_LINE>startChars = new char[oldLength + 1];<NEW_LINE>tries <MASK><NEW_LINE>if (i > 0) {<NEW_LINE>System.arraycop...
= new StringTrie[oldLength + 1];
93,508
private Future<JsonObject> execute(RoutingContext rc, GraphQLQuery query) {<NEW_LINE>ExecutionInput.Builder builder = ExecutionInput.newExecutionInput();<NEW_LINE>builder.query(query.getQuery());<NEW_LINE>String operationName = query.getOperationName();<NEW_LINE>if (operationName != null) {<NEW_LINE>builder.operationNa...
Object initialValue = query.getInitialValue();
1,560,742
public static void run(JavaPlatform javaPlatform, FileObject js, boolean debug) throws IOException, UnsupportedOperationException {<NEW_LINE>LifecycleManager.getDefault().saveAll();<NEW_LINE>Map<String, Object> properties = new HashMap<>();<NEW_LINE>properties.put(JavaRunner.PROP_PLATFORM, javaPlatform);<NEW_LINE>final...
put(JavaRunner.PROP_CLASSNAME, JS_SHELL);
328,683
private static String compressImgAndroid(Bitmap bitmap, String filePath, CompressFormat compressFormat) throws IOException {<NEW_LINE><MASK><NEW_LINE>Exception throwing = null;<NEW_LINE>OutputStream output = null;<NEW_LINE>try {<NEW_LINE>Logger.D(TAG, "saving image to: " + filePath);<NEW_LINE>output = getOutputStream(f...
Logger.D(TAG, "compressImgAndroid+");
453,559
public void init(Config.Scope config) {<NEW_LINE>frontChannelHostName = config.get("hostname");<NEW_LINE>if (config.getBoolean("strict", false) && frontChannelHostName == null) {<NEW_LINE>throw new RuntimeException("Strict hostname resolution configured but no hostname was set");<NEW_LINE>}<NEW_LINE>hostnameEnabled = f...
config.getBoolean("strict-https", false);
932,292
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
Utils.getValueFromIdByName(id, "inputs");
605,178
public IO<IterV<char[], A>> f(IterV<char[], A> it) {<NEW_LINE>// use loop instead of recursion because of missing TCO<NEW_LINE>return () -> {<NEW_LINE>IterV<char[], A> i = it;<NEW_LINE>while (!isDone.f(i)) {<NEW_LINE>char[] buffer = new char[DEFAULT_BUFFER_SIZE];<NEW_LINE>final int numRead = r.read(buffer);<NEW_LINE>if...
done, cont)._1();
1,662,683
public FileAsset fromContentlet(final Contentlet con) throws DotStateException {<NEW_LINE>if (con == null || con.getInode() == null) {<NEW_LINE>throw new DotStateException("Contentlet is null");<NEW_LINE>}<NEW_LINE>if (!con.isFileAsset()) {<NEW_LINE>throw new DotStateException("Contentlet : " + con.getInode() + " is no...
this, "Unable to convert contentlet to file asset " + con, e1);
246,194
public void remap(FMLMissingMappingsEvent event) {<NEW_LINE>BCLog.logger.info("Transport|Remap " + System.identityHashCode(event));<NEW_LINE>for (FMLMissingMappingsEvent.MissingMapping mapping : event.getAll()) {<NEW_LINE>String name = mapping.name;<NEW_LINE>BCLog.logger.info(" - " + name);<NEW_LINE>if (mapping....
("item.", ""))));
1,663,586
public SubjectAreaOMASAPIResponse<ReplacementTerm> createReplacementTerm(String serverName, String userId, ReplacementTerm replacementTerm) {<NEW_LINE>String restAPIName = "createReplacementTerm";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>SubjectAreaOMASAPIResp...
response = new SubjectAreaOMASAPIResponse<>();
1,451,026
public Object proxyAround(ProceedingJoinPoint point) {<NEW_LINE>try {<NEW_LINE>MethodSignature ms = (MethodSignature) point.getSignature();<NEW_LINE>Method method = ms.getMethod();<NEW_LINE>DePermissionProxy annotation = method.getAnnotation(DePermissionProxy.class);<NEW_LINE>Object[<MASK><NEW_LINE>if (null == args || ...
] args = point.getArgs();
484,677
// backtracking soln<NEW_LINE>public static boolean solve(int[][] board, int i, int j, boolean[][] rows, boolean[][] cols, boolean[][][] boxes) {<NEW_LINE>if (i == 9)<NEW_LINE>return true;<NEW_LINE>if (board[i][j] == 0) {<NEW_LINE>for (int k = 0; k < 9; k++) {<NEW_LINE>if (rows[k][i] == false && cols[k][j] == false && ...
][j] = k + 1;
113,171
private State convertDeviceValueToOpenHabState(Class<? extends Item> itemType, String data) {<NEW_LINE>State state = UnDefType.UNDEF;<NEW_LINE>try {<NEW_LINE>int index;<NEW_LINE>if (itemType == SwitchItem.class) {<NEW_LINE>index = Integer.parseInt(data);<NEW_LINE>state = index == 0 ? OnOffType.OFF : OnOffType.ON;<NEW_L...
index = Integer.parseInt(data);
787,231
public int compareTo(ResourceDescription o) {<NEW_LINE>if (o.getResourceUsage().size() > resourceUsageByName.size()) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>// TODO need to return zero if two resourceDescription match exactly<NEW_LINE>for (Map.Entry<String, ResourceUsage> entry : o.getResourceUsage().entrySet()) {<NE...
compareTo(entry.getValue());
674,524
public void marshall(Update update, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (update == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(update.getKey(), KEY_BINDING);<NEW_LINE>protocolMarshaller.marshal...
update.getTableName(), TABLENAME_BINDING);