idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,251,140
public static void response(ServerConnection c, boolean hasMore) {<NEW_LINE>ByteBufferHolder buffer = c.allocate();<NEW_LINE>IPacketOutputProxy proxy = PacketOutputProxyFactory.getInstance().createProxy(c, buffer);<NEW_LINE>proxy.packetBegin();<NEW_LINE>// write header<NEW_LINE><MASK><NEW_LINE>// write fields<NEW_LINE>...
proxy = header.write(proxy);
1,422,673
private void createPO() {<NEW_LINE>int noOrders = 0;<NEW_LINE>String info = "";<NEW_LINE>//<NEW_LINE>MOrder order = null;<NEW_LINE>I_M_Warehouse wh = null;<NEW_LINE>X_T_Replenish[] replenishs = getReplenish("M_WarehouseSource_ID IS NULL");<NEW_LINE>for (int i = 0; i < replenishs.length; i++) {<NEW_LINE>X_T_Replenish re...
+= " - " + order.getDocumentNo();
1,497,362
private void printData(TopicRouteData topicRouteData, boolean useListFormat) {<NEW_LINE>if (!useListFormat) {<NEW_LINE>System.out.printf("%s%n", topicRouteData.toJson(true));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int totalReadQueue = 0, totalWriteQueue = 0;<NEW_LINE>List<QueueData<MASK><NEW_LINE>Map<String, QueueData> /...
> queueDataList = topicRouteData.getQueueDatas();
558,839
public void draw(GLAutoDrawable drawable, boolean idle, Position machineCoord, Position workCoord, Position focusMin, Position focusMax, double scaleFactor, Position mouseCoordinates, Position rotation) {<NEW_LINE>GL2 gl = drawable.getGL().getGL2();<NEW_LINE>double scale = 1. / scaleFactor;<NEW_LINE>gl.glPushMatrix();<...
glScaled(scale, scale, scale);
861,884
private void encryptInsertValue(final EncryptAlgorithm encryptAlgorithm, final int parameterIndex, final Object originalValue, final StandardParameterBuilder parameterBuilder, final EncryptContext encryptContext) {<NEW_LINE>parameterBuilder.addReplacedParameters(parameterIndex, encryptAlgorithm.encrypt(originalValue, e...
), encryptContext.getColumnName());
1,536,222
/*<NEW_LINE>* this http interface is used to return configuration information requested by other fe.<NEW_LINE>*/<NEW_LINE>@RequestMapping(path = "/config", method = RequestMethod.GET)<NEW_LINE>public Object config(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>executeCheckPassword(request, respons...
(config.get(2));
1,058,466
final ListPolicyPrincipalsResult executeListPolicyPrincipals(ListPolicyPrincipalsRequest listPolicyPrincipalsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPolicyPrincipalsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,093,514
public int compareTo(Node o) {<NEW_LINE>double normH1 = a1 * (1 - h1 / n);<NEW_LINE>double normH2 = a2 * h2 / MAX_DIST;<NEW_LINE>double normH3 = a3 * h3 / MAX_DIST_H3;<NEW_LINE>double otherNormH1 = a1 * (1 - o.h1 / n);<NEW_LINE>double otherNormH2 <MASK><NEW_LINE>double otherNormH3 = a3 * o.h3 / MAX_DIST_H3;<NEW_LINE>do...
= a2 * o.h2 / MAX_DIST;
1,076,234
public HeapWalkerNode[] computeChildren() {<NEW_LINE>int itemsCount = endIndex - startIndex + 1;<NEW_LINE>HeapWalkerNode[] children = new HeapWalkerNode[itemsCount];<NEW_LINE>List instances = ((ClassNode) getParent()).getJavaClass().getInstances();<NEW_LINE>List <MASK><NEW_LINE>List sortedFilteredInstances = getSortedI...
filteredInstances = getFilteredInstances(instances, filterValue);
361,083
/*<NEW_LINE>* Method that will read the log files.<NEW_LINE>*<NEW_LINE>* @param {String} file<NEW_LINE>* @return {String}<NEW_LINE>*/<NEW_LINE>private static String readFile(String file) {<NEW_LINE>BufferedReader bufferedReader = null;<NEW_LINE>String data = "----" + file + "----\r\n";<NEW_LINE>String line = "";<NEW_L...
Console.err.printStackTrace(ex);
47,374
protected static String createPodName(final String fullImagePath, final String jobId, final int attempt) {<NEW_LINE>final var versionDelimiter = ":";<NEW_LINE>final var noVersion = fullImagePath.split(versionDelimiter)[0];<NEW_LINE>final var dockerDelimiter = "/";<NEW_LINE>final var nameParts = noVersion.split(dockerDe...
m = ALPHABETIC.matcher(podName);
1,344,210
public AnnotationVisitor visitAnnotation(String desc, boolean vis) {<NEW_LINE>if (desc.equals(DTRACE_DESC)) {<NEW_LINE>return new AnnotationVisitor(Opcodes.ASM7) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(String name, Object value) {<NEW_LINE>if (name.equals("value")) {<NEW_LINE>result[0] = value;<NEW_LI...
= new File(dir, tmp);
1,594,123
private HttpResult handleClusterRequest(String clusterName, String fleetControllerPath) throws InterruptedException {<NEW_LINE>ContainerStatusPageServer <MASK><NEW_LINE>if (statusServer == null) {<NEW_LINE>return new HttpResult().setHttpCode(404, "No controller exists for cluster '" + clusterName + "'.");<NEW_LINE>}<NE...
statusServer = statusClusters.get(clusterName);
812,751
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.ThreadReference thread(com.sun.jdi.event.ClassPrepareEvent a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.m...
jpda.JDIExceptionReporter.report(ex);
531,422
public void apply() throws ConfigurationException {<NEW_LINE>// Bazel workspaces do not specify a sdk path so we do not need to update the sdk path if using<NEW_LINE>// a bazel workspace.<NEW_LINE>if (!workspaceCache.isBazel()) {<NEW_LINE>final String errorMessage = <MASK><NEW_LINE>if (errorMessage != null) {<NEW_LINE>...
FlutterSdkUtil.getErrorMessageIfWrongSdkRootPath(getSdkPathText());
1,634,547
public void beforeRequest(Request<?> request) {<NEW_LINE>request.addHeader("x-amz-glacier-version", "2012-06-01");<NEW_LINE>// "x-amz-content-sha256" header is required for sig v4 for some streaming operations<NEW_LINE>request.addHeader("x-amz-content-sha256", "required");<NEW_LINE>if (request.getOriginalRequest() inst...
).put("Content-Length", contentLength);
1,312,201
public SegmentCompletionProtocol.Response segmentCommitEnd(SegmentCompletionProtocol.Request.Params reqParams, boolean success, boolean isSplitCommit, CommittingSegmentDescriptor committingSegmentDescriptor) {<NEW_LINE>final String segmentNameStr = reqParams.getSegmentName();<NEW_LINE>final LLCSegmentName segmentName =...
reqParams, success, isSplitCommit, committingSegmentDescriptor);
673,707
static Status[] fromWmiPrinterStatus(int bitwiseCode, String printer) {<NEW_LINE>int[] rawCodes = ByteUtilities.unwind(bitwiseCode);<NEW_LINE>// WmiPrinterStatusMap has an explicit 0x00000000 = OK, so we'll need to shim that<NEW_LINE>if (rawCodes.length == 0) {<NEW_LINE>rawCodes = new int[] { (Integer) <MASK><NEW_LINE>...
WmiPrinterStatusMap.OK.getRawCode() };
474,924
public String[] listFiles(URI fileUri, boolean recursive) throws IOException {<NEW_LINE>try {<NEW_LINE>ImmutableList.Builder<String> builder = ImmutableList.builder();<NEW_LINE>String continuationToken = null;<NEW_LINE>boolean isDone = false;<NEW_LINE>String prefix = normalizeToDirectoryPrefix(fileUri);<NEW_LINE>while ...
isDone = !listObjectsV2Response.isTruncated();
1,446,069
public void triggerNewExtendedData(DatabaseSession session, NotificationsManager notificationsManager, final BimServer bimServer, String siteAddress, Project project, final long roid, Trigger trigger, final Service service) throws UserException, ServerException {<NEW_LINE>if (service.getTrigger() == trigger) {<NEW_LINE...
) != null ? roid : -1;
1,403,932
private void updateExportsPropertyAssignment(Node getpropNode, NodeTraversal t) {<NEW_LINE>if (!currentScript.isModule) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node parent = getpropNode.getParent();<NEW_LINE>checkState(parent.isAssign() || parent.isExprResult(), parent);<NEW_LINE>// Update "exports.foo = Foo" to "module...
), AddAt.BEFORE, t);
648,473
public static double[][] covariance(double[][] x, double[] meanVector, boolean isAlongRows, int[] indicesOfX) {<NEW_LINE>int numObservations;<NEW_LINE>int dimension;<NEW_LINE>int i;<NEW_LINE>double[][] cov = null;<NEW_LINE>double[][] tmpMatrix = null;<NEW_LINE>double[][] zeroMean = null;<NEW_LINE>double[][] zeroMeanTra...
(cov[i], 0.0);
1,310,075
private void doDelete(HttpEntity<String> entity) {<NEW_LINE>AgentResponse rsp = null;<NEW_LINE>DeleteCmd cmd = JSONObjectUtil.toObject(entity.getBody(), DeleteCmd.class);<NEW_LINE>if (!config.deleteSuccess) {<NEW_LINE>rsp = new AgentResponse();<NEW_LINE>rsp.setError("Fail delete on purpose");<NEW_LINE>rsp.setSuccess(fa...
config.deleteCmds.add(cmd);
1,249,721
public GetRuleGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRuleGroupResult getRuleGroupResult = new GetRuleGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
().unmarshall(context));
1,021,428
public static void runMain(IFindBugsEngine findBugs, TextUICommandLine commandLine) throws IOException {<NEW_LINE>boolean verbose = !commandLine.quiet();<NEW_LINE>try {<NEW_LINE>findBugs.execute();<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>// should not occur<NEW_LINE>assert false;<NEW_LINE>checkExitCodeFail...
log(FINE, "Warnings generated: {0}", bugCount);
436,499
private void createEndpointExplorerButton() {<NEW_LINE>endpointExplorerButtonPanel = new JPanel(new BorderLayout());<NEW_LINE>endpointExplorerButtonPanel.setPreferredSize(new Dimension(130, 32));<NEW_LINE>endpointExplorerButtonPanel.setMaximumSize(new Dimension(130, 32));<NEW_LINE>endpointExplorerButton = new RoundButt...
(52, 137, 209));
1,797,285
/* We're searching for something a bit too fiddly to use wildcards on,<NEW_LINE>* so lots of test casting :(<NEW_LINE>*/<NEW_LINE>private static boolean replacePreChangeAssignment(Op03SimpleStatement statement) {<NEW_LINE>AssignmentSimple assignmentSimple = (AssignmentSimple) statement.getStatement();<NEW_LINE>LValue l...
getLoc(), lValue, mutationOperation);
1,764,202
private void syncInstancesIfTimestampDiffers(String appName, String id, InstanceInfo info, InstanceInfo infoFromPeer) {<NEW_LINE>try {<NEW_LINE>if (infoFromPeer != null) {<NEW_LINE>logger.warn("Peer wants us to take the instance information from it, since the timestamp differs," + "Id : {} My Timestamp : {}, Peer's tim...
id, infoFromPeer.getOverriddenStatus());
1,755,701
public boolean convert() throws Exception {<NEW_LINE>String segmentName = _originalSegmentMetadata.getName();<NEW_LINE>LOGGER.info("Start converting segment: {} in table: {}", segmentName, _rawTableName);<NEW_LINE>List<FieldSpec> columnsToConvert = new ArrayList<>();<NEW_LINE>Schema schema = _originalSegmentMetadata.ge...
LOGGER.info("Columns to convert: {}", _columnsToConvert);
306,722
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View root = inflater.inflate(R.layout.simple_list_fragment, container, false);<NEW_LINE>Toolbar toolbar = root.findViewById(R.id.toolbar);<NEW_LINE>toolbar.setVisibility(View.GONE);<...
(R.id.fabSDOverlay));
473,269
final CreateThingTypeResult executeCreateThingType(CreateThingTypeRequest createThingTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThingTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateThingType");
1,709,289
public static void showAbout(Shell shell, Analytics analytics, Widgets widgets) {<NEW_LINE>analytics.postInteraction(View.About, ClientAction.Show);<NEW_LINE>new DialogBase(shell, widgets.theme) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getTitle() {<NEW_LINE>return Messages.ABOUT_TITLE;<NEW_LINE>}<NEW_LINE>...
, false, 2, 1));
1,170,102
public void initialise(double[] lowerCutOffsInHzIn, double[] upperCutOffsInHzIn, double overlapAround1000HzIn) {<NEW_LINE>normalizationFilterTransformedIR = null;<NEW_LINE>if (lowerCutOffsInHzIn != null && upperCutOffsInHzIn != null) {<NEW_LINE>assert lowerCutOffsInHzIn.length == upperCutOffsInHzIn.length;<NEW_LINE>low...
Arrays.fill(normalizationFilterTransformedIR, 0.0);
1,090,648
public void jdwpProcessOccurred(ADBDevice device, Set<String> id) {<NEW_LINE>List<ADB.Process> procs;<NEW_LINE>try {<NEW_LINE>Thread.sleep(40);<NEW_LINE>procs = device.getProcessList();<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOG.error("Failed to get device process list", e);<NEW_LINE>procs = Collections.emptyList();...
DefaultMutableTreeNode pnode = new DefaultMutableTreeNode(s);
1,016,707
public void testNoCustomContext() throws Exception {<NEW_LINE>// for issue<NEW_LINE>Log.info(c, "testNoCustomContext", "Entering test testNoCustomContext");<NEW_LINE>// Checking that these are correctly logged in the trace<NEW_LINE>// We were setting the wrong defaults -- bad maxpool and preferred pool size<NEW_LINE>St...
errMsgs = server.findStringsInLogsAndTrace(tr);
1,425,352
public void testParkNonDissociatableSharableHandle() throws Exception {<NEW_LINE>// creates sharable connections<NEW_LINE>DataSource ds = (DataSource) InitialContext.doLookup("eis/ds5");<NEW_LINE>// On another thread, use a sharable connection in a transaction, commit the transaction and wait<NEW_LINE>CountDownLatch tr...
.getStatement().close();
951,973
public List<CaptionInfo> listCaptions(MediaFile video, String basePath, String externalUser, Instant externalExpiration) {<NEW_LINE>MetaData metaData = getVideoMetaData(video);<NEW_LINE>Stream<CaptionInfo> internalCaptions;<NEW_LINE>if (metaData == null || metaData.getSubtitleTracks().isEmpty()) {<NEW_LINE>internalCapt...
.getId()))));
1,546,467
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>String nameEnd = rec_len + "_" + (extra == null ? "0" : extra.length);<NEW_LINE>Structure structure = new StructureDataType("ext4_dir_entry2_" + nameEnd, 0);<NEW_LINE>structure.add(DWORD, "inode", null);<NEW_LINE>structure.<MASK><NEW_LIN...
add(WORD, "rec_len", null);
876,952
private void checkQemuImgVersionInOtherClusters(KVMHostConnectedContext context, List<PrimaryStorageInventory> invs) {<NEW_LINE>String mine = KVMSystemTags.QEMU_IMG_VERSION.getTokenByResourceUuid(context.getInventory().getUuid(), KVMSystemTags.QEMU_IMG_VERSION_TOKEN);<NEW_LINE>final List<String> psUuids = CollectionUti...
createQuery(sql, String.class);
932,173
protected void renderHtmltoRet(String defaultTemplate, Map<String, Object> paras, Ret toRet) {<NEW_LINE>String render = getPara("render", "default");<NEW_LINE>Engine engine = RenderManager.me().getEngine();<NEW_LINE>Template template = TemplateManager.me().getCurrentTemplate();<NEW_LINE>if (paras != null && template !=...
toRet.set("html", html);
1,642,087
public void startRecording() throws Exception {<NEW_LINE>startAudioRecorder();<NEW_LINE>final short[] buffer = new short[mNumSamplesPerRead];<NEW_LINE>int numSamplesRead;<NEW_LINE>final AudioSourceListener listener = getAudioSourceListener();<NEW_LINE>final AudioEncoder pcmEncoder = new L16PcmEncoder();<NEW_LINE>try {<...
pcmEncoder.encode(buffer, numSamplesRead);
464,109
private void linearAssignToBins(List<Datum> data) {<NEW_LINE>this.bins = new double[metricsDimensions][numBins];<NEW_LINE>this.minimums = new double[metricsDimensions];<NEW_LINE>this.maximums = new double[metricsDimensions];<NEW_LINE>for (int d = 0; d < this.metricsDimensions; ++d) {<NEW_LINE><MASK><NEW_LINE>double[] d...
int size = data.size();
1,370,784
public void finished(TaskEvent taskEvent) {<NEW_LINE>if (taskEvent.getKind() != Kind.ANALYZE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (JavaCompiler.instance(context).errorCount() > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassTree tree = JavacTrees.instance(context).getTree(taskEvent.getTypeElement());<NEW_LINE>if ...
super.visitClass(node, context);
658,461
public Status delete(String table, String key) {<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = DELETE_STMT.get();<NEW_LINE>// Prepare statement on demand<NEW_LINE>if (stmt == null) {<NEW_LINE>Delete s = QueryBuilder.delete().from(table);<NEW_LINE>s.where(QueryBuilder.eq(YCSB_KEY, QueryBuilder.bindMarker()));<NEW_LIN...
stmt = session.prepare(s);
1,550,639
public void interceptOrDelegate(@NotNull final ChannelHandlerContext ctx, @NotNull final SUBSCRIBE subscribe) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final String clientId = clientConnection.ge...
interceptor, extension.getId());
1,794,495
public CommandResult process(CommandInvocation commandInvocation) throws CommandException, InterruptedException {<NEW_LINE>if (args != null && args.size() > 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid option: " + args.get(0));<NEW_LINE>}<NEW_LINE>if (userid == null && username == null) {<NEW_LINE>throw ne...
String server = config.getServerUrl();
516,037
public final void scheduleSync(Context context, boolean replace) {<NEW_LINE>long flag = getSyncFlag(context);<NEW_LINE>if (flag == 0)<NEW_LINE>return;<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Log.v(TAG, "Scheduling " + getWorkName() + ", replace=" + replace);<NEW_LINE>ExistingWorkPolicy policy = replace ? ExistingWorkP...
.WORK_TAG).build());
288,800
protected void updateAttribBuffer(String name, int offset, int size) {<NEW_LINE>VertexAttribute attrib = polyAttribs.get(name);<NEW_LINE>if (attrib.type == PGL.FLOAT) {<NEW_LINE>FloatBuffer buffer = (FloatBuffer) polyAttribBuffers.get(name);<NEW_LINE>float[] array = fpolyAttribs.get(name);<NEW_LINE>PGL.updateFloatBuffe...
array = bpolyAttribs.get(name);
1,806,014
public boolean rowTypeCoercion(SqlValidatorScope scope, SqlNode query, int columnIndex, RelDataType targetType) {<NEW_LINE>switch(query.getKind()) {<NEW_LINE>case SELECT:<NEW_LINE>SqlSelect selectNode = (SqlSelect) query;<NEW_LINE>SqlValidatorScope <MASK><NEW_LINE>if (!rowTypeElementCoercion(selectScope, selectNode.get...
selectScope = validator.getSelectScope(selectNode);
319,607
public void write(JsonWriter out, Banana value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.Entry<String, ...
elementAdapter.write(out, obj);
529,963
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject <MASK><NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>SubType subType = ChooseCreatureTypeEffect.getChosenCreatureType(source.getSourceId(), game);<NEW_LINE>i...
sourceObject = game.getObject(source);
798,400
public void startUp() {<NEW_LINE>keyManager.registerKeyListener(chatKeyboardListener);<NEW_LINE>chatCommandManager.registerCommandAsync(TOTAL_LEVEL_COMMAND_STRING, this::playerSkillLookup);<NEW_LINE>chatCommandManager.registerCommandAsync(CMB_COMMAND_STRING, this::combatLevelLookup);<NEW_LINE>chatCommandManager.registe...
registerCommandAsync(BOUNTY_HUNTER_ROGUE_COMMAND, this::bountyHunterRogueLookup);
609,309
private void addRange(int[] starts, int[] ends) {<NEW_LINE>List<FoldedBlock> result = new ArrayList<FoldedBlock>(3);<NEW_LINE>int[] rangeStarts = new int[myCount];<NEW_LINE>int[] rangeEnds = new int[myCount];<NEW_LINE>for (int number = 0; ; number++) {<NEW_LINE>int shift = getRangeShift(mySettings.range, number);<NEW_L...
[i] + shift, i);
469,848
void lock() {<NEW_LINE>long remainingNanos = WARN_AFTER_LOCK_WAIT_NANOS;<NEW_LINE>long end <MASK><NEW_LINE>boolean interrupted = false;<NEW_LINE>try {<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>if (evictionLock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.log(Level.WAR...
= System.nanoTime() + remainingNanos;
1,728,947
public static void main(String[] args) {<NEW_LINE>Jsonb jsonb = JsonbBuilder.create();<NEW_LINE>Model instance = new Model();<NEW_LINE>instance.string = "Hello World!";<NEW_LINE>instance.number = 42;<NEW_LINE>instance.integers = Arrays.asList(1, 2, 3);<NEW_LINE>instance.decimals = new HashSet<>(Arrays.asList(BigDecimal...
.ONE, BigDecimal.ZERO));
169,163
public static void main(String[] args) {<NEW_LINE>System.out.println("#define POW5_INV_BITCOUNT " + POW5_INV_BITCOUNT);<NEW_LINE>System.out.println("static uint64_t FLOAT_POW5_INV_SPLIT[" + INV_TABLE_SIZE + "] = {");<NEW_LINE>for (int i = 0; i < INV_TABLE_SIZE; i++) {<NEW_LINE>BigInteger pow = BigInteger.valueOf(5).pow...
long v = pow5.longValueExact();
608,218
public void displayErrorMessage() {<NEW_LINE>if (error == null)<NEW_LINE>return;<NEW_LINE>if (errorAnnotation == null)<NEW_LINE>errorAnnotation = new org.openide.text.Annotation() {<NEW_LINE><NEW_LINE>public String getAnnotationType() {<NEW_LINE>// NOI18N<NEW_LINE>return "xml-j2ee-annotation";<NEW_LINE>}<NEW_LINE><NEW_...
0, error.getErrorLine());
870,651
private static void uncompressHybridFlavor(final CpcSketch target, final CompressedState source) {<NEW_LINE>assert (source.cwStream == null);<NEW_LINE>assert (source.csvStream != null);<NEW_LINE>// fail path 3<NEW_LINE>final int<MASK><NEW_LINE>final int numPairs = source.numCsv;<NEW_LINE>// In the hybrid flavor, some o...
[] pairs = uncompressTheSurprisingValues(source);
754,471
public MPInstancePara createParameter(int sequence, String parameterName, Object value) {<NEW_LINE>MProcess process = MProcess.get(getCtx(), getAD_Process_ID());<NEW_LINE>MProcessPara parameter = process.getParameter(parameterName);<NEW_LINE>MPInstancePara instanceParameter = null;<NEW_LINE>if (parameter == null && par...
, (String) null, true);
1,711,011
void computeLCP() {<NEW_LINE>int i, L;<NEW_LINE>// default value<NEW_LINE>Phi[<MASK><NEW_LINE>for (// compute Phi in O(n)<NEW_LINE>// compute Phi in O(n)<NEW_LINE>i = 1; // compute Phi in O(n)<NEW_LINE>i < n; // remember which suffix is behind this suffix<NEW_LINE>i++) Phi[SA[i]] = SA[i - 1];<NEW_LINE>for (i = L = 0; i...
SA[0]] = -1;
1,851,648
public ContentSigner build(PrivateKey privateKey) throws OperatorCreationException {<NEW_LINE>if (privateKey instanceof CompositePrivateKey) {<NEW_LINE>return buildComposite((CompositePrivateKey) privateKey);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Signature sig = helper.createSignature(sigAlgId);<NEW_LINE>if (sigAlgI...
getEncoded()).getPrivateKeyAlgorithm();
1,399,305
private void dump(PrintWriter out, Predicate<String> keyFilter) {<NEW_LINE>Class<?> lookAndFeelClass = lookAndFeel instanceof MyBasicLookAndFeel ? BasicLookAndFeel.class : lookAndFeel.getClass();<NEW_LINE>out.printf("Class %s%n", lookAndFeelClass.getName());<NEW_LINE>out.printf("ID %s%n", lookAndFeel.getID());<NEW...
"Name %s%n", lookAndFeel.getName());
70,054
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>final List<Map<String, Object>> data = new LinkedList<>();<NEW_LINE>final String url = (String) sources[0];<NEW...
row.put(key, value);
1,238,593
private AzureCommunicationCallingServerServiceImpl createServiceImpl() {<NEW_LINE>boolean isConnectionStringSet = connectionString != null && !connectionString.trim().isEmpty();<NEW_LINE>boolean isEndpointSet = endpoint != null && !endpoint.trim().isEmpty();<NEW_LINE>boolean isAzureKeyCredentialSet = azureKeyCredential...
String accessKey = connectionStringObject.getAccessKey();
495,782
public ImportAssetsFromRedshiftDataSharesResponseDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportAssetsFromRedshiftDataSharesResponseDetails importAssetsFromRedshiftDataSharesResponseDetails = new ImportAssetsFromRedshiftDataSharesResponseDetails();<NEW_LINE>int originalDepth = con...
String currentParentElement = context.getCurrentParentElement();
1,837,573
private static FilterSpecPlanForge planFilterParametersInternal(List<ExprNode> validatedNodes, FilterSpecCompilerArgs args) throws ExprValidationException {<NEW_LINE>if (validatedNodes.isEmpty()) {<NEW_LINE>return FilterSpecPlanForge.EMPTY;<NEW_LINE>}<NEW_LINE>if (args.compileTimeServices.getConfiguration().getCompiler...
planRemainingNodesBasic(filterParamExprMap, args, filterServiceMaxFilterWidth);
1,599,553
void writeValue(Value v) {<NEW_LINE>if (v == null) {<NEW_LINE>_stream.writeSize(0);<NEW_LINE>} else if (_current != null && _encaps.format == FormatType.SlicedFormat) {<NEW_LINE>if (// Lazy initialization<NEW_LINE>_current.indirectionTable == null) {<NEW_LINE>_current.indirectionTable = new java.util.ArrayList<>();<NEW...
_current.indirectionMap.get(v);
1,690,332
public void onLoad() {<NEW_LINE>this.skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.SkillDepotId);<NEW_LINE>// Get fetters from GenshinData<NEW_LINE>this.fetters = GenshinData.getFetterDataEntries().get(this.Id);<NEW_LINE>int size = GenshinData.getAvatarCurveDataMap().size();<NEW_LINE>this.hpGrowthCurve...
get(growCurve.getGrowCurve());
1,732,364
public List<OptExpression> transform(OptExpression input, OptimizerContext context) {<NEW_LINE>LogicalApplyOperator apply = (LogicalApplyOperator) input.getOp();<NEW_LINE>// IN/NOT IN<NEW_LINE>InPredicateOperator ipo = (InPredicateOperator) apply.getSubqueryOperator();<NEW_LINE>BinaryPredicateOperator bpo = new BinaryP...
EQ, ipo.getChildren());
566,062
public Long countOfferCodeUses(Order order, Long offerCodeId) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> criteria = builder.createQuery(Long.class);<NEW_LINE>Root<OfferAuditImpl> root = criteria.from(OfferAuditImpl.class);<NEW_LINE>Root<OrderImpl> orderRoot = criteria.fro...
restrictions.size()]));
1,389,882
public final void addWallet(Wallet wallet) {<NEW_LINE><MASK><NEW_LINE>addReorganizeListener(Threading.SAME_THREAD, wallet);<NEW_LINE>addTransactionReceivedListener(Threading.SAME_THREAD, wallet);<NEW_LINE>int walletHeight = wallet.getLastBlockSeenHeight();<NEW_LINE>int chainHeight = getBestChainHeight();<NEW_LINE>if (w...
addNewBestBlockListener(Threading.SAME_THREAD, wallet);
174,074
public static DetectPedestrianIntrusionResponse unmarshall(DetectPedestrianIntrusionResponse detectPedestrianIntrusionResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectPedestrianIntrusionResponse.setRequestId(_ctx.stringValue("DetectPedestrianIntrusionResponse.RequestId"));<NEW_LINE>detectPedestrianIntrusionResponse...
(_ctx.stringValue("DetectPedestrianIntrusionResponse.Code"));
1,050,549
// as per [#368]<NEW_LINE>// removed when fix [#528]<NEW_LINE>// private IllegalArgumentException _noExisting() {<NEW_LINE>// return new IllegalArgumentException("Inclusion type "+_includeAs+" not yet supported");<NEW_LINE>// }<NEW_LINE>@Override<NEW_LINE>public TypeDeserializer buildTypeDeserializer(DeserializationCon...
throw new IllegalStateException("Do not know how to construct standard type serializer for inclusion type: " + _includeAs);
774,024
private static FontConfig[] readFamiliesJellyBean(XmlPullParser parser) throws XmlPullParserException, IOException {<NEW_LINE>ArrayList<FontConfig> <MASK><NEW_LINE>parser.require(XmlPullParser.START_TAG, null, "familyset");<NEW_LINE>while (parser.next() != XmlPullParser.END_TAG) {<NEW_LINE>if (parser.getEventType() != ...
fallbackList = new ArrayList<>();
495,531
final CreateEndpointResult executeCreateEndpoint(CreateEndpointRequest createEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,025,681
public Concrete.Expression visitArgumentAppExpr(ArgumentAppExprContext ctx) {<NEW_LINE>Concrete.Expression expr = visitAtomFieldsAcc(ctx.atomFieldsAcc());<NEW_LINE>List<OnlyLevelAtomContext> onlyLevelAtoms = ctx.onlyLevelAtom();<NEW_LINE>if (!onlyLevelAtoms.isEmpty()) {<NEW_LINE>if (expr instanceof Concrete.ReferenceEx...
getData(), sequence, null);
102,841
public void nodeStructureChanged(final TreeNode node) {<NEW_LINE>final Set<ICriterium> criteriumSet = new HashSet<ICriterium>();<NEW_LINE>final Enumeration<TreePath> expandedPaths = m_jtree.getExpandedDescendants(new TreePath(getRoot()));<NEW_LINE>if (expandedPaths != null) {<NEW_LINE>while (expandedPaths.hasMoreElemen...
(JCriteriumTreeNode) nodes.nextElement();
970,347
private void filter(Mat src) {<NEW_LINE>Mat dst = src.clone();<NEW_LINE>// New line added.<NEW_LINE>dst.convertTo(dst, CvType.CV_64FC3);<NEW_LINE>int size = (int) (dst.total(<MASK><NEW_LINE>// use double[] instead of byte[]<NEW_LINE>double[] pixel = new double[size];<NEW_LINE>dst.get(0, 0, pixel);<NEW_LINE>for (int i =...
) * dst.channels());
1,787,425
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>if (HostInfo.isInHostProcess()) {<NEW_LINE>// we have to set the theme before super.onCreate()<NEW_LINE>setTheme(getCurrentV2Theme() == 3 ? R.style.Theme_MaiTungTMDesign_Light_Blue : R.style.Theme_MaiTungTMDesign_DayNight);<NEW_LINE>} else {<NEW_LINE>// we i...
(LayoutInflater.from(this));
226,287
private void processSyncMessageChunk(CommsByteBuffer buffer, Conversation conversation, boolean connectionMessage) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "processSyncMessageChunk", new Object[] { buffer, conversation, connectionMessage });<NEW_LINE>// ...
(ClientConversationState) conversation.getAttachment();
949,217
// json send<NEW_LINE>@Override<NEW_LINE>public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>Map<String, Number<MASK><NEW_LINE>StatMapKey statKey = new StatMapKey();<NEW_LINE>statKey.addKey(CommonSpanTags.LOCAL_APP, tagsWithStr.g...
> tagsWithNumber = sofaTracerSpan.getTagsWithNumber();
1,141,089
private void initData(JSONObject data) {<NEW_LINE>if (data == null)<NEW_LINE>return;<NEW_LINE>JSONObject info = data.optJSONObject("game_info");<NEW_LINE>int size = info.optInt("boardSize", 19);<NEW_LINE>boardSize = size;<NEW_LINE>Lizzie.board.reopen(boardSize, boardSize);<NEW_LINE>// TODO boardSize<NEW_LINE>history = ...
result = info.optString("resultDesc");
1,607,673
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String applicationSecurityGroupName, 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...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,178,426
public void updateAutoLogin(Tab tab, boolean animate) {<NEW_LINE>DeviceAccountLogin login = tab.getDeviceAccountLogin();<NEW_LINE>if (login != null) {<NEW_LINE>mAutoLoginHandler = login;<NEW_LINE>// TODO: modified, mContext replaced with getContext()<NEW_LINE>ContextThemeWrapper wrapper = new ContextThemeWrapper(getCon...
mAutoLoginProgress.setVisibility(View.INVISIBLE);
1,544,954
public static byte[] jsonToAvro(String json, Schema avroSchema) throws AvroTypeException, IOException {<NEW_LINE>// Prepare reader an input stream from Json string.<NEW_LINE>GenericDatumReader<Object> reader = new GenericDatumReader<>(avroSchema);<NEW_LINE>InputStream input = new ByteArrayInputStream<MASK><NEW_LINE>Jso...
(json.getBytes("UTF-8"));
1,239,824
public okhttp3.Call apisApiIdEnvironmentsEnvIdKeysPutCall(String apiId, String envId, Map<String, String> requestBody, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = requestBody;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/environments/{...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
1,606,090
private void refresh() {<NEW_LINE>String sql = m_sql;<NEW_LINE>int <MASK><NEW_LINE>if (!showAll.isSelected()) {<NEW_LINE>sql = m_sql.substring(0, pos) + s_sqlWhereSameWarehouse + s_sqlNonZero;<NEW_LINE>if (s_sqlMinLife.length() > 0)<NEW_LINE>sql += s_sqlMinLife;<NEW_LINE>sql += m_sql.substring(pos);<NEW_LINE>}<NEW_LINE...
pos = m_sql.lastIndexOf(" ORDER BY ");
408,145
public static void main(String[] args) {<NEW_LINE>OkHttpClient http = new OkHttpClient();<NEW_LINE>PokemonGo api = new PokemonGo(http);<NEW_LINE>try {<NEW_LINE>HashProvider hasher = ExampleConstants.getHashProvider();<NEW_LINE>api.login(new PtcCredentialProvider(http, ExampleConstants.LOGIN, ExampleConstants.PASSWORD),...
PokestopLootResult result = destinationPokestop.loot();
39,642
protected Object[] doForeignObject(Object obj, @CachedLibrary("obj") InteropLibrary interop, @Cached("create()") BranchProfile hasPropertiesBranch, @Cached("create()") ImportValueNode foreignConvertNode) {<NEW_LINE>try {<NEW_LINE>if (!interop.hasArrayElements(obj)) {<NEW_LINE>errorBranch.enter();<NEW_LINE>throw Errors....
len = interop.getArraySize(obj);
291,482
private static PaddedCell check(Formatter formatter, File file, String original, int maxLength) {<NEW_LINE>if (maxLength < 2) {<NEW_LINE>throw new IllegalArgumentException("maxLength must be at least 2");<NEW_LINE>}<NEW_LINE>String appliedOnce = formatter.compute(original, file);<NEW_LINE>if (appliedOnce.equals(origina...
, Collections.singletonList(appliedOnce));
6,346
public void visitFunctionCallExpression(@NotNull ErlangFunctionCallExpression call) {<NEW_LINE>PsiReference reference = call.getReference();<NEW_LINE>PsiElement parent = call.getParent();<NEW_LINE>ErlangModuleRef moduleRef = parent instanceof ErlangGlobalFunctionCallExpression ? ((ErlangGlobalFunctionCallExpression) pa...
String name = call.getName();
697,564
public TraceReader readFiles(List<String> filePaths) {<NEW_LINE>return new TraceReader() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ImmutableSet<Characteristic> characteristics() {<NEW_LINE>return readers().stream().flatMap(reader -> reader.characteristics().stream()).collect(toImmutableEnumSet());<NEW_LINE>}<NEW_L...
).collect(toList());
1,673,583
final SearchDashboardsResult executeSearchDashboards(SearchDashboardsRequest searchDashboardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchDashboardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
397,620
protected long[] readMV4x4(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c, int packedRefFrames) {<NEW_LINE>int subMode0 = readInterMode(miCol, miRow, blSz, decoder, c);<NEW_LINE>long mvl0 = readSub0(miCol, miRow, blSz, decoder, c, subMode0, packedRefFrames);<NEW_LINE>int subMode1 = readInt...
miRow, blSz, decoder, c);
1,670,890
public void checkFilesForChanges(IncrementalTaskInputs inputs) {<NEW_LINE>getLogger().lifecycle("Checking idl and snapshot files for changes...");<NEW_LINE>getLogger().info("idlFiles: " + _idlFiles.getAsPath());<NEW_LINE>getLogger().info("snapshotFiles: " + _snapshotFiles.getAsPath());<NEW_LINE>Set<String> filesRemoved...
filesChanged = new HashSet<>();
1,667,570
public static String multiplication(String input) {<NEW_LINE>double num1 = 0, num2 = 0, ans = 0;<NEW_LINE>int b = 0, t1 = 0, t2 = 0;<NEW_LINE>String anstring = "";<NEW_LINE>String temp = "";<NEW_LINE>int count = 0;<NEW_LINE>while (b < input.length()) {<NEW_LINE>if (input.charAt(b) == '*') {<NEW_LINE>num1 = getbacknumbe...
anstring = String.valueOf(ans);
1,434,546
public Iterable<Map<String, Object>> run(final String statement, final Map<String, Object> map) {<NEW_LINE>try {<NEW_LINE>logQuery(statement, map);<NEW_LINE>final ResultCursor cursor = resolveImmediately(tx<MASK><NEW_LINE>final List<Record> records = resolveImmediately(cursor.listAsync());<NEW_LINE>return Iterables.map...
.runAsync(statement, map));
1,138,006
public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>setupImageFormatEntries(sampleUris());<NEW_LINE>mButton = (Button) view.findViewById(R.id.button);<NEW_LINE>mDraweeMain = (SimpleDraweeView) view.findViewById(R.id.drawee_view);<NEW_LINE>mSizeSpinner = (Spinner) view.findViewById...
.setAdapter(new SimpleResizeOptionsAdapter());
373,408
public void marshall(CreateKeyRequest createKeyRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createKeyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createKeyRequest.getPolicy(), POLICY...
createKeyRequest.getKeyUsage(), KEYUSAGE_BINDING);
655,848
synchronized void connectionError(final SibRaMessagingEngineConnection connection, final SIException exception) {<NEW_LINE>final String methodName = "connectionError";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, new Object[] { connection, ...
(), this, exception });