idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
343,355
protected void addInterceptorsToConnectionProperties(Properties lowLevel, String dalInterceptor) {<NEW_LINE>if (StringUtils.isTrimmedEmpty(dalInterceptor)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>String[] properties = connectionProperties.split(CONNECTION_PROPERTIES_SEPARATOR);<NEW_LINE>boolean ad...
connectionProperties = lowLevel.getProperty(CONNECTIONPROPERTIES);
985,281
private void parseBytes(byte[] weightBytes) {<NEW_LINE>float weight = Converters.<MASK><NEW_LINE>float fat = Converters.fromUnsignedInt16Be(weightBytes, 6) / 10.0f;<NEW_LINE>float bone = (weightBytes[8] & 0xFF) / 10.0f;<NEW_LINE>float muscle = Converters.fromUnsignedInt16Be(weightBytes, 9) / 10.0f;<NEW_LINE>float visce...
fromUnsignedInt16Be(weightBytes, 4) / 10.0f;
1,816,858
public static DescribeBackupMachineStatusResponse unmarshall(DescribeBackupMachineStatusResponse describeBackupMachineStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupMachineStatusResponse.setRequestId(_ctx.stringValue("DescribeBackupMachineStatusResponse.RequestId"));<NEW_LINE>BackupMachineStatus bac...
("DescribeBackupMachineStatusResponse.BackupMachineStatus.ErrorList[" + i + "].RequestId"));
1,176,142
private static Trigger newTrigger(final JobKey key, final ScheduledValue value) {<NEW_LINE>// almost there<NEW_LINE>TriggerBuilder builder;<NEW_LINE>if (value.cron != null) {<NEW_LINE>// cron<NEW_LINE>builder = TriggerBuilder.newTrigger().withSchedule(misfire(value.misfire, CronScheduleBuilder.cronSchedule(value.cron))...
((int) value.repeat);
1,705,740
public void run(final CompilationController parameter) throws IOException {<NEW_LINE>parameter.toPhase(Phase.RESOLVED);<NEW_LINE>if (cancel.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JavaSource javaSource = parameter.getJavaSource();<NEW_LINE>Pair<Map<String, List<Element>>, Map<String, List<Element>>> result ...
.getDefaultToolkit().beep();
1,739,705
protected Optional<PushOffsetRange> handleContinuationToken(final Optional<PushOffsetRange> offsetRangeOptional, final boolean isSourceNode, final boolean alosEnabled) {<NEW_LINE>if (!offsetRangeOptional.isPresent()) {<NEW_LINE>return offsetRangeOptional;<NEW_LINE>}<NEW_LINE>final PushOffsetRange offsetRange = offsetRa...
mergeCopy(offsetRange.getEndOffsets());
426,623
public void initReader() throws IOException {<NEW_LINE>try {<NEW_LINE>Configuration conf = WorkerContext.get().getConf();<NEW_LINE>String inputFormatClassName = conf.get(AngelConf.ANGEL_INPUTFORMAT_CLASS, AngelConf.DEFAULT_ANGEL_INPUTFORMAT_CLASS);<NEW_LINE>Class<? extends org.apache.hadoop.mapred.InputFormat> inputFor...
inputFormatClass, new JobConf(conf));
1,057,815
public StartCelebrityRecognitionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartCelebrityRecognitionResult startCelebrityRecognitionResult = new StartCelebrityRecognitionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
class).unmarshall(context));
1,547,111
public DescribeMovingAddressesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeMovingAddressesResult describeMovingAddressesResult = new DescribeMovingAddressesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
int xmlEvent = context.nextEvent();
145,712
public void run() {<NEW_LINE>testResultsContainer.setVisibility(View.VISIBLE);<NEW_LINE>ImageView ivImage = testResultsContainer.findViewById(R.id.icon);<NEW_LINE>TextView tvTitle = testResultsContainer.findViewById(R.id.title);<NEW_LINE>TextView tvDescription = testResultsContainer.<MASK><NEW_LINE>if (resultOk) {<NEW_...
findViewById(R.id.description);
574,437
public void marshall(Contact contact, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (contact == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(contact.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.mar...
contact.getDisconnectTimestamp(), DISCONNECTTIMESTAMP_BINDING);
1,558,479
final ModifyVpcEndpointResult executeModifyVpcEndpoint(ModifyVpcEndpointRequest modifyVpcEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpcEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
580,513
private List<?> fetchDuplicatedRecordIds(Class<? extends Model> modelClass, String concatedFields, String subQuery, String filter) {<NEW_LINE><MASK><NEW_LINE>StringBuilder queryBuilder = new StringBuilder("SELECT self.id FROM ");<NEW_LINE>queryBuilder.append(modelClass.getSimpleName() + " self");<NEW_LINE>queryBuilder....
log.debug("Fetch duplicated records for: {}", modelClass);
445,066
private void applyState(InetAddress endpoint, ApplicationState state, VersionedValue value, EndpointState epState) {<NEW_LINE>switch(state) {<NEW_LINE>case RELEASE_VERSION:<NEW_LINE>updatePeer(endpoint, value.value, StargatePeerInfo::setReleaseVersion);<NEW_LINE>break;<NEW_LINE>case DC:<NEW_LINE>updatePeer(endpoint, va...
.value), StargatePeerInfo::setNativePortSsl);
1,009,257
public Request<ListUserHierarchyGroupsRequest> marshall(ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) {<NEW_LINE>if (listUserHierarchyGroupsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListUserHierarchyGroupsRequest)");<NEW_LINE>}<NEW_LINE>Request<Lis...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
879,767
private void _softDeleteDataMetadata(final String userId, @Nullable final List<String> uris) {<NEW_LINE>if (uris != null && !uris.isEmpty()) {<NEW_LINE>final List<String> paramVariables = uris.stream().map(s -> "?").collect(Collectors.toList());<NEW_LINE>final String[] aUris = uris.toArray(new String[0]);<NEW_LINE>fina...
toArray(new Long[0]);
1,741,183
public Object visitFunctionDef(FunctionDef node) throws Exception {<NEW_LINE>String name = getName(node.getInternalName());<NEW_LINE>setline(node);<NEW_LINE>ScopeInfo scope = module.getScopeInfo(node);<NEW_LINE>// NOTE: this is attached to the constructed PyFunction, so it cannot be nulled out<NEW_LINE>// with freeArra...
, PyObject[].class));
1,761,426
private JComponent createRestartNotificationDetails() {<NEW_LINE>JPanel res = new JPanel(new BorderLayout(10, 10));<NEW_LINE>res.setOpaque(false);<NEW_LINE>// NOI18N<NEW_LINE>JLabel lbl = new JLabel(NbBundle.getMessage<MASK><NEW_LINE>lbl.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));<NEW_LINE>res.add(lbl, B...
(LafPanel.class, "Descr_Restart"));
1,374,623
public StepExecutionResult execute(ExecutionContext context) {<NEW_LINE>try {<NEW_LINE>// Get module to classes map in sorted order for build determinism and testing<NEW_LINE>ProguardTranslatorFactory translatorFactory = ProguardTranslatorFactory.create(filesystem, proguardFullConfigFile, proguardMappingFile, skipProgu...
<APKModule, String> orderedModuleToClassesMap = null;
104,630
public static ApiVersion parse(String apiVersion) {<NEW_LINE>Matcher matcher = matcher(apiVersion);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>short major = parseShort(matcher.group(1));<NEW_LINE>Stability stability;<NEW_LINE>short minor;<NEW_LINE>String alphaBeta = matcher.group(3);<NEW_LIN...
throw new IllegalArgumentException("Invalid version " + apiVersion);
1,146,936
public void init(String rule) {<NEW_LINE>try {<NEW_LINE>if (rule == null || rule.trim().length() == 0) {<NEW_LINE>throw new IllegalArgumentException("Illegal route rule!");<NEW_LINE>}<NEW_LINE>rule = rule.replace("consumer.", "").replace("provider.", "");<NEW_LINE>int <MASK><NEW_LINE>String whenRule = i < 0 ? null : ru...
i = rule.indexOf("=>");
492,045
private Collection<? extends CompletionProposal> findComponentNames(CodeCompletionContext ccContext) {<NEW_LINE>FileObject fo = ccContext.getParserResult().getSnapshot().getSource().getFileObject();<NEW_LINE>if (fo == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>Project project = FileOwnerQuery....
ccContext.getPrefix(), false);
997,884
public void serialize(final SiteView siteView, final JsonGenerator jsonGenerator, final SerializerProvider serializers) throws IOException {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>map.<MASK><NEW_LINE>map.put("name", siteView.name);<NEW_LINE>map.put("configured", siteView.configured);<NEW_LIN...
put("id", siteView.id);
997,989
public List<I_M_ReceiptSchedule_Alloc> createReceiptScheduleAllocations(final List<? extends I_M_ReceiptSchedule> receiptSchedules, @NonNull final I_M_InOutLine receiptLine) {<NEW_LINE>Check.assumeNotEmpty(receiptSchedules, "receipt schedules not empty");<NEW_LINE>StockQtyAndUOMQty qtyToAllocateRemaining = Services.get...
final StockQtyAndUOMQty rsQtyOpen = getQtyToMove(rs);
129,804
public final SkyValue evaluateSkyKeyForExecutionSetup(final ExtendedEventHandler eventHandler, final SkyKey key) throws EnvironmentalExecException, InterruptedException {<NEW_LINE>synchronized (valueLookupLock) {<NEW_LINE>// We evaluate in keepGoing mode because in the case that the graph does not store its<NEW_LINE>//...
IllegalStateException(errorInfo.toString());
1,127,581
public Registry registerEnum(EnumIO<?> eio, int id) {<NEW_LINE>if (id < 1)<NEW_LINE>throw new IllegalArgumentException("enum ids start at 1.");<NEW_LINE>if (id >= strategy.enumIdStart)<NEW_LINE>throw new IllegalArgumentException("enum ids must be lesser than " + strategy.enumIdStart);<NEW_LINE>else if (strategy.enums.g...
IllegalArgumentException("Duplicate registration for: " + eio.enumClass);
398,955
private void addAccessibilityDescriptions(Component wizPanel) {<NEW_LINE>final ResourceBundle bundle = NbBundle.getBundle(SimpleTestStepLocation.class);<NEW_LINE>// NOI18N<NEW_LINE>tfClassToTest.// NOI18N<NEW_LINE>setToolTipText(bundle.getString("SimpleTest.classToTest.toolTip"));<NEW_LINE>// NOI18N<NEW_LINE>tfClassToT...
(bundle.getString("SimpleTest.AD"));
100,192
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Project project = call.rel(0);<NEW_LINE>assert RexOver.containsOver(project.getProjects(), null);<NEW_LINE>final <MASK><NEW_LINE>final RexProgram program = RexProgram.create(input.getRowType(), project.getProjects(), null, project.getRowType(), project.getCluster().ge...
RelNode input = project.getInput();
1,042,617
private boolean removeKeyFromIndexInternal(final OAtomicOperation atomicOperation, final int indexId, final Object key) throws OInvalidIndexEngineIdException {<NEW_LINE>try {<NEW_LINE>checkIndexId(indexId);<NEW_LINE>final OBaseIndexEngine engine = indexEngines.get(indexId);<NEW_LINE>if (engine.getEngineAPIVersion() == ...
final OV1IndexEngine v1IndexEngine = (OV1IndexEngine) engine;
1,150,803
final DescribeRecordResult executeDescribeRecord(DescribeRecordRequest describeRecordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRecord");
742,120
private Expr castToSlot(SlotDescriptor slotDesc, Expr expr) throws AnalysisException {<NEW_LINE>Type dstType = slotDesc.getType();<NEW_LINE>Type srcType = expr.getType();<NEW_LINE>if (dstType.isBoolean() && srcType.isVarchar()) {<NEW_LINE>// there is no cast VARCHAR to BOOLEAN function<NEW_LINE>// so we cast VARCHAR to...
(Type.TINYINT, expr));
267,882
public Map<String, Integer> outgoingReferencesByHostName(final String srcHostName) {<NEW_LINE>Set<String> srcHostHashes = this.hostName2HostHashes(srcHostName);<NEW_LINE>final Map<String, Integer> targetHashesToCount = new HashMap<String, Integer>();<NEW_LINE>for (String srcHostHash : srcHostHashes) {<NEW_LINE>final We...
get(ref.getKey());
1,100,209
public RecommendationSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecommendationSet recommendationSet = new RecommendationSet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
1,120,081
public IQuery<I_MD_Candidate_ATP_QueryResult> createDBQueryForStockQuery(@NonNull final AvailableToPromiseQuery query) {<NEW_LINE>final IQueryBuilder<I_MD_Candidate_ATP_QueryResult> queryBuilder = createDBQueryForStockQueryBuilder(query);<NEW_LINE>final IQuery<I_MD_Candidate_ATP_QueryResult> dbQuery = queryBuilder.setO...
TO_DATE(query.getDate());
1,108,247
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);<NEW_LINE>// Second argument is the default to use if the preference can't be found<NEW_LINE>int savedVersionCode = prefs.getInt(WELCOM...
(LayoutParams) welcomeImage.getLayoutParams();
831,720
public List<AnnotatedTypeParameterBounds> typeVariablesFromUse(AnnotatedDeclaredType type, TypeElement element) {<NEW_LINE>AnnotatedDeclaredType generic = getAnnotatedType(element);<NEW_LINE>List<AnnotatedTypeMirror<MASK><NEW_LINE>List<AnnotatedTypeMirror> tvars = generic.getTypeArguments();<NEW_LINE>assert targs.size(...
> targs = type.getTypeArguments();
1,182,578
public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>// save vector<NEW_LINE>ArrayList<VectorElem<Integer>> vectorArr = null;<NEW_LINE>// save blocks<NEW_LINE>ArrayList<ArrayList<BlockElem<Integer>>> bloc...
> blockArrIter = blockArr.iterator();
13,726
private TransactionReport queryHourlyReportsByDuration(String name, String domain, Date start, Date endDate) throws DalException {<NEW_LINE>long startTime = start.getTime();<NEW_LINE><MASK><NEW_LINE>double duration = (endTime - startTime) * 1.0 / TimeHelper.ONE_DAY;<NEW_LINE>HistoryTransactionReportMerger dailyMerger =...
long endTime = endDate.getTime();
719,297
public void timeoutMethod(Timer t) {<NEW_LINE>svLogger.info("--> Entered " + CLASS_NAME + ".timeoutMethod");<NEW_LINE>try {<NEW_LINE>svLogger.info("--> Timer t = " + t);<NEW_LINE>String infoKey = (String) t.getInfo();<NEW_LINE>svLogger.info("--> infoKey = " + infoKey);<NEW_LINE>TimerData td = <MASK><NEW_LINE>svLogger.i...
TimerData.svIntEventMap.get(infoKey);
1,797,181
private void updateTabs(Node selectedNode, List<Integer> supportedIndices, int preferredIndex) {<NEW_LINE>// Deferring becoming a listener to the tabbed pane until this point<NEW_LINE>// eliminates handling a superfluous stateChanged event during construction.<NEW_LINE>if (listeningToTabbedPane == false) {<NEW_LINE>jTa...
dcv = viewers.get(tabIndex);
1,275,460
public Collection<MetadataChangeProposal> apply(@Nonnull final TagUpdateInput tagUpdate, @Nonnull final Urn actor) {<NEW_LINE>final Collection<MetadataChangeProposal> proposals <MASK><NEW_LINE>final UpdateMappingHelper updateMappingHelper = new UpdateMappingHelper(TAG_ENTITY_NAME);<NEW_LINE>final AuditStamp auditStamp ...
= new ArrayList<>(2);
1,358,610
public static PointDouble draw(DrawHandler drawHandler, String[] textLines, double width, PointDouble topLeft, Collection<Line1D> slopeNotPermittedAreas) {<NEW_LINE>boolean splitIsNecessary = false;<NEW_LINE>double textWidth = width - getStaticWidthPadding();<NEW_LINE>for (String l : textLines) {<NEW_LINE>if (TextSplit...
getHeight(drawHandler, textLines, width);
1,347,394
protected void executeExpression(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, String preUpgradeJavaDelegateExpression, CommandContext commandContext) {<NEW_LINE>Expression expression = CommandContextUtil.getProcessEngineConfiguration(commandContext).getExpressionManager().createExpression(preU...
delegate, (ExecutionEntityImpl) processInstance));
787,916
private VolumeSnapshotGroupVO createGroup(CreateVolumesSnapshotReply r) {<NEW_LINE>List<VolumeSnapshotGroupRefVO> refs = new ArrayList<>();<NEW_LINE>VolumeSnapshotGroupVO group = new VolumeSnapshotGroupVO();<NEW_LINE>if (msg.getResourceUuid() != null) {<NEW_LINE>group.setUuid(msg.getResourceUuid());<NEW_LINE>} else {<N...
setVolumeType(inv.getVolumeType());
80,220
private void outputChangeLogTableCreationScript(Liquibase liquibase, final Writer exportWriter) throws DatabaseException {<NEW_LINE>Database database = liquibase.getDatabase();<NEW_LINE>ExecutorService executorService = Scope.getCurrentScope().getSingleton(ExecutorService.class);<NEW_LINE>Executor oldTemplate = executo...
"*********************************************************************" + StreamUtil.getLineSeparator());
979,877
public List<Either<String, MarkedString>> computeHover(int line, int column, IProgressMonitor monitor) {<NEW_LINE>List<Either<String, MarkedString>> res = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>if (monitor.isCanceled()) {<NEW_LINE>return cancelled(res);<NEW_LINE>}<NEW_LINE>IJavaElement[] elements = JDTUtils.findEl...
).discoverSource(classFile, monitor);
367,116
final DescribeConnectorResult executeDescribeConnector(DescribeConnectorRequest describeConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConnectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
49,833
// // test ////<NEW_LINE>public static void main(String[] args) {<NEW_LINE>String domain = "/home/gv/fsa/automata/us_main_20041002_20041008";<NEW_LINE>ConceptNet cn = new ConceptNet(domain);<NEW_LINE>System.out.println("Loading ConceptNet domain " + domain + ": " + cn.isOk());<NEW_LINE>int idx = cn.lookup("new york");<...
cat(idx, i)));
777,791
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField resultTypeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resol...
).addParam(EnumForgeCodegenNames.PARAMSCOLLOBJ);
35,643
public Artifact declareDirectory(String filename, Object sibling) throws EvalException {<NEW_LINE>context.checkMutable("actions.declare_directory");<NEW_LINE>RuleContext ruleContext = getRuleContext();<NEW_LINE>PathFragment fragment;<NEW_LINE>if (Starlark.NONE.equals(sibling)) {<NEW_LINE>fragment = ruleContext.getPacka...
getTreeArtifact(fragment, newFileRoot());
998,024
int resetForMethodEntry0(@SlashedClassName String className, Method m) {<NEW_LINE>methodName = m.getName();<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println(" --- ");<NEW_LINE>}<NEW_LINE>String signature = m.getSignature();<NEW_LINE>stack.clear();<NEW_LINE>lvValues.clear();<NEW_LINE>top = false;<NEW_LINE>encountedTop ...
argType.getSignature(), reg);
212,426
void drawRect(Rect r, Paint paint) {<NEW_LINE>if (bufferedImage == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] pixels = ((DataBufferInt) bufferedImage.getRaster().getDataBuffer()).getData();<NEW_LINE>Rect toDraw = new Rect(max(0, r.left), max(0, r.top), min(getWidth(), r.right), min(getHeight(), r.bottom));<NEW_...
bottom, paint.getColor());
815,317
private static InputFile createFile(@Nonnull DiffContent content, @Nonnull FileNameInfo fileName) throws IOException {<NEW_LINE>if (content instanceof EmptyContent) {<NEW_LINE>return new TempInputFile(createFile(new byte[0], fileName));<NEW_LINE>} else if (content instanceof FileContent) {<NEW_LINE>VirtualFile file = (...
DirectoryContent) content).getFile();
836,869
public ASTNode visitCreateTableAsSelectClause(final CreateTableAsSelectClauseContext ctx) {<NEW_LINE>SQLServerCreateTableStatement result = new SQLServerCreateTableStatement();<NEW_LINE>if (null != ctx.createTableAsSelect()) {<NEW_LINE>result.setTable((SimpleTableSegment) visit(ctx.createTableAsSelect().tableName()));<...
().select()));
128,882
private HttpClient createHttpClient() {<NEW_LINE>SslContextFactory sslContextFactory = null;<NEW_LINE>try {<NEW_LINE>sslContextFactory = new RestletSslContextFactory(org.restlet.engine.ssl.SslUtils.getSslContextFactory(this));<NEW_LINE>} catch (Exception e) {<NEW_LINE>getLogger().log(Level.WARNING, "Unable to create th...
httpClient.setAddressResolutionTimeout(getAddressResolutionTimeout());
1,752,241
/* Build call for throttlingPoliciesCustomPost */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesCustomPostCall(CustomRule body, String contentType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {...
String[] localVarAccepts = { "application/json" };
86,728
public void startLifecyclesInRole(String role) {<NEW_LINE>if (this.lazyLifecycles.size() > 0) {<NEW_LINE>addLazyLifecycles();<NEW_LINE>}<NEW_LINE>List<SmartLifecycle> componentsInRole = this.lifecycles.get(role);<NEW_LINE>if (componentsInRole != null) {<NEW_LINE>componentsInRole = new ArrayList<>(componentsInRole);<NEW...
debug("No components in role " + role + ". Nothing to start");
668,738
public PriamInstance grabExistingToken() throws Exception {<NEW_LINE>return new RetryableCallable<PriamInstance>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PriamInstance retriableCall() throws Exception {<NEW_LINE>logger.info("Trying to grab an existing token");<NEW_LINE>sleeper.sleep(new Random().nextInt(5000) +...
ifPresent(i -> isTokenPregenerated = true);
650,935
public static Vector apply(LongIntVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongIntVector res;<NEW_LINE>if (v1.isSparse()) {<NEW_LINE>if (op.isKeepStorage()) {<NEW_LINE>throw new AngelException("operation is not support!");<NEW_LINE>} else {<NEW_LINE>// multi-rehash<NEW_LINE>LongIntVectorStorage newStorage =...
v1.getDim(), newStorage);
1,241,041
private AmenityRoutePoint dist(LatLon l, List<Location> locations, double radius) {<NEW_LINE>float dist = (float) (radius + 0.1);<NEW_LINE>AmenityRoutePoint arp = null;<NEW_LINE>// Special iterations because points stored by pairs!<NEW_LINE>for (int i = 1; i < locations.size(); i += 2) {<NEW_LINE>float d = (float) MapU...
pointB = locations.get(i);
76,279
public void init(final ShardingSphereMetaData metaData, final SQLStatement sqlStatement) {<NEW_LINE>long currentTimeMillis = System.currentTimeMillis();<NEW_LINE>data = RULE_ALTERED_JOB_API.getProgress(((ShowScalingStatusStatement) sqlStatement).getJobId()).entrySet().stream().map(entry -> {<NEW_LINE>Collection<Object>...
.getValue().getIncrementalLatestActiveTimeMillis();
1,251,221
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length < 5) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>edge_path = new Path(args[0]);<NEW_LINE>tempmv_path = <MASK><NEW_LINE>output_path = new Path(args[2]);<NEW_LINE>nreducer = Integer.parseInt(args...
new Path(args[1]);
915,308
public static String stripXss(String value) {<NEW_LINE>String rlt = null;<NEW_LINE>if (null != value) {<NEW_LINE>// NOTE: It's highly recommended to use the ESAPI library and uncomment the following line to<NEW_LINE>// avoid encoded attacks.<NEW_LINE>rlt = <MASK><NEW_LINE>// Avoid anything between script tags<NEW_LINE>...
value.replaceAll("", "");
1,020,255
public void loadKeyboard(final EditorInfo editorInfo, final SettingsValues settingsValues, final int currentAutoCapsState, final int currentRecapitalizeState) {<NEW_LINE>final KeyboardLayoutSet.Builder builder = new KeyboardLayoutSet.Builder(mThemeContext, editorInfo);<NEW_LINE>final Resources res = mThemeContext.getRe...
ResourceUtils.getKeyboardHeight(res, settingsValues);
1,324,558
ActionResult<WrapOutId> execute(String appDictFlag, String appInfoFlag, String path0, String path1, String path2, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutId> result = new ActionResult<>();<NE...
find(id, AppDict.class);
655,826
public StickingPolygon generateStickingBorder(int x, int y, int width, int height) {<NEW_LINE>StickingPolygon p = new StickingPolygon(0, 0);<NEW_LINE>Vector<String> tmp = new Vector<String>(getStringVector());<NEW_LINE>if (tmp.size() == 0) {<NEW_LINE>tmp.add(" ");<NEW_LINE>}<NEW_LINE>int yPos = (int) HandlerElementMap....
.getFontHandler().getDistanceBetweenTexts();
1,428,793
public void initData(@Nullable Bundle bundle) {<NEW_LINE>mTitleView = bindTitleView();<NEW_LINE>if (mTitleView == null) {<NEW_LINE>int titleRes = bindTitleRes();<NEW_LINE>if (titleRes != View.NO_ID) {<NEW_LINE>mTitleView = new CommonActivityTitleView(this, titleRes, isSupportScroll());<NEW_LINE>} else {<NEW_LINE>CharSe...
<CommonItem> items = bindItems();
182,298
private void updateSpeedAltitudeLegend(boolean isAnalysisProvided) {<NEW_LINE>TextView minValue = view.findViewById(R.id.min_value);<NEW_LINE>TextView maxValue = view.findViewById(R.id.max_value);<NEW_LINE>if (isAnalysisProvided) {<NEW_LINE>if (coloringType == ColoringType.SPEED && gpxTrackAnalysis.isSpeedSpecified() |...
setText(R.string.shared_string_min_speed);
1,046,614
public static void main(String[] argv) throws IOException, SAXException {<NEW_LINE>// parse command-line<NEW_LINE>CommandLineParser parser = new CommandLineParser();<NEW_LINE>parser.setMinimumArguments(1);<NEW_LINE>parser.setMaximumArguments(1);<NEW_LINE>parser.addStringOption("testfile", 'T');<NEW_LINE>parser.addBoole...
parser.addStringOption("population", 'P');
932,921
public void testPurchaseValueOfSecurityPositionWithTransfers() throws IOException {<NEW_LINE>Client client = ClientFactory.load(// $NON-NLS-1$<NEW_LINE>IssueCurrencyGainsRoundingError.class.// $NON-NLS-1$<NEW_LINE>getResourceAsStream("IssueCurrencyGainsRoundingError.xml"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Interval // ...
.getValue(CategoryType.TAXES));
1,461,400
public io.kubernetes.client.proto.V1Autoscaling.MetricSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Autoscaling.MetricSpec result = new io.kubernetes.client.proto.V1Autoscaling.MetricSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0...
.containerResource_ = containerResourceBuilder_.build();
1,309,179
public static ZoneInfo buildInfo(List<String> mainHosts, List<String> oldHosts, String regionId) {<NEW_LINE>if (mainHosts == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HashMap<String, Object> up = new HashMap<>();<NEW_LINE>up.put("domains", new JSONArray(mainHosts));<NEW_LINE>if (oldHosts != null) {<NEW_LINE>up....
zoneInfo = ZoneInfo.buildFromJson(object);
1,383,768
protected static void listRegistries(String projectId, String cloudRegion) throws GeneralSecurityException, IOException {<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all());<NEW_LINE><MASK><NEW_LINE>HttpRequestInitializer init = new HttpCredentialsAdapte...
JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();
205,259
public void updateMyLocation(View mainView, Location location) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity != null) {<NEW_LINE>LineChart chart = mainView.findViewById(R.id.chart);<NEW_LINE>GpxDisplayItem gpxItem = getGpxItem();<NEW_LINE>TrkSegment segment = getTrackSegment(chart);<NE...
LineData lineData = chart.getLineData();
57,830
public CreateParallelDataResult createParallelData(CreateParallelDataRequest createParallelDataRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createParallelDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
JsonUnmarshallerContext> unmarshaller = new CreateParallelDataResultJsonUnmarshaller();
373,753
public String executeCustomFormLogin(HttpClient httpclient, String url, String username, String password, String viewState, String[] cookies) throws Exception {<NEW_LINE>String methodName = "executeCustomFormLogin";<NEW_LINE>Log.info(logClass, methodName, "Submitting custom login form (POST) = " + url + ", username = ...
(nvps, HTTP.UTF_8));
148,619
private static void simulateLookUpBufferAddress(LevelZeroContext context, LevelZeroDevice device) {<NEW_LINE>LevelZeroCommandQueue commandQueue = LevelZeroUtils.createCommandQueue(device, context);<NEW_LINE>LevelZeroCommandList commandList = LevelZeroUtils.createCommandList(device, context, commandQueue.getCommandQueue...
LONG.getNumBytes(), stack);
824,787
static void writeUpdateOfUpdaterJar(JarEntry updaterJarEntry, File zipFileWithUpdater, File targetCluster) throws IOException {<NEW_LINE>JarFile jf = new JarFile(zipFileWithUpdater);<NEW_LINE>String entryPath = updaterJarEntry.getName();<NEW_LINE>String entryName = entryPath.contains("/") ? entryPath.substring(entryPat...
ioe.getLocalizedMessage(), ioe);
1,367,997
void transpileTry(Node n, @Nullable TranspilationContext.Case breakCase) {<NEW_LINE>Node tryBlock = n.removeFirstChild();<NEW_LINE>Node catchBlock = n.removeFirstChild();<NEW_LINE><MASK><NEW_LINE>TranspilationContext.Case catchCase = catchBlock.hasChildren() ? context.createCase() : null;<NEW_LINE>TranspilationContext....
Node finallyBlock = n.removeFirstChild();
1,740,377
private void createDifferences() throws Exception {<NEW_LINE>Project project = env.getProject();<NEW_LINE>ProjectData projectData = project.getProjectData();<NEW_LINE>DomainFile file = projectData.getRootFolder().getFile("WinHelloCpp.exe");<NEW_LINE>Program p = (Program) file.getDomainObject(this, false, false, dummyMo...
), "EXTRA", SourceType.USER_DEFINED);
1,111,538
private JComboBox createComboBox(DataItem item, Font font, FocusListener listener) {<NEW_LINE>List<ItemVariant> variants = item.getVariants();<NEW_LINE>JComboBox combo = new JComboBox(variants.toArray());<NEW_LINE>combo.setSelectedItem(item.getDefaultVariant());<NEW_LINE>// NOI18N<NEW_LINE>combo.getAccessibleContext()....
("showPopup", new TogglePopupAction());
1,226,655
protected SecretKey engineGenerateKey() {<NEW_LINE>if (genSpec != null) {<NEW_LINE>BCSABERPublicKey pubKey = (BCSABERPublicKey) genSpec.getPublicKey();<NEW_LINE>SABERKEMGenerator kemGen = new SABERKEMGenerator(random);<NEW_LINE>SecretWithEncapsulation secEnc = kemGen.generateEncapsulated(pubKey.getKeyParams());<NEW_LIN...
] encapsulation = extSpec.getEncapsulation();
1,571,396
private boolean testCount() {<NEW_LINE>final <MASK><NEW_LINE>final String dynWhere = getSQLWhere();<NEW_LINE>final StringBuilder sql = new StringBuilder(m_sqlCount);<NEW_LINE>if (dynWhere.length() > 0) {<NEW_LINE>// includes first AND<NEW_LINE>sql.append(dynWhere);<NEW_LINE>}<NEW_LINE>final IStringExpression sqlExpress...
long start = System.currentTimeMillis();
1,844,211
protected void onCreate(Bundle bundle, boolean ready) {<NEW_LINE>setContentView(R.layout.profile_activity);<NEW_LINE>initializeResources();<NEW_LINE>setSupportActionBar(this.toolbar);<NEW_LINE>ActionBar supportActionBar = getSupportActionBar();<NEW_LINE>supportActionBar.setDisplayHomeAsUpEnabled(false);<NEW_LINE>suppor...
this.tabLayout.setupWithViewPager(viewPager);
28,647
public void executeAction(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>final String wfContentletId = request.getParameter("wfContentletId");<NEW_LINE>final String wfActionAssign = request.getParameter("wfActionAssign");<NEW_LINE>final String wfAct...
contentlet.setStringProperty("whereToSend", whereToSend);
1,524,850
public static List<URL> listFiles(URL directory) throws IOException {<NEW_LINE>List<URL> ret = new ArrayList<URL>();<NEW_LINE>String s = directory.toString();<NEW_LINE>if (s.startsWith("jar:")) {<NEW_LINE>String[] ss = s.substring("jar:".length()).split("!");<NEW_LINE>String path = ss[1];<NEW_LINE>URL target = new URL(...
+ target + "!" + p));
133,757
private void addDraweeControllerListener(final View view) {<NEW_LINE>if (mDraweeControllerListener != null)<NEW_LINE>return;<NEW_LINE>if (!(view instanceof GenericDraweeView))<NEW_LINE>return;<NEW_LINE>GenericDraweeView imageView = (GenericDraweeView) view;<NEW_LINE>DraweeController controller = imageView.getController...
"mDraweeControllerListener.onFailure: " + id + ", throwable: " + throwable);
37,359
public SettableFuture<Connection> sendMessage(Connection connection, NetworkEnvelope networkEnvelope) {<NEW_LINE>// connection.sendMessage might take a bit (compression, write to stream), so we use a thread to not block<NEW_LINE>ListenableFuture<Connection> future = executorService.submit(() -> {<NEW_LINE>String id = c...
> resultFuture = SettableFuture.create();
766,544
public Object execute(Object[] parameters) {<NEW_LINE>if (getAnnotation(this.entityType.getSuperclass(), DiscriminatorField.class) != null) {<NEW_LINE>throw new DatastoreDataException("Can't append discrimination condition");<NEW_LINE>}<NEW_LINE>ParsedQueryWithTagsAndValues parsedQueryWithTagsAndValues = new ParsedQuer...
result = convertCollectionResult(returnedItemType, found);
1,700,910
public void write(org.apache.thrift.protocol.TProtocol prot, startConditionalUpdate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (s...
struct.durability.getValue());
1,603,982
public static void main(String[] args) {<NEW_LINE>final MetricsAdvisorAsyncClient advisorAsyncClient = new MetricsAdvisorClientBuilder().endpoint("https://{endpoint}.cognitiveservices.azure.com/").credential(new MetricsAdvisorKeyCredential("subscription_key", "api_key")).buildAsyncClient();<NEW_LINE>final String detect...
).put("Dim2", "Antelope");
930,457
private void installSnapshot(Map<Integer, FileSnapshot> snapshotMap, boolean isDataMigration) throws SnapshotInstallationException {<NEW_LINE>// In data migration, meta group member other than new node does not need to synchronize the<NEW_LINE>// leader, because data migration must be carried out after meta group appli...
installFileSnapshotFiles(snapshot, slot, isDataMigration);
1,134,686
public Note updateNote(Note note, boolean updateLastModification) {<NEW_LINE>db = getDatabase(true);<NEW_LINE>String content = Boolean.TRUE.equals(note.isLocked()) ? Security.encrypt(note.getContent(), Prefs.getString(PREF_PASSWORD, ""<MASK><NEW_LINE>// To ensure note and attachments insertions are atomic and boost per...
)) : note.getContent();
645,944
private void consulLoad(final Supplier<ConfigLoader.Context> context, final ConfigLoader.LoaderHandler<ConsulConfig> handler, final ConsulConfig config) {<NEW_LINE>if (config != null) {<NEW_LINE>check(config);<NEW_LINE>if (Objects.isNull(client)) {<NEW_LINE>client = ConsulClient.getInstance(config);<NEW_LINE>}<NEW_LINE...
String fileExtension = config.getFileExtension();
1,122,773
public static String trimIndent(String text) {<NEW_LINE>int indentLevel = indentLevel(text);<NEW_LINE>StringBuilder trimmed = new StringBuilder();<NEW_LINE>AtomicBoolean dropWhile = new AtomicBoolean(false);<NEW_LINE>int[] charArray = text.replaceAll("\\s+$", "").chars().filter(c -> {<NEW_LINE>dropWhile.set(dropWhile.g...
== '\n' || c == '\r'));
1,729,781
AlphaClusterDiscovery alphaClusterAddress(@Value("${alpha.cluster.serviceId:servicecomb-alpha-server}") String serviceId, @Value("${alpha.cluster.address:0.0.0.0:8080}") String[] addresses) {<NEW_LINE>StringBuffer serviceUrls = new StringBuffer();<NEW_LINE>String[] alphaAddresses = this.getAlphaAddress(serviceId);<NEW_...
, Arrays.toString(alphaAddresses));
1,043,268
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>PHONE_STRING = getResources().getString(R.string.my_phone);<NEW_LINE>mDB = DBHelper.getReadableDatabase(this);<NEW_LINE>syncManager = new SyncManager(this);<NEW_LINE>adapter = new WorkoutAccountListAd...
setContentView(R.layout.manage_workouts);
1,504,228
protected I_C_DunningDoc_Line_Source createDunningDocLineSource(final I_C_Dunning_Candidate candidate) {<NEW_LINE>final IDunningDAO dunningDAO = <MASK><NEW_LINE>if (dunningDocLine.getC_DunningDoc_Line_ID() <= 0) {<NEW_LINE>dunningDAO.save(dunningDocLine);<NEW_LINE>}<NEW_LINE>final I_C_DunningDoc_Line_Source source = du...
Services.get(IDunningDAO.class);
89,937
final SetIdentityPoolRolesResult executeSetIdentityPoolRoles(SetIdentityPoolRolesRequest setIdentityPoolRolesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIdentityPoolRolesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(setIdentityPoolRolesRequest));
1,424,651
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) throws CancelledException {<NEW_LINE>Memory memory = program.getMemory();<NEW_LINE>AddressSetView validMemorySet = memory.getLoadedAndInitializedAddressSet();<NEW_LINE>AddressSetView searchSet = set.intersect(validMemorySet);...
return foundMedia.size() > 0;