idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
538,736
void register(BeanProp prop, Object value) {<NEW_LINE>BeanProperty bp = new BeanProperty(prop);<NEW_LINE>if (Common.isBean(prop.type))<NEW_LINE>((BaseBean) value).setDomBinding(this);<NEW_LINE>this.prop = bp;<NEW_LINE>if (DDLogFlags.debug) {<NEW_LINE>TraceLogger.put(TraceLogger.DEBUG, TraceLogger.SVC_DD, DDLogFlags.DBG...
this.hashCode() + ")");
486,615
private HashMap deserializePostParam(IExtendedRequest req, byte[] cookieValueBytes, String reqURL) throws IOException, UnsupportedEncodingException, IllegalStateException {<NEW_LINE>HashMap output = null;<NEW_LINE>List<byte[]> data = splitBytes(cookieValueBytes, (byte) '.');<NEW_LINE>int total = data.size();<NEW_LINE>i...
byte[total - OFFSET_DATA][];
545,471
private // with the boundary of Line B.<NEW_LINE>void exteriorAreaBoundaryLine_(int half_edge, int id_a, int id_b, int cluster_index_b) {<NEW_LINE>if (m_matrix[MatrixPredicate.ExteriorBoundary] == 0)<NEW_LINE>return;<NEW_LINE>if (m_topo_graph.getHalfEdgeUserIndex(m_topo_graph.getHalfEdgePrev(m_topo_graph.getHalfEdgeTwi...
m_topo_graph.getClusterUserIndex(cluster, cluster_index_b);
72,334
public List<String> buildRuleShardFunctionStrInner(boolean ignoredShardKey) {<NEW_LINE>String ruleShardFuncionName = getRuleShardFuncionName();<NEW_LINE>long enumStepLen = 1;<NEW_LINE>long enumTime = 0;<NEW_LINE>if (shardType == SHARD_TYPE_DB) {<NEW_LINE>enumTime = dbCount;<NEW_LINE>} else {<NEW_LINE>enumTime = tbCount...
dbCount, tbCountEachDb, shardTypeVal, true);
1,723,093
public static WavHeader readChannel(ReadableByteChannel _in) throws IOException {<NEW_LINE>ByteBuffer buf = ByteBuffer.allocate(128);<NEW_LINE>buf.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>_in.read(buf);<NEW_LINE>if (buf.remaining() > 0)<NEW_LINE>throw new IOException("Incomplete wav header found");<NEW_LINE>buf.flip();...
!"data".equals(fourcc));
136,520
private void updateControls() {<NEW_LINE>this.cancelButton.setEnabled(backend.canCancel());<NEW_LINE>this.pauseButton.setEnabled(backend.canPause() || backend.isPaused());<NEW_LINE>this.pauseButton.setText(backend.getPauseResumeText());<NEW_LINE>this.sendButton.setEnabled(backend.canSend());<NEW_LINE>boolean hasFile = ...
this.setStatusColorForState(ControllerState.UNKNOWN);
626,614
RedisProperties redisProperties(AzureRedisProperties azureRedisProperties, AzureResourceManager azureResourceManager) {<NEW_LINE>String cacheName = azureRedisProperties.getName();<NEW_LINE>String resourceGroup = azureRedisProperties.getResource().getResourceGroup();<NEW_LINE>RedisCache redisCache = azureResourceManager...
() + ":" + port));
749,589
protected void drawPanel(PoseStack poseStack, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) {<NEW_LINE>if (logoPath != null) {<NEW_LINE>RenderSystem.setShader(GameRenderer::getPositionTexShader);<NEW_LINE>RenderSystem.enableBlend();<NEW_LINE>RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);...
poseStack, component, mouseX, mouseY);
942,165
protected void scoreDisparity(final int disparityRange, final boolean leftToRight) {<NEW_LINE>final int[] scores = leftToRight ? scoreLtoR : scoreRtoL;<NEW_LINE>final short[] dataLeft = patchTemplate.data;<NEW_LINE>final <MASK><NEW_LINE>for (int d = 0; d < disparityRange; d++) {<NEW_LINE>int total = 0;<NEW_LINE>int idx...
short[] dataRight = patchCompare.data;
186,790
static void c_1_3_1() throws Exception {<NEW_LINE>OssFileSystem oss = new OssFileSystem(OSS_VERSION, OSS_END_POINT, OSS_BUCKET_NAME, OSS_ACCESS_ID, OSS_ACCESS_KEY);<NEW_LINE>System.out.println(oss.getKind());<NEW_LINE>final String ossDir = OSS_PREFIX_URI + "alink/data/temp/";<NEW_LINE>if (!oss.exists(new Path(ossDir)))...
create(path, WriteMode.OVERWRITE);
1,374,568
String storeFile(String artifactPath, InputStream uploadedFileInputStream, HttpServletRequest request) throws ModelDBException {<NEW_LINE>LOGGER.trace("NFSService - storeFile called");<NEW_LINE>try {<NEW_LINE>var cleanArtifactPath = StringUtils.cleanPath(Objects.requireNonNull(artifactPath));<NEW_LINE>String[] folders ...
"NFSService - storeFile - file stored successfully, target location : {}", destinationFile.getAbsolutePath());
1,372,337
public void layout(List<SortableElement> elements) {<NEW_LINE>Map<String, List<SortableElement>> packages = extractPackages(elements);<NEW_LINE>Map<SortableElement, List<SortableElement>> packList = new TreeMap<SortableElement, List<SortableElement>>();<NEW_LINE>for (Map.Entry<String, List<SortableElement>> entry : pac...
.getElement().getRectangle();
714,240
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>Bundle args = params[0];<NEW_LINE>String userID;<NEW_LINE>try {<NEW_LINE>LinkedInApiClient client = mLinkedInApiClientFactory.createLinkedInApiClient(new LinkedInAccessToken(mSharedPreferences.getString(SAVE_STATE_KEY_OA...
ProfileField.LAST_NAME, ProfileField.PUBLIC_PROFILE_URL);
1,578,188
private static void dispatchUnmatchedResponseListenerTasks(SipServletResponseImpl response, SipAppDesc appDescriptor, int taskNum) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceEntry(null, "dispatchUnmatchedRequestListenerTasks", new Object[] { response, appDescriptor, new Integer(taskNum) });...
append(response.getCallId());
1,807,304
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>View view;<NEW_LINE>switch(viewType) {<NEW_LINE>case TYPE_HEADER_FOLDERS:<NEW_LINE>case TYPE_HEADER_FILES:<NEW_LINE>if (mainFrag.getMainFragmentViewModel() != null && mainFrag.getMainFragmentViewModel().isList()) {<NEW_LINE>vie...
(R.id.apk_icon));
1,460,366
private Mono<Response<Flux<ByteBuffer>>> createCheckpointWithResponseAsync(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_L...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,522,706
private boolean checkSamples(UncertainObject o1, UncertainObject o2) {<NEW_LINE>final SquaredEuclideanDistance distance = SquaredEuclideanDistance.STATIC;<NEW_LINE>// Optimization for discrete objects:<NEW_LINE>if (o1 instanceof DiscreteUncertainObject && o2 instanceof DiscreteUncertainObject) {<NEW_LINE>DiscreteUncert...
double limit = threshold * l1 * l2;
1,546,903
public com.amazonaws.services.iotthingsgraph.model.InternalFailureException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotthingsgraph.model.InternalFailureException internalFailureException = new com.amazonaws.services.iotthingsgraph.model.InternalFailureEx...
JsonToken token = context.getCurrentToken();
82,840
final GetAccountStatusResult executeGetAccountStatus(GetAccountStatusRequest getAccountStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccountStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(getAccountStatusRequest));
1,685,624
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple13Task<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> par(final Task<T1> task1, final Task<T2> task2, final Task<T3> task3, final Task<T4> task4, final Task<T5> task5, final Task<T6> task6, final Task<T7> task7, final Task<T8> task8, f...
ArgumentUtil.requireNotNull(task9, "task9");
961,759
private void initComponents() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setOpaque(false);<NEW_LINE>if (model == null) {<NEW_LINE>add(MessageComponent.notAvailable(), BorderLayout.CENTER);<NEW_LINE>} else if (!model.containsEvent(JFRSnapshotMonitorViewProvider.EventChecker.class)) {<NEW_LINE>// Remove the Java ...
add(area, BorderLayout.CENTER);
828,880
public void exitIftunnel_source(Iftunnel_sourceContext ctx) {<NEW_LINE>if (ctx.IP_ADDRESS() != null) {<NEW_LINE>Ip sourceAddress = toIp(ctx.IP_ADDRESS());<NEW_LINE>for (Interface iface : _currentInterfaces) {<NEW_LINE>iface.getTunnelInitIfNull().setSourceAddress(sourceAddress);<NEW_LINE>}<NEW_LINE>} else if (ctx.iname ...
getTunnelInitIfNull().setSourceInterfaceName(sourceInterfaceName);
1,835,419
public static // <editor-fold defaultstate="collapsed" desc="Copy Operation"><NEW_LINE>void copyProject(final Project project) {<NEW_LINE>final ProgressHandle handle = ProgressHandleFactory.createHandle(NbBundle.getMessage(DefaultProjectOperationsImplementation.class, "LBL_Copy_Project_Handle"));<NEW_LINE>final Project...
getDefault().notifyLater(nd);
223,252
private <T> MultiNodeResult<T> collectResults(Map<NodeExecution, Future<NodeResult<T>>> futures) {<NEW_LINE>boolean done = false;<NEW_LINE>MultiNodeResult<T> result = new MultiNodeResult<>();<NEW_LINE>Map<RedisClusterNode, Throwable> exceptions = new HashMap<>();<NEW_LINE>Set<String> <MASK><NEW_LINE>while (!done) {<NEW...
saveGuard = new HashSet<>();
555,098
private static // we need to only apply disable scanner policy when really changing the page.<NEW_LINE>boolean isControllerURL(String url) {<NEW_LINE>try {<NEW_LINE>Uri uri = Uri.parse(url);<NEW_LINE><MASK><NEW_LINE>if (null == protocol) {<NEW_LINE>protocol = "";<NEW_LINE>}<NEW_LINE>protocol = protocol.toLowerCase();<N...
String protocol = uri.getScheme();
1,370,792
public PartitionReplica[][] arrange(Collection<MemberGroup> memberGroups, InternalPartition[] currentState, Collection<Integer> partitions) {<NEW_LINE>Queue<NodeGroup> groups = createNodeGroups(memberGroups);<NEW_LINE>if (groups.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int partitionCount = currentState.le...
LOGGER.fine("Re-trying partition arrangement. Count: " + tryCount);
139,874
public void buildGenericResponse(Components components, Map<String, Object> findControllerAdvice, Locale locale) {<NEW_LINE>// ControllerAdvice<NEW_LINE>for (Map.Entry<String, Object> entry : findControllerAdvice.entrySet()) {<NEW_LINE>List<Method> methods = new ArrayList<>();<NEW_LINE>Object controllerAdvice = entry.g...
support.AopUtils.getTargetClass(controllerAdvice);
264,146
private String toStringWithSuffix(final String suffix) {<NEW_LINE>StringBuilder toStringBuff = new StringBuilder();<NEW_LINE>toStringBuff.append(" hash=").append(toHexString(getHash())).append(suffix);<NEW_LINE>toStringBuff.append(" parentHash=").append(toHexString(parentHash)).append(suffix);<NEW_LINE>toStringBuff.a...
(number).append(suffix);
1,198,552
protected void initView() {<NEW_LINE>initComponents();<NEW_LINE>// **** set mnemonics<NEW_LINE>jaxpLabel.setDisplayedMnemonic(// NOI18N<NEW_LINE>NbBundle.getMessage(SAXGeneratorVersionPanel.class, "SAXGeneratorVersionPanel.jaxpLabel.mne").// NOI18N<NEW_LINE>charAt(0));<NEW_LINE>versionLabel.setDisplayedMnemonic(// NOI1...
.getJAXPversion() - 1]);
1,174,575
/*<NEW_LINE>*<NEW_LINE>* NOTE that the source, user, and pass parameters are not standard parameters<NEW_LINE>* for the FHIR $evaluate-measure operation<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@Operation(name = ProviderConstants.CQL_EVALUATE_MEASURE, idempotent = true, type = Measure.class)<NEW_LINE>public MeasureReport evalua...
this.libraryResolutionProvider, this.libraryHelper);
1,445,405
boolean isTimeWindowForMovementExceeded() {<NEW_LINE>if (mLastLocation == null) {<NEW_LINE>final long timeWaited = sysClock.currentTimeMillis() - mStartTimeMs;<NEW_LINE>final boolean expired = timeWaited > mPrefMotionChangeTimeWindowMs;<NEW_LINE>AppGlobals.guiLogInfo("No loc., is gps wait exceeded:" + expired + <MASK><...
" (" + timeWaited / 1000.0 + "s)");
1,203,536
private void loadComments(final int page, final boolean isReload) {<NEW_LINE>mView.showLoading();<NEW_LINE>final boolean <MASK><NEW_LINE>HttpObserver<ArrayList<IssueEvent>> httpObserver = new HttpObserver<ArrayList<IssueEvent>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(Throwable error) {<NEW_LINE>mV...
readCacheFirst = page == 1 && !isReload;
99,743
static RoutingBottomMenuController newInstance(@NonNull Activity activity, @NonNull View frame, @Nullable RoutingBottomMenuListener listener) {<NEW_LINE>View altitudeChartFrame = getViewById(activity, frame, R.id.altitude_chart_panel);<NEW_LINE>View transitFrame = getViewById(activity, frame, R.id.transit_panel);<NEW_L...
frame, R.id.altitude_difference);
1,186,391
public void trashNotes(boolean trash) {<NEW_LINE>int selectedNotesSize = getSelectedNotes().size();<NEW_LINE>// Restore is performed immediately, otherwise undo bar is shown<NEW_LINE>if (trash) {<NEW_LINE>trackModifiedNotes(getSelectedNotes());<NEW_LINE>for (Note note : getSelectedNotes()) {<NEW_LINE>listAdapter.remove...
OmniNotes.getAppContext(), note);
769,824
public void refresh() {<NEW_LINE>setDate(DateUtil.yyyymmdd(TimeUtil.getCurrentTime()));<NEW_LINE>collectObj();<NEW_LINE>Integer[] serverIds = serverObjMap.keySet().toArray(new Integer[serverObjMap.size()]);<NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDataComparator());<NEW_LINE>int limit = ...
param.put("objHash", objHashLv);
604,320
private static PointShifts buildShifts(List<Curve> historicalCurves) {<NEW_LINE>PointShiftsBuilder builder = PointShifts.builder(ShiftType.ABSOLUTE);<NEW_LINE>for (int scenarioIndex = 1; scenarioIndex < historicalCurves.size(); scenarioIndex++) {<NEW_LINE>Curve previousCurve = historicalCurves.get(scenarioIndex - 1);<N...
curve = historicalCurves.get(scenarioIndex);
1,699,550
final BatchDescribeSimulationJobResult executeBatchDescribeSimulationJob(BatchDescribeSimulationJobRequest batchDescribeSimulationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDescribeSimulationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
63,493
protected String doIt() throws Exception {<NEW_LINE>//<NEW_LINE>log.fine("SQL = " + sql.toString());<NEW_LINE>// Prepare statement<NEW_LINE>PreparedStatement pstmtInsert = DB.prepareStatement(sql.toString(), get_TrxName());<NEW_LINE>int i = 1;<NEW_LINE>pstmtInsert.setTimestamp<MASK><NEW_LINE>pstmtInsert.setTimestamp(i+...
(i++, getDateTo());
969,339
public static void lightTreeToBuffer(@Nonnull final FlyweightCapableTreeStructure<LighterASTNode> tree, @Nonnull final LighterASTNode node, @Nonnull final Appendable buffer, final int indent, final boolean skipWhiteSpaces) {<NEW_LINE>final IElementType tokenType = node.getTokenType();<NEW_LINE>if (skipWhiteSpaces && to...
repeatSymbol(buffer, ' ', indent);
568,880
public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {<NEW_LINE>// Translate overlay and image<NEW_LINE>float flexibleRange = mFlexibleSpaceImageHeight - mActionBarSize;<NEW_LINE>int minOverlayTransitionY = mActionBarSize - mOverlayView.getHeight();<NEW_LINE>ViewHelper.setTranslationY(mOverla...
ViewHelper.setTranslationY(mFab, fabTranslationY);
121,091
private void messageWithRange(MessageType type, Exception message, String systemId, int oneBasedLine, int oneBasedColumn, int[] start) throws SAXException {<NEW_LINE>if (start != null && !sourceCode.getIsCss()) {<NEW_LINE>oneBasedColumn = oneBasedColumn + start[2];<NEW_LINE>}<NEW_LINE>systemId = batchMode ? systemId : ...
1, oneBasedLine, oneBasedColumn, false);
370,753
private Node createHistoryView(History history) {<NEW_LINE>byte[] data = history.peek();<NEW_LINE>boolean isClass = ClassUtil.isClass(data);<NEW_LINE><MASK><NEW_LINE>BorderPane pane = new BorderPane();<NEW_LINE>// Content<NEW_LINE>int count = history.size() - 1;<NEW_LINE>String sub = count > 0 ? "[" + count + " states]...
String type = isClass ? "class" : "file";
188,668
public DLedgerEntry appendAsLeader(DLedgerEntry entry) {<NEW_LINE>PreConditions.check(memberState.isLeader(), DLedgerResponseCode.NOT_LEADER);<NEW_LINE>PreConditions.check(!isDiskFull, DLedgerResponseCode.DISK_FULL);<NEW_LINE>ByteBuffer dataBuffer = localEntryBuffer.get();<NEW_LINE>ByteBuffer indexBuffer = localIndexBu...
prePos, DLedgerResponseCode.DISK_ERROR, null);
1,058,192
public static String toHexString(byte[] byteSource, int bytes) {<NEW_LINE>StringBuffer result = null;<NEW_LINE>boolean truncated = false;<NEW_LINE>if (byteSource != null) {<NEW_LINE>if (bytes > byteSource.length) {<NEW_LINE>// If the number of bytes to display is larger than the available number of<NEW_LINE>// bytes, t...
>> 4) & 0xf));
1,665,728
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>boolean result = true;<NEW_LINE>boolean doEffect = false;<NEW_LINE>Cost ...
ManaUtil.createManaCost(2, false);
1,040,883
public static QueryHotlineSessionResponse unmarshall(QueryHotlineSessionResponse queryHotlineSessionResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryHotlineSessionResponse.setRequestId(_ctx.stringValue("QueryHotlineSessionResponse.RequestId"));<NEW_LINE>queryHotlineSessionResponse.setMessage<MASK><NEW_LINE>queryHotl...
(_ctx.stringValue("QueryHotlineSessionResponse.Message"));
1,332,416
// 3.299: [Full GC (Metadata GC Threshold) 3.299: [Tenured: 21006K->20933K(21888K), 0.0230475 secs] 29003K->20933K(31680K), [Metapace: 12111K->12111K(12672K)], 0.0231557 secs]<NEW_LINE>public void serialFull80(GCLogTrace trace, String line) {<NEW_LINE>FullGC collection = new FullGC(getClock(), trace.gcCause(), trace.ge...
.add(extractCPUSummary(line));
1,372,048
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName, 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_LIN...
this.client.mergeContext(context);
1,306,449
protected void placeRegUnitIfNeeded(long tick, TraceThread thread, Register reg) throws CodeUnitInsertionException, CancelledException {<NEW_LINE>// NOTE: This is compensating for a TODO in the memory and code managers<NEW_LINE>// TODO: Consider convenience methods TraceThread#getMemorySpace(boolean), etc<NEW_LINE>Trac...
), reg, PointerDataType.dataType);
983,356
Iterator<Entry<E>> entryIterator() {<NEW_LINE>final Iterator<? extends Entry<? extends E>> iterator1 = multiset1.entrySet().iterator();<NEW_LINE>final Iterator<? extends Entry<? extends E>> iterator2 = multiset2<MASK><NEW_LINE>// TODO(lowasser): consider making the entries live views<NEW_LINE>return new AbstractIterato...
.entrySet().iterator();
1,485,472
protected void collectOperations(TemplateOperation ops, Map<String, Object> params) {<NEW_LINE>String name = (<MASK><NEW_LINE>String packageBase = (String) params.get(PROP_PACKAGE_BASE);<NEW_LINE>String sp = (String) params.get(PROP_SUBPROJECTS);<NEW_LINE>Set<SubProject> subProjects = parseSubProjects(sp);<NEW_LINE>par...
String) params.get(PROP_NAME);
1,762,007
protected static List<double[]> calculatePosteriorProbs(final List<double[]> genotypeLikelihoods, final double[] knownAlleleCountsByAllele, final int ploidy, final boolean useFlatPriors) {<NEW_LINE>if (ploidy != 2) {<NEW_LINE>throw new IllegalStateException("Genotype posteriors not yet implemented for ploidy != 2");<NE...
= new double[genotypePriorByAllele.length];
1,141,101
private ReportResult createOutput(final JasperPrint jasperPrint, OutputType outputType) throws JRException, IOException {<NEW_LINE>if (outputType == null) {<NEW_LINE>outputType = DEFAULT_OutputType;<NEW_LINE>}<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>try {<NEW_LINE>if (OutputType.PDF == output...
final ByteArrayOutputStream out = new ByteArrayOutputStream();
1,071,968
public boolean recognizes(String text) {<NEW_LINE>Bag<Integer> allPossibleStates = new Bag<>();<NEW_LINE>DirectedDFS directedDFS <MASK><NEW_LINE>for (int vertex = 0; vertex < digraph.vertices(); vertex++) {<NEW_LINE>if (directedDFS.marked(vertex)) {<NEW_LINE>allPossibleStates.add(vertex);<NEW_LINE>}<NEW_LINE>}<NEW_LINE...
= new DirectedDFS(digraph, 0);
752,624
public static synchronized Map<String, String> classLabelNames() throws Exception {<NEW_LINE>if (classLabelNames != null) {<NEW_LINE>return classLabelNames;<NEW_LINE>}<NEW_LINE>if (dataLocalPath == null)<NEW_LINE>dataLocalPath = DownloaderUtility.PATENTEXAMPLE.Download();<NEW_LINE>String s;<NEW_LINE>try {<NEW_LINE>s = ...
m.put(key, name);
724,641
private int runPython(File pyFile, String[] stmts, String[] scriptPaths) {<NEW_LINE>int exitCode = 0;<NEW_LINE>String stmt = "";<NEW_LINE>try {<NEW_LINE>if (scriptPaths != null) {<NEW_LINE>// TODO implement compile only<NEW_LINE>if (isCompileOnly) {<NEW_LINE>log(lvl, "runPython: running COMPILE_ONLY");<NEW_LINE>interpr...
regex.Pattern.compile("SystemExit: (-?[0-9]+)");
1,326,512
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findAll(java.lang.Class,<NEW_LINE>* java.lang.Object[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... keys) {<NEW_LINE>EntityMetadata entityMetadata = <...
KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass);
24,694
public void marshall(NFSFileShareInfo nFSFileShareInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (nFSFileShareInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(nFSFileShareInfo.getNFSFileShareDefa...
nFSFileShareInfo.getGuessMIMETypeEnabled(), GUESSMIMETYPEENABLED_BINDING);
1,546,532
private void init() {<NEW_LINE>exceptionUnmarshallers<MASK><NEW_LINE>exceptionUnmarshallers.add(new LimitExceededExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidTypeExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());<NEW_LINE>exceptionUnma...
.add(new DisabledOperationExceptionUnmarshaller());
763,245
private void addToProvideMap(Iterable<DependencyInfo> depInfos, Map<String, DependencyInfo> providesMap, boolean isFromDepsFile) {<NEW_LINE>for (DependencyInfo depInfo : depInfos) {<NEW_LINE>List<String> provides = new ArrayList<<MASK><NEW_LINE>// Add a munged symbol to the provides map so that lookups by path requires...
>(depInfo.getProvides());
4,459
private boolean tryStartingUntrustedTransaction(BTChipDongle.BTChipInput[] inputs, int i, TransactionInput currentInput, boolean isSegwit) throws BTChipException {<NEW_LINE>byte[] scriptBytes;<NEW_LINE>if (isSegwit) {<NEW_LINE>scriptBytes = currentInput.getScriptCode();<NEW_LINE>} else {<NEW_LINE>scriptBytes = currentI...
0, i, inputs, scriptBytes);
236,632
SeekableByteChannel open(GcsPath path, GoogleCloudStorageReadOptions readOptions) throws IOException {<NEW_LINE>HashMap<String, String> baseLabels = new HashMap<>();<NEW_LINE>baseLabels.put(MonitoringInfoConstants.Labels.PTRANSFORM, "");<NEW_LINE>baseLabels.put(MonitoringInfoConstants.Labels.SERVICE, "Storage");<NEW_LI...
MonitoringInfoConstants.Labels.METHOD, "GcsGet");
386,767
public static WebTestClientFactory of(Object[] controllersOrConfigurersOrExchangeFilterFunctions) {<NEW_LINE>Map<Boolean, List<Object>> partitionedByConfigurer = Arrays.stream(controllersOrConfigurersOrExchangeFilterFunctions).collect(partitioningBy<MASK><NEW_LINE>List<Object> controllersAndExchangeFunctions = partitio...
(WebTestClientConfigurer.class::isInstance));
1,459,621
private List<ValidationEvent> validateExamples(Model model, OperationShape shape, ExamplesTrait trait) {<NEW_LINE>List<ValidationEvent> <MASK><NEW_LINE>List<ExamplesTrait.Example> examples = trait.getExamples();<NEW_LINE>for (ExamplesTrait.Example example : examples) {<NEW_LINE>model.getShape(shape.getInputShape()).ifP...
events = new ArrayList<>();
1,310,788
final ListRecoveryPointsByBackupVaultResult executeListRecoveryPointsByBackupVault(ListRecoveryPointsByBackupVaultRequest listRecoveryPointsByBackupVaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRecoveryPointsByBackupVaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
118,855
private void disable(boolean isMinimizing) {<NEW_LINE>Logger.D(TAG, "disable()+");<NEW_LINE>if (scanner != null) {<NEW_LINE>try {<NEW_LINE>if (isMinimizing && isEnabled) {<NEW_LINE>hasQueuedEnableTask = true;<NEW_LINE>}<NEW_LINE>if (!isMinimized) {<NEW_LINE>scannerConfig = defaultScannerConfig;<NEW_LINE>if (isEnabled)<...
Logger.D(TAG, "disable()-");
73,524
public synchronized Key generateKey(final String keyAlias) throws KeyNotGeneratedException {<NEW_LINE>try {<NEW_LINE>KeyStore <MASK><NEW_LINE>keyStore.load(null);<NEW_LINE>// If the keystore does not have keys for this alias, generate a new<NEW_LINE>// asymmetric AES/GCM/NoPadding key pair.<NEW_LINE>if (!keyStore.conta...
keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_NAME);
776,631
public boolean apply(Game game, Ability source) {<NEW_LINE>Card evershrikeCard = game.getCard(source.getSourceId());<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null || evershrikeCard == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xAmount = source.getMana...
Zone.BATTLEFIELD, source, game);
1,421,579
public StartJobRunResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartJobRunResult startJobRunResult = new StartJobRunResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
1,844,867
public static <T> Mono<T> from(Publisher<? extends T> source) {<NEW_LINE>// some sources can be considered already assembled monos<NEW_LINE>// all conversion methods (from, fromDirect, wrap) must accommodate for this<NEW_LINE>if (source instanceof Mono) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Mono<T> casted ...
Mono<T>) wrapper.source;
498,612
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context MyTermByTimeout partition by p00 from SupportBean_S0, p10 from SupportBean_S1 terminated by pattern [SupportBean_S0(id<0) or SupportBean_S1(id<0)]", path);<NEW_LINE><MASK>...
env.compileDeploy("@name('s0') context MyTermByTimeout select coalesce(s0.p00, s1.p10) as key, count(*) as cnt from pattern [every (s0=SupportBean_S0 or s1=SupportBean_S1)] output last when terminated", path);
1,651,401
public void close() throws SQLException {<NEW_LINE>TraceComponent tc = getTracer();<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "close", this);<NEW_LINE>// Make sure we only get closed once.<NEW_LINE>synchronized (this) {<NEW_LINE>if (// already closed, just return<NEW_LINE>state == CLOSED) {<NEW_LINE>if (t...
tc, "state --> " + getStateString());
1,621,315
public GetEnvironmentTemplateVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetEnvironmentTemplateVersionResult getEnvironmentTemplateVersionResult = new GetEnvironmentTemplateVersionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
JsonToken token = context.getCurrentToken();
111,351
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", BoxLayout.y());<NEW_LINE>hi.add(new Label("Hi World"));<NEW_LINE>Button btn = new Button("Show Dialog");<NEW_LINE>btn.addActionListener(e -> {<NEW_LINE>Dialog dlg = new Dial...
top, bottom, left, right);
253,049
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.roleId, convLabelName("Role Id"));<NEW_LINE>if (err...
, convLabelName("Row Id"), 64);
1,625,203
private String wsImport(URL wsdlLocation) throws IOException {<NEW_LINE>File classesDir = new File(System.getProperty("java.io.tmpdir"));<NEW_LINE>// create a dumy file to have a unique temporary name for a directory<NEW_LINE>classesDir = File.createTempFile("jax-ws", "tester", classesDir);<NEW_LINE>if (!classesDir.del...
WSToolsObjectFactory tools = WSToolsObjectFactory.newInstance();
82,431
public boolean signalBackgroundJobServerAlive(BackgroundJobServerStatus serverStatus) {<NEW_LINE>try (final Jedis jedis = getJedis()) {<NEW_LINE>final Map<String, String> valueMap = jedis.hgetAll(backgroundJobServerKey(keyPrefix, serverStatus));<NEW_LINE>if (valueMap.isEmpty()) {<NEW_LINE>throw new ServerTimedOutExcept...
parseBoolean(isRunningResponse.get());
154,385
public RecommendationData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecommendationData recommendationData = new RecommendationData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
1,736,780
public void visitReturn(SReturn userReturnNode, SemanticScope semanticScope) {<NEW_LINE>AExpression userValueNode = userReturnNode.getValueNode();<NEW_LINE>if (userValueNode == null) {<NEW_LINE>if (semanticScope.getReturnType() != void.class) {<NEW_LINE>throw userReturnNode.createError(new ClassCastException("cannot ca...
(semanticScope.getReturnType()));
1,025,006
protected void execute(Terminal terminal, OptionSet options, Environment env) throws UserException {<NEW_LINE>if (options.nonOptionArguments().isEmpty() == false) {<NEW_LINE>throw new UserException(ExitCodes.USAGE, "Positional arguments not allowed, found " + options.nonOptionArguments());<NEW_LINE>}<NEW_LINE>if (optio...
CONFIG, e.getMessage());
1,819,809
protected void updateBendPoints(InternalRelationship[] relationshipsToConsider) {<NEW_LINE>for (int i = 0; i < relationshipsToConsider.length; i++) {<NEW_LINE>InternalRelationship relationship = relationshipsToConsider[i];<NEW_LINE>List bendPoints = relationship.getBendPoints();<NEW_LINE>if (bendPoints.size() > 0) {<NE...
BendPoint) bendPoints.get(j);
39,568
public static Map<String, RoleDescriptor> parseRoleDescriptors(Path path, Logger logger, boolean resolvePermission, Settings settings, NamedXContentRegistry xContentRegistry) {<NEW_LINE>if (logger == null) {<NEW_LINE>logger = NoOpLogger.INSTANCE;<NEW_LINE>}<NEW_LINE>Map<String, RoleDescriptor> roles = new HashMap<>();<...
String> roleSegments = roleSegments(path);
1,070,624
public static Instruction createDeclareByte(int b0, int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8, int b9, int b10, int b11, int b12, int b13, int b14, int b15) {<NEW_LINE>Instruction instruction = new Instruction();<NEW_LINE>instruction.setCode(Code.DECLAREBYTE);<NEW_LINE>instruction.setDeclareDataCou...
(14, toByte(b14));
1,343,450
private Clip createClip(Path file, String id) throws IOException, UnsupportedAudioFileException, LineUnavailableException {<NEW_LINE>// getAudioInputStream() also accepts a File or InputStream<NEW_LINE>AudioInputStream ais = AudioSystem.getAudioInputStream(file.toFile());<NEW_LINE>DataLine.Info info = new DataLine.Info...
"]: " + event.getType());
1,255,072
private void singleScope(Scanner scanner, Scope expectedScope, int lineIx, String line, int length, Marker m, ArrayList<Scope> allScopes, ArrayList<Scope> closedScopes, ArrayList<Scope> removedScopes) {<NEW_LINE>Scope s = new Scope(this.mateText, m.pattern.name);<NEW_LINE>s.pattern = m.pattern;<NEW_LINE>s.openMatch = m...
m, lineIx, length, 0);
1,854,707
public void visitPostnet(POSTNETComponent postnet) {<NEW_LINE>POSTNETBean postnetBean = new POSTNETBean();<NEW_LINE>barcodeBean = postnetBean;<NEW_LINE>evaluatePOSTNET(postnet);<NEW_LINE>setBaseAttributes(postnet);<NEW_LINE>if (postnet.getShortBarHeight() != null) {<NEW_LINE>postnetBean.setShortBarHeight(UnitConv.pt2mm...
(postnet.getBaselinePosition()));
265,998
public Map<Long, List<String>> findDuplicates(Object doc) {<NEW_LINE>// duplicate validation<NEW_LINE>// the check on duplicates must be provided on raw data without apply the default label or auto generate the id<NEW_LINE>AtomicLong index = new AtomicLong(-1);<NEW_LINE>return getDocumentCollection(doc).stream().flatMa...
Collectors.toList())));
21,332
protected void runTenantManagementInitializer(InstanceDatasetTemplate template) throws SiteWhereException {<NEW_LINE>SiteWhereAuthentication previous = UserContext.getCurrentUser();<NEW_LINE>UserContext.setContext(getMicroservice().getSystemUser().getAuthentication());<NEW_LINE>try {<NEW_LINE>setTenantBootstrapState(Bo...
new TenantManagementRequestBuilder(getTenantManagement()));
1,795,954
public com.amazonaws.services.certificatemanager.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.certificatemanager.model.ConflictException conflictException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurr...
certificatemanager.model.ConflictException(null);
1,832,082
public static void onceMoreGenerate(long duration, Class<? extends Diagram> type, FileFormat fileFormat) {<NEW_LINE>if (StatsUtils.fullEver == null || StatsUtils.historicalData == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (formatCounterCurrent == null || formatCounterEver == null) {<NEW_LINE>return;<NEW_LINE>}<NE...
generated().save(prefs);
343,500
public static void consumeRecipes(Consumer<FillingRecipe> consumer, IIngredientManager ingredientManager) {<NEW_LINE>Collection<FluidStack> fluidStacks = ingredientManager.getAllIngredients(VanillaTypes.FLUID);<NEW_LINE>for (ItemStack stack : ingredientManager.getAllIngredients(VanillaTypes.ITEM)) {<NEW_LINE>if (stack....
ItemStack copy = stack.copy();
415,257
public Iterable<String> keysWithPrefix(String prefix) {<NEW_LINE>if (prefix == null) {<NEW_LINE>throw new IllegalArgumentException("Prefix cannot be null");<NEW_LINE>}<NEW_LINE>Queue<String> keysWithPrefix = new Queue<>();<NEW_LINE>if (prefix.length() == 1) {<NEW_LINE>char character1 = prefix.charAt(0);<NEW_LINE>// Che...
getAllKeysInTST(character1, NULL_CHAR_INDEX, keysWithPrefix);
1,345,095
public void promote(String targetRepo, ReleaseInfo releaseInfo) {<NEW_LINE>PromotionRequest request = getPromotionRequest(targetRepo);<NEW_LINE>String buildName = releaseInfo.getBuildName();<NEW_LINE><MASK><NEW_LINE>logger.info("Promoting " + buildName + "/" + buildNumber + " to " + request.getTargetRepo());<NEW_LINE>R...
String buildNumber = releaseInfo.getBuildNumber();
1,503,507
void scheduleEntry(ExpiringEntry<K, V> entry) {<NEW_LINE>if (entry == null || entry.scheduled)<NEW_LINE>return;<NEW_LINE>Runnable runnable = null;<NEW_LINE>synchronized (entry) {<NEW_LINE>if (entry.scheduled)<NEW_LINE>return;<NEW_LINE>final WeakReference<ExpiringEntry<K, V>> entryReference = new WeakReference<ExpiringE...
entries.remove(entry.key);
1,017,264
public Object visit(Object context1, FunctionCallExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object ref = expr.getMemberExpression().accept(context, this, strict);<NEW_LINE>Object function = getValue(context, ref);<NEW_LINE>List<Expression<MASK><NEW_LINE>...
> argExprs = expr.getArgumentExpressions();
1,041,254
// ---------------------- visit draw:image<NEW_LINE>@Override<NEW_LINE>protected void visitImage(DrawImageElement ele, String href, byte[] imageStream) {<NEW_LINE>Collection<String> attributes = new ArrayList<String>();<NEW_LINE>// src<NEW_LINE>if (exportImageAsBase64 && imageStream != null) {<NEW_LINE>String mimeType ...
.toArray(StringUtils.EMPTY_STRING_ARRAY));
1,045,580
public static UserTrades adaptToUserTrades(List<CoindealTradeHistory> coindealTradeHistoryList) throws InvalidFormatException {<NEW_LINE>List<UserTrade> userTrades = new ArrayList<>();<NEW_LINE>for (CoindealTradeHistory coindealTradeHistory : coindealTradeHistoryList) {<NEW_LINE>CurrencyPair currencyPair = CurrencyPair...
getCurrencyPairFromString(coindealTradeHistory.getSymbol());
1,586,198
private void removeCompileDependencies(Project prj, FileObject project_xml, final AntBuildExtender ext) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(FileUtil.toFile(project_xml<MASK><NEW_LINE>String line = null;<NEW_LINE>boolean isOldVersion = false;<NEW...
)), StandardCharsets.UTF_8));
382,170
static PwmDateFormat readDateFormatAndTimeZoneParams(final List<String> parameters) throws MacroParseException {<NEW_LINE>final String dateFormatStr;<NEW_LINE>if (parameters.size() > 0 && !parameters.get(0).isEmpty()) {<NEW_LINE>dateFormatStr = parameters.get(0);<NEW_LINE>} else {<NEW_LINE>dateFormatStr = PwmConstants....
dateFormatStr, PwmConstants.DEFAULT_LOCALE, tz);
1,036,635
final UpdateByteMatchSetResult executeUpdateByteMatchSet(UpdateByteMatchSetRequest updateByteMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateByteMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WAF Regional");