idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
444,886
private Mono<Response<StringDictionaryInner>> listStaticSiteBuildAppSettingsWithResponseAsync(String resourceGroupName, String name, String environmentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() i...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
739,628
final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(listDomainNamesRequest));
1,528,982
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>PathConstraint constraint = skeleton.pathConstraints.get(pathConstraintIndex);<NEW_LINE>if (!constraint.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.fram...
+ X] - x) * t;
1,750,876
static String pullFontPathFromTheme(Context context, int styleAttrId, int subStyleAttrId, int[] attributeId) {<NEW_LINE>if (styleAttrId == -1 || attributeId == null)<NEW_LINE>return null;<NEW_LINE>final Resources.Theme theme = context.getTheme();<NEW_LINE>final TypedValue value = new TypedValue();<NEW_LINE>theme.resolv...
context.obtainStyledAttributes(subStyleResId, attributeId);
280,596
private static void underlineStacktraces(StyledDocument doc, JTextPane textPane, List<StackTracePosition> stacktraces, String comment) {<NEW_LINE>Style defStyle = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);<NEW_LINE>// NOI18N<NEW_LINE>Style hlStyle = doc.addStyle("regularBlue-stacktrace"...
StyleConstants.setUnderline(hlStyle, true);
852,888
public Object visit(Object context1, FunctionCallExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object ref = expr.getMemberExpression().accept(context, this, strict);<NEW_LINE>Object function = getValue(context, ref);<NEW_LINE>List<Expression> argExprs = exp...
+ function.toString()));
1,309,100
private void writeData(byte value, int node) {<NEW_LINE>int row;<NEW_LINE>int column;<NEW_LINE>// first matrix<NEW_LINE>if (node < getInputs() * getAnd()) {<NEW_LINE>row = node / getInputs();<NEW_LINE>column = node - row * getInputs();<NEW_LINE>switch(value) {<NEW_LINE>case 0:<NEW_LINE>// none selected<NEW_LINE>inputAn...
-= getInputs() * getAnd();
1,154,670
void updateText(int currentItem, PagerAdapter adapter) {<NEW_LINE>final int itemCount = adapter != null ? adapter.getCount() : 0;<NEW_LINE>mUpdatingText = true;<NEW_LINE>CharSequence text = null;<NEW_LINE>if (currentItem >= 1 && adapter != null) {<NEW_LINE>text = adapter.getPageTitle(currentItem - 1);<NEW_LINE>}<NEW_LI...
mPrevText.measure(childWidthSpec, childHeightSpec);
1,019,056
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>LinearLayout row = new LinearLayout(getContext());<NEW_LINE>row.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));<NEW_LINE>final int screenSize = getResources().g...
column.setGravity(Gravity.CENTER);
1,441,845
protected void calculatePath(RouterOperation routerOperation, Locale locale, OpenAPI openAPI) {<NEW_LINE>String operationPath = routerOperation.getPath();<NEW_LINE>io.swagger.v3.oas.annotations.Operation apiOperation = routerOperation.getOperation();<NEW_LINE>String[] methodConsumes = routerOperation.getConsumes();<NEW...
.setSchema(new StringSchema());
1,540,484
public ExtensionJson toExtensionJson() {<NEW_LINE>var json = new ExtensionJson();<NEW_LINE>var extension = this.getExtension();<NEW_LINE>json.namespace = extension.getNamespace().getName();<NEW_LINE>json.name = extension.getName();<NEW_LINE>json.averageRating = extension.getAverageRating();<NEW_LINE>json.downloadCount ...
toUTCString(this.getTimestamp());
1,146,891
private void realmRequest(String url, boolean reportErrors, Consumer<String> callback) {<NEW_LINE>AuthDetails details;<NEW_LINE>try {<NEW_LINE>details = getAuthDetails();<NEW_LINE>} catch (IOException e) {<NEW_LINE>printAuthErrorMessage();<NEW_LINE>callback.accept(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// version ...
-> callback.accept(""));
1,103,644
public QueryOrderingProperty toObject(JsonObject jsonObject) {<NEW_LINE>String relation = null;<NEW_LINE>if (jsonObject.has(RELATION)) {<NEW_LINE>relation = JsonUtil.getString(jsonObject, RELATION);<NEW_LINE>}<NEW_LINE>QueryOrderingProperty property = null;<NEW_LINE>if (QueryOrderingProperty.RELATION_VARIABLE.equals(re...
JsonUtil.getString(jsonObject, QUERY_PROPERTY);
1,334,331
private static Pins createPins(PinDescriptions inputs, PinDescriptions outputs, boolean invert, int width, boolean symmetric, InverterConfig ic) {<NEW_LINE>Pins pins = new Pins();<NEW_LINE>int offs = symmetric ? inputs.size() / 2 * SIZE : 0;<NEW_LINE>for (int i = 0; i < inputs.size(); i++) {<NEW_LINE>int correct = 0;<N...
inputs.get(i)));
981,577
public void sendReminderForOfflinePayments() {<NEW_LINE>Date expiration = truncate(addHours(new Date(), configurationManager.getForSystem(OFFLINE_REMINDER_HOURS).getValueAsIntOrDefault(24)), Calendar.DATE);<NEW_LINE>ticketReservationRepository.findAllOfflinePaymentReservationForNotificationForUpdate(expiration).stream(...
(t.getEventId()));
985,723
private Object addBatch(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException {<NEW_LINE>Object sqljPstmt = args[0];<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isDebugEn...
) handler).getJDBCImplObject() };
66,051
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final 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()...
) e).getIndex());
1,529,215
public long sendNoteToSelfMessage(final String message, final List<String> attachments) throws Error.AttachmentInvalid, Error.Failure, Error.UntrustedIdentity {<NEW_LINE>try {<NEW_LINE>final var results = m.sendMessage(new Message(message, attachments, List.of(), Optional.empty(), Optional.empty()), Set.of<MASK><NEW_LI...
(RecipientIdentifier.NoteToSelf.INSTANCE));
1,479,149
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("swap" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<N...
getLeafExpression().calculate(ctx);
1,758,344
private void checkToBeCreatedResources(final String schemaName, final CreateReadwriteSplittingRuleStatement sqlStatement, final ShardingSphereMetaData shardingSphereMetaData) throws DistSQLException {<NEW_LINE>Collection<String> requireResources = new LinkedHashSet<>();<NEW_LINE>Collection<String> <MASK><NEW_LINE>sqlSt...
requireDiscoverableResources = new LinkedHashSet<>();
1,579,054
protected Index basicGetJandexIndex() {<NEW_LINE>String useJandexIndexPath = getJandexIndexPath();<NEW_LINE>InputStream jandexStream;<NEW_LINE>try {<NEW_LINE>jandexStream = openResourceStream(null, useJandexIndexPath);<NEW_LINE>// throws ClassSource_Exception<NEW_LINE>} catch (ClassSource_Exception e) {<NEW_LINE>// TOD...
.size()) }));
740,852
public com.amazonaws.services.shield.model.ResourceAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.shield.model.ResourceAlreadyExistsException resourceAlreadyExistsException = new com.amazonaws.services.shield.model.ResourceAlreadyExistsEx...
class).unmarshall(context));
521,489
private void handle(APIUpdateLdapServerMsg msg) {<NEW_LINE>APIUpdateLdapServerEvent evt = new APIUpdateLdapServerEvent(msg.getId());<NEW_LINE>LdapServerVO ldapServerVO = dbf.findByUuid(msg.getLdapServerUuid(), LdapServerVO.class);<NEW_LINE>if (ldapServerVO == null) {<NEW_LINE>evt.setError(err(LdapErrors.UNABLE_TO_GET_S...
setDescription(msg.getDescription());
1,637,295
private DrillTable parseTableFunction(TableInstance key, FileSelectionInspector inspector, DrillTable table) {<NEW_LINE>FileSelection newSelection = inspector.selection();<NEW_LINE>if (newSelection.isEmptyDirectory()) {<NEW_LINE>return new DynamicDrillTable(plugin, storageEngineName, schemaConfig.getUserName(), inspect...
createConfigForTable(key, mapper, baseConfig);
945,881
private List<Ticket> acquireItems(PaymentProxy paymentProxy, String reservationId, String email, CustomerName customerName, String userLanguage, String billingAddress, String customerReference, PurchaseContext purchaseContext, boolean sendTickets) {<NEW_LINE>switch(purchaseContext.getType()) {<NEW_LINE>case event:<NEW_...
now(clockProvider.getClock());
1,443,023
public Number nextNumber() {<NEW_LINE>expect(JsonType.NUMBER);<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>// We know it's safe to use a do/while loop since the first character was a number<NEW_LINE>boolean fractionalPart = false;<NEW_LINE>do {<NEW_LINE>char read = input.peek();<NEW_LINE>if (Characte...
append(input.read());
1,717,716
private void visitEntriesInternal(long captureTick, TraceEntryVisitor entryVisitor, SharedQueryTextCollection sharedQueryTextCollection) {<NEW_LINE>memoryBarrierRead();<NEW_LINE>ListMultimap<TraceEntryImpl, ThreadContextImpl> priorEntryChildThreadContextMap = buildPriorEntryChildThreadContextMap();<NEW_LINE>ListMultima...
populateParentChildMap(parentChildMap, captureTick, priorEntryChildThreadContextMap);
1,745,734
private boolean createIndex(ElasticSearchIndexType elasticSearchIndexType) {<NEW_LINE>try {<NEW_LINE>GetIndexRequest gRequest = new GetIndexRequest(elasticSearchIndexType.indexName);<NEW_LINE>gRequest.local(false);<NEW_LINE>boolean exists = client.indices().exists(gRequest, RequestOptions.DEFAULT);<NEW_LINE>if (!exists...
mapping(elasticSearchIndexMapping, XContentType.JSON);
1,654,513
public static DescribeDBProxyPerformanceResponse unmarshall(DescribeDBProxyPerformanceResponse describeDBProxyPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBProxyPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBProxyPerformanceResponse.RequestId"));<NEW_LINE>describeDBProxyPerformanceRe...
(_ctx.stringValue("DescribeDBProxyPerformanceResponse.DBVersion"));
899,411
public net.minecraft.nbt.CompoundTag inspect(net.minecraft.nbt.CompoundTag cmp, int sourceVer, int targetVer) {<NEW_LINE>net.minecraft.nbt.CompoundTag nbttagcompound1 = cmp.getCompound("tag");<NEW_LINE>if (nbttagcompound1.contains("EntityTag", 10)) {<NEW_LINE>net.minecraft.nbt.CompoundTag <MASK><NEW_LINE>String s = cmp...
nbttagcompound2 = nbttagcompound1.getCompound("EntityTag");
289,751
protected String run() throws Exception {<NEW_LINE>final Jenkins jenkins = Jenkins.get();<NEW_LINE>final Item <MASK><NEW_LINE>final SlackNotifier.DescriptorImpl slackDesc = jenkins.getDescriptorByType(SlackNotifier.DescriptorImpl.class);<NEW_LINE>final String email = step.email;<NEW_LINE>final String tokenCredentialId ...
item = getItemForCredentials(getContext());
684,620
/*<NEW_LINE>* Looks for the next page. If is is the NavaigationHandlerFail page the<NEW_LINE>* navigation is changed the navigation handler pass page. For all other<NEW_LINE>* request the next page is assumed to be .xhtml.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void handleNavigation(FacesContext context, String...
String nextPage = "/" + outcome + ".xhtml";
561,159
private boolean performExploit(NetworkService networkService, String core, String writerName) {<NEW_LINE>String targetUri = NetworkServiceUtils.buildWebApplicationRootUrl(networkService) + "solr/" + core + "/select?q=1&&wt=" + writerName + "&v.template=custom&v.template.custom=" + "%23set($x='TSUNAMI')+" + "%23set($str...
.bodyString().get();
877,529
public void marshall(UpdateLicenseConfigurationRequest updateLicenseConfigurationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLicenseConfigurationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
updateLicenseConfigurationRequest.getLicenseCount(), LICENSECOUNT_BINDING);
1,408,170
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>_mbwManager = MbwManager.getInstance(this);<NEW_LINE>_ltManager = _mbwManager.getLocalTraderManager();<NEW_LINE>_viewPager = new ViewPager(this);<NEW_LINE>_viewPager.setId(R.id.pager);<NEW_LINE>setContentView(_viewPa...
.selectTab(enumToTab(tabToSelect));
178,867
private boolean putInternal(@Nullable K k, V v) {<NEW_LINE>if (k == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Collection<V> set = map.get(k);<NEW_LINE>if (set == null) {<NEW_LINE>set = Collections.singleton(v);<NEW_LINE>map.put(k, set);<NEW_LINE>size++;<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (set.size() ...
>(set, v, valueWithness);
1,796,072
public void testParseAndSearch(Jedis conn) {<NEW_LINE>System.out.println("\n----- testParseAndSearch -----");<NEW_LINE>System.out.println("And now we are testing search...");<NEW_LINE>indexDocument(conn, "test", CONTENT);<NEW_LINE>Set<String> test = new HashSet<String>();<NEW_LINE>test.add("test");<NEW_LINE>String id =...
.smembers("idx:" + id));
35,128
protected CollisionObjectDesc.Builder transform(Task<Void> task, IResource resource, CollisionObjectDesc.Builder messageBuilder) throws IOException, CompileExceptionError {<NEW_LINE>if (messageBuilder.getEmbeddedCollisionShape().getShapesCount() == 0) {<NEW_LINE>BuilderUtil.checkResource(this.project, resource, "collis...
(), ".tilegrid", ".tilemapc"));
50,872
private void checkServiceErrorSchema(ServiceErrorSchema prevRec, ServiceErrorSchema currRec) {<NEW_LINE>// Check the status field<NEW_LINE>checkEqualSingleValue(prevRec.schema().getField("status"), prevRec.getStatus(GetMode.DEFAULT), currRec<MASK><NEW_LINE>// Check the errorDetailType field<NEW_LINE>final boolean error...
.getStatus(GetMode.DEFAULT));
199,767
public static void main(String[] args) {<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://localhost:1111";<NEW_LINE>else<NEW_LINE>url = args[0];<NEW_LINE>Node foo1 = Node.createURI("http://example.org/#foo1");<NEW_LINE>Node bar1 = Node.createURI("http://example.org/#bar1");<NEW_LINE>N...
Triple) iter.next());
1,226,641
public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressIndex other) {<NEW_LINE>if (other == net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasName()) {<NEW_LINE>bitField0_ |= 0x00000001;<NEW_LINE>name_ = other.name_;<NEW_LINE>onChanged();<NEW_LIN...
citiesBuilder_.addAllMessages(other.cities_);
1,144,485
public void userGetWalletHistory(String currency, Double count, Double start, final Response.Listener<List<Transaction>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/walletHistory".replaceAll("\\{...
] { "apiExpires", "apiKey", "apiSignature" };
1,414,101
private void initializeRecording() {<NEW_LINE>var imageData = viewer.getImageData();<NEW_LINE>hasZAndT = imageData.getServer().getMetadata().getSizeZ() != 1 || imageData.getServer().getMetadata().getSizeT() != 1;<NEW_LINE>frames.clear();<NEW_LINE>startTime = System.currentTimeMillis();<NEW_LINE>lastFrame = null;<NEW_LI...
(), hasZAndT()));
1,484,321
public JobView viewOf(Job<?, ?> job) {<NEW_LINE>List<Feature> viewFeatures = new ArrayList<>();<NEW_LINE>// todo: a more elegant way of assembling the features would be nice<NEW_LINE>viewFeatures.add(new HasConfig(config));<NEW_LINE>viewFeatures.add(new HasHeadline(new HeadlineConfig(config.shouldDisplayCommitters())))...
.add(new KnowsLastCompletedBuildDetails());
863,247
public boolean isEnabledForContext(ActionContext context) {<NEW_LINE>if (!(context instanceof DecompilerActionContext)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DecompilerActionContext decompilerContext = (DecompilerActionContext) context;<NEW_LINE>return decompilerContext.checkActionEnablement(() -> {<NEW_LINE>Fun...
ClangToken tokenAtCursor = decompilerPanel.getTokenAtCursor();
713,544
private void sampleOldestActions(AnsiTerminalWriter terminalWriter) throws IOException {<NEW_LINE>// This method can only be called if 'activeActions.size()' was observed to be larger than 1 at<NEW_LINE>// some point in the past. But the 'activeActions' map can grow and shrink concurrent with this<NEW_LINE>// code here...
long nanoTime = clock.nanoTime();
1,670,985
public Orient shutdown() {<NEW_LINE>engineLock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>if (!active)<NEW_LINE>return this;<NEW_LINE>active = false;<NEW_LINE>OLogManager.instance().info(this, "Orient Engine is shutting down...");<NEW_LINE>for (OShutdownHandler handler : shutdownHandlers) {<NEW_LINE>try {<NEW_LINE>OLo...
instance(null).clear();
1,344,948
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.ScheduleManagementGrpc.ScheduleManagementImplBase#<NEW_LINE>* createScheduledJob(com.sitewhere.grpc.service.GCreateScheduledJobRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createScheduledJob(GCreateScheduled...
handleServerMethodExit(ScheduleManagementGrpc.getCreateScheduledJobMethod());
1,683,145
protected static boolean checkRawModulesTables(final CConnection connection, final String databaseName, final int rawModuleId) {<NEW_LINE>Preconditions.checkNotNull(connection, "IE02261: Connection argument can not be null");<NEW_LINE>Preconditions.checkNotNull(databaseName, "IE02262: Database name argument can not be ...
PostgreSQLDatabaseFunctions.queryCache(cacheKey, rawTableNames);
171,349
public static ListTemplatesResponse unmarshall(ListTemplatesResponse listTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTemplatesResponse.setRequestId<MASK><NEW_LINE>listTemplatesResponse.setTotalCount(_ctx.integerValue("ListTemplatesResponse.TotalCount"));<NEW_LINE>listTemplatesResponse.setPageSize(_ctx.i...
(_ctx.stringValue("ListTemplatesResponse.RequestId"));
336,371
default Pool createPool(Vertx vertx, List<? extends SqlConnectOptions> databases, PoolOptions options) {<NEW_LINE>VertxInternal vx;<NEW_LINE>if (vertx == null) {<NEW_LINE>if (Vertx.currentContext() != null) {<NEW_LINE>throw new IllegalStateException("Running in a Vertx context => use Pool#pool(Vertx, SqlConnectOptions,...
VertxInternal) Vertx.vertx(vertxOptions);
1,062,582
public static void updateWebStartJarsOnChange(final EditableProperties ep, final PropertyEvaluator eval, boolean isWebStart) throws IOException {<NEW_LINE>Map<String, String> map = getClassPathItems(ep, eval, ENDORSED_CLASSPATH);<NEW_LINE>filterOutLibItems(map, LIB_JAVAWS);<NEW_LINE>filterOutLibItems(map, LIB_PLUGIN);<...
LinkedHashMap<String, String>();
1,854,360
final DescribeTargetGroupAttributesResult executeDescribeTargetGroupAttributes(DescribeTargetGroupAttributesRequest describeTargetGroupAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTargetGroupAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
471,539
public static void main(String[] args) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>session = new Session("127.0.0.1", 6667, "root", "root");<NEW_LINE>session.open(false);<NEW_LINE>// set session fetchSize<NEW_LINE>session.setFetchSize(10000);<NEW_LINE>// createTemplate();<NEW_LINE>createAlig...
System.out.println("execute sql delete from root.sg_1.d1.s1 where time <= 10");
263,165
public float evaluate(int indexA, int indexB, float t) {<NEW_LINE>m_sweepA.getTransform(xfa, t);<NEW_LINE>m_sweepB.getTransform(xfb, t);<NEW_LINE>switch(m_type) {<NEW_LINE>case POINTS:<NEW_LINE>{<NEW_LINE>localPointA.set(m_proxyA.getVertex(indexA));<NEW_LINE>localPointB.set(m_proxyB.getVertex(indexB));<NEW_LINE>Transfo...
mulToOutUnsafe(xfa, localPointA, pointA);
1,375,865
// soon as detected as not<NEW_LINE>// used as an object<NEW_LINE>@Override<NEW_LINE>public void caseAssignStmt(AssignStmt stmt) {<NEW_LINE>Value r = stmt.getRightOp();<NEW_LINE>if (r instanceof FieldRef) {<NEW_LINE>usedAsObject = isObject(((FieldRef) r).getFieldRef().type());<NEW_LINE>doBreak = true;<NEW_LINE>return;<...
isObject(ar.getType());
951,141
public void captureListingRange(long start, long end, int width) {<NEW_LINE>waitForSwing();<NEW_LINE>CodeBrowserPlugin plugin = getPlugin(tool, CodeBrowserPlugin.class);<NEW_LINE>FieldPanel fieldPanel = plugin.getFieldPanel();<NEW_LINE>ListingPanel listingPanel = plugin.getListingPanel();<NEW_LINE>plugin.goToField(addr...
0, 0, 0, false);
868,064
private static void updateProjectSettings(Project project, BlazeProjectData blazeProjectData) {<NEW_LINE>KotlinToolchainIdeInfo kotlinToolchainIdeInfo = findToolchain(blazeProjectData.getTargetMap());<NEW_LINE>if (kotlinToolchainIdeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LanguageVersion languageLevel = get...
.getSettings().unfrozen();
376,429
public static JSONObject stringifyByObject(long byteNumber) {<NEW_LINE>JSONObject object = new JSONObject();<NEW_LINE>if (byteNumber / TB_IN_BYTES > 0) {<NEW_LINE>object.put("size", df.format((double) byteNumber / (double) TB_IN_BYTES));<NEW_LINE><MASK><NEW_LINE>return object;<NEW_LINE>} else if (byteNumber / GB_IN_BYT...
object.put("type", "TB");
1,533,816
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {<NEW_LINE>this.context = context;<NEW_LINE>this.logger = logger;<NEW_LINE>TypeOracle oracle = context.getTypeOracle();<NEW_LINE>assert (oracle != null);<NEW_LINE>JClassType jType = oracle.findType(type...
logger, context, jType, split);
1,626,061
// Configure pass1<NEW_LINE>protected JobConf configPass1() throws Exception {<NEW_LINE>final JobConf conf = new JobConf(getConf(), MatvecNaive.class);<NEW_LINE>conf.set("number_nodes", "" + number_nodes);<NEW_LINE>conf.set("makesym", "" + makesym);<NEW_LINE>conf.<MASK><NEW_LINE>conf.set("ignore_weights", "" + ignore_w...
set("transpose", "" + transpose);
418,737
public void verifyDatasetRun(JRDatasetRun datasetRun) {<NEW_LINE>JRDesignDataset dataset = null;<NEW_LINE>String datasetName = datasetRun.getDatasetName();<NEW_LINE>if (datasetName == null || datasetName.length() == 0) {<NEW_LINE>addBrokenRule("Dataset name is missing for dataset run.", datasetRun);<NEW_LINE>} else {<N...
"Dataset " + datasetName + " parameter name missing.", parameter);
695,639
private static List<PluginConfig> buildPluginConfigs(List<PluginConfig> newConfigs, AgentConfig agentConfig) {<NEW_LINE>List<PluginConfig> pluginConfigs = new ArrayList<>();<NEW_LINE>Map<String, PluginConfig> remainingNewConfigs = new HashMap<>();<NEW_LINE>for (PluginConfig newConfig : newConfigs) {<NEW_LINE>remainingN...
(remainingNewConfigs.keySet()));
825,650
public okhttp3.Call updateSharedScopeCall(String scopeId, ScopeDTO scopeDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = scopeDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/scopes/{scopeId}".replaceAll("\\{" + "scopeId" + "\\}", localVarApiClien...
localVarHeaderParams.put("Accept", localVarAccept);
1,128,475
private <T> CommandResult<T> execute(Request<T> request, SelectForUpdateBasedTransaction transaction) {<NEW_LINE>RemoteCommand<T> command = request.getCommand();<NEW_LINE>transaction.begin();<NEW_LINE>// lock and get data<NEW_LINE>LockAndGetResult lockResult;<NEW_LINE>byte[] persistedDataOnBeginOfTransaction;<NEW_LINE>...
entry, super.getClientSideTime());
671,563
static ParcelFileDescriptor ReturnParcelFileDescriptor(/* JNIEnv* env,*/<NEW_LINE>Asset asset, long[] out_offsets) throws FileNotFoundException {<NEW_LINE>final Ref<Long> start_offset = new Ref<>(0L);<NEW_LINE>final Ref<Long> length = new Ref<>(0L);<NEW_LINE>FileDescriptor fd = <MASK><NEW_LINE>// asset.reset();<NEW_LIN...
asset.openFileDescriptor(start_offset, length);
1,766,430
public // }<NEW_LINE>void startStopRouteAnimation(@Nullable Activity activity, boolean useGpx, final Runnable runnable) {<NEW_LINE>if (!isRouteAnimating()) {<NEW_LINE>if (useGpx) {<NEW_LINE>if (activity == null) {<NEW_LINE>stop();<NEW_LINE>if (runnable != null) {<NEW_LINE>runnable.run();<NEW_LINE>}<NEW_LINE>return;<NEW...
MinSpeedup)).setText("1");
1,548,371
private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jMainClassList = new javax.swing.JList();<NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_LINE>setPreferredSize(new ...
= java.awt.GridBagConstraints.REMAINDER;
1,555,709
public BlockingIterable<String> deserialize(final HttpHeaders headers, final BlockingIterable<Buffer> payload) {<NEW_LINE>checkContentType(headers, checkContentType);<NEW_LINE>return () -> {<NEW_LINE>final BlockingIterator<Buffer<MASK><NEW_LINE>return new BlockingIterator<String>() {<NEW_LINE><NEW_LINE>@Override<NEW_LI...
> iterator = payload.iterator();
780,076
public int compare(Message a, Message b) {<NEW_LINE>MessagePart a0 = firstPartOf(a);<NEW_LINE>MessagePart b0 = firstPartOf(b);<NEW_LINE>InputSource aSrc = toInputSource(a0), bSrc = toInputSource(b0);<NEW_LINE>// Compure by source first.<NEW_LINE>if (aSrc != null && bSrc != null) {<NEW_LINE>int delta = aSrc.getUri().com...
Long.signum(aSPos - bSPos);
1,608,558
public HttpResponse updateUserForHttpResponse(String username, User body) throws IOException {<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");<NEW_LINE>}<NEW_LIN...
apiClient.getBasePath() + "/user/{username}");
778,039
final ListReceiptFiltersResult executeListReceiptFilters(ListReceiptFiltersRequest listReceiptFiltersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReceiptFiltersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
552,065
public void onClick(View v) {<NEW_LINE>String url = mTwitterStatus.mAdnMedia != null ? mTwitterStatus.mAdnMedia.mUrl : mTwitterStatus.mMediaEntity.getMediaUrl(Size.LARGE);<NEW_LINE>String expandedUrl = mTwitterStatus.mAdnMedia != null ? mTwitterStatus.mAdnMedia.mExpandedUrl : mTwitterStatus.mMediaEntity.getExpandedUrl(...
expandedUrl, mTwitterStatus.getAuthorScreenName());
770,336
public SearchPlaceIndexForTextResult searchPlaceIndexForText(SearchPlaceIndexForTextRequest searchPlaceIndexForTextRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchPlaceIndexForTextRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetri...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
769,990
private void writeImageCell(File file) throws DBException {<NEW_LINE>PrintWriter out = getWriter();<NEW_LINE>out.write("<td>");<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>out.write("&nbsp;");<NEW_LINE>} else {<NEW_LINE>BufferedImage image = null;<NEW_LINE>try {<NEW_LINE>image = ImageIO.read(file);<NEW_LINE...
int width = image.getWidth();
1,687,611
protected String transformAuthorityValue(Context context, String field, String value) throws SQLException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (field.equals("location.comm") || field.equals("location.coll")) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>if (field.endsWith("_filter...
regex.Pattern.quote(separator);
560,047
public boolean arclight$blockRedstone(Level world, BlockPos pos, BlockState state, Level worldIn, BlockPos blockPos, Block blockIn, BlockPos fromPos, boolean isMoving) {<NEW_LINE>boolean flag = world.hasNeighborSignal(pos);<NEW_LINE>if (flag != state.getValue(TrapDoorBlock.POWERED)) {<NEW_LINE>org.bukkit.block.Block cr...
TrapDoorBlock.OPEN) ? 15 : 0;
828,793
public View newView(Context context, ViewGroup parent) {<NEW_LINE>LayoutInflater <MASK><NEW_LINE>View view = inflater.inflate(R.layout.repo_listitem, parent, false);<NEW_LINE>RepoListItemHolder holder = new RepoListItemHolder();<NEW_LINE>holder.repoTitle = (TextView) view.findViewById(R.id.repoTitle);<NEW_LINE>holder.r...
inflater = LayoutInflater.from(context);
1,598,295
public static CacheLine deserializeFromJson(String json) {<NEW_LINE>JSONObject cacheLineJson = JSON.parseObject(json);<NEW_LINE>long rowCount = cacheLineJson.getLong("rowCount");<NEW_LINE>long currentTime = unixTimeStamp();<NEW_LINE>CacheLine cacheLine = new CacheLine(rowCount, currentTime, currentTime);<NEW_LINE>cache...
topNMapJsonObject = cacheLineJson.getJSONObject("topNMap");
1,421,587
private Slime osVersions() {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>Set<OsVersionTarget> targets = controller.osVersionTargets();<NEW_LINE>Cursor versions = root.setArray("versions");<NEW_LINE>controller.osVersionStatus().versions().forEach((osVersion, nodeVersions) -> {<...
().toEpochMilli()));
1,514,500
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>toolbar = new javax.swing.JToolBar();<NEW_LINE>settingsButton = new javax.swing.JButton();<NEW_LINE>statisticsPanel = new S...
javax.swing.SwingConstants.CENTER);
52,777
private // }<NEW_LINE>int rewriteModifiers2(ASTNode node, ChildListPropertyDescriptor property, int pos) {<NEW_LINE>RewriteEvent event = getEvent(node, property);<NEW_LINE>if (event == null || event.getChangeKind() == RewriteEvent.UNCHANGED) {<NEW_LINE>return doVisit(node, property, pos);<NEW_LINE>}<NEW_LINE>RewriteEve...
.getPrefix(getIndent(pos));
296,019
public static void propagateError(String errorCode, String errorMessage, Exception origException, ActivityExecution execution) throws Exception {<NEW_LINE><MASK><NEW_LINE>final ErrorDeclarationForProcessInstanceFinder errorDeclarationFinder = new ErrorDeclarationForProcessInstanceFinder(origException, errorCode, execut...
ActivityExecutionHierarchyWalker walker = new ActivityExecutionHierarchyWalker(execution);
281,604
public Rule findMatchingRule(Model model, Rule rule) {<NEW_LINE>assert rule.getModel() == model;<NEW_LINE>if (rule.getParent() == null) {<NEW_LINE>// detached or not attached yet rule<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// find id of the given rule in the given model<NEW_LINE>final RuleRefModelVisitor ruleRef = n...
int ruleIndex = ruleRef.getRuleIndex();
1,245,306
private ExtensionArchive newExtensionArchive(ServiceReference<WebSphereCDIExtension> sr) throws CDIException {<NEW_LINE>Bundle bundle = sr.getBundle();<NEW_LINE>String extra_classes_blob = (String) sr.getProperty(EXTENSION_API_CLASSES);<NEW_LINE>Set<String> extra_classes = new HashSet<String>();<NEW_LINE>// parse the l...
extClassesOnly, Collections.emptySet());
874,374
protected void handle(final DownloadImageMsg msg) {<NEW_LINE>final DownloadImageReply reply = new DownloadImageReply();<NEW_LINE>final ImageInventory iinv = msg.getImageInventory();<NEW_LINE>final String installPath = PathUtil.join(getSelf().getUrl(), BackupStoragePathMaker.makeImageInstallPath(iinv));<NEW_LINE>String ...
getEntityManager().createQuery(sql);
1,790,128
protected boolean advanceQueue() {<NEW_LINE>if (heap.isEmpty()) {<NEW_LINE>candidates = DoubleDBIDListIter.EMPTY;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>curdist = heap.peekKey();<NEW_LINE>if (curdist > threshold) {<NEW_LINE>heap.clear();<NEW_LINE>candidates = DoubleDBIDListIter.EMPTY;<NEW_LINE>return false;<NEW_LIN...
.lowBound - vpdist), curdist);
241,383
private DubboSample dubboSample(ParameterConfig config) {<NEW_LINE>DubboSample sampler = new DubboSample();<NEW_LINE>sampler.setEnabled(this.isEnable());<NEW_LINE>sampler.setName(this.getName());<NEW_LINE>if (config.isOperating()) {<NEW_LINE>String[] testNameArr = sampler.getName().split("<->");<NEW_LINE>if (testNameAr...
this.getMethod(), sampler);
856,095
public Object executeTransform(ODatabaseDocument db, Object input) {<NEW_LINE>String runtimeCommand = (String) resolve(command);<NEW_LINE>if (newSqlExecutor) {<NEW_LINE>OResultSet result;<NEW_LINE>if (language.equals("sql")) {<NEW_LINE>result = db.command(runtimeCommand);<NEW_LINE>} else {<NEW_LINE>result = db.execute(...
collect(Collectors.toList());
959,509
protected void registerMBeans(ModuleInitData mid, EJBModuleMetaDataImpl mmd) {<NEW_LINE>OSGiEJBModuleMetaDataImpl mmdImpl = getOSGiEJBModuleMetaDataImpl(mmd);<NEW_LINE>if (!mmdImpl.isSystemModule()) {<NEW_LINE><MASK><NEW_LINE>if (mbeanRuntime != null) {<NEW_LINE>String appName = mmd.getEJBApplicationMetaData().isStanda...
EJBMBeanRuntime mbeanRuntime = ejbMBeanRuntimeServiceRef.getService();
862,518
private BPTreePage merge(BPTreePage left, BPTreePage right, int dividingSlot) {<NEW_LINE>if (logging(log)) {<NEW_LINE>log(log, ">> merge(@%d): %s", dividingSlot, this);<NEW_LINE>log(log, ">> left: %s", left);<NEW_LINE>log(log, ">> right: %s", right);<NEW_LINE>}<NEW_LINE>// /==\ + key + /==\ ==> /====\<NEW_LINE>Record ...
), left.getMaxSize());
1,325,734
public static DescribeForwardTableEntriesResponse unmarshall(DescribeForwardTableEntriesResponse describeForwardTableEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeForwardTableEntriesResponse.setRequestId(_ctx.stringValue("DescribeForwardTableEntriesResponse.RequestId"));<NEW_LINE>describeForwardTableEnt...
("DescribeForwardTableEntriesResponse.ForwardTableEntries[" + i + "].InternalPort"));
219,177
public Map<String, TableMeta> loadTableMeta(List<String> tables) throws AddaxException {<NEW_LINE>Map<String, TableMeta> tableMetas = new HashMap();<NEW_LINE>try (Statement stmt = conn.createStatement()) {<NEW_LINE>ResultSet rs = stmt.executeQuery("show stables");<NEW_LINE>while (rs.next()) {<NEW_LINE>TableMeta tableMe...
RUNTIME_EXCEPTION, e.getMessage());
864,366
private void startGetBlobInfo(GetOption options, final boolean checkDeleted, final OperationChain opChain) {<NEW_LINE>Callback<GetBlobResult> callback = new TestCallback<>(opChain, checkDeleted);<NEW_LINE>Future<GetBlobResult> future = router.getBlob(opChain.blobId, new GetBlobOptionsBuilder().operationType(GetBlobOpti...
build(), callback, quotaChargeCallback);
69,354
public Object visit(ASTElseClause node, Object data) {<NEW_LINE>if (!(data instanceof Structure)) {<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>Structure dataFlow = (Structure) data;<NEW_LINE>if (node.getParent() instanceof ASTIfStatement) {<NEW_LINE>dataFlow.pushOnStack(NodeType.IF_LAST_STATEMENT, dataFlow.getLast());<N...
super.visit(node, data);
177,407
// sendAlerts<NEW_LINE>private void alertOverPriority() {<NEW_LINE>if (m_model.getAlertOverPriority() > 0) {<NEW_LINE>final List<WFActivityPendingInfo> pendingActivities = wfProcessRepo.queryPendingActivitiesOverPriority().alertOverPriority(m_model.getAlertOverPriority()).remindDays(m_model.getRemindDays()).adWorkflowP...
("OverPriority #").append(count);
1,541,490
private boolean init(String funcString) {<NEW_LINE>int leftBracket = funcString.indexOf("(");<NEW_LINE>int rightBracket = funcString.lastIndexOf(")");<NEW_LINE>// see if there even is a comma<NEW_LINE>int comma = funcString.indexOf(",");<NEW_LINE>if (leftBracket > 1 && rightBracket > leftBracket + 1 && comma > leftBrac...
funcString.substring(0, leftBracket);
229,052
private ClickHouseHttpResponse buildResponse(HttpResponse<InputStream> r) throws IOException {<NEW_LINE>HttpHeaders headers = r.headers();<NEW_LINE>String displayName = headers.firstValue("X-ClickHouse-Server-Display-Name").orElse(server.getHost());<NEW_LINE>String queryId = headers.firstValue("X-ClickHouse-Query-Id")....
TimeZone timeZone = config.getServerTimeZone();
335,535
public static DescribeACLAttributeResponse unmarshall(DescribeACLAttributeResponse describeACLAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeACLAttributeResponse.setRequestId(_ctx.stringValue("DescribeACLAttributeResponse.RequestId"));<NEW_LINE>describeACLAttributeResponse.setTotalCount(_ctx.integerVal...
("DescribeACLAttributeResponse.Acrs[" + i + "].DestPortRange"));
1,051,586
public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {<NEW_LINE>View itemView = viewHolder.itemView;<NEW_LINE>// not sure why, but this method get's called for viewholder that are already swiped away<NEW_LINE>if ...
dX, dY, actionState, isCurrentlyActive);