idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
962,420
@SaCheckLogin<NEW_LINE>public Object child(String siteId, @Param("pid") String pid, HttpServletRequest req) {<NEW_LINE>List<Cms_channel> list = new ArrayList<>();<NEW_LINE>List<NutMap> treeList = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>if (Strings.isBlank(pid)) {<NEW_LINE>cnd.and(Cnd.exps("parentId", "=", "").or("p...
Cnd cnd = Cnd.NEW();
1,266,226
public static double svmPredict(SvmModelData model, Vector x, KernelType kernelType, double gamma, double coef0, int degree) {<NEW_LINE>double[] svCoef = model.svCoef[0];<NEW_LINE>double sum = 0;<NEW_LINE>Vector[] supportVec = model.supportDenseVec != null ? model.supportDenseVec : model.supportSparseVec;<NEW_LINE>for ...
i]).normL2Square());
385,156
private Object toJson(Comparative comparative) {<NEW_LINE>if (comparative instanceof ComparativeAND) {<NEW_LINE>final Map<String, Object<MASK><NEW_LINE>map.put("type", ComparativeAND.class.getSimpleName());<NEW_LINE>map.put("list", toJson(((ComparativeAND) comparative).getList()));<NEW_LINE>return map;<NEW_LINE>} else ...
> map = jsonBuilder.map();
331,913
public static void checkModulePreconditions(String deploymentId, String moduleName, DeploymentInternal deployment, EPServicesContext services) throws EPUndeployPreconditionException {<NEW_LINE>for (String namedWindow : deployment.getPathNamedWindows()) {<NEW_LINE>checkDependency(services.getNamedWindowPathRegistry(), n...
), index.getInfraModuleName());
1,793,418
private void saveButtonPressed() {<NEW_LINE>// IProfileStore store = formatterFactory.getProfileStore();<NEW_LINE>IProfileStore store = ProfileManager.getInstance().getProfileStore();<NEW_LINE>IProfile selected = manager.create(dialogOwner.getProject(), ProfileKind.TEMPORARY, fProfileNameField.getText(), getPreferences...
), profile.getVersion());
167,842
protected byte[] createKeyWithService(UUID universeUUID, UUID configUUID, EncryptionAtRestConfig config) {<NEW_LINE>final String algorithm = "AES";<NEW_LINE>final int keySize = 256;<NEW_LINE>final ObjectNode validateResult = validateEncryptionKeyParams(algorithm, keySize);<NEW_LINE>if (!validateResult.get("result").asB...
).put("key_size", keySize);
1,035,711
public TargetReservationValue unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TargetReservationValue targetReservationValue = new TargetReservationValue();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
().unmarshall(context));
303,982
private static void writeCommandConfigJson(JsonGenerator json, HystrixCommandKey key, HystrixCommandConfiguration commandConfig) throws IOException {<NEW_LINE>json.writeObjectFieldStart(key.name());<NEW_LINE>json.writeStringField("threadPoolKey", commandConfig.getThreadPoolKey().name());<NEW_LINE>json.writeStringField(...
getIsolationStrategy().name());
1,084,216
private String commitToGitLab(String repositoryUrl, String content, String commitMessage, boolean create) throws SourceConnectorException {<NEW_LINE>try (CloseableHttpClient httpClient = HttpClients.createDefault()) {<NEW_LINE>GitLabResource resource = resolver.resolve(repositoryUrl);<NEW_LINE>String contentUrl = this....
getActions().add(action);
1,631,349
public void marshall(EndpointProperties endpointProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (endpointProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(endpointProperties.getEndpoint...
endpointProperties.getCurrentInferenceUnits(), CURRENTINFERENCEUNITS_BINDING);
598,792
public static void main(String[] args) {<NEW_LINE>Exercise38_Sensitivity sensitivity = new Exercise38_Sensitivity();<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph1 = new EdgeWeightedDigraph(6);<NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge<MASK><NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge(1, 2, 1...
(0, 1, 2));
449,066
public void validate(Body body, List<ValidationException> exceptions) {<NEW_LINE>final SootMethod method = body.getMethod();<NEW_LINE>final <MASK><NEW_LINE>final boolean[] parameterRefs = new boolean[paramCount];<NEW_LINE>boolean hasThisLocal = false;<NEW_LINE>for (Unit u : body.getUnits()) {<NEW_LINE>if (u instanceof ...
int paramCount = method.getParameterCount();
755,354
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if (decoder.invalidCheckMask != 0 && (((decoder.state_zs_flags & (StateFlags.Z | StateFlags.B)) | (decoder.state_vvvv_invalidCheck & 0xF)) != 0 || decoder.state_aaa == 0))<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>instruction.setCode(code);<NEW_L...
instruction.setOp1Kind(OpKind.MEMORY);
92,843
private ModeEntry process(final boolean add, final char mode) {<NEW_LINE>switch(mode) {<NEW_LINE>case 'O':<NEW_LINE>return new ModeEntry(add, Mode.OWNER, this.<MASK><NEW_LINE>case 'o':<NEW_LINE>return new ModeEntry(add, Mode.OPERATOR, this.params[this.index++]);<NEW_LINE>case 'v':<NEW_LINE>return new ModeEntry(add, Mod...
params[this.index++]);
1,266,536
private static Map<String, String> createDefaultCheckerSetMap() {<NEW_LINE>Map<String, String> folderMap = new HashMap<>();<NEW_LINE>folderMap.put(Tool.COVERITY.name(), "codecc_default_rules_" + Tool.COVERITY.name().toLowerCase());<NEW_LINE>folderMap.put(Tool.KLOCWORK.name(), "codecc_default_rules_" + Tool.KLOCWORK.nam...
name().toLowerCase());
99,826
private void determineMainSize(@FlexDirection int flexDirection, int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int mainSize;<NEW_LINE>int paddingAlongMainAxis;<NEW_LINE>switch(flexDirection) {<NEW_LINE>// Intentional fall through<NEW_LINE>case FLEX_DIRECTION_ROW:<NEW_LINE>case FLEX_DIRECTION_ROW_REVERSE:<NEW_...
= getPaddingLeft() + getPaddingRight();
408,737
private void insideTypeParameter(Env env) throws IOException {<NEW_LINE>int offset = env.getOffset();<NEW_LINE>TreePath path = env.getPath();<NEW_LINE>TypeParameterTree tp = (TypeParameterTree) path.getLeaf();<NEW_LINE>CompilationController controller = env.getController();<NEW_LINE>TokenSequence<JavaTokenId> ts = find...
env, EXTENDS_KEYWORD, SPACE, false);
496,552
private I_C_OrderLine createOrderLine(final PurchaseCandidate candidate) {<NEW_LINE>final int flatrateDataEntryId = candidate.getC_Flatrate_DataEntry_ID();<NEW_LINE>final int huPIItemProductId = candidate.getM_HU_PI_Item_Product_ID();<NEW_LINE>final Timestamp datePromised = candidate.getDatePromised();<NEW_LINE>final B...
AttributeSetInstanceId attributeSetInstanceId = candidate.getAttributeSetInstanceId();
826,178
public IRubyObject op_div(ThreadContext context, IRubyObject other) {<NEW_LINE>if (other instanceof RubyInteger) {<NEW_LINE>return op_div(context, (RubyInteger) other);<NEW_LINE>}<NEW_LINE>if (other instanceof RubyFloat) {<NEW_LINE>IRubyObject fval = r_to_f(context, this);<NEW_LINE>// fval / other<NEW_LINE>return conte...
context, fval, fval, other);
845,107
private void select() {<NEW_LINE>try {<NEW_LINE>// wait for io events.<NEW_LINE>selector.select(TNonblockingServer.selectWaitTime_);<NEW_LINE>// process the io events we received<NEW_LINE>Iterator<SelectionKey> selectedKeys = selector.selectedKeys().iterator();<NEW_LINE>while (!stopped_ && selectedKeys.hasNext()) {<NEW...
TNonblockingServer.this.submitTask(readHandler);
1,130,229
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>buttonGroup1 = new javax.swing.ButtonGroup();<NEW_LINE>descriptionLabel = <MASK><NEW_LINE>issuePanel = new javax.swing.JPanel();<NEW_LINE>descriptionLabel.setLabelFor(descriptionTe...
new javax.swing.JLabel();
85,352
Object aroundInvoke(InvocationContext invCtx) throws Exception {<NEW_LINE>CheckInvocation.getInstance().recordCallInfo("AroundInvoke", "Interceptor03.aroundInvoke", this);<NEW_LINE>svLogger.info("Interceptor03.aroundInvoke: this=" + this);<NEW_LINE>for (Iterator<Entry<String, Object>> it = invCtx.getContextData().entry...
String) entry.getValue());
340,012
public void reuse(Tag handler) {<NEW_LINE>PerThreadData ptd = (PerThreadData) perThread.get();<NEW_LINE>if (ptd == null) {<NEW_LINE>ptd = new PerThreadData();<NEW_LINE>ptd.handlers = new Tag[initialSize];<NEW_LINE>ptd.current = 0;<NEW_LINE>threadData.put(ptd, ptd);<NEW_LINE>}<NEW_LINE>if (ptd.current < (ptd.handlers.le...
[++ptd.current] = handler;
1,402,215
final GetGroupPolicyResult executeGetGroupPolicy(GetGroupPolicyRequest getGroupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,039,039
protected void onSizeChanged(int w, int h, int oldw, int oldh) {<NEW_LINE>super.onSizeChanged(w, h, oldw, oldh);<NEW_LINE>try {<NEW_LINE>rect = new Rect(innerPadding, innerPadding, w - innerPadding, h - innerPadding);<NEW_LINE>bitmap = Bitmap.createBitmap(w - 2 * innerPadding, h - 2 * innerPadding, Config.ARGB_8888);<N...
= rect.height() / scale;
872,964
private void handleMappingExceptions() {<NEW_LINE>if (singleValueIsAllowed) {<NEW_LINE>org.<MASK><NEW_LINE>if (arg instanceof org.python.types.Range) {<NEW_LINE>throw new org.python.exceptions.TypeError("range indices must be integers or slices, not str");<NEW_LINE>} else if (arg instanceof org.python.types.Bytes) {<NE...
python.Object arg = peekNextArg();
424,454
private void doAddPane(@Nonnull final AbstractProjectViewPane newPane) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>int index;<NEW_LINE>final ContentManager manager = getContentManager();<NEW_LINE>for (index = 0; index < manager.getContentCount(); index++) {<NEW_LINE>Content content...
myId2Pane.put(id, newPane);
698,609
private HashMap<Integer, EnumMap<TrafficEnums.TravelDirection, Integer[]>> readRefPatterns() {<NEW_LINE>List<List<String>> rawPatternReferenceList = CSVUtility.readFile(patternsReferenceFile);<NEW_LINE>HashMap<Integer, EnumMap<TrafficEnums.TravelDirection, Integer[]>> processedPatternReferenceList = new HashMap<>();<NE...
(rawPatternReference.get(1));
441,358
private static void drawItemIndicatorLockedDark(Canvas canvas, RectF targetFrame, ResizingBehavior resizing, int indicatorLocked, int lockColor, int indicatorLockedDark, int itemIndicatorColorBackground) {<NEW_LINE>// Resize to Target Frame<NEW_LINE>canvas.save();<NEW_LINE>RectF resizedFrame = CacheForItemIndicatorLock...
0f, 0f, 28f, 28f);
1,412,680
public static void newFutureTaskTransaction(final String type, final String name, final CommandFuture<?> future) {<NEW_LINE>if (!CatConfig.isCatenabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.debug("[newFutureTaskTransaction]{}, {}", type, name);<NEW_LINE>try {<NEW_LINE>executors.execute(new Runnable() {<NEW_L...
Cat.newTransaction(type, name);
88,402
private ExcludeSpec intersectGroup(GroupExclude left, ExcludeSpec right) {<NEW_LINE>String group = left.getGroup();<NEW_LINE>if (right instanceof GroupExclude) {<NEW_LINE>// equality has been tested before so we know groups are different<NEW_LINE>return factory.nothing();<NEW_LINE>} else if (right instanceof ModuleIdEx...
right).getModule()));
162,447
public static void initializeFilterMap(final TSDB tsdb) throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException {<NEW_LINE>final List<TagVFilter> filter_plugins = PluginLoader.loadPlugins(TagVFilter.class)...
getDeclaredMethod("initialize", TSDB.class);
943,301
public void run() {<NEW_LINE>final Object rootObject = getDisplayObjectById(id);<NEW_LINE>if (rootObject == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Object> responders = null;<NEW_LINE>java.lang.Runnable action = null;<NEW_LINE>if (rootObject instanceof NativePropertyResponder) {<NEW_LINE>NativePropertyRespond...
, key, (char) integerValue);
1,209,974
public boolean readableWithWorkOrWorkCompleted(EffectivePerson effectivePerson, String workOrWorkCompleted, PromptException entityException) throws Exception {<NEW_LINE>if (effectivePerson.isManager()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Work work = emc.fetch(workOrWorkCompleted, Work.class, ListTools.toList(Wo...
application().pick(applicationId);
1,606,198
private void calcWidthOfLineHeaderBoxes(Graphics2D g2, FontHandler fontHandler, Vector<String> obj, int numObjects) {<NEW_LINE>// find out the width of the column with the longest text<NEW_LINE>double maxWidth = 0;<NEW_LINE>double maxHeight = 0;<NEW_LINE>for (int i = 0; i < numObjects; i++) {<NEW_LINE>String s = obj.el...
).getHeight(), maxHeight);
981,624
private List<HighLight> computeFirstRowHilites(int rowStart, String left, String right) {<NEW_LINE>List<HighLight> hilites = new ArrayList<HighLight>(4);<NEW_LINE>String leftRows = wordsToRows(left);<NEW_LINE>String rightRows = wordsToRows(right);<NEW_LINE>DiffProvider diffprovider = Lookup.getDefault().lookup(DiffProv...
, rowStart + end, attrs));
200,742
private static void walkGraph(ReportNode node, StringBuilder json) {<NEW_LINE>List<ReportNode> children = node.getChildren();<NEW_LINE>if (node.getData() == null) {<NEW_LINE>// root<NEW_LINE>json.append("<ul id=\"root\">\n");<NEW_LINE>for (int n = 0; n < children.size(); n++) {<NEW_LINE>if (n > 0) {<NEW_LINE>json.appen...
node.getSize()) + "bytes)";
92,476
private Intent createOpenUrlIntentFrom(KrollInvocation invocation, String url) {<NEW_LINE>// Validate argument.<NEW_LINE>if ((url == null) || url.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Create a URI object from the given string.<NEW_LINE>Uri uri = null;<NEW_LINE>if (TiFileFactory.isLocalScheme(url)) {...
tiUrl.baseUrl, url, null);
1,763,422
public void testInputStreamIsClosedByUserBeforeSending() throws Exception {<NEW_LINE>List<IAttachment> <MASK><NEW_LINE>CheckableInputStream inputStream = Util.wrapStream(Util.xmlFile());<NEW_LINE>attachments.add(AttachmentBuilder.newBuilder("file1").inputStream("some.xml", inputStream).contentType(MediaType.APPLICATION...
attachments = new ArrayList<>();
1,090,241
final StartElasticsearchServiceSoftwareUpdateResult executeStartElasticsearchServiceSoftwareUpdate(StartElasticsearchServiceSoftwareUpdateRequest startElasticsearchServiceSoftwareUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startElasticsearchServiceSoftwareUpdateRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
308,783
public void run() {<NEW_LINE>while (!Tray.this.appIsReady) {<NEW_LINE>Tray.this.ti.setImage(Tray.this.progressIcons[this.ic]);<NEW_LINE>if (OS.isMacArchitecture)<NEW_LINE>setDockIcon(Tray.this.progressIcons[this.ic]);<NEW_LINE>this.ic++;<NEW_LINE>if (this.ic >= 4)<NEW_LINE>this.ic = 0;<NEW_LINE>try {<NEW_LINE>Thread.sl...
this.ti.setImage(trayIcon);
622,566
private void store_pubkey(File dbPath, String serverName, String pk) {<NEW_LINE>ArrayList<String> lines = new ArrayList<String>();<NEW_LINE>File vncDir = new File(FileUtils.getVncHomeDir());<NEW_LINE>try {<NEW_LINE>if (dbPath.exists()) {<NEW_LINE>FileReader db = new FileReader(dbPath);<NEW_LINE>BufferedReader dbBuf = n...
i.next() + "\n");
1,087,116
public List<Placement> resolve() {<NEW_LINE>if (entryViews == null || entryViews.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>columns.add(new TimeBoundsColumn());<NEW_LINE>for (EntryViewBase<?> view : entryViews) {<NEW_LINE>boolean added = false;<NEW_LINE>// Try to add the a...
columns = new ArrayList<>();
1,026,654
public void onSessionFinished(@NonNull TerminalSession finishedSession) {<NEW_LINE>TermuxService service = mActivity.getTermuxService();<NEW_LINE>if (service == null || service.wantsToStop()) {<NEW_LINE>// The service wants to stop as soon as possible.<NEW_LINE>mActivity.finishActivityIfNotFinishing();<NEW_LINE>return;...
termuxSession = service.getTermuxSession(index);
1,237,818
final ModifyIdentityIdFormatResult executeModifyIdentityIdFormat(ModifyIdentityIdFormatRequest modifyIdentityIdFormatRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyIdentityIdFormatRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
592,426
protected String processChangeExecutionConcurrencyRequest() {<NEW_LINE>ChangeExecutionConcurrencyParameters changeExecutionConcurrencyParameters = _parameters.changeExecutionConcurrencyParameters();<NEW_LINE>if (changeExecutionConcurrencyParameters == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder sb =...
Integer concurrentInterBrokerPartitionMovements = changeExecutionConcurrencyParameters.concurrentInterBrokerPartitionMovements();
1,790,855
private void printResult(PrintStream printStream, Source source) {<NEW_LINE>String path = source.getPath();<NEW_LINE>int lineCount = source.getLineCount();<NEW_LINE>Set<Integer> nonCoveredLineNumbers = nonCoveredLineNumbers(source);<NEW_LINE>Set<Integer> loadedLineNumbers = coverageMap.get(source).loadedLineNumbers();<...
source.getCharacters(i)));
861,141
/* protobuf only */<NEW_LINE>List<PKeyValue> toProto(Client client) {<NEW_LINE>if (map.isEmpty())<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<PKeyValue> answer = new ArrayList<>();<NEW_LINE>for (Entry<String, Object> entry : map.entrySet()) {<NEW_LINE>if (entry.getValue() == null) {<NEW_LINE>// shortcut: we ...
)).build()));
1,636,963
public void show(final DialogInterface.OnClickListener... listener) {<NEW_LINE>final AlertDialog.Builder builder = Dialogs.newBuilder(getContext());<NEW_LINE>applyCommons(builder);<NEW_LINE>builder.setCancelable(true);<NEW_LINE>if (listener == null || listener.length == 0) {<NEW_LINE>builder.setPositiveButton(getPositi...
(), listener[0]);
644,806
private static List<Byte> flatten(final ConditionNode root, final Map<ConditionNode, Integer> nodeIds) {<NEW_LINE>final List<Byte> flattenedTree = new ArrayList<Byte>();<NEW_LINE>addAll(flattenedTree, getType(root));<NEW_LINE>final List<Byte> payload = getPayload(root);<NEW_LINE>addAll(flattenedTree, ByteHelpers.toBigE...
nodeIds.get(child)));
1,453,056
public static String addLimits(String query, long offSet, long limit) {<NEW_LINE>if (offSet == 0 && limit == -1) {<NEW_LINE>// Nothing to do...<NEW_LINE>return query;<NEW_LINE>}<NEW_LINE>StringBuffer queryString = new StringBuffer();<NEW_LINE>int count = 0;<NEW_LINE>if (query != null) {<NEW_LINE>query = query.toLowerCa...
str, "").trim();
1,622,947
private static Long localTimestampMillisSerializer(Object data, Schema schema, Schema.Type primitiveType, LogicalType logicalType) {<NEW_LINE>LocalDateTime value;<NEW_LINE>if (data instanceof String) {<NEW_LINE>try {<NEW_LINE>value = LocalDateTime.ofInstant(Instant.ofEpochMilli(Long.parseLong((String) data)), ZoneOffse...
) data), ZoneOffset.UTC);
393,264
final ListAcceleratorsResult executeListAccelerators(ListAcceleratorsRequest listAcceleratorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAcceleratorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
648,488
private Path findModelFile(String prefix) {<NEW_LINE>if (Files.isRegularFile(modelDir)) {<NEW_LINE>Path file = modelDir;<NEW_LINE>modelDir = modelDir.getParent();<NEW_LINE>String fileName = file.toFile().getName();<NEW_LINE>if (fileName.endsWith(".json")) {<NEW_LINE>modelName = fileName.substring(0, fileName.length() -...
modelDir.resolve(prefix + ".json");
651,073
public static DescriptorSupport mbeanDescriptor(final boolean immutable, final Class<?> intf, final boolean singleton, final boolean globalSingleton, final String group, final boolean supportsAdoption, final String[] subTypes) {<NEW_LINE>final DescriptorSupport desc = new DescriptorSupport();<NEW_LINE>if (intf == null ...
desc.setField(DESC_STD_IMMUTABLE_INFO, immutable);
500,762
protected void internalTransform(final Body body, String phaseName, Map<String, String> options) {<NEW_LINE>final ExceptionalUnitGraph g = ExceptionalUnitGraphFactory.createExceptionalUnitGraph(body, DalvikThrowAnalysis.v());<NEW_LINE>final LocalDefs defs = G.v().soot_toolkits_scalar_LocalDefsFactory().newLocalDefs(g);...
createThrowStmt(body, s, lc);
1,550,447
public void extractAndSetEsrReference(@NonNull final EntryTransaction2 txDtls, @NonNull final ESRTransactionBuilder trxBuilder) {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Optional<String> esrReferenceNumberString = extractEsrReference(txDtls);<NEW_LINE>if (esrReferenceNumberString.isPres...
.getCtx(), MSG_AMBIGOUS_REFERENCE));
409,652
// @formatter:on<NEW_LINE>@Override<NEW_LINE>PComplex compute(VirtualFrame frame, double real, double imag) {<NEW_LINE>PComplex result = specialValue(factory(), SPECIAL_VALUES, real, imag);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>double rreal;<NEW_LINE>double rimag;<NEW_LINE>if (Math....
/ 2.0)) + LN_2 * 2.0;
373,956
private void convert(OutputStream outputStream, File docs, EPackage ePackage) throws IOException {<NEW_LINE>IfcDoc ifcDoc = null;<NEW_LINE>if (docs != null) {<NEW_LINE>ifcDoc = new IfcDoc(docs);<NEW_LINE>}<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>ObjectNode root = objectMapper.createObjectNode(...
eStructuralFeature.getName(), fieldNode);
764,634
public Request<GetSegmentImportJobsRequest> marshall(GetSegmentImportJobsRequest getSegmentImportJobsRequest) {<NEW_LINE>if (getSegmentImportJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetSegmentImportJobsRequest)");<NEW_LINE>}<NEW_LINE>Request<GetSegmentImportJo...
(getSegmentImportJobsRequest.getToken()));
103,044
private void handlePostTouchScrolling(int velocityX, int velocityY) {<NEW_LINE>// If we aren't going to do anything (send events or snap to page), we can early out.<NEW_LINE>if (!mSendMomentumEvents && !mPagingEnabled && !isScrollPerfLoggingEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check if we are already ha...
postOnAnimationDelayed(this, ReactScrollViewHelper.MOMENTUM_DELAY);
645,325
public void beforeIndexRemoved(IndexService indexService, IndexRemovalReason reason) {<NEW_LINE>if (shouldEvictCacheFiles(reason)) {<NEW_LINE>if (indexService.getMetadata().isSearchableSnapshot()) {<NEW_LINE>final IndexSettings indexSettings = indexService.getIndexSettings();<NEW_LINE>for (IndexShard indexShard : index...
.getSettings()), shardId);
1,824,824
public static GetBoxCodeListResponse unmarshall(GetBoxCodeListResponse getBoxCodeListResponse, UnmarshallerContext context) {<NEW_LINE>getBoxCodeListResponse.setRequestId(context.stringValue("GetBoxCodeListResponse.RequestId"));<NEW_LINE>getBoxCodeListResponse.setErrorCode(context.integerValue("GetBoxCodeListResponse.E...
("GetBoxCodeListResponse.Data[" + i + "].EndTime"));
1,039,051
private void proxyLocationListener(XParam param, int arg, Class<?> interfaze, boolean client) throws Throwable {<NEW_LINE>if (param.args.length > arg)<NEW_LINE>if (param.args[arg] instanceof PendingIntent)<NEW_LINE>param.setResult(null);<NEW_LINE>else if (param.args[arg] != null && param.thisObject != null) {<NEW_LINE>...
mMapProxy.put(key, proxy);
1,009,877
private static void appendGroup(StringBuffer sb, String indent, ThreadGroup tg, java.util.Map<Thread, StackTraceElement[]> data) {<NEW_LINE>sb.append(indent).append("Group ").append(tg.getName()).append('\n');<NEW_LINE><MASK><NEW_LINE>int groups = tg.activeGroupCount();<NEW_LINE>ThreadGroup[] chg = new ThreadGroup[grou...
indent = indent.concat(" ");
1,179,001
public void propertyChange(java.beans.PropertyChangeEvent evt) {<NEW_LINE>if (ExplorerManager.PROP_SELECTED_NODES.equals(evt.getPropertyName())) {<NEW_LINE>final Node[] nodes = (Node[]) evt.getNewValue();<NEW_LINE>boolean res = nodes != null && nodes.length > 0;<NEW_LINE>int i = 0;<NEW_LINE>while (res && i < nodes.leng...
CatalogEntryNode) node).isCatalogWriter();
24,000
public JSONObject toJsonObject(ClassDescriptor cd) throws Exception {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>jsonObject.put("name", cd.getName());<NEW_LINE>if (cd.getCondition() != null && cd.getCondition().getTypeReachable() != null) {<NEW_LINE>JSONObject conditionJsonObject = new JSONObject();<NE...
jsonObject.put("queriedMethods", methodsJsonArray);
446,954
TSpanEvent buildTSpanEvent(SpanEvent spanEvent) {<NEW_LINE>final TSpanEvent tSpanEvent = new TSpanEvent();<NEW_LINE>// if (spanEvent.getStartElapsed() != 0) {<NEW_LINE>// tSpanEvent.setStartElapsed(spanEvent.getStartElapsed());<NEW_LINE>// }<NEW_LINE>// tSpanEvent.setStartElapsed(spanEvent.getStartElapsed());<NEW_LINE>...
> annotations = spanEvent.getAnnotations();
147,518
private void performAndWritePutAll(@NotNull Map<? extends K, ? extends V> m) {<NEW_LINE>Excerpt excerpt = getExcerpt(m.size() * maxMessageSize, putAll);<NEW_LINE>long eventId = excerpt.index();<NEW_LINE>int pos = excerpt.position();<NEW_LINE>// place holder for the actual size.<NEW_LINE>excerpt.writeInt(0);<NEW_LINE>in...
listener = listeners.get(i);
836,746
public static void convolveBorder(GrayS32 integral, IntegralKernel kernel, GrayS32 output, int borderX, int borderY) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, integral.width, x -> {<NEW_LINE>for (int x = 0; x < integral.width; x++) {<NEW_LINE>for (int y = 0; y < borderY; y++) {<NEW_LINE>int total = 0;<N...
b = kernel.blocks[i];
628,570
public void run() {<NEW_LINE>if (zibase != null && eventPublisher != null) {<NEW_LINE>try {<NEW_LINE>// register to zibase for listening<NEW_LINE>zibase.hostRegistering(listenerHost, listenerPort);<NEW_LINE>// bind<NEW_LINE>DatagramSocket serverSocket = new DatagramSocket(listenerPort);<NEW_LINE>byte[] receiveData = ne...
logger.error("Could not open socket to zibase : {}", ex);
821,352
private void loadNode984() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_TranslateBrowsePathsToNodeIdsCount, new QualifiedName(0, "TranslateBrowsePathsToNodeIdsCount"), new LocalizedText("en", "TranslateBrowsePathsToNode...
.expanded(), true));
1,354,297
private static Future<Void> postUserTask(final Source src, final UserTask task, final AtomicReference<Throwable> status) {<NEW_LINE>boolean retry = false;<NEW_LINE><MASK><NEW_LINE>boolean mode = b == null || b.booleanValue();<NEW_LINE>try {<NEW_LINE>retryGuard.set(mode);<NEW_LINE>ParserManager.parse(Collections.singlet...
Boolean b = retryGuard.get();
558,296
public PathAttributes toAttributes(final StorageObject object) {<NEW_LINE>final PathAttributes attributes = new PathAttributes();<NEW_LINE>if (StringUtils.isNotBlank(object.getMd5sum())) {<NEW_LINE>// For manifest files, the ETag in the response for a GET or HEAD on the manifest file is the MD5 sum of<NEW_LINE>// the c...
, e.getMessage()));
1,143,937
public ResultStatus modifyTopic(Long clusterId, String topicName, String description, String operator) {<NEW_LINE>try {<NEW_LINE>if (!PhysicalClusterMetadataManager.isTopicExist(clusterId, topicName)) {<NEW_LINE>return ResultStatus.TOPIC_NOT_EXIST;<NEW_LINE>}<NEW_LINE>TopicDO topicDO = <MASK><NEW_LINE>if (ValidateUtils...
topicDao.getByTopicName(clusterId, topicName);
1,655,473
private static NBTTagCompound migrate(ItemStack stack, NBTTagCompound nbt) {<NEW_LINE>Block block = null, blockAlt = null;<NEW_LINE>int metadata = 0, metadataAlt;<NEW_LINE>PipeWire wire = null;<NEW_LINE>if (nbt.hasKey("id"))<NEW_LINE>block = Block.REGISTRY.getObjectById(nbt.getInteger("id"));<NEW_LINE>else if (nbt.hasK...
metadata = nbt.getInteger("meta");
1,270,716
protected void encodeListLayout(FacesContext context, DataView dataview) throws IOException {<NEW_LINE>DataViewListItem list = dataview.getListItem();<NEW_LINE>if (list != null) {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>int first = dataview.getFirst();<NEW_LINE>int rows = dataview.getRows...
writer.startElement("li", null);
982,709
// Visible for testing<NEW_LINE>static SpanExporter configureOtlp(ConfigProperties config, MeterProvider meterProvider) {<NEW_LINE>String protocol = OtlpConfigUtil.getOtlpProtocol(DATA_TYPE_TRACES, config);<NEW_LINE>if (protocol.equals(PROTOCOL_HTTP_PROTOBUF)) {<NEW_LINE>ClasspathUtil.<MASK><NEW_LINE>OtlpHttpSpanExport...
checkClassExists("io.opentelemetry.exporter.otlp.http.trace.OtlpHttpSpanExporter", "OTLP HTTP Trace Exporter", "opentelemetry-exporter-otlp-http-trace");
446,974
private Instant truncateAsLocalTime(Instant instant, final ZoneRules rules) {<NEW_LINE>assert unitRoundsToMidnight == false : "truncateAsLocalTime should not be called if unitRoundsToMidnight";<NEW_LINE>LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, timeZone);<NEW_LINE>final LocalDateTime truncatedLocal...
(offsetIndex)).toInstant();
1,082,873
public static void horizontal11(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>fina...
k5 = kernel.data[4];
1,021,990
public OcamlLibrary createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, PrebuiltOcamlLibraryDescriptionArg args) {<NEW_LINE>boolean bytecodeOnly = args.getBytecodeOnly();<NEW_LINE>String libDir = args.getLibDir();<NEW_LINE>String nativeLib = args.getNativeLi...
collect(ImmutableList.toImmutableList());
1,025,612
public void process(double[] input, double[] output) {<NEW_LINE>decodeParameters(input, cameras, planeAtInfinity);<NEW_LINE>// Compute the Q matrix,<NEW_LINE>encodeQ(cameras.get(viewToCamera.get(0)), planeAtInfinity.x, planeAtInfinity.<MASK><NEW_LINE>int indexOutput = 0;<NEW_LINE>for (int projectiveIdx = 0; projectiveI...
y, planeAtInfinity.z, Q);
1,133,557
void canvassPosition(final ExclusivePublication publication, final long logLeadershipTermId, final long logPosition, final long leadershipTermId, final int followerMemberId) {<NEW_LINE>if (null == publication) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int length = MessageHeaderEncoder.ENCODED_LENGTH + CanvassPositio...
} while (--attempts > 0);
1,810,040
public void testQuartzJobInitializesWithAppComponentContext() throws Exception {<NEW_LINE>//<NEW_LINE>JobDetail //<NEW_LINE>job = //<NEW_LINE>JobBuilder.newJob(LookupOnInitJob.class).//<NEW_LINE>withIdentity("testQuartzJobInitializesWithAppComponentContext-job").build();<NEW_LINE>//<NEW_LINE>Trigger //<NEW_LINE>onceAft...
(job.getKey()));
1,743,155
private static void multipartUpload(String bucketName, String key) throws IOException {<NEW_LINE>int mB = 1024 * 1024;<NEW_LINE>// snippet-start:[s3.java2.s3_object_operations.upload_multi_part]<NEW_LINE>// First create a multipart upload and get the upload id<NEW_LINE>CreateMultipartUploadRequest createMultipartUpload...
response = s3.createMultipartUpload(createMultipartUploadRequest);
866,945
private GraphObject handleCreateAction(final ActionContext actionContext, final java.util.Map<String, java.lang.Object> parameters, final EventContext eventContext) throws FrameworkException {<NEW_LINE>final SecurityContext securityContext = actionContext.getSecurityContext();<NEW_LINE>// create new object of type?<NEW...
throw new FrameworkException(422, "Cannot execute create action without target type (data-structr-target attribute).");
1,407,966
public TableExportResult storeResults(TableExport tableExport, Observable<String> result) {<NEW_LINE>log.debug("store TableExportResults for Download");<NEW_LINE>String extension = this.isExtensionEnabled() ? tableExport.getResultType().getFileExtensionType().getExtension() : FileExtensionType.NONE.getExtension();<NEW_...
setMessage(message.toString());
1,387,584
public static void inverseN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels, int minValue, int maxValue) {<NEW_LINE>if (numLevels == 1) {<NEW_LINE>inverse1(desc, input, output, storage, minValue, maxValue);<NEW_LINE>PixelMath.boundImage(output, minValue, maxValue);<NEW...
storage.reshape(width, height);
1,726,390
private void inlineArguments() {<NEW_LINE>int valueType = type.getValueType();<NEW_LINE>int l = args.length;<NEW_LINE>int count = l;<NEW_LINE>for (int i = 0; i < l; i++) {<NEW_LINE>Expression arg = args[i];<NEW_LINE>if (arg instanceof ConcatenationOperation && arg.getType().getValueType() == valueType) {<NEW_LINE>count...
0, newArguments, offset, innerLength);
46,005
private static void refreshNavigatorInternal(IViewPart viewPart, Object element, Object selection) {<NEW_LINE>if (viewPart == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (viewPart instanceof CommonNavigator) {<NEW_LINE>CommonViewer viewer = ((CommonNavigator) viewPart).getCommonViewer();<NEW_LINE>if (element == nul...
getClass().getSimpleName());
1,507,175
final protected void configureScramSha(SecurityProtocol securityProtocol) {<NEW_LINE>if (this.getUserName() == null || this.getUserName().isEmpty()) {<NEW_LINE>throw new InvalidParameterException("User name for SCRAM-SHA is not set");<NEW_LINE>}<NEW_LINE>final String saslJaasConfigEncrypted = ResourceManager.kubeClient...
getData().get("sasl.jaas.config");
974,801
private void removeLockKey() {<NEW_LINE>if (RedisLockRegistry.this.unlinkAvailable) {<NEW_LINE>try {<NEW_LINE>RedisLockRegistry.this.redisTemplate.execute(RedisLockRegistry.this.unLinkUnLockScript, Collections.singletonList(this.lockKey), RedisLockRegistry.this.unLockChannelKey);<NEW_LINE>return;<NEW_LINE>} catch (Exce...
"falling back to the regular DELETE command: " + ex.getMessage());
1,641,100
private void applyAssumeRole(ServerSideEncryptingAmazonS3.Builder s3ClientBuilder, S3InputSourceConfig s3InputSourceConfig, AWSCredentialsProvider awsCredentialsProvider) {<NEW_LINE>String assumeRoleArn = s3InputSourceConfig.getAssumeRoleArn();<NEW_LINE>if (assumeRoleArn != null) {<NEW_LINE>String roleSessionName = Str...
withCredentials(roleCredentialsProviderBuilder.build());
1,615,825
private static boolean optionMatches(BuildOptionDetails options, String optionName, Object expectedValue) {<NEW_LINE>Object actualValue = options.getOptionValue(optionName);<NEW_LINE>if (actualValue == null) {<NEW_LINE>return expectedValue == null;<NEW_LINE>// Single-value case:<NEW_LINE>} else if (!options.allowsMulti...
Entry<?, ?>) elem;
1,303,542
public void draw(Batch batch, float parentAlpha) {<NEW_LINE>validate();<NEW_LINE>drawBackground(batch, parentAlpha);<NEW_LINE>BitmapFont font = style.font;<NEW_LINE>Drawable selectedDrawable = style.selection;<NEW_LINE>Color fontColorSelected = style.fontColorSelected;<NEW_LINE>Color fontColorUnselected = style.fontCol...
b, color.a * parentAlpha);
1,063,102
private void createAccountingRecord(String tableName) throws Exception {<NEW_LINE>MTable table = MTable.get(m_ctx, tableName);<NEW_LINE>PO acct = table.getPO(0, m_trx.getTrxName());<NEW_LINE>MColumn[] cols = table.getColumns(false);<NEW_LINE>for (MColumn c : cols) {<NEW_LINE>String columnName = c.getColumnName();<NEW_L...
setAD_Client_ID(m_client.getAD_Client_ID());
956,491
final UpdateFieldLevelEncryptionConfigResult executeUpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest updateFieldLevelEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFieldLevelEncryptionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
6,533
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>if (jsonReader.readIfNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (jsonReader.nextIfMatch('[')) {<NEW_LINE>Integer[] values = new Integer[16];<NEW_LINE>int size = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>if (j...
++] = jsonReader.readInt32();
1,422,346
public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE><MASK><NEW_LINE>final Dimension2D dim = comp.getPreferredDimension(stringBounder);<NEW_LINE>double x1 = getPoint1Value(stringBounder);<NEW_LINE>double x2 = getPoint2Value(stringBounder);<NEW_LINE>final int leve...
final Component comp = getComponent(stringBounder);
747,273
private CompletableFuture<? extends IntObjectMap<StreamBucket>> doFetch(FetchTask fetchTask, IntObjectMap<IntArrayList> toFetch) throws Exception {<NEW_LINE>HashMap<RelationName, TableFetchInfo> tableFetchInfos = getTableFetchInfos(fetchTask);<NEW_LINE>// RamAccounting is per doFetch call instead of per FetchTask/fetch...
var toFetchIt = toFetch.iterator();