idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,158,380
private void rebuildToolbar() {<NEW_LINE>toolbar.removeAll();<NEW_LINE>toolbar.setFocusable(false);<NEW_LINE>// scope buttons<NEW_LINE>List<TaskScanningScope> scopes = ScanningScopeList.getDefault().getTaskScanningScopes();<NEW_LINE>for (TaskScanningScope scope : scopes) {<NEW_LINE>final ScopeButton scopeButton <MASK><...
= new ScopeButton(taskManager, scope);
1,445,726
public void postInitialize(Python3Core core) {<NEW_LINE>super.postInitialize(core);<NEW_LINE>PythonContext context = core.getContext();<NEW_LINE>PythonModule mod = core.lookupBuiltinModule(__GRAALPYTHON__);<NEW_LINE>PythonLanguage language = context.getLanguage();<NEW_LINE>if (!ImageInfo.inImageBuildtimeCode()) {<NEW_L...
"in_image", ImageInfo.inImageCode());
1,181,209
public static IMouseStateChange exitNode(final CStateFactory<?, ?> m_factory, final MouseEvent event, final HitInfo hitInfo, final IMouseState state) {<NEW_LINE>if (hitInfo.hasHitNodeLabels()) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>} else if (hitInfo.hasHitEdges()) {<NEW_LINE>return CHitEdgesTransformer...
m_factory.createDefaultState(), false);
283,960
public Optional<Node<S, A>> findNode(Problem<S, A> problem, Queue<Node<S, A>> frontier) {<NEW_LINE>clearMetrics();<NEW_LINE>this.frontier = frontier;<NEW_LINE>nodeComparator = (frontier instanceof PriorityQueue<?>) ? ((PriorityQueue<Node<S, A>>) frontier).comparator() : null;<NEW_LINE>Node<S, A> root = nodeFactory.crea...
<S, A> solution = null;
268,504
private void handleUnManagedOSDiskContainers() {<NEW_LINE>if (this.innerModel() == null || this.innerModel().virtualMachineProfile() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final VirtualMachineScaleSetStorageProfile storageProfile = innerModel().virtualMachineProfile().storageProfile();<NEW_LINE>if (isManagedDi...
.<StorageAccount>taskResult(storageAccountKey);
945,916
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), con...
ValidatorFactory.getInstance(Validator.INTEGER);
144,021
public static final void _idct4x4(int[] block, int[] out) {<NEW_LINE>// Horisontal<NEW_LINE>for (int i = 0; i < 16; i += 4) {<NEW_LINE>int e0 = block[i<MASK><NEW_LINE>int e1 = block[i] - block[i + 2];<NEW_LINE>int e2 = (block[i + 1] >> 1) - block[i + 3];<NEW_LINE>int e3 = block[i + 1] + (block[i + 3] >> 1);<NEW_LINE>ou...
] + block[i + 2];
1,568,201
final ListVolumeInitiatorsResult executeListVolumeInitiators(ListVolumeInitiatorsRequest listVolumeInitiatorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVolumeInitiatorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,455,527
// action_fillTree<NEW_LINE>public DefaultMutableTreeNode parent(MPPProductBOMLine bomline) {<NEW_LINE>log.fine("In parent with X_PP_Product_BOMLine");<NEW_LINE>MProduct M_Product = MProduct.get(Env.getCtx(), bomline.getM_Product_ID());<NEW_LINE>MUOM UOM = new MUOM(Env.getCtx(), M_Product.getC_UOM_ID(), null);<NEW_LINE...
Timestamp) bomline.getValidTo());
249,346
public Request<DescribeHostsRequest> marshall(DescribeHostsRequest describeHostsRequest) {<NEW_LINE>if (describeHostsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeHostsRequest> request = new DefaultRequest<DescribeHostsReques...
> valuesList = filterMember.getValues();
228,653
public void incrCounter(String group, String counterName, long incr) {<NEW_LINE>PigStatusReporter reporter = PigStatusReporter.getInstance();<NEW_LINE>if (reporter != null) {<NEW_LINE>// common case<NEW_LINE>Counter counter = reporter.getCounter(group, counterName);<NEW_LINE>if (counter != null) {<NEW_LINE>HadoopCompat...
), entry.getValue());
374,784
ActionResult<JsonElement> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, String path7) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Action...
result = new ActionResult<>();
1,608,901
public void onEventMainThread(AmazonIapManager.AmazonIapAvailabilityEvent event) {<NEW_LINE>binding.progressBarAmazonBilling.setVisibility(View.GONE);<NEW_LINE>// enable or disable purchase buttons based on what can be purchased<NEW_LINE>binding.buttonAmazonBillingSubscribe.setEnabled(event<MASK><NEW_LINE>binding.butto...
.subscriptionAvailable && !event.userHasActivePurchase);
1,103,860
public PayResponse pay(PayRequest request) {<NEW_LINE>AliPayTradeCreateRequest payRequest = new AliPayTradeCreateRequest();<NEW_LINE>payRequest.setMethod(AliPayConstants.ALIPAY_TRADE_APP_PAY);<NEW_LINE>payRequest.setAppId(aliPayConfig.getAppId());<NEW_LINE>payRequest.setTimestamp(LocalDateTime.now().format(formatter));...
setNotifyUrl(aliPayConfig.getNotifyUrl());
143,680
public void runSupport() {<NEW_LINE>List<Object[]> to_process;<NEW_LINE>synchronized (share_requests) {<NEW_LINE>to_process = new ArrayList<>(share_requests);<NEW_LINE>}<NEW_LINE>for (Object[] entry : to_process) {<NEW_LINE>try {<NEW_LINE>String key = (String) entry[0];<NEW_LINE>File file = (File) entry[1];<NEW_LINE>St...
dm = PluginCoreUtils.unwrap(download);
831,096
private Float convertToDegree(String stringDMS) {<NEW_LINE>Float result = null;<NEW_LINE>String[] DMS = stringDMS.split(",", 3);<NEW_LINE>String[] stringD = DMS[0].split("/", 2);<NEW_LINE>Double D0 = Double.valueOf(stringD[0]);<NEW_LINE>Double D1 = Double.valueOf(stringD[1]);<NEW_LINE>double FloatD = D0 / D1;<NEW_LINE>...
) + (FloatS / 3600));
1,461,554
private BBSSubjectAttachment concreteAttachment(StorageMapping mapping, BBSSubjectInfo subject, String name, EffectivePerson effectivePerson, String site) throws Exception {<NEW_LINE>BBSSubjectAttachment attachment = new BBSSubjectAttachment();<NEW_LINE>String fileName = UUID.randomUUID().toString();<NEW_LINE>String ex...
StringUtils.substringAfterLast(name, "\\");
1,400,174
public static DescribeDohDomainStatisticsSummaryResponse unmarshall(DescribeDohDomainStatisticsSummaryResponse describeDohDomainStatisticsSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDohDomainStatisticsSummaryResponse.setRequestId(_ctx.stringValue("DescribeDohDomainStatisticsSummaryResponse.RequestId")...
("DescribeDohDomainStatisticsSummaryResponse.Statistics[" + i + "].TotalCount"));
300,076
private void writeVersionAccessorClass(ClassNode classNode) throws IOException {<NEW_LINE>boolean isProvider = classNode.isAlsoProvider();<NEW_LINE>String interfaces = isProvider ? " implements VersionNotationSupplier" : "";<NEW_LINE>String versionsClassName = classNode.getClassName();<NEW_LINE>Set<String> versionAlias...
writeLn("public " + versionsClassName + "(ProviderFactory providers, DefaultVersionCatalog config) { super(providers, config); }");
1,617,815
public boolean processIt(ProcessInfo pi, Trx trx, boolean managedTrx) {<NEW_LINE>if (pi.getAD_PInstance_ID() == 0) {<NEW_LINE>MPInstance pInstance = new MPInstance(this, pi.getRecord_ID());<NEW_LINE>// Lock<NEW_LINE>pInstance.setIsProcessing(true);<NEW_LINE>pInstance.saveEx();<NEW_LINE>}<NEW_LINE>boolean ok = false;<NE...
getCtx(), pi, trx);
897,439
protected String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_LINE>sb.append("[").append(getHeaderName()).append(" (").append(length()).append(" bytes)]").append(ls);<NEW_LINE>sb.append(" Frame Control:").append(ls).append(frameControl....
(address2).append(ls);
933,746
private MessageSecurity[] expand(MessageSecurity[] bindingData) {<NEW_LINE>MessageSecurity[] result = new MessageSecurity[0];<NEW_LINE>if (bindingData != null && bindingData.length > 0) {<NEW_LINE>ArrayList bindings = new ArrayList(bindingData.length * 10);<NEW_LINE>for (int i = 0; i < bindingData.length; i++) {<NEW_LI...
newMessage = newMS.getMessage(j);
1,223,537
private JRFillVariable addVariable(JRVariable parentVariable, List<JRFillVariable> variableList, JRFillObjectFactory factory) {<NEW_LINE>JRFillVariable variable = factory.getVariable(parentVariable);<NEW_LINE>CalculationEnum calculation = variable.getCalculationValue();<NEW_LINE>switch(calculation) {<NEW_LINE>case AVER...
addVariable(varianceVar, variableList, factory);
1,341,836
private void checkRequiredProperties(Node parent, MappingNode map, YType type, Map<String, YTypedProperty> beanProperties, DynamicSchemaContext dc) {<NEW_LINE>Set<String> foundProps = NodeUtil.getScalarKeys(map);<NEW_LINE>boolean allPropertiesKnown = beanProperties.keySet().containsAll(foundProps);<NEW_LINE>// Don't ch...
.findFirst().get();
262,948
private VisualSampleEntry createSampleEntry() {<NEW_LINE>VisualSampleEntry visualSampleEntry = new VisualSampleEntry("hvc1");<NEW_LINE>visualSampleEntry.setDataReferenceIndex(1);<NEW_LINE>visualSampleEntry.setDepth(24);<NEW_LINE>visualSampleEntry.setFrameCount(1);<NEW_LINE>visualSampleEntry.setHorizresolution(72);<NEW_...
ppsArray = new HevcDecoderConfigurationRecord.Array();
1,228,568
protected void encodeDefaultContent(FacesContext context, Chip chip) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>if (chip.getImage() != null) {<NEW_LINE>writer.startElement("img", null);<NEW_LINE>writer.writeAttribute("src", chip.getImage(), null);<NEW_LINE>writer.endElem...
writeAttribute("class", removeIconStyleClass, null);
1,365,590
public Object resolve(String key) {<NEW_LINE>switch(key) {<NEW_LINE>case "title":<NEW_LINE>return <MASK><NEW_LINE>case "description":<NEW_LINE>return TaskFieldAdapters.DESCRIPTION.get(mContentSet);<NEW_LINE>case "checklist":<NEW_LINE>return TaskFieldAdapters.CHECKLIST.get(mContentSet);<NEW_LINE>case "location":<NEW_LIN...
TaskFieldAdapters.TITLE.get(mContentSet);
462,709
final CreateAutoPredictorResult executeCreateAutoPredictor(CreateAutoPredictorRequest createAutoPredictorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAutoPredictorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(createAutoPredictorRequest));
1,155,949
public synchronized void updateInfo(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>HttpSession httpSession = request.getSession();<NEW_LINE>this.lastAccessTime = System.currentTimeMillis();<NEW_LINE>this<MASK><NEW_LINE>this.lastRemoteUserAgent = request.getHeader("User-Agent");<NEW_LINE>this.cache...
.lastRemoteAddr = request.getRemoteAddr();
1,225,189
// visible for tests<NEW_LINE>static Settings additionalSettings(final Settings settings, final boolean enabled) {<NEW_LINE>if (enabled) {<NEW_LINE>final Settings.Builder builder = Settings.builder();<NEW_LINE>builder.put(SecuritySettings.addTransportSettings(settings));<NEW_LINE>if (NetworkModule.HTTP_TYPE_SETTING.exi...
NetworkModule.HTTP_TYPE_SETTING.get(settings);
141,713
public void assertMutable(String listname, PropertyChangeEvent evt) {<NEW_LINE>if (task.getState().isConfigurable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String method = null;<NEW_LINE>if (evt instanceof ObservableList.ElementEvent) {<NEW_LINE>switch(((ObservableList.ElementEvent) evt).getChangeType()) {<NEW_LINE>cas...
format("%s.%s", listname, "removeAll()");
1,546,450
void handleMessage(Message msg) {<NEW_LINE>if (msg instanceof APIIsReadyToGoMsg) {<NEW_LINE>handle((APIIsReadyToGoMsg) msg);<NEW_LINE>} else if (msg instanceof APIGetVersionMsg) {<NEW_LINE>handle((APIGetVersionMsg) msg);<NEW_LINE>} else if (msg instanceof APIGetCurrentTimeMsg) {<NEW_LINE>handle((APIGetCurrentTimeMsg) m...
"Not an APIMessage.Message ID is " + msg.getId());
372,725
public Dependency[] parse(Document document) {<NEW_LINE>if (xpath == null) {<NEW_LINE>xpath = XmlUtils.createXPathExpression("/project/dependencies/dependency");<NEW_LINE>}<NEW_LINE>if (JavaCore.getClasspathVariable(MVN_REPO) == null) {<NEW_LINE>throw new IllegalStateException(Services.getMessage("mvn.repo.not.set", MV...
item(0).getFirstChild();
751,922
public LaunchTemplatePrivateDnsNameOptionsRequest unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>LaunchTemplatePrivateDnsNameOptionsRequest launchTemplatePrivateDnsNameOptionsRequest = new LaunchTemplatePrivateDnsNameOptionsRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
().unmarshall(context));
553,068
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>long begin = profilingEnabled ? System.nanoTime() : 0;<NEW_LINE>try {<NEW_LINE>if (found) {<NEW_LINE>return new OInternalResultSet();<NEW_LINE>}<NEW_LINE>ODatab...
clusterId = db.getClusterIdByName(clusterName);
723,323
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputBlacklistRequest inputData = getRequestBody(request.<MASK><NEW_LINE>if (inputData != null && !StringUtil.isNullOrEmpty(inputData.getUserId()) && !StringUtil.isNullOrEmpty(inputD...
getNettyRequest(), InputBlacklistRequest.class);
936,850
public Map<String, Object> asMap() {<NEW_LINE>final Map<String, Object> <MASK><NEW_LINE>for (Method method : this.getClass().getMethods()) {<NEW_LINE>if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) {<NEW_LINE>final String fieldName = method.getName().substring(3).toLowerCase(Locale.ENG...
result = new HashMap<>();
5,387
final EventSubscription executeCreateEventSubscription(CreateEventSubscriptionRequest createEventSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aw...
(super.beforeMarshalling(createEventSubscriptionRequest));
1,830,424
public boolean onActivate(Item item, Player player) {<NEW_LINE>if (item.getId() == Item.DYE && item.getDamage() == 0x0F) {<NEW_LINE>if (player != null && (player.gamemode & 0x01) == 0) {<NEW_LINE>item.count--;<NEW_LINE>}<NEW_LINE>this.level.<MASK><NEW_LINE>ObjectTallGrass.growGrass(this.getLevel(), this, new NukkitRand...
addParticle(new BoneMealParticle(this));
259,680
final DescribeLocationObjectStorageResult executeDescribeLocationObjectStorage(DescribeLocationObjectStorageRequest describeLocationObjectStorageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLocationObjectStorageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
188,996
final PutBotAliasResult executePutBotAlias(PutBotAliasRequest putBotAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putBotAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
307,349
private CombinedStatistics runAnalysis(Runtime runtime, long t0, EngineArguments args, MutationEngine engine) {<NEW_LINE>CoverageDatabase coverageData = coverage().calculateCoverage();<NEW_LINE>HistoryStore history = this.strategies.history();<NEW_LINE>LOG.fine("Used memory after coverage calculation " + ((runtime.tota...
registerEnd(Timings.Stage.BUILD_MUTATION_TESTS);
904,075
/*<NEW_LINE>* This method is intended for internal use only, and should only<NEW_LINE>* be called by other classes for unit testing.<NEW_LINE>*/<NEW_LINE>protected void applyOverrides(Alert alert) {<NEW_LINE>if (this.alertOverrides.isEmpty()) {<NEW_LINE>// Nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String chang...
alert.getPluginId() + ".description");
70,424
void createOAuth2ClientFilter(BeanReference requestCache, BeanReference authenticationManager, BeanReference authenticationFilterSecurityContextRepositoryRef) {<NEW_LINE>Element oauth2ClientElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.OAUTH2_CLIENT);<NEW_LINE>if (oauth2ClientElt == null) {<NEW_LINE>re...
).generateBeanName(this.authorizationCodeGrantFilter);
1,678,643
private String generateClientPhaseTimeCostSpan(RpcInvokeContext context) {<NEW_LINE>TreeMap<String, String> resultMap = new TreeMap<>();<NEW_LINE>Long routerTime = (Long) context.get(RpcConstants.INTERNAL_KEY_CLIENT_ROUTER_TIME_NANO);<NEW_LINE>Long connTime = (Long) context.get(RpcConstants.INTERNAL_KEY_CONN_CREATE_TIM...
context.get(RpcConstants.INTERNAL_KEY_REQ_SERIALIZE_TIME_NANO);
378,125
public Message merge(Iterable<Message> summaries) {<NEW_LINE>List<PrimitiveVS<Event>> eventsToMerge = new ArrayList<>();<NEW_LINE>List<PrimitiveVS<Machine>> targetsToMerge = new ArrayList<>();<NEW_LINE>List<VectorClockVS> clocksToMerge = new ArrayList<>();<NEW_LINE>Map<Event, UnionVS> newPayload = new HashMap<>();<NEW_...
targetsToMerge.add(summary.target);
1,835,132
private void parseAdtsHeader() throws ParserException {<NEW_LINE>adtsScratch.setPosition(0);<NEW_LINE>if (!hasOutputFormat) {<NEW_LINE>int audioObjectType = adtsScratch.readBits(2) + 1;<NEW_LINE>if (audioObjectType != 2) {<NEW_LINE>// The stream indicates AAC-Main (1), AAC-SSR (3) or AAC-LTP (4). When the stream indica...
MICROS_PER_SECOND * 1024) / format.sampleRate;
1,209,885
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String method = InputParser.parseStringOrThrowError(input, "method", false);<NEW_LINE>String token = InputParser.parseStringOr...
, Utils.exceptionStacktraceToString(e));
1,173,485
public void dfs(int i, int j, String result, boolean[][] visited, Trie tree, List<String> results, char[][] board) {<NEW_LINE>// System.out.println(result);<NEW_LINE>if (!tree.isPrefix(result)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (tree.search(result) && !set.contains(result)) {<NEW_LINE>results.add(result);<NEW_L...
visited, tree, results, board);
831,151
public String buildGetMeetingsResponse(Collection<Meeting> meetings, String msgKey, String msg, String returnCode) {<NEW_LINE>ArrayList<MeetingResponseDetail> meetingResponseDetails = new ArrayList<MeetingResponseDetail>();<NEW_LINE>for (Meeting meeting : meetings) {<NEW_LINE>String createdOn = formatPrettyDate(meeting...
data.put("meetingDetailsList", meetingResponseDetails);
396,794
public void write(byte[] bytes, int off, int len) throws IOException {<NEW_LINE>// if httpResponse.setContentType(x) has been called with !x.contains("text/html"),<NEW_LINE>// then no need to continue scanning for the beforeTag<NEW_LINE>if (injectionCanceled) {<NEW_LINE>super.write(bytes, off, len);<NEW_LINE>} else {<N...
String content = htmlToInject.getContent();
1,589,993
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Bundle args = Preconditions.checkNotNull(getArguments());<NEW_LINE><MASK><NEW_LINE>thumbnail = args.getBoolean(THUMBNAIL_KEY);<NEW_LINE>fullRequest = GlideApp.with(this).asDrawable().centerCrop();<NEW_L...
photoSize = args.getInt(IMAGE_SIZE_KEY);
1,155,740
private static void plainValidationInternal(ValidationContext vCxt, Graph data, Node node, Shape shape) {<NEW_LINE>Collection<Node> focusNodes;<NEW_LINE>if (node != null) {<NEW_LINE>if (!VLib.isFocusNode(shape, node, data))<NEW_LINE>return;<NEW_LINE>focusNodes = Collections.singleton(node);<NEW_LINE>} else {<NEW_LINE>f...
vCxt, data, shape, focusNode);
531,731
TypeDescriptor replaceInternalTypeDescriptors(TypeReplacer fn, Set<TypeDescriptor> seen) {<NEW_LINE>List<MASK><NEW_LINE>List<TypeDescriptor> newtypeArguments = replaceTypeDescriptors(typeArguments, fn, seen);<NEW_LINE>if (!typeArguments.equals(newtypeArguments)) {<NEW_LINE>return Builder.from(this).setTypeArgumentDescr...
<TypeDescriptor> typeArguments = getTypeArgumentDescriptors();
570,257
public Contributor unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Contributor contributor = new Contributor();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
class).unmarshall(context));
1,270,848
protected void checkNeighbors(int cx, int cy, float score, float flowX, float flowY, ImageFlow output) {<NEW_LINE>int x0 = Math.max(0, cx - regionRadius);<NEW_LINE>int x1 = Math.min(output.width, cx + regionRadius + 1);<NEW_LINE>int y0 = Math.max(0, cy - regionRadius);<NEW_LINE>int y1 = Math.min(output.height, cy + reg...
f.set(flowX, flowY);
540,914
public void parse(Model target, MPSParser parser, int i) throws Exception {<NEW_LINE>parser.model(target, instance, maximize, <MASK><NEW_LINE>if (i == 0) {<NEW_LINE>Solver solver = target.getSolver();<NEW_LINE>if (target.getNbRealVar() == 0) {<NEW_LINE>target.getSolver().setSearch(Search.intVarSearch(new FirstFail(targ...
ninf, pinf, ibex, noeq);
1,606,585
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimeEvent(env, "2002-05-1T7:00:00.000");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplTwo = "@public create context NestedContext as start (0, 8, *, *, *) end (0, 9, *, *, *)";<NEW_LINE>env.compileDeploy(eplTwo, path);<NEW_LINE>env.mil...
[] { "E2", 1L });
1,843,604
private void refreshUI() {<NEW_LINE>int index = lCategories.getSelectedIndex();<NEW_LINE>if (index < 0) {<NEW_LINE>// no category selected<NEW_LINE>cbForeground.setEnabled(false);<NEW_LINE>cbBackground.setEnabled(false);<NEW_LINE>cbEffectColor.setEnabled(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>cbForeground.setEnab...
((ColorComboBox) cbBackground, inheritedBackground);
1,546,501
final ListFindingsReportsResult executeListFindingsReports(ListFindingsReportsRequest listFindingsReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFindingsReportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,167,409
public Text unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Text text = new Text();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if (token =...
JsonToken token = context.getCurrentToken();
267,590
private HashMap<String, DBObject> loadDBObjects(Class objectClass) {<NEW_LINE>// the return value - an empty hashmap if something goes wrong<NEW_LINE>HashMap<String, DBObject> objectMap = new HashMap<String, DBObject>();<NEW_LINE>// create an object of the class we want to load (just for access to its static members)<N...
= new DBObject(this, objectClass);
541,050
public Map<File, Properties> processPartsExtended(final Payload.Inbound inboundPayload) throws Exception {<NEW_LINE>if (inboundPayload == null) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>final Map<File, Properties> result = new <MASK><NEW_LINE>boolean isReportProcessed = false;<NEW_LINE>Part possible...
LinkedHashMap<File, Properties>();
462,327
public void associateCookie(final AgentIdentifier agentIdentifier, final String cookie) {<NEW_LINE>final String uuid = agentIdentifier.getUuid();<NEW_LINE>final String key = agentCacheKey(uuid);<NEW_LINE>List<String> uuids = singletonList(agentIdentifier.getUuid());<NEW_LINE>AgentMutex <MASK><NEW_LINE>synchronized (mut...
mutex = agentMutexes.acquire(uuids);
1,812,731
protected void parseRelations(List<Osmformat.Relation> rels) {<NEW_LINE>if (parsePhase != OsmParserPhase.Relations) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Osmformat.Relation i : rels) {<NEW_LINE>OSMRelation tmp = new OSMRelation();<NEW_LINE>tmp.setId(i.getId());<NEW_LINE>for (int j = 0; j < i.getKeysCount(); j++) ...
lastMid + i.getMemids(j);
1,657,537
static public HashMap<String, String> readSettings(File inputFile) {<NEW_LINE>HashMap<String, String> outgoing = new HashMap<>();<NEW_LINE>// return empty hash<NEW_LINE>if (!inputFile.exists())<NEW_LINE>return outgoing;<NEW_LINE>String[] lines = PApplet.loadStrings(inputFile);<NEW_LINE>for (int i = 0; i < lines.length;...
equals + 1).trim();
40,701
public boolean want(Edge e) {<NEW_LINE>String tgtMethod = e.tgt().toString();<NEW_LINE>String tgtClass = e.tgt().getDeclaringClass().toString();<NEW_LINE>String srcMethod = e<MASK><NEW_LINE>String srcClass = e.src().getDeclaringClass().toString();<NEW_LINE>// Remove Deep Library Calls<NEW_LINE>if (tgtClass.startsWith("...
.src().toString();
1,387,069
public Assignment convert(org.eclipse.jdt.internal.compiler.ast.CompoundAssignment expression) {<NEW_LINE>Assignment assignment = new Assignment(this.ast);<NEW_LINE>Expression <MASK><NEW_LINE>assignment.setLeftHandSide(lhs);<NEW_LINE>int start = lhs.getStartPosition();<NEW_LINE>assignment.setSourceRange(start, expressi...
lhs = convert(expression.lhs);
208,446
private static int textRunDirectionByContent(String ptext) {<NEW_LINE>if (ptext == null || ptext.length() == 0) {<NEW_LINE>return PdfWriter.RUN_DIRECTION_NO_BIDI;<NEW_LINE>}<NEW_LINE>Bidi bidi = new Bidi();<NEW_LINE>bidi.setPara(ptext, Bidi.LTR, null);<NEW_LINE>byte direction = bidi.getDirection();<NEW_LINE>if (directi...
] levels = bidi.getLevels();
211,355
private void fillQueue(String filepath, String inputName, InputStream input, ErrorHandler errHandler, boolean closeStream, boolean validate, boolean reallyCreateNoncompliantDeprecated) throws SAXException, IOException {<NEW_LINE>DefaultContentHandlerWrapper contentHandler = new DefaultContentHandlerWrapper(errHandler, ...
saxParserFactory.setFeature("http://xml.org/sax/features/namespaces", false);
335,138
private List<AddHostMsg> prepareMsgHostName(List<AddKVMHostMsg> msgs) {<NEW_LINE>Map<String, List<AddKVMHostMsg>> nameMsgsMap = new HashMap<>();<NEW_LINE>msgs.forEach(it -> nameMsgsMap.computeIfAbsent(it.getName(), k -> new ArrayList<>()).add(it));<NEW_LINE>List<AddHostMsg> renamed = nameMsgsMap.entrySet().stream().fil...
collect(Collectors.toList());
1,160,273
public static ExtendedDateTime convertToDateTime(Object val) {<NEW_LINE>requireNonNull(val, "val is null");<NEW_LINE>if (val instanceof DateTime) {<NEW_LINE>return new ExtendedDateTime((DateTime) val);<NEW_LINE>} else if (val instanceof String) {<NEW_LINE>// interpret string as in local timezone<NEW_LINE>try {<NEW_LINE...
(String) val, localDateTimeFormatter));
1,825,950
public CodeGenNode unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeGenNode codeGenNode = new CodeGenNode();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ...
String currentParentElement = context.getCurrentParentElement();
1,757,624
public T call() throws IOException {<NEW_LINE>URL u = new URL(url);<NEW_LINE>InputStream stream = null;<NEW_LINE>final String protocol = u.getProtocol();<NEW_LINE>if (protocol.equals("http") || protocol.equals("https")) {<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) u.openConnection();<NEW_LINE>conn.setRequest...
conn.setRequestProperty(key, value);
957,064
public Response safeHandle(HttpRequest request) throws JSONException {<NEW_LINE>SelendroidLogger.info("add call log");<NEW_LINE>JSONObject parameters = getPayload(request).getJSONObject("parameters");<NEW_LINE>String callLogJson = parameters.getString("calllogjson");<NEW_LINE>CallLogEntry log = CallLogEntry.fromJson(ca...
request)).addCallLog(log);
1,641,805
private Slot tryClaimSlot(TorrentId torrentId, int pieceIndex) {<NEW_LINE>List<Slot> slots = lruSlots.get(torrentId);<NEW_LINE>Iterator<Slot> iter = slots.iterator();<NEW_LINE>Slot slot;<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>slot = iter.next();<NEW_LINE>if (slot.currentUsers == 0) {<NEW_LINE>iter.remove();<NEW_LIN...
"Failed to claim a free slot for requested piece:" + " torrent ID {}, piece index {}", torrentId, pieceIndex);
1,028,969
public static void main(String[] args) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>char[] chs = br.readLine().toCharArray();<NEW_LINE>int[] flag = new int[128];<NEW_LINE>for (int i = 0; i < chs.length; i++) {<NEW_LINE>flag[chs[i]]++;<NEW_LINE>}<NEW_LI...
System.out.print("t");
1,029,809
public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(australiaPayid.getPaymentMethod().getId()));<NEW_LINE>addCompactTopLabelTextField(gridPane,...
? singleTradeCurrency.getNameAndCode() : "null";
1,364,883
static ConnectionSpec convertSpec(com.squareup.okhttp.ConnectionSpec spec) {<NEW_LINE>Preconditions.checkArgument(<MASK><NEW_LINE>List<com.squareup.okhttp.TlsVersion> tlsVersionList = spec.tlsVersions();<NEW_LINE>String[] tlsVersions = new String[tlsVersionList.size()];<NEW_LINE>for (int i = 0; i < tlsVersions.length; ...
spec.isTls(), "plaintext ConnectionSpec is not accepted");
451,885
final DeclineInvitationsResult executeDeclineInvitations(DeclineInvitationsRequest declineInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(declineInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,128,578
public static VmwareContext create(String vCenterAddress, String vCenterUserName, String vCenterPassword) throws Exception {<NEW_LINE>assert (vCenterAddress != null);<NEW_LINE>assert (vCenterUserName != null);<NEW_LINE>assert (vCenterPassword != null);<NEW_LINE>String serviceUrl = "https://" + vCenterAddress + "/sdk/vi...
"serviceconsole", s_vmwareMgr.getServiceConsolePortGroupName());
1,486,918
private String[] filter(String[] mimeTypes) {<NEW_LINE>if (mimeTypes.length > 0) {<NEW_LINE>String[] filtered = mimeTypes;<NEW_LINE>if (mimeTypes[0].contains(TEXT_BASE_MIME_TYPE)) {<NEW_LINE>if (mimeTypes.length == 1) {<NEW_LINE>filtered = EMPTY;<NEW_LINE>} else {<NEW_LINE>filtered = new <MASK><NEW_LINE>System.arraycop...
String[mimeTypes.length - 1];
983,150
public void call(final Stream stream, final AlertCondition.CheckResult result) throws AlarmCallbackException {<NEW_LINE>final Map<String, Object> event = Maps.newHashMap();<NEW_LINE>event.put("stream", stream);<NEW_LINE>event.put("check_result", result);<NEW_LINE>final byte[] body;<NEW_LINE>try {<NEW_LINE>body = object...
throw new AlarmCallbackException("Malformed URL: " + url);
707,524
private void updateComponents() {<NEW_LINE>if (newRadio != null) {<NEW_LINE>boolean createNew = newRadio.isSelected();<NEW_LINE>nameLabel.setEnabled(createNew);<NEW_LINE>nameField.setEnabled(createNew);<NEW_LINE>descriptionLabel.setEnabled(createNew);<NEW_LINE>descriptionArea.setEnabled(createNew);<NEW_LINE>existingLab...
getModel().getElementAt(0);
1,573,277
public void deleteProjects(DeleteProjects request, StreamObserver<DeleteProjects.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var response = futureProjectDAO.deleteProjects(request.getIdsList()).thenCompose(allowedProjectResources -> {<NEW_LINE>List<InternalFuture<Void>> eventFuture = new ArrayList<>();<...
).build(), executor);
750,392
public ListEndpointsByPlatformApplicationResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListEndpointsByPlatformApplicationResult listEndpointsByPlatformApplicationResult = new ListEndpointsByPlatformApplicationResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
int originalDepth = context.getCurrentDepth();
1,737,415
private static IRubyObject convertCoverageToRuby(ThreadContext context, Ruby runtime, Map<String, IntList> coverage, int mode) {<NEW_LINE>// populate a Ruby Hash with coverage data<NEW_LINE>RubyHash covHash = RubyHash.newHash(runtime);<NEW_LINE>for (Map.Entry<String, IntList> entry : coverage.entrySet()) {<NEW_LINE>// ...
.newFixnum(integer + 1));
797,003
private BigDecimal computeSpreadableQtyOverLogisticalFormLines(StockMoveLine stockMoveLine, List<LogisticalFormLine> logisticalFormLineList) {<NEW_LINE>if (stockMoveLine == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (stockMoveLine.getProduct() == null || !ProductRepository.PRODUCT_TYPE_STORABLE.equals(stockMo...
BigDecimal.ZERO, BigDecimal::add);
1,454,503
private void start() throws Exception {<NEW_LINE>out("start");<NEW_LINE>SystemConfigsEntity entity = SystemConfigsDao.get().selectOnKey(SystemConfig.RE_INDEXING, AppConfig.<MASK><NEW_LINE>if (entity != null) {<NEW_LINE>String[] values = entity.getConfigValue().split(",");<NEW_LINE>Long start = Long.valueOf(values[0].su...
get().getSystemName());
924,902
protected void Init() {<NEW_LINE>JPanel mainPanel = new JPanel(new GridBagLayout());<NEW_LINE>mainPanel.add(UISupport.buildDescription(NEW_VERSION_AVAILABLE_MESSAGE, NEW_VERSION_AVAILABLE_MESSAGE_EX, null), new GridBagConstraints(0, 0, 2, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0,...
2 - getHeight() / 2);
912,319
public Map<String, ContainerRegistryConfiguration> convert(String dockerconfigjson) {<NEW_LINE>if (StringUtils.hasText(dockerconfigjson)) {<NEW_LINE>try {<NEW_LINE>Map authsMap = (Map) new ObjectMapper().readValue(dockerconfigjson, Map.class).get("auths");<NEW_LINE>Map<String, ContainerRegistryConfiguration> registryCo...
setAuthorizationType(ContainerRegistryConfiguration.AuthorizationType.anonymous);
1,565,942
public static void saveExistingErrors(final File markFile, final AtomicBuffer errorBuffer, final PrintStream logger, final String errorFilePrefix) {<NEW_LINE>try {<NEW_LINE>final ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>final int observations = printErrorLog(errorBuffer, new PrintStream<MASK><...
(baos, false, "US-ASCII"));
442,414
public void mergeType(TransactionType old, TransactionType other) {<NEW_LINE>long totalCountSum = old.getTotalCount() + other.getTotalCount();<NEW_LINE>if (totalCountSum > 0) {<NEW_LINE>double line50Values = old.getLine50Value() * old.getTotalCount() + other.getLine50Value() * other.getTotalCount();<NEW_LINE>double lin...
) + other.getFailCount());
1,137,971
public static Ticker adaptTickerMessage(Instrument instrument, ArrayNode arrayNode) {<NEW_LINE>return Streams.stream(arrayNode.elements()).filter(JsonNode::isObject).map(tickerNode -> {<NEW_LINE>Iterator<JsonNode> askIterator = tickerNode.get("a").iterator();<NEW_LINE>Iterator<JsonNode> bidIterator = tickerNode.get("b"...
findFirst().orElse(null);
278,112
public void updateCurrentCost(MCostDetail m_costdetail) {<NEW_LINE>MCostQueue[] cQueue = MCostQueue.getQueue(dimension, m_costdetail.getDateAcct(), m_costdetail.get_TrxName());<NEW_LINE>// TODO: need evaluate this!<NEW_LINE>if (cQueue != null) {<NEW_LINE>MCostType ct = (MCostType) dimension.getM_CostType();<NEW_LINE>if...
().add(cAmt));
353,518
public InsightHealth unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InsightHealth insightHealth = new InsightHealth();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
JsonToken token = context.getCurrentToken();
1,016,164
public CurrencyAmount presentValue(CmsPeriod cmsPeriod, RatesProvider provider) {<NEW_LINE>Currency ccy = cmsPeriod.getCurrency();<NEW_LINE>LocalDate valuationDate = provider.getValuationDate();<NEW_LINE>if (valuationDate.isAfter(cmsPeriod.getPaymentDate())) {<NEW_LINE>return CurrencyAmount.zero(ccy);<NEW_LINE>}<NEW_LI...
cmsPeriod.getStrike(), 0d);
658,169
public void init(FilterConfig config) throws ServletException {<NEW_LINE>String associatePeriod = config.getInitParameter("associatePeriod");<NEW_LINE>if (associatePeriod != null)<NEW_LINE>_associatePeriod = Long.parseLong(associatePeriod);<NEW_LINE>String maxAssociations = config.getInitParameter("maxAssociations");<N...
(config.getInitParameter("useQueryInKey"));
1,134,155
protected void onBindView(View view) {<NEW_LINE>super.onBindView(view);<NEW_LINE>ImageView img_root = view.findViewById(R.id.img_root);<NEW_LINE>if (skill instanceof OperationSkill) {<NEW_LINE>PrivilegeUsage privilege = ((<MASK><NEW_LINE>if (privilege == PrivilegeUsage.root_only || privilege == PrivilegeUsage.prefer_ro...
OperationSkill) skill).privilege();
184,451
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>SharedPreferences themePrefs = getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = themePrefs.getBoolean("isDark", false);<NEW_LINE>if (isDark)<NEW_LINE>setTheme(R.style.DarkTheme);<NEW_LINE>else<NEW_LINE>setTheme(R.style.AppTheme);<NEW_LINE>super.onCre...
android.R.id.list);