idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
553,532
private AttributeName storeAttribute(final char[] text, final int offset, final int len) {<NEW_LINE>int index = binarySearch(this.templateMode.isCaseSensitive(), this.repositoryNames, text, offset, len);<NEW_LINE>if (index >= 0) {<NEW_LINE>// It was already added while we were waiting for the lock!<NEW_LINE>return <MAS...
this.repository.get(index);
498,129
private void addDirtyData(DatabaseVersion newDatabaseVersion) {<NEW_LINE>Iterator<DatabaseVersion> dirtyDatabaseVersions = localDatabase.getDirtyDatabaseVersions();<NEW_LINE>if (!dirtyDatabaseVersions.hasNext()) {<NEW_LINE>logger.<MASK><NEW_LINE>} else {<NEW_LINE>logger.log(Level.INFO, "Adding DIRTY data to new databas...
log(Level.INFO, "No DIRTY data found in database (no dirty databases); Nothing to do here.");
1,789,483
// API level 31 requires building a NetworkRequest, which in turn requires an asynchronous callback.<NEW_LINE>// Using the deprecated API instead to keep things simple.<NEW_LINE>// https://developer.android.com/reference/android/net/ConnectivityManager#getAllNetworks()<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE...
"detected VPN connection: " + net.toString());
1,447,191
public void run() throws Failure {<NEW_LINE>IGitblit gitblit = getContext().getGitblit();<NEW_LINE>try {<NEW_LINE>String ulc = urlOrId.toLowerCase();<NEW_LINE>if (ulc.startsWith("http://") || ulc.startsWith("https://")) {<NEW_LINE>if (gitblit.installPlugin(urlOrId, !disableChecksum)) {<NEW_LINE>stdout.println(String.fo...
Version system = gitblit.getSystemVersion();
1,119,705
private static List<String> flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties) {<NEW_LINE>assert clazz != null;<NEW_LINE>if (target == null) {<NEW_LINE>return emptyList();<NEW_LINE>}<NEW_LINE>assert clazz.isAssignableFrom(target.getClass());<NEW_LINE>try {<NEW_LI...
).getCanonicalName(), e);
1,449,545
/* private-testing */<NEW_LINE>static boolean safeForPrefixLocalname(String str) {<NEW_LINE>// PN_LOCAL ::= (PN_CHARS_U | ':' | [0-9] | PLX) ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX))?<NEW_LINE>// This code does not consider PLX (which is more than one character).<NEW_LINE>int N = str.length();<NEW_LINE>if...
idx = skip1_PN_CHARS_U_or_digit_or_COLON(str, idx);
156,985
private void add(StreamEvent streamEvent) {<NEW_LINE>StreamEvent existingValue = null;<NEW_LINE>if (primaryKeyData != null) {<NEW_LINE>Object primaryKey = constructPrimaryKey(streamEvent, primaryKeyReferenceHolders);<NEW_LINE>existingValue = primaryKeyData.putIfAbsent(primaryKey, streamEvent);<NEW_LINE>if (existingValu...
.getValue()], values);
1,157,167
public TypeDefinition build(Type type, Class<?> clazz, Map<String, TypeDefinition> typeCache) {<NEW_LINE>if (!(type instanceof ParameterizedType)) {<NEW_LINE>return new TypeDefinition(clazz.getCanonicalName());<NEW_LINE>}<NEW_LINE>ParameterizedType parameterizedType = (ParameterizedType) type;<NEW_LINE>Type[] actualTyp...
build(actualType, rawType, typeCache);
169,639
private org.apache.rocketmq.client.producer.SendCallback sendCallbackConvert(final Message message, final SendCallback sendCallback) {<NEW_LINE>org.apache.rocketmq.client.producer.SendCallback rmqSendCallback = new org.apache.rocketmq.client.producer.SendCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void on...
(CloudEventUtils.convertSendResult(sendResult));
185,915
public DataLakePathClientBuilder endpoint(String endpoint) {<NEW_LINE>// Ensure endpoint provided is dfs endpoint<NEW_LINE>endpoint = DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "dfs", "blob");<NEW_LINE>blobClientBuilder.endpoint(DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "blob", "dfs"));<NEW_LINE>...
parts = BlobUrlParts.parse(url);
564,048
private void startPreview() {<NEW_LINE>// Sanity check. Parts of this code assume it's on this thread. If it has been put into a handle<NEW_LINE>// that's fine just be careful nothing assumes it's on the main looper<NEW_LINE>if (Looper.getMainLooper().getThread() != Thread.currentThread()) {<NEW_LINE>throw new RuntimeE...
Log.i(TAG, "startPreview()");
1,825,130
public static boolean addNode(Properties ctx, String treeType, int Record_ID, String trxName) {<NEW_LINE>// TODO: Check & refactor this<NEW_LINE>// Get Tree<NEW_LINE>int AD_Tree_ID = 0;<NEW_LINE>MClient client = MClient.get(ctx);<NEW_LINE>I_AD_ClientInfo ci = client.getInfo();<NEW_LINE>if (TREETYPE_Activity.equals(tree...
= new MTree_NodeMM(tree, Record_ID);
957,550
public void marshall(CsvClassifier csvClassifier, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (csvClassifier == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getName(), NAME_BINDING);<NEW_L...
csvClassifier.getDelimiter(), DELIMITER_BINDING);
1,240,114
SQLServerEncryptionAlgorithm create(SQLServerSymmetricKey columnEncryptionKey, SQLServerEncryptionType encryptionType, String encryptionAlgorithm) throws SQLServerException {<NEW_LINE>assert (columnEncryptionKey != null);<NEW_LINE>if (encryptionType != SQLServerEncryptionType.Deterministic && encryptionType != SQLServe...
"," + SQLServerEncryptionType.Randomized + "'" };
432,016
public void method(@ParameterAnnotation(position = 0) int p, Library.Class2 p2) throws LibraryException {<NEW_LINE>// javac9 silently uses Objects.<NEW_LINE>boolean unused = Objects.nonNull(p2);<NEW_LINE>Class3 c3 = new Class3();<NEW_LINE>Class4 c4 = c3.field;<NEW_LINE>c3.field = c4;<NEW_LINE>Func<Class5> func = c4::cr...
[0] = new Class10();
1,569,313
// rb_execarg_init<NEW_LINE>private static RubyString execargInit(ThreadContext context, IRubyObject[] argv, boolean accept_shell, ExecArg eargp, boolean allow_exc_opt) {<NEW_LINE>RubyString prog, ret;<NEW_LINE>IRubyObject[] env_opt = { context.nil, context.nil };<NEW_LINE>IRubyObject[][] argv_p = { argv };<NEW_LINE>IR...
context.runtime.newSymbol("exception");
1,209,048
private boolean processUnrecoverableException(final HttpServletRequest req, final HttpServletResponse resp, final PwmDomain pwmDomain, final PwmRequest pwmRequest, final PwmUnrecoverableException e) throws IOException {<NEW_LINE>switch(e.getError()) {<NEW_LINE>case ERROR_DIRECTORY_UNAVAILABLE:<NEW_LINE>LOGGER.fatal(pwm...
"error while marking pre-login url:" + e1.getMessage());
109,716
private static Difference[] parseContextDiff(Reader in) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(in);<NEW_LINE>ArrayList<Difference> diffs = new ArrayList<Difference>();<NEW_LINE>String line = null;<NEW_LINE>do {<NEW_LINE>if (line == null || !DIFFERENCE_DELIMETER.equals(line)) {<NEW_LINE>do ...
CONTEXT_MARK1B.length(), firstInterval);
1,063,565
private Optional<BucketSearchResult> firstItem(final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final LinkedList<PagePathItemUnit> path = new LinkedList<>();<NEW_LINE>long bucketIndex = ROOT_INDEX;<NEW_LINE>OCacheEntry cacheEntry = loadPageForRead(atomicOperation, fileId, bucketIndex, false);<NEW_L...
PagePathItemUnit pagePathItemUnit = path.removeLast();
729,911
private void visitClassesAndCollectReferences(Collection<String> startingClasses, boolean startsFromAdviceClass) {<NEW_LINE>Queue<String> instrumentationQueue = new ArrayDeque<>(startingClasses);<NEW_LINE>boolean isAdviceClass = startsFromAdviceClass;<NEW_LINE>while (!instrumentationQueue.isEmpty()) {<NEW_LINE>String v...
ClassReader reader = new ClassReader(in);
1,716,749
private Map<String, HtmlCounterReport> writeCounters(List<Counter> counters) throws IOException {<NEW_LINE>final Map<String, HtmlCounterReport> counterReportsByCounterName = new HashMap<>();<NEW_LINE>for (final Counter counter : counters) {<NEW_LINE>final HtmlCounterReport htmlCounterReport = writeCounter(counter);<NEW...
getString("confirm_vider_toutes_stats")) + "'>#Reinitialiser_toutes_stats#</a>");
467,341
public void marshall(CopyJob copyJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (copyJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(copyJob.getAccountId(), ACCOUNTID_BINDING);<NEW_LINE>protocolMa...
copyJob.getDestinationRecoveryPointArn(), DESTINATIONRECOVERYPOINTARN_BINDING);
574,487
public void onRestoreRequested(@BookmarkManager.RestoringRequestResult int result, @NonNull String deviceName, long backupTimestampInMs) {<NEW_LINE>LOGGER.d(TAG, "onRestoreRequested, result: " + result + ", deviceName = " + deviceName + ", backupTimestampInMs = " + backupTimestampInMs);<NEW_LINE>Statistics.INSTANCE.tra...
R.string.cancel, mRestoreCancelListener);
1,292,255
// Creates new user index on a geometry. The geometry index allows to store<NEW_LINE>// an integer user value on the geometry.<NEW_LINE>// Until set_geometry_user_index is called for a given geometry, the index<NEW_LINE>// stores -1 for that geometry.<NEW_LINE>int createGeometryUserIndex() {<NEW_LINE>if (m_geometry_ind...
) AttributeStreamBase.createIndexStream(0));
1,737,384
private void showUploadConfirmationDialog(@NonNull FragmentActivity activity, @NonNull String actionButton, @Nullable SelectionModeListener listener) {<NEW_LINE>long[] size = new long[1];<NEW_LINE>List<SelectableItem<GpxInfo>> <MASK><NEW_LINE>for (GpxInfo gpxInfo : selectedItems) {<NEW_LINE>SelectableItem<GpxInfo> item...
items = new ArrayList<>();
899,568
public boolean fileExists(String fileFullPath) throws Exception {<NEW_LINE>DatastoreFile file = new DatastoreFile(fileFullPath);<NEW_LINE>DatastoreFile dirFile = new DatastoreFile(file.getDatastoreName(), file.getDir());<NEW_LINE>HostDatastoreBrowserMO browserMo = getHostDatastoreBrowserMO();<NEW_LINE>s_logger.info("Se...
> info = results.getFile();
1,258,766
public void testContextInfoExactMatchDisableDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_7...
"Test should have found slow request messages", fetchSlowRequestWarningsCount() > 0);
305,449
@GET<NEW_LINE>public String request(@QueryParam("finalizeResponses") List<String> finalizeResponses, @QueryParam("change") boolean change, @QueryParam("index") int index) throws InvalidProtocolBufferException {<NEW_LINE>if (finalizeResponses.size() != Constants.MULTISIG_PARTICIPANTS) {<NEW_LINE>throw new IllegalArgumen...
(addresses.get(0));
341,371
public AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails awsAutoScalingLaunchConfigurationInstanceMonitoringDetails = new AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails...
String currentParentElement = context.getCurrentParentElement();
736,302
public static void main(String[] args) {<NEW_LINE>mLog.debug("Starting");<NEW_LINE>String silence = "BEDDEA821EFD660C08";<NEW_LINE>String[] frames = { "0E46122323067C60F8", "0E469433C1067CF1BC", "0E46122B23067C60F8", "0E67162BE08874E2B4", "0E46163BE1067CF1BC", "0E46122B23067C60F8", "0A06163BE00A5C303E", "0E46122B23067C...
(new short[160]));
1,043,274
public void updateValues() {<NEW_LINE>Port port = getPort();<NEW_LINE>nameField.setText(port.getName());<NEW_LINE>labelField.setText(port.getDisplayLabel());<NEW_LINE>typeField.setText(port.getType());<NEW_LINE>descriptionField.setText(port.getDescription());<NEW_LINE>rangeBox.setSelectedItem(getHumanizedRange<MASK><NE...
(port.getRange()));
629,985
public char[][][] findTypeNames(final String qualifiedPackageName, String moduleName) {<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>// most common case<NEW_LINE>return null;<NEW_LINE>final char[] packageArray = qualifiedPackageName.toCharArray();<NEW_LINE>final ArrayList answers = new ArrayList(...
nextElement()).getName();
30,061
public static void startFragmentInternal(FragmentActivity activity, Fragment fragment, String tag, @Nullable View sharedElement, @Nullable String sharedElementName) {<NEW_LINE>FragmentTransaction transaction = activity.getSupportFragmentManager().beginTransaction();<NEW_LINE>if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPO...
Context context = currentFragment.requireContext();
976,421
private static void tok(List<String> inputFileList, List<String> outputFileList, String charset, Pattern parseInsidePattern, Pattern filterPattern, String options, boolean preserveLines, boolean oneLinePerElement, boolean dump, boolean lowerCase, boolean blankLineAfterFiles) throws IOException {<NEW_LINE>final long sta...
(System.out, charset));
851,929
static Component onCreateLayout(ComponentContext c, @State boolean shouldShowItem) {<NEW_LINE>return Row.create(c).paddingDip(YogaEdge.ALL, 20).child(Row.create(c).heightDip(SIZE_DP).widthDip(SIZE_DP).backgroundColor(Color.RED)).child(shouldShowItem ? // Disappearing items require a transition key and a key<NEW_LINE>Ro...
(c)).build();
372,463
public DoubleMatrix differentiateX0(PiecewisePolynomialResult2D pp, double[] x0Keys, double[] x1Keys) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.isFalse(order0 < 2, "polynomial degree of x0 < 1");<NEW_LINE>DoubleArray knot...
new DoubleMatrix[nKnots0][nKnots1];
904,135
final ListOpsMetadataResult executeListOpsMetadata(ListOpsMetadataRequest listOpsMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOpsMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
654,691
private void handleDeleteSelectedClaims(List<Claim> selectedClaims) {<NEW_LINE>List<String> claimIds = new ArrayList<>();<NEW_LINE>for (Claim claim : selectedClaims) {<NEW_LINE>claimIds.add(claim.getClaimId());<NEW_LINE>}<NEW_LINE>if (actionMode != null) {<NEW_LINE>actionMode.finish();<NEW_LINE>}<NEW_LINE>Helper.setVie...
channels_deleted, successfulClaimIds.size());
478,740
public void beforeConnect(DatabaseConnection dbconn) {<NEW_LINE>if (!dbconn.getDriver().equals("org.apache.derby.jdbc.EmbeddedDriver")) {<NEW_LINE>// NOI18N<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// force the database lock -- useful on Linux, see issue 63957<NEW_LINE>if (System.getProperty(DERBY_DATABASE_FORCE_LOCK) == n...
DERBY_SYSTEM_HOME, derbySystemHome.getAbsolutePath());
1,150,050
public MLDataSet loadCSV(File file) {<NEW_LINE>if (this.analyst == null) {<NEW_LINE>throw new EncogError("Can't normalize yet, file has not been analyzed.");<NEW_LINE>}<NEW_LINE>MLDataSet result = new BasicMLDataSet();<NEW_LINE>int inputCount = this.analyst.determineInputCount();<NEW_LINE>int outputCount = this.analyst...
BasicMLDataPair.createPair(inputCount, outputCount);
933,008
private ProductLookupDescriptor createProductLookupDescriptor(@NonNull final Optional<SOTrx> soTrx) {<NEW_LINE>if (soTrx.orElse(SOTrx.PURCHASE).isSales()) {<NEW_LINE>return ProductLookupDescriptor.builderWithStockInfo().bpartnerParamName(I_C_Order.COLUMNNAME_C_BPartner_ID).pricingDateParamName(I_C_Order.COLUMNNAME_Date...
availableForSalesConfigRepo(availableForSalesConfigRepo).build();
618,735
public void encodeTbody(FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly) throws IOException {<NEW_LINE><MASK><NEW_LINE>String clientId = tt.getClientId(context);<NEW_LINE>boolean empty = (root == null || root.getChildCount() == 0);<NEW_LINE>UIComponent emptyFacet = tt.getFacet("emptyMessage");<NEW_L...
ResponseWriter writer = context.getResponseWriter();
588,923
protected void resolveAnnotations(Scope scope, int location) {<NEW_LINE>Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions();<NEW_LINE>if (this.annotations != null || annotationsOnDimensions != null) {<NEW_LINE>BlockScope resolutionScope = Scope.typeAnnotationsResolutionScope(scope);<NEW_LINE>if (resol...
resolutionScope, annotationsOnDimensions, this.resolvedType);
1,179,985
final DeleteChannelResult executeDeleteChannel(DeleteChannelRequest deleteChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
429,159
private static void runAssertionDynamicProps(RegressionEnvironment env) {<NEW_LINE>String jsonOne = "{\"value\":10}";<NEW_LINE>Object expectedOne = 10;<NEW_LINE>sendAssertDynamicProp(env, jsonOne, "ChildEvent", expectedOne);<NEW_LINE>String jsonTwo = "{\"value\":\"abc\"}";<NEW_LINE>Object expectedTwo = "abc";<NEW_LINE>...
next(), jsonOne, expectedOne);
252,670
private int findToken(int offset, JsTokenId tokenId) {<NEW_LINE>int fileOffset = context.parserResult.getSnapshot().getOriginalOffset(offset);<NEW_LINE>if (fileOffset >= 0) {<NEW_LINE>TokenSequence<? extends JsTokenId> ts = LexUtilities.getPositionedSequence(context.parserResult.getSnapshot(), <MASK><NEW_LINE>if (ts !=...
offset, JsTokenId.javascriptLanguage());
1,270,345
private static ArrayList<ArrayList<String>> findCliqueCover(Graph graph, int bestSize, String tabs) {<NEW_LINE>verboseLog(tabs + "findCliqueCover up to " + bestSize + ", " + graph.toString());<NEW_LINE>for (int i = 0; i < graph.size(); i++) {<NEW_LINE>if (i >= bestSize - 1) {<NEW_LINE>verboseLog(tabs + "giving up");<NE...
singleton = new ArrayList<>();
1,419,726
public Mono<Resource> apply(ServerRequest request) {<NEW_LINE>PathContainer pathContainer = request.requestPath().pathWithinApplication();<NEW_LINE>if (!this.pattern.matches(pathContainer)) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>pathContainer = this.pattern.extractPathWithinPattern(pathContainer);<NEW_LINE...
processPath(pathContainer.value());
1,534,051
private OspfRedistributionPolicy initOspfRedistributionPolicy(Rorri_protocolContext ctx) {<NEW_LINE>if (ctx.BGP() != null) {<NEW_LINE>OspfRedistributionPolicy r = new OspfRedistributionPolicy(RoutingProtocol.BGP);<NEW_LINE>assert ctx.bgp_asn() != null;<NEW_LINE>long as = toAsNum(ctx.bgp_asn());<NEW_LINE>r.getSpecialAtt...
ctx, ctx.eigrp_asn());
1,381,703
public ResultStatus addApp(AppDO appDO, String operator) {<NEW_LINE>try {<NEW_LINE>if (appDao.insert(appDO) < 1) {<NEW_LINE>LOGGER.warn("class=AppServiceImpl||method=addApp||AppDO={}||msg=add fail,{}", appDO, ResultStatus.MYSQL_ERROR.getMessage());<NEW_LINE>return ResultStatus.MYSQL_ERROR;<NEW_LINE>}<NEW_LINE>KafkaUser...
), OperateEnum.ADD, content);
349,608
public Config createConfig() {<NEW_LINE>Config config = super.createConfig();<NEW_LINE>List<CipherSuite> cipherSuites = new LinkedList<>();<NEW_LINE>if (ephemeral) {<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256...
cipherSuites.add(CipherSuite.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA);
304,709
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "sym,avgp".split(",");<NEW_LINE>String epl = "@name('s0') select irstream avg(price) as avgp, sym " + "from SupportPriceEvent#groupwin(sym)#length(2)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportPriceEv...
new SupportPriceEvent(2, "B"));
1,071,167
public ActionResult<WrapBoolean> execute(EffectivePerson effectivePerson, String dateFrom, String dateTo) throws Exception {<NEW_LINE>ActionResult<WrapBoolean> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>if (null == dateFrom || ...
record.setType(DingdingQywxSyncRecord.syncType_dingding);
1,557,512
private static short[] encFF1(BlockCipher cipher, int radix, byte[] T, int n, int u, int v, short[] A, short[] B) {<NEW_LINE>int t = T.length;<NEW_LINE>int b = ((int) Math.ceil(Math.log((double) radix) * (double) v / LOG2) + 7) / 8;<NEW_LINE>int d = (((b + 3) / 4) * 4) + 4;<NEW_LINE>byte[] P = calculateP_FF1(radix, (by...
calculateModUV(bigRadix, u, v);
286,946
public void onNext(T t) {<NEW_LINE>if (terminated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (WIP.get(this) == 0 && WIP.compareAndSet(this, 0, 1)) {<NEW_LINE>Sinks.Many<T> w = window;<NEW_LINE>w.emitNext(t, Sinks.EmitFailureHandler.FAIL_FAST);<NEW_LINE>int c = count + 1;<NEW_LINE>if (c >= maxSize) {<NEW_LINE>producerIn...
, actual.currentContext()));
1,824,695
public void generateEnd(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()) ...
writeSource(" out.write(" + bufferName + ");");
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...
Math.max(0, top);
480,764
public int merge(MergeState mergeState) throws IOException {<NEW_LINE>final MatchingReaders matchingReaders = new MatchingReaders(mergeState);<NEW_LINE>final MergeVisitor[] visitors = new MergeVisitor[mergeState.storedFieldsReaders.length];<NEW_LINE>final List<CompressingStoredFieldsMergeSub> subs = new ArrayList<>(mer...
mergeState, current, fromDocID, toDocID);
388,823
public boolean handleHTTP2UpgradeRequest(Map<String, String> http2Settings) {<NEW_LINE>HttpInboundLink link = isc.getLink();<NEW_LINE>HttpInboundChannel channel = link.getChannel();<NEW_LINE>VirtualConnection vc = link.getVirtualConnection();<NEW_LINE>H2InboundLink h2Link = new H2InboundLink(<MASK><NEW_LINE>boolean upg...
channel, vc, getTCPConnectionContext());
1,295,020
public void requestLocation(Context context, @NonNull LocationCallback callback) {<NEW_LINE>mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);<NEW_LINE>mGMSClient = gmsEnabled(context) ? LocationServices.getFusedLocationProviderClient(context) : null;<NEW_LINE>if (mLocationManager ...
mGMSListener, Looper.getMainLooper());
728,416
public char[] readableName() /*java.lang.Object, p.X<T> */<NEW_LINE>{<NEW_LINE>char[] readableName;<NEW_LINE>if (isAnonymousType()) {<NEW_LINE>readableName = CharOperation.concat(TypeConstants.ANONYM_PREFIX, anonymousOriginalSuperType().readableName(), TypeConstants.ANONYM_SUFFIX);<NEW_LINE>} else if (isMemberType()) ...
(readableName).append('<');
1,399,839
public void run() {<NEW_LINE>long elapsedTimeMillis = System.currentTimeMillis() - timeMillis;<NEW_LINE>long currentNrQueries = nrQueries.get();<NEW_LINE>long nrCurrentQueries = currentNrQueries - lastNrQueries;<NEW_LINE>double throughput = nrCurrentQueries / (elapsedTimeMillis / 1000d);<NEW_LINE>long currentNrDbs = nr...
+ nrUnsuccessfulActions.get()));
1,235,482
public com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionVersionNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionVersionNotFoundException automationDefinitionVersionNotFoun...
String currentParentElement = context.getCurrentParentElement();
1,165,180
public RankProfile clone() {<NEW_LINE>try {<NEW_LINE>RankProfile clone = (RankProfile) super.clone();<NEW_LINE>clone.rankSettings = new LinkedHashSet<>(this.rankSettings);<NEW_LINE>// hmm?<NEW_LINE>clone.matchPhaseSettings = this.matchPhaseSettings;<NEW_LINE>clone.summaryFeatures = summaryFeatures != null ? new LinkedH...
>(this.summaryFeatures) : null;
26,719
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult other) {<NEW_LINE>if (other == cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (memberBuilder_ == null) {<NEW_LINE>if (!other.member_.isEmpty()) {<NEW_LINE>if (member_.isEmpty()...
bitField0_ = (bitField0_ & ~0x00000001);
927,734
public static QueryDomainByInstanceIdResponse unmarshall(QueryDomainByInstanceIdResponse queryDomainByInstanceIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDomainByInstanceIdResponse.setRequestId(_ctx.stringValue("QueryDomainByInstanceIdResponse.RequestId"));<NEW_LINE>queryDomainByInstanceIdResponse.setUserId(_...
(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrationDate"));
631,969
public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext context) {<NEW_LINE>Media media = (Media) obj;<NEW_LINE>writer.addAttribute("pl", String.valueOf(media.player.ordinal()));<NEW_LINE>writer.addAttribute("ul", media.uri);<NEW_LINE>if (media.title != null)<NEW_LINE>writer.addAttribute("tl...
.valueOf(media.width));
1,445,285
private void processEnumMapTiles(DynmapWorld world, MapType map, ImageVariant var, MapStorageTileEnumCB cb, MapStorageBaseTileEnumCB cbBase, MapStorageTileSearchEndCB cbEnd) {<NEW_LINE>Connection c = null;<NEW_LINE>boolean err = false;<NEW_LINE>Integer mapkey = getMapKey(world, map, var);<NEW_LINE>if (mapkey == null) {...
cbBase.tileFound(st, encoding);
1,674,588
protected void run(CompilationContext info, RuleContext context, List<Hint> result) {<NEW_LINE>ELParserResult elResult = (ELParserResult) context.parserResult;<NEW_LINE>for (ELElement each : elResult.getElements()) {<NEW_LINE>if (!each.isValid()) {<NEW_LINE>// broken AST, skip (perhaps could try just plain string searc...
HintFix>emptyList(), 200);
70,973
public String computeSignature(String requestMethod, String targetUrl, Map<String, String> params, @Sensitive String consumerSecret, @Sensitive String tokenSecret) {<NEW_LINE>String signatureBaseString = createSignatureBaseString(requestMethod, targetUrl, params);<NEW_LINE>// Hash the base string using the consumer sec...
signatureBaseString, keyString.toString());
455,463
protected boolean addToHorizontalGroup(final Actor actor, final DragPane dragPane, final Actor directPaneChild) {<NEW_LINE>final Array<Actor<MASK><NEW_LINE>final int indexOfDraggedActor = children.indexOf(actor, true);<NEW_LINE>actor.remove();<NEW_LINE>if (indexOfDraggedActor >= 0) {<NEW_LINE>final int indexOfDirectChi...
> children = dragPane.getChildren();
1,052,048
public void initialize(AssetManager assetManager, Camera camera) {<NEW_LINE>armatureNode.setCamera(camera);<NEW_LINE>Material matJoints = new Material(assetManager, "Common/MatDefs/Misc/Billboard.j3md");<NEW_LINE>Texture t = assetManager.loadTexture("Common/Textures/dot.png");<NEW_LINE>matJoints.setTexture("Texture", t...
matWires.setBoolean("VertexColor", true);
126,061
public void predictions(PredictionsRequest request, StreamObserver<PredictionResponse> responseObserver) {<NEW_LINE>String modelName = request.getModelName();<NEW_LINE>String modelVersion = request.getModelVersion();<NEW_LINE>if (modelName == null || "".equals(modelName)) {<NEW_LINE>BadRequestException e = new BadReque...
InternalServerException e = new InternalServerException(responseMessage);
199,026
private RoutingAlgorithm createAlgo(GraphHopper hopper) {<NEW_LINE>Profile profile = hopper.getProfiles().iterator().next();<NEW_LINE>if (useCH) {<NEW_LINE>RoutingCHGraph chGraph = hopper.getCHGraphs().get(profile.getName());<NEW_LINE>logger.info("CH algo, profile: " + profile.getName());<NEW_LINE>QueryGraph qGraph = Q...
).setAlgorithm(Algorithms.ASTAR_BI);
1,147,904
public void paint(Graphics2D g, Rectangle dirtyArea, ChartContext context) {<NEW_LINE>if (gradient || selection) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < rowsCount; i++) {<NEW_LINE>TimelineChart.Row row = chart.getRow(i);<NEW_LINE>ChartContext rowContext = row.getContext();<NEW_LINE>int y = Utils.checkedInt(rowCo...
int rowsCount = chart.getRowsCount();
1,462,807
public static Bitmap createResizedImage(Context context, Uri imageUri, int newWidth, int newHeight, int quality, int rotation, String mode, boolean onlyScaleDown) throws IOException {<NEW_LINE>Bitmap sourceImage = null;<NEW_LINE>String imageUriScheme = imageUri.getScheme();<NEW_LINE>if (imageUriScheme == null || imageU...
context, imageUri, newWidth, newHeight);
633,891
public CreateBucketResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateBucketResult createBucketResult = new CreateBucketResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>if (context.isSt...
int originalDepth = context.getCurrentDepth();
303,208
public static <V, P extends CalculatorParser<V>> void main(Class<P> parserClass) {<NEW_LINE>CalculatorParser<V> parser = Parboiled.createParser(parserClass);<NEW_LINE>while (true) {<NEW_LINE>System.out.print("Enter a calculators expression (single RETURN to exit)!\n");<NEW_LINE>String input = new Scanner(System.in).nex...
ix = str.indexOf('|');
423,960
protected void configure() {<NEW_LINE>try {<NEW_LINE>ConfigurationManager.loadCascadedPropertiesFromResources("application");<NEW_LINE>} catch (Exception ex) {<NEW_LINE>throw new RuntimeException("Error loading configuration: " + ex.getMessage(), ex);<NEW_LINE>}<NEW_LINE>bind(AbstractConfiguration.class).toInstance(Con...
).to(ZuulSessionContextDecorator.class);
1,406,613
private Map<String, String> discover() throws Exception {<NEW_LINE>if (SystemEnvProperties.VIP_SATURN_CONSOLE_URI_LIST.isEmpty()) {<NEW_LINE>throw new Exception("Please configure the parameter " + SystemEnvProperties.NAME_VIP_SATURN_CONSOLE_URI + " with env or -D");<NEW_LINE>}<NEW_LINE>int size = SystemEnvProperties.VI...
ExecutorEvent.INIT, "Fail to close httpclient", e);
914,739
public void onRefresh() {<NEW_LINE>if (this.swipeRefreshBlocker > System.currentTimeMillis() || this.initMode || this.progressIndicator == null || this.progressIndicator.getVisibility() == View.VISIBLE) {<NEW_LINE>this.swipeRefreshLayout.setRefreshing(false);<NEW_LINE>// Do not double scan<NEW_LINE>return;<NEW_LINE>}<N...
}, "Repo update thread").start();
357,875
public WhileStatementNode transform(WhileStatementNode whileStatementNode) {<NEW_LINE>boolean hasOnFailClause = whileStatementNode.onFailClause().isPresent();<NEW_LINE>Token whileKeyword = formatToken(whileStatementNode.whileKeyword(), 1, 0);<NEW_LINE>ExpressionNode condition = formatNode(whileStatementNode.condition()...
env.trailingWS, env.trailingNL);
1,793,236
public static void fuzzerInitialize() {<NEW_LINE>// Install a logger that constructs the log message, but never prints it.<NEW_LINE>// This noticeably increases the fuzzing performance<NEW_LINE>DefaultConfigurationBuilder configBuilder = new DefaultConfigurationBuilder();<NEW_LINE>configBuilder.setPackages(FuzzingAppen...
).setLevel(Level.OFF);
263,835
// / Extract unsatisfiable core example<NEW_LINE>public void unsatCoreAndProofExample(Context ctx) {<NEW_LINE>System.out.println("UnsatCoreAndProofExample");<NEW_LINE>Log.append("UnsatCoreAndProofExample");<NEW_LINE>Solver solver = ctx.mkSolver();<NEW_LINE>BoolExpr pa = ctx.mkBoolConst("PredA");<NEW_LINE>BoolExpr <MASK...
pb = ctx.mkBoolConst("PredB");
1,048,672
private static void logMessageReceived(List<String> headerLines, String content, SocketAddress remote, RendererConfiguration renderer) {<NEW_LINE>StringBuilder header = new StringBuilder();<NEW_LINE>String soapAction = null;<NEW_LINE>if (headerLines != null) {<NEW_LINE>if (!headerLines.isEmpty()) {<NEW_LINE>header.appe...
replace("\n", "\n ") + "\n";
1,636,261
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = DataBindingUtil.setContentView(<MASK><NEW_LINE>prefs = Prefs.get(this);<NEW_LINE>gray = ContextCompat.getColor(this, R.color.background);<NEW_LINE>betweenPadding = getResources().getDimensionPixelSize(R....
this, R.layout.activity_main);
218,436
public void mapPartition(Iterable<Row> values, Collector<Row> out) {<NEW_LINE>Params meta = null;<NEW_LINE>BaseLSH lsh = (BaseLSH) getRuntimeContext().getBroadcastVariable("lsh").get(0);<NEW_LINE>if (getRuntimeContext().getIndexOfThisSubtask() == 0) {<NEW_LINE>meta = params;<NEW_LINE>if (lsh instanceof BucketRandomProj...
PROJECTION_WIDTH, brpLsh.getProjectionWidth());
713,629
// findBPartner<NEW_LINE>@Override<NEW_LINE>public void refreshPanel() {<NEW_LINE>logger.fine("RefreshPanel");<NEW_LINE>if (!posPanel.hasOrder()) {<NEW_LINE>// Document Info<NEW_LINE>totalTitle.setTitle(Msg.getMsg(Env.getCtx(), "Totals"));<NEW_LINE>fieldSalesRep.setText(posPanel.getSalesRepName());<NEW_LINE>fieldDocume...
.getCtx(), "Order"));
1,074,107
private <R> R request(String urlSuffix, Http method, Format format, Object jsonValue) {<NEW_LINE>jsonValue = Json.toBindings(jsonValue);<NEW_LINE>urlSuffix = appendParams(urlSuffix);<NEW_LINE>Endpoint endpoint = urlSuffix != null ? _endpoint.withUrlSuffix(urlSuffix) : _endpoint;<NEW_LINE>Object result = null;<NEW_LINE>...
), jsonValue, _headers, _timeout);
945,496
public ResponseEntity<Void> deleteUserWithHttpInfo(String username) throws RestClientException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required paramet...
accept, contentType, authNames, returnType);
1,771,562
private void parseScenes(final Element e, final Metadata md) {<NEW_LINE>final Element scenesElement = e.getChild("scenes", getNS());<NEW_LINE>if (scenesElement != null) {<NEW_LINE>final List<Element> sceneElements = scenesElement.getChildren("scene", getNS());<NEW_LINE>final Scene[] scenes = new Scene[sceneElements.siz...
setStartTime(new Time(sceneStartTime));
906,525
final DescribeEndpointsResult executeDescribeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeEndpointsReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,457,474
public void run(RegressionEnvironment env) {<NEW_LINE>String startTime = "2002-05-30T09:00:00.000";<NEW_LINE>env.advanceTime(DateTime.parseDefaultMSec(startTime));<NEW_LINE>String[] fields = "val0,val1,val2,val3,val4,val5,val6,val7,val8,val9,val10,val11".split(",");<NEW_LINE>String eplFragment = "@name('s0') select " +...
.concatenateArray(expectedPlus, expectedMinus));
503,119
protected void sendContextClickEvent(MouseEventDetails details, EventTarget eventTarget) {<NEW_LINE>if (!Element.is(eventTarget)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element <MASK><NEW_LINE>Section section;<NEW_LINE>String colKey = null;<NEW_LINE>String rowKey = null;<NEW_LINE>if (getWidget().tFoot.getElement().isOr...
e = Element.as(eventTarget);
495,428
public void process(I image, @Nullable D derivX, @Nullable D derivY, @Nullable D derivXX, @Nullable D derivYY, @Nullable D derivXY) {<NEW_LINE>minimums.reset();<NEW_LINE>maximums.reset();<NEW_LINE>intensity.process(image, derivX, derivY, derivXX, derivYY, derivXY);<NEW_LINE>GrayF32 intensityImage = intensity.getIntensi...
null, null, null, found);
1,093,126
public void asyncTriggerOperation(final UUID jobId, final String skillId, final RemoteOperationData data, SkillHelper.OperationHelper.OnOperationLoadResultCallback callback) {<NEW_LINE>final <MASK><NEW_LINE>onOperationLoadResultCallbackCallbackStore.putCallback(parcelUuid, callback);<NEW_LINE>doAfterConnect(new Callabl...
ParcelUuid parcelUuid = new ParcelUuid(jobId);
663,052
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String cloudName, CloudInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.e...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
31,685
public int compareTo(dropLocalUser_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>if...
), other.isSetPrincipal());
1,037,049
public void listHooksWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.listHooks#ListHookOptions-Context<NEW_LINE>ListHookOptions options = new ListHookOptions().setSkip<MASK><NEW_LINE>PagedIterable<NotificationHook> hooks = metricsAdvisorAdminClient.listHo...
(100).setMaxPageSize(20);
1,248,241
final PutOptedOutNumberResult executePutOptedOutNumber(PutOptedOutNumberRequest putOptedOutNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putOptedOutNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());