idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
506,990
// NB: this method is generally copied from MapProxySupport#invokePutAllOperation<NEW_LINE>private InternalCompletableFuture<Void> invokePutAllOperation(Address address, List<Integer> memberPartitions, MapEntries[] entriesPerPartition) {<NEW_LINE>int size = memberPartitions.size();<NEW_LINE>int[] partitions = new int[s...
System.nanoTime() - startTimeNanos);
1,596,117
public boolean validateZipFile() {<NEW_LINE>String tempdir = getBackupTempFilePath();<NEW_LINE>if (starterZip == null || !starterZip.exists()) {<NEW_LINE>throw new DotStateException("Starter.zip does not exist:" + starterZip);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>deleteTempFiles();<NEW_LINE>File ftempDir = new File(tempd...
z, new File(backupTempFilePath));
1,555,036
public void mouseDragged(final MouseEvent me) {<NEW_LINE>if (!armed)<NEW_LINE>return;<NEW_LINE>switch(zoomType) {<NEW_LINE>case RUBBERBAND_ZOOM:<NEW_LINE>// Treat rubberband zoom on axis like horiz/vert. zoom<NEW_LINE>if (isHorizontal())<NEW_LINE>end = new Point(me.getLocation().x, bounds.y + bounds.height);<NEW_LINE>e...
bounds.y + bounds.height);
1,127,648
private void layout() {<NEW_LINE>height = 0;<NEW_LINE>selectedValueCpu = 0;<NEW_LINE>selectedValueGpu = 0;<NEW_LINE>rootLine.layout(0);<NEW_LINE>frameTimeValue.setText(df.format(getMsFromNs(prof.getAverageFrameTime())) + "ms");<NEW_LINE>frameTimeValue.setLocalTranslation(PANEL_WIDTH / 2, -PADDING, 0);<NEW_LINE>setColor...
), totalTimeCpu, false, false);
1,512,447
public void removeNodeUnsafeRecursive(final String path, final Callback<None> callback) {<NEW_LINE>final ZooKeeper zk = zk();<NEW_LINE>final Callback<None> deleteThisNodeCallback = new Callback<None>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(None none) {<NEW_LINE>removeNodeUnsafe(path, callback);<...
KeeperException.Code.get(rc);
1,679,836
protected Mono<HttpClientResponse> doRequest(final ServerWebExchange exchange, final String httpMethod, final URI uri, final HttpHeaders httpHeaders, final Flux<DataBuffer> body) {<NEW_LINE>return Mono.from(httpClient.headers(headers -> httpHeaders.forEach(headers::add)).request(HttpMethod.valueOf(httpMethod)).uri(uri....
getHeaders().putAll(headers);
1,454,377
public void serialise(DataOutputStream os) throws IOException {<NEW_LINE>super.serialise(os);<NEW_LINE>if (getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_DIV_AND_CONT) {<NEW_LINE>os.writeBoolean(has_continuation);<NEW_LINE>}<NEW_LINE>os.writeBoolean(values != null);<NEW_LINE>if (values == null) {<NEW_LINE>DHT...
, values, -getClockSkew());
1,245,778
public static void vertical11(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NE...
k11 = kernel.data[10];
898,325
final UpdatePackageVersionsStatusResult executeUpdatePackageVersionsStatus(UpdatePackageVersionsStatusRequest updatePackageVersionsStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePackageVersionsStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
27,426
public QrCode signTxRequest(SignTxRequest request) throws WriterException {<NEW_LINE>Service.CommandRequest.SignTxRequest.Builder signTxBuilder = Service.CommandRequest.SignTxRequest.newBuilder();<NEW_LINE>for (SignTxRequest.Input input : request.inputs) {<NEW_LINE>signTxBuilder.addInputs(Common.TxInput.newBuilder().se...
signTxBuilder.setLocalCurrency(request.currency);
1,016,046
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Project <MASK><NEW_LINE>DruidQuery query = call.rel(1);<NEW_LINE>final RelOptCluster cluster = project.getCluster();<NEW_LINE>final RexBuilder rexBuilder = cluster.getRexBuilder();<NEW_LINE>if (!DruidQuery.isValidSignature(query.signature() + 'o')) {<NEW_LINE>return;<...
project = call.rel(0);
1,279,423
final DeleteIntegrationResult executeDeleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
622,155
public SqlFunction build() {<NEW_LINE>// Create "nullableOperands" set including all optional arguments.<NEW_LINE>final IntSet nullableOperands = new IntArraySet();<NEW_LINE>if (requiredOperands != null) {<NEW_LINE>IntStream.range(requiredOperands, operandTypes.size()).forEach(nullableOperands::add);<NEW_LINE>}<NEW_LIN...
inferOperandTypes(callBinding, returnType, types);
1,035,817
private void processExecutableElement(String prefix, ExecutableElement element, Stack<TypeElement> seen) {<NEW_LINE>if ((!element.getModifiers().contains(Modifier.PRIVATE)) && (TypeKind.VOID != element.getReturnType().getKind())) {<NEW_LINE>Element returns = this.processingEnv.getTypeUtils().asElement(element.getReturn...
), element.toString());
1,363,809
final ListHostedConfigurationVersionsResult executeListHostedConfigurationVersions(ListHostedConfigurationVersionsRequest listHostedConfigurationVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listHostedConfigurationVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
(super.beforeMarshalling(listHostedConfigurationVersionsRequest));
939,063
void generateSingularMethod(CheckerFrameworkVersion cfv, boolean deprecate, TypeReference returnType, Statement returnStatement, SingularData data, EclipseNode builderType, boolean fluent, AccessLevel access) {<NEW_LINE>LombokImmutableList<String> suffixes = getArgumentSuffixes();<NEW_LINE>char[][] names = new char[<MA...
suffixes.size()][];
1,211,077
private void checkBackAfterSnoozeTime(Context context, long now) {<NEW_LINE>// This is not 100% accurate, need to take in account also the time of when this alert was snoozed.<NEW_LINE>UserNotification userNotification = UserNotification.GetNotificationByType("bg_missed_alerts");<NEW_LINE>if (userNotification == null) ...
, "bg_missed_alerts") * 1000, false);
1,568,305
// GEN-LAST:event_btnDefaultActionPerformed<NEW_LINE>private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnNewActionPerformed<NEW_LINE>if (newExtensionPanel == null) {<NEW_LINE>newExtensionPanel = new NewExtensionPanel();<NEW_LINE>}<NEW_LINE>newExtensionPanel.setModel(model...
setSelectedItem(newExtensionPanel.getExtension());
731,094
public WasmExpression apply(InvocationExpr invocation, WasmIntrinsicManager manager) {<NEW_LINE>switch(invocation.getMethod().getName()) {<NEW_LINE>case "fill":<NEW_LINE>case "fillZero":<NEW_LINE>case "moveMemoryBlock":<NEW_LINE>{<NEW_LINE>MethodReference delegateMethod = new MethodReference(WasmRuntime.class.getName()...
).getValue() + flagsFieldOffset);
685,672
public FunctionRecord createFunctionRecord(long libraryID, FidHashQuad hashQuad, String name, long entryPoint, String domainPath, boolean hasTerminator) throws IOException {<NEW_LINE>DBRecord record = SCHEMA.createRecord(UniversalIdGenerator.nextID().getValue());<NEW_LINE>record.setShortValue(CODE_UNIT_SIZE_COL, hashQu...
record.setLongValue(DOMAIN_PATH_ID_COL, stringID);
1,136,727
public static String[] reverseSplit(String string, int numItems, String separator) {<NEW_LINE>final String[] splits = string.split("\\" + separator);<NEW_LINE>Preconditions.checkState(splits.length >= numItems, "There must be at least %s instances of %s (there were %s)", numItems - 1, separator, splits.length - 1);<NEW...
0] = lastItemBldr.toString();
1,103,590
public void init(int WindowNo, FormFrame frame) {<NEW_LINE>m_WindowNo = WindowNo;<NEW_LINE>m_frame = frame;<NEW_LINE>log.info("WinNo=" + m_WindowNo + " - AD_Client_ID=" + m_AD_Client_ID + ", AD_Org_ID=" + m_AD_Org_ID + ", By=" + m_by);<NEW_LINE>Env.setContext(Env.getCtx(), m_WindowNo, "IsSOTrx", "N");<NEW_LINE>try {<NE...
add(panel, BorderLayout.CENTER);
1,088,423
public void actionPerformed(final ActionEvent evt, final JTextComponent target) {<NEW_LINE>if (target != null) {<NEW_LINE>if (!target.isEditable() || !target.isEnabled()) {<NEW_LINE>target.getToolkit().beep();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Caret caret = target.getCaret();<NEW_LINE>final BaseDocument doc = ...
DocumentUtilities.setTypingModification(doc, true);
1,270,667
public boolean isActive(FeatureState featureState, FeatureUser user) {<NEW_LINE>HttpServletRequest request = HttpServletRequestHolder.get();<NEW_LINE>if (request == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String triggerParamsString = featureState.getParameter(PARAM_URL_PARAMS);<NEW_LINE>if (Strings.isBlank(t...
referer = request.getHeader("referer");
1,314,694
private Mono<Response<SkuListInner>> listSkusWithResponseAsync(String resourceGroupName, String resourceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this....
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,001,622
public static void main(String[] args) {<NEW_LINE>// Open a webcam at a resolution close to 640x480<NEW_LINE>Webcam webcam = UtilWebcamCapture.openDefault(640, 480);<NEW_LINE>// Create the panel used to display the image and<NEW_LINE>ImagePanel gui = new ImagePanel();<NEW_LINE><MASK><NEW_LINE>gui.setPreferredSize(viewS...
Dimension viewSize = webcam.getViewSize();
307,513
final ListConnectorsResult executeListConnectors(ListConnectorsRequest listConnectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,011,334
public RowMap deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {<NEW_LINE>ObjectNode node = jsonParser.getCodec().readTree(jsonParser);<NEW_LINE>JsonNode encrypted = node.get("encrypted");<NEW_LINE>if (encrypted != null) {<NEW_LINE>String iv = encrypted.get("iv").text...
xid = node.get("xid");
1,068,271
public ProvisionedThroughput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
29,603
public void handleMessage(SoapMessage message) throws Fault {<NEW_LINE>Exchange ex = message.getExchange();<NEW_LINE>BindingOperationInfo bop = ex.getBindingOperationInfo();<NEW_LINE>if (bop == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (bop.isUnwrapped()) {<NEW_LINE>bop = bop.getWrappedOperation();<NEW_LINE>}<NEW...
() : bop.getOutput();
1,596,469
// TODO move out<NEW_LINE>public void finishConfiguration(@NotNull String adminName, @Nullable String adminPassword, @NotNull List<WebAuthInfo> authInfoList) throws DBException {<NEW_LINE>if (!application.isConfigurationMode()) {<NEW_LINE>throw new DBException("Database is already configured");<NEW_LINE>}<NEW_LINE>log....
authProvider.getId(), userCredentials);
965,819
public void actionPerformed(@NotNull AnActionEvent e) {<NEW_LINE>VirtualFile virtualFile = e.getData(CommonDataKeys.VIRTUAL_FILE);<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isQueryableFile(project, virtualFile)) {<NEW_LI...
).executeGraphQL(editor, virtualFile);
490,567
final GetDevicePositionHistoryResult executeGetDevicePositionHistory(GetDevicePositionHistoryRequest getDevicePositionHistoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDevicePositionHistoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,087,408
public // //////////////////////////////////////////////////////<NEW_LINE>Ref listBackupRepository(final String backupServerId, final String backupName) {<NEW_LINE>LOG.debug(String.format("Trying to list backup repository for backup job [name: %s] in server [id: %s].", backupName, backupServerId));<NEW_LINE>try {<NEW_L...
.format("/backupServers/%s/repositories", backupServerId));
1,049,530
private void showBottomSheet() {<NEW_LINE>final String[] labels = new String[menuItems.length];<NEW_LINE>final int[] icons = new int[menuItems.length];<NEW_LINE>for (int i = 0; i < menuItems.length; i++) {<NEW_LINE>labels[i] = LocaleController.getString(menuItems[i].labelKey, menuItems[i].labelResId);<NEW_LINE>icons[i]...
.onMenuClick(menuItems[which]);
1,322,262
private void appendRandomInt(StringBuilder buffer, CodegenOperation op, CodegenVariable var) {<NEW_LINE>if (!appendRandomEnum(buffer, op, var)) {<NEW_LINE>// NOTE: use double to hold int values, to avoid numeric overflow.<NEW_LINE>long min = var == null || var.minimum == null ? Integer.MIN_VALUE : Integer.parseInt(var....
!var.exclusiveMaximum ? 1 : 0;
759,389
public void execute(final Context context) throws FlowException {<NEW_LINE>String _script = getProperty(script);<NEW_LINE>if (_script == null) {<NEW_LINE>_script = "data";<NEW_LINE>}<NEW_LINE>final Logger logger = LoggerFactory.getLogger(FlowLog.class);<NEW_LINE>try {<NEW_LINE>final DataSource _dataSource = getProperty...
"FlowAction(" + getUuid() + ")");
179,649
public Observable<ServiceResponse<LuisResult>> resolveWithServiceResponseAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");<...
staging, spellCheck, bingSpellCheckSubscriptionKey, log);
1,071,253
private void validateIndexNamedParameter(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>if (indexNamedParameter.length != 1 || !(indexNamedParameter[0] instanceof ExprDeclaredNode)) {<NEW_LINE>throw getIndexNameMessage("requires an expression name");<NEW_LINE>}<NEW_LINE>ExprDeclaredN...
get(0).getParametersOrEmpty();
1,006,048
// ===================================================================================<NEW_LINE>// Source<NEW_LINE>// ======<NEW_LINE>@Override<NEW_LINE>public Map<String, Object> toSource() {<NEW_LINE>Map<String, Object> sourceMap = new HashMap<>();<NEW_LINE>if (createdBy != null) {<NEW_LINE>addFieldToSource(sourceMap...
addFieldToSource(sourceMap, "name", name);
21,579
public J visitAnnotation(AnnotationTree node, Space fmt) {<NEW_LINE>skip("@");<NEW_LINE>NameTree name = convert(node.getAnnotationType());<NEW_LINE>JContainer<Expression> args = null;<NEW_LINE>if (node.getArguments().size() > 0) {<NEW_LINE>Space argsPrefix = sourceBefore("(");<NEW_LINE>List<JRightPadded<Expression>> ex...
argsPrefix, expressions, Markers.EMPTY);
979,779
private void compact(Connection cx) throws SQLException, InvalidSchemaError {<NEW_LINE>if (!shouldCompact(cx))<NEW_LINE>return;<NEW_LINE>Long schemaID = chooseCompactedSchemaBase(cx);<NEW_LINE>if (schemaID == null)<NEW_LINE>return;<NEW_LINE>LOGGER.info("compacting schemas before {}", schemaID);<NEW_LINE>try (Statement ...
Statement update = cx.createStatement();
393,014
public double searchDurInCartTree(HTSModel m, FeatureVector fv, HMMData htsData, boolean firstPh, boolean lastPh, double diffdur) {<NEW_LINE>double data, dd;<NEW_LINE><MASK><NEW_LINE>double durscale = htsData.getDurationScale();<NEW_LINE>double[] meanVector, varVector;<NEW_LINE>// the duration tree has only one state<N...
double rho = htsData.getRho();
341,679
public Request<DescribeStreamSummaryRequest> marshall(DescribeStreamSummaryRequest describeStreamSummaryRequest) {<NEW_LINE>if (describeStreamSummaryRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeStreamSummaryRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeStrea...
request.addHeader("X-Amz-Target", target);
548,505
private void responseDescribe(byte[] body, CharSequence contentType, int statusCode, String statusPhrase, Map<String, String> responseHeaders) {<NEW_LINE>try {<NEW_LINE>ArrayList<DescribeModelResponse> respList = ApiUtils.getModelDescription(this.getModelName(), this.getModelVersion());<NEW_LINE>if ((body != null && bo...
set(HttpHeaderNames.CONTENT_TYPE, contentType);
99,135
// Attach a clause to watcher lists.<NEW_LINE>void attachClause(Clause cr) {<NEW_LINE><MASK><NEW_LINE>ArrayList<Watcher> l0 = watches_.get(neg(cr._g(0)));<NEW_LINE>if (l0 == null) {<NEW_LINE>l0 = new ArrayList<>();<NEW_LINE>watches_.put(neg(cr._g(0)), l0);<NEW_LINE>}<NEW_LINE>ArrayList<Watcher> l1 = watches_.get(neg(cr...
assert cr.size() > 1;
1,542,041
// Used by DatumReader. Applications should not call.<NEW_LINE>@SuppressWarnings(value = "unchecked")<NEW_LINE>public void put(int field$, java.lang.Object value$) {<NEW_LINE>switch(field$) {<NEW_LINE>case 0:<NEW_LINE>txn = (java.lang.Long) value$;<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>key = (java.lang.Long) value...
(java.lang.Long) value$;
460,213
// Generates the report and returns an inputstream<NEW_LINE>public java.io.InputStream write(List<WorkItem> list) throws IOException, WriteException {<NEW_LINE>java.io.OutputStream os = new java.io.ByteArrayOutputStream();<NEW_LINE>WorkbookSettings wbSettings = new WorkbookSettings();<NEW_LINE>wbSettings.setLocale(new ...
java.io.ByteArrayInputStream(myBytes);
5,336
public Server choose(Object key) {<NEW_LINE>boolean isTriggered = false;<NEW_LINE>WeightFilterEntity strategyWeightFilterEntity = strategyWeightRandomLoadBalance.getT();<NEW_LINE>if (strategyWeightFilterEntity != null && strategyWeightFilterEntity.hasWeight()) {<NEW_LINE>isTriggered = true;<NEW_LINE>List<Server> server...
ruleWeightRandomLoadBalance.choose(serverList, ruleWeightFilterEntity);
175,141
public int longestMountain(int[] nums) {<NEW_LINE>int start = 0;<NEW_LINE>int max = 0;<NEW_LINE>State state = State.STARTED;<NEW_LINE>for (int i = 1; i < nums.length; i++) {<NEW_LINE>if (nums[i] == nums[i - 1]) {<NEW_LINE>start = i;<NEW_LINE>state = State.STARTED;<NEW_LINE>} else if (nums[i] > nums[i - 1]) {<NEW_LINE>i...
max, i - start + 1);
1,074,725
public StatInfo call() throws Exception {<NEW_LINE>StatInfo result = null;<NEW_LINE>SftpException exception = null;<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>LOG.log(Level.FINE, "{0} started", getTraceName());<NEW_LINE>}<NEW_LINE>String threadName = Thread.currentThread().getName();<NEW_LINE>// NOI18N<NEW_LIN...
currentThread().setName(threadName);
1,764,279
public static Transaction deserialize(byte[] serializedTransaction) throws IOException {<NEW_LINE>ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(serializedTransaction));<NEW_LINE>// Verify that the data is what we expect.<NEW_LINE>int version = in.readInt();<NEW_LINE>checkArgument(version == VERS...
(Mutation.deserializeFrom(in));
197,704
public final void handleRequest(RestRequest request, RestChannel channel, NodeClient client) throws Exception {<NEW_LINE>// prepare the request for execution; has the side effect of touching the request parameters<NEW_LINE>final RestChannelConsumer action = prepareRequest(request, client);<NEW_LINE>// validate unconsum...
request.path() + "] does not support having a body");
1,376,884
public static CompletableFuture<ScriptInfo> loadScripts(List<Config> configs, OpenCloseable openCloseable) {<NEW_LINE>AtomicBoolean syncCommands = new AtomicBoolean();<NEW_LINE>Bukkit.getPluginManager().<MASK><NEW_LINE>ScriptInfo scriptInfo = new ScriptInfo();<NEW_LINE>List<CompletableFuture<Void>> scriptInfoFutures = ...
callEvent(new PreScriptLoadEvent(configs));
1,746,094
private void refreshRemoteVideo() {<NEW_LINE>if (mRemoteUserIdList.size() > 0) {<NEW_LINE>for (int i = 0; i < mRemoteUserIdList.size() || i < 6; i++) {<NEW_LINE>if (i < mRemoteUserIdList.size() && !TextUtils.isEmpty(mRemoteUserIdList.get(i))) {<NEW_LINE>mRemoteVideoList.get(i).setVisibility(View.VISIBLE);<NEW_LINE>mTRT...
).setVisibility(View.GONE);
714,729
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>updateColors();<NEW_LINE>GL11.glDisable(GL11.GL_CULL_FACE);<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>// GL11.glShadeModel(GL11.GL_SMOOTH);<...
window, mouseX, mouseY, partialTicks);
1,064,720
private void loadNode154() {<NEW_LINE>ServerRedundancyTypeNode node = new ServerRedundancyTypeNode(this.context, Identifiers.ServerType_ServerRedundancy, new QualifiedName(0, "ServerRedundancy"), new LocalizedText("en", "ServerRedundancy"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.value...
.expanded(), true));
438,088
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
findViewById(R.id.mapView);
907,114
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>super.<MASK><NEW_LINE>if (requestCode == PermissionUtil.PERMISSIONS_READ_CONTACTS_AUTOMATIC) {<NEW_LINE>for (int index = 0; index < permissions.length; index++) {<NEW_LINE>if (Manifest.permissi...
onRequestPermissionsResult(requestCode, permissions, grantResults);
615,098
public BigInteger decryptBlock(CramerShoupCiphertext input) throws CramerShoupCiphertextException {<NEW_LINE>BigInteger result = null;<NEW_LINE>if (key.isPrivate() && !this.forEncryption && key instanceof CramerShoupPrivateKeyParameters) {<NEW_LINE>CramerShoupPrivateKeyParameters sk = (CramerShoupPrivateKeyParameters) ...
p)).mod(p);
358,106
public void initComplete(Bus bus) {<NEW_LINE>if (bus == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LibertyApplicationBus.Type busType = bus.getExtension(LibertyApplicationBus.Type.class);<NEW_LINE>if (busType == null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, ...
getInInterceptors().add(globalHandlerInInterceptor);
1,463,475
public Spliterator<A> trySplit() {<NEW_LINE>if (spliterators[splitPos] == null)<NEW_LINE>spliterators[splitPos] = collections[splitPos].spliterator();<NEW_LINE>Spliterator<T> res = spliterators[splitPos].trySplit();<NEW_LINE>if (res == null) {<NEW_LINE>if (splitPos == spliterators.length - 1)<NEW_LINE>return null;<NEW_...
doSplit(prefixEst, prefixSpliterators, prefixCollections);
546,648
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>logger.debug("Refreshing authentication token.");<NEW_LINE>ITokenGenerator tokenGenerator = getTokenGenerator();<NEW_LINE>BearerTokenCredentialsBean tokenBean = tokenGenerator.g...
"Date", System.currentTimeMillis());
1,418,937
<T> BindingImpl<T> createImplementedByBinding(Key<T> key, Scoping scoping, ImplementedBy implementedBy, Errors errors) throws ErrorsException {<NEW_LINE>Class<?> rawType = key<MASK><NEW_LINE>Class<?> implementationType = implementedBy.value();<NEW_LINE>// Make sure it's not the same type. TODO: Can we check for deeper ...
.getTypeLiteral().getRawType();
49,395
public static String extractText(final CharSequence html) {<NEW_LINE>if (StringUtils.isBlank(html)) {<NEW_LINE>return StringUtils.EMPTY;<NEW_LINE>}<NEW_LINE>String result = html.toString();<NEW_LINE>// recognize images in textview HTML contents<NEW_LINE>if (html instanceof Spanned) {<NEW_LINE>final Spanned text = (Span...
.toString().trim();
92,878
public void open(Configuration parameters) throws Exception {<NEW_LINE>RdbSideTableInfo rdbSideTableInfo = (RdbSideTableInfo) sideInfo.getSideTableInfo();<NEW_LINE>synchronized (RdbAsyncReqRow.class) {<NEW_LINE>if (resourceCheck) {<NEW_LINE>resourceCheck = false;<NEW_LINE>JdbcResourceCheck.getInstance().checkResourceSt...
JDBCClient.createNonShared(vertx, jdbcConfig);
709,303
public synchronized static void initializePython() {<NEW_LINE>if (isInitialized.get())<NEW_LINE>return;<NEW_LINE>// Set the Jython package cache directory.<NEW_LINE>Properties jythonProperties = new Properties();<NEW_LINE>String jythonCacheDir = Platform.getUserDataDirectory() + Platform.SEP + "_jythoncache";<NEW_LINE>...
= new File(libDir, "nodeboxlibs.zip");
109,580
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xValue = source.getManaCostsToPay().getX();<NEW_LINE>if (xValue == 1 || xValue >= 4) {<NEW_LINE>controller.scry(1, so...
Zone.HAND, source, game);
250,051
public void resetReaderGroup() {<NEW_LINE>log.<MASK><NEW_LINE>synchronizer.fetchUpdates();<NEW_LINE>// reset the reader group to last completed checkpoint, If there is no successfully completed last checkpoint then reset back to start of streamcut<NEW_LINE>val latestCheckpointConfig = synchronizer.getState().getConfig(...
info("Reset ReaderGroup {} to successfully last completed checkpoint", getGroupName());
1,269,833
public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>super.processBindingConfiguration(context, item, bindingConfig);<NEW_LINE>if (bindingConfig == null || bindingConfig.trim().isEmpty()) {<NEW_LINE>// empty binding - nothing to do<NEW_LI...
(), cmdType, deviceId));
882,014
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>select.setWhereClause(null);<NEW_LINE>String originalQueryString = SQLite3Visitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQueryString, errors, state);<NEW_LINE>boolean orderBy ...
thirdQueryString = SQLite3Visitor.asString(select);
1,673,928
public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(paymentAccount.getPaymentMethod<MASK><NEW_LINE>TextField field = addCompactTopLabelTextFiel...
().getId()));
1,552,632
public static // raw_text | magic_comment | comment | environment | pseudocode_block | math_environment | COMMAND_IFNEXTCHAR | commands | group | OPEN_PAREN | CLOSE_PAREN | parameter_text | BACKSLASH | OPEN_ANGLE_BRACKET | CLOSE_ANGLE_BRACKET<NEW_LINE>boolean optional_param_content(PsiBuilder b, int l) {<NEW_LINE>if (!...
r = consumeToken(b, OPEN_ANGLE_BRACKET);
1,213,382
public void fillList() {<NEW_LINE>// Carlos Ruiz - globalqss - improve to avoid going to the database on every keystroke<NEW_LINE>m_cities.clear();<NEW_LINE>m_citiesShow.clear();<NEW_LINE>ArrayList<Object> params = new ArrayList<Object>();<NEW_LINE>final StringBuffer sql = new StringBuffer("SELECT cy.C_City_ID, cy.Name...
sql.toString(), null);
840,880
private boolean showPopupMenu(int row, int col, int x, int y) {<NEW_LINE>JTable table = actionsTable;<NEW_LINE>if (col != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Object valueAt = table.getValueAt(row, col);<NEW_LINE>ShortcutCellPanel scCell = (ShortcutCellPanel) table.getCellRenderer(row, col).getTableCellRende...
= button.getX() + 1;
611,565
public CreateRelationalDatabaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateRelationalDatabaseResult createRelationalDatabaseResult = new CreateRelationalDatabaseResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
)).unmarshall(context));
6,427
private void deleteCommits() throws IOException {<NEW_LINE>int size = commitsToDelete.size();<NEW_LINE>if (size > 0) {<NEW_LINE>// First decref all files that had been referred to by<NEW_LINE>// the now-deleted commits:<NEW_LINE>Throwable firstThrowable = null;<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>CommitP...
commit.getSegmentsFileName() + "\"");
374,497
public void selectNode(final PsiElement element, final PsiFileSystemItem file, final boolean requestFocus) {<NEW_LINE>final Runnable runnable = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>myUpdateQueue.queue(new Update("Select") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void...
(node.getPath()));
888,523
/*<NEW_LINE>* Registers a subcontext with red5<NEW_LINE>*/<NEW_LINE>public void registerSubContext(String webAppKey) {<NEW_LINE>// get the sub contexts - servlet context<NEW_LINE>ServletContext ctx = servletContext.getContext(webAppKey);<NEW_LINE>if (ctx == null) {<NEW_LINE>ctx = servletContext;<NEW_LINE>}<NEW_LINE>Con...
Context) appCtx.getBean("web.context");
1,497,836
private void handleMultiChannelEndpointReportResponse(SerialMessage serialMessage, int offset) {<NEW_LINE>logger.debug("Process Multi-channel endpoint Report");<NEW_LINE>boolean changingNumberOfEndpoints = (serialMessage.getMessagePayloadByte(offset) & 0x80) != 0;<NEW_LINE>endpointsAreTheSameDeviceClass = (serialMessag...
getMessagePayloadByte(offset + 1) & 0x7F;
98,559
public String shortSummary() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("[reason=").append(reason).append("]");<NEW_LINE>sb.append(", at[").append(DATE_TIME_FORMATTER.format(Instant.ofEpochMilli(unassignedTimeMillis<MASK><NEW_LINE>if (failedAllocations > 0) {<NEW_LINE>sb.append(", failed_atte...
))).append("]");
1,528,567
protected void handleSuccess(Response response, Request<List<ThreadChannel>> request) {<NEW_LINE><MASK><NEW_LINE>DataArray selfThreadMembers = obj.getArray("members");<NEW_LINE>DataArray threads = obj.getArray("threads");<NEW_LINE>List<ThreadChannel> list = new ArrayList<>(threads.length());<NEW_LINE>EntityBuilder buil...
DataObject obj = response.getObject();
1,150,412
public void markupAsDeletion(org.docx4j.wml.SdtContentBlock cbLeft, javax.xml.transform.Result result, String author, java.util.Calendar date, RelationshipsPart docPartRelsRight) {<NEW_LINE>Writer diffxResult = new StringWriter();<NEW_LINE>try {<NEW_LINE>// Now marshall it<NEW_LINE>JAXBContext jc = Context.jc;<NEW_LINE...
transformParameters.put("relsDiffIdentifier", relsDiffIdentifier);
1,676,126
public void emit(StringBuilder builder) {<NEW_LINE>StringBuilder prefixBuilder = new StringBuilder();<NEW_LINE>StringBuilder postfixBuilder = new StringBuilder();<NEW_LINE>prefixBuilder.append(String.format(": [%04X:%08X], Length: %08X, ", symbolSegment, symbolOffset, procedureLength));<NEW_LINE>postfixBuilder.append(S...
pdb.getTypeRecord(typeRecordNumber)));
1,748,733
public LoadMappingsResult load(List<MappingFileData> mappings) {<NEW_LINE>Configuration globalConfiguration = findConfiguration(mappings);<NEW_LINE>ClassMappings customMappings = new ClassMappings(beanContainer);<NEW_LINE>// Decorate the raw ClassMap objects and create ClassMap "prime" instances<NEW_LINE>for (MappingFi...
new ArrayList<>(customConverterDescriptions));
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...
copyOf(response.iterateAll());
307,587
public void render(TileEntityTurbineRotor tile, PoseStack matrix, VertexConsumer buffer, int light, int overlayLight) {<NEW_LINE>int housedBlades = tile.getHousedBlades();<NEW_LINE>if (housedBlades == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int baseIndex <MASK><NEW_LINE>if (!Minecraft.getInstance().isPaused()) {<NEW_...
= tile.getPosition() * 2;
318,730
private static void fixExtents(LayoutMasterSet lms, AbstractWmlConversionContext context, boolean useXSLT) {<NEW_LINE>WordprocessingMLPackage wordMLPackage = context.getWmlPackage();<NEW_LINE>StartEvent startEvent = new StartEvent(wordMLPackage, WellKnownProcessSteps.FO_EXTENTS);<NEW_LINE>startEvent.publish();<NEW_LINE...
getSections(), headerBpda, footerBpda);
351,141
private RoutingPolicy toRoutingPolicy(RouteMap routeMap) {<NEW_LINE>String name = routeMap.getName();<NEW_LINE>RoutingPolicy routingPolicy = new RoutingPolicy(name, _c);<NEW_LINE>List<Statement> statements = routingPolicy.getStatements();<NEW_LINE>for (Entry<Integer, RouteMapRule> e : routeMap.getRules().entrySet()) {<...
(this, _c, _w));
834,396
public static void addPath(String path) throws MalformedURLException {<NEW_LINE>File file = new File(path);<NEW_LINE>// Ensure that directory URLs end in "/"<NEW_LINE>if (file.isDirectory() && !path.endsWith("/")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>file = new File(path + "/");<NEW_LINE>}<NEW_LIN...
append(jar.getPath());
885,938
private static boolean hasEnterprisePolicy(AppAlias.Alias alias, boolean userOnly) throws ConflictingPolicyException {<NEW_LINE>if (SystemUtilities.isWindows()) {<NEW_LINE>String key = String.format("Software\\Policies\\%s\\%s\\Certificates", alias.getVendor(), alias.getName(true));<NEW_LINE>Integer foundPolicy = Windo...
.getBundleId(), foundPolicy));
877,942
public void addMatchingInterceptors(InterceptableChannel channel, String beanName) {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Applying global interceptors on channel '" + beanName + "'");<NEW_LINE>}<NEW_LINE>List<GlobalChannelInterceptorWrapper> tempInterceptors = new ArrayList<>();<NEW_LINE>this....
).forEach(channel::addInterceptor);
347,137
public long sendImpl(long transactionId) throws IOException {<NEW_LINE>Request req = getRequest();<NEW_LINE>// at this stage, the request has an IBM-Destination header.<NEW_LINE>// if this is an INVITE, we want to keep the IBM-Destination header,<NEW_LINE>// because that's exactly where we want to send future CANCELs.<...
"bad header [" + SipUtil.DESTINATION_URI + ']');
1,292,093
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("memory" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQ...
varParam = param.getSub(1);
1,231,866
final RejectCertificateTransferResult executeRejectCertificateTransfer(RejectCertificateTransferRequest rejectCertificateTransferRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectCertificateTransferRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
1,700,050
private void insert(Session session, String data) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>String[] dataArray = data.split(",");<NEW_LINE>String device = dataArray[0];<NEW_LINE>long time = Long.parseLong(dataArray[1]);<NEW_LINE>List<String> measurements = Arrays.asList(dataArray[2].split(...
time, measurements, types, values);
584,140
void deploy(FunctionRegistry functionRegistry, FunctionDeployerProperties functionProperties, String[] args, ApplicationContext applicationContext) {<NEW_LINE>ClassLoader currentLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>ClassLoader cl = createClassLoader(discoverClassPathAcrhives(...
((BeanDefinitionRegistry) applicationContext, false);
1,442,626
protected void doBuild(DaemonCommandExecution execution, Build build) {<NEW_LINE>Properties originalSystemProperties = new Properties();<NEW_LINE>originalSystemProperties.putAll(System.getProperties());<NEW_LINE>Map<String, String> originalEnv = new HashMap<String, String>(System.getenv());<NEW_LINE>File originalProces...
getEnvVariables().keySet());
1,591,552
// //////////////////// SPEC RULE VERIFICATION ///////////////////////////////<NEW_LINE>@Override<NEW_LINE>@Test<NEW_LINE>public void required_spec201_blackbox_mustSignalDemandViaSubscriptionRequest() throws Throwable {<NEW_LINE>blackboxSubscriberTest(new BlackboxTestStageTestRun() {<NEW_LINE><NEW_LINE>@Override<NEW_LI...
Math.min(requested, 512);
836,386
public void parseSSLKeyStore(Element elem, ManagedMap<String, BeanDefinition> sslKeyStoreMap) {<NEW_LINE>String id = elem.getAttribute("id");<NEW_LINE>String <MASK><NEW_LINE>String keystoreType = elem.getAttribute("type");<NEW_LINE>String keystorePass = elem.getAttribute("keystorePass");<NEW_LINE>String certPass = elem...
filePath = elem.getAttribute("file");