idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,014,738
public void executeAttack() {<NEW_LINE>Config conf = config.createConfig();<NEW_LINE><MASK><NEW_LINE>WorkflowTrace trace = f.createWorkflowTrace(WorkflowTraceType.RSA_SYNC_PROXY, RunningModeType.MITM);<NEW_LINE>RemBufferedChExtensionsAction remExtAction = (RemBufferedChExtensionsAction) trace.getTlsActions().get(3);<NE...
WorkflowConfigurationFactory f = new WorkflowConfigurationFactory(conf);
1,217,517
private String appendAccessToken(AuthorizationRequest authorizationRequest, OAuth2AccessToken accessToken) {<NEW_LINE>Map<String, Object> vars = new HashMap<String, Object>();<NEW_LINE>String requestedRedirect = authorizationRequest.getRedirectUri();<NEW_LINE>if (accessToken == null) {<NEW_LINE>throw new InvalidRequest...
UriTemplate(url.toString());
1,557,647
private void propagateSide(Chunk chunk, Chunk adjChunk, Side side, Function<Vector3ic, Integer> indexProvider, BlockRegionc edgeRegion, int[] depths) {<NEW_LINE>Vector3i adjPos = new Vector3i();<NEW_LINE>for (Vector3ic pos : edgeRegion) {<NEW_LINE>byte expectedValue = (byte) (rules.getValue(chunk, pos) - 1);<NEW_LINE>i...
add(side.direction());
557,901
private boolean processKeyEventOnWindows(KeyEvent e) {<NEW_LINE>if (e.getKeyCode() != KeyEvent.VK_ALT) {<NEW_LINE>selectMenuOnAltReleased = false;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (e.getID() == KeyEvent.KEY_PRESSED) {<NEW_LINE>altPressedEventCount++;<NEW_LINE>if (altPressedEventCount == 1 && !e.isConsumed(...
window = SwingUtilities.getWindowAncestor(c);
1,102,992
public void reset() {<NEW_LINE>if (this.root != this) {<NEW_LINE>this.root.reset();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.knownModules = new HashtableOfModule();<NEW_LINE>this.UnNamedModule = new ModuleBinding.UnNamedModule(this);<NEW_LINE>this.module = this.UnNamedModule;<NEW_LINE>this.JavaBaseModule = null;<NEW_L...
.uniquePolymorphicMethodBindings = new SimpleLookupTable(3);
1,210,673
private void computeElements(List<JApiAnnotationElement> elements, Optional<Annotation> oldAnnotationOptional, Optional<Annotation> newAnnotationOptional) {<NEW_LINE>if (oldAnnotationOptional.isPresent() && newAnnotationOptional.isPresent()) {<NEW_LINE>Annotation oldAnnotation = oldAnnotationOptional.get();<NEW_LINE>An...
>> oldMemberValueMap = buildMemberValueMap(oldAnnotation);
294,012
private static Object[] toObjects(Method invoked, Type[] argActualTypes, Object encodedArgValues) {<NEW_LINE>try {<NEW_LINE>Object[] argValues = new Object[argActualTypes.length];<NEW_LINE>Type[] argFormalTypes = invoked.getGenericParameterTypes();<NEW_LINE>if (argValues.length > 0) {<NEW_LINE>JsonArray jsonArgValues =...
ParameterizedType ? argFormalType : argActualTypes[i];
149,904
public void start() throws Exception {<NEW_LINE>final ConnectionPool connectionPool = createPool();<NEW_LINE>metricRegistry.register(name(getClass(), connectionPool.getName(), "active"), (Gauge<Integer>) connectionPool::getActive);<NEW_LINE>metricRegistry.register(name(getClass(), connectionPool.getName(), "idle"), (Ga...
<Integer>) connectionPool::getWaitCount);
1,019,061
protected ItemStack dispenseStack(GlowBlock block, ItemStack stack) {<NEW_LINE>GlowDispenser dispenser = (GlowDispenser) block.getState();<NEW_LINE>GlowBlock target = block.getRelative<MASK><NEW_LINE>BlockLiquid liquid = collectableLiquidAtBlock(target);<NEW_LINE>if (liquid == null) {<NEW_LINE>return super.dispenseStac...
(BlockDispenser.getFacing(block));
635,980
public DynamicSql parseSqlConfig(Node configNode) {<NEW_LINE>NamedNodeMap nodeAttributes = configNode.getAttributes();<NEW_LINE>Node statementTypeNode = nodeAttributes.getNamedItem("statementType");<NEW_LINE>String statementType = (statementTypeNode != null) <MASK><NEW_LINE>StatementType statementTypeEnum = StatementTy...
? statementTypeNode.getNodeValue() : null;
1,602,595
public Map<S, Double> valueIteration(MarkovDecisionProcess<S, A> mdp, double epsilon) {<NEW_LINE>//<NEW_LINE>// local variables: U, U', vectors of utilities for states in S,<NEW_LINE>// initially zero<NEW_LINE>Map<S, Double> U = Util.create(mdp.states(), 0.0);<NEW_LINE>Map<S, Double> Udelta = Util.create(mdp.states(), ...
- U.get(s));
1,687,299
private static void convertModel(Configuration conf, String modelInputDir, String convertedModelDir, MatrixFilesMeta meta, ModelLineConvert lineConvert) throws IOException {<NEW_LINE>Path outputFile = new Path(convertedModelDir, dataFile);<NEW_LINE>FileSystem fs = outputFile.getFileSystem(conf);<NEW_LINE>FSDataOutputSt...
conf, output, modelInputDir, lineConvert);
378,529
public Map<String, Object> buildDetails(TriggerState triggerState, Map<String, Object> sanitizedDataMap) {<NEW_LINE>Map<String, Object> details = new LinkedHashMap<>();<NEW_LINE>details.put("group", this.trigger.getKey().getGroup());<NEW_LINE>details.put("name", this.trigger.getKey().getName());<NEW_LINE>putIfNoNull(de...
this.trigger.getNextFireTime());
252,108
public MediaConfigurePayload location(Location loc) {<NEW_LINE>Location payloadLoc = new Location();<NEW_LINE>payloadLoc.setExternal_id(loc.getExternal_id());<NEW_LINE>payloadLoc.setName(loc.getName());<NEW_LINE>payloadLoc.setAddress(loc.getAddress());<NEW_LINE>payloadLoc.setLat(loc.getLat());<NEW_LINE>payloadLoc.setLn...
"_id", payloadLoc.getExternal_id());
800,985
final DescribeProvisioningTemplateVersionResult executeDescribeProvisioningTemplateVersion(DescribeProvisioningTemplateVersionRequest describeProvisioningTemplateVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProvisioningTemplateVersionRequest);<NEW_LINE>AWSRequestMetrics ...
invoke(request, responseHandler, executionContext);
1,599,553
void writeValue(Value v) {<NEW_LINE>if (v == null) {<NEW_LINE>_stream.writeSize(0);<NEW_LINE>} else if (_current != null && _encaps.format == FormatType.SlicedFormat) {<NEW_LINE>if (// Lazy initialization<NEW_LINE>_current.indirectionTable == null) {<NEW_LINE>_current.indirectionTable = new java.util.ArrayList<>();<NEW...
writeSize(index.intValue());
825,831
public Object encode(Object msg, ByteBufAllocator allocator) throws Exception {<NEW_LINE>if (!(msg instanceof BookieProtocol.Response)) {<NEW_LINE>return msg;<NEW_LINE>}<NEW_LINE>BookieProtocol.Response r = (BookieProtocol.Response) msg;<NEW_LINE>ByteBuf buf = allocator.buffer(24);<NEW_LINE>buf.writeInt(PacketHeader.to...
writeInt(r.getErrorCode());
1,137,363
static CommandLine configurePicoCli(List<CliDeclaredOptionSpec> declaredOptions, int maxTextWidth) {<NEW_LINE>CommandSpec rootCommandsHolder = createDefaultCommandSpec("SimpleJavaMail", "Simple Java Mail Command Line Interface.%n" + "%n" + "All commands and their options are a direct translation of the Simple Java Mail...
+ "property file as long as it is visible (on class path) or as system environment variables.").version("Simple Java Mail 7.1.1");
1,173,852
void markContainersInactive(Set<Container> inactiveContainerCandidateSet) throws InterruptedException {<NEW_LINE>if (inactiveContainerCandidateSet != null) {<NEW_LINE>Exception updateException = null;<NEW_LINE>int retry = 0;<NEW_LINE>Map<Short, Account> accountToUpdateMap = new HashMap<>();<NEW_LINE>inactiveContainerCa...
short accountId = container.getParentAccountId();
1,095,287
protected static void startUp() {<NEW_LINE>PluginInterface plugin = PluginInitializer.getDefaultInterface();<NEW_LINE>com.biglybt.pif.download.DownloadManager dm = plugin.getDownloadManager();<NEW_LINE>Download[] downloads = dm.getDownloads();<NEW_LINE>if (downloads != null) {<NEW_LINE>int num = downloads.length;<NEW_L...
[i].getName());
1,460,564
public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisrupti...
= new ArrayList<Pair>();
759,747
public CreateDetectorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDetectorResult createDetectorResult = new CreateDetectorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
88,419
public void addObserver(final ServiceObserverPrx observer, Ice.Current current) {<NEW_LINE>java.util.List<String> activeServices = new java.<MASK><NEW_LINE>//<NEW_LINE>// Null observers and duplicate registrations are ignored<NEW_LINE>//<NEW_LINE>synchronized (this) {<NEW_LINE>if (observer != null && _observers.add(obs...
util.LinkedList<String>();
705,029
public void monitorForUpdates(ReloadableType rtype, String externalForm) {<NEW_LINE>if (externalForm.charAt(1) == ':') {<NEW_LINE>externalForm = Character.toLowerCase(externalForm.charAt(0)) + externalForm.substring(1);<NEW_LINE>}<NEW_LINE>// Check about rebasing the externalForm<NEW_LINE>if (!rebasePaths.isEmpty()) {<...
externalForm.replace('\\', '/');
884,572
public static ActivationConfig read(Config config) {<NEW_LINE>Map<NetworkUpgrade, Long> networkUpgrades = new EnumMap<>(NetworkUpgrade.class);<NEW_LINE>Config networkUpgradesConfig = config.getConfig(PROPERTY_ACTIVATION_HEIGHTS);<NEW_LINE>for (Map.Entry<String, ConfigValue> e : networkUpgradesConfig.entrySet()) {<NEW_L...
named(e.getKey());
1,789,066
private static void tryAssertionUnboundCubeUnenclosed(RegressionEnvironment env, String groupBy, AtomicInteger milestone) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>String epl = "@Name('s0')" + "select theString as c0, intPrimitive as c1, longPrimitive as c2, sum(doublePrimitive) as c3 from Support...
null, null, 3000d } });
845,113
public okhttp3.Call applicationsApplicationIdOauthKeysKeyMappingIdGetCall(String applicationId, String keyMappingId, String groupId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/applications/{applic...
(keyMappingId.toString()));
1,105,089
public void doTest() {<NEW_LINE>checkState(!sources.isEmpty(), "No source files to compile");<NEW_LINE>checkState(!run, "doTest should only be called once");<NEW_LINE>this.run = true;<NEW_LINE>Result result = compile();<NEW_LINE>for (Diagnostic<? extends JavaFileObject> diagnostic : diagnosticHelper.getDiagnostics()) {...
result).isEqualTo(expected));
61,014
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>mHandler = new Handler(Looper.getMainLooper());<NEW_LINE>mMap = findVi...
setContentView(R.layout.activity_map_realtime);
1,252,550
protected void matchGap(int start1, int end1, int start2, int end2) {<NEW_LINE>Range expand = expand(myLines1, myLines2, start1, start2, end1, end2);<NEW_LINE>List<Line> inner1 = myLines1.subList(expand.start1, expand.end1);<NEW_LINE>List<Line> inner2 = myLines2.subList(<MASK><NEW_LINE>FairDiffIterable innerChanges = d...
expand.start2, expand.end2);
32,479
private void updateOrderLineFromCompensationLine(final I_C_OrderLine compensationLinePO, final GroupCompensationLine compensationLine, final GroupId groupId) {<NEW_LINE>compensationLinePO.setC_Order_CompensationGroup_ID(groupId.getOrderCompensationGroupId());<NEW_LINE>compensationLinePO.setIsGroupCompensationLine(true)...
).toBigDecimal() : null);
420,332
public Description matchTypeCast(TypeCastTree tree, VisitorState state) {<NEW_LINE>// Check for a narrowing match first as its simplest match to test.<NEW_LINE>if (!matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>// Test that the match is in a Comparable.compareTo or Comparator.compare...
getPath(), ClassTree.class);
1,264,537
public CElement elementDecl(XSElementDecl decl) {<NEW_LINE>CElement r = allow(decl, decl.getName());<NEW_LINE>if (r == null) {<NEW_LINE>QName tagName = getName(decl);<NEW_LINE>CCustomizations custs = builder.getBindInfo(decl).toCustomizationList();<NEW_LINE>if (decl.isGlobal()) {<NEW_LINE>if (isCollapsable(decl)) {<NEW...
boundElements.put(decl, cei);
1,770,635
private void addCodeAttribute(AttributedVertex vertex, CodeBlock bb) {<NEW_LINE>if (!bb.getMinAddress().isMemoryAddress()) {<NEW_LINE>vertex.setAttribute(CODE_ATTRIBUTE, vertex.getAttribute(SYMBOLS_ATTRIBUTE));<NEW_LINE>}<NEW_LINE>Listing listing = program.getListing();<NEW_LINE>CodeUnitIterator cuIter = listing.getCod...
ix = line.indexOf(' ');
521,339
public static UpdateApplicationScalingRuleResponse unmarshall(UpdateApplicationScalingRuleResponse updateApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("UpdateApplicationScalingRuleResponse.RequestId"));<NEW_LINE>updateApplicationS...
= new ArrayList<Trigger2>();
231,781
private String importSingleFile(UUID jobId, Drive driveInterface, DigitalDocumentWrapper file, String parentId) throws IOException {<NEW_LINE>InputStreamContent content = new InputStreamContent(null, jobStore.getStream(jobId, file.getCachedContentId()).getStream());<NEW_LINE>DtpDigitalDocument dtpDigitalDocument = file...
setMimeType(file.getOriginalEncodingFormat());
1,190,201
public void write(org.apache.thrift.protocol.TProtocol prot, alerts_by_trigger_and_time_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>i...
oprot.writeBitSet(optionals, 4);
1,784,374
public com.amazonaws.services.opsworks.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.opsworks.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.opsworks.model.ResourceNotFoundException(null);...
int originalDepth = context.getCurrentDepth();
1,017,450
public RealVector step(RealVector observation, int time) {<NEW_LINE>// Create g = [t^2 / 2, t]^T matrix<NEW_LINE>RealVector g = new ArrayRealVector(2);<NEW_LINE>g.setEntry(0, 0.5 * time * time);<NEW_LINE>g.setEntry(1, time);<NEW_LINE>RealMatrix Q = g.outerProduct(g).scalarMultiply(qScale);<NEW_LINE>RealMatrix R = Matri...
0).outerProduct(measurementResidual));
1,842,436
private Object transform(final XMLDOMNode source) {<NEW_LINE>try {<NEW_LINE>Source xmlSource = new <MASK><NEW_LINE>final Source xsltSource = new DOMSource(style_.getDomNodeOrDie());<NEW_LINE>final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>final org.w3c.dom.Document containerDocumen...
DOMSource(source.getDomNodeOrDie());
1,648,408
public MultiMetricsSummary merge(MultiMetricsSummary multiClassMetrics) {<NEW_LINE>if (null == multiClassMetrics) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (Arrays.equals(labels, multiClassMetrics.labels)) {<NEW_LINE>this.<MASK><NEW_LINE>} else {<NEW_LINE>// Merge labels from two MultiMetricsSummary instances<NEW_...
matrix.plusEqual(multiClassMetrics.matrix);
1,079,657
public void enterBcl_standard(Bcl_standardContext ctx) {<NEW_LINE>Optional<Set<StandardCommunity>> communities = toStandardCommunitySet(ctx.communities);<NEW_LINE>if (!communities.isPresent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = toString(ctx.name);<NEW_LINE>if (Strings.isNullOrEmpty(name)) {<NEW_LINE>r...
, communities.get()));
95,535
private void loadPrefs() {<NEW_LINE>prefsLoading = true;<NEW_LINE>try {<NEW_LINE>Preferences prefs = NbPreferences.forModule(InspectAndRefactorPanel.class);<NEW_LINE>boolean sel = <MASK><NEW_LINE>setConfig(!sel);<NEW_LINE>singleRefactorRadio.setSelected(sel);<NEW_LINE>try {<NEW_LINE>configurationCombo.setSelectedIndex(...
prefs.getBoolean("InspectAndRefactorPanel.singleRefactorRadio", true);
1,180,311
public void providerAdded(ProtocolProviderService provider) {<NEW_LINE>synchronized (displayedProviders) {<NEW_LINE>if (displayedProviders.contains(provider))<NEW_LINE>return;<NEW_LINE>displayedProviders.add(provider);<NEW_LINE>}<NEW_LINE>OperationSetUserSearch opSetUserSearch = provider.getOperationSet(OperationSetUse...
ContactDetail jidDetail = new ContactDetail(jid);
729,584
public void process(StaticBuffer key, Map<SliceQuery, EntryList> entries, ScanMetrics metrics) {<NEW_LINE>long vertexId = getVertexId(key);<NEW_LINE>assert <MASK><NEW_LINE>if (isGhostVertex(vertexId, entries.get(VERTEX_EXISTS_QUERY))) {<NEW_LINE>metrics.incrementCustom(GHOST_VERTEX_COUNT);<NEW_LINE>return;<NEW_LINE>}<N...
entries.get(VERTEX_EXISTS_QUERY) != null;
187,286
public static void main(String... args) {<NEW_LINE>int[] array = { -2, -1, 0, 1, 2, 3, 4, 5, 6, 7 };<NEW_LINE>Exercise22_BinarySearchAddSub exercise22_binarySearchAddSub = new Exercise22_BinarySearchAddSub();<NEW_LINE>int index1 = exercise22_binarySearchAddSub.binarySearch(array, 2);<NEW_LINE>int index2 = <MASK><NEW_LI...
exercise22_binarySearchAddSub.binarySearch(array, 9);
609,468
protected boolean checkPermission() {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>List<String> <MASK><NEW_LINE>if (PackageManager.PERMISSION_GRANTED != ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {<NEW_LINE>permissions.add(Manifest.permission.WRITE_E...
permissions = new ArrayList<>();
541,469
protected boolean shouldUpdate(final long lastChecked, final long now, final DatabaseProperties properties, String currentVersion) throws UpdateException {<NEW_LINE>// check every 30 days if we know there is an update, otherwise check every 7 days<NEW_LINE>final int checkRange = 30;<NEW_LINE>if (!DateUtil.withinDateRan...
properties.save(CURRENT_ENGINE_RELEASE, updateToVersion);
764,305
public <T extends Message> SendResult syncSend(String destination, Collection<T> messages, long timeout) {<NEW_LINE>if (Objects.isNull(messages) || messages.size() == 0) {<NEW_LINE>log.error("syncSend with batch failed. destination:{}, messages is empty ", destination);<NEW_LINE>throw new IllegalArgumentException("`mes...
rmqMsgs = new ArrayList<>();
1,735,936
public void actionPerformed(final ActionEvent e) {<NEW_LINE>if (RP.isRequestProcessorThread()) {<NEW_LINE>Lookup lookup = node.getLookup();<NEW_LINE>org.netbeans.modules.web.webkit.debugging.api.css.Rule rule = lookup.lookup(org.netbeans.modules.web.webkit.debugging.api.css.Rule.class);<NEW_LINE>Property property = loo...
getDefault().getFileObject(body);
97,935
public void printBufferedObjects() {<NEW_LINE>areaBuffer.sort(new MapAreaComparator());<NEW_LINE>Comparator<MapEntity> comp = new MapEntityComparator();<NEW_LINE>if (wayBuffer.size() < 10000)<NEW_LINE>wayBuffer.sort(comp);<NEW_LINE>if (nodeBuffer.size() < 10000)<NEW_LINE>nodeBuffer.sort(comp);<NEW_LINE>for (MapWay area...
: info1.name.length();
1,336,340
private void switchRotateMapModeImpl() {<NEW_LINE>if (mapView != null) {<NEW_LINE>String rotMode = app.getString(R.string.rotate_map_none_opt);<NEW_LINE>if (shouldResetRotation()) {<NEW_LINE>mapView.resetManualRotation();<NEW_LINE>} else {<NEW_LINE>int vl = (settings.ROTATE_MAP.get() + 1) % 3;<NEW_LINE>settings.ROTATE_...
string.rotate_map_to_bearing) + ":\n" + rotMode;
555,850
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>// logic based on: https://app.code2flow.com/TXloWHJOwWKg<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String userId = InputParser.parseStringOrThrowError(input, "...
ServletException(new BadRequestException("You cannot clear both email and phone number of a user"));
1,010,022
private void buildPrepExecParams(TDSWriter tdsWriter) throws SQLServerException {<NEW_LINE>if (getStatementLogger().isLoggable(java.util.logging.Level.FINE))<NEW_LINE>getStatementLogger().fine(toString() + ": calling sp_prepexec: PreparedHandle:" + getPreparedStatementHandle() + ", SQL:" + preparedSQL);<NEW_LINE>expect...
tdsWriter.sendEnclavePackage(preparedSQL, enclaveCEKs);
1,068,350
final CreateRuleResult executeCreateRule(CreateRuleRequest createRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,313,159
void updateBorder() {<NEW_LINE>if (properties == null)<NEW_LINE>createProperties();<NEW_LINE>CreationDescriptor.Creator creator = creationDesc.findBestCreator(properties, CreationDescriptor.CHANGED_ONLY | CreationDescriptor.PLACE_ALL);<NEW_LINE>try {<NEW_LINE>theBorder = (Border) CreationFactory.createInstance(creation...
otherProps[i].reinstateTarget();
1,466,987
private void multiPartInternal(String name, Object value) {<NEW_LINE>Map<String, Object> map = new HashMap();<NEW_LINE>if (name != null) {<NEW_LINE>map.put("name", name);<NEW_LINE>}<NEW_LINE>if (value instanceof Map) {<NEW_LINE>map.putAll((Map) value);<NEW_LINE>String toRead = (String) map.get("read");<NEW_LINE>if (toR...
("value", (String) value);
463,139
public void createView(CreateViewStmt stmt) throws DdlException {<NEW_LINE>String dbName = stmt.getDbName();<NEW_LINE><MASK><NEW_LINE>// check if db exists<NEW_LINE>Database db = getInternalCatalog().getDbOrDdlException(dbName);<NEW_LINE>// check if table exists in db<NEW_LINE>if (db.getTable(tableName).isPresent()) {<...
String tableName = stmt.getTable();
762,584
public synchronized void startServer(int port) throws InterruptedException {<NEW_LINE>boolean linux = getOSMatches("Linux") || getOSMatches("LINUX");<NEW_LINE>int threads = 24;<NEW_LINE>ServerBootstrap bootstrap = new ServerBootstrap();<NEW_LINE>m_bossGroup = linux ? new EpollEventLoopGroup(threads) : new NioEventLoopG...
childOption(ChannelOption.SO_KEEPALIVE, true);
10,207
private static void maybeRecalculateMetadataHash(final BlobContainer blobContainer, final BlobStoreIndexShardSnapshot.FileInfo fileInfo, Store.MetadataSnapshot snapshot) throws Exception {<NEW_LINE>final StoreFileMetaData metadata;<NEW_LINE>if (fileInfo != null && (metadata = snapshot.get(fileInfo.physicalName())) != n...
.metadata().hash();
1,202,221
private static List<ColoredFilter> loadColors() {<NEW_LINE>List<ColoredFilter> colors = new ArrayList<ColoredFilter>() {<NEW_LINE><NEW_LINE>public boolean add(ColoredFilter e) {<NEW_LINE>boolean ret = super.add(e);<NEW_LINE>if (ret && COLORS != null)<NEW_LINE>storeColors();<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE><NEW...
ret = super.addAll(c);
992,595
public Request<AdminDisableProviderForUserRequest> marshall(AdminDisableProviderForUserRequest adminDisableProviderForUserRequest) {<NEW_LINE>if (adminDisableProviderForUserRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AdminDisableProviderForUserRequest)");<NEW_LINE>}<...
<AdminDisableProviderForUserRequest>(adminDisableProviderForUserRequest, "AmazonCognitoIdentityProvider");
831,279
final UpdateStreamingImageResult executeUpdateStreamingImage(UpdateStreamingImageRequest updateStreamingImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStreamingImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateStreamingImage");
1,037,186
InternalFolderElement saveFolders(Session session, FileHasher fileHasher, Set<String> hashes) throws NoSuchAlgorithmException {<NEW_LINE>if (children.isEmpty()) {<NEW_LINE>return InternalFolderElement.newBuilder().setElementName(getPath()).setElementSha(getBlobHash()).build();<NEW_LINE>} else {<NEW_LINE>var internalFol...
.values().iterator();
139,711
public void intersectAndAddInPlace(Tensor other, DoubleUnaryOperator f) {<NEW_LINE>double shrinkage = scaleShrinking ? 1.0 - (baseRate / iteration) : 1.0 - baseRate;<NEW_LINE>scaleInPlace(shrinkage);<NEW_LINE>SGDVector otherVec = (SGDVector) other;<NEW_LINE>for (VectorTuple tuple : otherVec) {<NEW_LINE>double update = ...
tuple.index] = newValue / multiplier;
743,475
public void saveIndexes() {<NEW_LINE>// only save cached indexes... the rest were not modified<NEW_LINE>ArrayList toSave = new ArrayList();<NEW_LINE>synchronized (this) {<NEW_LINE>Object[] valueTable = this.indexes.valueTable;<NEW_LINE>for (int i = 0, l = valueTable.length; i < l; i++) {<NEW_LINE>Index index = (Index) ...
verbose("-> got the following exception while saving:", System.err);
1,609,056
public void invite(Result rawResult) {<NEW_LINE>MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context);<NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>String contactLink = rawResult.getText();<NEW_LINE>String[] s = contactLink.split("C!");<NEW_LINE>codeScanner.start...
invalidCode.setVisibility(View.GONE);
1,367,701
public static GetMetaCategoryResponse unmarshall(GetMetaCategoryResponse getMetaCategoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaCategoryResponse.setRequestId(_ctx.stringValue("GetMetaCategoryResponse.RequestId"));<NEW_LINE>getMetaCategoryResponse.setErrorCode<MASK><NEW_LINE>getMetaCategoryResponse.setErro...
(_ctx.stringValue("GetMetaCategoryResponse.ErrorCode"));
1,775,152
public void render(Context context, RockerModel rockerModel) throws Exception {<NEW_LINE>try {<NEW_LINE>ArrayOfByteArraysOutput output = rockerModel.render(ArrayOfByteArraysOutput.FACTORY);<NEW_LINE>List<byte[]<MASK><NEW_LINE>ByteBuf byteBuf;<NEW_LINE>int size = arrays.size();<NEW_LINE>if (size == 0) {<NEW_LINE>byteBuf...
> arrays = output.getArrays();
474,150
public void transform(PictureHiBD img, PictureHiBD dst) {<NEW_LINE>int[] y = img.getData()[0];<NEW_LINE>int[][] dstData = dst.getData();<NEW_LINE>int off = 0, offSrc = 0;<NEW_LINE>for (int i = 0; i < img.getHeight(); i++) {<NEW_LINE>for (int j = 0; j < img.getWidth() >> 1; j++) {<NEW_LINE>dstData[1][off] = 0;<NEW_LINE>...
[2][off] = 0;
594,428
static // [START securitycenter_group_findings_with_source]<NEW_LINE>ImmutableList<GroupResult> groupFindingsWithSource(SourceName sourceName) {<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// SourceName sourceName = SourceName.of(/*organization=*/"123234324",/*source=*/<NEW_LIN...
groupFindings(request.build());
496,936
public static void extract(File inFile, File outDir) throws IOException {<NEW_LINE>ZipFile zip = new ZipFile(inFile);<NEW_LINE>Enumeration<? extends ZipEntry> entries = zip.entries();<NEW_LINE>while (entries.hasMoreElements()) {<NEW_LINE>ZipEntry entry = entries.nextElement();<NEW_LINE>String outFileName = outDir.getAb...
] buf = new byte[64];
1,549,555
private boolean isKubernetesClusterKubeConfigAvailable(final long timeoutTime) {<NEW_LINE>if (StringUtils.isEmpty(publicIpAddress)) {<NEW_LINE>KubernetesClusterDetailsVO kubeConfigDetail = kubernetesClusterDetailsDao.findDetail(kubernetesCluster.getId(), "kubeConfigData");<NEW_LINE>if (kubeConfigDetail != null && Strin...
getPreferredCharset())), false);
260,912
private static OpenTelemetry maybeAutoConfigureAndSetGlobal() {<NEW_LINE>Class<?> openTelemetrySdkAutoConfiguration;<NEW_LINE>try {<NEW_LINE>openTelemetrySdkAutoConfiguration = Class.forName("io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk");<NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>retu...
autoConfiguredSdk = initialize.invoke(null);
1,667,799
public void writeAsBibtexCitation(OutputStream os) throws IOException {<NEW_LINE>// Use UTF-8<NEW_LINE>Writer out = new BufferedWriter(new OutputStreamWriter(os, "utf-8"));<NEW_LINE>if (getFileTitle() != null && isDirect()) {<NEW_LINE>out.write("@incollection{");<NEW_LINE>} else {<NEW_LINE>out.write("@data{");<NEW_LINE...
.replaceFirst(doubleQ, doubleAp));
1,313,143
public void startElement(String uniqueName, String typeName, int type) {<NEW_LINE>if (DDLogFlags.debug) {<NEW_LINE>TraceLogger.put(TraceLogger.DEBUG, TraceLogger.SVC_DD, DDLogFlags.DBG_DTD, 1, DDLogFlags.STARTELT, uniqueName + " - " + typeName + " - " + typeToString(type));<NEW_LINE>}<NEW_LINE>pushLevel();<NEW_LINE>// ...
getGraphNode(uniqueName, typeName, CREATE);
870,203
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {<NEW_LINE>if (key.equals(getString(R.string.pref_key_notification_pending_drafts))) {<NEW_LINE>if (getActivity() != null) {<NEW_LINE>SharedPreferences prefs = androidx.preference.PreferenceManager.getDefaultSharedPreferences(getActi...
sharedPreferences.getString(key, defaultPath);
428,416
public static Class javaDefaultTypeToClass(String type) throws ClassNotFoundException {<NEW_LINE>if (type == null) {<NEW_LINE>throw new NullPointerException("type");<NEW_LINE>}<NEW_LINE>// try common types and arrays of common types first<NEW_LINE>Class clazz = (Class) ClassUtils.COMMON_TYPES.get(type);<NEW_LINE>if (cl...
componentTypeClass, 0).getClass();
1,225,780
public boolean visit(JsniMethodBody x, Context ctx) {<NEW_LINE>final Set<String> devirtualMethodJsniIdentifiers = Sets.newHashSet();<NEW_LINE>for (JsniMethodRef jsniMethodRef : x.getJsniMethodRefs()) {<NEW_LINE>JMethod target = jsniMethodRef.getTarget();<NEW_LINE>if (target != null && mightNeedDevirtualization(target))...
x.getArguments())));
1,446,648
public void handleEvent(Event e) {<NEW_LINE>Shell shell = new Shell(e.widget.getDisplay());<NEW_LINE><MASK><NEW_LINE>fileDialog.setFilterExtensions(new String[] { "*.tns" });<NEW_LINE>fileDialog.setFilterNames(new String[] { "Server List File(*.tns)" });<NEW_LINE>final String path = fileDialog.open();<NEW_LINE>if (path...
FileDialog fileDialog = new FileDialog(shell);
104,757
public List<MetricsValues> readLabeledMetricsValues(MetricsCondition condition, List<String> labels, Duration duration) throws IOException {<NEW_LINE>if (MetricsType.UNKNOWN.equals(typeOfMetrics(condition.getName())) || !condition.getEntity().isValid()) {<NEW_LINE>final List<PointOfTime> pointOfTimes = duration.assembl...
).buildId() : "ILLEGAL_ENTITY");
924,694
protected AsyncCallFuture<VolumeApiResult> copyVolumeFromImageToPrimary(VolumeInfo srcVolume, DataStore destStore) {<NEW_LINE>AsyncCallFuture<VolumeApiResult> future = new AsyncCallFuture<VolumeApiResult>();<NEW_LINE>VolumeApiResult res = new VolumeApiResult(srcVolume);<NEW_LINE>VolumeInfo destVolume = null;<NEW_LINE>t...
destVolume.processEvent(Event.OperationFailed);
1,367,269
final ListGameServersResult executeListGameServers(ListGameServersRequest listGameServersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGameServersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
false), new ListGameServersResultJsonUnmarshaller());
521,377
public void dropDatabase(final String dbname, final boolean deleteConnections) {<NEW_LINE>new DatabaseCommand(true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute() throws Exception {<NEW_LINE>try {<NEW_LINE>Connection conn = connProcessor.getConnection();<NEW_LINE>Quoter quoter = connProcessor.getQuoter()...
ipaddr = Utils.getHostIpAddress(hostname);
1,205,432
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "mfocrf");<NEW_LINE>final IOperandTreeNode target...
String tmpVar1 = environment.getNextVariableString();
500,729
private boolean isResultingPrivateStateRootAtHeadValid() {<NEW_LINE>final Optional<PrivacyGroupHeadBlockMap> privacyGroupHeadBlockMap = privateStateStorage.getPrivacyGroupHeadBlockMap(blockchain.getChainHeadHash());<NEW_LINE>final Set<Bytes32> privacyGroupIds = privacyGroupHeadBlockMap.orElseThrow(PrivateStorageMigrati...
legacyStateRoot = legacyPrivateStateStorage.getLatestStateRoot(pgId);
565,575
public Mapping<String, SslContext> deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {<NEW_LINE>ObjectCodec codec = jp.getCodec();<NEW_LINE>ObjectNode sslNode = jp.readValueAsTree();<NEW_LINE>SslContext defaultContext;<NEW_LINE>try {<NEW_LINE>defaultContext = toValue(codec, sslNode, SslContext....
String domain = iter.next();
740,832
private void startForeground() {<NEW_LINE>final NotificationCompat.Builder builder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_DFU).setSmallIcon(android.R.drawable.stat_sys_upload).setContentTitle(getString(R.string.dfu_status_foreground_title)).setContentText(getString(R.string.dfu_status_foreground_co...
this, 0, targetIntent, flags);
445,899
private static void fOL_Paramodulation() {<NEW_LINE>System.out.println("-------------------");<NEW_LINE>System.out.println("Paramodulation Demo");<NEW_LINE>System.out.println("-------------------");<NEW_LINE>FOLDomain domain = new FOLDomain();<NEW_LINE>domain.addConstant("A");<NEW_LINE>domain.addConstant("B");<NEW_LINE...
add(new Literal(a1));
266,113
protected void processMessage(HttpServletRequest request, HttpServletResponse response, String encrypt_type, String echostr, String timestamp, String nonce, String signature, String msg_signature, String weixin_id) {<NEW_LINE>String messageContent = getMessageContent(request);<NEW_LINE>logger.info("read original messag...
getHttpResponseStatus().getReasonPhrase());
1,162,571
public static DescribeVulMachineListResponse unmarshall(DescribeVulMachineListResponse describeVulMachineListResponse, UnmarshallerContext context) {<NEW_LINE>describeVulMachineListResponse.setRequestId(context.stringValue("DescribeVulMachineListResponse.RequestId"));<NEW_LINE>describeVulMachineListResponse.setTotalCou...
("DescribeVulMachineListResponse.MachineStatistics[" + i + "].VulAsapSum"));
376,157
public void toXML(XMLWriter generatedXML) {<NEW_LINE>generatedXML.writeElement(null, "activelock", XMLWriter.OPENING);<NEW_LINE>generatedXML.writeElement(null, "locktype", XMLWriter.OPENING);<NEW_LINE>generatedXML.writeElement(null, type, XMLWriter.NO_CONTENT);<NEW_LINE>generatedXML.writeElement(null, "locktype", XMLWr...
null, "lockscope", XMLWriter.OPENING);
1,218,989
void updateDisplayText() {<NEW_LINE>BitmapFont font = style.font;<NEW_LINE><MASK><NEW_LINE>String text = this.text;<NEW_LINE>int textLength = text.length();<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>for (int i = 0; i < textLength; i++) {<NEW_LINE>char c = text.charAt(i);<NEW_LINE>buffer.append(data....
BitmapFontData data = font.getData();
1,263,440
public DataFlowOperator operator(DataFlowOpInitializeContext context) {<NEW_LINE>boolean classpathFileFlag = DataFlowParameterResolution.resolveWithDefault("classpathFile", classpathFile, false, boolean.class, context);<NEW_LINE>AdapterInputSource adapterInputSourceValue = DataFlowParameterResolution.resolveOptionalIns...
resolveStringOptional("propertyNameLine", propertyNameLine, context);
821,993
// /// ************** ALL METHODS HERE *************************** ////////<NEW_LINE>private void _setupEditContainerPage(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user) throws Exception {<NEW_LINE>// Getting the host that can be assigned to the container<NEW_LINE><MASK><NEW_LIN...
PermissionAPI perAPI = APILocator.getPermissionAPI();
631,570
public void test(Object t) throws ParameterException {<NEW_LINE>if (t instanceof List && ((List<?>) t).size() != sizeConstraint) {<NEW_LINE>throw new //<NEW_LINE>WrongParameterValueException(//<NEW_LINE>"Parameter Constraint Error.\n" + "List parameter has not the required size. (Requested size: " + sizeConstraint + ",...
).size() + ").\n");
1,699,538
public void updateTheme(@Nullable Bundle editorTheme) {<NEW_LINE>if (editorTheme == null)<NEW_LINE>return;<NEW_LINE>WritableMap writableMap = new WritableNativeMap();<NEW_LINE>Serializable colors = editorTheme.getSerializable(MAP_KEY_THEME_UPDATE_COLORS);<NEW_LINE>Serializable gradients = editorTheme.getSerializable(MA...
writableMap.putBoolean(MAP_KEY_GALLERY_WITH_IMAGE_BLOCKS, galleryWithImageBlocks);
1,398,274
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = ActivityManageAccountsBinding.inflate(getLayoutInflater());<NEW_LINE>viewModel = new ViewModelProvider(this).get(ManageAccountsViewModel.class);<NEW_LINE>setContentView(binding.getRoot());<NEW_LIN...
-> adapter.setCurrentLocalAccount(null));
1,477,783
public void onGroupExpand(final int groupPosition) {<NEW_LINE>if (!PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingMethodExpert, false)) {<NEW_LINE>AlertDialog.Builder alertDialogBuilder = new <MASK><NEW_LINE>alertDialogBuilder.setTitle(R.string.app_name);<NEW_LINE>alertDialogBuilder.setIcon(getThemed(R.at...
AlertDialog.Builder(ActivityApp.this);
1,603,598
public void controlChanged(final Object source) {<NEW_LINE>if (source == spinnerMaxPerScale) {<NEW_LINE>config.maxFeaturesPerScale = ((Number) spinnerMaxPerScale.getValue()).intValue();<NEW_LINE>} else if (source == spinnerMaxAll) {<NEW_LINE>config.maxFeaturesAll = ((Number) spinnerMaxAll.getValue()).intValue();<NEW_LI...
getValue()).intValue();