idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
941,318
public static DescribeCastersResponse unmarshall(DescribeCastersResponse describeCastersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCastersResponse.setRequestId(_ctx.stringValue("DescribeCastersResponse.RequestId"));<NEW_LINE>describeCastersResponse.setTotal(_ctx.integerValue("DescribeCastersResponse.Total")...
("DescribeCastersResponse.CasterList[" + i + "].NormType"));
934,913
protected void doExecute(Task task, QueryApiKeyRequest request, ActionListener<QueryApiKeyResponse> listener) {<NEW_LINE>final <MASK><NEW_LINE>if (authentication == null) {<NEW_LINE>listener.onFailure(new IllegalStateException("authentication is required"));<NEW_LINE>}<NEW_LINE>final SearchSourceBuilder searchSourceBui...
Authentication authentication = securityContext.getAuthentication();
1,808,973
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>lName = new javax.swing.JLabel();<NEW_LINE>lName1 = <MASK><NEW_LINE>tfUser = new javax.swing.JTextField();<NEW_LINE>passwordField = new javax.swing.JPasswordField();<NEW_LINE>set...
new javax.swing.JLabel();
1,144,884
private Int2ObjectOpenHashMap<ModifiableDBIDs> makeClusterMap(ArrayDBIDs ids, int[] assignment) {<NEW_LINE>Int2ObjectOpenHashMap<ModifiableDBIDs> map = new Int2ObjectOpenHashMap<>();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i1.valid(); i1.advance(), i++) {<NEW_LINE>int c = assignment[i];<NEW_LINE>// Add to cluster memb...
DBIDArrayIter i1 = ids.iter();
1,425,613
public void start() throws Exception {<NEW_LINE>Router router = Router.router(vertx);<NEW_LINE>// Allow events for the designated addresses in/out of the event bus bridge<NEW_LINE>SockJSBridgeOptions opts = new SockJSBridgeOptions().addInboundPermitted(new PermittedOptions().setAddress("com.example:cmd:poke-server")).a...
(router).listen(8080);
603,193
public void save() {<NEW_LINE>List<IBootInstall> local = installs;<NEW_LINE>String[] encodedInstalls = new String[local.size()];<NEW_LINE>for (int i = 0; i < encodedInstalls.length; i++) {<NEW_LINE>encodedInstalls[i] = encodeInstall(local.get(i));<NEW_LINE>}<NEW_LINE>String encoded = ArrayEncoder.encode(encodedInstalls...
DEFAULT_BOOT_INSTALL, di.getName());
583,744
protected List<Projection> calculateProjectionOrder(Map<Projection, IntArrayList> projections) {<NEW_LINE>List<Projection> order;<NEW_LINE>EnumMap<Projection, Double> squareRangeProjMap = new EnumMap<>(Projection.class);<NEW_LINE>EnumMap<Projection, Double> orthogonalDiffProjMap = new EnumMap<>(Projection.class);<NEW_L...
size() * getSplitValue());
129,977
public Object visitar(NoDeclaracaoFuncao declaracaoFuncao) throws ExcecaoVisitaASA {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html>");<NEW_LINE>sb.append(declaracaoFuncao.getNome());<NEW_LINE>sb.append('(');<NEW_LINE>int paramCount = declaracaoFuncao.getParametros().size();<NEW_LINE>for (in...
setText(sb.toString());
297,778
public static Object initializeBaseModules(List<File> files, final ClassLoader targetClassLoader, ContainerLogger containerLogger, Java9ModuleProcessor processor) {<NEW_LINE>Object moduleFinder = moduleFinderOf(files);<NEW_LINE>List<String> toResolve = new ArrayList<String>();<NEW_LINE>containerLogger.info("Java 9 modu...
warn("Module '" + moduleName + "' is not resolved");
730,115
public boolean read(@NonNull byte[] data, int count) {<NEW_LINE>if (!checkSocketAndArguments(data, count))<NEW_LINE>return false;<NEW_LINE>LOGGER.d(TAG, "Reading method is started, data.length = " + data.length + ", count = " + count);<NEW_LINE><MASK><NEW_LINE>int readBytes = 0;<NEW_LINE>try {<NEW_LINE>if (mSocket == n...
long startTime = SystemClock.elapsedRealtime();
608,931
public boolean outlineView_shouldExpandItem(final NSOutlineView view, final NSObject item) {<NEW_LINE>NSEvent event = NSApplication<MASK><NEW_LINE>if (event != null) {<NEW_LINE>if (NSEvent.NSLeftMouseDragged == event.type()) {<NEW_LINE>if (!preferences.getBoolean("browser.view.autoexpand")) {<NEW_LINE>if (log.isDebugEn...
.sharedApplication().currentEvent();
626,778
private static boolean addVolumes(VolumeManager fs, InitialConfiguration initConfig, ServerDirs serverDirs) {<NEW_LINE>var hadoopConf = initConfig.getHadoopConf();<NEW_LINE>var siteConfig = initConfig.getSiteConf();<NEW_LINE>Set<String> volumeURIs = VolumeConfiguration.getVolumeUris(siteConfig);<NEW_LINE>Set<String> in...
VolumeManager.getInstanceIDFromHdfs(iidPath, hadoopConf);
1,758,931
public void onError(Exception e) {<NEW_LINE>String errorString = null;<NEW_LINE>if (e instanceof UnsupportedDrmException) {<NEW_LINE>// Special case DRM failures.<NEW_LINE>UnsupportedDrmException unsupportedDrmException = (UnsupportedDrmException) e;<NEW_LINE>errorString = getString(Util.SDK_INT < 18 ? R.string.video_e...
string.video_error_no_decoder, decoderInitializationException.mimeType);
322,269
private static boolean matchStem(ValueSetItem item, Node node) {<NEW_LINE>if (item.langStr != null) {<NEW_LINE>if (!NodeUtils.hasLang(node))<NEW_LINE>return false;<NEW_LINE>String lang = node.getLiteralLanguage();<NEW_LINE>String pattern = (item.langStr.isEmpty()) ? "*" : item.langStr;<NEW_LINE>return <MASK><NEW_LINE>}...
NodeFunctions.langMatches(lang, pattern);
11,630
public void updateFlow(final Project project, final int version, final Flow flow) throws ProjectManagerException {<NEW_LINE>logger.info(<MASK><NEW_LINE>try {<NEW_LINE>final String json = JSONUtils.toJSON(flow.toObject());<NEW_LINE>final byte[] data = convertJsonToBytes(this.defaultEncodingType, json);<NEW_LINE>logger.i...
"Uploading flow " + flow.getId());
764,015
private boolean isAssignableTableType(BTableType sourceTableType, BTableType targetTableType, Set<TypePair> unresolvedTypes) {<NEW_LINE>if (!isAssignable(sourceTableType.constraint, targetTableType.constraint, unresolvedTypes)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (targetTableType.keyTypeConstraint == null &...
), targetTableType.keyTypeConstraint, unresolvedTypes);
565,433
final ListApplicationStatesResult executeListApplicationStates(ListApplicationStatesRequest listApplicationStatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApplicationStatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
26,905
private synchronized void initReferenceBean(ReferenceBean referenceBean) throws Exception {<NEW_LINE>if (referenceBean.getReferenceConfig() != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// TOTO check same unique service name but difference reference key (means difference attributes).<NEW_LINE>// reference key<NEW_LIN...
getObjectType()).build();
1,414,537
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (sourcePermanent == null) {<NEW_LINE>sourcePermanent = (Permanent) game.getLastKnownInformation(source.getSourceI...
getPermanent(target.getFirstTarget());
1,796,376
private JVar[] declareWorkspaceVectors(ClassGenerator<?> g) {<NEW_LINE>JVar[] workspaceJVars = new <MASK><NEW_LINE>for (int i = 0; i < getWorkspaceVars().length; i++) {<NEW_LINE>if (getWorkspaceVars()[i].isInject()) {<NEW_LINE>workspaceJVars[i] = g.declareClassField("work", g.getModel()._ref(getWorkspaceVars()[i].getTy...
JVar[getWorkspaceVars().length];
1,258,977
public static SqlNode convertStatementToSqlNode(SQLStatement statement, List<?> params, ContextParameters context, ExecutionContext ec) {<NEW_LINE>context.setHeadHints(statement.getHeadHintsDirect());<NEW_LINE>if (CollectionUtils.isNotEmpty(params)) {<NEW_LINE>context.putParameter(ContextParameterKey.PARAMS, params);<N...
() : "null statement") + " not supported");
1,106,629
public static XContentBuilder serialize(GridFSDBFile file) throws IOException {<NEW_LINE>XContentBuilder builder = XContentFactory.jsonBuilder();<NEW_LINE>ByteArrayOutputStream buffer = new ByteArrayOutputStream();<NEW_LINE>int nRead;<NEW_LINE>byte[<MASK><NEW_LINE>try (InputStream stream = file.getInputStream()) {<NEW_...
] data = new byte[1024];
1,790,402
private void update() {<NEW_LINE>if (mLastTime == 0) {<NEW_LINE>mLastTime = SystemClock.uptimeMillis();<NEW_LINE>}<NEW_LINE>long curTime = SystemClock.uptimeMillis();<NEW_LINE>long elapsedTime = curTime - mLastTime;<NEW_LINE>float deltaTime = elapsedTime / 1000.0f;<NEW_LINE>mLastTime = curTime;<NEW_LINE>mTime += deltaT...
% 10000) / 20000.0f) + 0.5f;
1,210,101
protected MultiContainsResult multiContainsImpl(ImmutableSet<RuleKey> uniqueRuleKeys) throws IOException {<NEW_LINE>List<RuleKey> ruleKeys = Lists.newArrayList(uniqueRuleKeys);<NEW_LINE>BuckCacheMultiContainsRequest containsRequest = new BuckCacheMultiContainsRequest();<NEW_LINE>containsRequest.setRuleKeys(new ArrayLis...
result = processMultiContainsHttpResponse(httpResponse, ruleKeys);
180,437
public static void bufferedToPlanar_U8(DataBufferInt buffer, WritableRaster src, Planar<GrayU8> dst) {<NEW_LINE>int[] srcData = buffer.getData();<NEW_LINE>int srcStride = stride(src);<NEW_LINE>int srcOffset = getOffset(src);<NEW_LINE>int numBands = src.getNumBands();<NEW_LINE>byte[] data1 = dst.getBand(0).data;<NEW_LIN...
) (rgb >>> 8);
1,314,992
private static ClassFile.ElementValue loadElementValue(DataInputStream dis) throws IOException {<NEW_LINE>// tag<NEW_LINE>byte tag = dis.readByte();<NEW_LINE>switch(tag) {<NEW_LINE>case 'B':<NEW_LINE>return new ByteElementValue(dis.readShort());<NEW_LINE>case 'C':<NEW_LINE>return new CharElementValue(dis.readShort());<...
FloatElementValue(dis.readShort());
596,342
private IdEObject readEmbeddedValue(EStructuralFeature feature, ByteBuffer buffer, EClass eClass, QueryInterface query) throws BimserverDatabaseException {<NEW_LINE>IdEObject eObject = createInternal(eClass, query);<NEW_LINE>for (EStructuralFeature eStructuralFeature : eClass.getEAllStructuralFeatures()) {<NEW_LINE>if ...
, buffer, referenceClass, query));
1,620,701
private void appendKeys(final AssociationSchema associationSchema, final ResourceModel collectionModel) {<NEW_LINE>AssocKeySchemaArray assocKeySchemaArray = new AssocKeySchemaArray();<NEW_LINE>List<Key> sortedKeys = new ArrayList<>(collectionModel.getKeys());<NEW_LINE>Collections.sort(sortedKeys, new Comparator<Key>() ...
setName(key.getName());
106,248
// create open tag element<NEW_LINE>@Override<NEW_LINE>protected Named createElement(String namespace, String name, HtmlAttributes attributes, Named t) throws SAXException {<NEW_LINE>if (LOG) {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.fine(String<MASK><NEW_LINE>}<NEW_LINE>ModifiableOpenTag node;<NEW_LINE>if (startTag != null...
.format("createElement(%s)", name));
1,559,452
private LazyDefinedClass generateMethodMetaClass(InstrumentationConfig config) {<NEW_LINE>ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);<NEW_LINE>cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, methodMetaInternalName, null, "java/lang/Object", null);<NEW_LINE>cw.visitField(ACC_PRIVATE +...
null, null).visitEnd();
38,738
public static CacheControl toJaxRsCacheControl(List<CacheDirective> cacheDirectives) {<NEW_LINE>CacheControl jaxRsCacheControl = new CacheControl();<NEW_LINE>for (CacheDirective cacheDirective : cacheDirectives) {<NEW_LINE>if (cacheDirective.getName() == HeaderConstants.CACHE_MAX_AGE)<NEW_LINE>jaxRsCacheControl.setMaxA...
(cacheDirective.getValue()));
673,453
public void addRemovalTimeById(String processInstanceId, Date removalTime) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>commandContext.getHistoricActivityInstanceManager().addRemovalTimeToActivityInstancesByProcessInstanceId(processInstanceId, removalTime);<NEW_LINE>commandContext.ge...
).addRemovalTimeToVariableInstancesByProcessInstanceId(processInstanceId, removalTime);
195,770
public void marshall(EmailTemplateResponse emailTemplateResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (emailTemplateResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(emailTemplateResponse...
emailTemplateResponse.getSubject(), SUBJECT_BINDING);
1,082,555
public CloseableIterable<FileScanTask> planFiles(TableOperations ops, Snapshot snapshot, Expression rowFilter, boolean ignoreResiduals, boolean caseSensitive, boolean colStats) {<NEW_LINE>ManifestGroup manifestGroup = new ManifestGroup(ops.io(), snapshot.dataManifests(), snapshot.deleteManifests()).caseSensitive(caseSe...
specsById()).ignoreDeleted();
154,484
public boolean canMapClientScope(RoleModel role) {<NEW_LINE>if (root.clients().canManageClientsDefault())<NEW_LINE>return true;<NEW_LINE>if (!root.isAdminSameRealm()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (role.getContainer() instanceof ClientModel) {<NEW_LINE>if (root.clients().canMapClientScopeRoles((Client...
(resourceServer, getMapClientScopePermissionName(role));
993,483
public void ssl(Properties props, String clusterAlias) {<NEW_LINE>// configure the following three settings for SSL Encryption<NEW_LINE>props.put(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG, SystemConfigUtils.getProperty(clusterAlias + ".efak.ssl.protocol"));<NEW_LINE>props.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFI...
.getProperty(clusterAlias + ".efak.ssl.keystore.password"));
1,075,559
private CompletableFuture<List<Message<byte[]>>> peekNthMessage(String topic, String subName, int messagePosition) {<NEW_LINE>TopicName tn = validateTopic(topic);<NEW_LINE>String encodedSubName = Codec.encode(subName);<NEW_LINE>WebTarget path = topicPath(tn, "subscription", encodedSubName, "position", String.valueOf(me...
(throwable.getCause()));
1,175,144
int computeDictionaryId(ColumnValueSelector selector) {<NEW_LINE>final int[] intRepresentation;<NEW_LINE>Object object = selector.getObject();<NEW_LINE>if (object == null) {<NEW_LINE>return GROUP_BY_MISSING_VALUE;<NEW_LINE>} else if (object instanceof String) {<NEW_LINE>intRepresentation = new int[1];<NEW_LINE>intRepre...
intListToInt.getOrDefault(comparableIntArray, GROUP_BY_MISSING_VALUE);
193,548
// algo.scc.iterative<NEW_LINE>@Procedure(value = "algo.scc.iterative", mode = Mode.WRITE)<NEW_LINE>@Description("CALL algo.scc.iterative(label:String, relationship:String, config:Map<String, Object>) YIELD " + "loadMillis, computeMillis, writeMillis, setCount, maxSetSize, minSetSize")<NEW_LINE>public Stream<SCCResult>...
get(CONFIG_WRITE_PROPERTY, CONFIG_OLD_WRITE_PROPERTY, CONFIG_CLUSTER);
1,830,301
final GetHealthCheckResult executeGetHealthCheck(GetHealthCheckRequest getHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHealthCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
17,461
private Vector<Vector<Object>> fillTable(final String sql, final int parameter) {<NEW_LINE>log.debug(sql + "; Parameter=" + parameter);<NEW_LINE>final Vector<Vector<Object>> data = new Vector<>();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(...
(rs.getBigDecimal(4));
700,313
public static GF2Vector[] decryptionPrimitive(BCMcElieceCCA2PrivateKey privKey, GF2Vector c) {<NEW_LINE>// obtain values from private key<NEW_LINE>int k = privKey.getK();<NEW_LINE><MASK><NEW_LINE>GF2mField field = privKey.getField();<NEW_LINE>PolynomialGF2mSmallM gp = privKey.getGoppaPoly();<NEW_LINE>GF2Matrix h = priv...
Permutation p = privKey.getP();
699,083
public boolean equal(Expr queryExpr, Expr mvColumnExpr) {<NEW_LINE>if ((!(queryExpr instanceof FunctionCallExpr)) || (!(mvColumnExpr instanceof FunctionCallExpr))) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FunctionCallExpr queryFn = (FunctionCallExpr) queryExpr;<NEW_LINE>FunctionCallExpr mvColumnFn = (FunctionCallEx...
).size() == 1);
1,497,912
final DescribePlayerSessionsResult executeDescribePlayerSessions(DescribePlayerSessionsRequest describePlayerSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePlayerSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
708,407
final CopyImageResult executeCopyImage(CopyImageRequest copyImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
139,516
public void apply(ParameterContext context) {<NEW_LINE>ResolvedMethodParameter methodParameter = context.resolvedMethodParameter();<NEW_LINE>ResolvedType parameterType = methodParameter.getParameterType();<NEW_LINE>parameterType = context.alternateFor(parameterType);<NEW_LINE>springfox.documentation.schema.ModelReferen...
documentation.schema.ModelRef("string");
1,811,830
private View createColorItemView(@ColorInt final int color, final FlowLayout rootView, boolean customColor) {<NEW_LINE>View colorItemView = createCircleView(rootView);<NEW_LINE>ImageView backgroundCircle = colorItemView.findViewById(R.id.background);<NEW_LINE>Drawable transparencyIcon = getTransparencyIcon(app, color);...
getSupportFragmentManager(), targetFragment, color);
329,024
public CatchPokemonResponse.CatchStatus throwPokeball(ItemId pokeball, ThrowProperties throwProperties) throws RequestFailedException, NoSuchItemException {<NEW_LINE>if (isActive()) {<NEW_LINE>ItemBag bag = api.inventories.itemBag;<NEW_LINE>Item item = bag.getItem(pokeball);<NEW_LINE>if (item.count > 0) {<NEW_LINE>Catc...
requestHandler.sendServerRequests(request, true);
1,182,318
public void addStringConstant(Local l, Context srcContext, String constant) {<NEW_LINE>if (constant != null) {<NEW_LINE>final Scene sc = Scene.v();<NEW_LINE>for (Iterator<VirtualCallSite> siteIt = stringConstToSites.get(l).iterator(); siteIt.hasNext(); ) {<NEW_LINE>final VirtualCallSite site = siteIt.next();<NEW_LINE>f...
int constLen = constant.length();
174,705
public void process(GrayU8 binary, GrayS32 labeled) {<NEW_LINE>// initialize data structures<NEW_LINE>labeled.reshape(binary.width, binary.height);<NEW_LINE>minContourLengthPixels = minContourLength.computeNegMaxI(Math.sqrt(binary.width * binary.height));<NEW_LINE>maxContourLengthPixels = maxContourLength.computeNegMax...
, enxX = binary.width - 1;
1,599,149
private Hover summaryHover(CpuTrack.Data data, Fonts.TextMeasurer m, double x, int mods) {<NEW_LINE>long time = state.pxToTime(x);<NEW_LINE>int bucket = (int) ((time - data.request.range.start) / data.bucketSize);<NEW_LINE>if (bucket < 0 || bucket >= data.utilizations.length) {<NEW_LINE>return Hover.NONE;<NEW_LINE>}<NE...
.Style.Normal, text));
280,036
public void onNewIntent(Intent intent) {<NEW_LINE>super.onNewIntent(intent);<NEW_LINE>if (intent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>recentPagePresenter.onJump();<NEW_LINE>Bundle extras = intent.getExtras();<NEW_LINE>if (extras != null) {<NEW_LINE>int page = numberOfPages - extras.getInt("page", Constants.P...
setSelection(highlightedSura, highlightedAyah, true);
4,309
public void iteration() {<NEW_LINE>preIteration();<NEW_LINE>if (!this.samplesLoaded) {<NEW_LINE>this.network.setSamples(new BasicMLDataSet(this.training));<NEW_LINE>this.samplesLoaded = true;<NEW_LINE>}<NEW_LINE>final GlobalMinimumSearch globalMinimum = new GlobalMinimumSearch();<NEW_LINE>final DeriveMinimum dermin = n...
this.network.getInputCount()];
436,057
private static void cycleExistingSearch(final Window parent, final ZyGraph graph, final GraphSearcher searcher, final boolean cycleBackwards, final boolean zoomToResult) {<NEW_LINE>// If the searcher didn't change since last time, we only skip to<NEW_LINE>// the previous (CTRL+ENTER) or next (ENTER) search result. (SHI...
CMessageBox.showInformation(parent, "All search results were displayed. Going back to the last one");
1,764,824
final void executeRespondActivityTaskCompleted(RespondActivityTaskCompletedRequest respondActivityTaskCompletedRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(respondActivityTaskCompletedRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(respondActivityTaskCompletedRequest));
1,846,234
void init() {<NEW_LINE>capBanks.clear();<NEW_LINE>enteries.clear();<NEW_LINE>canExtract = 0;<NEW_LINE>canFill = 0;<NEW_LINE>stored = 0;<NEW_LINE>maxCap = 0;<NEW_LINE>double toBalance = 0;<NEW_LINE>double maxToBalance = 0;<NEW_LINE>for (ReceptorEntry rec : storageReceptors) {<NEW_LINE>final IPowerInterface powerInterfac...
), cb.getMaxInput());
1,074,895
/* post process for DAVA */<NEW_LINE>private void postProcessDAVA() {<NEW_LINE>final boolean transformations = PhaseOptions.getBoolean(PhaseOptions.v().getPhaseOptions("db.transformations"), "enabled");<NEW_LINE>for (SootClass s : Scene.v().getApplicationClasses()) {<NEW_LINE>DavaStaticBlockCleaner.v().staticBlockInlin...
.output_format()) + "... ");
450,266
PBytesLike replace(PBytesLike self, PBytesLike substr, PBytesLike replacement, int count, @Cached SequenceStorageNodes.GetInternalByteArrayNode toInternalBytes, @Cached BytesNodes.ToBytesNode toBytes, @Cached SequenceStorageNodes.LenNode lenNode, @Cached BytesNodes.FindNode findNode, @Cached ConditionProfile selfSubAre...
subBytes, replacementBytes, maxcount, findNode);
1,781,484
protected void addToLookupMap(Node node) {<NEW_LINE><MASK><NEW_LINE>if (tree == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Node> existing = treeLookupMap.get(tree);<NEW_LINE>if (existing == null) {<NEW_LINE>treeLookupMap.put(tree, new IdentityMostlySingleton<>(node));<NEW_LINE>} else {<NEW_LINE>existing.add(node)...
Tree tree = node.getTree();
1,318,274
public void bind(NavDrawerData.DrawerItem drawerItem) {<NEW_LINE>Drawable drawable = AppCompatResources.getDrawable(selectView.getContext(), R.drawable.ic_checkbox_background);<NEW_LINE>// Setting this in XML crashes API <= 21<NEW_LINE>selectView.setBackground(drawable);<NEW_LINE>feedTitle.setText(drawerItem.getTitle()...
feedTitle.setVisibility(View.VISIBLE);
1,795,631
public void run() {<NEW_LINE>SparkSession spark = null;<NEW_LINE>final String inputFileFormat = "CSV";<NEW_LINE>try {<NEW_LINE>spark = SparkSession.builder().appName("GCS to Bigquery load").getOrCreate();<NEW_LINE>Dataset<Row> inputData = spark.read().format(inputFileFormat).option("header", true).option("inferSchema",...
SaveMode.Append).save();
1,666,660
private T executeByGivenTableShards(Set<String> tableShards, DalClient client, StatementParameters parameters, DalHints hints, DalTaskContext taskContext, SqlBuilder builder, ResultMerger<T> merger) throws SQLException {<NEW_LINE>for (String tableShard : tableShards) {<NEW_LINE>Throwable error = null;<NEW_LINE>ShardExe...
taskContext, builder, merger, tableShards);
1,385,821
public WxOutMsg eventClick(WxInMsg msg) {<NEW_LINE>String eventKey = msg.getEventKey();<NEW_LINE>log.debug("eventKey: " + eventKey);<NEW_LINE>log.debug("extKey: " + msg.getExtkey());<NEW_LINE>Wx_reply reply = wxReplyService.fetch(Cnd.where("type", "=", "keyword").and("wxid", "=", msg.getExtkey()).and("keyword", "=", ev...
String imgId = reply.getContent();
459,862
public int run(final String[] args) throws IOException, ClassNotFoundException, InterruptedException {<NEW_LINE>final Job job = new Job(getConf());<NEW_LINE>job.setJarByClass(this.getClass());<NEW_LINE>job.setJobName(this.getClass().getName());<NEW_LINE>// Map output.<NEW_LINE>job.setMapOutputKeyClass(DateWritable.clas...
job.setInputFormatClass(XMLInputFormat.class);
1,273,866
public List<Integer> numIslands2(int m, int n, int[][] positions) {<NEW_LINE>p = new int[m * n];<NEW_LINE>for (int i = 0; i < p.length; ++i) {<NEW_LINE>p[i] = i;<NEW_LINE>}<NEW_LINE>int[][] grid = new int[m][n];<NEW_LINE>int cnt = 0;<NEW_LINE>List<Integer> ans = new ArrayList<>();<NEW_LINE>int[] dirs = { -1, 0, 1, 0, -...
x = i + dirs[k];
542,784
public List<SearchHits<?>> multiSearch(List<? extends Query> queries, List<Class<?>> classes) {<NEW_LINE>Assert.notNull(queries, "queries must not be null");<NEW_LINE>Assert.notNull(classes, "classes must not be null");<NEW_LINE>Assert.isTrue(queries.size() == classes.size(), "queries and classes must have the same siz...
> clazz = it.next();
1,083,311
// This method is called to build assignments for a multiple-assignment instruction<NEW_LINE>public void buildAssignment(Node node, Variable rhsVal) {<NEW_LINE>switch(node.getNodeType()) {<NEW_LINE>case ATTRASSIGNNODE:<NEW_LINE>buildAttrAssignAssignment(node, rhsVal);<NEW_LINE>break;<NEW_LINE>case CLASSVARASGNNODE:<NEW...
new ToAryInstr(tmp, rhsVal));
928,891
public CommonDbServerInfo addVisiblePerson(Integer id, String visiblePerson) {<NEW_LINE>String username = LoginUserUtils.getLoginUserDetail().getUserName();<NEW_LINE>LOGGER.info("user={}, add visible person, id={}, visible group={}", username, id, visiblePerson);<NEW_LINE>CommonDbServerEntity entity = commonDbServerMap...
checkNotNull(entity, "CommonDbServerEntity not found by id=" + id);
254,499
public static ShapeQueryBuilder fromXContent(XContentParser parser) throws IOException {<NEW_LINE>ParsedShapeQueryParams pgsqb = (ParsedShapeQueryParams) AbstractGeometryQueryBuilder.parsedParamsFromXContent(parser, new ParsedShapeQueryParams());<NEW_LINE>ShapeQueryBuilder builder;<NEW_LINE>if (pgsqb.shape != null) {<N...
builder.indexedShapeIndex(pgsqb.index);
26,229
private void ensureHeader() throws java.io.IOException {<NEW_LINE>byte[] hbytes = Utf8.toBytes(CFHEADER);<NEW_LINE>byte[] rbytes <MASK><NEW_LINE>ctlFile.seek(0);<NEW_LINE>int l = ctlFile.read(rbytes);<NEW_LINE>if (l != hbytes.length || !java.util.Arrays.equals(hbytes, rbytes)) {<NEW_LINE>StringBuilder sb = new StringBu...
= new byte[hbytes.length];
394,934
private BLangType createTypeNode(Node type) {<NEW_LINE>if (type instanceof BuiltinSimpleNameReferenceNode || type.kind() == SyntaxKind.NIL_TYPE_DESC) {<NEW_LINE>return createBuiltInTypeNode(type);<NEW_LINE>} else if (type.kind() == SyntaxKind.QUALIFIED_NAME_REFERENCE || type.kind() == SyntaxKind.IDENTIFIER_TOKEN) {<NEW...
(BLangUserDefinedType) TreeBuilder.createUserDefinedTypeNode();
1,456,056
public void readFrom(MiniDump dump, Builder builder, Object addressSpace, IAbstractAddressSpace memory, boolean is64Bit) throws IOException {<NEW_LINE>// get the thread ID of the failing thread<NEW_LINE>long tid = -1;<NEW_LINE>if (null != dump._j9rasReader) {<NEW_LINE>try {<NEW_LINE>tid = dump._j9rasReader.getThreadID(...
= 0xFFFFFFFFL & dump.coreReadInt();
1,242,881
public TableCell<BondListItem, BondListItem> call(TableColumn<BondListItem, BondListItem> column) {<NEW_LINE>return new TableCell<>() {<NEW_LINE><NEW_LINE>private HyperlinkWithIcon hyperlinkWithIcon;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void updateItem(final BondListItem item, boolean empty) {<NEW_LINE>super.up...
get("tooltip.openBlockchainForTx", lockupTxId)));
694,461
public static void printUnits(PatchingChain<Unit> u, String msg) {<NEW_LINE>int i = 0;<NEW_LINE>HashMap<Unit, Integer> numbers = new HashMap<Unit, Integer>();<NEW_LINE>Iterator<Unit<MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>numbers.put(it.next(), new Integer(i++));<NEW_LINE>}<NEW_LINE>System.out.println("\r\r*****...
> it = u.snapshotIterator();
1,462,989
public void render() {<NEW_LINE>final int stride = useColour ? 28 : 24;<NEW_LINE>vertexBuffer.bindBuffer();<NEW_LINE>GlStateManager.glEnableClientState(GL11.GL_VERTEX_ARRAY);<NEW_LINE>GlStateManager.glVertexPointer(3, GL11.GL_FLOAT, stride, 0);<NEW_LINE>GlStateManager.glEnableClientState(GL11.GL_TEXTURE_COORD_ARRAY);<N...
OpenGlHelper.setClientActiveTexture(OpenGlHelper.defaultTexUnit);
634,041
protected void initGame() {<NEW_LINE>var imageView = new ImageView();<NEW_LINE><MASK><NEW_LINE>btnDownload.setOnAction(e -> {<NEW_LINE>var downloadInfo = new DownloadCallback();<NEW_LINE>var task = getNetService().downloadTask("https://raw.githubusercontent.com/AlmasB/git-server/master/storage/images/fxgl_promo.jpg", "...
var btnDownload = new Button("Download");
806,158
// snippet-start:[kendra.java2.index.main]<NEW_LINE>public static String createIndex(KendraClient kendra, String indexDescription, String indexName, String indexRoleArn) {<NEW_LINE>try {<NEW_LINE>System.<MASK><NEW_LINE>CreateIndexRequest createIndexRequest = CreateIndexRequest.builder().description(indexDescription).na...
out.println("Creating an index named " + indexName);
1,698,598
public void loadModel(List<Row> modelRows) {<NEW_LINE>FmModelDataConverter fmModelDataConverter = new FmModelDataConverter(FmModelDataConverter.extractLabelType<MASK><NEW_LINE>this.model = fmModelDataConverter.load(modelRows);<NEW_LINE>this.dim = model.dim;<NEW_LINE>if (labelType.equals(Types.INT)) {<NEW_LINE>this.mode...
(super.getModelSchema()));
28,622
private void walkNodeTree(FileVisitor<Map.Entry<String, WorkspaceNode>> visitor) throws IOException {<NEW_LINE>Stack<Iterator<Map.Entry<String, WorkspaceNode>>> <MASK><NEW_LINE>Stack<Map.Entry<String, WorkspaceNode>> groups = new Stack<>();<NEW_LINE>iterators.push(this.children.entrySet().iterator());<NEW_LINE>while (!...
iterators = new Stack<>();
797,207
public void marshall(RegisterScalableTargetRequest registerScalableTargetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (registerScalableTargetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
e.getMessage(), e);
282,822
private HttpResponse addSecretStore(String tenantName, String name, HttpRequest request) {<NEW_LINE>if (controller.tenants().require(TenantName.from(tenantName)).type() != Tenant.Type.cloud)<NEW_LINE>throw new IllegalArgumentException("Tenant '" + tenantName + "' is not a cloud tenant");<NEW_LINE>var data = toSlime(req...
badRequest("Secret store " + tenantSecretStore + " is already configured");
21,521
private void invokePropMethod(T t, G g, HippyMap hippyMap, String prop, PropsMethodHolder propsMethodHolder) {<NEW_LINE>try {<NEW_LINE>if (hippyMap.get(prop) == null) {<NEW_LINE>switch(propsMethodHolder.mDefaultType) {<NEW_LINE>case HippyControllerProps.BOOLEAN:<NEW_LINE>propsMethodHolder.mMethod.invoke(t, g, propsMeth...
e.getMessage(), e);
541,428
public Request<ModifyVpcEndpointConnectionNotificationRequest> marshall(ModifyVpcEndpointConnectionNotificationRequest modifyVpcEndpointConnectionNotificationRequest) {<NEW_LINE>if (modifyVpcEndpointConnectionNotificationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)"...
request.addParameter("Version", "2016-11-15");
1,546,299
/*<NEW_LINE>* The method gets a database connection using<NEW_LINE>* oracle.jdbc.pool.OracleDataSource. It sets JKS related connection<NEW_LINE>* level properties as shown here. Refer to<NEW_LINE>* the OracleConnection interface to find more.<NEW_LINE>*/<NEW_LINE>public static void main(String[] args) throws SQLExcepti...
put(OracleConnection.CONNECTION_PROPERTY_USER_NAME, DB_USER);
1,599,892
// GEN-LAST:event_loadkeysButtonActionPerformed<NEW_LINE>private void storeLocationButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_storeLocationButtonActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>FileUtil.preventFileChooserSymlinkTraversal(chooser, null...
File(storeLocationTextField.getText());
1,764,606
public void init() throws Exception {<NEW_LINE>Loggers.RAFT.info("initializing Raft sub-system");<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>if (!EnvUtil.isSupportUpgradeFrom1X()) {<NEW_LINE>Loggers.RAFT.info("Upgrade from 1X feature has closed, " + "If you want open this feature, please set `naco...
.registerHeartbeat(new HeartBeat());
1,137,541
private void writeSchemas(ApplicationPackage app) throws IOException {<NEW_LINE>Collection<NamedReader> schemas = app.getSchemas();<NEW_LINE>if (schemas.isEmpty())<NEW_LINE>return;<NEW_LINE>Path zkPath = getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(SCHEMAS_DIR);<NEW_LINE>curator.create(zkPath);<NEW_LINE>// Ensures th...
sd.getReader())));
169,708
private void generateServerErrorContext(Map<String, String> context, SofaRequest request, SofaTracerSpan serverSpan) {<NEW_LINE>// tags<NEW_LINE>Map<String, String> tagsWithStr = serverSpan.getTagsWithStr();<NEW_LINE>context.put("serviceName", tagsWithStr.get(RpcSpanTags.SERVICE));<NEW_LINE>context.put("methodName", ta...
.get(RpcSpanTags.REMOTE_ZONE));
923,826
public static void build(MeshPartBuilder builder, Camera camera, Color frustumColor, Color coneColor, Color upColor, Color targetColor, Color crossColor) {<NEW_LINE>Vector3[<MASK><NEW_LINE>// Frustum<NEW_LINE>build(builder, camera.frustum, frustumColor, crossColor);<NEW_LINE>// Cones (camera position to near plane)<NEW...
] planePoints = camera.frustum.planePoints;
447,291
public java.util.Map<java.lang.String, android.app.usage.UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>java.util.Map<java.la...
int N = _reply.readInt();
1,816,887
public ListNetworksResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListNetworksResult listNetworksResult = new ListNetworksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
622,249
private String checkLogin(Properties ctx, int AD_User_ID, int AD_Role_ID, int AD_Client_ID, int AD_Org_ID, int M_Warehouse_ID) {<NEW_LINE>// Get Login Info<NEW_LINE>String loginInfo = null;<NEW_LINE>// Verify existance of User/Client/Org/Role and User's acces to Client & Org<NEW_LINE>String sql = // #1<NEW_LINE>"SELECT...
pstmt.setInt(4, AD_Role_ID);
369,220
private MenuManager createTaskRunContextMenu(TreeViewer viewer) {<NEW_LINE>final MenuManager menuMgr = new MenuManager();<NEW_LINE>menuMgr.setRemoveAllWhenShown(true);<NEW_LINE>menuMgr.addMenuListener(manager -> {<NEW_LINE><MASK><NEW_LINE>DBTTaskRun taskRun = getSelectedTaskRun();<NEW_LINE>if (task != null && taskRun !...
DBTTask task = tasksTree.getSelectedTask();
795,454
public void showProPanel() {<NEW_LINE>logDebug("showProPanel");<NEW_LINE>// Left and Right margin<NEW_LINE>LinearLayout.LayoutParams proTextParams = (LinearLayout.LayoutParams) getProText.getLayoutParams();<NEW_LINE>proTextParams.setMargins(scaleWidthPx(24, outMetrics), scaleHeightPx(23, outMetrics), scaleWidthPx(24, o...
, scaleHeightPx(23, outMetrics));
1,567,947
private void cleanBucket(int bucket) {<NEW_LINE>int nextInArray = (bucket + 2) & (table.length - 1);<NEW_LINE>if (table[nextInArray] == EmptyKey) {<NEW_LINE>table[bucket] = EmptyKey;<NEW_LINE>table[bucket + 1] = ValueNotFound;<NEW_LINE>--usedBuckets;<NEW_LINE>// Cleanup all the buckets that were in `DeletedKey` state, ...
& (table.length - 1);
601,106
// private helper methods -------------------------------------------------<NEW_LINE>private synchronized void updateCredentials() {<NEW_LINE>File usersPropFile = new File(getServerDir(), "/conf/props/jmx-console-users.properties");<NEW_LINE>long lastModified = usersPropFile.lastModified();<NEW_LINE>if (lastModified ==...
), String.class, false);
374,286
public String run() {<NEW_LINE>MFMAgreement agreement = (MFMAgreement) getParameter(FinancialSetting.AGREEMENT_PO);<NEW_LINE>MFMBatch batch = (MFMBatch) getParameter(FinancialSetting.BATCH_PO);<NEW_LINE>String trxName = (String) getParameter(FinancialSetting.PARAMETER_TRX_NAME);<NEW_LINE>// Nothing<NEW_LINE>if (agreeme...
>) returnValues.get("AMORTIZATION_LIST");
456,470
JarFile createBootProxyJar() throws IOException {<NEW_LINE>File dataFile = bundleContext.getDataFile("boot-proxy.jar");<NEW_LINE>// Create the file if it doesn't already exist<NEW_LINE>if (!dataFile.exists()) {<NEW_LINE>dataFile.createNewFile();<NEW_LINE>}<NEW_LINE>// Generate a manifest<NEW_LINE>Manifest manifest = cr...
String) entryPaths.nextElement());
829,379
public static void save(AppBook bs, boolean inThread) {<NEW_LINE>int hash = bs.hashCode();<NEW_LINE>if (phash == hash) {<NEW_LINE>LOG.d("SharedBooks-Save", "skip", hash);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>phash = hash;<NEW_LINE>LOG.d("SharedBooks-Save", "inThread " + inThread);<NEW_LINE>if (bs == null || TxtUtils.is...
IO.readJsonObject(AppProfile.syncProgress);
1,714,173
public void reportFreeBlocks() throws IndexException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.println("Allocated size: " + formatByteString(getDatabaseSize()));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.println("malloc'ed: " + formatByteString(this.malloced));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.println(...
+ formatByteString(this.freed));